Bump subrelease number
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60 for wxWidgets 2.8.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 Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 fi
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41   echo "#! /bin/sh" >conf$$.sh
42   echo  "exit 0"   >>conf$$.sh
43   chmod +x conf$$.sh
44   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45     PATH_SEPARATOR=';'
46   else
47     PATH_SEPARATOR=:
48   fi
49   rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54   as_unset=unset
55 else
56   as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order.  Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" ""        $as_nl"
68
69 # Find who we are.  Look in the path if we contain no directory separator.
70 case $0 in
71   *[\\/]* ) as_myself=$0 ;;
72   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75   IFS=$as_save_IFS
76   test -z "$as_dir" && as_dir=.
77   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81      ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86   as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90   { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105   LC_TELEPHONE LC_TIME
106 do
107   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108     eval $as_var=C; export $as_var
109   else
110     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111   fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116    test "X`expr 00001 : '.*\(...\)'`" = X001; then
117   as_expr=expr
118 else
119   as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123   as_basename=basename
124 else
125   as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132          X"$0" : 'X\(//\)$' \| \
133          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135     sed '/^.*\/\([^/][^/]*\)\/*$/{
136             s//\1/
137             q
138           }
139           /^X\/\(\/\/\)$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\).*/{
144             s//\1/
145             q
146           }
147           s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154   if (eval ":") 2>/dev/null; then
155   as_have_required=yes
156 else
157   as_have_required=no
158 fi
159
160   if test $as_have_required = yes &&     (eval ":
161 (as_func_return () {
162   (exit \$1)
163 }
164 as_func_success () {
165   as_func_return 0
166 }
167 as_func_failure () {
168   as_func_return 1
169 }
170 as_func_ret_success () {
171   return 0
172 }
173 as_func_ret_failure () {
174   return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179   :
180 else
181   exitcode=1
182   echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186   exitcode=1
187   echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191   :
192 else
193   exitcode=1
194   echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198   exitcode=1
199   echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203   :
204 else
205   exitcode=1
206   echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212   as_lineno_1=\$LINENO
213   as_lineno_2=\$LINENO
214   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217   :
218 else
219   as_candidate_shells=
220     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223   IFS=$as_save_IFS
224   test -z "$as_dir" && as_dir=.
225   case $as_dir in
226          /*)
227            for as_base in sh bash ksh sh5; do
228              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229            done;;
230        esac
231 done
232 IFS=$as_save_IFS
233
234
235       for as_shell in $as_candidate_shells $SHELL; do
236          # Try only shells that exist, to save several forks.
237          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238                 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 fi
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
252
253 :
254 _ASEOF
255 }; then
256   CONFIG_SHELL=$as_shell
257                as_have_required=yes
258                if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261   emulate sh
262   NULLCMD=:
263   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264   # is contrary to our usage.  Disable this feature.
265   alias -g '${1+"$@"}'='"$@"'
266   setopt NO_GLOB_SUBST
267 else
268   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 fi
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
272
273 :
274 (as_func_return () {
275   (exit $1)
276 }
277 as_func_success () {
278   as_func_return 0
279 }
280 as_func_failure () {
281   as_func_return 1
282 }
283 as_func_ret_success () {
284   return 0
285 }
286 as_func_ret_failure () {
287   return 1
288 }
289
290 exitcode=0
291 if as_func_success; then
292   :
293 else
294   exitcode=1
295   echo as_func_success failed.
296 fi
297
298 if as_func_failure; then
299   exitcode=1
300   echo as_func_failure succeeded.
301 fi
302
303 if as_func_ret_success; then
304   :
305 else
306   exitcode=1
307   echo as_func_ret_success failed.
308 fi
309
310 if as_func_ret_failure; then
311   exitcode=1
312   echo as_func_ret_failure succeeded.
313 fi
314
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
316   :
317 else
318   exitcode=1
319   echo positional parameters were not saved.
320 fi
321
322 test $exitcode = 0) || { (exit 1); exit 1; }
323
324 (
325   as_lineno_1=$LINENO
326   as_lineno_2=$LINENO
327   test "x$as_lineno_1" != "x$as_lineno_2" &&
328   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330 _ASEOF
331 }; then
332   break
333 fi
334
335 fi
336
337       done
338
339       if test "x$CONFIG_SHELL" != x; then
340   for as_var in BASH_ENV ENV
341         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342         done
343         export CONFIG_SHELL
344         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 fi
346
347
348     if test $as_have_required = no; then
349   echo This script requires a shell more modern than all the
350       echo shells that I found on your system.  Please install a
351       echo modern shell, or manually run the script under such a
352       echo shell if you do have one.
353       { (exit 1); exit 1; }
354 fi
355
356
357 fi
358
359 fi
360
361
362
363 (eval "as_func_return () {
364   (exit \$1)
365 }
366 as_func_success () {
367   as_func_return 0
368 }
369 as_func_failure () {
370   as_func_return 1
371 }
372 as_func_ret_success () {
373   return 0
374 }
375 as_func_ret_failure () {
376   return 1
377 }
378
379 exitcode=0
380 if as_func_success; then
381   :
382 else
383   exitcode=1
384   echo as_func_success failed.
385 fi
386
387 if as_func_failure; then
388   exitcode=1
389   echo as_func_failure succeeded.
390 fi
391
392 if as_func_ret_success; then
393   :
394 else
395   exitcode=1
396   echo as_func_ret_success failed.
397 fi
398
399 if as_func_ret_failure; then
400   exitcode=1
401   echo as_func_ret_failure succeeded.
402 fi
403
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405   :
406 else
407   exitcode=1
408   echo positional parameters were not saved.
409 fi
410
411 test \$exitcode = 0") || {
412   echo No shell found that supports shell functions.
413   echo Please tell autoconf@gnu.org about your system,
414   echo including any error possibly output before this
415   echo message
416 }
417
418
419
420   as_lineno_1=$LINENO
421   as_lineno_2=$LINENO
422   test "x$as_lineno_1" != "x$as_lineno_2" &&
423   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
425   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426   # uniformly replaced by the line number.  The first 'sed' inserts a
427   # line-number line after each line using $LINENO; the second 'sed'
428   # does the real work.  The second script uses 'N' to pair each
429   # line-number line with the line containing $LINENO, and appends
430   # trailing '-' during substitution so that $LINENO is not a special
431   # case at line end.
432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433   # scripts with optimization help from Paolo Bonzini.  Blame Lee
434   # E. McMahon (1931-1989) for sed's syntax.  :-)
435   sed -n '
436     p
437     /[$]LINENO/=
438   ' <$as_myself |
439     sed '
440       s/[$]LINENO.*/&-/
441       t lineno
442       b
443       :lineno
444       N
445       :loop
446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447       t loop
448       s/-\n.*//
449     ' >$as_me.lineno &&
450   chmod +x "$as_me.lineno" ||
451     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452    { (exit 1); exit 1; }; }
453
454   # Don't try to exec as it changes $[0], causing all sort of problems
455   # (the dirname of $[0] is not the place where we might find the
456   # original and so on.  Autoconf is especially sensitive to this).
457   . "./$as_me.lineno"
458   # Exit status is that of the last command.
459   exit
460 }
461
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472   case `echo 'x\c'` in
473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
474   *)   ECHO_C='\c';;
475   esac;;
476 *)
477   ECHO_N='-n';;
478 esac
479
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
482   as_expr=expr
483 else
484   as_expr=false
485 fi
486
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489   rm -f conf$$.dir/conf$$.file
490 else
491   rm -f conf$$.dir
492   mkdir conf$$.dir
493 fi
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496   as_ln_s='ln -s'
497   # ... but there are two gotchas:
498   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500   # In both cases, we have to default to `cp -p'.
501   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502     as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504   as_ln_s=ln
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p=:
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526   as_executable_p="test -x"
527 else
528   as_executable_p=:
529 fi
530 rm -f conf$$.file
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 # Identity of this package.
561 PACKAGE_NAME='wxWidgets'
562 PACKAGE_TARNAME='wxwidgets'
563 PACKAGE_VERSION='2.8.0'
564 PACKAGE_STRING='wxWidgets 2.8.0'
565 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
566
567 ac_unique_file="wx-config.in"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #if HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #if HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #if STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # if HAVE_STDLIB_H
582 #  include <stdlib.h>
583 # endif
584 #endif
585 #if HAVE_STRING_H
586 # if !STDC_HEADERS && HAVE_MEMORY_H
587 #  include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #if HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #if HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #if HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #if HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_subst_vars='SHELL
605 PATH_SEPARATOR
606 PACKAGE_NAME
607 PACKAGE_TARNAME
608 PACKAGE_VERSION
609 PACKAGE_STRING
610 PACKAGE_BUGREPORT
611 exec_prefix
612 prefix
613 program_transform_name
614 bindir
615 sbindir
616 libexecdir
617 datarootdir
618 datadir
619 sysconfdir
620 sharedstatedir
621 localstatedir
622 includedir
623 oldincludedir
624 docdir
625 infodir
626 htmldir
627 dvidir
628 pdfdir
629 psdir
630 libdir
631 localedir
632 mandir
633 DEFS
634 ECHO_C
635 ECHO_N
636 ECHO_T
637 LIBS
638 build_alias
639 host_alias
640 target_alias
641 build
642 build_cpu
643 build_vendor
644 build_os
645 host
646 host_cpu
647 host_vendor
648 host_os
649 target
650 target_cpu
651 target_vendor
652 target_os
653 wx_top_builddir
654 CC
655 CFLAGS
656 LDFLAGS
657 CPPFLAGS
658 ac_ct_CC
659 EXEEXT
660 OBJEXT
661 CPP
662 GREP
663 EGREP
664 CXX
665 CXXFLAGS
666 ac_ct_CXX
667 RANLIB
668 AR
669 INSTALL_PROGRAM
670 INSTALL_SCRIPT
671 INSTALL_DATA
672 STRIP
673 WINDRES
674 DLLTOOL
675 IF_GNU_MAKE
676 LN_S
677 CXXCPP
678 subdirs
679 PKG_CONFIG
680 GTK_CFLAGS
681 GTK_LIBS
682 GTK_CONFIG
683 DIRECTFB_CFLAGS
684 DIRECTFB_LIBS
685 XMKMF
686 X_CFLAGS
687 X_PRE_LIBS
688 X_LIBS
689 X_EXTRA_LIBS
690 PANGOX_CFLAGS
691 PANGOX_LIBS
692 PANGOFT2_CFLAGS
693 PANGOFT2_LIBS
694 PANGOXFT_CFLAGS
695 PANGOXFT_LIBS
696 REZ
697 DEREZ
698 SETFILE
699 LIBICONV
700 EXTRALIBS_ESD
701 SDL_CONFIG
702 SDL_CFLAGS
703 SDL_LIBS
704 LIBGNOMEPRINTUI_CFLAGS
705 LIBGNOMEPRINTUI_LIBS
706 GNOMEVFS_CFLAGS
707 GNOMEVFS_LIBS
708 HILDON_CFLAGS
709 HILDON_LIBS
710 CAIRO_CFLAGS
711 CAIRO_LIBS
712 GST_CFLAGS
713 GST_LIBS
714 CORE_BASE_LIBS
715 CORE_GUI_LIBS
716 wxUSE_ZLIB
717 wxUSE_REGEX
718 wxUSE_EXPAT
719 wxUSE_ODBC
720 wxUSE_LIBJPEG
721 wxUSE_LIBPNG
722 wxUSE_LIBTIFF
723 VENDOR
724 OFFICIAL_BUILD
725 WX_FLAVOUR
726 WX_LIB_FLAVOUR
727 WXUNIV
728 MONOLITHIC
729 USE_PLUGINS
730 EXTRALIBS
731 EXTRALIBS_XML
732 EXTRALIBS_HTML
733 EXTRALIBS_ODBC
734 EXTRALIBS_GUI
735 EXTRALIBS_OPENGL
736 EXTRALIBS_SDL
737 WITH_PLUGIN_SDL
738 EXTRALIBS_GNOMEPRINT
739 EXTRALIBS_GNOMEVFS
740 EXTRALIBS_HILDON
741 UNICODE
742 BUILD
743 DEBUG_INFO
744 DEBUG_FLAG
745 TOOLKIT_LOWERCASE
746 TOOLKIT_VERSION
747 SAMPLES_RPATH_FLAG
748 SAMPLES_RPATH_POSTLINK
749 HOST_SUFFIX
750 CPPUNIT_CFLAGS
751 CPPUNIT_LIBS
752 SET_MAKE
753 MAKE_SET
754 AROPTIONS
755 NM
756 INSTALL_DIR
757 LDFLAGS_GUI
758 PLATFORM_UNIX
759 PLATFORM_WIN32
760 PLATFORM_MSDOS
761 PLATFORM_MAC
762 PLATFORM_MACOS
763 PLATFORM_MACOSX
764 PLATFORM_OS2
765 PLATFORM_BEOS
766 SO_SUFFIX
767 SO_SUFFIX_MODULE
768 DLLIMP_SUFFIX
769 LIBPREFIX
770 LIBEXT
771 DLLPREFIX
772 DLLPREFIX_MODULE
773 dlldir
774 AIX_CXX_LD
775 SHARED_LD_CC
776 SHARED_LD_CXX
777 SHARED_LD_MODULE_CC
778 SHARED_LD_MODULE_CXX
779 PIC_FLAG
780 WINDOWS_IMPLIB
781 USE_SOVERSION
782 USE_SOVERLINUX
783 USE_SOVERSOLARIS
784 USE_SOVERCYGWIN
785 USE_MACVERSION
786 USE_SOSYMLINKS
787 SONAME_FLAG
788 DEPS_TRACKING
789 BK_DEPS
790 GCC_PCH
791 ICC_PCH
792 BK_MAKE_PCH
793 COND_BUILD_DEBUG
794 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
795 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
796 COND_BUILD_DEBUG_UNICODE_0
797 COND_BUILD_DEBUG_UNICODE_1
798 COND_BUILD_RELEASE
799 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
800 COND_BUILD_RELEASE_UNICODE_0
801 COND_BUILD_RELEASE_UNICODE_1
802 COND_DEBUG_FLAG_1
803 COND_DEBUG_INFO_0
804 COND_DEBUG_INFO_1
805 COND_DEPS_TRACKING_0
806 COND_DEPS_TRACKING_1
807 COND_GCC_PCH_1
808 COND_ICC_PCH_1
809 COND_MONOLITHIC_0
810 COND_MONOLITHIC_0_SHARED_0
811 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
812 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
813 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
814 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
815 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1
816 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
817 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1
818 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
819 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
820 COND_MONOLITHIC_0_SHARED_1
821 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
822 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
823 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
824 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
825 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1
826 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
827 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1
828 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
829 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
830 COND_MONOLITHIC_0_USE_MEDIA_1
831 COND_MONOLITHIC_0_USE_ODBC_1
832 COND_MONOLITHIC_1
833 COND_MONOLITHIC_1_SHARED_0
834 COND_MONOLITHIC_1_SHARED_1
835 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
836 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
837 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
838 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
839 COND_PLATFORM_MACOSX_1
840 COND_PLATFORM_MACOSX_1_TOOLKIT_
841 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
842 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
843 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
844 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
845 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
846 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
847 COND_PLATFORM_MACOSX_1_USE_GUI_1
848 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
849 COND_PLATFORM_MACOS_1
850 COND_PLATFORM_MAC_1
851 COND_PLATFORM_MSDOS_0
852 COND_PLATFORM_MSDOS_1
853 COND_PLATFORM_OS2_1
854 COND_PLATFORM_UNIX_0
855 COND_PLATFORM_UNIX_1
856 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
857 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
858 COND_PLATFORM_UNIX_1_USE_GUI_1
859 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
860 COND_PLATFORM_WIN32_0
861 COND_PLATFORM_WIN32_1
862 COND_SHARED_0
863 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
864 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
865 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
866 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
867 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
868 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
869 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
870 COND_SHARED_0_USE_XRC_1
871 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
872 COND_SHARED_0_WXUSE_ODBC_BUILTIN
873 COND_SHARED_0_WXUSE_REGEX_BUILTIN
874 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
875 COND_SHARED_1
876 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
877 COND_SHARED_1_USE_XRC_1
878 COND_TOOLKIT_
879 COND_TOOLKIT_COCOA
880 COND_TOOLKIT_COCOA_USE_GUI_1
881 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
882 COND_TOOLKIT_DFB
883 COND_TOOLKIT_DFB_USE_GUI_1
884 COND_TOOLKIT_GTK
885 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
886 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
887 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
888 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
889 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
890 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
891 COND_TOOLKIT_GTK_USE_GUI_1
892 COND_TOOLKIT_MAC
893 COND_TOOLKIT_MAC_USE_GUI_1
894 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
895 COND_TOOLKIT_MGL
896 COND_TOOLKIT_MGL_USE_GUI_1
897 COND_TOOLKIT_MOTIF
898 COND_TOOLKIT_MOTIF_USE_GUI_1
899 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
900 COND_TOOLKIT_MSW
901 COND_TOOLKIT_MSW_USE_GUI_1
902 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
903 COND_TOOLKIT_MSW_WXUNIV_0
904 COND_TOOLKIT_PM
905 COND_TOOLKIT_PM_USE_GUI_1
906 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
907 COND_TOOLKIT_WINCE
908 COND_TOOLKIT_WINCE_USE_GUI_1
909 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
910 COND_TOOLKIT_WINCE_WXUNIV_0
911 COND_TOOLKIT_X11
912 COND_TOOLKIT_X11_USE_GUI_1
913 COND_UNICODE_1
914 COND_USE_EXCEPTIONS_0
915 COND_USE_EXCEPTIONS_1
916 COND_USE_GUI_0
917 COND_USE_GUI_1
918 COND_USE_GUI_1_WXUNIV_0
919 COND_USE_GUI_1_WXUNIV_1
920 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
921 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
922 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
923 COND_USE_ODBC_1
924 COND_USE_OPENGL_1
925 COND_USE_PCH_1
926 COND_USE_PLUGINS_0
927 COND_USE_RTTI_0
928 COND_USE_RTTI_1
929 COND_USE_SOSYMLINKS_1
930 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
931 COND_USE_SOVERLINUX_1
932 COND_USE_SOVERSION_0
933 COND_USE_SOVERSOLARIS_1
934 COND_USE_THREADS_0
935 COND_USE_THREADS_1
936 COND_USE_XRC_1
937 COND_WINDOWS_IMPLIB_1
938 COND_WITH_PLUGIN_SDL_1
939 COND_WXUNIV_0
940 COND_WXUNIV_1
941 COND_WXUSE_EXPAT_BUILTIN
942 COND_WXUSE_LIBJPEG_BUILTIN
943 COND_WXUSE_LIBPNG_BUILTIN
944 COND_WXUSE_LIBTIFF_BUILTIN
945 COND_WXUSE_ODBC_BUILTIN
946 COND_WXUSE_REGEX_BUILTIN
947 COND_WXUSE_ZLIB_BUILTIN
948 SHARED
949 WX_LIBRARY_BASENAME_NOGUI
950 WX_LIBRARY_BASENAME_GUI
951 USE_GUI
952 AFMINSTALL
953 WIN32INSTALL
954 TOOLKIT
955 TOOLKIT_DIR
956 TOOLCHAIN_NAME
957 TOOLCHAIN_FULLNAME
958 cross_compiling
959 WIDGET_SET
960 WX_RELEASE
961 WX_VERSION
962 WX_SUBVERSION
963 WX_CHARTYPE
964 WX_DEBUGTYPE
965 WXCONFIG_CPPFLAGS
966 WXCONFIG_CFLAGS
967 WXCONFIG_CXXFLAGS
968 WXCONFIG_LIBS
969 WXCONFIG_RPATH
970 WXCONFIG_LDFLAGS_GUI
971 WXCONFIG_RESFLAGS
972 EXE_LINKER
973 GUIDIST
974 DISTDIR
975 SAMPLES_SUBDIRS
976 LDFLAGS_GL
977 OPENGL_LIBS
978 DMALLOC_LIBS
979 WX_VERSION_TAG
980 RESCOMP
981 RESFLAGS
982 RESPROGRAMOBJ
983 WX_RESOURCES_MACOSX_ASCII
984 WX_RESOURCES_MACOSX_DATA
985 LIBWXMACRES
986 POSTLINK_COMMAND
987 MACSETFILE
988 GCC
989 CPPUNIT_CONFIG
990 LIBOBJS
991 LTLIBOBJS'
992 ac_subst_files=''
993       ac_precious_vars='build_alias
994 host_alias
995 target_alias
996 CC
997 CFLAGS
998 LDFLAGS
999 CPPFLAGS
1000 CPP
1001 CXX
1002 CXXFLAGS
1003 CCC
1004 CXXCPP
1005 PKG_CONFIG
1006 DIRECTFB_CFLAGS
1007 DIRECTFB_LIBS
1008 XMKMF
1009 PANGOX_CFLAGS
1010 PANGOX_LIBS
1011 PANGOFT2_CFLAGS
1012 PANGOFT2_LIBS
1013 PANGOXFT_CFLAGS
1014 PANGOXFT_LIBS
1015 LIBGNOMEPRINTUI_CFLAGS
1016 LIBGNOMEPRINTUI_LIBS
1017 GNOMEVFS_CFLAGS
1018 GNOMEVFS_LIBS
1019 HILDON_CFLAGS
1020 HILDON_LIBS
1021 CAIRO_CFLAGS
1022 CAIRO_LIBS
1023 GST_CFLAGS
1024 GST_LIBS'
1025 ac_subdirs_all='src/expat'
1026
1027 # Initialize some variables set by options.
1028 ac_init_help=
1029 ac_init_version=false
1030 # The variables have the same names as the options, with
1031 # dashes changed to underlines.
1032 cache_file=/dev/null
1033 exec_prefix=NONE
1034 no_create=
1035 no_recursion=
1036 prefix=NONE
1037 program_prefix=NONE
1038 program_suffix=NONE
1039 program_transform_name=s,x,x,
1040 silent=
1041 site=
1042 srcdir=
1043 verbose=
1044 x_includes=NONE
1045 x_libraries=NONE
1046
1047 # Installation directory options.
1048 # These are left unexpanded so users can "make install exec_prefix=/foo"
1049 # and all the variables that are supposed to be based on exec_prefix
1050 # by default will actually change.
1051 # Use braces instead of parens because sh, perl, etc. also accept them.
1052 # (The list follows the same order as the GNU Coding Standards.)
1053 bindir='${exec_prefix}/bin'
1054 sbindir='${exec_prefix}/sbin'
1055 libexecdir='${exec_prefix}/libexec'
1056 datarootdir='${prefix}/share'
1057 datadir='${datarootdir}'
1058 sysconfdir='${prefix}/etc'
1059 sharedstatedir='${prefix}/com'
1060 localstatedir='${prefix}/var'
1061 includedir='${prefix}/include'
1062 oldincludedir='/usr/include'
1063 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1064 infodir='${datarootdir}/info'
1065 htmldir='${docdir}'
1066 dvidir='${docdir}'
1067 pdfdir='${docdir}'
1068 psdir='${docdir}'
1069 libdir='${exec_prefix}/lib'
1070 localedir='${datarootdir}/locale'
1071 mandir='${datarootdir}/man'
1072
1073 ac_prev=
1074 ac_dashdash=
1075 for ac_option
1076 do
1077   # If the previous option needs an argument, assign it.
1078   if test -n "$ac_prev"; then
1079     eval $ac_prev=\$ac_option
1080     ac_prev=
1081     continue
1082   fi
1083
1084   case $ac_option in
1085   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1086   *)    ac_optarg=yes ;;
1087   esac
1088
1089   # Accept the important Cygnus configure options, so we can diagnose typos.
1090
1091   case $ac_dashdash$ac_option in
1092   --)
1093     ac_dashdash=yes ;;
1094
1095   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1096     ac_prev=bindir ;;
1097   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098     bindir=$ac_optarg ;;
1099
1100   -build | --build | --buil | --bui | --bu)
1101     ac_prev=build_alias ;;
1102   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103     build_alias=$ac_optarg ;;
1104
1105   -cache-file | --cache-file | --cache-fil | --cache-fi \
1106   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107     ac_prev=cache_file ;;
1108   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110     cache_file=$ac_optarg ;;
1111
1112   --config-cache | -C)
1113     cache_file=config.cache ;;
1114
1115   -datadir | --datadir | --datadi | --datad)
1116     ac_prev=datadir ;;
1117   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118     datadir=$ac_optarg ;;
1119
1120   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121   | --dataroo | --dataro | --datar)
1122     ac_prev=datarootdir ;;
1123   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125     datarootdir=$ac_optarg ;;
1126
1127   -disable-* | --disable-*)
1128     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1131       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1132    { (exit 1); exit 1; }; }
1133     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1134     eval enable_$ac_feature=no ;;
1135
1136   -docdir | --docdir | --docdi | --doc | --do)
1137     ac_prev=docdir ;;
1138   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1139     docdir=$ac_optarg ;;
1140
1141   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1142     ac_prev=dvidir ;;
1143   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1144     dvidir=$ac_optarg ;;
1145
1146   -enable-* | --enable-*)
1147     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1153     eval enable_$ac_feature=\$ac_optarg ;;
1154
1155   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1156   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1157   | --exec | --exe | --ex)
1158     ac_prev=exec_prefix ;;
1159   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1160   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1161   | --exec=* | --exe=* | --ex=*)
1162     exec_prefix=$ac_optarg ;;
1163
1164   -gas | --gas | --ga | --g)
1165     # Obsolete; use --with-gas.
1166     with_gas=yes ;;
1167
1168   -help | --help | --hel | --he | -h)
1169     ac_init_help=long ;;
1170   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1171     ac_init_help=recursive ;;
1172   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1173     ac_init_help=short ;;
1174
1175   -host | --host | --hos | --ho)
1176     ac_prev=host_alias ;;
1177   -host=* | --host=* | --hos=* | --ho=*)
1178     host_alias=$ac_optarg ;;
1179
1180   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1181     ac_prev=htmldir ;;
1182   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1183   | --ht=*)
1184     htmldir=$ac_optarg ;;
1185
1186   -includedir | --includedir | --includedi | --included | --include \
1187   | --includ | --inclu | --incl | --inc)
1188     ac_prev=includedir ;;
1189   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1190   | --includ=* | --inclu=* | --incl=* | --inc=*)
1191     includedir=$ac_optarg ;;
1192
1193   -infodir | --infodir | --infodi | --infod | --info | --inf)
1194     ac_prev=infodir ;;
1195   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1196     infodir=$ac_optarg ;;
1197
1198   -libdir | --libdir | --libdi | --libd)
1199     ac_prev=libdir ;;
1200   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1201     libdir=$ac_optarg ;;
1202
1203   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1204   | --libexe | --libex | --libe)
1205     ac_prev=libexecdir ;;
1206   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1207   | --libexe=* | --libex=* | --libe=*)
1208     libexecdir=$ac_optarg ;;
1209
1210   -localedir | --localedir | --localedi | --localed | --locale)
1211     ac_prev=localedir ;;
1212   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1213     localedir=$ac_optarg ;;
1214
1215   -localstatedir | --localstatedir | --localstatedi | --localstated \
1216   | --localstate | --localstat | --localsta | --localst | --locals)
1217     ac_prev=localstatedir ;;
1218   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1219   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1220     localstatedir=$ac_optarg ;;
1221
1222   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1223     ac_prev=mandir ;;
1224   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1225     mandir=$ac_optarg ;;
1226
1227   -nfp | --nfp | --nf)
1228     # Obsolete; use --without-fp.
1229     with_fp=no ;;
1230
1231   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1232   | --no-cr | --no-c | -n)
1233     no_create=yes ;;
1234
1235   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1236   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1237     no_recursion=yes ;;
1238
1239   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1240   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1241   | --oldin | --oldi | --old | --ol | --o)
1242     ac_prev=oldincludedir ;;
1243   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1244   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1245   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1246     oldincludedir=$ac_optarg ;;
1247
1248   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1249     ac_prev=prefix ;;
1250   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1251     prefix=$ac_optarg ;;
1252
1253   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1254   | --program-pre | --program-pr | --program-p)
1255     ac_prev=program_prefix ;;
1256   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1257   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1258     program_prefix=$ac_optarg ;;
1259
1260   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1261   | --program-suf | --program-su | --program-s)
1262     ac_prev=program_suffix ;;
1263   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1264   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1265     program_suffix=$ac_optarg ;;
1266
1267   -program-transform-name | --program-transform-name \
1268   | --program-transform-nam | --program-transform-na \
1269   | --program-transform-n | --program-transform- \
1270   | --program-transform | --program-transfor \
1271   | --program-transfo | --program-transf \
1272   | --program-trans | --program-tran \
1273   | --progr-tra | --program-tr | --program-t)
1274     ac_prev=program_transform_name ;;
1275   -program-transform-name=* | --program-transform-name=* \
1276   | --program-transform-nam=* | --program-transform-na=* \
1277   | --program-transform-n=* | --program-transform-=* \
1278   | --program-transform=* | --program-transfor=* \
1279   | --program-transfo=* | --program-transf=* \
1280   | --program-trans=* | --program-tran=* \
1281   | --progr-tra=* | --program-tr=* | --program-t=*)
1282     program_transform_name=$ac_optarg ;;
1283
1284   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1285     ac_prev=pdfdir ;;
1286   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1287     pdfdir=$ac_optarg ;;
1288
1289   -psdir | --psdir | --psdi | --psd | --ps)
1290     ac_prev=psdir ;;
1291   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1292     psdir=$ac_optarg ;;
1293
1294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295   | -silent | --silent | --silen | --sile | --sil)
1296     silent=yes ;;
1297
1298   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1299     ac_prev=sbindir ;;
1300   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1301   | --sbi=* | --sb=*)
1302     sbindir=$ac_optarg ;;
1303
1304   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1305   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1306   | --sharedst | --shareds | --shared | --share | --shar \
1307   | --sha | --sh)
1308     ac_prev=sharedstatedir ;;
1309   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1310   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1311   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1312   | --sha=* | --sh=*)
1313     sharedstatedir=$ac_optarg ;;
1314
1315   -site | --site | --sit)
1316     ac_prev=site ;;
1317   -site=* | --site=* | --sit=*)
1318     site=$ac_optarg ;;
1319
1320   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1321     ac_prev=srcdir ;;
1322   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1323     srcdir=$ac_optarg ;;
1324
1325   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1326   | --syscon | --sysco | --sysc | --sys | --sy)
1327     ac_prev=sysconfdir ;;
1328   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1329   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1330     sysconfdir=$ac_optarg ;;
1331
1332   -target | --target | --targe | --targ | --tar | --ta | --t)
1333     ac_prev=target_alias ;;
1334   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1335     target_alias=$ac_optarg ;;
1336
1337   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1338     verbose=yes ;;
1339
1340   -version | --version | --versio | --versi | --vers | -V)
1341     ac_init_version=: ;;
1342
1343   -with-* | --with-*)
1344     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1347       { echo "$as_me: error: invalid package name: $ac_package" >&2
1348    { (exit 1); exit 1; }; }
1349     ac_package=`echo $ac_package| sed 's/-/_/g'`
1350     eval with_$ac_package=\$ac_optarg ;;
1351
1352   -without-* | --without-*)
1353     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354     # Reject names that are not valid shell variable names.
1355     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1356       { echo "$as_me: error: invalid package name: $ac_package" >&2
1357    { (exit 1); exit 1; }; }
1358     ac_package=`echo $ac_package | sed 's/-/_/g'`
1359     eval with_$ac_package=no ;;
1360
1361   --x)
1362     # Obsolete; use --with-x.
1363     with_x=yes ;;
1364
1365   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1366   | --x-incl | --x-inc | --x-in | --x-i)
1367     ac_prev=x_includes ;;
1368   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1369   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1370     x_includes=$ac_optarg ;;
1371
1372   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1373   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1374     ac_prev=x_libraries ;;
1375   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1376   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1377     x_libraries=$ac_optarg ;;
1378
1379   -*) { echo "$as_me: error: unrecognized option: $ac_option
1380 Try \`$0 --help' for more information." >&2
1381    { (exit 1); exit 1; }; }
1382     ;;
1383
1384   *=*)
1385     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1389    { (exit 1); exit 1; }; }
1390     eval $ac_envvar=\$ac_optarg
1391     export $ac_envvar ;;
1392
1393   *)
1394     # FIXME: should be removed in autoconf 3.0.
1395     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1396     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1398     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1399     ;;
1400
1401   esac
1402 done
1403
1404 if test -n "$ac_prev"; then
1405   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1406   { echo "$as_me: error: missing argument to $ac_option" >&2
1407    { (exit 1); exit 1; }; }
1408 fi
1409
1410 # Be sure to have absolute directory names.
1411 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412                 datadir sysconfdir sharedstatedir localstatedir includedir \
1413                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414                 libdir localedir mandir
1415 do
1416   eval ac_val=\$$ac_var
1417   case $ac_val in
1418     [\\/$]* | ?:[\\/]* )  continue;;
1419     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1420   esac
1421   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1422    { (exit 1); exit 1; }; }
1423 done
1424
1425 # There might be people who depend on the old broken behavior: `$host'
1426 # used to hold the argument of --host etc.
1427 # FIXME: To remove some day.
1428 build=$build_alias
1429 host=$host_alias
1430 target=$target_alias
1431
1432 # FIXME: To remove some day.
1433 if test "x$host_alias" != x; then
1434   if test "x$build_alias" = x; then
1435     cross_compiling=maybe
1436     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1437     If a cross compiler is detected then cross compile mode will be used." >&2
1438   elif test "x$build_alias" != "x$host_alias"; then
1439     cross_compiling=yes
1440   fi
1441 fi
1442
1443 ac_tool_prefix=
1444 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1445
1446 test "$silent" = yes && exec 6>/dev/null
1447
1448
1449 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1450 ac_ls_di=`ls -di .` &&
1451 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1452   { echo "$as_me: error: Working directory cannot be determined" >&2
1453    { (exit 1); exit 1; }; }
1454 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1455   { echo "$as_me: error: pwd does not report name of working directory" >&2
1456    { (exit 1); exit 1; }; }
1457
1458
1459 # Find the source files, if location was not specified.
1460 if test -z "$srcdir"; then
1461   ac_srcdir_defaulted=yes
1462   # Try the directory containing this script, then the parent directory.
1463   ac_confdir=`$as_dirname -- "$0" ||
1464 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1465          X"$0" : 'X\(//\)[^/]' \| \
1466          X"$0" : 'X\(//\)$' \| \
1467          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1468 echo X"$0" |
1469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1470             s//\1/
1471             q
1472           }
1473           /^X\(\/\/\)[^/].*/{
1474             s//\1/
1475             q
1476           }
1477           /^X\(\/\/\)$/{
1478             s//\1/
1479             q
1480           }
1481           /^X\(\/\).*/{
1482             s//\1/
1483             q
1484           }
1485           s/.*/./; q'`
1486   srcdir=$ac_confdir
1487   if test ! -r "$srcdir/$ac_unique_file"; then
1488     srcdir=..
1489   fi
1490 else
1491   ac_srcdir_defaulted=no
1492 fi
1493 if test ! -r "$srcdir/$ac_unique_file"; then
1494   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1495   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1496    { (exit 1); exit 1; }; }
1497 fi
1498 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1499 ac_abs_confdir=`(
1500         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1501    { (exit 1); exit 1; }; }
1502         pwd)`
1503 # When building in place, set srcdir=.
1504 if test "$ac_abs_confdir" = "$ac_pwd"; then
1505   srcdir=.
1506 fi
1507 # Remove unnecessary trailing slashes from srcdir.
1508 # Double slashes in file names in object file debugging info
1509 # mess up M-x gdb in Emacs.
1510 case $srcdir in
1511 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1512 esac
1513 for ac_var in $ac_precious_vars; do
1514   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1515   eval ac_env_${ac_var}_value=\$${ac_var}
1516   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1517   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1518 done
1519
1520 #
1521 # Report the --help message.
1522 #
1523 if test "$ac_init_help" = "long"; then
1524   # Omit some internal or obsolete options to make the list less imposing.
1525   # This message is too long to be a string in the A/UX 3.1 sh.
1526   cat <<_ACEOF
1527 \`configure' configures wxWidgets 2.8.0 to adapt to many kinds of systems.
1528
1529 Usage: $0 [OPTION]... [VAR=VALUE]...
1530
1531 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1532 VAR=VALUE.  See below for descriptions of some of the useful variables.
1533
1534 Defaults for the options are specified in brackets.
1535
1536 Configuration:
1537   -h, --help              display this help and exit
1538       --help=short        display options specific to this package
1539       --help=recursive    display the short help of all the included packages
1540   -V, --version           display version information and exit
1541   -q, --quiet, --silent   do not print \`checking...' messages
1542       --cache-file=FILE   cache test results in FILE [disabled]
1543   -C, --config-cache      alias for \`--cache-file=config.cache'
1544   -n, --no-create         do not create output files
1545       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1546
1547 Installation directories:
1548   --prefix=PREFIX         install architecture-independent files in PREFIX
1549                           [$ac_default_prefix]
1550   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1551                           [PREFIX]
1552
1553 By default, \`make install' will install all the files in
1554 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1555 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1556 for instance \`--prefix=\$HOME'.
1557
1558 For better control, use the options below.
1559
1560 Fine tuning of the installation directories:
1561   --bindir=DIR           user executables [EPREFIX/bin]
1562   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1563   --libexecdir=DIR       program executables [EPREFIX/libexec]
1564   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1565   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1566   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1567   --libdir=DIR           object code libraries [EPREFIX/lib]
1568   --includedir=DIR       C header files [PREFIX/include]
1569   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1570   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1571   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1572   --infodir=DIR          info documentation [DATAROOTDIR/info]
1573   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1574   --mandir=DIR           man documentation [DATAROOTDIR/man]
1575   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1576   --htmldir=DIR          html documentation [DOCDIR]
1577   --dvidir=DIR           dvi documentation [DOCDIR]
1578   --pdfdir=DIR           pdf documentation [DOCDIR]
1579   --psdir=DIR            ps documentation [DOCDIR]
1580 _ACEOF
1581
1582   cat <<\_ACEOF
1583
1584 X features:
1585   --x-includes=DIR    X include files are in DIR
1586   --x-libraries=DIR   X library files are in DIR
1587
1588 System types:
1589   --build=BUILD     configure for building on BUILD [guessed]
1590   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1591   --target=TARGET   configure for building compilers for TARGET [HOST]
1592 _ACEOF
1593 fi
1594
1595 if test -n "$ac_init_help"; then
1596   case $ac_init_help in
1597      short | recursive ) echo "Configuration of wxWidgets 2.8.0:";;
1598    esac
1599   cat <<\_ACEOF
1600
1601 Optional Features:
1602   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1603   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1604   --enable-gui            use GUI classes
1605   --enable-monolithic     build wxWidgets as single library
1606   --enable-plugins        build parts of wxWidgets as loadable components
1607   --enable-universal      use wxWidgets GUI controls instead of native ones
1608   --enable-nanox          use NanoX
1609   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1610   --enable-gpe            use GNOME PDA Environment features if possible
1611   --enable-shared         create shared library code
1612   --enable-optimise       create optimised code
1613   --enable-debug          same as debug_flag and debug_info
1614   --enable-stl            use STL for containers
1615   --enable-omf            use OMF object format
1616   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1617   --enable-debug_info     create code with debugging information
1618   --enable-debug_gdb      create code with extra GDB debugging information
1619   --enable-debug_cntxt    use wxDebugContext
1620   --enable-mem_tracing    create code with memory tracing
1621   --enable-profile        create code with profiling information
1622   --enable-no_rtti        create code without RTTI information
1623   --enable-no_exceptions  create code without C++ exceptions handling
1624   --enable-permissive     compile code disregarding strict ANSI
1625   --enable-no_deps        create code without dependency information
1626   --disable-vararg_macros don't use vararg macros, even if they are supported
1627   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
1628   --enable-compat24       enable wxWidgets 2.4 compatibility
1629   --disable-compat26      disable wxWidgets 2.6 compatibility
1630   --disable-rpath         disable use of rpath for uninstalled builds
1631   --enable-intl           use internationalization system
1632   --enable-config         use wxConfig (and derived) classes
1633   --enable-protocols      use wxProtocol and derived classes
1634   --enable-ftp            use wxFTP (requires wxProtocol
1635   --enable-http           use wxHTTP (requires wxProtocol
1636   --enable-fileproto      use wxFileProto class (requires wxProtocol
1637   --enable-sockets        use socket/network classes
1638   --enable-ole            use OLE classes (Win32 only)
1639   --enable-dataobj        use data object classes
1640   --enable-ipc            use interprocess communication (wxSocket etc.)
1641   --enable-apple_ieee     use the Apple IEEE codec
1642   --enable-arcstream      use wxArchive streams
1643   --enable-backtrace      use wxStackWalker class for getting backtraces
1644   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1645   --enable-cmdline        use wxCmdLineParser class
1646   --enable-datetime       use wxDateTime class
1647   --enable-debugreport    use wxDebugReport class
1648   --enable-dialupman      use dialup network classes
1649   --enable-dynlib         use wxLibrary class for DLL loading
1650   --enable-dynamicloader  use (new) wxDynamicLibrary class
1651   --enable-exceptions     build exception-safe library
1652   --enable-ffile          use wxFFile class
1653   --enable-file           use wxFile class
1654   --enable-filesystem     use virtual file systems classes
1655   --enable-fontmap        use font encodings conversion classes
1656   --enable-fs_archive     use virtual archive filesystems
1657   --enable-fs_inet        use virtual HTTP/FTP filesystems
1658   --enable-fs_zip         now replaced by fs_archive
1659   --enable-geometry       use geometry class
1660   --enable-log            use logging system
1661   --enable-longlong       use wxLongLong class
1662   --enable-mimetype       use wxMimeTypesManager
1663   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1664   --enable-snglinst       use wxSingleInstanceChecker class
1665   --enable-std_iostreams  use standard C++ stream classes
1666   --enable-std_string     use standard C++ string classes
1667   --enable-stdpaths       use wxStandardPaths class
1668   --enable-stopwatch      use wxStopWatch class
1669   --enable-streams        use wxStream etc classes
1670   --enable-sysoptions     use wxSystemOptions
1671   --enable-tarstream      use wxTar streams
1672   --enable-textbuf        use wxTextBuffer class
1673   --enable-textfile       use wxTextFile class
1674   --enable-timer          use wxTimer class
1675   --enable-unicode        compile wxString with Unicode support
1676   --enable-sound          use wxSound class
1677   --enable-mediactrl      use wxMediaCtrl class
1678   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1679   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1680   --enable-zipstream      use wxZip streams
1681   --enable-url            use wxURL class
1682   --enable-variant        use wxVariant class
1683   --enable-protocol       use wxProtocol class
1684   --enable-protocol-http  HTTP support in wxProtocol
1685   --enable-protocol-ftp   FTP support in wxProtocol
1686   --enable-protocol-file  FILE support in wxProtocol
1687   --enable-threads        use threads
1688   --enable-docview        use document view architecture
1689   --enable-help           use help subsystem
1690   --enable-mshtmlhelp     use MS HTML Help (win32)
1691   --enable-html           use wxHTML sub-library
1692   --enable-htmlhelp       use wxHTML-based help
1693   --enable-xrc            use XRC resources sub-library
1694   --enable-aui            use AUI docking library
1695   --enable-constraints    use layout-constraints system
1696   --enable-printarch      use printing architecture
1697   --enable-mdi            use multiple document interface architecture
1698   --enable-mdidoc         use docview architecture with MDI
1699   --enable-loggui         use standard GUI logger
1700   --enable-logwin         use wxLogWindow
1701   --enable-logdialog      use wxLogDialog
1702   --enable-webkit         use wxWebKitCtrl (Mac)
1703   --enable-richtext       use wxRichTextCtrl
1704   --enable-graphics_ctx   use graphics context 2D drawing API
1705   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1706   --enable-prologio       not available; see contrib
1707   --enable-resources      not available; see contrib
1708   --enable-clipboard      use wxClipboard class
1709   --enable-dnd            use Drag'n'Drop classes
1710   --enable-metafile       use win32 metafiles
1711   --enable-controls       use all usual controls
1712   --enable-accel          use accelerators
1713   --enable-animatectrl    use wxAnimationCtrl class
1714   --enable-button         use wxButton class
1715   --enable-bmpbutton      use wxBitmapButton class
1716   --enable-bmpcombobox    use wxBitmapComboBox class
1717   --enable-calendar       use wxCalendarCtrl class
1718   --enable-caret          use wxCaret class
1719   --enable-checkbox       use wxCheckBox class
1720   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1721   --enable-choice         use wxChoice class
1722   --enable-choicebook     use wxChoicebook class
1723   --enable-collpane       use wxCollapsiblePane class
1724   --enable-colourpicker   use wxColourPickerCtrl class
1725   --enable-combobox       use wxComboBox class
1726   --enable-comboctrl      use wxComboCtrl class
1727   --enable-datepick       use wxDatePickerCtrl class
1728   --enable-dirpicker      use wxDirPickerCtrl class
1729   --enable-display        use wxDisplay class
1730   --enable-detect_sm      use code to detect X11 session manager
1731   --enable-filepicker     use wxFilePickerCtrl class
1732   --enable-fontpicker     use wxFontPickerCtrl class
1733   --enable-gauge          use wxGauge class
1734   --enable-grid           use wxGrid class
1735   --enable-dataviewctrl   use wxDataViewCtrl class
1736   --enable-hyperlink      use wxHyperlinkCtrl class
1737   --enable-imaglist       use wxImageList class
1738   --enable-listbook       use wxListbook class
1739   --enable-listbox        use wxListBox class
1740   --enable-listctrl       use wxListCtrl class
1741   --enable-notebook       use wxNotebook class
1742   --enable-odcombobox     use wxOwnerDrawnComboBox class
1743   --enable-radiobox       use wxRadioBox class
1744   --enable-radiobtn       use wxRadioButton class
1745   --enable-sash           use wxSashWindow class
1746   --enable-scrollbar      use wxScrollBar class and scrollable windows
1747   --enable-searchctrl     use wxSearchCtrl class
1748   --enable-slider         use wxSlider class
1749   --enable-spinbtn        use wxSpinButton class
1750   --enable-spinctrl       use wxSpinCtrl class
1751   --enable-splitter       use wxSplitterWindow class
1752   --enable-statbmp        use wxStaticBitmap class
1753   --enable-statbox        use wxStaticBox class
1754   --enable-statline       use wxStaticLine class
1755   --enable-stattext       use wxStaticText class
1756   --enable-statusbar      use wxStatusBar class
1757   --enable-tabdialog      use wxTabControl class
1758   --enable-textctrl       use wxTextCtrl class
1759   --enable-togglebtn      use wxToggleButton class
1760   --enable-toolbar        use wxToolBar class
1761   --enable-tbarnative     use native wxToolBar class
1762   --enable-treebook       use wxTreebook class
1763   --enable-toolbook       use wxToolbook class
1764   --enable-treectrl       use wxTreeCtrl class
1765   --enable-tipwindow      use wxTipWindow class
1766   --enable-popupwin       use wxPopUpWindow class
1767   --enable-commondlg      use all common dialogs
1768   --enable-aboutdlg       use wxAboutBox
1769   --enable-choicedlg      use wxChoiceDialog
1770   --enable-coldlg         use wxColourDialog
1771   --enable-filedlg        use wxFileDialog
1772   --enable-finddlg        use wxFindReplaceDialog
1773   --enable-fontdlg        use wxFontDialog
1774   --enable-dirdlg         use wxDirDialog
1775   --enable-msgdlg         use wxMessageDialog
1776   --enable-numberdlg      use wxNumberEntryDialog
1777   --enable-splash         use wxSplashScreen
1778   --enable-textdlg        use wxTextDialog
1779   --enable-tipdlg         use startup tips
1780   --enable-progressdlg    use wxProgressDialog
1781   --enable-wizarddlg      use wxWizard
1782   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1783   --enable-miniframe      use wxMiniFrame class
1784   --enable-tooltips       use wxToolTip class
1785   --enable-splines        use spline drawing code
1786   --enable-mousewheel     use mousewheel
1787   --enable-validators     use wxValidator and derived classes
1788   --enable-busyinfo       use wxBusyInfo
1789   --enable-joystick       use wxJoystick
1790   --enable-metafiles      use wxMetaFile (Win32 only)
1791   --enable-dragimage      use wxDragImage
1792   --enable-accessibility  enable accessibility support
1793   --enable-dccache        cache temporary wxDC objects (Win32 only)
1794   --enable-palette        use wxPalette class
1795   --enable-image          use wxImage class
1796   --enable-gif            use gif images (GIF file format)
1797   --enable-pcx            use pcx images (PCX file format)
1798   --enable-tga            use tga images (TGA file format)
1799   --enable-iff            use iff images (IFF file format)
1800   --enable-pnm            use pnm images (PNM file format)
1801   --enable-xpm            use xpm images (XPM file format)
1802   --enable-icocur         use Windows ICO and CUR formats
1803   --enable-official_build official build of wxWidgets (win32 DLL only)
1804   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1805   --disable-largefile     omit support for large files
1806   --disable-gtktest       do not try to compile and run a test GTK+ program
1807   --disable-gtktest       Do not try to compile and run a test GTK program
1808   --disable-sdltest       Do not try to compile and run a test SDL program
1809   --enable-omf            use OMF object format (OS/2)
1810   --disable-dependency-tracking
1811                           don't use dependency tracking even if the compiler
1812                           can
1813   --disable-precomp-headers
1814                           don't use precompiled headers even if compiler can
1815
1816 Optional Packages:
1817   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1818   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1819   --without-subdirs       don't generate makefiles for samples/demos/...
1820   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1821   --with-motif            use Motif/Lesstif
1822   --with-mac              use Mac OS X
1823   --with-cocoa            use Cocoa
1824   --with-wine             use Wine
1825   --with-msw              use MS-Windows
1826   --with-pm               use OS/2 Presentation Manager
1827   --with-mgl              use SciTech MGL
1828   --with-directfb         use DirectFB
1829   --with-microwin         use MicroWindows
1830   --with-x11              use X11
1831   --with-libpng           use libpng (PNG image format)
1832   --with-libjpeg          use libjpeg (JPEG file format)
1833   --with-libtiff          use libtiff (TIFF file format)
1834   --with-libxpm           use libxpm (XPM file format)
1835   --with-libmspack        use libmspack (CHM help files loading)
1836   --with-sdl              use SDL for audio on Unix
1837   --with-gnomeprint       use GNOME print for printing under GNOME
1838   --with-gnomevfs         use GNOME VFS for associating MIME types
1839   --with-hildon           use Hildon framework for Nokia 770
1840   --with-opengl           use OpenGL (or Mesa)
1841   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1842   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1843   --with-regex            enable support for wxRegEx class
1844   --with-zlib             use zlib for LZW compression
1845   --with-odbc             use the IODBC and wxODBC classes
1846   --with-expat            enable XML support using expat parser
1847   --with-flavour=NAME     specify a name to identify this build
1848   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1849   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1850   --with-x                use the X Window System
1851   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1852   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1853   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1854   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1855   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1856
1857 Some influential environment variables:
1858   CC          C compiler command
1859   CFLAGS      C compiler flags
1860   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1861               nonstandard directory <lib dir>
1862   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1863               you have headers in a nonstandard directory <include dir>
1864   CPP         C preprocessor
1865   CXX         C++ compiler command
1866   CXXFLAGS    C++ compiler flags
1867   CXXCPP      C++ preprocessor
1868   PKG_CONFIG  path to pkg-config utility
1869   DIRECTFB_CFLAGS
1870               C compiler flags for DIRECTFB, overriding pkg-config
1871   DIRECTFB_LIBS
1872               linker flags for DIRECTFB, overriding pkg-config
1873   XMKMF       Path to xmkmf, Makefile generator for X Window System
1874   PANGOX_CFLAGS
1875               C compiler flags for PANGOX, overriding pkg-config
1876   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1877   PANGOFT2_CFLAGS
1878               C compiler flags for PANGOFT2, overriding pkg-config
1879   PANGOFT2_LIBS
1880               linker flags for PANGOFT2, overriding pkg-config
1881   PANGOXFT_CFLAGS
1882               C compiler flags for PANGOXFT, overriding pkg-config
1883   PANGOXFT_LIBS
1884               linker flags for PANGOXFT, overriding pkg-config
1885   LIBGNOMEPRINTUI_CFLAGS
1886               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1887   LIBGNOMEPRINTUI_LIBS
1888               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1889   GNOMEVFS_CFLAGS
1890               C compiler flags for GNOMEVFS, overriding pkg-config
1891   GNOMEVFS_LIBS
1892               linker flags for GNOMEVFS, overriding pkg-config
1893   HILDON_CFLAGS
1894               C compiler flags for HILDON, overriding pkg-config
1895   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1896   CAIRO_CFLAGS
1897               C compiler flags for CAIRO, overriding pkg-config
1898   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1899   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1900   GST_LIBS    linker flags for GST, overriding pkg-config
1901
1902 Use these variables to override the choices made by `configure' or to help
1903 it to find libraries and programs with nonstandard names/locations.
1904
1905 Report bugs to <wx-dev@lists.wxwidgets.org>.
1906 _ACEOF
1907 ac_status=$?
1908 fi
1909
1910 if test "$ac_init_help" = "recursive"; then
1911   # If there are subdirs, report their specific --help.
1912   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1913     test -d "$ac_dir" || continue
1914     ac_builddir=.
1915
1916 case "$ac_dir" in
1917 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 *)
1919   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1920   # A ".." for each directory in $ac_dir_suffix.
1921   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1922   case $ac_top_builddir_sub in
1923   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1924   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1925   esac ;;
1926 esac
1927 ac_abs_top_builddir=$ac_pwd
1928 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1929 # for backward compatibility:
1930 ac_top_builddir=$ac_top_build_prefix
1931
1932 case $srcdir in
1933   .)  # We are building in place.
1934     ac_srcdir=.
1935     ac_top_srcdir=$ac_top_builddir_sub
1936     ac_abs_top_srcdir=$ac_pwd ;;
1937   [\\/]* | ?:[\\/]* )  # Absolute name.
1938     ac_srcdir=$srcdir$ac_dir_suffix;
1939     ac_top_srcdir=$srcdir
1940     ac_abs_top_srcdir=$srcdir ;;
1941   *) # Relative name.
1942     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1943     ac_top_srcdir=$ac_top_build_prefix$srcdir
1944     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1945 esac
1946 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1947
1948     cd "$ac_dir" || { ac_status=$?; continue; }
1949     # Check for guested configure.
1950     if test -f "$ac_srcdir/configure.gnu"; then
1951       echo &&
1952       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1953     elif test -f "$ac_srcdir/configure"; then
1954       echo &&
1955       $SHELL "$ac_srcdir/configure" --help=recursive
1956     else
1957       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1958     fi || ac_status=$?
1959     cd "$ac_pwd" || { ac_status=$?; break; }
1960   done
1961 fi
1962
1963 test -n "$ac_init_help" && exit $ac_status
1964 if $ac_init_version; then
1965   cat <<\_ACEOF
1966 wxWidgets configure 2.8.0
1967 generated by GNU Autoconf 2.60
1968
1969 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1970 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1971 This configure script is free software; the Free Software Foundation
1972 gives unlimited permission to copy, distribute and modify it.
1973 _ACEOF
1974   exit
1975 fi
1976 cat >config.log <<_ACEOF
1977 This file contains any messages produced by compilers while
1978 running configure, to aid debugging if configure makes a mistake.
1979
1980 It was created by wxWidgets $as_me 2.8.0, which was
1981 generated by GNU Autoconf 2.60.  Invocation command line was
1982
1983   $ $0 $@
1984
1985 _ACEOF
1986 exec 5>>config.log
1987 {
1988 cat <<_ASUNAME
1989 ## --------- ##
1990 ## Platform. ##
1991 ## --------- ##
1992
1993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998
1999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2001
2002 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2003 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2006 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2007 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2008 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2009
2010 _ASUNAME
2011
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   echo "PATH: $as_dir"
2018 done
2019 IFS=$as_save_IFS
2020
2021 } >&5
2022
2023 cat >&5 <<_ACEOF
2024
2025
2026 ## ----------- ##
2027 ## Core tests. ##
2028 ## ----------- ##
2029
2030 _ACEOF
2031
2032
2033 # Keep a trace of the command line.
2034 # Strip out --no-create and --no-recursion so they do not pile up.
2035 # Strip out --silent because we don't want to record it for future runs.
2036 # Also quote any args containing shell meta-characters.
2037 # Make two passes to allow for proper duplicate-argument suppression.
2038 ac_configure_args=
2039 ac_configure_args0=
2040 ac_configure_args1=
2041 ac_must_keep_next=false
2042 for ac_pass in 1 2
2043 do
2044   for ac_arg
2045   do
2046     case $ac_arg in
2047     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049     | -silent | --silent | --silen | --sile | --sil)
2050       continue ;;
2051     *\'*)
2052       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2053     esac
2054     case $ac_pass in
2055     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2056     2)
2057       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2058       if test $ac_must_keep_next = true; then
2059         ac_must_keep_next=false # Got value, back to normal.
2060       else
2061         case $ac_arg in
2062           *=* | --config-cache | -C | -disable-* | --disable-* \
2063           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065           | -with-* | --with-* | -without-* | --without-* | --x)
2066             case "$ac_configure_args0 " in
2067               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2068             esac
2069             ;;
2070           -* ) ac_must_keep_next=true ;;
2071         esac
2072       fi
2073       ac_configure_args="$ac_configure_args '$ac_arg'"
2074       ;;
2075     esac
2076   done
2077 done
2078 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2079 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2080
2081 # When interrupted or exit'd, cleanup temporary files, and complete
2082 # config.log.  We remove comments because anyway the quotes in there
2083 # would cause problems or look ugly.
2084 # WARNING: Use '\'' to represent an apostrophe within the trap.
2085 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2086 trap 'exit_status=$?
2087   # Save into config.log some information that might help in debugging.
2088   {
2089     echo
2090
2091     cat <<\_ASBOX
2092 ## ---------------- ##
2093 ## Cache variables. ##
2094 ## ---------------- ##
2095 _ASBOX
2096     echo
2097     # The following way of writing the cache mishandles newlines in values,
2098 (
2099   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2100     eval ac_val=\$$ac_var
2101     case $ac_val in #(
2102     *${as_nl}*)
2103       case $ac_var in #(
2104       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2105 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2106       esac
2107       case $ac_var in #(
2108       _ | IFS | as_nl) ;; #(
2109       *) $as_unset $ac_var ;;
2110       esac ;;
2111     esac
2112   done
2113   (set) 2>&1 |
2114     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2115     *${as_nl}ac_space=\ *)
2116       sed -n \
2117         "s/'\''/'\''\\\\'\'''\''/g;
2118           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2119       ;; #(
2120     *)
2121       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2122       ;;
2123     esac |
2124     sort
2125 )
2126     echo
2127
2128     cat <<\_ASBOX
2129 ## ----------------- ##
2130 ## Output variables. ##
2131 ## ----------------- ##
2132 _ASBOX
2133     echo
2134     for ac_var in $ac_subst_vars
2135     do
2136       eval ac_val=\$$ac_var
2137       case $ac_val in
2138       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139       esac
2140       echo "$ac_var='\''$ac_val'\''"
2141     done | sort
2142     echo
2143
2144     if test -n "$ac_subst_files"; then
2145       cat <<\_ASBOX
2146 ## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##
2149 _ASBOX
2150       echo
2151       for ac_var in $ac_subst_files
2152       do
2153         eval ac_val=\$$ac_var
2154         case $ac_val in
2155         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156         esac
2157         echo "$ac_var='\''$ac_val'\''"
2158       done | sort
2159       echo
2160     fi
2161
2162     if test -s confdefs.h; then
2163       cat <<\_ASBOX
2164 ## ----------- ##
2165 ## confdefs.h. ##
2166 ## ----------- ##
2167 _ASBOX
2168       echo
2169       cat confdefs.h
2170       echo
2171     fi
2172     test "$ac_signal" != 0 &&
2173       echo "$as_me: caught signal $ac_signal"
2174     echo "$as_me: exit $exit_status"
2175   } >&5
2176   rm -f core *.core core.conftest.* &&
2177     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178     exit $exit_status
2179 ' 0
2180 for ac_signal in 1 2 13 15; do
2181   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2182 done
2183 ac_signal=0
2184
2185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2186 rm -f -r conftest* confdefs.h
2187
2188 # Predefined preprocessor variables.
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_NAME "$PACKAGE_NAME"
2192 _ACEOF
2193
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2197 _ACEOF
2198
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2202 _ACEOF
2203
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_STRING "$PACKAGE_STRING"
2207 _ACEOF
2208
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2212 _ACEOF
2213
2214
2215 # Let the site file select an alternate cache file if it wants to.
2216 # Prefer explicitly selected file to automatically selected ones.
2217 if test -n "$CONFIG_SITE"; then
2218   set x "$CONFIG_SITE"
2219 elif test "x$prefix" != xNONE; then
2220   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2221 else
2222   set x "$ac_default_prefix/share/config.site" \
2223         "$ac_default_prefix/etc/config.site"
2224 fi
2225 shift
2226 for ac_site_file
2227 do
2228   if test -r "$ac_site_file"; then
2229     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2230 echo "$as_me: loading site script $ac_site_file" >&6;}
2231     sed 's/^/| /' "$ac_site_file" >&5
2232     . "$ac_site_file"
2233   fi
2234 done
2235
2236 if test -r "$cache_file"; then
2237   # Some versions of bash will fail to source /dev/null (special
2238   # files actually), so we avoid doing that.
2239   if test -f "$cache_file"; then
2240     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2241 echo "$as_me: loading cache $cache_file" >&6;}
2242     case $cache_file in
2243       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2244       *)                      . "./$cache_file";;
2245     esac
2246   fi
2247 else
2248   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2249 echo "$as_me: creating cache $cache_file" >&6;}
2250   >$cache_file
2251 fi
2252
2253 # Check that the precious variables saved in the cache have kept the same
2254 # value.
2255 ac_cache_corrupted=false
2256 for ac_var in $ac_precious_vars; do
2257   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2258   eval ac_new_set=\$ac_env_${ac_var}_set
2259   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2260   eval ac_new_val=\$ac_env_${ac_var}_value
2261   case $ac_old_set,$ac_new_set in
2262     set,)
2263       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2265       ac_cache_corrupted=: ;;
2266     ,set)
2267       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2269       ac_cache_corrupted=: ;;
2270     ,);;
2271     *)
2272       if test "x$ac_old_val" != "x$ac_new_val"; then
2273         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2275         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2276 echo "$as_me:   former value:  $ac_old_val" >&2;}
2277         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2278 echo "$as_me:   current value: $ac_new_val" >&2;}
2279         ac_cache_corrupted=:
2280       fi;;
2281   esac
2282   # Pass precious variables to config.status.
2283   if test "$ac_new_set" = set; then
2284     case $ac_new_val in
2285     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2286     *) ac_arg=$ac_var=$ac_new_val ;;
2287     esac
2288     case " $ac_configure_args " in
2289       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2290       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2291     esac
2292   fi
2293 done
2294 if $ac_cache_corrupted; then
2295   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2296 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2298 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2299    { (exit 1); exit 1; }; }
2300 fi
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326 ac_ext=c
2327 ac_cpp='$CPP $CPPFLAGS'
2328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331
2332
2333
2334
2335
2336 ac_aux_dir=
2337 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2338   if test -f "$ac_dir/install-sh"; then
2339     ac_aux_dir=$ac_dir
2340     ac_install_sh="$ac_aux_dir/install-sh -c"
2341     break
2342   elif test -f "$ac_dir/install.sh"; then
2343     ac_aux_dir=$ac_dir
2344     ac_install_sh="$ac_aux_dir/install.sh -c"
2345     break
2346   elif test -f "$ac_dir/shtool"; then
2347     ac_aux_dir=$ac_dir
2348     ac_install_sh="$ac_aux_dir/shtool install -c"
2349     break
2350   fi
2351 done
2352 if test -z "$ac_aux_dir"; then
2353   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2354 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2355    { (exit 1); exit 1; }; }
2356 fi
2357
2358 # These three variables are undocumented and unsupported,
2359 # and are intended to be withdrawn in a future Autoconf release.
2360 # They can cause serious problems if a builder's source tree is in a directory
2361 # whose full name contains unusual characters.
2362 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2363 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2364 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2365
2366
2367 # Make sure we can run config.sub.
2368 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2369   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2370 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2371    { (exit 1); exit 1; }; }
2372
2373 { echo "$as_me:$LINENO: checking build system type" >&5
2374 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2375 if test "${ac_cv_build+set}" = set; then
2376   echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378   ac_build_alias=$build_alias
2379 test "x$ac_build_alias" = x &&
2380   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2381 test "x$ac_build_alias" = x &&
2382   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2383 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2384    { (exit 1); exit 1; }; }
2385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2386   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2387 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2388    { (exit 1); exit 1; }; }
2389
2390 fi
2391 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2392 echo "${ECHO_T}$ac_cv_build" >&6; }
2393 case $ac_cv_build in
2394 *-*-*) ;;
2395 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2396 echo "$as_me: error: invalid value of canonical build" >&2;}
2397    { (exit 1); exit 1; }; };;
2398 esac
2399 build=$ac_cv_build
2400 ac_save_IFS=$IFS; IFS='-'
2401 set x $ac_cv_build
2402 shift
2403 build_cpu=$1
2404 build_vendor=$2
2405 shift; shift
2406 # Remember, the first character of IFS is used to create $*,
2407 # except with old shells:
2408 build_os=$*
2409 IFS=$ac_save_IFS
2410 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2411
2412
2413 { echo "$as_me:$LINENO: checking host system type" >&5
2414 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2415 if test "${ac_cv_host+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   if test "x$host_alias" = x; then
2419   ac_cv_host=$ac_cv_build
2420 else
2421   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2422     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2423 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2424    { (exit 1); exit 1; }; }
2425 fi
2426
2427 fi
2428 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2429 echo "${ECHO_T}$ac_cv_host" >&6; }
2430 case $ac_cv_host in
2431 *-*-*) ;;
2432 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2433 echo "$as_me: error: invalid value of canonical host" >&2;}
2434    { (exit 1); exit 1; }; };;
2435 esac
2436 host=$ac_cv_host
2437 ac_save_IFS=$IFS; IFS='-'
2438 set x $ac_cv_host
2439 shift
2440 host_cpu=$1
2441 host_vendor=$2
2442 shift; shift
2443 # Remember, the first character of IFS is used to create $*,
2444 # except with old shells:
2445 host_os=$*
2446 IFS=$ac_save_IFS
2447 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2448
2449
2450 { echo "$as_me:$LINENO: checking target system type" >&5
2451 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2452 if test "${ac_cv_target+set}" = set; then
2453   echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455   if test "x$target_alias" = x; then
2456   ac_cv_target=$ac_cv_host
2457 else
2458   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2459     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2460 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2461    { (exit 1); exit 1; }; }
2462 fi
2463
2464 fi
2465 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2466 echo "${ECHO_T}$ac_cv_target" >&6; }
2467 case $ac_cv_target in
2468 *-*-*) ;;
2469 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2470 echo "$as_me: error: invalid value of canonical target" >&2;}
2471    { (exit 1); exit 1; }; };;
2472 esac
2473 target=$ac_cv_target
2474 ac_save_IFS=$IFS; IFS='-'
2475 set x $ac_cv_target
2476 shift
2477 target_cpu=$1
2478 target_vendor=$2
2479 shift; shift
2480 # Remember, the first character of IFS is used to create $*,
2481 # except with old shells:
2482 target_os=$*
2483 IFS=$ac_save_IFS
2484 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2485
2486
2487 # The aliases save the names the user supplied, while $host etc.
2488 # will get canonicalized.
2489 test -n "$target_alias" &&
2490   test "$program_prefix$program_suffix$program_transform_name" = \
2491     NONENONEs,x,x, &&
2492   program_prefix=${target_alias}-
2493
2494
2495
2496 wx_major_version_number=2
2497 wx_minor_version_number=8
2498 wx_release_number=0
2499 wx_subrelease_number=1
2500
2501 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2502 WX_VERSION=$WX_RELEASE.$wx_release_number
2503 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2504
2505 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2506
2507
2508 wx_top_builddir="`pwd`"
2509
2510
2511
2512
2513 USE_UNIX=1
2514 USE_OS2=0
2515 USE_WIN32=0
2516 USE_DOS=0
2517 USE_BEOS=0
2518 USE_MAC=0
2519
2520 USE_AIX=
2521 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2522 USE_GNU=                            USE_HPUX=
2523 USE_LINUX=
2524 USE_NETBSD=
2525 USE_OPENBSD=
2526 USE_OSF=                            USE_SGI=
2527 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2528 USE_ULTRIX=
2529 USE_UNIXWARE=
2530
2531 USE_ALPHA=
2532
2533 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2534
2535 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2536
2537 DEFAULT_wxUSE_COCOA=0
2538 DEFAULT_wxUSE_GTK=0
2539 DEFAULT_wxUSE_MAC=0
2540 DEFAULT_wxUSE_MGL=0
2541 DEFAULT_wxUSE_MICROWIN=0
2542 DEFAULT_wxUSE_MOTIF=0
2543 DEFAULT_wxUSE_MSW=0
2544 DEFAULT_wxUSE_PM=0
2545 DEFAULT_wxUSE_X11=0
2546 DEFAULT_wxUSE_DFB=0
2547
2548 DEFAULT_DEFAULT_wxUSE_COCOA=0
2549 DEFAULT_DEFAULT_wxUSE_GTK=0
2550 DEFAULT_DEFAULT_wxUSE_MAC=0
2551 DEFAULT_DEFAULT_wxUSE_MGL=0
2552 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2553 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2554 DEFAULT_DEFAULT_wxUSE_MSW=0
2555 DEFAULT_DEFAULT_wxUSE_PM=0
2556 DEFAULT_DEFAULT_wxUSE_X11=0
2557 DEFAULT_DEFAULT_wxUSE_DFB=0
2558
2559 PROGRAM_EXT=
2560 SO_SUFFIX=so
2561 SAMPLES_RPATH_FLAG=
2562 SAMPLES_RPATH_POSTLINK=
2563
2564 DEFAULT_STD_FLAG=yes
2565
2566 case "${host}" in
2567   *-hp-hpux* )
2568     USE_HPUX=1
2569     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2570     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2571     SO_SUFFIX=sl
2572     cat >>confdefs.h <<\_ACEOF
2573 #define __HPUX__ 1
2574 _ACEOF
2575
2576
2577             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2578   ;;
2579   *-*-linux* )
2580     USE_LINUX=1
2581     cat >>confdefs.h <<\_ACEOF
2582 #define __LINUX__ 1
2583 _ACEOF
2584
2585     TMP=`uname -m`
2586     if test "x$TMP" = "xalpha"; then
2587       USE_ALPHA=1
2588       cat >>confdefs.h <<\_ACEOF
2589 #define __ALPHA__ 1
2590 _ACEOF
2591
2592     fi
2593     DEFAULT_DEFAULT_wxUSE_GTK=1
2594   ;;
2595   *-*-gnu* | *-*-k*bsd*-gnu )
2596     USE_GNU=1
2597     TMP=`uname -m`
2598     if test "x$TMP" = "xalpha"; then
2599       USE_ALPHA=1
2600       cat >>confdefs.h <<\_ACEOF
2601 #define __ALPHA__ 1
2602 _ACEOF
2603
2604     fi
2605     DEFAULT_DEFAULT_wxUSE_GTK=1
2606   ;;
2607   *-*-irix5* | *-*-irix6* )
2608     USE_SGI=1
2609     USE_SVR4=1
2610     cat >>confdefs.h <<\_ACEOF
2611 #define __SGI__ 1
2612 _ACEOF
2613
2614     cat >>confdefs.h <<\_ACEOF
2615 #define __SVR4__ 1
2616 _ACEOF
2617
2618     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2619   ;;
2620   *-*-solaris2* )
2621     USE_SUN=1
2622     USE_SOLARIS=1
2623     USE_SVR4=1
2624     cat >>confdefs.h <<\_ACEOF
2625 #define __SUN__ 1
2626 _ACEOF
2627
2628     cat >>confdefs.h <<\_ACEOF
2629 #define __SOLARIS__ 1
2630 _ACEOF
2631
2632     cat >>confdefs.h <<\_ACEOF
2633 #define __SVR4__ 1
2634 _ACEOF
2635
2636     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2637     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2638   ;;
2639   *-*-sunos4* )
2640     USE_SUN=1
2641     USE_SUNOS=1
2642     USE_BSD=1
2643     cat >>confdefs.h <<\_ACEOF
2644 #define __SUN__ 1
2645 _ACEOF
2646
2647     cat >>confdefs.h <<\_ACEOF
2648 #define __SUNOS__ 1
2649 _ACEOF
2650
2651     cat >>confdefs.h <<\_ACEOF
2652 #define __BSD__ 1
2653 _ACEOF
2654
2655     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2656   ;;
2657   *-*-freebsd*)
2658     USE_BSD=1
2659     USE_FREEBSD=1
2660     cat >>confdefs.h <<\_ACEOF
2661 #define __FREEBSD__ 1
2662 _ACEOF
2663
2664     cat >>confdefs.h <<\_ACEOF
2665 #define __BSD__ 1
2666 _ACEOF
2667
2668     DEFAULT_DEFAULT_wxUSE_GTK=1
2669   ;;
2670   *-*-openbsd*|*-*-mirbsd*)
2671     USE_BSD=1
2672     USE_OPENBSD=1
2673     cat >>confdefs.h <<\_ACEOF
2674 #define __OPENBSD__ 1
2675 _ACEOF
2676
2677     cat >>confdefs.h <<\_ACEOF
2678 #define __BSD__ 1
2679 _ACEOF
2680
2681     DEFAULT_DEFAULT_wxUSE_GTK=1
2682   ;;
2683   *-*-netbsd*)
2684     USE_BSD=1
2685     USE_NETBSD=1
2686     cat >>confdefs.h <<\_ACEOF
2687 #define __NETBSD__ 1
2688 _ACEOF
2689
2690     cat >>confdefs.h <<\_ACEOF
2691 #define __BSD__ 1
2692 _ACEOF
2693
2694     DEFAULT_DEFAULT_wxUSE_GTK=1
2695     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2696
2697             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2698   ;;
2699   *-*-osf* )
2700     USE_ALPHA=1
2701     USE_OSF=1
2702     cat >>confdefs.h <<\_ACEOF
2703 #define __ALPHA__ 1
2704 _ACEOF
2705
2706     cat >>confdefs.h <<\_ACEOF
2707 #define __OSF__ 1
2708 _ACEOF
2709
2710     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2711     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2712   ;;
2713   *-*-dgux5* )
2714     USE_ALPHA=1
2715     USE_SVR4=1
2716     cat >>confdefs.h <<\_ACEOF
2717 #define __ALPHA__ 1
2718 _ACEOF
2719
2720     cat >>confdefs.h <<\_ACEOF
2721 #define __SVR4__ 1
2722 _ACEOF
2723
2724     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2725   ;;
2726   *-*-sysv5* )
2727     USE_SYSV=1
2728     USE_SVR4=1
2729     cat >>confdefs.h <<\_ACEOF
2730 #define __SYSV__ 1
2731 _ACEOF
2732
2733     cat >>confdefs.h <<\_ACEOF
2734 #define __SVR4__ 1
2735 _ACEOF
2736
2737     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2738   ;;
2739   *-*-aix* )
2740     USE_AIX=1
2741     USE_SYSV=1
2742     USE_SVR4=1
2743                         SO_SUFFIX=a
2744     cat >>confdefs.h <<\_ACEOF
2745 #define __AIX__ 1
2746 _ACEOF
2747
2748     cat >>confdefs.h <<\_ACEOF
2749 #define __SYSV__ 1
2750 _ACEOF
2751
2752     cat >>confdefs.h <<\_ACEOF
2753 #define __SVR4__ 1
2754 _ACEOF
2755
2756     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2757   ;;
2758
2759   *-*-*UnixWare*)
2760     USE_SYSV=1
2761     USE_SVR4=1
2762     USE_UNIXWARE=1
2763     cat >>confdefs.h <<\_ACEOF
2764 #define __UNIXWARE__ 1
2765 _ACEOF
2766
2767   ;;
2768
2769   *-*-cygwin* | *-*-mingw32* )
2770                 SO_SUFFIX=dll
2771     PROGRAM_EXT=".exe"
2772     DEFAULT_DEFAULT_wxUSE_MSW=1
2773   ;;
2774
2775   *-pc-msdosdjgpp )
2776     USE_UNIX=0
2777     USE_DOS=1
2778     cat >>confdefs.h <<\_ACEOF
2779 #define __DOS__ 1
2780 _ACEOF
2781
2782     PROGRAM_EXT=".exe"
2783     DEFAULT_DEFAULT_wxUSE_MGL=1
2784   ;;
2785
2786   *-pc-os2_emx | *-pc-os2-emx )
2787     cat >>confdefs.h <<\_ACEOF
2788 #define __EMX__ 1
2789 _ACEOF
2790
2791     USE_OS2=1
2792     cat >>confdefs.h <<\_ACEOF
2793 #define __OS2__ 1
2794 _ACEOF
2795
2796     PROGRAM_EXT=".exe"
2797     DEFAULT_DEFAULT_wxUSE_PM=1
2798         CXX=gcc
2799     LDFLAGS="$LDFLAGS -Zcrtdll"
2800                         ac_executable_extensions=".exe"
2801     export ac_executable_extensions
2802             ac_save_IFS="$IFS"
2803     IFS='\\'
2804     ac_TEMP_PATH=
2805     for ac_dir in $PATH; do
2806       IFS=$ac_save_IFS
2807       if test -z "$ac_TEMP_PATH"; then
2808         ac_TEMP_PATH="$ac_dir"
2809       else
2810         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2811       fi
2812     done
2813     export PATH="$ac_TEMP_PATH"
2814     unset ac_TEMP_PATH
2815     DEFAULT_STD_FLAG=no
2816   ;;
2817
2818   *-*-darwin* )
2819         USE_BSD=1
2820     USE_DARWIN=1
2821     SO_SUFFIX=dylib
2822     cat >>confdefs.h <<\_ACEOF
2823 #define __BSD__ 1
2824 _ACEOF
2825
2826     cat >>confdefs.h <<\_ACEOF
2827 #define __DARWIN__ 1
2828 _ACEOF
2829
2830     cat >>confdefs.h <<\_ACEOF
2831 #define TARGET_CARBON 1
2832 _ACEOF
2833
2834     DEFAULT_DEFAULT_wxUSE_MAC=1
2835     DEFAULT_STD_FLAG=no
2836   ;;
2837   powerpc-apple-macos* )
2838         USE_UNIX=0
2839             ac_cv_c_bigendian=yes
2840     SO_SUFFIX=shlib
2841             DEFAULT_DEFAULT_wxUSE_MAC=1
2842     DEFAULT_STD_FLAG=no
2843   ;;
2844
2845   *-*-beos* )
2846         USE_BEOS=1
2847     cat >>confdefs.h <<\_ACEOF
2848 #define __BEOS__ 1
2849 _ACEOF
2850
2851   ;;
2852
2853   *)
2854     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2855 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2856     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2857 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2858
2859     DEFAULT_DEFAULT_wxUSE_X11=1
2860     DEFAULT_wxUSE_SHARED=no
2861 esac
2862
2863
2864
2865
2866           wx_arg_cache_file="configarg.cache"
2867           echo "loading argument cache $wx_arg_cache_file"
2868           rm -f ${wx_arg_cache_file}.tmp
2869           touch ${wx_arg_cache_file}.tmp
2870           touch ${wx_arg_cache_file}
2871
2872
2873 DEBUG_CONFIGURE=0
2874 if test $DEBUG_CONFIGURE = 1; then
2875   DEFAULT_wxUSE_UNIVERSAL=no
2876   DEFAULT_wxUSE_STL=no
2877
2878   DEFAULT_wxUSE_NANOX=no
2879
2880   DEFAULT_wxUSE_THREADS=yes
2881
2882   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2883   DEFAULT_wxUSE_OPTIMISE=no
2884   DEFAULT_wxUSE_PROFILE=no
2885   DEFAULT_wxUSE_NO_DEPS=no
2886   DEFAULT_wxUSE_VARARG_MACROS=no
2887   DEFAULT_wxUSE_NO_RTTI=no
2888   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2889   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2890   DEFAULT_wxUSE_RPATH=yes
2891   DEFAULT_wxUSE_PERMISSIVE=no
2892   DEFAULT_wxUSE_DEBUG_FLAG=yes
2893   DEFAULT_wxUSE_DEBUG_INFO=yes
2894   DEFAULT_wxUSE_DEBUG_GDB=yes
2895   DEFAULT_wxUSE_MEM_TRACING=no
2896   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2897   DEFAULT_wxUSE_DMALLOC=no
2898   DEFAULT_wxUSE_APPLE_IEEE=no
2899
2900   DEFAULT_wxUSE_EXCEPTIONS=no
2901   DEFAULT_wxUSE_LOG=yes
2902   DEFAULT_wxUSE_LOGWINDOW=no
2903   DEFAULT_wxUSE_LOGGUI=no
2904   DEFAULT_wxUSE_LOGDIALOG=no
2905
2906   DEFAULT_wxUSE_GUI=yes
2907   DEFAULT_wxUSE_CONTROLS=no
2908
2909   DEFAULT_wxUSE_REGEX=no
2910   DEFAULT_wxUSE_XML=no
2911   DEFAULT_wxUSE_EXPAT=no
2912   DEFAULT_wxUSE_ZLIB=no
2913   DEFAULT_wxUSE_LIBPNG=no
2914   DEFAULT_wxUSE_LIBJPEG=no
2915   DEFAULT_wxUSE_LIBTIFF=no
2916   DEFAULT_wxUSE_LIBXPM=no
2917   DEFAULT_wxUSE_LIBMSPACK=no
2918   DEFAULT_wxUSE_LIBSDL=no
2919   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2920   DEFAULT_wxUSE_LIBGNOMEVFS=no
2921   DEFAULT_wxUSE_LIBHILDON=no
2922   DEFAULT_wxUSE_ODBC=no
2923   DEFAULT_wxUSE_OPENGL=no
2924
2925   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2926   DEFAULT_wxUSE_STACKWALKER=no
2927   DEFAULT_wxUSE_DEBUGREPORT=no
2928   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2929   DEFAULT_wxUSE_STD_IOSTREAM=no
2930   DEFAULT_wxUSE_STD_STRING=no
2931   DEFAULT_wxUSE_CMDLINE_PARSER=no
2932   DEFAULT_wxUSE_DATETIME=no
2933   DEFAULT_wxUSE_TIMER=no
2934   DEFAULT_wxUSE_STOPWATCH=no
2935   DEFAULT_wxUSE_FILE=no
2936   DEFAULT_wxUSE_FFILE=no
2937   DEFAULT_wxUSE_STDPATHS=no
2938   DEFAULT_wxUSE_TEXTBUFFER=no
2939   DEFAULT_wxUSE_TEXTFILE=no
2940   DEFAULT_wxUSE_SOUND=no
2941   DEFAULT_wxUSE_MEDIACTRL=no
2942   DEFAULT_wxUSE_GSTREAMER8=no
2943   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2944   DEFAULT_wxUSE_INTL=no
2945   DEFAULT_wxUSE_CONFIG=no
2946   DEFAULT_wxUSE_FONTMAP=no
2947   DEFAULT_wxUSE_STREAMS=no
2948   DEFAULT_wxUSE_SOCKETS=no
2949   DEFAULT_wxUSE_OLE=no
2950   DEFAULT_wxUSE_DATAOBJ=no
2951   DEFAULT_wxUSE_DIALUP_MANAGER=no
2952   DEFAULT_wxUSE_JOYSTICK=no
2953   DEFAULT_wxUSE_DYNLIB_CLASS=no
2954   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2955   DEFAULT_wxUSE_LONGLONG=no
2956   DEFAULT_wxUSE_GEOMETRY=no
2957
2958   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2959   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2960   DEFAULT_wxUSE_POSTSCRIPT=no
2961
2962   DEFAULT_wxUSE_CLIPBOARD=no
2963   DEFAULT_wxUSE_TOOLTIPS=no
2964   DEFAULT_wxUSE_DRAG_AND_DROP=no
2965   DEFAULT_wxUSE_DRAGIMAGE=no
2966   DEFAULT_wxUSE_SPLINES=no
2967   DEFAULT_wxUSE_MOUSEWHEEL=no
2968
2969   DEFAULT_wxUSE_MDI=no
2970   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2971   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2972   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2973
2974   DEFAULT_wxUSE_RESOURCES=no
2975   DEFAULT_wxUSE_CONSTRAINTS=no
2976   DEFAULT_wxUSE_IPC=no
2977   DEFAULT_wxUSE_HELP=no
2978   DEFAULT_wxUSE_MS_HTML_HELP=no
2979   DEFAULT_wxUSE_WXHTML_HELP=no
2980   DEFAULT_wxUSE_TREELAYOUT=no
2981   DEFAULT_wxUSE_METAFILE=no
2982   DEFAULT_wxUSE_MIMETYPE=no
2983   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2984   DEFAULT_wxUSE_PROTOCOL=no
2985   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2986   DEFAULT_wxUSE_PROTOCOL_FTP=no
2987   DEFAULT_wxUSE_PROTOCOL_FILE=no
2988   DEFAULT_wxUSE_URL=no
2989   DEFAULT_wxUSE_VARIANT=no
2990
2991   DEFAULT_wxUSE_ABOUTDLG=no
2992   DEFAULT_wxUSE_COMMONDLGS=no
2993   DEFAULT_wxUSE_CHOICEDLG=no
2994   DEFAULT_wxUSE_COLOURDLG=no
2995   DEFAULT_wxUSE_DIRDLG=no
2996   DEFAULT_wxUSE_FILEDLG=no
2997   DEFAULT_wxUSE_FINDREPLDLG=no
2998   DEFAULT_wxUSE_FONTDLG=no
2999   DEFAULT_wxUSE_MSGDLG=no
3000   DEFAULT_wxUSE_NUMBERDLG=no
3001   DEFAULT_wxUSE_TEXTDLG=no
3002   DEFAULT_wxUSE_SPLASH=no
3003   DEFAULT_wxUSE_STARTUP_TIPS=no
3004   DEFAULT_wxUSE_PROGRESSDLG=no
3005   DEFAULT_wxUSE_WIZARDDLG=no
3006
3007   DEFAULT_wxUSE_MENUS=no
3008   DEFAULT_wxUSE_MINIFRAME=no
3009   DEFAULT_wxUSE_HTML=no
3010   DEFAULT_wxUSE_RICHTEXT=no
3011   DEFAULT_wxUSE_XRC=no
3012   DEFAULT_wxUSE_AUI=no
3013   DEFAULT_wxUSE_WEBKIT=no
3014   DEFAULT_wxUSE_FILESYSTEM=no
3015   DEFAULT_wxUSE_FS_INET=no
3016   DEFAULT_wxUSE_FS_ZIP=no
3017   DEFAULT_wxUSE_FS_ARCHIVE=no
3018   DEFAULT_wxUSE_BUSYINFO=no
3019   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
3020   DEFAULT_wxUSE_ZIPSTREAM=no
3021   DEFAULT_wxUSE_TARSTREAM=no
3022   DEFAULT_wxUSE_VALIDATORS=no
3023
3024   DEFAULT_wxUSE_ACCEL=no
3025   DEFAULT_wxUSE_ANIMATIONCTRL=no
3026   DEFAULT_wxUSE_BUTTON=no
3027   DEFAULT_wxUSE_BMPBUTTON=no
3028   DEFAULT_wxUSE_BITMAPCOMBOBOX=no
3029   DEFAULT_wxUSE_CALCTRL=no
3030   DEFAULT_wxUSE_CARET=no
3031   DEFAULT_wxUSE_CHECKBOX=no
3032   DEFAULT_wxUSE_CHECKLST=no
3033   DEFAULT_wxUSE_CHOICE=no
3034   DEFAULT_wxUSE_CHOICEBOOK=no
3035   DEFAULT_wxUSE_COLLPANE=no
3036   DEFAULT_wxUSE_COLOURPICKERCTRL=no
3037   DEFAULT_wxUSE_COMBOBOX=no
3038   DEFAULT_wxUSE_COMBOCTRL=no
3039   DEFAULT_wxUSE_DATEPICKCTRL=no
3040   DEFAULT_wxUSE_DISPLAY=no
3041   DEFAULT_wxUSE_DETECT_SM=no
3042   DEFAULT_wxUSE_DIRPICKERCTRL=no
3043   DEFAULT_wxUSE_FILEPICKERCTRL=no
3044   DEFAULT_wxUSE_FONTPICKERCTRL=no
3045   DEFAULT_wxUSE_GAUGE=no
3046   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
3047   DEFAULT_wxUSE_GRID=no
3048   DEFAULT_wxUSE_HYPERLINKCTRL=no
3049   DEFAULT_wxUSE_DATAVIEWCTRL=no
3050   DEFAULT_wxUSE_IMAGLIST=no
3051   DEFAULT_wxUSE_LISTBOOK=no
3052   DEFAULT_wxUSE_LISTBOX=no
3053   DEFAULT_wxUSE_LISTCTRL=no
3054   DEFAULT_wxUSE_NOTEBOOK=no
3055   DEFAULT_wxUSE_ODCOMBOBOX=no
3056   DEFAULT_wxUSE_RADIOBOX=no
3057   DEFAULT_wxUSE_RADIOBTN=no
3058   DEFAULT_wxUSE_SASH=no
3059   DEFAULT_wxUSE_SCROLLBAR=no
3060   DEFAULT_wxUSE_SEARCHCTRL=no
3061   DEFAULT_wxUSE_SLIDER=no
3062   DEFAULT_wxUSE_SPINBTN=no
3063   DEFAULT_wxUSE_SPINCTRL=no
3064   DEFAULT_wxUSE_SPLITTER=no
3065   DEFAULT_wxUSE_STATBMP=no
3066   DEFAULT_wxUSE_STATBOX=no
3067   DEFAULT_wxUSE_STATLINE=no
3068   DEFAULT_wxUSE_STATTEXT=no
3069   DEFAULT_wxUSE_STATUSBAR=yes
3070   DEFAULT_wxUSE_TAB_DIALOG=no
3071   DEFAULT_wxUSE_TEXTCTRL=no
3072   DEFAULT_wxUSE_TOGGLEBTN=no
3073   DEFAULT_wxUSE_TOOLBAR=no
3074   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3075   DEFAULT_wxUSE_TREEBOOK=no
3076   DEFAULT_wxUSE_TOOLBOOK=no
3077   DEFAULT_wxUSE_TREECTRL=no
3078   DEFAULT_wxUSE_POPUPWIN=no
3079   DEFAULT_wxUSE_TIPWINDOW=no
3080
3081   DEFAULT_wxUSE_UNICODE=no
3082   DEFAULT_wxUSE_UNICODE_MSLU=no
3083   DEFAULT_wxUSE_WCSRTOMBS=no
3084
3085   DEFAULT_wxUSE_PALETTE=no
3086   DEFAULT_wxUSE_IMAGE=no
3087   DEFAULT_wxUSE_GIF=no
3088   DEFAULT_wxUSE_PCX=no
3089   DEFAULT_wxUSE_TGA=no
3090   DEFAULT_wxUSE_PNM=no
3091   DEFAULT_wxUSE_IFF=no
3092   DEFAULT_wxUSE_XPM=no
3093   DEFAULT_wxUSE_ICO_CUR=no
3094   DEFAULT_wxUSE_ACCESSIBILITY=no
3095
3096   DEFAULT_wxUSE_MONOLITHIC=no
3097   DEFAULT_wxUSE_PLUGINS=no
3098   DEFAULT_wxUSE_OFFICIAL_BUILD=no
3099 else
3100   DEFAULT_wxUSE_UNIVERSAL=no
3101   DEFAULT_wxUSE_STL=no
3102
3103   DEFAULT_wxUSE_NANOX=no
3104
3105   DEFAULT_wxUSE_THREADS=yes
3106
3107   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
3108   DEFAULT_wxUSE_OPTIMISE=yes
3109   DEFAULT_wxUSE_PROFILE=no
3110   DEFAULT_wxUSE_NO_DEPS=no
3111   DEFAULT_wxUSE_VARARG_MACROS=yes
3112   DEFAULT_wxUSE_NO_RTTI=no
3113   DEFAULT_wxUSE_NO_EXCEPTIONS=no
3114   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3115   DEFAULT_wxUSE_RPATH=yes
3116   DEFAULT_wxUSE_PERMISSIVE=no
3117   DEFAULT_wxUSE_DEBUG_FLAG=no
3118   DEFAULT_wxUSE_DEBUG_INFO=no
3119   DEFAULT_wxUSE_DEBUG_GDB=no
3120   DEFAULT_wxUSE_MEM_TRACING=no
3121   DEFAULT_wxUSE_DEBUG_CONTEXT=no
3122   DEFAULT_wxUSE_DMALLOC=no
3123   DEFAULT_wxUSE_APPLE_IEEE=yes
3124
3125   DEFAULT_wxUSE_EXCEPTIONS=yes
3126   DEFAULT_wxUSE_LOG=yes
3127   DEFAULT_wxUSE_LOGWINDOW=yes
3128   DEFAULT_wxUSE_LOGGUI=yes
3129   DEFAULT_wxUSE_LOGDIALOG=yes
3130
3131   DEFAULT_wxUSE_GUI=yes
3132
3133   DEFAULT_wxUSE_REGEX=yes
3134   DEFAULT_wxUSE_XML=yes
3135   DEFAULT_wxUSE_EXPAT=yes
3136   DEFAULT_wxUSE_ZLIB=yes
3137   DEFAULT_wxUSE_LIBPNG=yes
3138   DEFAULT_wxUSE_LIBJPEG=yes
3139   DEFAULT_wxUSE_LIBTIFF=yes
3140   DEFAULT_wxUSE_LIBXPM=yes
3141   DEFAULT_wxUSE_LIBMSPACK=yes
3142   DEFAULT_wxUSE_LIBSDL=no
3143   DEFAULT_wxUSE_LIBGNOMEPRINT=yes
3144   DEFAULT_wxUSE_LIBGNOMEVFS=no
3145   DEFAULT_wxUSE_LIBHILDON=no
3146   DEFAULT_wxUSE_ODBC=no
3147   DEFAULT_wxUSE_OPENGL=no
3148
3149   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
3150   DEFAULT_wxUSE_STACKWALKER=yes
3151   DEFAULT_wxUSE_DEBUGREPORT=yes
3152   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
3153   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
3154   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
3155   DEFAULT_wxUSE_CMDLINE_PARSER=yes
3156   DEFAULT_wxUSE_DATETIME=yes
3157   DEFAULT_wxUSE_TIMER=yes
3158   DEFAULT_wxUSE_STOPWATCH=yes
3159   DEFAULT_wxUSE_FILE=yes
3160   DEFAULT_wxUSE_FFILE=yes
3161   DEFAULT_wxUSE_STDPATHS=yes
3162   DEFAULT_wxUSE_TEXTBUFFER=yes
3163   DEFAULT_wxUSE_TEXTFILE=yes
3164   DEFAULT_wxUSE_SOUND=yes
3165   DEFAULT_wxUSE_MEDIACTRL=no
3166   DEFAULT_wxUSE_GSTREAMER8=no
3167   DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
3168   DEFAULT_wxUSE_INTL=yes
3169   DEFAULT_wxUSE_CONFIG=yes
3170   DEFAULT_wxUSE_FONTMAP=yes
3171   DEFAULT_wxUSE_STREAMS=yes
3172   DEFAULT_wxUSE_SOCKETS=yes
3173   DEFAULT_wxUSE_OLE=yes
3174   DEFAULT_wxUSE_DATAOBJ=yes
3175   DEFAULT_wxUSE_DIALUP_MANAGER=yes
3176   DEFAULT_wxUSE_JOYSTICK=yes
3177   DEFAULT_wxUSE_DYNLIB_CLASS=yes
3178   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
3179   DEFAULT_wxUSE_LONGLONG=yes
3180   DEFAULT_wxUSE_GEOMETRY=yes
3181
3182   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
3183   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
3184   DEFAULT_wxUSE_POSTSCRIPT=yes
3185
3186   DEFAULT_wxUSE_CLIPBOARD=yes
3187   DEFAULT_wxUSE_TOOLTIPS=yes
3188   DEFAULT_wxUSE_DRAG_AND_DROP=yes
3189   DEFAULT_wxUSE_DRAGIMAGE=yes
3190   DEFAULT_wxUSE_SPLINES=yes
3191   DEFAULT_wxUSE_MOUSEWHEEL=yes
3192
3193   DEFAULT_wxUSE_MDI=yes
3194   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
3195   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
3196   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
3197
3198   DEFAULT_wxUSE_RESOURCES=no
3199   DEFAULT_wxUSE_CONSTRAINTS=yes
3200   DEFAULT_wxUSE_IPC=yes
3201   DEFAULT_wxUSE_HELP=yes
3202   DEFAULT_wxUSE_MS_HTML_HELP=yes
3203   DEFAULT_wxUSE_WXHTML_HELP=yes
3204   DEFAULT_wxUSE_TREELAYOUT=yes
3205   DEFAULT_wxUSE_METAFILE=yes
3206   DEFAULT_wxUSE_MIMETYPE=yes
3207   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
3208   DEFAULT_wxUSE_PROTOCOL=yes
3209   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
3210   DEFAULT_wxUSE_PROTOCOL_FTP=yes
3211   DEFAULT_wxUSE_PROTOCOL_FILE=yes
3212   DEFAULT_wxUSE_URL=yes
3213   DEFAULT_wxUSE_VARIANT=yes
3214
3215   DEFAULT_wxUSE_ABOUTDLG=yes
3216   DEFAULT_wxUSE_COMMONDLGS=yes
3217   DEFAULT_wxUSE_CHOICEDLG=yes
3218   DEFAULT_wxUSE_COLOURDLG=yes
3219   DEFAULT_wxUSE_DIRDLG=yes
3220   DEFAULT_wxUSE_FILEDLG=yes
3221   DEFAULT_wxUSE_FINDREPLDLG=yes
3222   DEFAULT_wxUSE_FONTDLG=yes
3223   DEFAULT_wxUSE_MSGDLG=yes
3224   DEFAULT_wxUSE_NUMBERDLG=yes
3225   DEFAULT_wxUSE_TEXTDLG=yes
3226   DEFAULT_wxUSE_SPLASH=yes
3227   DEFAULT_wxUSE_STARTUP_TIPS=yes
3228   DEFAULT_wxUSE_PROGRESSDLG=yes
3229   DEFAULT_wxUSE_WIZARDDLG=yes
3230
3231   DEFAULT_wxUSE_MENUS=yes
3232   DEFAULT_wxUSE_MINIFRAME=yes
3233   DEFAULT_wxUSE_HTML=yes
3234   DEFAULT_wxUSE_RICHTEXT=yes
3235   DEFAULT_wxUSE_XRC=yes
3236   DEFAULT_wxUSE_AUI=yes
3237   DEFAULT_wxUSE_WEBKIT=yes
3238   DEFAULT_wxUSE_FILESYSTEM=yes
3239   DEFAULT_wxUSE_FS_INET=yes
3240   DEFAULT_wxUSE_FS_ZIP=yes
3241   DEFAULT_wxUSE_FS_ARCHIVE=yes
3242   DEFAULT_wxUSE_BUSYINFO=yes
3243   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
3244   DEFAULT_wxUSE_ZIPSTREAM=yes
3245   DEFAULT_wxUSE_TARSTREAM=yes
3246   DEFAULT_wxUSE_VALIDATORS=yes
3247
3248   DEFAULT_wxUSE_ACCEL=yes
3249   DEFAULT_wxUSE_ANIMATIONCTRL=yes
3250   DEFAULT_wxUSE_BUTTON=yes
3251   DEFAULT_wxUSE_BMPBUTTON=yes
3252   DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
3253   DEFAULT_wxUSE_CALCTRL=yes
3254   DEFAULT_wxUSE_CARET=yes
3255   DEFAULT_wxUSE_CHECKBOX=yes
3256   DEFAULT_wxUSE_CHECKLST=yes
3257   DEFAULT_wxUSE_CHOICE=yes
3258   DEFAULT_wxUSE_CHOICEBOOK=yes
3259   DEFAULT_wxUSE_COLLPANE=yes
3260   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
3261   DEFAULT_wxUSE_COMBOBOX=yes
3262   DEFAULT_wxUSE_COMBOCTRL=yes
3263   DEFAULT_wxUSE_DATEPICKCTRL=yes
3264   DEFAULT_wxUSE_DISPLAY=yes
3265   DEFAULT_wxUSE_DETECT_SM=yes
3266   DEFAULT_wxUSE_DIRPICKERCTRL=yes
3267   DEFAULT_wxUSE_FILEPICKERCTRL=yes
3268   DEFAULT_wxUSE_FONTPICKERCTRL=yes
3269   DEFAULT_wxUSE_GAUGE=yes
3270   DEFAULT_wxUSE_GRID=yes
3271   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
3272   DEFAULT_wxUSE_HYPERLINKCTRL=yes
3273   DEFAULT_wxUSE_DATAVIEWCTRL=no
3274   DEFAULT_wxUSE_IMAGLIST=yes
3275   DEFAULT_wxUSE_LISTBOOK=yes
3276   DEFAULT_wxUSE_LISTBOX=yes
3277   DEFAULT_wxUSE_LISTCTRL=yes
3278   DEFAULT_wxUSE_NOTEBOOK=yes
3279   DEFAULT_wxUSE_ODCOMBOBOX=yes
3280   DEFAULT_wxUSE_RADIOBOX=yes
3281   DEFAULT_wxUSE_RADIOBTN=yes
3282   DEFAULT_wxUSE_SASH=yes
3283   DEFAULT_wxUSE_SCROLLBAR=yes
3284   DEFAULT_wxUSE_SEARCHCTRL=yes
3285   DEFAULT_wxUSE_SLIDER=yes
3286   DEFAULT_wxUSE_SPINBTN=yes
3287   DEFAULT_wxUSE_SPINCTRL=yes
3288   DEFAULT_wxUSE_SPLITTER=yes
3289   DEFAULT_wxUSE_STATBMP=yes
3290   DEFAULT_wxUSE_STATBOX=yes
3291   DEFAULT_wxUSE_STATLINE=yes
3292   DEFAULT_wxUSE_STATTEXT=yes
3293   DEFAULT_wxUSE_STATUSBAR=yes
3294   DEFAULT_wxUSE_TAB_DIALOG=no
3295   DEFAULT_wxUSE_TEXTCTRL=yes
3296   DEFAULT_wxUSE_TOGGLEBTN=yes
3297   DEFAULT_wxUSE_TOOLBAR=yes
3298   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3299   DEFAULT_wxUSE_TREEBOOK=yes
3300   DEFAULT_wxUSE_TOOLBOOK=yes
3301   DEFAULT_wxUSE_TREECTRL=yes
3302   DEFAULT_wxUSE_POPUPWIN=yes
3303   DEFAULT_wxUSE_TIPWINDOW=yes
3304
3305   DEFAULT_wxUSE_UNICODE=no
3306   DEFAULT_wxUSE_UNICODE_MSLU=yes
3307   DEFAULT_wxUSE_WCSRTOMBS=no
3308
3309   DEFAULT_wxUSE_PALETTE=yes
3310   DEFAULT_wxUSE_IMAGE=yes
3311   DEFAULT_wxUSE_GIF=yes
3312   DEFAULT_wxUSE_PCX=yes
3313   DEFAULT_wxUSE_TGA=yes
3314   DEFAULT_wxUSE_IFF=no    DEFAULT_wxUSE_PNM=yes
3315   DEFAULT_wxUSE_XPM=yes
3316   DEFAULT_wxUSE_ICO_CUR=yes
3317   DEFAULT_wxUSE_ACCESSIBILITY=no
3318
3319   DEFAULT_wxUSE_MONOLITHIC=no
3320   DEFAULT_wxUSE_PLUGINS=no
3321   DEFAULT_wxUSE_OFFICIAL_BUILD=no
3322
3323     DEFAULT_wxUSE_GTK2=yes
3324 fi
3325
3326
3327
3328
3329 for toolkit in `echo $ALL_TOOLKITS`; do
3330   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
3331   if test "x$LINE" != "x" ; then
3332     has_toolkit_in_cache=1
3333     eval "DEFAULT_$LINE"
3334     eval "CACHE_$toolkit=1"
3335
3336     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
3337     if test "x$LINE" != "x" ; then
3338         eval "DEFAULT_$LINE"
3339     fi
3340   fi
3341 done
3342
3343
3344
3345           enablestring=
3346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3347 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3348           no_cache=0
3349           # Check whether --enable-gui was given.
3350 if test "${enable_gui+set}" = set; then
3351   enableval=$enable_gui;
3352                           if test "$enableval" = yes; then
3353                             ac_cv_use_gui='wxUSE_GUI=yes'
3354                           else
3355                             ac_cv_use_gui='wxUSE_GUI=no'
3356                           fi
3357
3358 else
3359
3360                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
3361                           if test "x$LINE" != x ; then
3362                             eval "DEFAULT_$LINE"
3363                           else
3364                             no_cache=1
3365                           fi
3366
3367                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
3368
3369 fi
3370
3371
3372           eval "$ac_cv_use_gui"
3373           if test "$no_cache" != 1; then
3374             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
3375           fi
3376
3377           if test "$wxUSE_GUI" = yes; then
3378             { echo "$as_me:$LINENO: result: yes" >&5
3379 echo "${ECHO_T}yes" >&6; }
3380           else
3381             { echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6; }
3383           fi
3384
3385
3386           enablestring=
3387           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3388 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3389           no_cache=0
3390           # Check whether --enable-monolithic was given.
3391 if test "${enable_monolithic+set}" = set; then
3392   enableval=$enable_monolithic;
3393                           if test "$enableval" = yes; then
3394                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3395                           else
3396                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3397                           fi
3398
3399 else
3400
3401                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
3402                           if test "x$LINE" != x ; then
3403                             eval "DEFAULT_$LINE"
3404                           else
3405                             no_cache=1
3406                           fi
3407
3408                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
3409
3410 fi
3411
3412
3413           eval "$ac_cv_use_monolithic"
3414           if test "$no_cache" != 1; then
3415             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
3416           fi
3417
3418           if test "$wxUSE_MONOLITHIC" = yes; then
3419             { echo "$as_me:$LINENO: result: yes" >&5
3420 echo "${ECHO_T}yes" >&6; }
3421           else
3422             { echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6; }
3424           fi
3425
3426
3427           enablestring=
3428           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3429 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3430           no_cache=0
3431           # Check whether --enable-plugins was given.
3432 if test "${enable_plugins+set}" = set; then
3433   enableval=$enable_plugins;
3434                           if test "$enableval" = yes; then
3435                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
3436                           else
3437                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
3438                           fi
3439
3440 else
3441
3442                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
3443                           if test "x$LINE" != x ; then
3444                             eval "DEFAULT_$LINE"
3445                           else
3446                             no_cache=1
3447                           fi
3448
3449                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
3450
3451 fi
3452
3453
3454           eval "$ac_cv_use_plugins"
3455           if test "$no_cache" != 1; then
3456             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
3457           fi
3458
3459           if test "$wxUSE_PLUGINS" = yes; then
3460             { echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6; }
3462           else
3463             { echo "$as_me:$LINENO: result: no" >&5
3464 echo "${ECHO_T}no" >&6; }
3465           fi
3466
3467
3468           withstring=without
3469           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3470 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3471           no_cache=0
3472
3473 # Check whether --with-subdirs was given.
3474 if test "${with_subdirs+set}" = set; then
3475   withval=$with_subdirs;
3476                         if test "$withval" = yes; then
3477                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3478                         else
3479                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
3480                         fi
3481
3482 else
3483
3484                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
3485                         if test "x$LINE" != x ; then
3486                           eval "DEFAULT_$LINE"
3487                         else
3488                           no_cache=1
3489                         fi
3490
3491                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
3492
3493 fi
3494
3495
3496           eval "$ac_cv_use_subdirs"
3497           if test "$no_cache" != 1; then
3498             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
3499           fi
3500
3501           if test "$wxWITH_SUBDIRS" = yes; then
3502             { echo "$as_me:$LINENO: result: yes" >&5
3503 echo "${ECHO_T}yes" >&6; }
3504           else
3505             { echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6; }
3507           fi
3508
3509
3510 if test "$wxUSE_GUI" = "yes"; then
3511
3512
3513           enablestring=
3514           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3515 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3516           no_cache=0
3517           # Check whether --enable-universal was given.
3518 if test "${enable_universal+set}" = set; then
3519   enableval=$enable_universal;
3520                           if test "$enableval" = yes; then
3521                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
3522                           else
3523                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
3524                           fi
3525
3526 else
3527
3528                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
3529                           if test "x$LINE" != x ; then
3530                             eval "DEFAULT_$LINE"
3531                           else
3532                             no_cache=1
3533                           fi
3534
3535                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
3536
3537 fi
3538
3539
3540           eval "$ac_cv_use_universal"
3541           if test "$no_cache" != 1; then
3542             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
3543           fi
3544
3545           if test "$wxUSE_UNIVERSAL" = yes; then
3546             { echo "$as_me:$LINENO: result: yes" >&5
3547 echo "${ECHO_T}yes" >&6; }
3548           else
3549             { echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6; }
3551           fi
3552
3553
3554 # Check whether --with-gtk was given.
3555 if test "${with_gtk+set}" = set; then
3556   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3557 fi
3558
3559
3560 # Check whether --with-motif was given.
3561 if test "${with_motif+set}" = set; then
3562   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3563 fi
3564
3565
3566 # Check whether --with-mac was given.
3567 if test "${with_mac+set}" = set; then
3568   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3569 fi
3570
3571
3572 # Check whether --with-cocoa was given.
3573 if test "${with_cocoa+set}" = set; then
3574   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3575 fi
3576
3577
3578 # Check whether --with-wine was given.
3579 if test "${with_wine+set}" = set; then
3580   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3581 fi
3582
3583
3584 # Check whether --with-msw was given.
3585 if test "${with_msw+set}" = set; then
3586   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3587 fi
3588
3589
3590 # Check whether --with-pm was given.
3591 if test "${with_pm+set}" = set; then
3592   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3593 fi
3594
3595
3596 # Check whether --with-mgl was given.
3597 if test "${with_mgl+set}" = set; then
3598   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3599 fi
3600
3601
3602 # Check whether --with-directfb was given.
3603 if test "${with_directfb+set}" = set; then
3604   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3605 fi
3606
3607
3608 # Check whether --with-microwin was given.
3609 if test "${with_microwin+set}" = set; then
3610   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3611 fi
3612
3613
3614 # Check whether --with-x11 was given.
3615 if test "${with_x11+set}" = set; then
3616   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3617 fi
3618
3619
3620           enablestring=
3621           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3622 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3623           no_cache=0
3624           # Check whether --enable-nanox was given.
3625 if test "${enable_nanox+set}" = set; then
3626   enableval=$enable_nanox;
3627                           if test "$enableval" = yes; then
3628                             ac_cv_use_nanox='wxUSE_NANOX=yes'
3629                           else
3630                             ac_cv_use_nanox='wxUSE_NANOX=no'
3631                           fi
3632
3633 else
3634
3635                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
3636                           if test "x$LINE" != x ; then
3637                             eval "DEFAULT_$LINE"
3638                           else
3639                             no_cache=1
3640                           fi
3641
3642                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
3643
3644 fi
3645
3646
3647           eval "$ac_cv_use_nanox"
3648           if test "$no_cache" != 1; then
3649             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
3650           fi
3651
3652           if test "$wxUSE_NANOX" = yes; then
3653             { echo "$as_me:$LINENO: result: yes" >&5
3654 echo "${ECHO_T}yes" >&6; }
3655           else
3656             { echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6; }
3658           fi
3659
3660
3661 # Check whether --enable-gtk2 was given.
3662 if test "${enable_gtk2+set}" = set; then
3663   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3664 fi
3665
3666
3667           enablestring=
3668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3669 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3670           no_cache=0
3671           # Check whether --enable-gpe was given.
3672 if test "${enable_gpe+set}" = set; then
3673   enableval=$enable_gpe;
3674                           if test "$enableval" = yes; then
3675                             ac_cv_use_gpe='wxUSE_GPE=yes'
3676                           else
3677                             ac_cv_use_gpe='wxUSE_GPE=no'
3678                           fi
3679
3680 else
3681
3682                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
3683                           if test "x$LINE" != x ; then
3684                             eval "DEFAULT_$LINE"
3685                           else
3686                             no_cache=1
3687                           fi
3688
3689                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
3690
3691 fi
3692
3693
3694           eval "$ac_cv_use_gpe"
3695           if test "$no_cache" != 1; then
3696             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
3697           fi
3698
3699           if test "$wxUSE_GPE" = yes; then
3700             { echo "$as_me:$LINENO: result: yes" >&5
3701 echo "${ECHO_T}yes" >&6; }
3702           else
3703             { echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6; }
3705           fi
3706
3707
3708
3709           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3710 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3711           no_cache=0
3712
3713 # Check whether --with-libpng was given.
3714 if test "${with_libpng+set}" = set; then
3715   withval=$with_libpng;
3716                         if test "$withval" = yes; then
3717                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3718                         elif test "$withval" = no; then
3719                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
3720                         elif test "$withval" = sys; then
3721                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3722                         elif test "$withval" = builtin; then
3723                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3724                         else
3725                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3726 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3727    { (exit 1); exit 1; }; }
3728                         fi
3729
3730 else
3731
3732                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3733                         if test "x$LINE" != x ; then
3734                           eval "DEFAULT_$LINE"
3735                         else
3736                           no_cache=1
3737                         fi
3738
3739                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3740
3741 fi
3742
3743
3744           eval "$ac_cv_use_libpng"
3745           if test "$no_cache" != 1; then
3746             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3747           fi
3748
3749           if test "$wxUSE_LIBPNG" = yes; then
3750             { echo "$as_me:$LINENO: result: yes" >&5
3751 echo "${ECHO_T}yes" >&6; }
3752           elif test "$wxUSE_LIBPNG" = no; then
3753             { echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6; }
3755           elif test "$wxUSE_LIBPNG" = sys; then
3756             { echo "$as_me:$LINENO: result: system version" >&5
3757 echo "${ECHO_T}system version" >&6; }
3758           elif test "$wxUSE_LIBPNG" = builtin; then
3759             { echo "$as_me:$LINENO: result: builtin version" >&5
3760 echo "${ECHO_T}builtin version" >&6; }
3761           else
3762             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3763 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3764    { (exit 1); exit 1; }; }
3765           fi
3766
3767
3768           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3769 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3770           no_cache=0
3771
3772 # Check whether --with-libjpeg was given.
3773 if test "${with_libjpeg+set}" = set; then
3774   withval=$with_libjpeg;
3775                         if test "$withval" = yes; then
3776                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3777                         elif test "$withval" = no; then
3778                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3779                         elif test "$withval" = sys; then
3780                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3781                         elif test "$withval" = builtin; then
3782                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3783                         else
3784                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3785 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3786    { (exit 1); exit 1; }; }
3787                         fi
3788
3789 else
3790
3791                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3792                         if test "x$LINE" != x ; then
3793                           eval "DEFAULT_$LINE"
3794                         else
3795                           no_cache=1
3796                         fi
3797
3798                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3799
3800 fi
3801
3802
3803           eval "$ac_cv_use_libjpeg"
3804           if test "$no_cache" != 1; then
3805             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3806           fi
3807
3808           if test "$wxUSE_LIBJPEG" = yes; then
3809             { echo "$as_me:$LINENO: result: yes" >&5
3810 echo "${ECHO_T}yes" >&6; }
3811           elif test "$wxUSE_LIBJPEG" = no; then
3812             { echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6; }
3814           elif test "$wxUSE_LIBJPEG" = sys; then
3815             { echo "$as_me:$LINENO: result: system version" >&5
3816 echo "${ECHO_T}system version" >&6; }
3817           elif test "$wxUSE_LIBJPEG" = builtin; then
3818             { echo "$as_me:$LINENO: result: builtin version" >&5
3819 echo "${ECHO_T}builtin version" >&6; }
3820           else
3821             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3822 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3823    { (exit 1); exit 1; }; }
3824           fi
3825
3826
3827           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3828 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3829           no_cache=0
3830
3831 # Check whether --with-libtiff was given.
3832 if test "${with_libtiff+set}" = set; then
3833   withval=$with_libtiff;
3834                         if test "$withval" = yes; then
3835                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3836                         elif test "$withval" = no; then
3837                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3838                         elif test "$withval" = sys; then
3839                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3840                         elif test "$withval" = builtin; then
3841                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3842                         else
3843                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3844 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3845    { (exit 1); exit 1; }; }
3846                         fi
3847
3848 else
3849
3850                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3851                         if test "x$LINE" != x ; then
3852                           eval "DEFAULT_$LINE"
3853                         else
3854                           no_cache=1
3855                         fi
3856
3857                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3858
3859 fi
3860
3861
3862           eval "$ac_cv_use_libtiff"
3863           if test "$no_cache" != 1; then
3864             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3865           fi
3866
3867           if test "$wxUSE_LIBTIFF" = yes; then
3868             { echo "$as_me:$LINENO: result: yes" >&5
3869 echo "${ECHO_T}yes" >&6; }
3870           elif test "$wxUSE_LIBTIFF" = no; then
3871             { echo "$as_me:$LINENO: result: no" >&5
3872 echo "${ECHO_T}no" >&6; }
3873           elif test "$wxUSE_LIBTIFF" = sys; then
3874             { echo "$as_me:$LINENO: result: system version" >&5
3875 echo "${ECHO_T}system version" >&6; }
3876           elif test "$wxUSE_LIBTIFF" = builtin; then
3877             { echo "$as_me:$LINENO: result: builtin version" >&5
3878 echo "${ECHO_T}builtin version" >&6; }
3879           else
3880             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3881 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3882    { (exit 1); exit 1; }; }
3883           fi
3884
3885
3886           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3887 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3888           no_cache=0
3889
3890 # Check whether --with-libxpm was given.
3891 if test "${with_libxpm+set}" = set; then
3892   withval=$with_libxpm;
3893                         if test "$withval" = yes; then
3894                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3895                         elif test "$withval" = no; then
3896                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3897                         elif test "$withval" = sys; then
3898                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3899                         elif test "$withval" = builtin; then
3900                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3901                         else
3902                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3903 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3904    { (exit 1); exit 1; }; }
3905                         fi
3906
3907 else
3908
3909                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3910                         if test "x$LINE" != x ; then
3911                           eval "DEFAULT_$LINE"
3912                         else
3913                           no_cache=1
3914                         fi
3915
3916                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3917
3918 fi
3919
3920
3921           eval "$ac_cv_use_libxpm"
3922           if test "$no_cache" != 1; then
3923             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3924           fi
3925
3926           if test "$wxUSE_LIBXPM" = yes; then
3927             { echo "$as_me:$LINENO: result: yes" >&5
3928 echo "${ECHO_T}yes" >&6; }
3929           elif test "$wxUSE_LIBXPM" = no; then
3930             { echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6; }
3932           elif test "$wxUSE_LIBXPM" = sys; then
3933             { echo "$as_me:$LINENO: result: system version" >&5
3934 echo "${ECHO_T}system version" >&6; }
3935           elif test "$wxUSE_LIBXPM" = builtin; then
3936             { echo "$as_me:$LINENO: result: builtin version" >&5
3937 echo "${ECHO_T}builtin version" >&6; }
3938           else
3939             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3940 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3941    { (exit 1); exit 1; }; }
3942           fi
3943
3944
3945           withstring=
3946           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3947 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3948           no_cache=0
3949
3950 # Check whether --with-libmspack was given.
3951 if test "${with_libmspack+set}" = set; then
3952   withval=$with_libmspack;
3953                         if test "$withval" = yes; then
3954                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3955                         else
3956                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3957                         fi
3958
3959 else
3960
3961                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3962                         if test "x$LINE" != x ; then
3963                           eval "DEFAULT_$LINE"
3964                         else
3965                           no_cache=1
3966                         fi
3967
3968                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3969
3970 fi
3971
3972
3973           eval "$ac_cv_use_libmspack"
3974           if test "$no_cache" != 1; then
3975             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3976           fi
3977
3978           if test "$wxUSE_LIBMSPACK" = yes; then
3979             { echo "$as_me:$LINENO: result: yes" >&5
3980 echo "${ECHO_T}yes" >&6; }
3981           else
3982             { echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6; }
3984           fi
3985
3986
3987           withstring=
3988           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3989 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
3990           no_cache=0
3991
3992 # Check whether --with-sdl was given.
3993 if test "${with_sdl+set}" = set; then
3994   withval=$with_sdl;
3995                         if test "$withval" = yes; then
3996                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3997                         else
3998                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3999                         fi
4000
4001 else
4002
4003                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
4004                         if test "x$LINE" != x ; then
4005                           eval "DEFAULT_$LINE"
4006                         else
4007                           no_cache=1
4008                         fi
4009
4010                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
4011
4012 fi
4013
4014
4015           eval "$ac_cv_use_sdl"
4016           if test "$no_cache" != 1; then
4017             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
4018           fi
4019
4020           if test "$wxUSE_LIBSDL" = yes; then
4021             { echo "$as_me:$LINENO: result: yes" >&5
4022 echo "${ECHO_T}yes" >&6; }
4023           else
4024             { echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6; }
4026           fi
4027
4028
4029           withstring=
4030           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
4031 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
4032           no_cache=0
4033
4034 # Check whether --with-gnomeprint was given.
4035 if test "${with_gnomeprint+set}" = set; then
4036   withval=$with_gnomeprint;
4037                         if test "$withval" = yes; then
4038                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4039                         else
4040                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4041                         fi
4042
4043 else
4044
4045                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
4046                         if test "x$LINE" != x ; then
4047                           eval "DEFAULT_$LINE"
4048                         else
4049                           no_cache=1
4050                         fi
4051
4052                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
4053
4054 fi
4055
4056
4057           eval "$ac_cv_use_gnomeprint"
4058           if test "$no_cache" != 1; then
4059             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
4060           fi
4061
4062           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
4063             { echo "$as_me:$LINENO: result: yes" >&5
4064 echo "${ECHO_T}yes" >&6; }
4065           else
4066             { echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6; }
4068           fi
4069
4070
4071           withstring=
4072           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4073 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4074           no_cache=0
4075
4076 # Check whether --with-gnomevfs was given.
4077 if test "${with_gnomevfs+set}" = set; then
4078   withval=$with_gnomevfs;
4079                         if test "$withval" = yes; then
4080                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4081                         else
4082                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4083                         fi
4084
4085 else
4086
4087                         LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
4088                         if test "x$LINE" != x ; then
4089                           eval "DEFAULT_$LINE"
4090                         else
4091                           no_cache=1
4092                         fi
4093
4094                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
4095
4096 fi
4097
4098
4099           eval "$ac_cv_use_gnomevfs"
4100           if test "$no_cache" != 1; then
4101             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
4102           fi
4103
4104           if test "$wxUSE_LIBGNOMEVFS" = yes; then
4105             { echo "$as_me:$LINENO: result: yes" >&5
4106 echo "${ECHO_T}yes" >&6; }
4107           else
4108             { echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6; }
4110           fi
4111
4112
4113           withstring=
4114           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4115 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4116           no_cache=0
4117
4118 # Check whether --with-hildon was given.
4119 if test "${with_hildon+set}" = set; then
4120   withval=$with_hildon;
4121                         if test "$withval" = yes; then
4122                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
4123                         else
4124                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
4125                         fi
4126
4127 else
4128
4129                         LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
4130                         if test "x$LINE" != x ; then
4131                           eval "DEFAULT_$LINE"
4132                         else
4133                           no_cache=1
4134                         fi
4135
4136                         ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
4137
4138 fi
4139
4140
4141           eval "$ac_cv_use_hildon"
4142           if test "$no_cache" != 1; then
4143             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
4144           fi
4145
4146           if test "$wxUSE_LIBHILDON" = yes; then
4147             { echo "$as_me:$LINENO: result: yes" >&5
4148 echo "${ECHO_T}yes" >&6; }
4149           else
4150             { echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6; }
4152           fi
4153
4154
4155           withstring=
4156           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4157 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4158           no_cache=0
4159
4160 # Check whether --with-opengl was given.
4161 if test "${with_opengl+set}" = set; then
4162   withval=$with_opengl;
4163                         if test "$withval" = yes; then
4164                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
4165                         else
4166                           ac_cv_use_opengl='wxUSE_OPENGL=no'
4167                         fi
4168
4169 else
4170
4171                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
4172                         if test "x$LINE" != x ; then
4173                           eval "DEFAULT_$LINE"
4174                         else
4175                           no_cache=1
4176                         fi
4177
4178                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
4179
4180 fi
4181
4182
4183           eval "$ac_cv_use_opengl"
4184           if test "$no_cache" != 1; then
4185             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
4186           fi
4187
4188           if test "$wxUSE_OPENGL" = yes; then
4189             { echo "$as_me:$LINENO: result: yes" >&5
4190 echo "${ECHO_T}yes" >&6; }
4191           else
4192             { echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6; }
4194           fi
4195
4196
4197 if test "$wxUSE_UNIVERSAL" = "yes"; then
4198
4199 # Check whether --with-themes was given.
4200 if test "${with_themes+set}" = set; then
4201   withval=$with_themes; wxUNIV_THEMES="$withval"
4202 fi
4203
4204 fi
4205
4206 fi
4207
4208
4209           withstring=
4210           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4211 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4212           no_cache=0
4213
4214 # Check whether --with-dmalloc was given.
4215 if test "${with_dmalloc+set}" = set; then
4216   withval=$with_dmalloc;
4217                         if test "$withval" = yes; then
4218                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4219                         else
4220                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
4221                         fi
4222
4223 else
4224
4225                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
4226                         if test "x$LINE" != x ; then
4227                           eval "DEFAULT_$LINE"
4228                         else
4229                           no_cache=1
4230                         fi
4231
4232                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
4233
4234 fi
4235
4236
4237           eval "$ac_cv_use_dmalloc"
4238           if test "$no_cache" != 1; then
4239             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
4240           fi
4241
4242           if test "$wxUSE_DMALLOC" = yes; then
4243             { echo "$as_me:$LINENO: result: yes" >&5
4244 echo "${ECHO_T}yes" >&6; }
4245           else
4246             { echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6; }
4248           fi
4249
4250
4251           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4252 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4253           no_cache=0
4254
4255 # Check whether --with-regex was given.
4256 if test "${with_regex+set}" = set; then
4257   withval=$with_regex;
4258                         if test "$withval" = yes; then
4259                           ac_cv_use_regex='wxUSE_REGEX=yes'
4260                         elif test "$withval" = no; then
4261                           ac_cv_use_regex='wxUSE_REGEX=no'
4262                         elif test "$withval" = sys; then
4263                           ac_cv_use_regex='wxUSE_REGEX=sys'
4264                         elif test "$withval" = builtin; then
4265                           ac_cv_use_regex='wxUSE_REGEX=builtin'
4266                         else
4267                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4268 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4269    { (exit 1); exit 1; }; }
4270                         fi
4271
4272 else
4273
4274                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
4275                         if test "x$LINE" != x ; then
4276                           eval "DEFAULT_$LINE"
4277                         else
4278                           no_cache=1
4279                         fi
4280
4281                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
4282
4283 fi
4284
4285
4286           eval "$ac_cv_use_regex"
4287           if test "$no_cache" != 1; then
4288             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
4289           fi
4290
4291           if test "$wxUSE_REGEX" = yes; then
4292             { echo "$as_me:$LINENO: result: yes" >&5
4293 echo "${ECHO_T}yes" >&6; }
4294           elif test "$wxUSE_REGEX" = no; then
4295             { echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6; }
4297           elif test "$wxUSE_REGEX" = sys; then
4298             { echo "$as_me:$LINENO: result: system version" >&5
4299 echo "${ECHO_T}system version" >&6; }
4300           elif test "$wxUSE_REGEX" = builtin; then
4301             { echo "$as_me:$LINENO: result: builtin version" >&5
4302 echo "${ECHO_T}builtin version" >&6; }
4303           else
4304             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4305 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4306    { (exit 1); exit 1; }; }
4307           fi
4308
4309
4310           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4311 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4312           no_cache=0
4313
4314 # Check whether --with-zlib was given.
4315 if test "${with_zlib+set}" = set; then
4316   withval=$with_zlib;
4317                         if test "$withval" = yes; then
4318                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
4319                         elif test "$withval" = no; then
4320                           ac_cv_use_zlib='wxUSE_ZLIB=no'
4321                         elif test "$withval" = sys; then
4322                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
4323                         elif test "$withval" = builtin; then
4324                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
4325                         else
4326                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4327 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4328    { (exit 1); exit 1; }; }
4329                         fi
4330
4331 else
4332
4333                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
4334                         if test "x$LINE" != x ; then
4335                           eval "DEFAULT_$LINE"
4336                         else
4337                           no_cache=1
4338                         fi
4339
4340                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
4341
4342 fi
4343
4344
4345           eval "$ac_cv_use_zlib"
4346           if test "$no_cache" != 1; then
4347             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
4348           fi
4349
4350           if test "$wxUSE_ZLIB" = yes; then
4351             { echo "$as_me:$LINENO: result: yes" >&5
4352 echo "${ECHO_T}yes" >&6; }
4353           elif test "$wxUSE_ZLIB" = no; then
4354             { echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6; }
4356           elif test "$wxUSE_ZLIB" = sys; then
4357             { echo "$as_me:$LINENO: result: system version" >&5
4358 echo "${ECHO_T}system version" >&6; }
4359           elif test "$wxUSE_ZLIB" = builtin; then
4360             { echo "$as_me:$LINENO: result: builtin version" >&5
4361 echo "${ECHO_T}builtin version" >&6; }
4362           else
4363             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4364 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4365    { (exit 1); exit 1; }; }
4366           fi
4367
4368
4369           { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4370 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
4371           no_cache=0
4372
4373 # Check whether --with-odbc was given.
4374 if test "${with_odbc+set}" = set; then
4375   withval=$with_odbc;
4376                         if test "$withval" = yes; then
4377                           ac_cv_use_odbc='wxUSE_ODBC=yes'
4378                         elif test "$withval" = no; then
4379                           ac_cv_use_odbc='wxUSE_ODBC=no'
4380                         elif test "$withval" = sys; then
4381                           ac_cv_use_odbc='wxUSE_ODBC=sys'
4382                         elif test "$withval" = builtin; then
4383                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
4384                         else
4385                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4386 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4387    { (exit 1); exit 1; }; }
4388                         fi
4389
4390 else
4391
4392                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
4393                         if test "x$LINE" != x ; then
4394                           eval "DEFAULT_$LINE"
4395                         else
4396                           no_cache=1
4397                         fi
4398
4399                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
4400
4401 fi
4402
4403
4404           eval "$ac_cv_use_odbc"
4405           if test "$no_cache" != 1; then
4406             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
4407           fi
4408
4409           if test "$wxUSE_ODBC" = yes; then
4410             { echo "$as_me:$LINENO: result: yes" >&5
4411 echo "${ECHO_T}yes" >&6; }
4412           elif test "$wxUSE_ODBC" = no; then
4413             { echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6; }
4415           elif test "$wxUSE_ODBC" = sys; then
4416             { echo "$as_me:$LINENO: result: system version" >&5
4417 echo "${ECHO_T}system version" >&6; }
4418           elif test "$wxUSE_ODBC" = builtin; then
4419             { echo "$as_me:$LINENO: result: builtin version" >&5
4420 echo "${ECHO_T}builtin version" >&6; }
4421           else
4422             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4423 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4424    { (exit 1); exit 1; }; }
4425           fi
4426
4427
4428           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4429 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4430           no_cache=0
4431
4432 # Check whether --with-expat was given.
4433 if test "${with_expat+set}" = set; then
4434   withval=$with_expat;
4435                         if test "$withval" = yes; then
4436                           ac_cv_use_expat='wxUSE_EXPAT=yes'
4437                         elif test "$withval" = no; then
4438                           ac_cv_use_expat='wxUSE_EXPAT=no'
4439                         elif test "$withval" = sys; then
4440                           ac_cv_use_expat='wxUSE_EXPAT=sys'
4441                         elif test "$withval" = builtin; then
4442                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
4443                         else
4444                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4445 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4446    { (exit 1); exit 1; }; }
4447                         fi
4448
4449 else
4450
4451                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
4452                         if test "x$LINE" != x ; then
4453                           eval "DEFAULT_$LINE"
4454                         else
4455                           no_cache=1
4456                         fi
4457
4458                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
4459
4460 fi
4461
4462
4463           eval "$ac_cv_use_expat"
4464           if test "$no_cache" != 1; then
4465             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
4466           fi
4467
4468           if test "$wxUSE_EXPAT" = yes; then
4469             { echo "$as_me:$LINENO: result: yes" >&5
4470 echo "${ECHO_T}yes" >&6; }
4471           elif test "$wxUSE_EXPAT" = no; then
4472             { echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6; }
4474           elif test "$wxUSE_EXPAT" = sys; then
4475             { echo "$as_me:$LINENO: result: system version" >&5
4476 echo "${ECHO_T}system version" >&6; }
4477           elif test "$wxUSE_EXPAT" = builtin; then
4478             { echo "$as_me:$LINENO: result: builtin version" >&5
4479 echo "${ECHO_T}builtin version" >&6; }
4480           else
4481             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4482 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4483    { (exit 1); exit 1; }; }
4484           fi
4485
4486
4487
4488
4489           enablestring=
4490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4491 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4492           no_cache=0
4493           # Check whether --enable-shared was given.
4494 if test "${enable_shared+set}" = set; then
4495   enableval=$enable_shared;
4496                           if test "$enableval" = yes; then
4497                             ac_cv_use_shared='wxUSE_SHARED=yes'
4498                           else
4499                             ac_cv_use_shared='wxUSE_SHARED=no'
4500                           fi
4501
4502 else
4503
4504                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
4505                           if test "x$LINE" != x ; then
4506                             eval "DEFAULT_$LINE"
4507                           else
4508                             no_cache=1
4509                           fi
4510
4511                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
4512
4513 fi
4514
4515
4516           eval "$ac_cv_use_shared"
4517           if test "$no_cache" != 1; then
4518             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
4519           fi
4520
4521           if test "$wxUSE_SHARED" = yes; then
4522             { echo "$as_me:$LINENO: result: yes" >&5
4523 echo "${ECHO_T}yes" >&6; }
4524           else
4525             { echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6; }
4527           fi
4528
4529
4530           enablestring=
4531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4532 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4533           no_cache=0
4534           # Check whether --enable-optimise was given.
4535 if test "${enable_optimise+set}" = set; then
4536   enableval=$enable_optimise;
4537                           if test "$enableval" = yes; then
4538                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
4539                           else
4540                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
4541                           fi
4542
4543 else
4544
4545                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
4546                           if test "x$LINE" != x ; then
4547                             eval "DEFAULT_$LINE"
4548                           else
4549                             no_cache=1
4550                           fi
4551
4552                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
4553
4554 fi
4555
4556
4557           eval "$ac_cv_use_optimise"
4558           if test "$no_cache" != 1; then
4559             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
4560           fi
4561
4562           if test "$wxUSE_OPTIMISE" = yes; then
4563             { echo "$as_me:$LINENO: result: yes" >&5
4564 echo "${ECHO_T}yes" >&6; }
4565           else
4566             { echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6; }
4568           fi
4569
4570
4571           enablestring=
4572           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4573 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4574           no_cache=0
4575           # Check whether --enable-debug was given.
4576 if test "${enable_debug+set}" = set; then
4577   enableval=$enable_debug;
4578                           if test "$enableval" = yes; then
4579                             ac_cv_use_debug='wxUSE_DEBUG=yes'
4580                           else
4581                             ac_cv_use_debug='wxUSE_DEBUG=no'
4582                           fi
4583
4584 else
4585
4586                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
4587                           if test "x$LINE" != x ; then
4588                             eval "DEFAULT_$LINE"
4589                           else
4590                             no_cache=1
4591                           fi
4592
4593                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
4594
4595 fi
4596
4597
4598           eval "$ac_cv_use_debug"
4599           if test "$no_cache" != 1; then
4600             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
4601           fi
4602
4603           if test "$wxUSE_DEBUG" = yes; then
4604             { echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6; }
4606           else
4607             { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4609           fi
4610
4611
4612           enablestring=
4613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4614 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4615           no_cache=0
4616           # Check whether --enable-stl was given.
4617 if test "${enable_stl+set}" = set; then
4618   enableval=$enable_stl;
4619                           if test "$enableval" = yes; then
4620                             ac_cv_use_stl='wxUSE_STL=yes'
4621                           else
4622                             ac_cv_use_stl='wxUSE_STL=no'
4623                           fi
4624
4625 else
4626
4627                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
4628                           if test "x$LINE" != x ; then
4629                             eval "DEFAULT_$LINE"
4630                           else
4631                             no_cache=1
4632                           fi
4633
4634                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
4635
4636 fi
4637
4638
4639           eval "$ac_cv_use_stl"
4640           if test "$no_cache" != 1; then
4641             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
4642           fi
4643
4644           if test "$wxUSE_STL" = yes; then
4645             { echo "$as_me:$LINENO: result: yes" >&5
4646 echo "${ECHO_T}yes" >&6; }
4647           else
4648             { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4650           fi
4651
4652 if test "$USE_OS2" = "1"; then
4653     DEFAULT_wxUSE_OMF=no
4654
4655           enablestring=
4656           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4657 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4658           no_cache=0
4659           # Check whether --enable-omf was given.
4660 if test "${enable_omf+set}" = set; then
4661   enableval=$enable_omf;
4662                           if test "$enableval" = yes; then
4663                             ac_cv_use_omf='wxUSE_OMF=yes'
4664                           else
4665                             ac_cv_use_omf='wxUSE_OMF=no'
4666                           fi
4667
4668 else
4669
4670                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
4671                           if test "x$LINE" != x ; then
4672                             eval "DEFAULT_$LINE"
4673                           else
4674                             no_cache=1
4675                           fi
4676
4677                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
4678
4679 fi
4680
4681
4682           eval "$ac_cv_use_omf"
4683           if test "$no_cache" != 1; then
4684             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
4685           fi
4686
4687           if test "$wxUSE_OMF" = yes; then
4688             { echo "$as_me:$LINENO: result: yes" >&5
4689 echo "${ECHO_T}yes" >&6; }
4690           else
4691             { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4693           fi
4694
4695 fi
4696
4697 if test "$wxUSE_DEBUG" = "yes"; then
4698   DEFAULT_wxUSE_DEBUG_FLAG=yes
4699   DEFAULT_wxUSE_DEBUG_INFO=yes
4700   BUILD=debug
4701 elif test "$wxUSE_DEBUG" = "no"; then
4702   DEFAULT_wxUSE_DEBUG_FLAG=no
4703   DEFAULT_wxUSE_DEBUG_INFO=no
4704   BUILD=release
4705 fi
4706
4707
4708           enablestring=
4709           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4710 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4711           no_cache=0
4712           # Check whether --enable-debug_flag was given.
4713 if test "${enable_debug_flag+set}" = set; then
4714   enableval=$enable_debug_flag;
4715                           if test "$enableval" = yes; then
4716                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4717                           else
4718                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4719                           fi
4720
4721 else
4722
4723                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4724                           if test "x$LINE" != x ; then
4725                             eval "DEFAULT_$LINE"
4726                           else
4727                             no_cache=1
4728                           fi
4729
4730                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4731
4732 fi
4733
4734
4735           eval "$ac_cv_use_debug_flag"
4736           if test "$no_cache" != 1; then
4737             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4738           fi
4739
4740           if test "$wxUSE_DEBUG_FLAG" = yes; then
4741             { echo "$as_me:$LINENO: result: yes" >&5
4742 echo "${ECHO_T}yes" >&6; }
4743           else
4744             { echo "$as_me:$LINENO: result: no" >&5
4745 echo "${ECHO_T}no" >&6; }
4746           fi
4747
4748
4749           enablestring=
4750           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4751 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4752           no_cache=0
4753           # Check whether --enable-debug_info was given.
4754 if test "${enable_debug_info+set}" = set; then
4755   enableval=$enable_debug_info;
4756                           if test "$enableval" = yes; then
4757                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4758                           else
4759                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4760                           fi
4761
4762 else
4763
4764                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4765                           if test "x$LINE" != x ; then
4766                             eval "DEFAULT_$LINE"
4767                           else
4768                             no_cache=1
4769                           fi
4770
4771                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4772
4773 fi
4774
4775
4776           eval "$ac_cv_use_debug_info"
4777           if test "$no_cache" != 1; then
4778             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4779           fi
4780
4781           if test "$wxUSE_DEBUG_INFO" = yes; then
4782             { echo "$as_me:$LINENO: result: yes" >&5
4783 echo "${ECHO_T}yes" >&6; }
4784           else
4785             { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787           fi
4788
4789
4790           enablestring=
4791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4792 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4793           no_cache=0
4794           # Check whether --enable-debug_gdb was given.
4795 if test "${enable_debug_gdb+set}" = set; then
4796   enableval=$enable_debug_gdb;
4797                           if test "$enableval" = yes; then
4798                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4799                           else
4800                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4801                           fi
4802
4803 else
4804
4805                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4806                           if test "x$LINE" != x ; then
4807                             eval "DEFAULT_$LINE"
4808                           else
4809                             no_cache=1
4810                           fi
4811
4812                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4813
4814 fi
4815
4816
4817           eval "$ac_cv_use_debug_gdb"
4818           if test "$no_cache" != 1; then
4819             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4820           fi
4821
4822           if test "$wxUSE_DEBUG_GDB" = yes; then
4823             { echo "$as_me:$LINENO: result: yes" >&5
4824 echo "${ECHO_T}yes" >&6; }
4825           else
4826             { echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6; }
4828           fi
4829
4830
4831           enablestring=
4832           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4833 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4834           no_cache=0
4835           # Check whether --enable-debug_cntxt was given.
4836 if test "${enable_debug_cntxt+set}" = set; then
4837   enableval=$enable_debug_cntxt;
4838                           if test "$enableval" = yes; then
4839                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4840                           else
4841                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4842                           fi
4843
4844 else
4845
4846                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4847                           if test "x$LINE" != x ; then
4848                             eval "DEFAULT_$LINE"
4849                           else
4850                             no_cache=1
4851                           fi
4852
4853                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4854
4855 fi
4856
4857
4858           eval "$ac_cv_use_debug_cntxt"
4859           if test "$no_cache" != 1; then
4860             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4861           fi
4862
4863           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4864             { echo "$as_me:$LINENO: result: yes" >&5
4865 echo "${ECHO_T}yes" >&6; }
4866           else
4867             { echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6; }
4869           fi
4870
4871
4872           enablestring=
4873           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4874 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4875           no_cache=0
4876           # Check whether --enable-mem_tracing was given.
4877 if test "${enable_mem_tracing+set}" = set; then
4878   enableval=$enable_mem_tracing;
4879                           if test "$enableval" = yes; then
4880                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4881                           else
4882                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4883                           fi
4884
4885 else
4886
4887                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4888                           if test "x$LINE" != x ; then
4889                             eval "DEFAULT_$LINE"
4890                           else
4891                             no_cache=1
4892                           fi
4893
4894                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4895
4896 fi
4897
4898
4899           eval "$ac_cv_use_mem_tracing"
4900           if test "$no_cache" != 1; then
4901             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4902           fi
4903
4904           if test "$wxUSE_MEM_TRACING" = yes; then
4905             { echo "$as_me:$LINENO: result: yes" >&5
4906 echo "${ECHO_T}yes" >&6; }
4907           else
4908             { echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6; }
4910           fi
4911
4912
4913           enablestring=
4914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4915 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
4916           no_cache=0
4917           # Check whether --enable-profile was given.
4918 if test "${enable_profile+set}" = set; then
4919   enableval=$enable_profile;
4920                           if test "$enableval" = yes; then
4921                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4922                           else
4923                             ac_cv_use_profile='wxUSE_PROFILE=no'
4924                           fi
4925
4926 else
4927
4928                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4929                           if test "x$LINE" != x ; then
4930                             eval "DEFAULT_$LINE"
4931                           else
4932                             no_cache=1
4933                           fi
4934
4935                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4936
4937 fi
4938
4939
4940           eval "$ac_cv_use_profile"
4941           if test "$no_cache" != 1; then
4942             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4943           fi
4944
4945           if test "$wxUSE_PROFILE" = yes; then
4946             { echo "$as_me:$LINENO: result: yes" >&5
4947 echo "${ECHO_T}yes" >&6; }
4948           else
4949             { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4951           fi
4952
4953
4954           enablestring=
4955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4956 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
4957           no_cache=0
4958           # Check whether --enable-no_rtti was given.
4959 if test "${enable_no_rtti+set}" = set; then
4960   enableval=$enable_no_rtti;
4961                           if test "$enableval" = yes; then
4962                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4963                           else
4964                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4965                           fi
4966
4967 else
4968
4969                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4970                           if test "x$LINE" != x ; then
4971                             eval "DEFAULT_$LINE"
4972                           else
4973                             no_cache=1
4974                           fi
4975
4976                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4977
4978 fi
4979
4980
4981           eval "$ac_cv_use_no_rtti"
4982           if test "$no_cache" != 1; then
4983             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4984           fi
4985
4986           if test "$wxUSE_NO_RTTI" = yes; then
4987             { echo "$as_me:$LINENO: result: yes" >&5
4988 echo "${ECHO_T}yes" >&6; }
4989           else
4990             { echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6; }
4992           fi
4993
4994
4995           enablestring=
4996           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4997 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
4998           no_cache=0
4999           # Check whether --enable-no_exceptions was given.
5000 if test "${enable_no_exceptions+set}" = set; then
5001   enableval=$enable_no_exceptions;
5002                           if test "$enableval" = yes; then
5003                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5004                           else
5005                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5006                           fi
5007
5008 else
5009
5010                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
5011                           if test "x$LINE" != x ; then
5012                             eval "DEFAULT_$LINE"
5013                           else
5014                             no_cache=1
5015                           fi
5016
5017                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
5018
5019 fi
5020
5021
5022           eval "$ac_cv_use_no_exceptions"
5023           if test "$no_cache" != 1; then
5024             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
5025           fi
5026
5027           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
5028             { echo "$as_me:$LINENO: result: yes" >&5
5029 echo "${ECHO_T}yes" >&6; }
5030           else
5031             { echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6; }
5033           fi
5034
5035
5036           enablestring=
5037           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5038 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5039           no_cache=0
5040           # Check whether --enable-permissive was given.
5041 if test "${enable_permissive+set}" = set; then
5042   enableval=$enable_permissive;
5043                           if test "$enableval" = yes; then
5044                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5045                           else
5046                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
5047                           fi
5048
5049 else
5050
5051                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
5052                           if test "x$LINE" != x ; then
5053                             eval "DEFAULT_$LINE"
5054                           else
5055                             no_cache=1
5056                           fi
5057
5058                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
5059
5060 fi
5061
5062
5063           eval "$ac_cv_use_permissive"
5064           if test "$no_cache" != 1; then
5065             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
5066           fi
5067
5068           if test "$wxUSE_PERMISSIVE" = yes; then
5069             { echo "$as_me:$LINENO: result: yes" >&5
5070 echo "${ECHO_T}yes" >&6; }
5071           else
5072             { echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6; }
5074           fi
5075
5076
5077           enablestring=
5078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5079 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5080           no_cache=0
5081           # Check whether --enable-no_deps was given.
5082 if test "${enable_no_deps+set}" = set; then
5083   enableval=$enable_no_deps;
5084                           if test "$enableval" = yes; then
5085                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5086                           else
5087                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
5088                           fi
5089
5090 else
5091
5092                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
5093                           if test "x$LINE" != x ; then
5094                             eval "DEFAULT_$LINE"
5095                           else
5096                             no_cache=1
5097                           fi
5098
5099                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
5100
5101 fi
5102
5103
5104           eval "$ac_cv_use_no_deps"
5105           if test "$no_cache" != 1; then
5106             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
5107           fi
5108
5109           if test "$wxUSE_NO_DEPS" = yes; then
5110             { echo "$as_me:$LINENO: result: yes" >&5
5111 echo "${ECHO_T}yes" >&6; }
5112           else
5113             { echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6; }
5115           fi
5116
5117
5118           enablestring=
5119           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5120 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5121           no_cache=0
5122           # Check whether --enable-vararg_macros was given.
5123 if test "${enable_vararg_macros+set}" = set; then
5124   enableval=$enable_vararg_macros;
5125                           if test "$enableval" = yes; then
5126                             ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5127                           else
5128                             ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5129                           fi
5130
5131 else
5132
5133                           LINE=`grep "wxUSE_VARARG_MACROS" ${wx_arg_cache_file}`
5134                           if test "x$LINE" != x ; then
5135                             eval "DEFAULT_$LINE"
5136                           else
5137                             no_cache=1
5138                           fi
5139
5140                           ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS='$DEFAULT_wxUSE_VARARG_MACROS
5141
5142 fi
5143
5144
5145           eval "$ac_cv_use_vararg_macros"
5146           if test "$no_cache" != 1; then
5147             echo $ac_cv_use_vararg_macros >> ${wx_arg_cache_file}.tmp
5148           fi
5149
5150           if test "$wxUSE_VARARG_MACROS" = yes; then
5151             { echo "$as_me:$LINENO: result: yes" >&5
5152 echo "${ECHO_T}yes" >&6; }
5153           else
5154             { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5156           fi
5157
5158
5159           enablestring=
5160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5161 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5162           no_cache=0
5163           # Check whether --enable-universal_binary was given.
5164 if test "${enable_universal_binary+set}" = set; then
5165   enableval=$enable_universal_binary;
5166                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5167
5168 else
5169
5170                           LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
5171                           if test "x$LINE" != x ; then
5172                             eval "DEFAULT_$LINE"
5173                             wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5174                           else
5175                             no_cache=1
5176                             wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
5177                           fi
5178
5179 fi
5180
5181
5182           eval "$wx_cv_use_universal_binary"
5183           if test "$no_cache" != 1; then
5184             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
5185           fi
5186
5187           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5188 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5189
5190
5191
5192           enablestring=enable
5193           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
5194 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6; }
5195           no_cache=0
5196           # Check whether --enable-compat24 was given.
5197 if test "${enable_compat24+set}" = set; then
5198   enableval=$enable_compat24;
5199                           if test "$enableval" = yes; then
5200                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
5201                           else
5202                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
5203                           fi
5204
5205 else
5206
5207                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
5208                           if test "x$LINE" != x ; then
5209                             eval "DEFAULT_$LINE"
5210                           else
5211                             no_cache=1
5212                           fi
5213
5214                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
5215
5216 fi
5217
5218
5219           eval "$ac_cv_use_compat24"
5220           if test "$no_cache" != 1; then
5221             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
5222           fi
5223
5224           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
5225             { echo "$as_me:$LINENO: result: yes" >&5
5226 echo "${ECHO_T}yes" >&6; }
5227           else
5228             { echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6; }
5230           fi
5231
5232
5233           enablestring=disable
5234           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5235 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5236           no_cache=0
5237           # Check whether --enable-compat26 was given.
5238 if test "${enable_compat26+set}" = set; then
5239   enableval=$enable_compat26;
5240                           if test "$enableval" = yes; then
5241                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5242                           else
5243                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5244                           fi
5245
5246 else
5247
5248                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
5249                           if test "x$LINE" != x ; then
5250                             eval "DEFAULT_$LINE"
5251                           else
5252                             no_cache=1
5253                           fi
5254
5255                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
5256
5257 fi
5258
5259
5260           eval "$ac_cv_use_compat26"
5261           if test "$no_cache" != 1; then
5262             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
5263           fi
5264
5265           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
5266             { echo "$as_me:$LINENO: result: yes" >&5
5267 echo "${ECHO_T}yes" >&6; }
5268           else
5269             { echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6; }
5271           fi
5272
5273
5274
5275           enablestring=
5276           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5277 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5278           no_cache=0
5279           # Check whether --enable-rpath was given.
5280 if test "${enable_rpath+set}" = set; then
5281   enableval=$enable_rpath;
5282                           if test "$enableval" = yes; then
5283                             ac_cv_use_rpath='wxUSE_RPATH=yes'
5284                           else
5285                             ac_cv_use_rpath='wxUSE_RPATH=no'
5286                           fi
5287
5288 else
5289
5290                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
5291                           if test "x$LINE" != x ; then
5292                             eval "DEFAULT_$LINE"
5293                           else
5294                             no_cache=1
5295                           fi
5296
5297                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
5298
5299 fi
5300
5301
5302           eval "$ac_cv_use_rpath"
5303           if test "$no_cache" != 1; then
5304             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
5305           fi
5306
5307           if test "$wxUSE_RPATH" = yes; then
5308             { echo "$as_me:$LINENO: result: yes" >&5
5309 echo "${ECHO_T}yes" >&6; }
5310           else
5311             { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5313           fi
5314
5315
5316
5317
5318
5319           enablestring=
5320           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5321 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5322           no_cache=0
5323           # Check whether --enable-intl was given.
5324 if test "${enable_intl+set}" = set; then
5325   enableval=$enable_intl;
5326                           if test "$enableval" = yes; then
5327                             ac_cv_use_intl='wxUSE_INTL=yes'
5328                           else
5329                             ac_cv_use_intl='wxUSE_INTL=no'
5330                           fi
5331
5332 else
5333
5334                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
5335                           if test "x$LINE" != x ; then
5336                             eval "DEFAULT_$LINE"
5337                           else
5338                             no_cache=1
5339                           fi
5340
5341                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
5342
5343 fi
5344
5345
5346           eval "$ac_cv_use_intl"
5347           if test "$no_cache" != 1; then
5348             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
5349           fi
5350
5351           if test "$wxUSE_INTL" = yes; then
5352             { echo "$as_me:$LINENO: result: yes" >&5
5353 echo "${ECHO_T}yes" >&6; }
5354           else
5355             { echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6; }
5357           fi
5358
5359
5360           enablestring=
5361           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5362 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5363           no_cache=0
5364           # Check whether --enable-config was given.
5365 if test "${enable_config+set}" = set; then
5366   enableval=$enable_config;
5367                           if test "$enableval" = yes; then
5368                             ac_cv_use_config='wxUSE_CONFIG=yes'
5369                           else
5370                             ac_cv_use_config='wxUSE_CONFIG=no'
5371                           fi
5372
5373 else
5374
5375                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
5376                           if test "x$LINE" != x ; then
5377                             eval "DEFAULT_$LINE"
5378                           else
5379                             no_cache=1
5380                           fi
5381
5382                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
5383
5384 fi
5385
5386
5387           eval "$ac_cv_use_config"
5388           if test "$no_cache" != 1; then
5389             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
5390           fi
5391
5392           if test "$wxUSE_CONFIG" = yes; then
5393             { echo "$as_me:$LINENO: result: yes" >&5
5394 echo "${ECHO_T}yes" >&6; }
5395           else
5396             { echo "$as_me:$LINENO: result: no" >&5
5397 echo "${ECHO_T}no" >&6; }
5398           fi
5399
5400
5401
5402           enablestring=
5403           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5404 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5405           no_cache=0
5406           # Check whether --enable-protocols was given.
5407 if test "${enable_protocols+set}" = set; then
5408   enableval=$enable_protocols;
5409                           if test "$enableval" = yes; then
5410                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
5411                           else
5412                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
5413                           fi
5414
5415 else
5416
5417                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5418                           if test "x$LINE" != x ; then
5419                             eval "DEFAULT_$LINE"
5420                           else
5421                             no_cache=1
5422                           fi
5423
5424                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5425
5426 fi
5427
5428
5429           eval "$ac_cv_use_protocols"
5430           if test "$no_cache" != 1; then
5431             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
5432           fi
5433
5434           if test "$wxUSE_PROTOCOL" = yes; then
5435             { echo "$as_me:$LINENO: result: yes" >&5
5436 echo "${ECHO_T}yes" >&6; }
5437           else
5438             { echo "$as_me:$LINENO: result: no" >&5
5439 echo "${ECHO_T}no" >&6; }
5440           fi
5441
5442
5443           enablestring=
5444           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5445 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5446           no_cache=0
5447           # Check whether --enable-ftp was given.
5448 if test "${enable_ftp+set}" = set; then
5449   enableval=$enable_ftp;
5450                           if test "$enableval" = yes; then
5451                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5452                           else
5453                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5454                           fi
5455
5456 else
5457
5458                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5459                           if test "x$LINE" != x ; then
5460                             eval "DEFAULT_$LINE"
5461                           else
5462                             no_cache=1
5463                           fi
5464
5465                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5466
5467 fi
5468
5469
5470           eval "$ac_cv_use_ftp"
5471           if test "$no_cache" != 1; then
5472             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
5473           fi
5474
5475           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5476             { echo "$as_me:$LINENO: result: yes" >&5
5477 echo "${ECHO_T}yes" >&6; }
5478           else
5479             { echo "$as_me:$LINENO: result: no" >&5
5480 echo "${ECHO_T}no" >&6; }
5481           fi
5482
5483
5484           enablestring=
5485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5486 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5487           no_cache=0
5488           # Check whether --enable-http was given.
5489 if test "${enable_http+set}" = set; then
5490   enableval=$enable_http;
5491                           if test "$enableval" = yes; then
5492                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5493                           else
5494                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5495                           fi
5496
5497 else
5498
5499                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5500                           if test "x$LINE" != x ; then
5501                             eval "DEFAULT_$LINE"
5502                           else
5503                             no_cache=1
5504                           fi
5505
5506                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5507
5508 fi
5509
5510
5511           eval "$ac_cv_use_http"
5512           if test "$no_cache" != 1; then
5513             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
5514           fi
5515
5516           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5517             { echo "$as_me:$LINENO: result: yes" >&5
5518 echo "${ECHO_T}yes" >&6; }
5519           else
5520             { echo "$as_me:$LINENO: result: no" >&5
5521 echo "${ECHO_T}no" >&6; }
5522           fi
5523
5524
5525           enablestring=
5526           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5527 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5528           no_cache=0
5529           # Check whether --enable-fileproto was given.
5530 if test "${enable_fileproto+set}" = set; then
5531   enableval=$enable_fileproto;
5532                           if test "$enableval" = yes; then
5533                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5534                           else
5535                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5536                           fi
5537
5538 else
5539
5540                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5541                           if test "x$LINE" != x ; then
5542                             eval "DEFAULT_$LINE"
5543                           else
5544                             no_cache=1
5545                           fi
5546
5547                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5548
5549 fi
5550
5551
5552           eval "$ac_cv_use_fileproto"
5553           if test "$no_cache" != 1; then
5554             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
5555           fi
5556
5557           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5558             { echo "$as_me:$LINENO: result: yes" >&5
5559 echo "${ECHO_T}yes" >&6; }
5560           else
5561             { echo "$as_me:$LINENO: result: no" >&5
5562 echo "${ECHO_T}no" >&6; }
5563           fi
5564
5565
5566           enablestring=
5567           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5568 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5569           no_cache=0
5570           # Check whether --enable-sockets was given.
5571 if test "${enable_sockets+set}" = set; then
5572   enableval=$enable_sockets;
5573                           if test "$enableval" = yes; then
5574                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
5575                           else
5576                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
5577                           fi
5578
5579 else
5580
5581                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
5582                           if test "x$LINE" != x ; then
5583                             eval "DEFAULT_$LINE"
5584                           else
5585                             no_cache=1
5586                           fi
5587
5588                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
5589
5590 fi
5591
5592
5593           eval "$ac_cv_use_sockets"
5594           if test "$no_cache" != 1; then
5595             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
5596           fi
5597
5598           if test "$wxUSE_SOCKETS" = yes; then
5599             { echo "$as_me:$LINENO: result: yes" >&5
5600 echo "${ECHO_T}yes" >&6; }
5601           else
5602             { echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6; }
5604           fi
5605
5606
5607           enablestring=
5608           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5609 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
5610           no_cache=0
5611           # Check whether --enable-ole was given.
5612 if test "${enable_ole+set}" = set; then
5613   enableval=$enable_ole;
5614                           if test "$enableval" = yes; then
5615                             ac_cv_use_ole='wxUSE_OLE=yes'
5616                           else
5617                             ac_cv_use_ole='wxUSE_OLE=no'
5618                           fi
5619
5620 else
5621
5622                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
5623                           if test "x$LINE" != x ; then
5624                             eval "DEFAULT_$LINE"
5625                           else
5626                             no_cache=1
5627                           fi
5628
5629                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
5630
5631 fi
5632
5633
5634           eval "$ac_cv_use_ole"
5635           if test "$no_cache" != 1; then
5636             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
5637           fi
5638
5639           if test "$wxUSE_OLE" = yes; then
5640             { echo "$as_me:$LINENO: result: yes" >&5
5641 echo "${ECHO_T}yes" >&6; }
5642           else
5643             { echo "$as_me:$LINENO: result: no" >&5
5644 echo "${ECHO_T}no" >&6; }
5645           fi
5646
5647
5648           enablestring=
5649           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
5650 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
5651           no_cache=0
5652           # Check whether --enable-dataobj was given.
5653 if test "${enable_dataobj+set}" = set; then
5654   enableval=$enable_dataobj;
5655                           if test "$enableval" = yes; then
5656                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
5657                           else
5658                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
5659                           fi
5660
5661 else
5662
5663                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
5664                           if test "x$LINE" != x ; then
5665                             eval "DEFAULT_$LINE"
5666                           else
5667                             no_cache=1
5668                           fi
5669
5670                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
5671
5672 fi
5673
5674
5675           eval "$ac_cv_use_dataobj"
5676           if test "$no_cache" != 1; then
5677             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
5678           fi
5679
5680           if test "$wxUSE_DATAOBJ" = yes; then
5681             { echo "$as_me:$LINENO: result: yes" >&5
5682 echo "${ECHO_T}yes" >&6; }
5683           else
5684             { echo "$as_me:$LINENO: result: no" >&5
5685 echo "${ECHO_T}no" >&6; }
5686           fi
5687
5688
5689
5690           enablestring=
5691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
5692 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
5693           no_cache=0
5694           # Check whether --enable-ipc was given.
5695 if test "${enable_ipc+set}" = set; then
5696   enableval=$enable_ipc;
5697                           if test "$enableval" = yes; then
5698                             ac_cv_use_ipc='wxUSE_IPC=yes'
5699                           else
5700                             ac_cv_use_ipc='wxUSE_IPC=no'
5701                           fi
5702
5703 else
5704
5705                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
5706                           if test "x$LINE" != x ; then
5707                             eval "DEFAULT_$LINE"
5708                           else
5709                             no_cache=1
5710                           fi
5711
5712                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5713
5714 fi
5715
5716
5717           eval "$ac_cv_use_ipc"
5718           if test "$no_cache" != 1; then
5719             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
5720           fi
5721
5722           if test "$wxUSE_IPC" = yes; then
5723             { echo "$as_me:$LINENO: result: yes" >&5
5724 echo "${ECHO_T}yes" >&6; }
5725           else
5726             { echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6; }
5728           fi
5729
5730
5731
5732           enablestring=
5733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
5734 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
5735           no_cache=0
5736           # Check whether --enable-apple_ieee was given.
5737 if test "${enable_apple_ieee+set}" = set; then
5738   enableval=$enable_apple_ieee;
5739                           if test "$enableval" = yes; then
5740                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5741                           else
5742                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5743                           fi
5744
5745 else
5746
5747                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5748                           if test "x$LINE" != x ; then
5749                             eval "DEFAULT_$LINE"
5750                           else
5751                             no_cache=1
5752                           fi
5753
5754                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5755
5756 fi
5757
5758
5759           eval "$ac_cv_use_apple_ieee"
5760           if test "$no_cache" != 1; then
5761             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5762           fi
5763
5764           if test "$wxUSE_APPLE_IEEE" = yes; then
5765             { echo "$as_me:$LINENO: result: yes" >&5
5766 echo "${ECHO_T}yes" >&6; }
5767           else
5768             { echo "$as_me:$LINENO: result: no" >&5
5769 echo "${ECHO_T}no" >&6; }
5770           fi
5771
5772
5773           enablestring=
5774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5775 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
5776           no_cache=0
5777           # Check whether --enable-arcstream was given.
5778 if test "${enable_arcstream+set}" = set; then
5779   enableval=$enable_arcstream;
5780                           if test "$enableval" = yes; then
5781                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
5782                           else
5783                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
5784                           fi
5785
5786 else
5787
5788                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
5789                           if test "x$LINE" != x ; then
5790                             eval "DEFAULT_$LINE"
5791                           else
5792                             no_cache=1
5793                           fi
5794
5795                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
5796
5797 fi
5798
5799
5800           eval "$ac_cv_use_arcstream"
5801           if test "$no_cache" != 1; then
5802             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5803           fi
5804
5805           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
5806             { echo "$as_me:$LINENO: result: yes" >&5
5807 echo "${ECHO_T}yes" >&6; }
5808           else
5809             { echo "$as_me:$LINENO: result: no" >&5
5810 echo "${ECHO_T}no" >&6; }
5811           fi
5812
5813
5814           enablestring=
5815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5816 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
5817           no_cache=0
5818           # Check whether --enable-backtrace was given.
5819 if test "${enable_backtrace+set}" = set; then
5820   enableval=$enable_backtrace;
5821                           if test "$enableval" = yes; then
5822                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5823                           else
5824                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
5825                           fi
5826
5827 else
5828
5829                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
5830                           if test "x$LINE" != x ; then
5831                             eval "DEFAULT_$LINE"
5832                           else
5833                             no_cache=1
5834                           fi
5835
5836                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
5837
5838 fi
5839
5840
5841           eval "$ac_cv_use_backtrace"
5842           if test "$no_cache" != 1; then
5843             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5844           fi
5845
5846           if test "$wxUSE_STACKWALKER" = yes; then
5847             { echo "$as_me:$LINENO: result: yes" >&5
5848 echo "${ECHO_T}yes" >&6; }
5849           else
5850             { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5852           fi
5853
5854
5855           enablestring=
5856           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5857 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
5858           no_cache=0
5859           # Check whether --enable-catch_segvs was given.
5860 if test "${enable_catch_segvs+set}" = set; then
5861   enableval=$enable_catch_segvs;
5862                           if test "$enableval" = yes; then
5863                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5864                           else
5865                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5866                           fi
5867
5868 else
5869
5870                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5871                           if test "x$LINE" != x ; then
5872                             eval "DEFAULT_$LINE"
5873                           else
5874                             no_cache=1
5875                           fi
5876
5877                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5878
5879 fi
5880
5881
5882           eval "$ac_cv_use_catch_segvs"
5883           if test "$no_cache" != 1; then
5884             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5885           fi
5886
5887           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5888             { echo "$as_me:$LINENO: result: yes" >&5
5889 echo "${ECHO_T}yes" >&6; }
5890           else
5891             { echo "$as_me:$LINENO: result: no" >&5
5892 echo "${ECHO_T}no" >&6; }
5893           fi
5894
5895
5896           enablestring=
5897           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5898 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
5899           no_cache=0
5900           # Check whether --enable-cmdline was given.
5901 if test "${enable_cmdline+set}" = set; then
5902   enableval=$enable_cmdline;
5903                           if test "$enableval" = yes; then
5904                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5905                           else
5906                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5907                           fi
5908
5909 else
5910
5911                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5912                           if test "x$LINE" != x ; then
5913                             eval "DEFAULT_$LINE"
5914                           else
5915                             no_cache=1
5916                           fi
5917
5918                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5919
5920 fi
5921
5922
5923           eval "$ac_cv_use_cmdline"
5924           if test "$no_cache" != 1; then
5925             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5926           fi
5927
5928           if test "$wxUSE_CMDLINE_PARSER" = yes; then
5929             { echo "$as_me:$LINENO: result: yes" >&5
5930 echo "${ECHO_T}yes" >&6; }
5931           else
5932             { echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6; }
5934           fi
5935
5936
5937           enablestring=
5938           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5939 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
5940           no_cache=0
5941           # Check whether --enable-datetime was given.
5942 if test "${enable_datetime+set}" = set; then
5943   enableval=$enable_datetime;
5944                           if test "$enableval" = yes; then
5945                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
5946                           else
5947                             ac_cv_use_datetime='wxUSE_DATETIME=no'
5948                           fi
5949
5950 else
5951
5952                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5953                           if test "x$LINE" != x ; then
5954                             eval "DEFAULT_$LINE"
5955                           else
5956                             no_cache=1
5957                           fi
5958
5959                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5960
5961 fi
5962
5963
5964           eval "$ac_cv_use_datetime"
5965           if test "$no_cache" != 1; then
5966             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5967           fi
5968
5969           if test "$wxUSE_DATETIME" = yes; then
5970             { echo "$as_me:$LINENO: result: yes" >&5
5971 echo "${ECHO_T}yes" >&6; }
5972           else
5973             { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5975           fi
5976
5977
5978           enablestring=
5979           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5980 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
5981           no_cache=0
5982           # Check whether --enable-debugreport was given.
5983 if test "${enable_debugreport+set}" = set; then
5984   enableval=$enable_debugreport;
5985                           if test "$enableval" = yes; then
5986                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5987                           else
5988                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5989                           fi
5990
5991 else
5992
5993                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5994                           if test "x$LINE" != x ; then
5995                             eval "DEFAULT_$LINE"
5996                           else
5997                             no_cache=1
5998                           fi
5999
6000                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
6001
6002 fi
6003
6004
6005           eval "$ac_cv_use_debugreport"
6006           if test "$no_cache" != 1; then
6007             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
6008           fi
6009
6010           if test "$wxUSE_DEBUGREPORT" = yes; then
6011             { echo "$as_me:$LINENO: result: yes" >&5
6012 echo "${ECHO_T}yes" >&6; }
6013           else
6014             { echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6; }
6016           fi
6017
6018
6019           enablestring=
6020           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6021 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6022           no_cache=0
6023           # Check whether --enable-dialupman was given.
6024 if test "${enable_dialupman+set}" = set; then
6025   enableval=$enable_dialupman;
6026                           if test "$enableval" = yes; then
6027                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6028                           else
6029                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6030                           fi
6031
6032 else
6033
6034                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
6035                           if test "x$LINE" != x ; then
6036                             eval "DEFAULT_$LINE"
6037                           else
6038                             no_cache=1
6039                           fi
6040
6041                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
6042
6043 fi
6044
6045
6046           eval "$ac_cv_use_dialupman"
6047           if test "$no_cache" != 1; then
6048             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
6049           fi
6050
6051           if test "$wxUSE_DIALUP_MANAGER" = yes; then
6052             { echo "$as_me:$LINENO: result: yes" >&5
6053 echo "${ECHO_T}yes" >&6; }
6054           else
6055             { echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6; }
6057           fi
6058
6059
6060           enablestring=
6061           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6062 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6063           no_cache=0
6064           # Check whether --enable-dynlib was given.
6065 if test "${enable_dynlib+set}" = set; then
6066   enableval=$enable_dynlib;
6067                           if test "$enableval" = yes; then
6068                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6069                           else
6070                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6071                           fi
6072
6073 else
6074
6075                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
6076                           if test "x$LINE" != x ; then
6077                             eval "DEFAULT_$LINE"
6078                           else
6079                             no_cache=1
6080                           fi
6081
6082                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
6083
6084 fi
6085
6086
6087           eval "$ac_cv_use_dynlib"
6088           if test "$no_cache" != 1; then
6089             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
6090           fi
6091
6092           if test "$wxUSE_DYNLIB_CLASS" = yes; then
6093             { echo "$as_me:$LINENO: result: yes" >&5
6094 echo "${ECHO_T}yes" >&6; }
6095           else
6096             { echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6; }
6098           fi
6099
6100
6101           enablestring=
6102           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6103 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6104           no_cache=0
6105           # Check whether --enable-dynamicloader was given.
6106 if test "${enable_dynamicloader+set}" = set; then
6107   enableval=$enable_dynamicloader;
6108                           if test "$enableval" = yes; then
6109                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6110                           else
6111                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6112                           fi
6113
6114 else
6115
6116                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
6117                           if test "x$LINE" != x ; then
6118                             eval "DEFAULT_$LINE"
6119                           else
6120                             no_cache=1
6121                           fi
6122
6123                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
6124
6125 fi
6126
6127
6128           eval "$ac_cv_use_dynamicloader"
6129           if test "$no_cache" != 1; then
6130             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
6131           fi
6132
6133           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
6134             { echo "$as_me:$LINENO: result: yes" >&5
6135 echo "${ECHO_T}yes" >&6; }
6136           else
6137             { echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6; }
6139           fi
6140
6141
6142           enablestring=
6143           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6144 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6145           no_cache=0
6146           # Check whether --enable-exceptions was given.
6147 if test "${enable_exceptions+set}" = set; then
6148   enableval=$enable_exceptions;
6149                           if test "$enableval" = yes; then
6150                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6151                           else
6152                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6153                           fi
6154
6155 else
6156
6157                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
6158                           if test "x$LINE" != x ; then
6159                             eval "DEFAULT_$LINE"
6160                           else
6161                             no_cache=1
6162                           fi
6163
6164                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
6165
6166 fi
6167
6168
6169           eval "$ac_cv_use_exceptions"
6170           if test "$no_cache" != 1; then
6171             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
6172           fi
6173
6174           if test "$wxUSE_EXCEPTIONS" = yes; then
6175             { echo "$as_me:$LINENO: result: yes" >&5
6176 echo "${ECHO_T}yes" >&6; }
6177           else
6178             { echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6; }
6180           fi
6181
6182
6183           enablestring=
6184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6185 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6186           no_cache=0
6187           # Check whether --enable-ffile was given.
6188 if test "${enable_ffile+set}" = set; then
6189   enableval=$enable_ffile;
6190                           if test "$enableval" = yes; then
6191                             ac_cv_use_ffile='wxUSE_FFILE=yes'
6192                           else
6193                             ac_cv_use_ffile='wxUSE_FFILE=no'
6194                           fi
6195
6196 else
6197
6198                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
6199                           if test "x$LINE" != x ; then
6200                             eval "DEFAULT_$LINE"
6201                           else
6202                             no_cache=1
6203                           fi
6204
6205                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
6206
6207 fi
6208
6209
6210           eval "$ac_cv_use_ffile"
6211           if test "$no_cache" != 1; then
6212             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
6213           fi
6214
6215           if test "$wxUSE_FFILE" = yes; then
6216             { echo "$as_me:$LINENO: result: yes" >&5
6217 echo "${ECHO_T}yes" >&6; }
6218           else
6219             { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6221           fi
6222
6223
6224           enablestring=
6225           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6226 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6227           no_cache=0
6228           # Check whether --enable-file was given.
6229 if test "${enable_file+set}" = set; then
6230   enableval=$enable_file;
6231                           if test "$enableval" = yes; then
6232                             ac_cv_use_file='wxUSE_FILE=yes'
6233                           else
6234                             ac_cv_use_file='wxUSE_FILE=no'
6235                           fi
6236
6237 else
6238
6239                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
6240                           if test "x$LINE" != x ; then
6241                             eval "DEFAULT_$LINE"
6242                           else
6243                             no_cache=1
6244                           fi
6245
6246                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
6247
6248 fi
6249
6250
6251           eval "$ac_cv_use_file"
6252           if test "$no_cache" != 1; then
6253             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
6254           fi
6255
6256           if test "$wxUSE_FILE" = yes; then
6257             { echo "$as_me:$LINENO: result: yes" >&5
6258 echo "${ECHO_T}yes" >&6; }
6259           else
6260             { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6262           fi
6263
6264
6265           enablestring=
6266           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6267 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6268           no_cache=0
6269           # Check whether --enable-filesystem was given.
6270 if test "${enable_filesystem+set}" = set; then
6271   enableval=$enable_filesystem;
6272                           if test "$enableval" = yes; then
6273                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6274                           else
6275                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6276                           fi
6277
6278 else
6279
6280                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
6281                           if test "x$LINE" != x ; then
6282                             eval "DEFAULT_$LINE"
6283                           else
6284                             no_cache=1
6285                           fi
6286
6287                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
6288
6289 fi
6290
6291
6292           eval "$ac_cv_use_filesystem"
6293           if test "$no_cache" != 1; then
6294             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
6295           fi
6296
6297           if test "$wxUSE_FILESYSTEM" = yes; then
6298             { echo "$as_me:$LINENO: result: yes" >&5
6299 echo "${ECHO_T}yes" >&6; }
6300           else
6301             { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6303           fi
6304
6305
6306           enablestring=
6307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6308 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6309           no_cache=0
6310           # Check whether --enable-fontmap was given.
6311 if test "${enable_fontmap+set}" = set; then
6312   enableval=$enable_fontmap;
6313                           if test "$enableval" = yes; then
6314                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
6315                           else
6316                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
6317                           fi
6318
6319 else
6320
6321                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
6322                           if test "x$LINE" != x ; then
6323                             eval "DEFAULT_$LINE"
6324                           else
6325                             no_cache=1
6326                           fi
6327
6328                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
6329
6330 fi
6331
6332
6333           eval "$ac_cv_use_fontmap"
6334           if test "$no_cache" != 1; then
6335             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
6336           fi
6337
6338           if test "$wxUSE_FONTMAP" = yes; then
6339             { echo "$as_me:$LINENO: result: yes" >&5
6340 echo "${ECHO_T}yes" >&6; }
6341           else
6342             { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6344           fi
6345
6346
6347           enablestring=
6348           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
6349 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
6350           no_cache=0
6351           # Check whether --enable-fs_archive was given.
6352 if test "${enable_fs_archive+set}" = set; then
6353   enableval=$enable_fs_archive;
6354                           if test "$enableval" = yes; then
6355                             ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
6356                           else
6357                             ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
6358                           fi
6359
6360 else
6361
6362                           LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}`
6363                           if test "x$LINE" != x ; then
6364                             eval "DEFAULT_$LINE"
6365                           else
6366                             no_cache=1
6367                           fi
6368
6369                           ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
6370
6371 fi
6372
6373
6374           eval "$ac_cv_use_fs_archive"
6375           if test "$no_cache" != 1; then
6376             echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
6377           fi
6378
6379           if test "$wxUSE_FS_ARCHIVE" = yes; then
6380             { echo "$as_me:$LINENO: result: yes" >&5
6381 echo "${ECHO_T}yes" >&6; }
6382           else
6383             { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6385           fi
6386
6387
6388           enablestring=
6389           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
6390 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
6391           no_cache=0
6392           # Check whether --enable-fs_inet was given.
6393 if test "${enable_fs_inet+set}" = set; then
6394   enableval=$enable_fs_inet;
6395                           if test "$enableval" = yes; then
6396                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
6397                           else
6398                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
6399                           fi
6400
6401 else
6402
6403                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
6404                           if test "x$LINE" != x ; then
6405                             eval "DEFAULT_$LINE"
6406                           else
6407                             no_cache=1
6408                           fi
6409
6410                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
6411
6412 fi
6413
6414
6415           eval "$ac_cv_use_fs_inet"
6416           if test "$no_cache" != 1; then
6417             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
6418           fi
6419
6420           if test "$wxUSE_FS_INET" = yes; then
6421             { echo "$as_me:$LINENO: result: yes" >&5
6422 echo "${ECHO_T}yes" >&6; }
6423           else
6424             { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6426           fi
6427
6428
6429           enablestring=
6430           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
6431 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
6432           no_cache=0
6433           # Check whether --enable-fs_zip was given.
6434 if test "${enable_fs_zip+set}" = set; then
6435   enableval=$enable_fs_zip;
6436                           if test "$enableval" = yes; then
6437                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
6438                           else
6439                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
6440                           fi
6441
6442 else
6443
6444                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
6445                           if test "x$LINE" != x ; then
6446                             eval "DEFAULT_$LINE"
6447                           else
6448                             no_cache=1
6449                           fi
6450
6451                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
6452
6453 fi
6454
6455
6456           eval "$ac_cv_use_fs_zip"
6457           if test "$no_cache" != 1; then
6458             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
6459           fi
6460
6461           if test "$wxUSE_FS_ZIP" = yes; then
6462             { echo "$as_me:$LINENO: result: yes" >&5
6463 echo "${ECHO_T}yes" >&6; }
6464           else
6465             { echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6; }
6467           fi
6468
6469
6470           enablestring=
6471           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
6472 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
6473           no_cache=0
6474           # Check whether --enable-geometry was given.
6475 if test "${enable_geometry+set}" = set; then
6476   enableval=$enable_geometry;
6477                           if test "$enableval" = yes; then
6478                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
6479                           else
6480                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
6481                           fi
6482
6483 else
6484
6485                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
6486                           if test "x$LINE" != x ; then
6487                             eval "DEFAULT_$LINE"
6488                           else
6489                             no_cache=1
6490                           fi
6491
6492                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
6493
6494 fi
6495
6496
6497           eval "$ac_cv_use_geometry"
6498           if test "$no_cache" != 1; then
6499             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
6500           fi
6501
6502           if test "$wxUSE_GEOMETRY" = yes; then
6503             { echo "$as_me:$LINENO: result: yes" >&5
6504 echo "${ECHO_T}yes" >&6; }
6505           else
6506             { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6508           fi
6509
6510
6511           enablestring=
6512           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
6513 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
6514           no_cache=0
6515           # Check whether --enable-log was given.
6516 if test "${enable_log+set}" = set; then
6517   enableval=$enable_log;
6518                           if test "$enableval" = yes; then
6519                             ac_cv_use_log='wxUSE_LOG=yes'
6520                           else
6521                             ac_cv_use_log='wxUSE_LOG=no'
6522                           fi
6523
6524 else
6525
6526                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
6527                           if test "x$LINE" != x ; then
6528                             eval "DEFAULT_$LINE"
6529                           else
6530                             no_cache=1
6531                           fi
6532
6533                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
6534
6535 fi
6536
6537
6538           eval "$ac_cv_use_log"
6539           if test "$no_cache" != 1; then
6540             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
6541           fi
6542
6543           if test "$wxUSE_LOG" = yes; then
6544             { echo "$as_me:$LINENO: result: yes" >&5
6545 echo "${ECHO_T}yes" >&6; }
6546           else
6547             { echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6; }
6549           fi
6550
6551
6552           enablestring=
6553           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
6554 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
6555           no_cache=0
6556           # Check whether --enable-longlong was given.
6557 if test "${enable_longlong+set}" = set; then
6558   enableval=$enable_longlong;
6559                           if test "$enableval" = yes; then
6560                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
6561                           else
6562                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
6563                           fi
6564
6565 else
6566
6567                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
6568                           if test "x$LINE" != x ; then
6569                             eval "DEFAULT_$LINE"
6570                           else
6571                             no_cache=1
6572                           fi
6573
6574                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
6575
6576 fi
6577
6578
6579           eval "$ac_cv_use_longlong"
6580           if test "$no_cache" != 1; then
6581             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
6582           fi
6583
6584           if test "$wxUSE_LONGLONG" = yes; then
6585             { echo "$as_me:$LINENO: result: yes" >&5
6586 echo "${ECHO_T}yes" >&6; }
6587           else
6588             { echo "$as_me:$LINENO: result: no" >&5
6589 echo "${ECHO_T}no" >&6; }
6590           fi
6591
6592
6593           enablestring=
6594           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
6595 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
6596           no_cache=0
6597           # Check whether --enable-mimetype was given.
6598 if test "${enable_mimetype+set}" = set; then
6599   enableval=$enable_mimetype;
6600                           if test "$enableval" = yes; then
6601                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
6602                           else
6603                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
6604                           fi
6605
6606 else
6607
6608                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
6609                           if test "x$LINE" != x ; then
6610                             eval "DEFAULT_$LINE"
6611                           else
6612                             no_cache=1
6613                           fi
6614
6615                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
6616
6617 fi
6618
6619
6620           eval "$ac_cv_use_mimetype"
6621           if test "$no_cache" != 1; then
6622             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
6623           fi
6624
6625           if test "$wxUSE_MIMETYPE" = yes; then
6626             { echo "$as_me:$LINENO: result: yes" >&5
6627 echo "${ECHO_T}yes" >&6; }
6628           else
6629             { echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6; }
6631           fi
6632
6633
6634           enablestring=
6635           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
6636 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
6637           no_cache=0
6638           # Check whether --enable-mslu was given.
6639 if test "${enable_mslu+set}" = set; then
6640   enableval=$enable_mslu;
6641                           if test "$enableval" = yes; then
6642                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
6643                           else
6644                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
6645                           fi
6646
6647 else
6648
6649                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
6650                           if test "x$LINE" != x ; then
6651                             eval "DEFAULT_$LINE"
6652                           else
6653                             no_cache=1
6654                           fi
6655
6656                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
6657
6658 fi
6659
6660
6661           eval "$ac_cv_use_mslu"
6662           if test "$no_cache" != 1; then
6663             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
6664           fi
6665
6666           if test "$wxUSE_UNICODE_MSLU" = yes; then
6667             { echo "$as_me:$LINENO: result: yes" >&5
6668 echo "${ECHO_T}yes" >&6; }
6669           else
6670             { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6672           fi
6673
6674
6675           enablestring=
6676           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
6677 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
6678           no_cache=0
6679           # Check whether --enable-snglinst was given.
6680 if test "${enable_snglinst+set}" = set; then
6681   enableval=$enable_snglinst;
6682                           if test "$enableval" = yes; then
6683                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
6684                           else
6685                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
6686                           fi
6687
6688 else
6689
6690                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
6691                           if test "x$LINE" != x ; then
6692                             eval "DEFAULT_$LINE"
6693                           else
6694                             no_cache=1
6695                           fi
6696
6697                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
6698
6699 fi
6700
6701
6702           eval "$ac_cv_use_snglinst"
6703           if test "$no_cache" != 1; then
6704             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
6705           fi
6706
6707           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
6708             { echo "$as_me:$LINENO: result: yes" >&5
6709 echo "${ECHO_T}yes" >&6; }
6710           else
6711             { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6713           fi
6714
6715
6716           enablestring=
6717           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
6718 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
6719           no_cache=0
6720           # Check whether --enable-std_iostreams was given.
6721 if test "${enable_std_iostreams+set}" = set; then
6722   enableval=$enable_std_iostreams;
6723                           if test "$enableval" = yes; then
6724                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
6725                           else
6726                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
6727                           fi
6728
6729 else
6730
6731                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
6732                           if test "x$LINE" != x ; then
6733                             eval "DEFAULT_$LINE"
6734                           else
6735                             no_cache=1
6736                           fi
6737
6738                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
6739
6740 fi
6741
6742
6743           eval "$ac_cv_use_std_iostreams"
6744           if test "$no_cache" != 1; then
6745             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
6746           fi
6747
6748           if test "$wxUSE_STD_IOSTREAM" = yes; then
6749             { echo "$as_me:$LINENO: result: yes" >&5
6750 echo "${ECHO_T}yes" >&6; }
6751           else
6752             { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6754           fi
6755
6756
6757           enablestring=
6758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6759 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
6760           no_cache=0
6761           # Check whether --enable-std_string was given.
6762 if test "${enable_std_string+set}" = set; then
6763   enableval=$enable_std_string;
6764                           if test "$enableval" = yes; then
6765                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6766                           else
6767                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
6768                           fi
6769
6770 else
6771
6772                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6773                           if test "x$LINE" != x ; then
6774                             eval "DEFAULT_$LINE"
6775                           else
6776                             no_cache=1
6777                           fi
6778
6779                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6780
6781 fi
6782
6783
6784           eval "$ac_cv_use_std_string"
6785           if test "$no_cache" != 1; then
6786             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6787           fi
6788
6789           if test "$wxUSE_STD_STRING" = yes; then
6790             { echo "$as_me:$LINENO: result: yes" >&5
6791 echo "${ECHO_T}yes" >&6; }
6792           else
6793             { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6795           fi
6796
6797
6798           enablestring=
6799           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6800 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
6801           no_cache=0
6802           # Check whether --enable-stdpaths was given.
6803 if test "${enable_stdpaths+set}" = set; then
6804   enableval=$enable_stdpaths;
6805                           if test "$enableval" = yes; then
6806                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
6807                           else
6808                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
6809                           fi
6810
6811 else
6812
6813                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
6814                           if test "x$LINE" != x ; then
6815                             eval "DEFAULT_$LINE"
6816                           else
6817                             no_cache=1
6818                           fi
6819
6820                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
6821
6822 fi
6823
6824
6825           eval "$ac_cv_use_stdpaths"
6826           if test "$no_cache" != 1; then
6827             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
6828           fi
6829
6830           if test "$wxUSE_STDPATHS" = yes; then
6831             { echo "$as_me:$LINENO: result: yes" >&5
6832 echo "${ECHO_T}yes" >&6; }
6833           else
6834             { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6836           fi
6837
6838
6839           enablestring=
6840           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6841 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
6842           no_cache=0
6843           # Check whether --enable-stopwatch was given.
6844 if test "${enable_stopwatch+set}" = set; then
6845   enableval=$enable_stopwatch;
6846                           if test "$enableval" = yes; then
6847                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6848                           else
6849                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6850                           fi
6851
6852 else
6853
6854                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6855                           if test "x$LINE" != x ; then
6856                             eval "DEFAULT_$LINE"
6857                           else
6858                             no_cache=1
6859                           fi
6860
6861                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6862
6863 fi
6864
6865
6866           eval "$ac_cv_use_stopwatch"
6867           if test "$no_cache" != 1; then
6868             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6869           fi
6870
6871           if test "$wxUSE_STOPWATCH" = yes; then
6872             { echo "$as_me:$LINENO: result: yes" >&5
6873 echo "${ECHO_T}yes" >&6; }
6874           else
6875             { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6877           fi
6878
6879
6880           enablestring=
6881           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6882 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
6883           no_cache=0
6884           # Check whether --enable-streams was given.
6885 if test "${enable_streams+set}" = set; then
6886   enableval=$enable_streams;
6887                           if test "$enableval" = yes; then
6888                             ac_cv_use_streams='wxUSE_STREAMS=yes'
6889                           else
6890                             ac_cv_use_streams='wxUSE_STREAMS=no'
6891                           fi
6892
6893 else
6894
6895                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6896                           if test "x$LINE" != x ; then
6897                             eval "DEFAULT_$LINE"
6898                           else
6899                             no_cache=1
6900                           fi
6901
6902                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6903
6904 fi
6905
6906
6907           eval "$ac_cv_use_streams"
6908           if test "$no_cache" != 1; then
6909             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6910           fi
6911
6912           if test "$wxUSE_STREAMS" = yes; then
6913             { echo "$as_me:$LINENO: result: yes" >&5
6914 echo "${ECHO_T}yes" >&6; }
6915           else
6916             { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6918           fi
6919
6920
6921           enablestring=
6922           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6923 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
6924           no_cache=0
6925           # Check whether --enable-system_options was given.
6926 if test "${enable_system_options+set}" = set; then
6927   enableval=$enable_system_options;
6928                           if test "$enableval" = yes; then
6929                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6930                           else
6931                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6932                           fi
6933
6934 else
6935
6936                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6937                           if test "x$LINE" != x ; then
6938                             eval "DEFAULT_$LINE"
6939                           else
6940                             no_cache=1
6941                           fi
6942
6943                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6944
6945 fi
6946
6947
6948           eval "$ac_cv_use_system_options"
6949           if test "$no_cache" != 1; then
6950             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6951           fi
6952
6953           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6954             { echo "$as_me:$LINENO: result: yes" >&5
6955 echo "${ECHO_T}yes" >&6; }
6956           else
6957             { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6959           fi
6960
6961
6962           enablestring=
6963           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
6964 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
6965           no_cache=0
6966           # Check whether --enable-tarstream was given.
6967 if test "${enable_tarstream+set}" = set; then
6968   enableval=$enable_tarstream;
6969                           if test "$enableval" = yes; then
6970                             ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
6971                           else
6972                             ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
6973                           fi
6974
6975 else
6976
6977                           LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}`
6978                           if test "x$LINE" != x ; then
6979                             eval "DEFAULT_$LINE"
6980                           else
6981                             no_cache=1
6982                           fi
6983
6984                           ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
6985
6986 fi
6987
6988
6989           eval "$ac_cv_use_tarstream"
6990           if test "$no_cache" != 1; then
6991             echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
6992           fi
6993
6994           if test "$wxUSE_TARSTREAM" = yes; then
6995             { echo "$as_me:$LINENO: result: yes" >&5
6996 echo "${ECHO_T}yes" >&6; }
6997           else
6998             { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7000           fi
7001
7002
7003           enablestring=
7004           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7005 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7006           no_cache=0
7007           # Check whether --enable-textbuf was given.
7008 if test "${enable_textbuf+set}" = set; then
7009   enableval=$enable_textbuf;
7010                           if test "$enableval" = yes; then
7011                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7012                           else
7013                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7014                           fi
7015
7016 else
7017
7018                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
7019                           if test "x$LINE" != x ; then
7020                             eval "DEFAULT_$LINE"
7021                           else
7022                             no_cache=1
7023                           fi
7024
7025                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
7026
7027 fi
7028
7029
7030           eval "$ac_cv_use_textbuf"
7031           if test "$no_cache" != 1; then
7032             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
7033           fi
7034
7035           if test "$wxUSE_TEXTBUFFER" = yes; then
7036             { echo "$as_me:$LINENO: result: yes" >&5
7037 echo "${ECHO_T}yes" >&6; }
7038           else
7039             { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7041           fi
7042
7043
7044           enablestring=
7045           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7046 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7047           no_cache=0
7048           # Check whether --enable-textfile was given.
7049 if test "${enable_textfile+set}" = set; then
7050   enableval=$enable_textfile;
7051                           if test "$enableval" = yes; then
7052                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
7053                           else
7054                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
7055                           fi
7056
7057 else
7058
7059                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
7060                           if test "x$LINE" != x ; then
7061                             eval "DEFAULT_$LINE"
7062                           else
7063                             no_cache=1
7064                           fi
7065
7066                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
7067
7068 fi
7069
7070
7071           eval "$ac_cv_use_textfile"
7072           if test "$no_cache" != 1; then
7073             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
7074           fi
7075
7076           if test "$wxUSE_TEXTFILE" = yes; then
7077             { echo "$as_me:$LINENO: result: yes" >&5
7078 echo "${ECHO_T}yes" >&6; }
7079           else
7080             { echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6; }
7082           fi
7083
7084
7085           enablestring=
7086           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7087 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7088           no_cache=0
7089           # Check whether --enable-timer was given.
7090 if test "${enable_timer+set}" = set; then
7091   enableval=$enable_timer;
7092                           if test "$enableval" = yes; then
7093                             ac_cv_use_timer='wxUSE_TIMER=yes'
7094                           else
7095                             ac_cv_use_timer='wxUSE_TIMER=no'
7096                           fi
7097
7098 else
7099
7100                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
7101                           if test "x$LINE" != x ; then
7102                             eval "DEFAULT_$LINE"
7103                           else
7104                             no_cache=1
7105                           fi
7106
7107                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
7108
7109 fi
7110
7111
7112           eval "$ac_cv_use_timer"
7113           if test "$no_cache" != 1; then
7114             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
7115           fi
7116
7117           if test "$wxUSE_TIMER" = yes; then
7118             { echo "$as_me:$LINENO: result: yes" >&5
7119 echo "${ECHO_T}yes" >&6; }
7120           else
7121             { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7123           fi
7124
7125
7126           enablestring=
7127           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
7128 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
7129           no_cache=0
7130           # Check whether --enable-unicode was given.
7131 if test "${enable_unicode+set}" = set; then
7132   enableval=$enable_unicode;
7133                           if test "$enableval" = yes; then
7134                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
7135                           else
7136                             ac_cv_use_unicode='wxUSE_UNICODE=no'
7137                           fi
7138
7139 else
7140
7141                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
7142                           if test "x$LINE" != x ; then
7143                             eval "DEFAULT_$LINE"
7144                           else
7145                             no_cache=1
7146                           fi
7147
7148                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
7149
7150 fi
7151
7152
7153           eval "$ac_cv_use_unicode"
7154           if test "$no_cache" != 1; then
7155             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
7156           fi
7157
7158           if test "$wxUSE_UNICODE" = yes; then
7159             { echo "$as_me:$LINENO: result: yes" >&5
7160 echo "${ECHO_T}yes" >&6; }
7161           else
7162             { echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6; }
7164           fi
7165
7166
7167           enablestring=
7168           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7169 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7170           no_cache=0
7171           # Check whether --enable-sound was given.
7172 if test "${enable_sound+set}" = set; then
7173   enableval=$enable_sound;
7174                           if test "$enableval" = yes; then
7175                             ac_cv_use_sound='wxUSE_SOUND=yes'
7176                           else
7177                             ac_cv_use_sound='wxUSE_SOUND=no'
7178                           fi
7179
7180 else
7181
7182                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
7183                           if test "x$LINE" != x ; then
7184                             eval "DEFAULT_$LINE"
7185                           else
7186                             no_cache=1
7187                           fi
7188
7189                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
7190
7191 fi
7192
7193
7194           eval "$ac_cv_use_sound"
7195           if test "$no_cache" != 1; then
7196             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
7197           fi
7198
7199           if test "$wxUSE_SOUND" = yes; then
7200             { echo "$as_me:$LINENO: result: yes" >&5
7201 echo "${ECHO_T}yes" >&6; }
7202           else
7203             { echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6; }
7205           fi
7206
7207
7208           enablestring=
7209           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
7210 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
7211           no_cache=0
7212           # Check whether --enable-mediactrl was given.
7213 if test "${enable_mediactrl+set}" = set; then
7214   enableval=$enable_mediactrl;
7215                           if test "$enableval" = yes; then
7216                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
7217                           else
7218                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
7219                           fi
7220
7221 else
7222
7223                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
7224                           if test "x$LINE" != x ; then
7225                             eval "DEFAULT_$LINE"
7226                           else
7227                             no_cache=1
7228                           fi
7229
7230                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
7231
7232 fi
7233
7234
7235           eval "$ac_cv_use_mediactrl"
7236           if test "$no_cache" != 1; then
7237             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
7238           fi
7239
7240           if test "$wxUSE_MEDIACTRL" = yes; then
7241             { echo "$as_me:$LINENO: result: yes" >&5
7242 echo "${ECHO_T}yes" >&6; }
7243           else
7244             { echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6; }
7246           fi
7247
7248
7249           enablestring=
7250           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
7251 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
7252           no_cache=0
7253           # Check whether --enable-gstreamer8 was given.
7254 if test "${enable_gstreamer8+set}" = set; then
7255   enableval=$enable_gstreamer8;
7256                           if test "$enableval" = yes; then
7257                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
7258                           else
7259                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
7260                           fi
7261
7262 else
7263
7264                           LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
7265                           if test "x$LINE" != x ; then
7266                             eval "DEFAULT_$LINE"
7267                           else
7268                             no_cache=1
7269                           fi
7270
7271                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
7272
7273 fi
7274
7275
7276           eval "$ac_cv_use_gstreamer8"
7277           if test "$no_cache" != 1; then
7278             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
7279           fi
7280
7281           if test "$wxUSE_GSTREAMER8" = yes; then
7282             { echo "$as_me:$LINENO: result: yes" >&5
7283 echo "${ECHO_T}yes" >&6; }
7284           else
7285             { echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6; }
7287           fi
7288
7289
7290           enablestring=
7291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7292 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7293           no_cache=0
7294           # Check whether --enable-printfposparam was given.
7295 if test "${enable_printfposparam+set}" = set; then
7296   enableval=$enable_printfposparam;
7297                           if test "$enableval" = yes; then
7298                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7299                           else
7300                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7301                           fi
7302
7303 else
7304
7305                           LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
7306                           if test "x$LINE" != x ; then
7307                             eval "DEFAULT_$LINE"
7308                           else
7309                             no_cache=1
7310                           fi
7311
7312                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
7313
7314 fi
7315
7316
7317           eval "$ac_cv_use_printfposparam"
7318           if test "$no_cache" != 1; then
7319             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
7320           fi
7321
7322           if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
7323             { echo "$as_me:$LINENO: result: yes" >&5
7324 echo "${ECHO_T}yes" >&6; }
7325           else
7326             { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7328           fi
7329
7330
7331           enablestring=
7332           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7333 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7334           no_cache=0
7335           # Check whether --enable-zipstream was given.
7336 if test "${enable_zipstream+set}" = set; then
7337   enableval=$enable_zipstream;
7338                           if test "$enableval" = yes; then
7339                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7340                           else
7341                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7342                           fi
7343
7344 else
7345
7346                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
7347                           if test "x$LINE" != x ; then
7348                             eval "DEFAULT_$LINE"
7349                           else
7350                             no_cache=1
7351                           fi
7352
7353                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
7354
7355 fi
7356
7357
7358           eval "$ac_cv_use_zipstream"
7359           if test "$no_cache" != 1; then
7360             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
7361           fi
7362
7363           if test "$wxUSE_ZIPSTREAM" = yes; then
7364             { echo "$as_me:$LINENO: result: yes" >&5
7365 echo "${ECHO_T}yes" >&6; }
7366           else
7367             { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7369           fi
7370
7371
7372
7373           enablestring=
7374           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7375 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7376           no_cache=0
7377           # Check whether --enable-url was given.
7378 if test "${enable_url+set}" = set; then
7379   enableval=$enable_url;
7380                           if test "$enableval" = yes; then
7381                             ac_cv_use_url='wxUSE_URL=yes'
7382                           else
7383                             ac_cv_use_url='wxUSE_URL=no'
7384                           fi
7385
7386 else
7387
7388                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
7389                           if test "x$LINE" != x ; then
7390                             eval "DEFAULT_$LINE"
7391                           else
7392                             no_cache=1
7393                           fi
7394
7395                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
7396
7397 fi
7398
7399
7400           eval "$ac_cv_use_url"
7401           if test "$no_cache" != 1; then
7402             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
7403           fi
7404
7405           if test "$wxUSE_URL" = yes; then
7406             { echo "$as_me:$LINENO: result: yes" >&5
7407 echo "${ECHO_T}yes" >&6; }
7408           else
7409             { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7411           fi
7412
7413
7414           enablestring=
7415           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7416 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7417           no_cache=0
7418           # Check whether --enable-variant was given.
7419 if test "${enable_variant+set}" = set; then
7420   enableval=$enable_variant;
7421                           if test "$enableval" = yes; then
7422                             ac_cv_use_variant='wxUSE_VARIANT=yes'
7423                           else
7424                             ac_cv_use_variant='wxUSE_VARIANT=no'
7425                           fi
7426
7427 else
7428
7429                           LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
7430                           if test "x$LINE" != x ; then
7431                             eval "DEFAULT_$LINE"
7432                           else
7433                             no_cache=1
7434                           fi
7435
7436                           ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
7437
7438 fi
7439
7440
7441           eval "$ac_cv_use_variant"
7442           if test "$no_cache" != 1; then
7443             echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
7444           fi
7445
7446           if test "$wxUSE_VARIANT" = yes; then
7447             { echo "$as_me:$LINENO: result: yes" >&5
7448 echo "${ECHO_T}yes" >&6; }
7449           else
7450             { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7452           fi
7453
7454
7455           enablestring=
7456           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7457 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7458           no_cache=0
7459           # Check whether --enable-protocol was given.
7460 if test "${enable_protocol+set}" = set; then
7461   enableval=$enable_protocol;
7462                           if test "$enableval" = yes; then
7463                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
7464                           else
7465                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
7466                           fi
7467
7468 else
7469
7470                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
7471                           if test "x$LINE" != x ; then
7472                             eval "DEFAULT_$LINE"
7473                           else
7474                             no_cache=1
7475                           fi
7476
7477                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
7478
7479 fi
7480
7481
7482           eval "$ac_cv_use_protocol"
7483           if test "$no_cache" != 1; then
7484             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
7485           fi
7486
7487           if test "$wxUSE_PROTOCOL" = yes; then
7488             { echo "$as_me:$LINENO: result: yes" >&5
7489 echo "${ECHO_T}yes" >&6; }
7490           else
7491             { echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6; }
7493           fi
7494
7495
7496           enablestring=
7497           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7498 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7499           no_cache=0
7500           # Check whether --enable-protocol_http was given.
7501 if test "${enable_protocol_http+set}" = set; then
7502   enableval=$enable_protocol_http;
7503                           if test "$enableval" = yes; then
7504                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7505                           else
7506                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7507                           fi
7508
7509 else
7510
7511                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
7512                           if test "x$LINE" != x ; then
7513                             eval "DEFAULT_$LINE"
7514                           else
7515                             no_cache=1
7516                           fi
7517
7518                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
7519
7520 fi
7521
7522
7523           eval "$ac_cv_use_protocol_http"
7524           if test "$no_cache" != 1; then
7525             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
7526           fi
7527
7528           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
7529             { echo "$as_me:$LINENO: result: yes" >&5
7530 echo "${ECHO_T}yes" >&6; }
7531           else
7532             { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7534           fi
7535
7536
7537           enablestring=
7538           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
7539 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
7540           no_cache=0
7541           # Check whether --enable-protocol_ftp was given.
7542 if test "${enable_protocol_ftp+set}" = set; then
7543   enableval=$enable_protocol_ftp;
7544                           if test "$enableval" = yes; then
7545                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
7546                           else
7547                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
7548                           fi
7549
7550 else
7551
7552                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
7553                           if test "x$LINE" != x ; then
7554                             eval "DEFAULT_$LINE"
7555                           else
7556                             no_cache=1
7557                           fi
7558
7559                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
7560
7561 fi
7562
7563
7564           eval "$ac_cv_use_protocol_ftp"
7565           if test "$no_cache" != 1; then
7566             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
7567           fi
7568
7569           if test "$wxUSE_PROTOCOL_FTP" = yes; then
7570             { echo "$as_me:$LINENO: result: yes" >&5
7571 echo "${ECHO_T}yes" >&6; }
7572           else
7573             { echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6; }
7575           fi
7576
7577
7578           enablestring=
7579           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
7580 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
7581           no_cache=0
7582           # Check whether --enable-protocol_file was given.
7583 if test "${enable_protocol_file+set}" = set; then
7584   enableval=$enable_protocol_file;
7585                           if test "$enableval" = yes; then
7586                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
7587                           else
7588                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
7589                           fi
7590
7591 else
7592
7593                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
7594                           if test "x$LINE" != x ; then
7595                             eval "DEFAULT_$LINE"
7596                           else
7597                             no_cache=1
7598                           fi
7599
7600                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
7601
7602 fi
7603
7604
7605           eval "$ac_cv_use_protocol_file"
7606           if test "$no_cache" != 1; then
7607             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
7608           fi
7609
7610           if test "$wxUSE_PROTOCOL_FILE" = yes; then
7611             { echo "$as_me:$LINENO: result: yes" >&5
7612 echo "${ECHO_T}yes" >&6; }
7613           else
7614             { echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6; }
7616           fi
7617
7618
7619
7620
7621
7622           enablestring=
7623           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
7624 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
7625           no_cache=0
7626           # Check whether --enable-threads was given.
7627 if test "${enable_threads+set}" = set; then
7628   enableval=$enable_threads;
7629                           if test "$enableval" = yes; then
7630                             ac_cv_use_threads='wxUSE_THREADS=yes'
7631                           else
7632                             ac_cv_use_threads='wxUSE_THREADS=no'
7633                           fi
7634
7635 else
7636
7637                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
7638                           if test "x$LINE" != x ; then
7639                             eval "DEFAULT_$LINE"
7640                           else
7641                             no_cache=1
7642                           fi
7643
7644                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
7645
7646 fi
7647
7648
7649           eval "$ac_cv_use_threads"
7650           if test "$no_cache" != 1; then
7651             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
7652           fi
7653
7654           if test "$wxUSE_THREADS" = yes; then
7655             { echo "$as_me:$LINENO: result: yes" >&5
7656 echo "${ECHO_T}yes" >&6; }
7657           else
7658             { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7660           fi
7661
7662
7663 if test "$wxUSE_GUI" = "yes"; then
7664
7665
7666
7667           enablestring=
7668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
7669 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
7670           no_cache=0
7671           # Check whether --enable-docview was given.
7672 if test "${enable_docview+set}" = set; then
7673   enableval=$enable_docview;
7674                           if test "$enableval" = yes; then
7675                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
7676                           else
7677                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
7678                           fi
7679
7680 else
7681
7682                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
7683                           if test "x$LINE" != x ; then
7684                             eval "DEFAULT_$LINE"
7685                           else
7686                             no_cache=1
7687                           fi
7688
7689                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
7690
7691 fi
7692
7693
7694           eval "$ac_cv_use_docview"
7695           if test "$no_cache" != 1; then
7696             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
7697           fi
7698
7699           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
7700             { echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6; }
7702           else
7703             { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7705           fi
7706
7707
7708           enablestring=
7709           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
7710 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
7711           no_cache=0
7712           # Check whether --enable-help was given.
7713 if test "${enable_help+set}" = set; then
7714   enableval=$enable_help;
7715                           if test "$enableval" = yes; then
7716                             ac_cv_use_help='wxUSE_HELP=yes'
7717                           else
7718                             ac_cv_use_help='wxUSE_HELP=no'
7719                           fi
7720
7721 else
7722
7723                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
7724                           if test "x$LINE" != x ; then
7725                             eval "DEFAULT_$LINE"
7726                           else
7727                             no_cache=1
7728                           fi
7729
7730                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
7731
7732 fi
7733
7734
7735           eval "$ac_cv_use_help"
7736           if test "$no_cache" != 1; then
7737             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
7738           fi
7739
7740           if test "$wxUSE_HELP" = yes; then
7741             { echo "$as_me:$LINENO: result: yes" >&5
7742 echo "${ECHO_T}yes" >&6; }
7743           else
7744             { echo "$as_me:$LINENO: result: no" >&5
7745 echo "${ECHO_T}no" >&6; }
7746           fi
7747
7748
7749           enablestring=
7750           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7751 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
7752           no_cache=0
7753           # Check whether --enable-mshtmlhelp was given.
7754 if test "${enable_mshtmlhelp+set}" = set; then
7755   enableval=$enable_mshtmlhelp;
7756                           if test "$enableval" = yes; then
7757                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7758                           else
7759                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7760                           fi
7761
7762 else
7763
7764                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
7765                           if test "x$LINE" != x ; then
7766                             eval "DEFAULT_$LINE"
7767                           else
7768                             no_cache=1
7769                           fi
7770
7771                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7772
7773 fi
7774
7775
7776           eval "$ac_cv_use_mshtmlhelp"
7777           if test "$no_cache" != 1; then
7778             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7779           fi
7780
7781           if test "$wxUSE_MS_HTML_HELP" = yes; then
7782             { echo "$as_me:$LINENO: result: yes" >&5
7783 echo "${ECHO_T}yes" >&6; }
7784           else
7785             { echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6; }
7787           fi
7788
7789
7790           enablestring=
7791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7792 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
7793           no_cache=0
7794           # Check whether --enable-html was given.
7795 if test "${enable_html+set}" = set; then
7796   enableval=$enable_html;
7797                           if test "$enableval" = yes; then
7798                             ac_cv_use_html='wxUSE_HTML=yes'
7799                           else
7800                             ac_cv_use_html='wxUSE_HTML=no'
7801                           fi
7802
7803 else
7804
7805                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7806                           if test "x$LINE" != x ; then
7807                             eval "DEFAULT_$LINE"
7808                           else
7809                             no_cache=1
7810                           fi
7811
7812                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7813
7814 fi
7815
7816
7817           eval "$ac_cv_use_html"
7818           if test "$no_cache" != 1; then
7819             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7820           fi
7821
7822           if test "$wxUSE_HTML" = yes; then
7823             { echo "$as_me:$LINENO: result: yes" >&5
7824 echo "${ECHO_T}yes" >&6; }
7825           else
7826             { echo "$as_me:$LINENO: result: no" >&5
7827 echo "${ECHO_T}no" >&6; }
7828           fi
7829
7830
7831           enablestring=
7832           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7833 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
7834           no_cache=0
7835           # Check whether --enable-htmlhelp was given.
7836 if test "${enable_htmlhelp+set}" = set; then
7837   enableval=$enable_htmlhelp;
7838                           if test "$enableval" = yes; then
7839                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7840                           else
7841                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7842                           fi
7843
7844 else
7845
7846                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7847                           if test "x$LINE" != x ; then
7848                             eval "DEFAULT_$LINE"
7849                           else
7850                             no_cache=1
7851                           fi
7852
7853                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7854
7855 fi
7856
7857
7858           eval "$ac_cv_use_htmlhelp"
7859           if test "$no_cache" != 1; then
7860             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7861           fi
7862
7863           if test "$wxUSE_WXHTML_HELP" = yes; then
7864             { echo "$as_me:$LINENO: result: yes" >&5
7865 echo "${ECHO_T}yes" >&6; }
7866           else
7867             { echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6; }
7869           fi
7870
7871
7872           enablestring=
7873           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7874 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
7875           no_cache=0
7876           # Check whether --enable-xrc was given.
7877 if test "${enable_xrc+set}" = set; then
7878   enableval=$enable_xrc;
7879                           if test "$enableval" = yes; then
7880                             ac_cv_use_xrc='wxUSE_XRC=yes'
7881                           else
7882                             ac_cv_use_xrc='wxUSE_XRC=no'
7883                           fi
7884
7885 else
7886
7887                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7888                           if test "x$LINE" != x ; then
7889                             eval "DEFAULT_$LINE"
7890                           else
7891                             no_cache=1
7892                           fi
7893
7894                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7895
7896 fi
7897
7898
7899           eval "$ac_cv_use_xrc"
7900           if test "$no_cache" != 1; then
7901             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7902           fi
7903
7904           if test "$wxUSE_XRC" = yes; then
7905             { echo "$as_me:$LINENO: result: yes" >&5
7906 echo "${ECHO_T}yes" >&6; }
7907           else
7908             { echo "$as_me:$LINENO: result: no" >&5
7909 echo "${ECHO_T}no" >&6; }
7910           fi
7911
7912
7913           enablestring=
7914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7915 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
7916           no_cache=0
7917           # Check whether --enable-aui was given.
7918 if test "${enable_aui+set}" = set; then
7919   enableval=$enable_aui;
7920                           if test "$enableval" = yes; then
7921                             ac_cv_use_aui='wxUSE_AUI=yes'
7922                           else
7923                             ac_cv_use_aui='wxUSE_AUI=no'
7924                           fi
7925
7926 else
7927
7928                           LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7929                           if test "x$LINE" != x ; then
7930                             eval "DEFAULT_$LINE"
7931                           else
7932                             no_cache=1
7933                           fi
7934
7935                           ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7936
7937 fi
7938
7939
7940           eval "$ac_cv_use_aui"
7941           if test "$no_cache" != 1; then
7942             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7943           fi
7944
7945           if test "$wxUSE_AUI" = yes; then
7946             { echo "$as_me:$LINENO: result: yes" >&5
7947 echo "${ECHO_T}yes" >&6; }
7948           else
7949             { echo "$as_me:$LINENO: result: no" >&5
7950 echo "${ECHO_T}no" >&6; }
7951           fi
7952
7953
7954           enablestring=
7955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7956 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
7957           no_cache=0
7958           # Check whether --enable-constraints was given.
7959 if test "${enable_constraints+set}" = set; then
7960   enableval=$enable_constraints;
7961                           if test "$enableval" = yes; then
7962                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7963                           else
7964                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7965                           fi
7966
7967 else
7968
7969                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7970                           if test "x$LINE" != x ; then
7971                             eval "DEFAULT_$LINE"
7972                           else
7973                             no_cache=1
7974                           fi
7975
7976                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7977
7978 fi
7979
7980
7981           eval "$ac_cv_use_constraints"
7982           if test "$no_cache" != 1; then
7983             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7984           fi
7985
7986           if test "$wxUSE_CONSTRAINTS" = yes; then
7987             { echo "$as_me:$LINENO: result: yes" >&5
7988 echo "${ECHO_T}yes" >&6; }
7989           else
7990             { echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6; }
7992           fi
7993
7994
7995           enablestring=
7996           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7997 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
7998           no_cache=0
7999           # Check whether --enable-printarch was given.
8000 if test "${enable_printarch+set}" = set; then
8001   enableval=$enable_printarch;
8002                           if test "$enableval" = yes; then
8003                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
8004                           else
8005                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
8006                           fi
8007
8008 else
8009
8010                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
8011                           if test "x$LINE" != x ; then
8012                             eval "DEFAULT_$LINE"
8013                           else
8014                             no_cache=1
8015                           fi
8016
8017                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
8018
8019 fi
8020
8021
8022           eval "$ac_cv_use_printarch"
8023           if test "$no_cache" != 1; then
8024             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
8025           fi
8026
8027           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
8028             { echo "$as_me:$LINENO: result: yes" >&5
8029 echo "${ECHO_T}yes" >&6; }
8030           else
8031             { echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6; }
8033           fi
8034
8035
8036           enablestring=
8037           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8038 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8039           no_cache=0
8040           # Check whether --enable-mdi was given.
8041 if test "${enable_mdi+set}" = set; then
8042   enableval=$enable_mdi;
8043                           if test "$enableval" = yes; then
8044                             ac_cv_use_mdi='wxUSE_MDI=yes'
8045                           else
8046                             ac_cv_use_mdi='wxUSE_MDI=no'
8047                           fi
8048
8049 else
8050
8051                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
8052                           if test "x$LINE" != x ; then
8053                             eval "DEFAULT_$LINE"
8054                           else
8055                             no_cache=1
8056                           fi
8057
8058                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
8059
8060 fi
8061
8062
8063           eval "$ac_cv_use_mdi"
8064           if test "$no_cache" != 1; then
8065             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
8066           fi
8067
8068           if test "$wxUSE_MDI" = yes; then
8069             { echo "$as_me:$LINENO: result: yes" >&5
8070 echo "${ECHO_T}yes" >&6; }
8071           else
8072             { echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6; }
8074           fi
8075
8076
8077           enablestring=
8078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8079 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8080           no_cache=0
8081           # Check whether --enable-mdidoc was given.
8082 if test "${enable_mdidoc+set}" = set; then
8083   enableval=$enable_mdidoc;
8084                           if test "$enableval" = yes; then
8085                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8086                           else
8087                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8088                           fi
8089
8090 else
8091
8092                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
8093                           if test "x$LINE" != x ; then
8094                             eval "DEFAULT_$LINE"
8095                           else
8096                             no_cache=1
8097                           fi
8098
8099                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
8100
8101 fi
8102
8103
8104           eval "$ac_cv_use_mdidoc"
8105           if test "$no_cache" != 1; then
8106             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
8107           fi
8108
8109           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
8110             { echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6; }
8112           else
8113             { echo "$as_me:$LINENO: result: no" >&5
8114 echo "${ECHO_T}no" >&6; }
8115           fi
8116
8117
8118           enablestring=
8119           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8120 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8121           no_cache=0
8122           # Check whether --enable-loggui was given.
8123 if test "${enable_loggui+set}" = set; then
8124   enableval=$enable_loggui;
8125                           if test "$enableval" = yes; then
8126                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
8127                           else
8128                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
8129                           fi
8130
8131 else
8132
8133                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
8134                           if test "x$LINE" != x ; then
8135                             eval "DEFAULT_$LINE"
8136                           else
8137                             no_cache=1
8138                           fi
8139
8140                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
8141
8142 fi
8143
8144
8145           eval "$ac_cv_use_loggui"
8146           if test "$no_cache" != 1; then
8147             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
8148           fi
8149
8150           if test "$wxUSE_LOGGUI" = yes; then
8151             { echo "$as_me:$LINENO: result: yes" >&5
8152 echo "${ECHO_T}yes" >&6; }
8153           else
8154             { echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6; }
8156           fi
8157
8158
8159           enablestring=
8160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8161 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8162           no_cache=0
8163           # Check whether --enable-logwin was given.
8164 if test "${enable_logwin+set}" = set; then
8165   enableval=$enable_logwin;
8166                           if test "$enableval" = yes; then
8167                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8168                           else
8169                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
8170                           fi
8171
8172 else
8173
8174                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
8175                           if test "x$LINE" != x ; then
8176                             eval "DEFAULT_$LINE"
8177                           else
8178                             no_cache=1
8179                           fi
8180
8181                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
8182
8183 fi
8184
8185
8186           eval "$ac_cv_use_logwin"
8187           if test "$no_cache" != 1; then
8188             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
8189           fi
8190
8191           if test "$wxUSE_LOGWINDOW" = yes; then
8192             { echo "$as_me:$LINENO: result: yes" >&5
8193 echo "${ECHO_T}yes" >&6; }
8194           else
8195             { echo "$as_me:$LINENO: result: no" >&5
8196 echo "${ECHO_T}no" >&6; }
8197           fi
8198
8199
8200           enablestring=
8201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8202 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8203           no_cache=0
8204           # Check whether --enable-logdialog was given.
8205 if test "${enable_logdialog+set}" = set; then
8206   enableval=$enable_logdialog;
8207                           if test "$enableval" = yes; then
8208                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8209                           else
8210                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8211                           fi
8212
8213 else
8214
8215                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
8216                           if test "x$LINE" != x ; then
8217                             eval "DEFAULT_$LINE"
8218                           else
8219                             no_cache=1
8220                           fi
8221
8222                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
8223
8224 fi
8225
8226
8227           eval "$ac_cv_use_logdialog"
8228           if test "$no_cache" != 1; then
8229             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
8230           fi
8231
8232           if test "$wxUSE_LOGDIALOG" = yes; then
8233             { echo "$as_me:$LINENO: result: yes" >&5
8234 echo "${ECHO_T}yes" >&6; }
8235           else
8236             { echo "$as_me:$LINENO: result: no" >&5
8237 echo "${ECHO_T}no" >&6; }
8238           fi
8239
8240
8241           enablestring=
8242           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
8243 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
8244           no_cache=0
8245           # Check whether --enable-webkit was given.
8246 if test "${enable_webkit+set}" = set; then
8247   enableval=$enable_webkit;
8248                           if test "$enableval" = yes; then
8249                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
8250                           else
8251                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
8252                           fi
8253
8254 else
8255
8256                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
8257                           if test "x$LINE" != x ; then
8258                             eval "DEFAULT_$LINE"
8259                           else
8260                             no_cache=1
8261                           fi
8262
8263                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
8264
8265 fi
8266
8267
8268           eval "$ac_cv_use_webkit"
8269           if test "$no_cache" != 1; then
8270             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
8271           fi
8272
8273           if test "$wxUSE_WEBKIT" = yes; then
8274             { echo "$as_me:$LINENO: result: yes" >&5
8275 echo "${ECHO_T}yes" >&6; }
8276           else
8277             { echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6; }
8279           fi
8280
8281
8282           enablestring=
8283           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
8284 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
8285           no_cache=0
8286           # Check whether --enable-richtext was given.
8287 if test "${enable_richtext+set}" = set; then
8288   enableval=$enable_richtext;
8289                           if test "$enableval" = yes; then
8290                             ac_cv_use_richtext='wxUSE_RICHTEXT=yes'
8291                           else
8292                             ac_cv_use_richtext='wxUSE_RICHTEXT=no'
8293                           fi
8294
8295 else
8296
8297                           LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
8298                           if test "x$LINE" != x ; then
8299                             eval "DEFAULT_$LINE"
8300                           else
8301                             no_cache=1
8302                           fi
8303
8304                           ac_cv_use_richtext='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
8305
8306 fi
8307
8308
8309           eval "$ac_cv_use_richtext"
8310           if test "$no_cache" != 1; then
8311             echo $ac_cv_use_richtext >> ${wx_arg_cache_file}.tmp
8312           fi
8313
8314           if test "$wxUSE_RICHTEXT" = yes; then
8315             { echo "$as_me:$LINENO: result: yes" >&5
8316 echo "${ECHO_T}yes" >&6; }
8317           else
8318             { echo "$as_me:$LINENO: result: no" >&5
8319 echo "${ECHO_T}no" >&6; }
8320           fi
8321
8322
8323           enablestring=
8324           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
8325 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
8326           no_cache=0
8327           # Check whether --enable-graphics_ctx was given.
8328 if test "${enable_graphics_ctx+set}" = set; then
8329   enableval=$enable_graphics_ctx;
8330                           if test "$enableval" = yes; then
8331                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
8332                           else
8333                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
8334                           fi
8335
8336 else
8337
8338                           LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
8339                           if test "x$LINE" != x ; then
8340                             eval "DEFAULT_$LINE"
8341                           else
8342                             no_cache=1
8343                           fi
8344
8345                           ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
8346
8347 fi
8348
8349
8350           eval "$ac_cv_use_graphics_ctx"
8351           if test "$no_cache" != 1; then
8352             echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
8353           fi
8354
8355           if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
8356             { echo "$as_me:$LINENO: result: yes" >&5
8357 echo "${ECHO_T}yes" >&6; }
8358           else
8359             { echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6; }
8361           fi
8362
8363
8364
8365           enablestring=
8366           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
8367 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
8368           no_cache=0
8369           # Check whether --enable-postscript was given.
8370 if test "${enable_postscript+set}" = set; then
8371   enableval=$enable_postscript;
8372                           if test "$enableval" = yes; then
8373                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
8374                           else
8375                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
8376                           fi
8377
8378 else
8379
8380                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
8381                           if test "x$LINE" != x ; then
8382                             eval "DEFAULT_$LINE"
8383                           else
8384                             no_cache=1
8385                           fi
8386
8387                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
8388
8389 fi
8390
8391
8392           eval "$ac_cv_use_postscript"
8393           if test "$no_cache" != 1; then
8394             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
8395           fi
8396
8397           if test "$wxUSE_POSTSCRIPT" = yes; then
8398             { echo "$as_me:$LINENO: result: yes" >&5
8399 echo "${ECHO_T}yes" >&6; }
8400           else
8401             { echo "$as_me:$LINENO: result: no" >&5
8402 echo "${ECHO_T}no" >&6; }
8403           fi
8404
8405
8406
8407
8408
8409           enablestring=
8410           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
8411 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6; }
8412           no_cache=0
8413           # Check whether --enable-prologio was given.
8414 if test "${enable_prologio+set}" = set; then
8415   enableval=$enable_prologio;
8416                           if test "$enableval" = yes; then
8417                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
8418                           else
8419                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
8420                           fi
8421
8422 else
8423
8424                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
8425                           if test "x$LINE" != x ; then
8426                             eval "DEFAULT_$LINE"
8427                           else
8428                             no_cache=1
8429                           fi
8430
8431                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
8432
8433 fi
8434
8435
8436           eval "$ac_cv_use_prologio"
8437           if test "$no_cache" != 1; then
8438             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
8439           fi
8440
8441           if test "$wxUSE_PROLOGIO" = yes; then
8442             { echo "$as_me:$LINENO: result: yes" >&5
8443 echo "${ECHO_T}yes" >&6; }
8444           else
8445             { echo "$as_me:$LINENO: result: no" >&5
8446 echo "${ECHO_T}no" >&6; }
8447           fi
8448
8449
8450           enablestring=
8451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
8452 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6; }
8453           no_cache=0
8454           # Check whether --enable-resources was given.
8455 if test "${enable_resources+set}" = set; then
8456   enableval=$enable_resources;
8457                           if test "$enableval" = yes; then
8458                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
8459                           else
8460                             ac_cv_use_resources='wxUSE_RESOURCES=no'
8461                           fi
8462
8463 else
8464
8465                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
8466                           if test "x$LINE" != x ; then
8467                             eval "DEFAULT_$LINE"
8468                           else
8469                             no_cache=1
8470                           fi
8471
8472                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
8473
8474 fi
8475
8476
8477           eval "$ac_cv_use_resources"
8478           if test "$no_cache" != 1; then
8479             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
8480           fi
8481
8482           if test "$wxUSE_RESOURCES" = yes; then
8483             { echo "$as_me:$LINENO: result: yes" >&5
8484 echo "${ECHO_T}yes" >&6; }
8485           else
8486             { echo "$as_me:$LINENO: result: no" >&5
8487 echo "${ECHO_T}no" >&6; }
8488           fi
8489
8490
8491
8492
8493           enablestring=
8494           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
8495 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
8496           no_cache=0
8497           # Check whether --enable-clipboard was given.
8498 if test "${enable_clipboard+set}" = set; then
8499   enableval=$enable_clipboard;
8500                           if test "$enableval" = yes; then
8501                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
8502                           else
8503                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
8504                           fi
8505
8506 else
8507
8508                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
8509                           if test "x$LINE" != x ; then
8510                             eval "DEFAULT_$LINE"
8511                           else
8512                             no_cache=1
8513                           fi
8514
8515                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
8516
8517 fi
8518
8519
8520           eval "$ac_cv_use_clipboard"
8521           if test "$no_cache" != 1; then
8522             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
8523           fi
8524
8525           if test "$wxUSE_CLIPBOARD" = yes; then
8526             { echo "$as_me:$LINENO: result: yes" >&5
8527 echo "${ECHO_T}yes" >&6; }
8528           else
8529             { echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6; }
8531           fi
8532
8533
8534           enablestring=
8535           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
8536 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
8537           no_cache=0
8538           # Check whether --enable-dnd was given.
8539 if test "${enable_dnd+set}" = set; then
8540   enableval=$enable_dnd;
8541                           if test "$enableval" = yes; then
8542                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
8543                           else
8544                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
8545                           fi
8546
8547 else
8548
8549                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
8550                           if test "x$LINE" != x ; then
8551                             eval "DEFAULT_$LINE"
8552                           else
8553                             no_cache=1
8554                           fi
8555
8556                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
8557
8558 fi
8559
8560
8561           eval "$ac_cv_use_dnd"
8562           if test "$no_cache" != 1; then
8563             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
8564           fi
8565
8566           if test "$wxUSE_DRAG_AND_DROP" = yes; then
8567             { echo "$as_me:$LINENO: result: yes" >&5
8568 echo "${ECHO_T}yes" >&6; }
8569           else
8570             { echo "$as_me:$LINENO: result: no" >&5
8571 echo "${ECHO_T}no" >&6; }
8572           fi
8573
8574
8575           enablestring=
8576           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8577 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
8578           no_cache=0
8579           # Check whether --enable-metafile was given.
8580 if test "${enable_metafile+set}" = set; then
8581   enableval=$enable_metafile;
8582                           if test "$enableval" = yes; then
8583                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8584                           else
8585                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8586                           fi
8587
8588 else
8589
8590                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8591                           if test "x$LINE" != x ; then
8592                             eval "DEFAULT_$LINE"
8593                           else
8594                             no_cache=1
8595                           fi
8596
8597                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8598
8599 fi
8600
8601
8602           eval "$ac_cv_use_metafile"
8603           if test "$no_cache" != 1; then
8604             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8605           fi
8606
8607           if test "$wxUSE_METAFILE" = yes; then
8608             { echo "$as_me:$LINENO: result: yes" >&5
8609 echo "${ECHO_T}yes" >&6; }
8610           else
8611             { echo "$as_me:$LINENO: result: no" >&5
8612 echo "${ECHO_T}no" >&6; }
8613           fi
8614
8615
8616
8617
8618
8619           enablestring=
8620           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
8621 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
8622           no_cache=0
8623           # Check whether --enable-controls was given.
8624 if test "${enable_controls+set}" = set; then
8625   enableval=$enable_controls;
8626                           if test "$enableval" = yes; then
8627                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
8628                           else
8629                             ac_cv_use_controls='wxUSE_CONTROLS=no'
8630                           fi
8631
8632 else
8633
8634                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
8635                           if test "x$LINE" != x ; then
8636                             eval "DEFAULT_$LINE"
8637                           else
8638                             no_cache=1
8639                           fi
8640
8641                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
8642
8643 fi
8644
8645
8646           eval "$ac_cv_use_controls"
8647           if test "$no_cache" != 1; then
8648             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
8649           fi
8650
8651           if test "$wxUSE_CONTROLS" = yes; then
8652             { echo "$as_me:$LINENO: result: yes" >&5
8653 echo "${ECHO_T}yes" >&6; }
8654           else
8655             { echo "$as_me:$LINENO: result: no" >&5
8656 echo "${ECHO_T}no" >&6; }
8657           fi
8658
8659
8660 if test "$wxUSE_CONTROLS" = "yes"; then
8661   DEFAULT_wxUSE_ACCEL=yes
8662   DEFAULT_wxUSE_ANIMATIONCTRL=yes
8663   DEFAULT_wxUSE_BMPBUTTON=yes
8664   DEFAULT_wxUSE_BUTTON=yes
8665   DEFAULT_wxUSE_CALCTRL=yes
8666   DEFAULT_wxUSE_CARET=yes
8667   DEFAULT_wxUSE_COMBOBOX=yes
8668   DEFAULT_wxUSE_CHECKBOX=yes
8669   DEFAULT_wxUSE_CHECKLISTBOX=yes
8670   DEFAULT_wxUSE_CHOICE=yes
8671   DEFAULT_wxUSE_CHOICEBOOK=yes
8672   DEFAULT_wxUSE_COLLPANE=yes
8673   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
8674   DEFAULT_wxUSE_COMBOBOX=yes
8675   DEFAULT_wxUSE_DATEPICKCTRL=yes
8676   DEFAULT_wxUSE_DISPLAY=yes
8677   DEFAULT_wxUSE_DETECT_SM=yes
8678   DEFAULT_wxUSE_DIRPICKERCTRL=yes
8679   DEFAULT_wxUSE_FILEPICKERCTRL=yes
8680   DEFAULT_wxUSE_FONTPICKERCTRL=yes
8681   DEFAULT_wxUSE_GAUGE=yes
8682   DEFAULT_wxUSE_GRID=yes
8683   DEFAULT_wxUSE_HYPERLINKCTRL=yes
8684   DEFAULT_wxUSE_DATAVIEWCTRL=no
8685   DEFAULT_wxUSE_IMAGLIST=yes
8686   DEFAULT_wxUSE_LISTBOOK=yes
8687   DEFAULT_wxUSE_LISTBOX=yes
8688   DEFAULT_wxUSE_LISTCTRL=yes
8689   DEFAULT_wxUSE_NOTEBOOK=yes
8690   DEFAULT_wxUSE_RADIOBOX=yes
8691   DEFAULT_wxUSE_RADIOBTN=yes
8692   DEFAULT_wxUSE_SASH=yes
8693   DEFAULT_wxUSE_SCROLLBAR=yes
8694   DEFAULT_wxUSE_SEARCHCTRL=yes
8695   DEFAULT_wxUSE_SLIDER=yes
8696   DEFAULT_wxUSE_SPINBTN=yes
8697   DEFAULT_wxUSE_SPINCTRL=yes
8698   DEFAULT_wxUSE_SPLITTER=yes
8699   DEFAULT_wxUSE_STATBMP=yes
8700   DEFAULT_wxUSE_STATBOX=yes
8701   DEFAULT_wxUSE_STATLINE=yes
8702   DEFAULT_wxUSE_STATUSBAR=yes
8703   DEFAULT_wxUSE_TAB_DIALOG=yes
8704   DEFAULT_wxUSE_TOGGLEBTN=yes
8705   DEFAULT_wxUSE_TOOLBAR=yes
8706   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
8707   DEFAULT_wxUSE_TOOLTIPS=yes
8708   DEFAULT_wxUSE_TREEBOOK=yes
8709   DEFAULT_wxUSE_TOOLBOOK=yes
8710   DEFAULT_wxUSE_TREECTRL=yes
8711   DEFAULT_wxUSE_POPUPWIN=yes
8712   DEFAULT_wxUSE_TIPWINDOW=yes
8713 elif test "$wxUSE_CONTROLS" = "no"; then
8714   DEFAULT_wxUSE_ACCEL=no
8715   DEFAULT_wxUSE_ANIMATIONCTRL=no
8716   DEFAULT_wxUSE_BMPBUTTON=no
8717   DEFAULT_wxUSE_BUTTON=no
8718   DEFAULT_wxUSE_CALCTRL=no
8719   DEFAULT_wxUSE_CARET=no
8720   DEFAULT_wxUSE_COLLPANE=no
8721   DEFAULT_wxUSE_COMBOBOX=no
8722   DEFAULT_wxUSE_CHECKBOX=no
8723   DEFAULT_wxUSE_CHECKLISTBOX=no
8724   DEFAULT_wxUSE_CHOICE=no
8725   DEFAULT_wxUSE_CHOICEBOOK=no
8726   DEFAULT_wxUSE_COLOURPICKERCTRL=no
8727   DEFAULT_wxUSE_COMBOBOX=no
8728   DEFAULT_wxUSE_DATEPICKCTRL=no
8729   DEFAULT_wxUSE_DISPLAY=no
8730   DEFAULT_wxUSE_DETECT_SM=no
8731   DEFAULT_wxUSE_DIRPICKERCTRL=no
8732   DEFAULT_wxUSE_FILEPICKERCTRL=no
8733   DEFAULT_wxUSE_FONTPICKERCTRL=no
8734   DEFAULT_wxUSE_GAUGE=no
8735   DEFAULT_wxUSE_GRID=no
8736   DEFAULT_wxUSE_HYPERLINKCTRL=no
8737   DEFAULT_wxUSE_DATAVIEWCTRL=no
8738   DEFAULT_wxUSE_IMAGLIST=no
8739   DEFAULT_wxUSE_LISTBOOK=no
8740   DEFAULT_wxUSE_LISTBOX=no
8741   DEFAULT_wxUSE_LISTCTRL=no
8742   DEFAULT_wxUSE_NOTEBOOK=no
8743   DEFAULT_wxUSE_RADIOBOX=no
8744   DEFAULT_wxUSE_RADIOBTN=no
8745   DEFAULT_wxUSE_SASH=no
8746   DEFAULT_wxUSE_SCROLLBAR=no
8747   DEFAULT_wxUSE_SEARCHCTRL=no
8748   DEFAULT_wxUSE_SLIDER=no
8749   DEFAULT_wxUSE_SPINBTN=no
8750   DEFAULT_wxUSE_SPINCTRL=no
8751   DEFAULT_wxUSE_SPLITTER=no
8752   DEFAULT_wxUSE_STATBMP=no
8753   DEFAULT_wxUSE_STATBOX=no
8754   DEFAULT_wxUSE_STATLINE=no
8755   DEFAULT_wxUSE_STATUSBAR=no
8756   DEFAULT_wxUSE_TAB_DIALOG=no
8757   DEFAULT_wxUSE_TOGGLEBTN=no
8758   DEFAULT_wxUSE_TOOLBAR=no
8759   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
8760   DEFAULT_wxUSE_TOOLTIPS=no
8761   DEFAULT_wxUSE_TREEBOOK=no
8762   DEFAULT_wxUSE_TOOLBOOK=no
8763   DEFAULT_wxUSE_TREECTRL=no
8764   DEFAULT_wxUSE_POPUPWIN=no
8765   DEFAULT_wxUSE_TIPWINDOW=no
8766 fi
8767
8768
8769           enablestring=
8770           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8771 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
8772           no_cache=0
8773           # Check whether --enable-accel was given.
8774 if test "${enable_accel+set}" = set; then
8775   enableval=$enable_accel;
8776                           if test "$enableval" = yes; then
8777                             ac_cv_use_accel='wxUSE_ACCEL=yes'
8778                           else
8779                             ac_cv_use_accel='wxUSE_ACCEL=no'
8780                           fi
8781
8782 else
8783
8784                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
8785                           if test "x$LINE" != x ; then
8786                             eval "DEFAULT_$LINE"
8787                           else
8788                             no_cache=1
8789                           fi
8790
8791                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8792
8793 fi
8794
8795
8796           eval "$ac_cv_use_accel"
8797           if test "$no_cache" != 1; then
8798             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8799           fi
8800
8801           if test "$wxUSE_ACCEL" = yes; then
8802             { echo "$as_me:$LINENO: result: yes" >&5
8803 echo "${ECHO_T}yes" >&6; }
8804           else
8805             { echo "$as_me:$LINENO: result: no" >&5
8806 echo "${ECHO_T}no" >&6; }
8807           fi
8808
8809
8810           enablestring=
8811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8812 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
8813           no_cache=0
8814           # Check whether --enable-animatectrl was given.
8815 if test "${enable_animatectrl+set}" = set; then
8816   enableval=$enable_animatectrl;
8817                           if test "$enableval" = yes; then
8818                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8819                           else
8820                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8821                           fi
8822
8823 else
8824
8825                           LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8826                           if test "x$LINE" != x ; then
8827                             eval "DEFAULT_$LINE"
8828                           else
8829                             no_cache=1
8830                           fi
8831
8832                           ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8833
8834 fi
8835
8836
8837           eval "$ac_cv_use_animatectrl"
8838           if test "$no_cache" != 1; then
8839             echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8840           fi
8841
8842           if test "$wxUSE_ANIMATIONCTRL" = yes; then
8843             { echo "$as_me:$LINENO: result: yes" >&5
8844 echo "${ECHO_T}yes" >&6; }
8845           else
8846             { echo "$as_me:$LINENO: result: no" >&5
8847 echo "${ECHO_T}no" >&6; }
8848           fi
8849
8850
8851           enablestring=
8852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8853 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
8854           no_cache=0
8855           # Check whether --enable-button was given.
8856 if test "${enable_button+set}" = set; then
8857   enableval=$enable_button;
8858                           if test "$enableval" = yes; then
8859                             ac_cv_use_button='wxUSE_BUTTON=yes'
8860                           else
8861                             ac_cv_use_button='wxUSE_BUTTON=no'
8862                           fi
8863
8864 else
8865
8866                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8867                           if test "x$LINE" != x ; then
8868                             eval "DEFAULT_$LINE"
8869                           else
8870                             no_cache=1
8871                           fi
8872
8873                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8874
8875 fi
8876
8877
8878           eval "$ac_cv_use_button"
8879           if test "$no_cache" != 1; then
8880             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8881           fi
8882
8883           if test "$wxUSE_BUTTON" = yes; then
8884             { echo "$as_me:$LINENO: result: yes" >&5
8885 echo "${ECHO_T}yes" >&6; }
8886           else
8887             { echo "$as_me:$LINENO: result: no" >&5
8888 echo "${ECHO_T}no" >&6; }
8889           fi
8890
8891
8892           enablestring=
8893           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8894 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
8895           no_cache=0
8896           # Check whether --enable-bmpbutton was given.
8897 if test "${enable_bmpbutton+set}" = set; then
8898   enableval=$enable_bmpbutton;
8899                           if test "$enableval" = yes; then
8900                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8901                           else
8902                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8903                           fi
8904
8905 else
8906
8907                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8908                           if test "x$LINE" != x ; then
8909                             eval "DEFAULT_$LINE"
8910                           else
8911                             no_cache=1
8912                           fi
8913
8914                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8915
8916 fi
8917
8918
8919           eval "$ac_cv_use_bmpbutton"
8920           if test "$no_cache" != 1; then
8921             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8922           fi
8923
8924           if test "$wxUSE_BMPBUTTON" = yes; then
8925             { echo "$as_me:$LINENO: result: yes" >&5
8926 echo "${ECHO_T}yes" >&6; }
8927           else
8928             { echo "$as_me:$LINENO: result: no" >&5
8929 echo "${ECHO_T}no" >&6; }
8930           fi
8931
8932
8933           enablestring=
8934           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8935 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
8936           no_cache=0
8937           # Check whether --enable-bmpcombobox was given.
8938 if test "${enable_bmpcombobox+set}" = set; then
8939   enableval=$enable_bmpcombobox;
8940                           if test "$enableval" = yes; then
8941                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8942                           else
8943                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8944                           fi
8945
8946 else
8947
8948                           LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8949                           if test "x$LINE" != x ; then
8950                             eval "DEFAULT_$LINE"
8951                           else
8952                             no_cache=1
8953                           fi
8954
8955                           ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8956
8957 fi
8958
8959
8960           eval "$ac_cv_use_bmpcombobox"
8961           if test "$no_cache" != 1; then
8962             echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8963           fi
8964
8965           if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8966             { echo "$as_me:$LINENO: result: yes" >&5
8967 echo "${ECHO_T}yes" >&6; }
8968           else
8969             { echo "$as_me:$LINENO: result: no" >&5
8970 echo "${ECHO_T}no" >&6; }
8971           fi
8972
8973
8974           enablestring=
8975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8976 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
8977           no_cache=0
8978           # Check whether --enable-calendar was given.
8979 if test "${enable_calendar+set}" = set; then
8980   enableval=$enable_calendar;
8981                           if test "$enableval" = yes; then
8982                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8983                           else
8984                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
8985                           fi
8986
8987 else
8988
8989                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8990                           if test "x$LINE" != x ; then
8991                             eval "DEFAULT_$LINE"
8992                           else
8993                             no_cache=1
8994                           fi
8995
8996                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8997
8998 fi
8999
9000
9001           eval "$ac_cv_use_calendar"
9002           if test "$no_cache" != 1; then
9003             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
9004           fi
9005
9006           if test "$wxUSE_CALCTRL" = yes; then
9007             { echo "$as_me:$LINENO: result: yes" >&5
9008 echo "${ECHO_T}yes" >&6; }
9009           else
9010             { echo "$as_me:$LINENO: result: no" >&5
9011 echo "${ECHO_T}no" >&6; }
9012           fi
9013
9014
9015           enablestring=
9016           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9017 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9018           no_cache=0
9019           # Check whether --enable-caret was given.
9020 if test "${enable_caret+set}" = set; then
9021   enableval=$enable_caret;
9022                           if test "$enableval" = yes; then
9023                             ac_cv_use_caret='wxUSE_CARET=yes'
9024                           else
9025                             ac_cv_use_caret='wxUSE_CARET=no'
9026                           fi
9027
9028 else
9029
9030                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
9031                           if test "x$LINE" != x ; then
9032                             eval "DEFAULT_$LINE"
9033                           else
9034                             no_cache=1
9035                           fi
9036
9037                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
9038
9039 fi
9040
9041
9042           eval "$ac_cv_use_caret"
9043           if test "$no_cache" != 1; then
9044             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
9045           fi
9046
9047           if test "$wxUSE_CARET" = yes; then
9048             { echo "$as_me:$LINENO: result: yes" >&5
9049 echo "${ECHO_T}yes" >&6; }
9050           else
9051             { echo "$as_me:$LINENO: result: no" >&5
9052 echo "${ECHO_T}no" >&6; }
9053           fi
9054
9055
9056           enablestring=
9057           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9058 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9059           no_cache=0
9060           # Check whether --enable-checkbox was given.
9061 if test "${enable_checkbox+set}" = set; then
9062   enableval=$enable_checkbox;
9063                           if test "$enableval" = yes; then
9064                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9065                           else
9066                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
9067                           fi
9068
9069 else
9070
9071                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
9072                           if test "x$LINE" != x ; then
9073                             eval "DEFAULT_$LINE"
9074                           else
9075                             no_cache=1
9076                           fi
9077
9078                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
9079
9080 fi
9081
9082
9083           eval "$ac_cv_use_checkbox"
9084           if test "$no_cache" != 1; then
9085             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
9086           fi
9087
9088           if test "$wxUSE_CHECKBOX" = yes; then
9089             { echo "$as_me:$LINENO: result: yes" >&5
9090 echo "${ECHO_T}yes" >&6; }
9091           else
9092             { echo "$as_me:$LINENO: result: no" >&5
9093 echo "${ECHO_T}no" >&6; }
9094           fi
9095
9096
9097           enablestring=
9098           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9099 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9100           no_cache=0
9101           # Check whether --enable-checklst was given.
9102 if test "${enable_checklst+set}" = set; then
9103   enableval=$enable_checklst;
9104                           if test "$enableval" = yes; then
9105                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
9106                           else
9107                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
9108                           fi
9109
9110 else
9111
9112                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
9113                           if test "x$LINE" != x ; then
9114                             eval "DEFAULT_$LINE"
9115                           else
9116                             no_cache=1
9117                           fi
9118
9119                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
9120
9121 fi
9122
9123
9124           eval "$ac_cv_use_checklst"
9125           if test "$no_cache" != 1; then
9126             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
9127           fi
9128
9129           if test "$wxUSE_CHECKLST" = yes; then
9130             { echo "$as_me:$LINENO: result: yes" >&5
9131 echo "${ECHO_T}yes" >&6; }
9132           else
9133             { echo "$as_me:$LINENO: result: no" >&5
9134 echo "${ECHO_T}no" >&6; }
9135           fi
9136
9137
9138           enablestring=
9139           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9140 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9141           no_cache=0
9142           # Check whether --enable-choice was given.
9143 if test "${enable_choice+set}" = set; then
9144   enableval=$enable_choice;
9145                           if test "$enableval" = yes; then
9146                             ac_cv_use_choice='wxUSE_CHOICE=yes'
9147                           else
9148                             ac_cv_use_choice='wxUSE_CHOICE=no'
9149                           fi
9150
9151 else
9152
9153                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
9154                           if test "x$LINE" != x ; then
9155                             eval "DEFAULT_$LINE"
9156                           else
9157                             no_cache=1
9158                           fi
9159
9160                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
9161
9162 fi
9163
9164
9165           eval "$ac_cv_use_choice"
9166           if test "$no_cache" != 1; then
9167             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
9168           fi
9169
9170           if test "$wxUSE_CHOICE" = yes; then
9171             { echo "$as_me:$LINENO: result: yes" >&5
9172 echo "${ECHO_T}yes" >&6; }
9173           else
9174             { echo "$as_me:$LINENO: result: no" >&5
9175 echo "${ECHO_T}no" >&6; }
9176           fi
9177
9178
9179           enablestring=
9180           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9181 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9182           no_cache=0
9183           # Check whether --enable-choicebook was given.
9184 if test "${enable_choicebook+set}" = set; then
9185   enableval=$enable_choicebook;
9186                           if test "$enableval" = yes; then
9187                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9188                           else
9189                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9190                           fi
9191
9192 else
9193
9194                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
9195                           if test "x$LINE" != x ; then
9196                             eval "DEFAULT_$LINE"
9197                           else
9198                             no_cache=1
9199                           fi
9200
9201                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
9202
9203 fi
9204
9205
9206           eval "$ac_cv_use_choicebook"
9207           if test "$no_cache" != 1; then
9208             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
9209           fi
9210
9211           if test "$wxUSE_CHOICEBOOK" = yes; then
9212             { echo "$as_me:$LINENO: result: yes" >&5
9213 echo "${ECHO_T}yes" >&6; }
9214           else
9215             { echo "$as_me:$LINENO: result: no" >&5
9216 echo "${ECHO_T}no" >&6; }
9217           fi
9218
9219
9220           enablestring=
9221           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9222 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9223           no_cache=0
9224           # Check whether --enable-collpane was given.
9225 if test "${enable_collpane+set}" = set; then
9226   enableval=$enable_collpane;
9227                           if test "$enableval" = yes; then
9228                             ac_cv_use_collpane='wxUSE_COLLPANE=yes'
9229                           else
9230                             ac_cv_use_collpane='wxUSE_COLLPANE=no'
9231                           fi
9232
9233 else
9234
9235                           LINE=`grep "wxUSE_COLLPANE" ${wx_arg_cache_file}`
9236                           if test "x$LINE" != x ; then
9237                             eval "DEFAULT_$LINE"
9238                           else
9239                             no_cache=1
9240                           fi
9241
9242                           ac_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE
9243
9244 fi
9245
9246
9247           eval "$ac_cv_use_collpane"
9248           if test "$no_cache" != 1; then
9249             echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp
9250           fi
9251
9252           if test "$wxUSE_COLLPANE" = yes; then
9253             { echo "$as_me:$LINENO: result: yes" >&5
9254 echo "${ECHO_T}yes" >&6; }
9255           else
9256             { echo "$as_me:$LINENO: result: no" >&5
9257 echo "${ECHO_T}no" >&6; }
9258           fi
9259
9260
9261           enablestring=
9262           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
9263 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
9264           no_cache=0
9265           # Check whether --enable-colourpicker was given.
9266 if test "${enable_colourpicker+set}" = set; then
9267   enableval=$enable_colourpicker;
9268                           if test "$enableval" = yes; then
9269                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
9270                           else
9271                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
9272                           fi
9273
9274 else
9275
9276                           LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
9277                           if test "x$LINE" != x ; then
9278                             eval "DEFAULT_$LINE"
9279                           else
9280                             no_cache=1
9281                           fi
9282
9283                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
9284
9285 fi
9286
9287
9288           eval "$ac_cv_use_colourpicker"
9289           if test "$no_cache" != 1; then
9290             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
9291           fi
9292
9293           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
9294             { echo "$as_me:$LINENO: result: yes" >&5
9295 echo "${ECHO_T}yes" >&6; }
9296           else
9297             { echo "$as_me:$LINENO: result: no" >&5
9298 echo "${ECHO_T}no" >&6; }
9299           fi
9300
9301
9302           enablestring=
9303           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
9304 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
9305           no_cache=0
9306           # Check whether --enable-combobox was given.
9307 if test "${enable_combobox+set}" = set; then
9308   enableval=$enable_combobox;
9309                           if test "$enableval" = yes; then
9310                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
9311                           else
9312                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
9313                           fi
9314
9315 else
9316
9317                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
9318                           if test "x$LINE" != x ; then
9319                             eval "DEFAULT_$LINE"
9320                           else
9321                             no_cache=1
9322                           fi
9323
9324                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
9325
9326 fi
9327
9328
9329           eval "$ac_cv_use_combobox"
9330           if test "$no_cache" != 1; then
9331             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
9332           fi
9333
9334           if test "$wxUSE_COMBOBOX" = yes; then
9335             { echo "$as_me:$LINENO: result: yes" >&5
9336 echo "${ECHO_T}yes" >&6; }
9337           else
9338             { echo "$as_me:$LINENO: result: no" >&5
9339 echo "${ECHO_T}no" >&6; }
9340           fi
9341
9342
9343           enablestring=
9344           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
9345 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
9346           no_cache=0
9347           # Check whether --enable-comboctrl was given.
9348 if test "${enable_comboctrl+set}" = set; then
9349   enableval=$enable_comboctrl;
9350                           if test "$enableval" = yes; then
9351                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
9352                           else
9353                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
9354                           fi
9355
9356 else
9357
9358                           LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
9359                           if test "x$LINE" != x ; then
9360                             eval "DEFAULT_$LINE"
9361                           else
9362                             no_cache=1
9363                           fi
9364
9365                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
9366
9367 fi
9368
9369
9370           eval "$ac_cv_use_comboctrl"
9371           if test "$no_cache" != 1; then
9372             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
9373           fi
9374
9375           if test "$wxUSE_COMBOCTRL" = yes; then
9376             { echo "$as_me:$LINENO: result: yes" >&5
9377 echo "${ECHO_T}yes" >&6; }
9378           else
9379             { echo "$as_me:$LINENO: result: no" >&5
9380 echo "${ECHO_T}no" >&6; }
9381           fi
9382
9383
9384           enablestring=
9385           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
9386 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
9387           no_cache=0
9388           # Check whether --enable-datepick was given.
9389 if test "${enable_datepick+set}" = set; then
9390   enableval=$enable_datepick;
9391                           if test "$enableval" = yes; then
9392                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
9393                           else
9394                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
9395                           fi
9396
9397 else
9398
9399                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
9400                           if test "x$LINE" != x ; then
9401                             eval "DEFAULT_$LINE"
9402                           else
9403                             no_cache=1
9404                           fi
9405
9406                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
9407
9408 fi
9409
9410
9411           eval "$ac_cv_use_datepick"
9412           if test "$no_cache" != 1; then
9413             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
9414           fi
9415
9416           if test "$wxUSE_DATEPICKCTRL" = yes; then
9417             { echo "$as_me:$LINENO: result: yes" >&5
9418 echo "${ECHO_T}yes" >&6; }
9419           else
9420             { echo "$as_me:$LINENO: result: no" >&5
9421 echo "${ECHO_T}no" >&6; }
9422           fi
9423
9424
9425           enablestring=
9426           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
9427 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
9428           no_cache=0
9429           # Check whether --enable-dirpicker was given.
9430 if test "${enable_dirpicker+set}" = set; then
9431   enableval=$enable_dirpicker;
9432                           if test "$enableval" = yes; then
9433                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
9434                           else
9435                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
9436                           fi
9437
9438 else
9439
9440                           LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
9441                           if test "x$LINE" != x ; then
9442                             eval "DEFAULT_$LINE"
9443                           else
9444                             no_cache=1
9445                           fi
9446
9447                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
9448
9449 fi
9450
9451
9452           eval "$ac_cv_use_dirpicker"
9453           if test "$no_cache" != 1; then
9454             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
9455           fi
9456
9457           if test "$wxUSE_DIRPICKERCTRL" = yes; then
9458             { echo "$as_me:$LINENO: result: yes" >&5
9459 echo "${ECHO_T}yes" >&6; }
9460           else
9461             { echo "$as_me:$LINENO: result: no" >&5
9462 echo "${ECHO_T}no" >&6; }
9463           fi
9464
9465
9466           enablestring=
9467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
9468 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
9469           no_cache=0
9470           # Check whether --enable-display was given.
9471 if test "${enable_display+set}" = set; then
9472   enableval=$enable_display;
9473                           if test "$enableval" = yes; then
9474                             ac_cv_use_display='wxUSE_DISPLAY=yes'
9475                           else
9476                             ac_cv_use_display='wxUSE_DISPLAY=no'
9477                           fi
9478
9479 else
9480
9481                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
9482                           if test "x$LINE" != x ; then
9483                             eval "DEFAULT_$LINE"
9484                           else
9485                             no_cache=1
9486                           fi
9487
9488                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
9489
9490 fi
9491
9492
9493           eval "$ac_cv_use_display"
9494           if test "$no_cache" != 1; then
9495             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
9496           fi
9497
9498           if test "$wxUSE_DISPLAY" = yes; then
9499             { echo "$as_me:$LINENO: result: yes" >&5
9500 echo "${ECHO_T}yes" >&6; }
9501           else
9502             { echo "$as_me:$LINENO: result: no" >&5
9503 echo "${ECHO_T}no" >&6; }
9504           fi
9505
9506
9507           enablestring=
9508           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
9509 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
9510           no_cache=0
9511           # Check whether --enable-detect_sm was given.
9512 if test "${enable_detect_sm+set}" = set; then
9513   enableval=$enable_detect_sm;
9514                           if test "$enableval" = yes; then
9515                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
9516                           else
9517                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
9518                           fi
9519
9520 else
9521
9522                           LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
9523                           if test "x$LINE" != x ; then
9524                             eval "DEFAULT_$LINE"
9525                           else
9526                             no_cache=1
9527                           fi
9528
9529                           ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
9530
9531 fi
9532
9533
9534           eval "$ac_cv_use_detect_sm"
9535           if test "$no_cache" != 1; then
9536             echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
9537           fi
9538
9539           if test "$wxUSE_DETECT_SM" = yes; then
9540             { echo "$as_me:$LINENO: result: yes" >&5
9541 echo "${ECHO_T}yes" >&6; }
9542           else
9543             { echo "$as_me:$LINENO: result: no" >&5
9544 echo "${ECHO_T}no" >&6; }
9545           fi
9546
9547
9548           enablestring=
9549           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
9550 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
9551           no_cache=0
9552           # Check whether --enable-filepicker was given.
9553 if test "${enable_filepicker+set}" = set; then
9554   enableval=$enable_filepicker;
9555                           if test "$enableval" = yes; then
9556                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
9557                           else
9558                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
9559                           fi
9560
9561 else
9562
9563                           LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
9564                           if test "x$LINE" != x ; then
9565                             eval "DEFAULT_$LINE"
9566                           else
9567                             no_cache=1
9568                           fi
9569
9570                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
9571
9572 fi
9573
9574
9575           eval "$ac_cv_use_filepicker"
9576           if test "$no_cache" != 1; then
9577             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
9578           fi
9579
9580           if test "$wxUSE_FILEPICKERCTRL" = yes; then
9581             { echo "$as_me:$LINENO: result: yes" >&5
9582 echo "${ECHO_T}yes" >&6; }
9583           else
9584             { echo "$as_me:$LINENO: result: no" >&5
9585 echo "${ECHO_T}no" >&6; }
9586           fi
9587
9588
9589           enablestring=
9590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
9591 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
9592           no_cache=0
9593           # Check whether --enable-fontpicker was given.
9594 if test "${enable_fontpicker+set}" = set; then
9595   enableval=$enable_fontpicker;
9596                           if test "$enableval" = yes; then
9597                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
9598                           else
9599                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
9600                           fi
9601
9602 else
9603
9604                           LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
9605                           if test "x$LINE" != x ; then
9606                             eval "DEFAULT_$LINE"
9607                           else
9608                             no_cache=1
9609                           fi
9610
9611                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
9612
9613 fi
9614
9615
9616           eval "$ac_cv_use_fontpicker"
9617           if test "$no_cache" != 1; then
9618             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
9619           fi
9620
9621           if test "$wxUSE_FONTPICKERCTRL" = yes; then
9622             { echo "$as_me:$LINENO: result: yes" >&5
9623 echo "${ECHO_T}yes" >&6; }
9624           else
9625             { echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6; }
9627           fi
9628
9629
9630           enablestring=
9631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
9632 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
9633           no_cache=0
9634           # Check whether --enable-gauge was given.
9635 if test "${enable_gauge+set}" = set; then
9636   enableval=$enable_gauge;
9637                           if test "$enableval" = yes; then
9638                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
9639                           else
9640                             ac_cv_use_gauge='wxUSE_GAUGE=no'
9641                           fi
9642
9643 else
9644
9645                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
9646                           if test "x$LINE" != x ; then
9647                             eval "DEFAULT_$LINE"
9648                           else
9649                             no_cache=1
9650                           fi
9651
9652                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
9653
9654 fi
9655
9656
9657           eval "$ac_cv_use_gauge"
9658           if test "$no_cache" != 1; then
9659             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
9660           fi
9661
9662           if test "$wxUSE_GAUGE" = yes; then
9663             { echo "$as_me:$LINENO: result: yes" >&5
9664 echo "${ECHO_T}yes" >&6; }
9665           else
9666             { echo "$as_me:$LINENO: result: no" >&5
9667 echo "${ECHO_T}no" >&6; }
9668           fi
9669
9670
9671           enablestring=
9672           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
9673 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
9674           no_cache=0
9675           # Check whether --enable-grid was given.
9676 if test "${enable_grid+set}" = set; then
9677   enableval=$enable_grid;
9678                           if test "$enableval" = yes; then
9679                             ac_cv_use_grid='wxUSE_GRID=yes'
9680                           else
9681                             ac_cv_use_grid='wxUSE_GRID=no'
9682                           fi
9683
9684 else
9685
9686                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
9687                           if test "x$LINE" != x ; then
9688                             eval "DEFAULT_$LINE"
9689                           else
9690                             no_cache=1
9691                           fi
9692
9693                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
9694
9695 fi
9696
9697
9698           eval "$ac_cv_use_grid"
9699           if test "$no_cache" != 1; then
9700             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
9701           fi
9702
9703           if test "$wxUSE_GRID" = yes; then
9704             { echo "$as_me:$LINENO: result: yes" >&5
9705 echo "${ECHO_T}yes" >&6; }
9706           else
9707             { echo "$as_me:$LINENO: result: no" >&5
9708 echo "${ECHO_T}no" >&6; }
9709           fi
9710
9711
9712           enablestring=
9713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
9714 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
9715           no_cache=0
9716           # Check whether --enable-dataviewctrl was given.
9717 if test "${enable_dataviewctrl+set}" = set; then
9718   enableval=$enable_dataviewctrl;
9719                           if test "$enableval" = yes; then
9720                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
9721                           else
9722                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
9723                           fi
9724
9725 else
9726
9727                           LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
9728                           if test "x$LINE" != x ; then
9729                             eval "DEFAULT_$LINE"
9730                           else
9731                             no_cache=1
9732                           fi
9733
9734                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
9735
9736 fi
9737
9738
9739           eval "$ac_cv_use_dataviewctrl"
9740           if test "$no_cache" != 1; then
9741             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
9742           fi
9743
9744           if test "$wxUSE_DATAVIEWCTRL" = yes; then
9745             { echo "$as_me:$LINENO: result: yes" >&5
9746 echo "${ECHO_T}yes" >&6; }
9747           else
9748             { echo "$as_me:$LINENO: result: no" >&5
9749 echo "${ECHO_T}no" >&6; }
9750           fi
9751
9752
9753           enablestring=
9754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9755 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
9756           no_cache=0
9757           # Check whether --enable-hyperlink was given.
9758 if test "${enable_hyperlink+set}" = set; then
9759   enableval=$enable_hyperlink;
9760                           if test "$enableval" = yes; then
9761                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9762                           else
9763                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9764                           fi
9765
9766 else
9767
9768                           LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
9769                           if test "x$LINE" != x ; then
9770                             eval "DEFAULT_$LINE"
9771                           else
9772                             no_cache=1
9773                           fi
9774
9775                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9776
9777 fi
9778
9779
9780           eval "$ac_cv_use_hyperlink"
9781           if test "$no_cache" != 1; then
9782             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9783           fi
9784
9785           if test "$wxUSE_HYPERLINKCTRL" = yes; then
9786             { echo "$as_me:$LINENO: result: yes" >&5
9787 echo "${ECHO_T}yes" >&6; }
9788           else
9789             { echo "$as_me:$LINENO: result: no" >&5
9790 echo "${ECHO_T}no" >&6; }
9791           fi
9792
9793
9794           enablestring=
9795           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9796 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
9797           no_cache=0
9798           # Check whether --enable-imaglist was given.
9799 if test "${enable_imaglist+set}" = set; then
9800   enableval=$enable_imaglist;
9801                           if test "$enableval" = yes; then
9802                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9803                           else
9804                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
9805                           fi
9806
9807 else
9808
9809                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
9810                           if test "x$LINE" != x ; then
9811                             eval "DEFAULT_$LINE"
9812                           else
9813                             no_cache=1
9814                           fi
9815
9816                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
9817
9818 fi
9819
9820
9821           eval "$ac_cv_use_imaglist"
9822           if test "$no_cache" != 1; then
9823             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
9824           fi
9825
9826           if test "$wxUSE_IMAGLIST" = yes; then
9827             { echo "$as_me:$LINENO: result: yes" >&5
9828 echo "${ECHO_T}yes" >&6; }
9829           else
9830             { echo "$as_me:$LINENO: result: no" >&5
9831 echo "${ECHO_T}no" >&6; }
9832           fi
9833
9834
9835           enablestring=
9836           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9837 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
9838           no_cache=0
9839           # Check whether --enable-listbook was given.
9840 if test "${enable_listbook+set}" = set; then
9841   enableval=$enable_listbook;
9842                           if test "$enableval" = yes; then
9843                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
9844                           else
9845                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
9846                           fi
9847
9848 else
9849
9850                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9851                           if test "x$LINE" != x ; then
9852                             eval "DEFAULT_$LINE"
9853                           else
9854                             no_cache=1
9855                           fi
9856
9857                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9858
9859 fi
9860
9861
9862           eval "$ac_cv_use_listbook"
9863           if test "$no_cache" != 1; then
9864             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9865           fi
9866
9867           if test "$wxUSE_LISTBOOK" = yes; then
9868             { echo "$as_me:$LINENO: result: yes" >&5
9869 echo "${ECHO_T}yes" >&6; }
9870           else
9871             { echo "$as_me:$LINENO: result: no" >&5
9872 echo "${ECHO_T}no" >&6; }
9873           fi
9874
9875
9876           enablestring=
9877           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9878 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
9879           no_cache=0
9880           # Check whether --enable-listbox was given.
9881 if test "${enable_listbox+set}" = set; then
9882   enableval=$enable_listbox;
9883                           if test "$enableval" = yes; then
9884                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9885                           else
9886                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
9887                           fi
9888
9889 else
9890
9891                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9892                           if test "x$LINE" != x ; then
9893                             eval "DEFAULT_$LINE"
9894                           else
9895                             no_cache=1
9896                           fi
9897
9898                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9899
9900 fi
9901
9902
9903           eval "$ac_cv_use_listbox"
9904           if test "$no_cache" != 1; then
9905             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9906           fi
9907
9908           if test "$wxUSE_LISTBOX" = yes; then
9909             { echo "$as_me:$LINENO: result: yes" >&5
9910 echo "${ECHO_T}yes" >&6; }
9911           else
9912             { echo "$as_me:$LINENO: result: no" >&5
9913 echo "${ECHO_T}no" >&6; }
9914           fi
9915
9916
9917           enablestring=
9918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9919 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
9920           no_cache=0
9921           # Check whether --enable-listctrl was given.
9922 if test "${enable_listctrl+set}" = set; then
9923   enableval=$enable_listctrl;
9924                           if test "$enableval" = yes; then
9925                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9926                           else
9927                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9928                           fi
9929
9930 else
9931
9932                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9933                           if test "x$LINE" != x ; then
9934                             eval "DEFAULT_$LINE"
9935                           else
9936                             no_cache=1
9937                           fi
9938
9939                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9940
9941 fi
9942
9943
9944           eval "$ac_cv_use_listctrl"
9945           if test "$no_cache" != 1; then
9946             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9947           fi
9948
9949           if test "$wxUSE_LISTCTRL" = yes; then
9950             { echo "$as_me:$LINENO: result: yes" >&5
9951 echo "${ECHO_T}yes" >&6; }
9952           else
9953             { echo "$as_me:$LINENO: result: no" >&5
9954 echo "${ECHO_T}no" >&6; }
9955           fi
9956
9957
9958           enablestring=
9959           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9960 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
9961           no_cache=0
9962           # Check whether --enable-notebook was given.
9963 if test "${enable_notebook+set}" = set; then
9964   enableval=$enable_notebook;
9965                           if test "$enableval" = yes; then
9966                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9967                           else
9968                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9969                           fi
9970
9971 else
9972
9973                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9974                           if test "x$LINE" != x ; then
9975                             eval "DEFAULT_$LINE"
9976                           else
9977                             no_cache=1
9978                           fi
9979
9980                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9981
9982 fi
9983
9984
9985           eval "$ac_cv_use_notebook"
9986           if test "$no_cache" != 1; then
9987             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9988           fi
9989
9990           if test "$wxUSE_NOTEBOOK" = yes; then
9991             { echo "$as_me:$LINENO: result: yes" >&5
9992 echo "${ECHO_T}yes" >&6; }
9993           else
9994             { echo "$as_me:$LINENO: result: no" >&5
9995 echo "${ECHO_T}no" >&6; }
9996           fi
9997
9998
9999           enablestring=
10000           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
10001 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
10002           no_cache=0
10003           # Check whether --enable-odcombobox was given.
10004 if test "${enable_odcombobox+set}" = set; then
10005   enableval=$enable_odcombobox;
10006                           if test "$enableval" = yes; then
10007                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
10008                           else
10009                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
10010                           fi
10011
10012 else
10013
10014                           LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
10015                           if test "x$LINE" != x ; then
10016                             eval "DEFAULT_$LINE"
10017                           else
10018                             no_cache=1
10019                           fi
10020
10021                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
10022
10023 fi
10024
10025
10026           eval "$ac_cv_use_odcombobox"
10027           if test "$no_cache" != 1; then
10028             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
10029           fi
10030
10031           if test "$wxUSE_ODCOMBOBOX" = yes; then
10032             { echo "$as_me:$LINENO: result: yes" >&5
10033 echo "${ECHO_T}yes" >&6; }
10034           else
10035             { echo "$as_me:$LINENO: result: no" >&5
10036 echo "${ECHO_T}no" >&6; }
10037           fi
10038
10039
10040           enablestring=
10041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
10042 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
10043           no_cache=0
10044           # Check whether --enable-radiobox was given.
10045 if test "${enable_radiobox+set}" = set; then
10046   enableval=$enable_radiobox;
10047                           if test "$enableval" = yes; then
10048                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
10049                           else
10050                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
10051                           fi
10052
10053 else
10054
10055                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
10056                           if test "x$LINE" != x ; then
10057                             eval "DEFAULT_$LINE"
10058                           else
10059                             no_cache=1
10060                           fi
10061
10062                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10063
10064 fi
10065
10066
10067           eval "$ac_cv_use_radiobox"
10068           if test "$no_cache" != 1; then
10069             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
10070           fi
10071
10072           if test "$wxUSE_RADIOBOX" = yes; then
10073             { echo "$as_me:$LINENO: result: yes" >&5
10074 echo "${ECHO_T}yes" >&6; }
10075           else
10076             { echo "$as_me:$LINENO: result: no" >&5
10077 echo "${ECHO_T}no" >&6; }
10078           fi
10079
10080
10081           enablestring=
10082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
10083 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
10084           no_cache=0
10085           # Check whether --enable-radiobtn was given.
10086 if test "${enable_radiobtn+set}" = set; then
10087   enableval=$enable_radiobtn;
10088                           if test "$enableval" = yes; then
10089                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
10090                           else
10091                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
10092                           fi
10093
10094 else
10095
10096                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
10097                           if test "x$LINE" != x ; then
10098                             eval "DEFAULT_$LINE"
10099                           else
10100                             no_cache=1
10101                           fi
10102
10103                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10104
10105 fi
10106
10107
10108           eval "$ac_cv_use_radiobtn"
10109           if test "$no_cache" != 1; then
10110             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
10111           fi
10112
10113           if test "$wxUSE_RADIOBTN" = yes; then
10114             { echo "$as_me:$LINENO: result: yes" >&5
10115 echo "${ECHO_T}yes" >&6; }
10116           else
10117             { echo "$as_me:$LINENO: result: no" >&5
10118 echo "${ECHO_T}no" >&6; }
10119           fi
10120
10121
10122           enablestring=
10123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
10124 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
10125           no_cache=0
10126           # Check whether --enable-sash was given.
10127 if test "${enable_sash+set}" = set; then
10128   enableval=$enable_sash;
10129                           if test "$enableval" = yes; then
10130                             ac_cv_use_sash='wxUSE_SASH=yes'
10131                           else
10132                             ac_cv_use_sash='wxUSE_SASH=no'
10133                           fi
10134
10135 else
10136
10137                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
10138                           if test "x$LINE" != x ; then
10139                             eval "DEFAULT_$LINE"
10140                           else
10141                             no_cache=1
10142                           fi
10143
10144                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10145
10146 fi
10147
10148
10149           eval "$ac_cv_use_sash"
10150           if test "$no_cache" != 1; then
10151             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
10152           fi
10153
10154           if test "$wxUSE_SASH" = yes; then
10155             { echo "$as_me:$LINENO: result: yes" >&5
10156 echo "${ECHO_T}yes" >&6; }
10157           else
10158             { echo "$as_me:$LINENO: result: no" >&5
10159 echo "${ECHO_T}no" >&6; }
10160           fi
10161
10162
10163           enablestring=
10164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
10165 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
10166           no_cache=0
10167           # Check whether --enable-scrollbar was given.
10168 if test "${enable_scrollbar+set}" = set; then
10169   enableval=$enable_scrollbar;
10170                           if test "$enableval" = yes; then
10171                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
10172                           else
10173                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
10174                           fi
10175
10176 else
10177
10178                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
10179                           if test "x$LINE" != x ; then
10180                             eval "DEFAULT_$LINE"
10181                           else
10182                             no_cache=1
10183                           fi
10184
10185                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10186
10187 fi
10188
10189
10190           eval "$ac_cv_use_scrollbar"
10191           if test "$no_cache" != 1; then
10192             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
10193           fi
10194
10195           if test "$wxUSE_SCROLLBAR" = yes; then
10196             { echo "$as_me:$LINENO: result: yes" >&5
10197 echo "${ECHO_T}yes" >&6; }
10198           else
10199             { echo "$as_me:$LINENO: result: no" >&5
10200 echo "${ECHO_T}no" >&6; }
10201           fi
10202
10203
10204           enablestring=
10205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
10206 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
10207           no_cache=0
10208           # Check whether --enable-searchctrl was given.
10209 if test "${enable_searchctrl+set}" = set; then
10210   enableval=$enable_searchctrl;
10211                           if test "$enableval" = yes; then
10212                             ac_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
10213                           else
10214                             ac_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
10215                           fi
10216
10217 else
10218
10219                           LINE=`grep "wxUSE_SEARCHCTRL" ${wx_arg_cache_file}`
10220                           if test "x$LINE" != x ; then
10221                             eval "DEFAULT_$LINE"
10222                           else
10223                             no_cache=1
10224                           fi
10225
10226                           ac_cv_use_searchctrl='wxUSE_SEARCHCTRL='$DEFAULT_wxUSE_SEARCHCTRL
10227
10228 fi
10229
10230
10231           eval "$ac_cv_use_searchctrl"
10232           if test "$no_cache" != 1; then
10233             echo $ac_cv_use_searchctrl >> ${wx_arg_cache_file}.tmp
10234           fi
10235
10236           if test "$wxUSE_SEARCHCTRL" = yes; then
10237             { echo "$as_me:$LINENO: result: yes" >&5
10238 echo "${ECHO_T}yes" >&6; }
10239           else
10240             { echo "$as_me:$LINENO: result: no" >&5
10241 echo "${ECHO_T}no" >&6; }
10242           fi
10243
10244
10245           enablestring=
10246           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
10247 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
10248           no_cache=0
10249           # Check whether --enable-slider was given.
10250 if test "${enable_slider+set}" = set; then
10251   enableval=$enable_slider;
10252                           if test "$enableval" = yes; then
10253                             ac_cv_use_slider='wxUSE_SLIDER=yes'
10254                           else
10255                             ac_cv_use_slider='wxUSE_SLIDER=no'
10256                           fi
10257
10258 else
10259
10260                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
10261                           if test "x$LINE" != x ; then
10262                             eval "DEFAULT_$LINE"
10263                           else
10264                             no_cache=1
10265                           fi
10266
10267                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10268
10269 fi
10270
10271
10272           eval "$ac_cv_use_slider"
10273           if test "$no_cache" != 1; then
10274             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
10275           fi
10276
10277           if test "$wxUSE_SLIDER" = yes; then
10278             { echo "$as_me:$LINENO: result: yes" >&5
10279 echo "${ECHO_T}yes" >&6; }
10280           else
10281             { echo "$as_me:$LINENO: result: no" >&5
10282 echo "${ECHO_T}no" >&6; }
10283           fi
10284
10285
10286           enablestring=
10287           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
10288 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
10289           no_cache=0
10290           # Check whether --enable-spinbtn was given.
10291 if test "${enable_spinbtn+set}" = set; then
10292   enableval=$enable_spinbtn;
10293                           if test "$enableval" = yes; then
10294                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
10295                           else
10296                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
10297                           fi
10298
10299 else
10300
10301                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
10302                           if test "x$LINE" != x ; then
10303                             eval "DEFAULT_$LINE"
10304                           else
10305                             no_cache=1
10306                           fi
10307
10308                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10309
10310 fi
10311
10312
10313           eval "$ac_cv_use_spinbtn"
10314           if test "$no_cache" != 1; then
10315             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
10316           fi
10317
10318           if test "$wxUSE_SPINBTN" = yes; then
10319             { echo "$as_me:$LINENO: result: yes" >&5
10320 echo "${ECHO_T}yes" >&6; }
10321           else
10322             { echo "$as_me:$LINENO: result: no" >&5
10323 echo "${ECHO_T}no" >&6; }
10324           fi
10325
10326
10327           enablestring=
10328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
10329 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
10330           no_cache=0
10331           # Check whether --enable-spinctrl was given.
10332 if test "${enable_spinctrl+set}" = set; then
10333   enableval=$enable_spinctrl;
10334                           if test "$enableval" = yes; then
10335                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
10336                           else
10337                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
10338                           fi
10339
10340 else
10341
10342                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
10343                           if test "x$LINE" != x ; then
10344                             eval "DEFAULT_$LINE"
10345                           else
10346                             no_cache=1
10347                           fi
10348
10349                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
10350
10351 fi
10352
10353
10354           eval "$ac_cv_use_spinctrl"
10355           if test "$no_cache" != 1; then
10356             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
10357           fi
10358
10359           if test "$wxUSE_SPINCTRL" = yes; then
10360             { echo "$as_me:$LINENO: result: yes" >&5
10361 echo "${ECHO_T}yes" >&6; }
10362           else
10363             { echo "$as_me:$LINENO: result: no" >&5
10364 echo "${ECHO_T}no" >&6; }
10365           fi
10366
10367
10368           enablestring=
10369           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
10370 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
10371           no_cache=0
10372           # Check whether --enable-splitter was given.
10373 if test "${enable_splitter+set}" = set; then
10374   enableval=$enable_splitter;
10375                           if test "$enableval" = yes; then
10376                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
10377                           else
10378                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
10379                           fi
10380
10381 else
10382
10383                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
10384                           if test "x$LINE" != x ; then
10385                             eval "DEFAULT_$LINE"
10386                           else
10387                             no_cache=1
10388                           fi
10389
10390                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10391
10392 fi
10393
10394
10395           eval "$ac_cv_use_splitter"
10396           if test "$no_cache" != 1; then
10397             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
10398           fi
10399
10400           if test "$wxUSE_SPLITTER" = yes; then
10401             { echo "$as_me:$LINENO: result: yes" >&5
10402 echo "${ECHO_T}yes" >&6; }
10403           else
10404             { echo "$as_me:$LINENO: result: no" >&5
10405 echo "${ECHO_T}no" >&6; }
10406           fi
10407
10408
10409           enablestring=
10410           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
10411 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
10412           no_cache=0
10413           # Check whether --enable-statbmp was given.
10414 if test "${enable_statbmp+set}" = set; then
10415   enableval=$enable_statbmp;
10416                           if test "$enableval" = yes; then
10417                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
10418                           else
10419                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
10420                           fi
10421
10422 else
10423
10424                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
10425                           if test "x$LINE" != x ; then
10426                             eval "DEFAULT_$LINE"
10427                           else
10428                             no_cache=1
10429                           fi
10430
10431                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10432
10433 fi
10434
10435
10436           eval "$ac_cv_use_statbmp"
10437           if test "$no_cache" != 1; then
10438             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
10439           fi
10440
10441           if test "$wxUSE_STATBMP" = yes; then
10442             { echo "$as_me:$LINENO: result: yes" >&5
10443 echo "${ECHO_T}yes" >&6; }
10444           else
10445             { echo "$as_me:$LINENO: result: no" >&5
10446 echo "${ECHO_T}no" >&6; }
10447           fi
10448
10449
10450           enablestring=
10451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
10452 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
10453           no_cache=0
10454           # Check whether --enable-statbox was given.
10455 if test "${enable_statbox+set}" = set; then
10456   enableval=$enable_statbox;
10457                           if test "$enableval" = yes; then
10458                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
10459                           else
10460                             ac_cv_use_statbox='wxUSE_STATBOX=no'
10461                           fi
10462
10463 else
10464
10465                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
10466                           if test "x$LINE" != x ; then
10467                             eval "DEFAULT_$LINE"
10468                           else
10469                             no_cache=1
10470                           fi
10471
10472                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10473
10474 fi
10475
10476
10477           eval "$ac_cv_use_statbox"
10478           if test "$no_cache" != 1; then
10479             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
10480           fi
10481
10482           if test "$wxUSE_STATBOX" = yes; then
10483             { echo "$as_me:$LINENO: result: yes" >&5
10484 echo "${ECHO_T}yes" >&6; }
10485           else
10486             { echo "$as_me:$LINENO: result: no" >&5
10487 echo "${ECHO_T}no" >&6; }
10488           fi
10489
10490
10491           enablestring=
10492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
10493 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
10494           no_cache=0
10495           # Check whether --enable-statline was given.
10496 if test "${enable_statline+set}" = set; then
10497   enableval=$enable_statline;
10498                           if test "$enableval" = yes; then
10499                             ac_cv_use_statline='wxUSE_STATLINE=yes'
10500                           else
10501                             ac_cv_use_statline='wxUSE_STATLINE=no'
10502                           fi
10503
10504 else
10505
10506                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
10507                           if test "x$LINE" != x ; then
10508                             eval "DEFAULT_$LINE"
10509                           else
10510                             no_cache=1
10511                           fi
10512
10513                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10514
10515 fi
10516
10517
10518           eval "$ac_cv_use_statline"
10519           if test "$no_cache" != 1; then
10520             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
10521           fi
10522
10523           if test "$wxUSE_STATLINE" = yes; then
10524             { echo "$as_me:$LINENO: result: yes" >&5
10525 echo "${ECHO_T}yes" >&6; }
10526           else
10527             { echo "$as_me:$LINENO: result: no" >&5
10528 echo "${ECHO_T}no" >&6; }
10529           fi
10530
10531
10532           enablestring=
10533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
10534 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
10535           no_cache=0
10536           # Check whether --enable-stattext was given.
10537 if test "${enable_stattext+set}" = set; then
10538   enableval=$enable_stattext;
10539                           if test "$enableval" = yes; then
10540                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
10541                           else
10542                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
10543                           fi
10544
10545 else
10546
10547                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
10548                           if test "x$LINE" != x ; then
10549                             eval "DEFAULT_$LINE"
10550                           else
10551                             no_cache=1
10552                           fi
10553
10554                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
10555
10556 fi
10557
10558
10559           eval "$ac_cv_use_stattext"
10560           if test "$no_cache" != 1; then
10561             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
10562           fi
10563
10564           if test "$wxUSE_STATTEXT" = yes; then
10565             { echo "$as_me:$LINENO: result: yes" >&5
10566 echo "${ECHO_T}yes" >&6; }
10567           else
10568             { echo "$as_me:$LINENO: result: no" >&5
10569 echo "${ECHO_T}no" >&6; }
10570           fi
10571
10572
10573           enablestring=
10574           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
10575 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
10576           no_cache=0
10577           # Check whether --enable-statusbar was given.
10578 if test "${enable_statusbar+set}" = set; then
10579   enableval=$enable_statusbar;
10580                           if test "$enableval" = yes; then
10581                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
10582                           else
10583                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
10584                           fi
10585
10586 else
10587
10588                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
10589                           if test "x$LINE" != x ; then
10590                             eval "DEFAULT_$LINE"
10591                           else
10592                             no_cache=1
10593                           fi
10594
10595                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10596
10597 fi
10598
10599
10600           eval "$ac_cv_use_statusbar"
10601           if test "$no_cache" != 1; then
10602             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
10603           fi
10604
10605           if test "$wxUSE_STATUSBAR" = yes; then
10606             { echo "$as_me:$LINENO: result: yes" >&5
10607 echo "${ECHO_T}yes" >&6; }
10608           else
10609             { echo "$as_me:$LINENO: result: no" >&5
10610 echo "${ECHO_T}no" >&6; }
10611           fi
10612
10613
10614           enablestring=
10615           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
10616 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
10617           no_cache=0
10618           # Check whether --enable-tabdialog was given.
10619 if test "${enable_tabdialog+set}" = set; then
10620   enableval=$enable_tabdialog;
10621                           if test "$enableval" = yes; then
10622                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
10623                           else
10624                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
10625                           fi
10626
10627 else
10628
10629                           LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
10630                           if test "x$LINE" != x ; then
10631                             eval "DEFAULT_$LINE"
10632                           else
10633                             no_cache=1
10634                           fi
10635
10636                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
10637
10638 fi
10639
10640
10641           eval "$ac_cv_use_tabdialog"
10642           if test "$no_cache" != 1; then
10643             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
10644           fi
10645
10646           if test "$wxUSE_TAB_DIALOG" = yes; then
10647             { echo "$as_me:$LINENO: result: yes" >&5
10648 echo "${ECHO_T}yes" >&6; }
10649           else
10650             { echo "$as_me:$LINENO: result: no" >&5
10651 echo "${ECHO_T}no" >&6; }
10652           fi
10653
10654
10655           enablestring=
10656           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
10657 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
10658           no_cache=0
10659           # Check whether --enable-textctrl was given.
10660 if test "${enable_textctrl+set}" = set; then
10661   enableval=$enable_textctrl;
10662                           if test "$enableval" = yes; then
10663                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
10664                           else
10665                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
10666                           fi
10667
10668 else
10669
10670                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
10671                           if test "x$LINE" != x ; then
10672                             eval "DEFAULT_$LINE"
10673                           else
10674                             no_cache=1
10675                           fi
10676
10677                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
10678
10679 fi
10680
10681
10682           eval "$ac_cv_use_textctrl"
10683           if test "$no_cache" != 1; then
10684             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
10685           fi
10686
10687           if test "$wxUSE_TEXTCTRL" = yes; then
10688             { echo "$as_me:$LINENO: result: yes" >&5
10689 echo "${ECHO_T}yes" >&6; }
10690           else
10691             { echo "$as_me:$LINENO: result: no" >&5
10692 echo "${ECHO_T}no" >&6; }
10693           fi
10694
10695
10696           enablestring=
10697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
10698 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
10699           no_cache=0
10700           # Check whether --enable-togglebtn was given.
10701 if test "${enable_togglebtn+set}" = set; then
10702   enableval=$enable_togglebtn;
10703                           if test "$enableval" = yes; then
10704                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
10705                           else
10706                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
10707                           fi
10708
10709 else
10710
10711                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
10712                           if test "x$LINE" != x ; then
10713                             eval "DEFAULT_$LINE"
10714                           else
10715                             no_cache=1
10716                           fi
10717
10718                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
10719
10720 fi
10721
10722
10723           eval "$ac_cv_use_togglebtn"
10724           if test "$no_cache" != 1; then
10725             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
10726           fi
10727
10728           if test "$wxUSE_TOGGLEBTN" = yes; then
10729             { echo "$as_me:$LINENO: result: yes" >&5
10730 echo "${ECHO_T}yes" >&6; }
10731           else
10732             { echo "$as_me:$LINENO: result: no" >&5
10733 echo "${ECHO_T}no" >&6; }
10734           fi
10735
10736
10737           enablestring=
10738           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
10739 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
10740           no_cache=0
10741           # Check whether --enable-toolbar was given.
10742 if test "${enable_toolbar+set}" = set; then
10743   enableval=$enable_toolbar;
10744                           if test "$enableval" = yes; then
10745                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
10746                           else
10747                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
10748                           fi
10749
10750 else
10751
10752                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
10753                           if test "x$LINE" != x ; then
10754                             eval "DEFAULT_$LINE"
10755                           else
10756                             no_cache=1
10757                           fi
10758
10759                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10760
10761 fi
10762
10763
10764           eval "$ac_cv_use_toolbar"
10765           if test "$no_cache" != 1; then
10766             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
10767           fi
10768
10769           if test "$wxUSE_TOOLBAR" = yes; then
10770             { echo "$as_me:$LINENO: result: yes" >&5
10771 echo "${ECHO_T}yes" >&6; }
10772           else
10773             { echo "$as_me:$LINENO: result: no" >&5
10774 echo "${ECHO_T}no" >&6; }
10775           fi
10776
10777
10778           enablestring=
10779           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
10780 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
10781           no_cache=0
10782           # Check whether --enable-tbarnative was given.
10783 if test "${enable_tbarnative+set}" = set; then
10784   enableval=$enable_tbarnative;
10785                           if test "$enableval" = yes; then
10786                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10787                           else
10788                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10789                           fi
10790
10791 else
10792
10793                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
10794                           if test "x$LINE" != x ; then
10795                             eval "DEFAULT_$LINE"
10796                           else
10797                             no_cache=1
10798                           fi
10799
10800                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10801
10802 fi
10803
10804
10805           eval "$ac_cv_use_tbarnative"
10806           if test "$no_cache" != 1; then
10807             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
10808           fi
10809
10810           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
10811             { echo "$as_me:$LINENO: result: yes" >&5
10812 echo "${ECHO_T}yes" >&6; }
10813           else
10814             { echo "$as_me:$LINENO: result: no" >&5
10815 echo "${ECHO_T}no" >&6; }
10816           fi
10817
10818
10819           enablestring=
10820           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
10821 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
10822           no_cache=0
10823           # Check whether --enable-treebook was given.
10824 if test "${enable_treebook+set}" = set; then
10825   enableval=$enable_treebook;
10826                           if test "$enableval" = yes; then
10827                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
10828                           else
10829                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
10830                           fi
10831
10832 else
10833
10834                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
10835                           if test "x$LINE" != x ; then
10836                             eval "DEFAULT_$LINE"
10837                           else
10838                             no_cache=1
10839                           fi
10840
10841                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
10842
10843 fi
10844
10845
10846           eval "$ac_cv_use_treebook"
10847           if test "$no_cache" != 1; then
10848             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
10849           fi
10850
10851           if test "$wxUSE_TREEBOOK" = yes; then
10852             { echo "$as_me:$LINENO: result: yes" >&5
10853 echo "${ECHO_T}yes" >&6; }
10854           else
10855             { echo "$as_me:$LINENO: result: no" >&5
10856 echo "${ECHO_T}no" >&6; }
10857           fi
10858
10859
10860           enablestring=
10861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
10862 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
10863           no_cache=0
10864           # Check whether --enable-toolbook was given.
10865 if test "${enable_toolbook+set}" = set; then
10866   enableval=$enable_toolbook;
10867                           if test "$enableval" = yes; then
10868                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
10869                           else
10870                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
10871                           fi
10872
10873 else
10874
10875                           LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10876                           if test "x$LINE" != x ; then
10877                             eval "DEFAULT_$LINE"
10878                           else
10879                             no_cache=1
10880                           fi
10881
10882                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10883
10884 fi
10885
10886
10887           eval "$ac_cv_use_toolbook"
10888           if test "$no_cache" != 1; then
10889             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10890           fi
10891
10892           if test "$wxUSE_TOOLBOOK" = yes; then
10893             { echo "$as_me:$LINENO: result: yes" >&5
10894 echo "${ECHO_T}yes" >&6; }
10895           else
10896             { echo "$as_me:$LINENO: result: no" >&5
10897 echo "${ECHO_T}no" >&6; }
10898           fi
10899
10900
10901           enablestring=
10902           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10903 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
10904           no_cache=0
10905           # Check whether --enable-treectrl was given.
10906 if test "${enable_treectrl+set}" = set; then
10907   enableval=$enable_treectrl;
10908                           if test "$enableval" = yes; then
10909                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
10910                           else
10911                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
10912                           fi
10913
10914 else
10915
10916                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10917                           if test "x$LINE" != x ; then
10918                             eval "DEFAULT_$LINE"
10919                           else
10920                             no_cache=1
10921                           fi
10922
10923                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10924
10925 fi
10926
10927
10928           eval "$ac_cv_use_treectrl"
10929           if test "$no_cache" != 1; then
10930             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10931           fi
10932
10933           if test "$wxUSE_TREECTRL" = yes; then
10934             { echo "$as_me:$LINENO: result: yes" >&5
10935 echo "${ECHO_T}yes" >&6; }
10936           else
10937             { echo "$as_me:$LINENO: result: no" >&5
10938 echo "${ECHO_T}no" >&6; }
10939           fi
10940
10941
10942           enablestring=
10943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10944 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
10945           no_cache=0
10946           # Check whether --enable-tipwindow was given.
10947 if test "${enable_tipwindow+set}" = set; then
10948   enableval=$enable_tipwindow;
10949                           if test "$enableval" = yes; then
10950                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10951                           else
10952                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10953                           fi
10954
10955 else
10956
10957                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10958                           if test "x$LINE" != x ; then
10959                             eval "DEFAULT_$LINE"
10960                           else
10961                             no_cache=1
10962                           fi
10963
10964                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10965
10966 fi
10967
10968
10969           eval "$ac_cv_use_tipwindow"
10970           if test "$no_cache" != 1; then
10971             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10972           fi
10973
10974           if test "$wxUSE_TIPWINDOW" = yes; then
10975             { echo "$as_me:$LINENO: result: yes" >&5
10976 echo "${ECHO_T}yes" >&6; }
10977           else
10978             { echo "$as_me:$LINENO: result: no" >&5
10979 echo "${ECHO_T}no" >&6; }
10980           fi
10981
10982
10983           enablestring=
10984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10985 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
10986           no_cache=0
10987           # Check whether --enable-popupwin was given.
10988 if test "${enable_popupwin+set}" = set; then
10989   enableval=$enable_popupwin;
10990                           if test "$enableval" = yes; then
10991                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10992                           else
10993                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10994                           fi
10995
10996 else
10997
10998                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10999                           if test "x$LINE" != x ; then
11000                             eval "DEFAULT_$LINE"
11001                           else
11002                             no_cache=1
11003                           fi
11004
11005                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
11006
11007 fi
11008
11009
11010           eval "$ac_cv_use_popupwin"
11011           if test "$no_cache" != 1; then
11012             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
11013           fi
11014
11015           if test "$wxUSE_POPUPWIN" = yes; then
11016             { echo "$as_me:$LINENO: result: yes" >&5
11017 echo "${ECHO_T}yes" >&6; }
11018           else
11019             { echo "$as_me:$LINENO: result: no" >&5
11020 echo "${ECHO_T}no" >&6; }
11021           fi
11022
11023
11024
11025
11026           enablestring=
11027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
11028 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
11029           no_cache=0
11030           # Check whether --enable-commondlg was given.
11031 if test "${enable_commondlg+set}" = set; then
11032   enableval=$enable_commondlg;
11033                           if test "$enableval" = yes; then
11034                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
11035                           else
11036                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
11037                           fi
11038
11039 else
11040
11041                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
11042                           if test "x$LINE" != x ; then
11043                             eval "DEFAULT_$LINE"
11044                           else
11045                             no_cache=1
11046                           fi
11047
11048                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
11049
11050 fi
11051
11052
11053           eval "$ac_cv_use_commondlg"
11054           if test "$no_cache" != 1; then
11055             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
11056           fi
11057
11058           if test "$wxUSE_COMMONDLGS" = yes; then
11059             { echo "$as_me:$LINENO: result: yes" >&5
11060 echo "${ECHO_T}yes" >&6; }
11061           else
11062             { echo "$as_me:$LINENO: result: no" >&5
11063 echo "${ECHO_T}no" >&6; }
11064           fi
11065
11066
11067           enablestring=
11068           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
11069 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
11070           no_cache=0
11071           # Check whether --enable-aboutdlg was given.
11072 if test "${enable_aboutdlg+set}" = set; then
11073   enableval=$enable_aboutdlg;
11074                           if test "$enableval" = yes; then
11075                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
11076                           else
11077                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
11078                           fi
11079
11080 else
11081
11082                           LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
11083                           if test "x$LINE" != x ; then
11084                             eval "DEFAULT_$LINE"
11085                           else
11086                             no_cache=1
11087                           fi
11088
11089                           ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
11090
11091 fi
11092
11093
11094           eval "$ac_cv_use_aboutdlg"
11095           if test "$no_cache" != 1; then
11096             echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
11097           fi
11098
11099           if test "$wxUSE_ABOUTDLG" = yes; then
11100             { echo "$as_me:$LINENO: result: yes" >&5
11101 echo "${ECHO_T}yes" >&6; }
11102           else
11103             { echo "$as_me:$LINENO: result: no" >&5
11104 echo "${ECHO_T}no" >&6; }
11105           fi
11106
11107
11108           enablestring=
11109           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
11110 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
11111           no_cache=0
11112           # Check whether --enable-choicedlg was given.
11113 if test "${enable_choicedlg+set}" = set; then
11114   enableval=$enable_choicedlg;
11115                           if test "$enableval" = yes; then
11116                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
11117                           else
11118                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
11119                           fi
11120
11121 else
11122
11123                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
11124                           if test "x$LINE" != x ; then
11125                             eval "DEFAULT_$LINE"
11126                           else
11127                             no_cache=1
11128                           fi
11129
11130                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
11131
11132 fi
11133
11134
11135           eval "$ac_cv_use_choicedlg"
11136           if test "$no_cache" != 1; then
11137             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
11138           fi
11139
11140           if test "$wxUSE_CHOICEDLG" = yes; then
11141             { echo "$as_me:$LINENO: result: yes" >&5
11142 echo "${ECHO_T}yes" >&6; }
11143           else
11144             { echo "$as_me:$LINENO: result: no" >&5
11145 echo "${ECHO_T}no" >&6; }
11146           fi
11147
11148
11149           enablestring=
11150           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
11151 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
11152           no_cache=0
11153           # Check whether --enable-coldlg was given.
11154 if test "${enable_coldlg+set}" = set; then
11155   enableval=$enable_coldlg;
11156                           if test "$enableval" = yes; then
11157                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
11158                           else
11159                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
11160                           fi
11161
11162 else
11163
11164                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
11165                           if test "x$LINE" != x ; then
11166                             eval "DEFAULT_$LINE"
11167                           else
11168                             no_cache=1
11169                           fi
11170
11171                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
11172
11173 fi
11174
11175
11176           eval "$ac_cv_use_coldlg"
11177           if test "$no_cache" != 1; then
11178             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
11179           fi
11180
11181           if test "$wxUSE_COLOURDLG" = yes; then
11182             { echo "$as_me:$LINENO: result: yes" >&5
11183 echo "${ECHO_T}yes" >&6; }
11184           else
11185             { echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6; }
11187           fi
11188
11189
11190           enablestring=
11191           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
11192 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
11193           no_cache=0
11194           # Check whether --enable-filedlg was given.
11195 if test "${enable_filedlg+set}" = set; then
11196   enableval=$enable_filedlg;
11197                           if test "$enableval" = yes; then
11198                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
11199                           else
11200                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
11201                           fi
11202
11203 else
11204
11205                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
11206                           if test "x$LINE" != x ; then
11207                             eval "DEFAULT_$LINE"
11208                           else
11209                             no_cache=1
11210                           fi
11211
11212                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
11213
11214 fi
11215
11216
11217           eval "$ac_cv_use_filedlg"
11218           if test "$no_cache" != 1; then
11219             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
11220           fi
11221
11222           if test "$wxUSE_FILEDLG" = yes; then
11223             { echo "$as_me:$LINENO: result: yes" >&5
11224 echo "${ECHO_T}yes" >&6; }
11225           else
11226             { echo "$as_me:$LINENO: result: no" >&5
11227 echo "${ECHO_T}no" >&6; }
11228           fi
11229
11230
11231           enablestring=
11232           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
11233 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
11234           no_cache=0
11235           # Check whether --enable-finddlg was given.
11236 if test "${enable_finddlg+set}" = set; then
11237   enableval=$enable_finddlg;
11238                           if test "$enableval" = yes; then
11239                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
11240                           else
11241                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
11242                           fi
11243
11244 else
11245
11246                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
11247                           if test "x$LINE" != x ; then
11248                             eval "DEFAULT_$LINE"
11249                           else
11250                             no_cache=1
11251                           fi
11252
11253                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
11254
11255 fi
11256
11257
11258           eval "$ac_cv_use_finddlg"
11259           if test "$no_cache" != 1; then
11260             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
11261           fi
11262
11263           if test "$wxUSE_FINDREPLDLG" = yes; then
11264             { echo "$as_me:$LINENO: result: yes" >&5
11265 echo "${ECHO_T}yes" >&6; }
11266           else
11267             { echo "$as_me:$LINENO: result: no" >&5
11268 echo "${ECHO_T}no" >&6; }
11269           fi
11270
11271
11272           enablestring=
11273           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
11274 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
11275           no_cache=0
11276           # Check whether --enable-fontdlg was given.
11277 if test "${enable_fontdlg+set}" = set; then
11278   enableval=$enable_fontdlg;
11279                           if test "$enableval" = yes; then
11280                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
11281                           else
11282                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
11283                           fi
11284
11285 else
11286
11287                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
11288                           if test "x$LINE" != x ; then
11289                             eval "DEFAULT_$LINE"
11290                           else
11291                             no_cache=1
11292                           fi
11293
11294                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
11295
11296 fi
11297
11298
11299           eval "$ac_cv_use_fontdlg"
11300           if test "$no_cache" != 1; then
11301             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
11302           fi
11303
11304           if test "$wxUSE_FONTDLG" = yes; then
11305             { echo "$as_me:$LINENO: result: yes" >&5
11306 echo "${ECHO_T}yes" >&6; }
11307           else
11308             { echo "$as_me:$LINENO: result: no" >&5
11309 echo "${ECHO_T}no" >&6; }
11310           fi
11311
11312
11313           enablestring=
11314           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
11315 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
11316           no_cache=0
11317           # Check whether --enable-dirdlg was given.
11318 if test "${enable_dirdlg+set}" = set; then
11319   enableval=$enable_dirdlg;
11320                           if test "$enableval" = yes; then
11321                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
11322                           else
11323                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
11324                           fi
11325
11326 else
11327
11328                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
11329                           if test "x$LINE" != x ; then
11330                             eval "DEFAULT_$LINE"
11331                           else
11332                             no_cache=1
11333                           fi
11334
11335                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
11336
11337 fi
11338
11339
11340           eval "$ac_cv_use_dirdlg"
11341           if test "$no_cache" != 1; then
11342             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
11343           fi
11344
11345           if test "$wxUSE_DIRDLG" = yes; then
11346             { echo "$as_me:$LINENO: result: yes" >&5
11347 echo "${ECHO_T}yes" >&6; }
11348           else
11349             { echo "$as_me:$LINENO: result: no" >&5
11350 echo "${ECHO_T}no" >&6; }
11351           fi
11352
11353
11354           enablestring=
11355           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
11356 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
11357           no_cache=0
11358           # Check whether --enable-msgdlg was given.
11359 if test "${enable_msgdlg+set}" = set; then
11360   enableval=$enable_msgdlg;
11361                           if test "$enableval" = yes; then
11362                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
11363                           else
11364                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
11365                           fi
11366
11367 else
11368
11369                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
11370                           if test "x$LINE" != x ; then
11371                             eval "DEFAULT_$LINE"
11372                           else
11373                             no_cache=1
11374                           fi
11375
11376                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
11377
11378 fi
11379
11380
11381           eval "$ac_cv_use_msgdlg"
11382           if test "$no_cache" != 1; then
11383             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
11384           fi
11385
11386           if test "$wxUSE_MSGDLG" = yes; then
11387             { echo "$as_me:$LINENO: result: yes" >&5
11388 echo "${ECHO_T}yes" >&6; }
11389           else
11390             { echo "$as_me:$LINENO: result: no" >&5
11391 echo "${ECHO_T}no" >&6; }
11392           fi
11393
11394
11395           enablestring=
11396           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
11397 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
11398           no_cache=0
11399           # Check whether --enable-numberdlg was given.
11400 if test "${enable_numberdlg+set}" = set; then
11401   enableval=$enable_numberdlg;
11402                           if test "$enableval" = yes; then
11403                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
11404                           else
11405                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
11406                           fi
11407
11408 else
11409
11410                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
11411                           if test "x$LINE" != x ; then
11412                             eval "DEFAULT_$LINE"
11413                           else
11414                             no_cache=1
11415                           fi
11416
11417                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
11418
11419 fi
11420
11421
11422           eval "$ac_cv_use_numberdlg"
11423           if test "$no_cache" != 1; then
11424             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
11425           fi
11426
11427           if test "$wxUSE_NUMBERDLG" = yes; then
11428             { echo "$as_me:$LINENO: result: yes" >&5
11429 echo "${ECHO_T}yes" >&6; }
11430           else
11431             { echo "$as_me:$LINENO: result: no" >&5
11432 echo "${ECHO_T}no" >&6; }
11433           fi
11434
11435
11436           enablestring=
11437           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
11438 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
11439           no_cache=0
11440           # Check whether --enable-splash was given.
11441 if test "${enable_splash+set}" = set; then
11442   enableval=$enable_splash;
11443                           if test "$enableval" = yes; then
11444                             ac_cv_use_splash='wxUSE_SPLASH=yes'
11445                           else
11446                             ac_cv_use_splash='wxUSE_SPLASH=no'
11447                           fi
11448
11449 else
11450
11451                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
11452                           if test "x$LINE" != x ; then
11453                             eval "DEFAULT_$LINE"
11454                           else
11455                             no_cache=1
11456                           fi
11457
11458                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
11459
11460 fi
11461
11462
11463           eval "$ac_cv_use_splash"
11464           if test "$no_cache" != 1; then
11465             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
11466           fi
11467
11468           if test "$wxUSE_SPLASH" = yes; then
11469             { echo "$as_me:$LINENO: result: yes" >&5
11470 echo "${ECHO_T}yes" >&6; }
11471           else
11472             { echo "$as_me:$LINENO: result: no" >&5
11473 echo "${ECHO_T}no" >&6; }
11474           fi
11475
11476
11477           enablestring=
11478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
11479 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
11480           no_cache=0
11481           # Check whether --enable-textdlg was given.
11482 if test "${enable_textdlg+set}" = set; then
11483   enableval=$enable_textdlg;
11484                           if test "$enableval" = yes; then
11485                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
11486                           else
11487                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
11488                           fi
11489
11490 else
11491
11492                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
11493                           if test "x$LINE" != x ; then
11494                             eval "DEFAULT_$LINE"
11495                           else
11496                             no_cache=1
11497                           fi
11498
11499                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
11500
11501 fi
11502
11503
11504           eval "$ac_cv_use_textdlg"
11505           if test "$no_cache" != 1; then
11506             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
11507           fi
11508
11509           if test "$wxUSE_TEXTDLG" = yes; then
11510             { echo "$as_me:$LINENO: result: yes" >&5
11511 echo "${ECHO_T}yes" >&6; }
11512           else
11513             { echo "$as_me:$LINENO: result: no" >&5
11514 echo "${ECHO_T}no" >&6; }
11515           fi
11516
11517
11518           enablestring=
11519           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
11520 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
11521           no_cache=0
11522           # Check whether --enable-tipdlg was given.
11523 if test "${enable_tipdlg+set}" = set; then
11524   enableval=$enable_tipdlg;
11525                           if test "$enableval" = yes; then
11526                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
11527                           else
11528                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
11529                           fi
11530
11531 else
11532
11533                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
11534                           if test "x$LINE" != x ; then
11535                             eval "DEFAULT_$LINE"
11536                           else
11537                             no_cache=1
11538                           fi
11539
11540                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
11541
11542 fi
11543
11544
11545           eval "$ac_cv_use_tipdlg"
11546           if test "$no_cache" != 1; then
11547             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
11548           fi
11549
11550           if test "$wxUSE_STARTUP_TIPS" = yes; then
11551             { echo "$as_me:$LINENO: result: yes" >&5
11552 echo "${ECHO_T}yes" >&6; }
11553           else
11554             { echo "$as_me:$LINENO: result: no" >&5
11555 echo "${ECHO_T}no" >&6; }
11556           fi
11557
11558
11559           enablestring=
11560           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
11561 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
11562           no_cache=0
11563           # Check whether --enable-progressdlg was given.
11564 if test "${enable_progressdlg+set}" = set; then
11565   enableval=$enable_progressdlg;
11566                           if test "$enableval" = yes; then
11567                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
11568                           else
11569                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
11570                           fi
11571
11572 else
11573
11574                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
11575                           if test "x$LINE" != x ; then
11576                             eval "DEFAULT_$LINE"
11577                           else
11578                             no_cache=1
11579                           fi
11580
11581                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
11582
11583 fi
11584
11585
11586           eval "$ac_cv_use_progressdlg"
11587           if test "$no_cache" != 1; then
11588             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
11589           fi
11590
11591           if test "$wxUSE_PROGRESSDLG" = yes; then
11592             { echo "$as_me:$LINENO: result: yes" >&5
11593 echo "${ECHO_T}yes" >&6; }
11594           else
11595             { echo "$as_me:$LINENO: result: no" >&5
11596 echo "${ECHO_T}no" >&6; }
11597           fi
11598
11599
11600           enablestring=
11601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
11602 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
11603           no_cache=0
11604           # Check whether --enable-wizarddlg was given.
11605 if test "${enable_wizarddlg+set}" = set; then
11606   enableval=$enable_wizarddlg;
11607                           if test "$enableval" = yes; then
11608                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
11609                           else
11610                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
11611                           fi
11612
11613 else
11614
11615                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
11616                           if test "x$LINE" != x ; then
11617                             eval "DEFAULT_$LINE"
11618                           else
11619                             no_cache=1
11620                           fi
11621
11622                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
11623
11624 fi
11625
11626
11627           eval "$ac_cv_use_wizarddlg"
11628           if test "$no_cache" != 1; then
11629             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
11630           fi
11631
11632           if test "$wxUSE_WIZARDDLG" = yes; then
11633             { echo "$as_me:$LINENO: result: yes" >&5
11634 echo "${ECHO_T}yes" >&6; }
11635           else
11636             { echo "$as_me:$LINENO: result: no" >&5
11637 echo "${ECHO_T}no" >&6; }
11638           fi
11639
11640
11641
11642
11643           enablestring=
11644           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
11645 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
11646           no_cache=0
11647           # Check whether --enable-menus was given.
11648 if test "${enable_menus+set}" = set; then
11649   enableval=$enable_menus;
11650                           if test "$enableval" = yes; then
11651                             ac_cv_use_menus='wxUSE_MENUS=yes'
11652                           else
11653                             ac_cv_use_menus='wxUSE_MENUS=no'
11654                           fi
11655
11656 else
11657
11658                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
11659                           if test "x$LINE" != x ; then
11660                             eval "DEFAULT_$LINE"
11661                           else
11662                             no_cache=1
11663                           fi
11664
11665                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
11666
11667 fi
11668
11669
11670           eval "$ac_cv_use_menus"
11671           if test "$no_cache" != 1; then
11672             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
11673           fi
11674
11675           if test "$wxUSE_MENUS" = yes; then
11676             { echo "$as_me:$LINENO: result: yes" >&5
11677 echo "${ECHO_T}yes" >&6; }
11678           else
11679             { echo "$as_me:$LINENO: result: no" >&5
11680 echo "${ECHO_T}no" >&6; }
11681           fi
11682
11683
11684           enablestring=
11685           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
11686 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
11687           no_cache=0
11688           # Check whether --enable-miniframe was given.
11689 if test "${enable_miniframe+set}" = set; then
11690   enableval=$enable_miniframe;
11691                           if test "$enableval" = yes; then
11692                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
11693                           else
11694                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
11695                           fi
11696
11697 else
11698
11699                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
11700                           if test "x$LINE" != x ; then
11701                             eval "DEFAULT_$LINE"
11702                           else
11703                             no_cache=1
11704                           fi
11705
11706                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
11707
11708 fi
11709
11710
11711           eval "$ac_cv_use_miniframe"
11712           if test "$no_cache" != 1; then
11713             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
11714           fi
11715
11716           if test "$wxUSE_MINIFRAME" = yes; then
11717             { echo "$as_me:$LINENO: result: yes" >&5
11718 echo "${ECHO_T}yes" >&6; }
11719           else
11720             { echo "$as_me:$LINENO: result: no" >&5
11721 echo "${ECHO_T}no" >&6; }
11722           fi
11723
11724
11725           enablestring=
11726           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
11727 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
11728           no_cache=0
11729           # Check whether --enable-tooltips was given.
11730 if test "${enable_tooltips+set}" = set; then
11731   enableval=$enable_tooltips;
11732                           if test "$enableval" = yes; then
11733                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
11734                           else
11735                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
11736                           fi
11737
11738 else
11739
11740                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
11741                           if test "x$LINE" != x ; then
11742                             eval "DEFAULT_$LINE"
11743                           else
11744                             no_cache=1
11745                           fi
11746
11747                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
11748
11749 fi
11750
11751
11752           eval "$ac_cv_use_tooltips"
11753           if test "$no_cache" != 1; then
11754             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
11755           fi
11756
11757           if test "$wxUSE_TOOLTIPS" = yes; then
11758             { echo "$as_me:$LINENO: result: yes" >&5
11759 echo "${ECHO_T}yes" >&6; }
11760           else
11761             { echo "$as_me:$LINENO: result: no" >&5
11762 echo "${ECHO_T}no" >&6; }
11763           fi
11764
11765
11766           enablestring=
11767           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
11768 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
11769           no_cache=0
11770           # Check whether --enable-splines was given.
11771 if test "${enable_splines+set}" = set; then
11772   enableval=$enable_splines;
11773                           if test "$enableval" = yes; then
11774                             ac_cv_use_splines='wxUSE_SPLINES=yes'
11775                           else
11776                             ac_cv_use_splines='wxUSE_SPLINES=no'
11777                           fi
11778
11779 else
11780
11781                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
11782                           if test "x$LINE" != x ; then
11783                             eval "DEFAULT_$LINE"
11784                           else
11785                             no_cache=1
11786                           fi
11787
11788                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11789
11790 fi
11791
11792
11793           eval "$ac_cv_use_splines"
11794           if test "$no_cache" != 1; then
11795             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
11796           fi
11797
11798           if test "$wxUSE_SPLINES" = yes; then
11799             { echo "$as_me:$LINENO: result: yes" >&5
11800 echo "${ECHO_T}yes" >&6; }
11801           else
11802             { echo "$as_me:$LINENO: result: no" >&5
11803 echo "${ECHO_T}no" >&6; }
11804           fi
11805
11806
11807           enablestring=
11808           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
11809 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
11810           no_cache=0
11811           # Check whether --enable-mousewheel was given.
11812 if test "${enable_mousewheel+set}" = set; then
11813   enableval=$enable_mousewheel;
11814                           if test "$enableval" = yes; then
11815                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
11816                           else
11817                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
11818                           fi
11819
11820 else
11821
11822                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
11823                           if test "x$LINE" != x ; then
11824                             eval "DEFAULT_$LINE"
11825                           else
11826                             no_cache=1
11827                           fi
11828
11829                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
11830
11831 fi
11832
11833
11834           eval "$ac_cv_use_mousewheel"
11835           if test "$no_cache" != 1; then
11836             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
11837           fi
11838
11839           if test "$wxUSE_MOUSEWHEEL" = yes; then
11840             { echo "$as_me:$LINENO: result: yes" >&5
11841 echo "${ECHO_T}yes" >&6; }
11842           else
11843             { echo "$as_me:$LINENO: result: no" >&5
11844 echo "${ECHO_T}no" >&6; }
11845           fi
11846
11847
11848           enablestring=
11849           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
11850 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
11851           no_cache=0
11852           # Check whether --enable-validators was given.
11853 if test "${enable_validators+set}" = set; then
11854   enableval=$enable_validators;
11855                           if test "$enableval" = yes; then
11856                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
11857                           else
11858                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
11859                           fi
11860
11861 else
11862
11863                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
11864                           if test "x$LINE" != x ; then
11865                             eval "DEFAULT_$LINE"
11866                           else
11867                             no_cache=1
11868                           fi
11869
11870                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
11871
11872 fi
11873
11874
11875           eval "$ac_cv_use_validators"
11876           if test "$no_cache" != 1; then
11877             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
11878           fi
11879
11880           if test "$wxUSE_VALIDATORS" = yes; then
11881             { echo "$as_me:$LINENO: result: yes" >&5
11882 echo "${ECHO_T}yes" >&6; }
11883           else
11884             { echo "$as_me:$LINENO: result: no" >&5
11885 echo "${ECHO_T}no" >&6; }
11886           fi
11887
11888
11889           enablestring=
11890           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11891 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
11892           no_cache=0
11893           # Check whether --enable-busyinfo was given.
11894 if test "${enable_busyinfo+set}" = set; then
11895   enableval=$enable_busyinfo;
11896                           if test "$enableval" = yes; then
11897                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11898                           else
11899                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11900                           fi
11901
11902 else
11903
11904                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11905                           if test "x$LINE" != x ; then
11906                             eval "DEFAULT_$LINE"
11907                           else
11908                             no_cache=1
11909                           fi
11910
11911                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11912
11913 fi
11914
11915
11916           eval "$ac_cv_use_busyinfo"
11917           if test "$no_cache" != 1; then
11918             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11919           fi
11920
11921           if test "$wxUSE_BUSYINFO" = yes; then
11922             { echo "$as_me:$LINENO: result: yes" >&5
11923 echo "${ECHO_T}yes" >&6; }
11924           else
11925             { echo "$as_me:$LINENO: result: no" >&5
11926 echo "${ECHO_T}no" >&6; }
11927           fi
11928
11929
11930           enablestring=
11931           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11932 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
11933           no_cache=0
11934           # Check whether --enable-joystick was given.
11935 if test "${enable_joystick+set}" = set; then
11936   enableval=$enable_joystick;
11937                           if test "$enableval" = yes; then
11938                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11939                           else
11940                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11941                           fi
11942
11943 else
11944
11945                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11946                           if test "x$LINE" != x ; then
11947                             eval "DEFAULT_$LINE"
11948                           else
11949                             no_cache=1
11950                           fi
11951
11952                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11953
11954 fi
11955
11956
11957           eval "$ac_cv_use_joystick"
11958           if test "$no_cache" != 1; then
11959             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11960           fi
11961
11962           if test "$wxUSE_JOYSTICK" = yes; then
11963             { echo "$as_me:$LINENO: result: yes" >&5
11964 echo "${ECHO_T}yes" >&6; }
11965           else
11966             { echo "$as_me:$LINENO: result: no" >&5
11967 echo "${ECHO_T}no" >&6; }
11968           fi
11969
11970
11971           enablestring=
11972           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11973 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
11974           no_cache=0
11975           # Check whether --enable-metafile was given.
11976 if test "${enable_metafile+set}" = set; then
11977   enableval=$enable_metafile;
11978                           if test "$enableval" = yes; then
11979                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
11980                           else
11981                             ac_cv_use_metafile='wxUSE_METAFILE=no'
11982                           fi
11983
11984 else
11985
11986                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11987                           if test "x$LINE" != x ; then
11988                             eval "DEFAULT_$LINE"
11989                           else
11990                             no_cache=1
11991                           fi
11992
11993                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11994
11995 fi
11996
11997
11998           eval "$ac_cv_use_metafile"
11999           if test "$no_cache" != 1; then
12000             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
12001           fi
12002
12003           if test "$wxUSE_METAFILE" = yes; then
12004             { echo "$as_me:$LINENO: result: yes" >&5
12005 echo "${ECHO_T}yes" >&6; }
12006           else
12007             { echo "$as_me:$LINENO: result: no" >&5
12008 echo "${ECHO_T}no" >&6; }
12009           fi
12010
12011
12012           enablestring=
12013           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
12014 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
12015           no_cache=0
12016           # Check whether --enable-dragimage was given.
12017 if test "${enable_dragimage+set}" = set; then
12018   enableval=$enable_dragimage;
12019                           if test "$enableval" = yes; then
12020                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
12021                           else
12022                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
12023                           fi
12024
12025 else
12026
12027                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
12028                           if test "x$LINE" != x ; then
12029                             eval "DEFAULT_$LINE"
12030                           else
12031                             no_cache=1
12032                           fi
12033
12034                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
12035
12036 fi
12037
12038
12039           eval "$ac_cv_use_dragimage"
12040           if test "$no_cache" != 1; then
12041             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
12042           fi
12043
12044           if test "$wxUSE_DRAGIMAGE" = yes; then
12045             { echo "$as_me:$LINENO: result: yes" >&5
12046 echo "${ECHO_T}yes" >&6; }
12047           else
12048             { echo "$as_me:$LINENO: result: no" >&5
12049 echo "${ECHO_T}no" >&6; }
12050           fi
12051
12052
12053           enablestring=
12054           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
12055 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
12056           no_cache=0
12057           # Check whether --enable-accessibility was given.
12058 if test "${enable_accessibility+set}" = set; then
12059   enableval=$enable_accessibility;
12060                           if test "$enableval" = yes; then
12061                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
12062                           else
12063                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
12064                           fi
12065
12066 else
12067
12068                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
12069                           if test "x$LINE" != x ; then
12070                             eval "DEFAULT_$LINE"
12071                           else
12072                             no_cache=1
12073                           fi
12074
12075                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
12076
12077 fi
12078
12079
12080           eval "$ac_cv_use_accessibility"
12081           if test "$no_cache" != 1; then
12082             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
12083           fi
12084
12085           if test "$wxUSE_ACCESSIBILITY" = yes; then
12086             { echo "$as_me:$LINENO: result: yes" >&5
12087 echo "${ECHO_T}yes" >&6; }
12088           else
12089             { echo "$as_me:$LINENO: result: no" >&5
12090 echo "${ECHO_T}no" >&6; }
12091           fi
12092
12093
12094 if test "$wxUSE_MSW" = "1"; then
12095
12096           enablestring=
12097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
12098 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
12099           no_cache=0
12100           # Check whether --enable-dccache was given.
12101 if test "${enable_dccache+set}" = set; then
12102   enableval=$enable_dccache;
12103                           if test "$enableval" = yes; then
12104                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
12105                           else
12106                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
12107                           fi
12108
12109 else
12110
12111                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
12112                           if test "x$LINE" != x ; then
12113                             eval "DEFAULT_$LINE"
12114                           else
12115                             no_cache=1
12116                           fi
12117
12118                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
12119
12120 fi
12121
12122
12123           eval "$ac_cv_use_dccache"
12124           if test "$no_cache" != 1; then
12125             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
12126           fi
12127
12128           if test "$wxUSE_DC_CACHEING" = yes; then
12129             { echo "$as_me:$LINENO: result: yes" >&5
12130 echo "${ECHO_T}yes" >&6; }
12131           else
12132             { echo "$as_me:$LINENO: result: no" >&5
12133 echo "${ECHO_T}no" >&6; }
12134           fi
12135
12136 fi
12137
12138
12139
12140           enablestring=
12141           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
12142 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
12143           no_cache=0
12144           # Check whether --enable-palette was given.
12145 if test "${enable_palette+set}" = set; then
12146   enableval=$enable_palette;
12147                           if test "$enableval" = yes; then
12148                             ac_cv_use_palette='wxUSE_PALETTE=yes'
12149                           else
12150                             ac_cv_use_palette='wxUSE_PALETTE=no'
12151                           fi
12152
12153 else
12154
12155                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
12156                           if test "x$LINE" != x ; then
12157                             eval "DEFAULT_$LINE"
12158                           else
12159                             no_cache=1
12160                           fi
12161
12162                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
12163
12164 fi
12165
12166
12167           eval "$ac_cv_use_palette"
12168           if test "$no_cache" != 1; then
12169             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
12170           fi
12171
12172           if test "$wxUSE_PALETTE" = yes; then
12173             { echo "$as_me:$LINENO: result: yes" >&5
12174 echo "${ECHO_T}yes" >&6; }
12175           else
12176             { echo "$as_me:$LINENO: result: no" >&5
12177 echo "${ECHO_T}no" >&6; }
12178           fi
12179
12180
12181           enablestring=
12182           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
12183 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
12184           no_cache=0
12185           # Check whether --enable-image was given.
12186 if test "${enable_image+set}" = set; then
12187   enableval=$enable_image;
12188                           if test "$enableval" = yes; then
12189                             ac_cv_use_image='wxUSE_IMAGE=yes'
12190                           else
12191                             ac_cv_use_image='wxUSE_IMAGE=no'
12192                           fi
12193
12194 else
12195
12196                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
12197                           if test "x$LINE" != x ; then
12198                             eval "DEFAULT_$LINE"
12199                           else
12200                             no_cache=1
12201                           fi
12202
12203                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
12204
12205 fi
12206
12207
12208           eval "$ac_cv_use_image"
12209           if test "$no_cache" != 1; then
12210             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
12211           fi
12212
12213           if test "$wxUSE_IMAGE" = yes; then
12214             { echo "$as_me:$LINENO: result: yes" >&5
12215 echo "${ECHO_T}yes" >&6; }
12216           else
12217             { echo "$as_me:$LINENO: result: no" >&5
12218 echo "${ECHO_T}no" >&6; }
12219           fi
12220
12221
12222           enablestring=
12223           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
12224 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
12225           no_cache=0
12226           # Check whether --enable-gif was given.
12227 if test "${enable_gif+set}" = set; then
12228   enableval=$enable_gif;
12229                           if test "$enableval" = yes; then
12230                             ac_cv_use_gif='wxUSE_GIF=yes'
12231                           else
12232                             ac_cv_use_gif='wxUSE_GIF=no'
12233                           fi
12234
12235 else
12236
12237                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
12238                           if test "x$LINE" != x ; then
12239                             eval "DEFAULT_$LINE"
12240                           else
12241                             no_cache=1
12242                           fi
12243
12244                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
12245
12246 fi
12247
12248
12249           eval "$ac_cv_use_gif"
12250           if test "$no_cache" != 1; then
12251             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
12252           fi
12253
12254           if test "$wxUSE_GIF" = yes; then
12255             { echo "$as_me:$LINENO: result: yes" >&5
12256 echo "${ECHO_T}yes" >&6; }
12257           else
12258             { echo "$as_me:$LINENO: result: no" >&5
12259 echo "${ECHO_T}no" >&6; }
12260           fi
12261
12262
12263           enablestring=
12264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
12265 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
12266           no_cache=0
12267           # Check whether --enable-pcx was given.
12268 if test "${enable_pcx+set}" = set; then
12269   enableval=$enable_pcx;
12270                           if test "$enableval" = yes; then
12271                             ac_cv_use_pcx='wxUSE_PCX=yes'
12272                           else
12273                             ac_cv_use_pcx='wxUSE_PCX=no'
12274                           fi
12275
12276 else
12277
12278                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
12279                           if test "x$LINE" != x ; then
12280                             eval "DEFAULT_$LINE"
12281                           else
12282                             no_cache=1
12283                           fi
12284
12285                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
12286
12287 fi
12288
12289
12290           eval "$ac_cv_use_pcx"
12291           if test "$no_cache" != 1; then
12292             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
12293           fi
12294
12295           if test "$wxUSE_PCX" = yes; then
12296             { echo "$as_me:$LINENO: result: yes" >&5
12297 echo "${ECHO_T}yes" >&6; }
12298           else
12299             { echo "$as_me:$LINENO: result: no" >&5
12300 echo "${ECHO_T}no" >&6; }
12301           fi
12302
12303
12304           enablestring=
12305           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
12306 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
12307           no_cache=0
12308           # Check whether --enable-tga was given.
12309 if test "${enable_tga+set}" = set; then
12310   enableval=$enable_tga;
12311                           if test "$enableval" = yes; then
12312                             ac_cv_use_tga='wxUSE_TGA=yes'
12313                           else
12314                             ac_cv_use_tga='wxUSE_TGA=no'
12315                           fi
12316
12317 else
12318
12319                           LINE=`grep "wxUSE_TGA" ${wx_arg_cache_file}`
12320                           if test "x$LINE" != x ; then
12321                             eval "DEFAULT_$LINE"
12322                           else
12323                             no_cache=1
12324                           fi
12325
12326                           ac_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA
12327
12328 fi
12329
12330
12331           eval "$ac_cv_use_tga"
12332           if test "$no_cache" != 1; then
12333             echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp
12334           fi
12335
12336           if test "$wxUSE_TGA" = yes; then
12337             { echo "$as_me:$LINENO: result: yes" >&5
12338 echo "${ECHO_T}yes" >&6; }
12339           else
12340             { echo "$as_me:$LINENO: result: no" >&5
12341 echo "${ECHO_T}no" >&6; }
12342           fi
12343
12344
12345           enablestring=
12346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
12347 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
12348           no_cache=0
12349           # Check whether --enable-iff was given.
12350 if test "${enable_iff+set}" = set; then
12351   enableval=$enable_iff;
12352                           if test "$enableval" = yes; then
12353                             ac_cv_use_iff='wxUSE_IFF=yes'
12354                           else
12355                             ac_cv_use_iff='wxUSE_IFF=no'
12356                           fi
12357
12358 else
12359
12360                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
12361                           if test "x$LINE" != x ; then
12362                             eval "DEFAULT_$LINE"
12363                           else
12364                             no_cache=1
12365                           fi
12366
12367                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
12368
12369 fi
12370
12371
12372           eval "$ac_cv_use_iff"
12373           if test "$no_cache" != 1; then
12374             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
12375           fi
12376
12377           if test "$wxUSE_IFF" = yes; then
12378             { echo "$as_me:$LINENO: result: yes" >&5
12379 echo "${ECHO_T}yes" >&6; }
12380           else
12381             { echo "$as_me:$LINENO: result: no" >&5
12382 echo "${ECHO_T}no" >&6; }
12383           fi
12384
12385
12386           enablestring=
12387           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
12388 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
12389           no_cache=0
12390           # Check whether --enable-pnm was given.
12391 if test "${enable_pnm+set}" = set; then
12392   enableval=$enable_pnm;
12393                           if test "$enableval" = yes; then
12394                             ac_cv_use_pnm='wxUSE_PNM=yes'
12395                           else
12396                             ac_cv_use_pnm='wxUSE_PNM=no'
12397                           fi
12398
12399 else
12400
12401                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
12402                           if test "x$LINE" != x ; then
12403                             eval "DEFAULT_$LINE"
12404                           else
12405                             no_cache=1
12406                           fi
12407
12408                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
12409
12410 fi
12411
12412
12413           eval "$ac_cv_use_pnm"
12414           if test "$no_cache" != 1; then
12415             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
12416           fi
12417
12418           if test "$wxUSE_PNM" = yes; then
12419             { echo "$as_me:$LINENO: result: yes" >&5
12420 echo "${ECHO_T}yes" >&6; }
12421           else
12422             { echo "$as_me:$LINENO: result: no" >&5
12423 echo "${ECHO_T}no" >&6; }
12424           fi
12425
12426
12427           enablestring=
12428           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
12429 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
12430           no_cache=0
12431           # Check whether --enable-xpm was given.
12432 if test "${enable_xpm+set}" = set; then
12433   enableval=$enable_xpm;
12434                           if test "$enableval" = yes; then
12435                             ac_cv_use_xpm='wxUSE_XPM=yes'
12436                           else
12437                             ac_cv_use_xpm='wxUSE_XPM=no'
12438                           fi
12439
12440 else
12441
12442                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
12443                           if test "x$LINE" != x ; then
12444                             eval "DEFAULT_$LINE"
12445                           else
12446                             no_cache=1
12447                           fi
12448
12449                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
12450
12451 fi
12452
12453
12454           eval "$ac_cv_use_xpm"
12455           if test "$no_cache" != 1; then
12456             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
12457           fi
12458
12459           if test "$wxUSE_XPM" = yes; then
12460             { echo "$as_me:$LINENO: result: yes" >&5
12461 echo "${ECHO_T}yes" >&6; }
12462           else
12463             { echo "$as_me:$LINENO: result: no" >&5
12464 echo "${ECHO_T}no" >&6; }
12465           fi
12466
12467
12468           enablestring=
12469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
12470 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
12471           no_cache=0
12472           # Check whether --enable-ico_cur was given.
12473 if test "${enable_ico_cur+set}" = set; then
12474   enableval=$enable_ico_cur;
12475                           if test "$enableval" = yes; then
12476                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
12477                           else
12478                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
12479                           fi
12480
12481 else
12482
12483                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
12484                           if test "x$LINE" != x ; then
12485                             eval "DEFAULT_$LINE"
12486                           else
12487                             no_cache=1
12488                           fi
12489
12490                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
12491
12492 fi
12493
12494
12495           eval "$ac_cv_use_ico_cur"
12496           if test "$no_cache" != 1; then
12497             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
12498           fi
12499
12500           if test "$wxUSE_ICO_CUR" = yes; then
12501             { echo "$as_me:$LINENO: result: yes" >&5
12502 echo "${ECHO_T}yes" >&6; }
12503           else
12504             { echo "$as_me:$LINENO: result: no" >&5
12505 echo "${ECHO_T}no" >&6; }
12506           fi
12507
12508
12509 fi
12510
12511
12512
12513 # Check whether --with-flavour was given.
12514 if test "${with_flavour+set}" = set; then
12515   withval=$with_flavour; WX_FLAVOUR="$withval"
12516 fi
12517
12518
12519
12520
12521           enablestring=
12522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
12523 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
12524           no_cache=0
12525           # Check whether --enable-official_build was given.
12526 if test "${enable_official_build+set}" = set; then
12527   enableval=$enable_official_build;
12528                           if test "$enableval" = yes; then
12529                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
12530                           else
12531                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
12532                           fi
12533
12534 else
12535
12536                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
12537                           if test "x$LINE" != x ; then
12538                             eval "DEFAULT_$LINE"
12539                           else
12540                             no_cache=1
12541                           fi
12542
12543                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
12544
12545 fi
12546
12547
12548           eval "$ac_cv_use_official_build"
12549           if test "$no_cache" != 1; then
12550             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
12551           fi
12552
12553           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
12554             { echo "$as_me:$LINENO: result: yes" >&5
12555 echo "${ECHO_T}yes" >&6; }
12556           else
12557             { echo "$as_me:$LINENO: result: no" >&5
12558 echo "${ECHO_T}no" >&6; }
12559           fi
12560
12561 # Check whether --enable-vendor was given.
12562 if test "${enable_vendor+set}" = set; then
12563   enableval=$enable_vendor; VENDOR="$enableval"
12564 fi
12565
12566 if test "x$VENDOR" = "x"; then
12567     VENDOR="custom"
12568 fi
12569
12570
12571
12572
12573           echo "saving argument cache $wx_arg_cache_file"
12574           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
12575
12576
12577
12578 { echo "$as_me:$LINENO: checking for toolkit" >&5
12579 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
12580
12581 # In Wine, we need to default to MSW, not GTK or MOTIF
12582 if test "$wxUSE_WINE" = "yes"; then
12583     DEFAULT_DEFAULT_wxUSE_GTK=0
12584     DEFAULT_DEFAULT_wxUSE_MOTIF=0
12585     DEFAULT_DEFAULT_wxUSE_MSW=1
12586     wxUSE_SHARED=no
12587     CC=${CC:-winegcc}
12588     CXX=${CXX:-wineg++}
12589 fi
12590
12591
12592 if test "$wxUSE_GUI" = "yes"; then
12593
12594     if test "$USE_BEOS" = 1; then
12595         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
12596 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
12597    { (exit 1); exit 1; }; }
12598     fi
12599
12600     if test "$TOOLKIT_GIVEN" = 1; then
12601             for toolkit in `echo $ALL_TOOLKITS`; do
12602         var=wxUSE_$toolkit
12603         eval "value=\$${var}"
12604         if test "x$value" = "xno"; then
12605           eval "$var=0"
12606         elif test "x$value" != "x"; then
12607           eval "$var=1"
12608         fi
12609
12610         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
12611           eval "wx${toolkit}_VERSION=$value"
12612         fi
12613       done
12614     else
12615             for toolkit in `echo $ALL_TOOLKITS`; do
12616         if test "$has_toolkit_in_cache" != 1; then
12617           var=DEFAULT_DEFAULT_wxUSE_$toolkit
12618         else
12619           var=DEFAULT_wxUSE_$toolkit
12620
12621           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
12622           if test "x$version" != "x"; then
12623             eval "wx${toolkit}_VERSION=$version"
12624           fi
12625         fi
12626         eval "wxUSE_$toolkit=\$${var}"
12627       done
12628     fi
12629
12630             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
12631                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
12632                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
12633
12634         case "${host}" in
12635       *-pc-os2_emx | *-pc-os2-emx )
12636         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
12637     esac
12638
12639     case "$NUM_TOOLKITS" in
12640       1)
12641       ;;
12642       0)
12643         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
12644 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
12645    { (exit 1); exit 1; }; }
12646       ;;
12647       *)
12648         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
12649 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
12650    { (exit 1); exit 1; }; }
12651     esac
12652
12653     # to be removed when --disable-gtk2 isn't needed
12654     if test "x$wxUSE_GTK2" = "xyes"; then
12655         wxGTK_VERSION=2
12656     elif test "x$wxUSE_GTK2" = "xno"; then
12657         wxGTK_VERSION=1
12658     fi
12659
12660         for toolkit in `echo $ALL_TOOLKITS`; do
12661       var=wxUSE_$toolkit
12662       eval "value=\$${var}"
12663       if test "x$value" != x; then
12664         cache_var=CACHE_$toolkit
12665         eval "cache=\$${cache_var}"
12666         if test "$cache" = 1; then
12667           echo "$var=$value" >> ${wx_arg_cache_file}
12668           eval "version=\$wx${toolkit}_VERSION"
12669           if test "x$version" != "x"; then
12670             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
12671           fi
12672         fi
12673         if test "$value" = 1; then
12674           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
12675           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
12676 echo "${ECHO_T}$toolkit_echo" >&6; }
12677         fi
12678       fi
12679     done
12680 else
12681     if test "x$host_alias" != "x"; then
12682         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
12683 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
12684     else
12685         { echo "$as_me:$LINENO: result: base only" >&5
12686 echo "${ECHO_T}base only" >&6; }
12687     fi
12688 fi
12689
12690
12691 cat >confcache <<\_ACEOF
12692 # This file is a shell script that caches the results of configure
12693 # tests run on this system so they can be shared between configure
12694 # scripts and configure runs, see configure's option --config-cache.
12695 # It is not useful on other systems.  If it contains results you don't
12696 # want to keep, you may remove or edit it.
12697 #
12698 # config.status only pays attention to the cache file if you give it
12699 # the --recheck option to rerun configure.
12700 #
12701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12703 # following values.
12704
12705 _ACEOF
12706
12707 # The following way of writing the cache mishandles newlines in values,
12708 # but we know of no workaround that is simple, portable, and efficient.
12709 # So, we kill variables containing newlines.
12710 # Ultrix sh set writes to stderr and can't be redirected directly,
12711 # and sets the high bit in the cache file unless we assign to the vars.
12712 (
12713   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12714     eval ac_val=\$$ac_var
12715     case $ac_val in #(
12716     *${as_nl}*)
12717       case $ac_var in #(
12718       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12720       esac
12721       case $ac_var in #(
12722       _ | IFS | as_nl) ;; #(
12723       *) $as_unset $ac_var ;;
12724       esac ;;
12725     esac
12726   done
12727
12728   (set) 2>&1 |
12729     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12730     *${as_nl}ac_space=\ *)
12731       # `set' does not quote correctly, so add quotes (double-quote
12732       # substitution turns \\\\ into \\, and sed turns \\ into \).
12733       sed -n \
12734         "s/'/'\\\\''/g;
12735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12736       ;; #(
12737     *)
12738       # `set' quotes correctly as required by POSIX, so do not add quotes.
12739       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12740       ;;
12741     esac |
12742     sort
12743 ) |
12744   sed '
12745      /^ac_cv_env_/b end
12746      t clear
12747      :clear
12748      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12749      t end
12750      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12751      :end' >>confcache
12752 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12753   if test -w "$cache_file"; then
12754     test "x$cache_file" != "x/dev/null" &&
12755       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12756 echo "$as_me: updating cache $cache_file" >&6;}
12757     cat confcache >$cache_file
12758   else
12759     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12760 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12761   fi
12762 fi
12763 rm -f confcache
12764
12765 CFLAGS=${CFLAGS:=}
12766
12767
12768
12769     ac_ext=c
12770 ac_cpp='$CPP $CPPFLAGS'
12771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12774 if test -n "$ac_tool_prefix"; then
12775   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12776 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12779 if test "${ac_cv_prog_CC+set}" = set; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782   if test -n "$CC"; then
12783   ac_cv_prog_CC="$CC" # Let the user override the test.
12784 else
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12787 do
12788   IFS=$as_save_IFS
12789   test -z "$as_dir" && as_dir=.
12790   for ac_exec_ext in '' $ac_executable_extensions; do
12791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12792     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12794     break 2
12795   fi
12796 done
12797 done
12798 IFS=$as_save_IFS
12799
12800 fi
12801 fi
12802 CC=$ac_cv_prog_CC
12803 if test -n "$CC"; then
12804   { echo "$as_me:$LINENO: result: $CC" >&5
12805 echo "${ECHO_T}$CC" >&6; }
12806 else
12807   { echo "$as_me:$LINENO: result: no" >&5
12808 echo "${ECHO_T}no" >&6; }
12809 fi
12810
12811
12812 fi
12813 if test -z "$ac_cv_prog_CC"; then
12814   ac_ct_CC=$CC
12815   # Extract the first word of "gcc", so it can be a program name with args.
12816 set dummy gcc; ac_word=$2
12817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12820   echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822   if test -n "$ac_ct_CC"; then
12823   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12824 else
12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $PATH
12827 do
12828   IFS=$as_save_IFS
12829   test -z "$as_dir" && as_dir=.
12830   for ac_exec_ext in '' $ac_executable_extensions; do
12831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12832     ac_cv_prog_ac_ct_CC="gcc"
12833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12834     break 2
12835   fi
12836 done
12837 done
12838 IFS=$as_save_IFS
12839
12840 fi
12841 fi
12842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12843 if test -n "$ac_ct_CC"; then
12844   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12845 echo "${ECHO_T}$ac_ct_CC" >&6; }
12846 else
12847   { echo "$as_me:$LINENO: result: no" >&5
12848 echo "${ECHO_T}no" >&6; }
12849 fi
12850
12851   if test "x$ac_ct_CC" = x; then
12852     CC=""
12853   else
12854     case $cross_compiling:$ac_tool_warned in
12855 yes:)
12856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12857 whose name does not start with the host triplet.  If you think this
12858 configuration is useful to you, please write to autoconf@gnu.org." >&5
12859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12860 whose name does not start with the host triplet.  If you think this
12861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12862 ac_tool_warned=yes ;;
12863 esac
12864     CC=$ac_ct_CC
12865   fi
12866 else
12867   CC="$ac_cv_prog_CC"
12868 fi
12869
12870 if test -z "$CC"; then
12871           if test -n "$ac_tool_prefix"; then
12872     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12873 set dummy ${ac_tool_prefix}cc; ac_word=$2
12874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12876 if test "${ac_cv_prog_CC+set}" = set; then
12877   echo $ECHO_N "(cached) $ECHO_C" >&6
12878 else
12879   if test -n "$CC"; then
12880   ac_cv_prog_CC="$CC" # Let the user override the test.
12881 else
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12884 do
12885   IFS=$as_save_IFS
12886   test -z "$as_dir" && as_dir=.
12887   for ac_exec_ext in '' $ac_executable_extensions; do
12888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12889     ac_cv_prog_CC="${ac_tool_prefix}cc"
12890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12891     break 2
12892   fi
12893 done
12894 done
12895 IFS=$as_save_IFS
12896
12897 fi
12898 fi
12899 CC=$ac_cv_prog_CC
12900 if test -n "$CC"; then
12901   { echo "$as_me:$LINENO: result: $CC" >&5
12902 echo "${ECHO_T}$CC" >&6; }
12903 else
12904   { echo "$as_me:$LINENO: result: no" >&5
12905 echo "${ECHO_T}no" >&6; }
12906 fi
12907
12908
12909   fi
12910 fi
12911 if test -z "$CC"; then
12912   # Extract the first word of "cc", so it can be a program name with args.
12913 set dummy cc; ac_word=$2
12914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12916 if test "${ac_cv_prog_CC+set}" = set; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919   if test -n "$CC"; then
12920   ac_cv_prog_CC="$CC" # Let the user override the test.
12921 else
12922   ac_prog_rejected=no
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 for as_dir in $PATH
12925 do
12926   IFS=$as_save_IFS
12927   test -z "$as_dir" && as_dir=.
12928   for ac_exec_ext in '' $ac_executable_extensions; do
12929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12930     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12931        ac_prog_rejected=yes
12932        continue
12933      fi
12934     ac_cv_prog_CC="cc"
12935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12936     break 2
12937   fi
12938 done
12939 done
12940 IFS=$as_save_IFS
12941
12942 if test $ac_prog_rejected = yes; then
12943   # We found a bogon in the path, so make sure we never use it.
12944   set dummy $ac_cv_prog_CC
12945   shift
12946   if test $# != 0; then
12947     # We chose a different compiler from the bogus one.
12948     # However, it has the same basename, so the bogon will be chosen
12949     # first if we set CC to just the basename; use the full file name.
12950     shift
12951     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12952   fi
12953 fi
12954 fi
12955 fi
12956 CC=$ac_cv_prog_CC
12957 if test -n "$CC"; then
12958   { echo "$as_me:$LINENO: result: $CC" >&5
12959 echo "${ECHO_T}$CC" >&6; }
12960 else
12961   { echo "$as_me:$LINENO: result: no" >&5
12962 echo "${ECHO_T}no" >&6; }
12963 fi
12964
12965
12966 fi
12967 if test -z "$CC"; then
12968   if test -n "$ac_tool_prefix"; then
12969   for ac_prog in cl.exe
12970   do
12971     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12975 if test "${ac_cv_prog_CC+set}" = set; then
12976   echo $ECHO_N "(cached) $ECHO_C" >&6
12977 else
12978   if test -n "$CC"; then
12979   ac_cv_prog_CC="$CC" # Let the user override the test.
12980 else
12981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12982 for as_dir in $PATH
12983 do
12984   IFS=$as_save_IFS
12985   test -z "$as_dir" && as_dir=.
12986   for ac_exec_ext in '' $ac_executable_extensions; do
12987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12988     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12990     break 2
12991   fi
12992 done
12993 done
12994 IFS=$as_save_IFS
12995
12996 fi
12997 fi
12998 CC=$ac_cv_prog_CC
12999 if test -n "$CC"; then
13000   { echo "$as_me:$LINENO: result: $CC" >&5
13001 echo "${ECHO_T}$CC" >&6; }
13002 else
13003   { echo "$as_me:$LINENO: result: no" >&5
13004 echo "${ECHO_T}no" >&6; }
13005 fi
13006
13007
13008     test -n "$CC" && break
13009   done
13010 fi
13011 if test -z "$CC"; then
13012   ac_ct_CC=$CC
13013   for ac_prog in cl.exe
13014 do
13015   # Extract the first word of "$ac_prog", so it can be a program name with args.
13016 set dummy $ac_prog; ac_word=$2
13017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   if test -n "$ac_ct_CC"; then
13023   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13024 else
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13027 do
13028   IFS=$as_save_IFS
13029   test -z "$as_dir" && as_dir=.
13030   for ac_exec_ext in '' $ac_executable_extensions; do
13031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13032     ac_cv_prog_ac_ct_CC="$ac_prog"
13033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13034     break 2
13035   fi
13036 done
13037 done
13038 IFS=$as_save_IFS
13039
13040 fi
13041 fi
13042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13043 if test -n "$ac_ct_CC"; then
13044   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13045 echo "${ECHO_T}$ac_ct_CC" >&6; }
13046 else
13047   { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13049 fi
13050
13051
13052   test -n "$ac_ct_CC" && break
13053 done
13054
13055   if test "x$ac_ct_CC" = x; then
13056     CC=""
13057   else
13058     case $cross_compiling:$ac_tool_warned in
13059 yes:)
13060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13061 whose name does not start with the host triplet.  If you think this
13062 configuration is useful to you, please write to autoconf@gnu.org." >&5
13063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13064 whose name does not start with the host triplet.  If you think this
13065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13066 ac_tool_warned=yes ;;
13067 esac
13068     CC=$ac_ct_CC
13069   fi
13070 fi
13071
13072 fi
13073
13074
13075 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13076 See \`config.log' for more details." >&5
13077 echo "$as_me: error: no acceptable C compiler found in \$PATH
13078 See \`config.log' for more details." >&2;}
13079    { (exit 1); exit 1; }; }
13080
13081 # Provide some information about the compiler.
13082 echo "$as_me:$LINENO: checking for C compiler version" >&5
13083 ac_compiler=`set X $ac_compile; echo $2`
13084 { (ac_try="$ac_compiler --version >&5"
13085 case "(($ac_try" in
13086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087   *) ac_try_echo=$ac_try;;
13088 esac
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090   (eval "$ac_compiler --version >&5") 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); }
13094 { (ac_try="$ac_compiler -v >&5"
13095 case "(($ac_try" in
13096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097   *) ac_try_echo=$ac_try;;
13098 esac
13099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100   (eval "$ac_compiler -v >&5") 2>&5
13101   ac_status=$?
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); }
13104 { (ac_try="$ac_compiler -V >&5"
13105 case "(($ac_try" in
13106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107   *) ac_try_echo=$ac_try;;
13108 esac
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110   (eval "$ac_compiler -V >&5") 2>&5
13111   ac_status=$?
13112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113   (exit $ac_status); }
13114
13115 cat >conftest.$ac_ext <<_ACEOF
13116 /* confdefs.h.  */
13117 _ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h.  */
13121
13122 int
13123 main ()
13124 {
13125
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 ac_clean_files_save=$ac_clean_files
13131 ac_clean_files="$ac_clean_files a.out a.exe b.out"
13132 # Try to create an executable without -o first, disregard a.out.
13133 # It will help us diagnose broken compilers, and finding out an intuition
13134 # of exeext.
13135 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
13136 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
13137 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
13138 #
13139 # List of possible output files, starting from the most likely.
13140 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
13141 # only as a last resort.  b.out is created by i960 compilers.
13142 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
13143 #
13144 # The IRIX 6 linker writes into existing files which may not be
13145 # executable, retaining their permissions.  Remove them first so a
13146 # subsequent execution test works.
13147 ac_rmfiles=
13148 for ac_file in $ac_files
13149 do
13150   case $ac_file in
13151     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
13152     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
13153   esac
13154 done
13155 rm -f $ac_rmfiles
13156
13157 if { (ac_try="$ac_link_default"
13158 case "(($ac_try" in
13159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160   *) ac_try_echo=$ac_try;;
13161 esac
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163   (eval "$ac_link_default") 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; then
13167   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
13168 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
13169 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
13170 # so that the user can short-circuit this test for compilers unknown to
13171 # Autoconf.
13172 for ac_file in $ac_files
13173 do
13174   test -f "$ac_file" || continue
13175   case $ac_file in
13176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
13177         ;;
13178     [ab].out )
13179         # We found the default executable, but exeext='' is most
13180         # certainly right.
13181         break;;
13182     *.* )
13183         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
13184         then :; else
13185            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
13186         fi
13187         # We set ac_cv_exeext here because the later test for it is not
13188         # safe: cross compilers may not add the suffix if given an `-o'
13189         # argument, so we may need to know it at that point already.
13190         # Even if this section looks crufty: it has the advantage of
13191         # actually working.
13192         break;;
13193     * )
13194         break;;
13195   esac
13196 done
13197 test "$ac_cv_exeext" = no && ac_cv_exeext=
13198
13199 else
13200   echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13202
13203 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
13204 See \`config.log' for more details." >&5
13205 echo "$as_me: error: C compiler cannot create executables
13206 See \`config.log' for more details." >&2;}
13207    { (exit 77); exit 77; }; }
13208 fi
13209
13210 ac_exeext=$ac_cv_exeext
13211 { echo "$as_me:$LINENO: result: $ac_file" >&5
13212 echo "${ECHO_T}$ac_file" >&6; }
13213
13214 # Check that the compiler produces executables we can run.  If not, either
13215 # the compiler is broken, or we cross compile.
13216 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
13217 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
13218 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
13219 # If not cross compiling, check that we can run a simple program.
13220 if test "$cross_compiling" != yes; then
13221   if { ac_try='./$ac_file'
13222   { (case "(($ac_try" in
13223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224   *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227   (eval "$ac_try") 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; }; then
13231     cross_compiling=no
13232   else
13233     if test "$cross_compiling" = maybe; then
13234         cross_compiling=yes
13235     else
13236         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
13237 If you meant to cross compile, use \`--host'.
13238 See \`config.log' for more details." >&5
13239 echo "$as_me: error: cannot run C compiled programs.
13240 If you meant to cross compile, use \`--host'.
13241 See \`config.log' for more details." >&2;}
13242    { (exit 1); exit 1; }; }
13243     fi
13244   fi
13245 fi
13246 { echo "$as_me:$LINENO: result: yes" >&5
13247 echo "${ECHO_T}yes" >&6; }
13248
13249 rm -f a.out a.exe conftest$ac_cv_exeext b.out
13250 ac_clean_files=$ac_clean_files_save
13251 # Check that the compiler produces executables we can run.  If not, either
13252 # the compiler is broken, or we cross compile.
13253 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
13254 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
13255 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
13256 echo "${ECHO_T}$cross_compiling" >&6; }
13257
13258 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
13259 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263   *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266   (eval "$ac_link") 2>&5
13267   ac_status=$?
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); }; then
13270   # If both `conftest.exe' and `conftest' are `present' (well, observable)
13271 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
13272 # work properly (i.e., refer to `conftest.exe'), while it won't with
13273 # `rm'.
13274 for ac_file in conftest.exe conftest conftest.*; do
13275   test -f "$ac_file" || continue
13276   case $ac_file in
13277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
13278     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
13279           break;;
13280     * ) break;;
13281   esac
13282 done
13283 else
13284   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
13285 See \`config.log' for more details." >&5
13286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
13287 See \`config.log' for more details." >&2;}
13288    { (exit 1); exit 1; }; }
13289 fi
13290
13291 rm -f conftest$ac_cv_exeext
13292 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
13293 echo "${ECHO_T}$ac_cv_exeext" >&6; }
13294
13295 rm -f conftest.$ac_ext
13296 EXEEXT=$ac_cv_exeext
13297 ac_exeext=$EXEEXT
13298 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
13299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
13300 if test "${ac_cv_objext+set}" = set; then
13301   echo $ECHO_N "(cached) $ECHO_C" >&6
13302 else
13303   cat >conftest.$ac_ext <<_ACEOF
13304 /* confdefs.h.  */
13305 _ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h.  */
13309
13310 int
13311 main ()
13312 {
13313
13314   ;
13315   return 0;
13316 }
13317 _ACEOF
13318 rm -f conftest.o conftest.obj
13319 if { (ac_try="$ac_compile"
13320 case "(($ac_try" in
13321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322   *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325   (eval "$ac_compile") 2>&5
13326   ac_status=$?
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); }; then
13329   for ac_file in conftest.o conftest.obj conftest.*; do
13330   test -f "$ac_file" || continue;
13331   case $ac_file in
13332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
13333     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
13334        break;;
13335   esac
13336 done
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
13342 See \`config.log' for more details." >&5
13343 echo "$as_me: error: cannot compute suffix of object files: cannot compile
13344 See \`config.log' for more details." >&2;}
13345    { (exit 1); exit 1; }; }
13346 fi
13347
13348 rm -f conftest.$ac_cv_objext conftest.$ac_ext
13349 fi
13350 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
13351 echo "${ECHO_T}$ac_cv_objext" >&6; }
13352 OBJEXT=$ac_cv_objext
13353 ac_objext=$OBJEXT
13354 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13355 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13356 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13357   echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359   cat >conftest.$ac_ext <<_ACEOF
13360 /* confdefs.h.  */
13361 _ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h.  */
13365
13366 int
13367 main ()
13368 {
13369 #ifndef __GNUC__
13370        choke me
13371 #endif
13372
13373   ;
13374   return 0;
13375 }
13376 _ACEOF
13377 rm -f conftest.$ac_objext
13378 if { (ac_try="$ac_compile"
13379 case "(($ac_try" in
13380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381   *) ac_try_echo=$ac_try;;
13382 esac
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384   (eval "$ac_compile") 2>conftest.er1
13385   ac_status=$?
13386   grep -v '^ *+' conftest.er1 >conftest.err
13387   rm -f conftest.er1
13388   cat conftest.err >&5
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); } &&
13391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13392   { (case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_try") 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; } &&
13401          { ac_try='test -s conftest.$ac_objext'
13402   { (case "(($ac_try" in
13403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404   *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407   (eval "$ac_try") 2>&5
13408   ac_status=$?
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); }; }; then
13411   ac_compiler_gnu=yes
13412 else
13413   echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13415
13416         ac_compiler_gnu=no
13417 fi
13418
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13421
13422 fi
13423 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13424 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13425 GCC=`test $ac_compiler_gnu = yes && echo yes`
13426 ac_test_CFLAGS=${CFLAGS+set}
13427 ac_save_CFLAGS=$CFLAGS
13428 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13430 if test "${ac_cv_prog_cc_g+set}" = set; then
13431   echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433   ac_save_c_werror_flag=$ac_c_werror_flag
13434    ac_c_werror_flag=yes
13435    ac_cv_prog_cc_g=no
13436    CFLAGS="-g"
13437    cat >conftest.$ac_ext <<_ACEOF
13438 /* confdefs.h.  */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h.  */
13443
13444 int
13445 main ()
13446 {
13447
13448   ;
13449   return 0;
13450 }
13451 _ACEOF
13452 rm -f conftest.$ac_objext
13453 if { (ac_try="$ac_compile"
13454 case "(($ac_try" in
13455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456   *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459   (eval "$ac_compile") 2>conftest.er1
13460   ac_status=$?
13461   grep -v '^ *+' conftest.er1 >conftest.err
13462   rm -f conftest.er1
13463   cat conftest.err >&5
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); } &&
13466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13467   { (case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_try") 2>&5
13473   ac_status=$?
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); }; } &&
13476          { ac_try='test -s conftest.$ac_objext'
13477   { (case "(($ac_try" in
13478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479   *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482   (eval "$ac_try") 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); }; }; then
13486   ac_cv_prog_cc_g=yes
13487 else
13488   echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13490
13491         CFLAGS=""
13492       cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498
13499 int
13500 main ()
13501 {
13502
13503   ;
13504   return 0;
13505 }
13506 _ACEOF
13507 rm -f conftest.$ac_objext
13508 if { (ac_try="$ac_compile"
13509 case "(($ac_try" in
13510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511   *) ac_try_echo=$ac_try;;
13512 esac
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514   (eval "$ac_compile") 2>conftest.er1
13515   ac_status=$?
13516   grep -v '^ *+' conftest.er1 >conftest.err
13517   rm -f conftest.er1
13518   cat conftest.err >&5
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); } &&
13521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13522   { (case "(($ac_try" in
13523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524   *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527   (eval "$ac_try") 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; } &&
13531          { ac_try='test -s conftest.$ac_objext'
13532   { (case "(($ac_try" in
13533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534   *) ac_try_echo=$ac_try;;
13535 esac
13536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537   (eval "$ac_try") 2>&5
13538   ac_status=$?
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); }; }; then
13541   :
13542 else
13543   echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13545
13546         ac_c_werror_flag=$ac_save_c_werror_flag
13547          CFLAGS="-g"
13548          cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h.  */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h.  */
13554
13555 int
13556 main ()
13557 {
13558
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 rm -f conftest.$ac_objext
13564 if { (ac_try="$ac_compile"
13565 case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570   (eval "$ac_compile") 2>conftest.er1
13571   ac_status=$?
13572   grep -v '^ *+' conftest.er1 >conftest.err
13573   rm -f conftest.er1
13574   cat conftest.err >&5
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); } &&
13577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13578   { (case "(($ac_try" in
13579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580   *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583   (eval "$ac_try") 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; } &&
13587          { ac_try='test -s conftest.$ac_objext'
13588   { (case "(($ac_try" in
13589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590   *) ac_try_echo=$ac_try;;
13591 esac
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593   (eval "$ac_try") 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); }; }; then
13597   ac_cv_prog_cc_g=yes
13598 else
13599   echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13601
13602
13603 fi
13604
13605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 fi
13607
13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609 fi
13610
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612    ac_c_werror_flag=$ac_save_c_werror_flag
13613 fi
13614 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13615 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13616 if test "$ac_test_CFLAGS" = set; then
13617   CFLAGS=$ac_save_CFLAGS
13618 elif test $ac_cv_prog_cc_g = yes; then
13619   if test "$GCC" = yes; then
13620     CFLAGS="-g -O2"
13621   else
13622     CFLAGS="-g"
13623   fi
13624 else
13625   if test "$GCC" = yes; then
13626     CFLAGS="-O2"
13627   else
13628     CFLAGS=
13629   fi
13630 fi
13631 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13632 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13633 if test "${ac_cv_prog_cc_c89+set}" = set; then
13634   echo $ECHO_N "(cached) $ECHO_C" >&6
13635 else
13636   ac_cv_prog_cc_c89=no
13637 ac_save_CC=$CC
13638 cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 #include <stdarg.h>
13645 #include <stdio.h>
13646 #include <sys/types.h>
13647 #include <sys/stat.h>
13648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13649 struct buf { int x; };
13650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13651 static char *e (p, i)
13652      char **p;
13653      int i;
13654 {
13655   return p[i];
13656 }
13657 static char *f (char * (*g) (char **, int), char **p, ...)
13658 {
13659   char *s;
13660   va_list v;
13661   va_start (v,p);
13662   s = g (p, va_arg (v,int));
13663   va_end (v);
13664   return s;
13665 }
13666
13667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13668    function prototypes and stuff, but not '\xHH' hex character constants.
13669    These don't provoke an error unfortunately, instead are silently treated
13670    as 'x'.  The following induces an error, until -std is added to get
13671    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13672    array size at least.  It's necessary to write '\x00'==0 to get something
13673    that's true only with -std.  */
13674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13675
13676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13677    inside strings and character constants.  */
13678 #define FOO(x) 'x'
13679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13680
13681 int test (int i, double x);
13682 struct s1 {int (*f) (int a);};
13683 struct s2 {int (*f) (double a);};
13684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13685 int argc;
13686 char **argv;
13687 int
13688 main ()
13689 {
13690 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13691   ;
13692   return 0;
13693 }
13694 _ACEOF
13695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13696         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13697 do
13698   CC="$ac_save_CC $ac_arg"
13699   rm -f conftest.$ac_objext
13700 if { (ac_try="$ac_compile"
13701 case "(($ac_try" in
13702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703   *) ac_try_echo=$ac_try;;
13704 esac
13705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13706   (eval "$ac_compile") 2>conftest.er1
13707   ac_status=$?
13708   grep -v '^ *+' conftest.er1 >conftest.err
13709   rm -f conftest.er1
13710   cat conftest.err >&5
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); } &&
13713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13714   { (case "(($ac_try" in
13715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716   *) ac_try_echo=$ac_try;;
13717 esac
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719   (eval "$ac_try") 2>&5
13720   ac_status=$?
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); }; } &&
13723          { ac_try='test -s conftest.$ac_objext'
13724   { (case "(($ac_try" in
13725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726   *) ac_try_echo=$ac_try;;
13727 esac
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729   (eval "$ac_try") 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; }; then
13733   ac_cv_prog_cc_c89=$ac_arg
13734 else
13735   echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738
13739 fi
13740
13741 rm -f core conftest.err conftest.$ac_objext
13742   test "x$ac_cv_prog_cc_c89" != "xno" && break
13743 done
13744 rm -f conftest.$ac_ext
13745 CC=$ac_save_CC
13746
13747 fi
13748 # AC_CACHE_VAL
13749 case "x$ac_cv_prog_cc_c89" in
13750   x)
13751     { echo "$as_me:$LINENO: result: none needed" >&5
13752 echo "${ECHO_T}none needed" >&6; } ;;
13753   xno)
13754     { echo "$as_me:$LINENO: result: unsupported" >&5
13755 echo "${ECHO_T}unsupported" >&6; } ;;
13756   *)
13757     CC="$CC $ac_cv_prog_cc_c89"
13758     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13759 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13760 esac
13761
13762
13763 ac_ext=c
13764 ac_cpp='$CPP $CPPFLAGS'
13765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13768
13769
13770
13771     ac_ext=c
13772 ac_cpp='$CPP $CPPFLAGS'
13773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13776
13777     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
13778 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
13779 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
13780   echo $ECHO_N "(cached) $ECHO_C" >&6
13781 else
13782   cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h.  */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h.  */
13788
13789 int
13790 main ()
13791 {
13792
13793              #ifndef __INTEL_COMPILER
13794                 choke me
13795              #endif
13796
13797   ;
13798   return 0;
13799 }
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (ac_try="$ac_compile"
13803 case "(($ac_try" in
13804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805   *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808   (eval "$ac_compile") 2>conftest.er1
13809   ac_status=$?
13810   grep -v '^ *+' conftest.er1 >conftest.err
13811   rm -f conftest.er1
13812   cat conftest.err >&5
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); } &&
13815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13816   { (case "(($ac_try" in
13817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818   *) ac_try_echo=$ac_try;;
13819 esac
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821   (eval "$ac_try") 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; } &&
13825          { ac_try='test -s conftest.$ac_objext'
13826   { (case "(($ac_try" in
13827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828   *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831   (eval "$ac_try") 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); }; }; then
13835   bakefile_cv_c_compiler___INTEL_COMPILER=yes
13836 else
13837   echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840         bakefile_cv_c_compiler___INTEL_COMPILER=no
13841
13842 fi
13843
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845
13846
13847 fi
13848 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
13849 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
13850     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
13851         :; INTELCC=yes
13852     else
13853         :;
13854     fi
13855     ac_ext=c
13856 ac_cpp='$CPP $CPPFLAGS'
13857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13860
13861
13862
13863         if test "x$GCC" != "xyes"; then
13864         if test "xCC" = "xC"; then
13865             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
13866 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
13867 if test "${bakefile_cv_c_exto+set}" = set; then
13868   echo $ECHO_N "(cached) $ECHO_C" >&6
13869 else
13870   cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h.  */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h.  */
13876
13877 int
13878 main ()
13879 {
13880
13881   ;
13882   return 0;
13883 }
13884 _ACEOF
13885 rm -f conftest.$ac_objext conftest.$ac_ext.o
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887   (eval $ac_compile) 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); }; then
13891   for ac_file in `(ls conftest.* 2>/dev/null)`; do
13892     case $ac_file in
13893         conftest.$ac_ext.o)
13894             bakefile_cv_c_exto="-ext o"
13895             ;;
13896         *)
13897             ;;
13898     esac
13899 done
13900 else
13901   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13902 See \`config.log' for more details." >&5
13903 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13904 See \`config.log' for more details." >&2;}
13905    { (exit 1); exit 1; }; }
13906
13907 fi
13908
13909 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13910
13911 fi
13912 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
13913 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
13914 if test "x$bakefile_cv_c_exto" '!=' "x"; then
13915     if test "c" = "c"; then
13916         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
13917     fi
13918     if test "c" = "cxx"; then
13919         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
13920     fi
13921 fi
13922
13923             if test "x$bakefile_cv_c_exto" '!=' "x"; then
13924                 unset ac_cv_prog_cc_g
13925                 ac_test_CFLAGS=${CFLAGS+set}
13926 ac_save_CFLAGS=$CFLAGS
13927 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13928 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13929 if test "${ac_cv_prog_cc_g+set}" = set; then
13930   echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932   ac_save_c_werror_flag=$ac_c_werror_flag
13933    ac_c_werror_flag=yes
13934    ac_cv_prog_cc_g=no
13935    CFLAGS="-g"
13936    cat >conftest.$ac_ext <<_ACEOF
13937 /* confdefs.h.  */
13938 _ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h.  */
13942
13943 int
13944 main ()
13945 {
13946
13947   ;
13948   return 0;
13949 }
13950 _ACEOF
13951 rm -f conftest.$ac_objext
13952 if { (ac_try="$ac_compile"
13953 case "(($ac_try" in
13954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955   *) ac_try_echo=$ac_try;;
13956 esac
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958   (eval "$ac_compile") 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } &&
13965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13966   { (case "(($ac_try" in
13967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968   *) ac_try_echo=$ac_try;;
13969 esac
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971   (eval "$ac_try") 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; } &&
13975          { ac_try='test -s conftest.$ac_objext'
13976   { (case "(($ac_try" in
13977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978   *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981   (eval "$ac_try") 2>&5
13982   ac_status=$?
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); }; }; then
13985   ac_cv_prog_cc_g=yes
13986 else
13987   echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13989
13990         CFLAGS=""
13991       cat >conftest.$ac_ext <<_ACEOF
13992 /* confdefs.h.  */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h.  */
13997
13998 int
13999 main ()
14000 {
14001
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 rm -f conftest.$ac_objext
14007 if { (ac_try="$ac_compile"
14008 case "(($ac_try" in
14009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010   *) ac_try_echo=$ac_try;;
14011 esac
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013   (eval "$ac_compile") 2>conftest.er1
14014   ac_status=$?
14015   grep -v '^ *+' conftest.er1 >conftest.err
14016   rm -f conftest.er1
14017   cat conftest.err >&5
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); } &&
14020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14021   { (case "(($ac_try" in
14022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023   *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026   (eval "$ac_try") 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; } &&
14030          { ac_try='test -s conftest.$ac_objext'
14031   { (case "(($ac_try" in
14032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033   *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036   (eval "$ac_try") 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040   :
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045         ac_c_werror_flag=$ac_save_c_werror_flag
14046          CFLAGS="-g"
14047          cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h.  */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h.  */
14053
14054 int
14055 main ()
14056 {
14057
14058   ;
14059   return 0;
14060 }
14061 _ACEOF
14062 rm -f conftest.$ac_objext
14063 if { (ac_try="$ac_compile"
14064 case "(($ac_try" in
14065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066   *) ac_try_echo=$ac_try;;
14067 esac
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069   (eval "$ac_compile") 2>conftest.er1
14070   ac_status=$?
14071   grep -v '^ *+' conftest.er1 >conftest.err
14072   rm -f conftest.er1
14073   cat conftest.err >&5
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); } &&
14076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14077   { (case "(($ac_try" in
14078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079   *) ac_try_echo=$ac_try;;
14080 esac
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082   (eval "$ac_try") 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); }; } &&
14086          { ac_try='test -s conftest.$ac_objext'
14087   { (case "(($ac_try" in
14088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089   *) ac_try_echo=$ac_try;;
14090 esac
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092   (eval "$ac_try") 2>&5
14093   ac_status=$?
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); }; }; then
14096   ac_cv_prog_cc_g=yes
14097 else
14098   echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14100
14101
14102 fi
14103
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 fi
14106
14107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14108 fi
14109
14110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14111    ac_c_werror_flag=$ac_save_c_werror_flag
14112 fi
14113 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14114 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14115 if test "$ac_test_CFLAGS" = set; then
14116   CFLAGS=$ac_save_CFLAGS
14117 elif test $ac_cv_prog_cc_g = yes; then
14118   if test "$GCC" = yes; then
14119     CFLAGS="-g -O2"
14120   else
14121     CFLAGS="-g"
14122   fi
14123 else
14124   if test "$GCC" = yes; then
14125     CFLAGS="-O2"
14126   else
14127     CFLAGS=
14128   fi
14129 fi
14130             fi
14131         fi
14132
14133                         case `uname -s` in
14134             AIX*)
14135                 ac_ext=c
14136 ac_cpp='$CPP $CPPFLAGS'
14137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14140
14141 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
14142 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
14143 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
14144   echo $ECHO_N "(cached) $ECHO_C" >&6
14145 else
14146   cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h.  */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h.  */
14152
14153 int
14154 main ()
14155 {
14156 #ifndef __xlC__
14157        choke me
14158 #endif
14159
14160   ;
14161   return 0;
14162 }
14163 _ACEOF
14164 rm -f conftest.$ac_objext
14165 if { (ac_try="$ac_compile"
14166 case "(($ac_try" in
14167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168   *) ac_try_echo=$ac_try;;
14169 esac
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171   (eval "$ac_compile") 2>conftest.er1
14172   ac_status=$?
14173   grep -v '^ *+' conftest.er1 >conftest.err
14174   rm -f conftest.er1
14175   cat conftest.err >&5
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } &&
14178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14179   { (case "(($ac_try" in
14180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181   *) ac_try_echo=$ac_try;;
14182 esac
14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184   (eval "$ac_try") 2>&5
14185   ac_status=$?
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); }; } &&
14188          { ac_try='test -s conftest.$ac_objext'
14189   { (case "(($ac_try" in
14190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191   *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194   (eval "$ac_try") 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); }; }; then
14198   bakefile_compiler_xlc=yes
14199 else
14200   echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14202
14203         bakefile_compiler_xlc=no
14204 fi
14205
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
14208
14209 fi
14210 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
14211 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6; }
14212
14213 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
14214 ac_ext=c
14215 ac_cpp='$CPP $CPPFLAGS'
14216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14219
14220
14221                 ;;
14222
14223             Darwin)
14224                 ac_ext=c
14225 ac_cpp='$CPP $CPPFLAGS'
14226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14229
14230 { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
14231 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
14232 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
14233   echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235   cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h.  */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h.  */
14241
14242 int
14243 main ()
14244 {
14245 #ifndef __MWERKS__
14246        choke me
14247 #endif
14248
14249   ;
14250   return 0;
14251 }
14252 _ACEOF
14253 rm -f conftest.$ac_objext
14254 if { (ac_try="$ac_compile"
14255 case "(($ac_try" in
14256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257   *) ac_try_echo=$ac_try;;
14258 esac
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260   (eval "$ac_compile") 2>conftest.er1
14261   ac_status=$?
14262   grep -v '^ *+' conftest.er1 >conftest.err
14263   rm -f conftest.er1
14264   cat conftest.err >&5
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); } &&
14267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14268   { (case "(($ac_try" in
14269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14270   *) ac_try_echo=$ac_try;;
14271 esac
14272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273   (eval "$ac_try") 2>&5
14274   ac_status=$?
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); }; } &&
14277          { ac_try='test -s conftest.$ac_objext'
14278   { (case "(($ac_try" in
14279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280   *) ac_try_echo=$ac_try;;
14281 esac
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283   (eval "$ac_try") 2>&5
14284   ac_status=$?
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); }; }; then
14287   bakefile_compiler_mwerks=yes
14288 else
14289   echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292         bakefile_compiler_mwerks=no
14293 fi
14294
14295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14296     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
14297
14298 fi
14299 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
14300 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6; }
14301
14302 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
14303 ac_ext=c
14304 ac_cpp='$CPP $CPPFLAGS'
14305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14308
14309
14310                 ac_ext=c
14311 ac_cpp='$CPP $CPPFLAGS'
14312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14315
14316 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
14317 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
14318 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
14319   echo $ECHO_N "(cached) $ECHO_C" >&6
14320 else
14321   cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h.  */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h.  */
14327
14328 int
14329 main ()
14330 {
14331 #ifndef __xlC__
14332        choke me
14333 #endif
14334
14335   ;
14336   return 0;
14337 }
14338 _ACEOF
14339 rm -f conftest.$ac_objext
14340 if { (ac_try="$ac_compile"
14341 case "(($ac_try" in
14342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343   *) ac_try_echo=$ac_try;;
14344 esac
14345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346   (eval "$ac_compile") 2>conftest.er1
14347   ac_status=$?
14348   grep -v '^ *+' conftest.er1 >conftest.err
14349   rm -f conftest.er1
14350   cat conftest.err >&5
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); } &&
14353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14354   { (case "(($ac_try" in
14355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356   *) ac_try_echo=$ac_try;;
14357 esac
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359   (eval "$ac_try") 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; } &&
14363          { ac_try='test -s conftest.$ac_objext'
14364   { (case "(($ac_try" in
14365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366   *) ac_try_echo=$ac_try;;
14367 esac
14368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369   (eval "$ac_try") 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); }; }; then
14373   bakefile_compiler_xlc=yes
14374 else
14375   echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14377
14378         bakefile_compiler_xlc=no
14379 fi
14380
14381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14382     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
14383
14384 fi
14385 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
14386 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6; }
14387
14388 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
14389 ac_ext=c
14390 ac_cpp='$CPP $CPPFLAGS'
14391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14394
14395
14396                 ;;
14397
14398             IRIX*)
14399
14400
14401     ac_ext=c
14402 ac_cpp='$CPP $CPPFLAGS'
14403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14406
14407     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
14408 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
14409 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h.  */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h.  */
14418
14419 int
14420 main ()
14421 {
14422
14423              #ifndef _SGI_COMPILER_VERSION
14424                 choke me
14425              #endif
14426
14427   ;
14428   return 0;
14429 }
14430 _ACEOF
14431 rm -f conftest.$ac_objext
14432 if { (ac_try="$ac_compile"
14433 case "(($ac_try" in
14434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435   *) ac_try_echo=$ac_try;;
14436 esac
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438   (eval "$ac_compile") 2>conftest.er1
14439   ac_status=$?
14440   grep -v '^ *+' conftest.er1 >conftest.err
14441   rm -f conftest.er1
14442   cat conftest.err >&5
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); } &&
14445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14446   { (case "(($ac_try" in
14447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448   *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451   (eval "$ac_try") 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; } &&
14455          { ac_try='test -s conftest.$ac_objext'
14456   { (case "(($ac_try" in
14457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458   *) ac_try_echo=$ac_try;;
14459 esac
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461   (eval "$ac_try") 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; }; then
14465   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
14466 else
14467   echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14469
14470         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
14471
14472 fi
14473
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475
14476
14477 fi
14478 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
14479 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
14480     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14481         :; SGICC=yes
14482     else
14483         :;
14484     fi
14485     ac_ext=c
14486 ac_cpp='$CPP $CPPFLAGS'
14487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14490
14491
14492
14493                 ;;
14494
14495             HP-UX*)
14496
14497
14498     ac_ext=c
14499 ac_cpp='$CPP $CPPFLAGS'
14500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14503
14504     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
14505 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
14506 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509   cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h.  */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h.  */
14515
14516 int
14517 main ()
14518 {
14519
14520              #ifndef __HP_cc
14521                 choke me
14522              #endif
14523
14524   ;
14525   return 0;
14526 }
14527 _ACEOF
14528 rm -f conftest.$ac_objext
14529 if { (ac_try="$ac_compile"
14530 case "(($ac_try" in
14531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532   *) ac_try_echo=$ac_try;;
14533 esac
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535   (eval "$ac_compile") 2>conftest.er1
14536   ac_status=$?
14537   grep -v '^ *+' conftest.er1 >conftest.err
14538   rm -f conftest.er1
14539   cat conftest.err >&5
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } &&
14542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14543   { (case "(($ac_try" in
14544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545   *) ac_try_echo=$ac_try;;
14546 esac
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548   (eval "$ac_try") 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; } &&
14552          { ac_try='test -s conftest.$ac_objext'
14553   { (case "(($ac_try" in
14554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555   *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558   (eval "$ac_try") 2>&5
14559   ac_status=$?
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); }; }; then
14562   bakefile_cv_c_compiler___HP_cc=yes
14563 else
14564   echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.$ac_ext >&5
14566
14567         bakefile_cv_c_compiler___HP_cc=no
14568
14569 fi
14570
14571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14572
14573
14574 fi
14575 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
14576 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
14577     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
14578         :; HPCC=yes
14579     else
14580         :;
14581     fi
14582     ac_ext=c
14583 ac_cpp='$CPP $CPPFLAGS'
14584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14587
14588
14589
14590                 ;;
14591
14592             OSF1)
14593
14594
14595     ac_ext=c
14596 ac_cpp='$CPP $CPPFLAGS'
14597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14600
14601     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
14602 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
14603 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
14604   echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606   cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h.  */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h.  */
14612
14613 int
14614 main ()
14615 {
14616
14617              #ifndef __DECC
14618                 choke me
14619              #endif
14620
14621   ;
14622   return 0;
14623 }
14624 _ACEOF
14625 rm -f conftest.$ac_objext
14626 if { (ac_try="$ac_compile"
14627 case "(($ac_try" in
14628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629   *) ac_try_echo=$ac_try;;
14630 esac
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632   (eval "$ac_compile") 2>conftest.er1
14633   ac_status=$?
14634   grep -v '^ *+' conftest.er1 >conftest.err
14635   rm -f conftest.er1
14636   cat conftest.err >&5
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); } &&
14639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14640   { (case "(($ac_try" in
14641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642   *) ac_try_echo=$ac_try;;
14643 esac
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645   (eval "$ac_try") 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }; } &&
14649          { ac_try='test -s conftest.$ac_objext'
14650   { (case "(($ac_try" in
14651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652   *) ac_try_echo=$ac_try;;
14653 esac
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655   (eval "$ac_try") 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); }; }; then
14659   bakefile_cv_c_compiler___DECC=yes
14660 else
14661   echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14663
14664         bakefile_cv_c_compiler___DECC=no
14665
14666 fi
14667
14668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669
14670
14671 fi
14672 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
14673 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
14674     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
14675         :; COMPAQCC=yes
14676     else
14677         :;
14678     fi
14679     ac_ext=c
14680 ac_cpp='$CPP $CPPFLAGS'
14681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14684
14685
14686
14687                 ;;
14688
14689             SunOS)
14690
14691
14692     ac_ext=c
14693 ac_cpp='$CPP $CPPFLAGS'
14694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14697
14698     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
14699 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
14700 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
14701   echo $ECHO_N "(cached) $ECHO_C" >&6
14702 else
14703   cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h.  */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h.  */
14709
14710 int
14711 main ()
14712 {
14713
14714              #ifndef __SUNPRO_C
14715                 choke me
14716              #endif
14717
14718   ;
14719   return 0;
14720 }
14721 _ACEOF
14722 rm -f conftest.$ac_objext
14723 if { (ac_try="$ac_compile"
14724 case "(($ac_try" in
14725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726   *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729   (eval "$ac_compile") 2>conftest.er1
14730   ac_status=$?
14731   grep -v '^ *+' conftest.er1 >conftest.err
14732   rm -f conftest.er1
14733   cat conftest.err >&5
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); } &&
14736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14737   { (case "(($ac_try" in
14738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739   *) ac_try_echo=$ac_try;;
14740 esac
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742   (eval "$ac_try") 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; } &&
14746          { ac_try='test -s conftest.$ac_objext'
14747   { (case "(($ac_try" in
14748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749   *) ac_try_echo=$ac_try;;
14750 esac
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752   (eval "$ac_try") 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); }; }; then
14756   bakefile_cv_c_compiler___SUNPRO_C=yes
14757 else
14758   echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14760
14761         bakefile_cv_c_compiler___SUNPRO_C=no
14762
14763 fi
14764
14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766
14767
14768 fi
14769 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
14770 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
14771     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
14772         :; SUNCC=yes
14773     else
14774         :;
14775     fi
14776     ac_ext=c
14777 ac_cpp='$CPP $CPPFLAGS'
14778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14781
14782
14783
14784                 ;;
14785         esac
14786     fi
14787
14788
14789
14790 ac_ext=c
14791 ac_cpp='$CPP $CPPFLAGS'
14792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14795 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14796 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
14797 # On Suns, sometimes $CPP names a directory.
14798 if test -n "$CPP" && test -d "$CPP"; then
14799   CPP=
14800 fi
14801 if test -z "$CPP"; then
14802   if test "${ac_cv_prog_CPP+set}" = set; then
14803   echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805       # Double quotes because CPP needs to be expanded
14806     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14807     do
14808       ac_preproc_ok=false
14809 for ac_c_preproc_warn_flag in '' yes
14810 do
14811   # Use a header file that comes with gcc, so configuring glibc
14812   # with a fresh cross-compiler works.
14813   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14814   # <limits.h> exists even on freestanding compilers.
14815   # On the NeXT, cc -E runs the code through the compiler's parser,
14816   # not just through cpp. "Syntax error" is here to catch this case.
14817   cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h.  */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h.  */
14823 #ifdef __STDC__
14824 # include <limits.h>
14825 #else
14826 # include <assert.h>
14827 #endif
14828                      Syntax error
14829 _ACEOF
14830 if { (ac_try="$ac_cpp conftest.$ac_ext"
14831 case "(($ac_try" in
14832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833   *) ac_try_echo=$ac_try;;
14834 esac
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14837   ac_status=$?
14838   grep -v '^ *+' conftest.er1 >conftest.err
14839   rm -f conftest.er1
14840   cat conftest.err >&5
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); } >/dev/null; then
14843   if test -s conftest.err; then
14844     ac_cpp_err=$ac_c_preproc_warn_flag
14845     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14846   else
14847     ac_cpp_err=
14848   fi
14849 else
14850   ac_cpp_err=yes
14851 fi
14852 if test -z "$ac_cpp_err"; then
14853   :
14854 else
14855   echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14857
14858   # Broken: fails on valid input.
14859 continue
14860 fi
14861
14862 rm -f conftest.err conftest.$ac_ext
14863
14864   # OK, works on sane cases.  Now check whether nonexistent headers
14865   # can be detected and how.
14866   cat >conftest.$ac_ext <<_ACEOF
14867 /* confdefs.h.  */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h.  */
14872 #include <ac_nonexistent.h>
14873 _ACEOF
14874 if { (ac_try="$ac_cpp conftest.$ac_ext"
14875 case "(($ac_try" in
14876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877   *) ac_try_echo=$ac_try;;
14878 esac
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14881   ac_status=$?
14882   grep -v '^ *+' conftest.er1 >conftest.err
14883   rm -f conftest.er1
14884   cat conftest.err >&5
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); } >/dev/null; then
14887   if test -s conftest.err; then
14888     ac_cpp_err=$ac_c_preproc_warn_flag
14889     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14890   else
14891     ac_cpp_err=
14892   fi
14893 else
14894   ac_cpp_err=yes
14895 fi
14896 if test -z "$ac_cpp_err"; then
14897   # Broken: success on invalid input.
14898 continue
14899 else
14900   echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903   # Passes both tests.
14904 ac_preproc_ok=:
14905 break
14906 fi
14907
14908 rm -f conftest.err conftest.$ac_ext
14909
14910 done
14911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14912 rm -f conftest.err conftest.$ac_ext
14913 if $ac_preproc_ok; then
14914   break
14915 fi
14916
14917     done
14918     ac_cv_prog_CPP=$CPP
14919
14920 fi
14921   CPP=$ac_cv_prog_CPP
14922 else
14923   ac_cv_prog_CPP=$CPP
14924 fi
14925 { echo "$as_me:$LINENO: result: $CPP" >&5
14926 echo "${ECHO_T}$CPP" >&6; }
14927 ac_preproc_ok=false
14928 for ac_c_preproc_warn_flag in '' yes
14929 do
14930   # Use a header file that comes with gcc, so configuring glibc
14931   # with a fresh cross-compiler works.
14932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14933   # <limits.h> exists even on freestanding compilers.
14934   # On the NeXT, cc -E runs the code through the compiler's parser,
14935   # not just through cpp. "Syntax error" is here to catch this case.
14936   cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h.  */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h.  */
14942 #ifdef __STDC__
14943 # include <limits.h>
14944 #else
14945 # include <assert.h>
14946 #endif
14947                      Syntax error
14948 _ACEOF
14949 if { (ac_try="$ac_cpp conftest.$ac_ext"
14950 case "(($ac_try" in
14951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952   *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14956   ac_status=$?
14957   grep -v '^ *+' conftest.er1 >conftest.err
14958   rm -f conftest.er1
14959   cat conftest.err >&5
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); } >/dev/null; then
14962   if test -s conftest.err; then
14963     ac_cpp_err=$ac_c_preproc_warn_flag
14964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14965   else
14966     ac_cpp_err=
14967   fi
14968 else
14969   ac_cpp_err=yes
14970 fi
14971 if test -z "$ac_cpp_err"; then
14972   :
14973 else
14974   echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14976
14977   # Broken: fails on valid input.
14978 continue
14979 fi
14980
14981 rm -f conftest.err conftest.$ac_ext
14982
14983   # OK, works on sane cases.  Now check whether nonexistent headers
14984   # can be detected and how.
14985   cat >conftest.$ac_ext <<_ACEOF
14986 /* confdefs.h.  */
14987 _ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h.  */
14991 #include <ac_nonexistent.h>
14992 _ACEOF
14993 if { (ac_try="$ac_cpp conftest.$ac_ext"
14994 case "(($ac_try" in
14995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996   *) ac_try_echo=$ac_try;;
14997 esac
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15000   ac_status=$?
15001   grep -v '^ *+' conftest.er1 >conftest.err
15002   rm -f conftest.er1
15003   cat conftest.err >&5
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); } >/dev/null; then
15006   if test -s conftest.err; then
15007     ac_cpp_err=$ac_c_preproc_warn_flag
15008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15009   else
15010     ac_cpp_err=
15011   fi
15012 else
15013   ac_cpp_err=yes
15014 fi
15015 if test -z "$ac_cpp_err"; then
15016   # Broken: success on invalid input.
15017 continue
15018 else
15019   echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022   # Passes both tests.
15023 ac_preproc_ok=:
15024 break
15025 fi
15026
15027 rm -f conftest.err conftest.$ac_ext
15028
15029 done
15030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15031 rm -f conftest.err conftest.$ac_ext
15032 if $ac_preproc_ok; then
15033   :
15034 else
15035   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
15036 See \`config.log' for more details." >&5
15037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
15038 See \`config.log' for more details." >&2;}
15039    { (exit 1); exit 1; }; }
15040 fi
15041
15042 ac_ext=c
15043 ac_cpp='$CPP $CPPFLAGS'
15044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15047
15048
15049 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
15050 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
15051 if test "${ac_cv_path_GREP+set}" = set; then
15052   echo $ECHO_N "(cached) $ECHO_C" >&6
15053 else
15054   # Extract the first word of "grep ggrep" to use in msg output
15055 if test -z "$GREP"; then
15056 set dummy grep ggrep; ac_prog_name=$2
15057 if test "${ac_cv_path_GREP+set}" = set; then
15058   echo $ECHO_N "(cached) $ECHO_C" >&6
15059 else
15060   ac_path_GREP_found=false
15061 # Loop through the user's path and test for each of PROGNAME-LIST
15062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15064 do
15065   IFS=$as_save_IFS
15066   test -z "$as_dir" && as_dir=.
15067   for ac_prog in grep ggrep; do
15068   for ac_exec_ext in '' $ac_executable_extensions; do
15069     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
15070     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
15071     # Check for GNU ac_path_GREP and select it if it is found.
15072   # Check for GNU $ac_path_GREP
15073 case `"$ac_path_GREP" --version 2>&1` in
15074 *GNU*)
15075   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
15076 *)
15077   ac_count=0
15078   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
15079   while :
15080   do
15081     cat "conftest.in" "conftest.in" >"conftest.tmp"
15082     mv "conftest.tmp" "conftest.in"
15083     cp "conftest.in" "conftest.nl"
15084     echo 'GREP' >> "conftest.nl"
15085     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15086     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15087     ac_count=`expr $ac_count + 1`
15088     if test $ac_count -gt ${ac_path_GREP_max-0}; then
15089       # Best one so far, save it but keep looking for a better one
15090       ac_cv_path_GREP="$ac_path_GREP"
15091       ac_path_GREP_max=$ac_count
15092     fi
15093     # 10*(2^10) chars as input seems more than enough
15094     test $ac_count -gt 10 && break
15095   done
15096   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15097 esac
15098
15099
15100     $ac_path_GREP_found && break 3
15101   done
15102 done
15103
15104 done
15105 IFS=$as_save_IFS
15106
15107
15108 fi
15109
15110 GREP="$ac_cv_path_GREP"
15111 if test -z "$GREP"; then
15112   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
15113 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
15114    { (exit 1); exit 1; }; }
15115 fi
15116
15117 else
15118   ac_cv_path_GREP=$GREP
15119 fi
15120
15121
15122 fi
15123 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
15124 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
15125  GREP="$ac_cv_path_GREP"
15126
15127
15128 { echo "$as_me:$LINENO: checking for egrep" >&5
15129 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
15130 if test "${ac_cv_path_EGREP+set}" = set; then
15131   echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
15134    then ac_cv_path_EGREP="$GREP -E"
15135    else
15136      # Extract the first word of "egrep" to use in msg output
15137 if test -z "$EGREP"; then
15138 set dummy egrep; ac_prog_name=$2
15139 if test "${ac_cv_path_EGREP+set}" = set; then
15140   echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142   ac_path_EGREP_found=false
15143 # Loop through the user's path and test for each of PROGNAME-LIST
15144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15145 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15146 do
15147   IFS=$as_save_IFS
15148   test -z "$as_dir" && as_dir=.
15149   for ac_prog in egrep; do
15150   for ac_exec_ext in '' $ac_executable_extensions; do
15151     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
15152     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
15153     # Check for GNU ac_path_EGREP and select it if it is found.
15154   # Check for GNU $ac_path_EGREP
15155 case `"$ac_path_EGREP" --version 2>&1` in
15156 *GNU*)
15157   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
15158 *)
15159   ac_count=0
15160   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
15161   while :
15162   do
15163     cat "conftest.in" "conftest.in" >"conftest.tmp"
15164     mv "conftest.tmp" "conftest.in"
15165     cp "conftest.in" "conftest.nl"
15166     echo 'EGREP' >> "conftest.nl"
15167     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15168     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15169     ac_count=`expr $ac_count + 1`
15170     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
15171       # Best one so far, save it but keep looking for a better one
15172       ac_cv_path_EGREP="$ac_path_EGREP"
15173       ac_path_EGREP_max=$ac_count
15174     fi
15175     # 10*(2^10) chars as input seems more than enough
15176     test $ac_count -gt 10 && break
15177   done
15178   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15179 esac
15180
15181
15182     $ac_path_EGREP_found && break 3
15183   done
15184 done
15185
15186 done
15187 IFS=$as_save_IFS
15188
15189
15190 fi
15191
15192 EGREP="$ac_cv_path_EGREP"
15193 if test -z "$EGREP"; then
15194   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
15195 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
15196    { (exit 1); exit 1; }; }
15197 fi
15198
15199 else
15200   ac_cv_path_EGREP=$EGREP
15201 fi
15202
15203
15204    fi
15205 fi
15206 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
15207 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
15208  EGREP="$ac_cv_path_EGREP"
15209
15210
15211 if test $ac_cv_c_compiler_gnu = yes; then
15212     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
15213 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
15214 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
15215   echo $ECHO_N "(cached) $ECHO_C" >&6
15216 else
15217     ac_pattern="Autoconf.*'x'"
15218   cat >conftest.$ac_ext <<_ACEOF
15219 /* confdefs.h.  */
15220 _ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h.  */
15224 #include <sgtty.h>
15225 Autoconf TIOCGETP
15226 _ACEOF
15227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15228   $EGREP "$ac_pattern" >/dev/null 2>&1; then
15229   ac_cv_prog_gcc_traditional=yes
15230 else
15231   ac_cv_prog_gcc_traditional=no
15232 fi
15233 rm -f conftest*
15234
15235
15236   if test $ac_cv_prog_gcc_traditional = no; then
15237     cat >conftest.$ac_ext <<_ACEOF
15238 /* confdefs.h.  */
15239 _ACEOF
15240 cat confdefs.h >>conftest.$ac_ext
15241 cat >>conftest.$ac_ext <<_ACEOF
15242 /* end confdefs.h.  */
15243 #include <termio.h>
15244 Autoconf TCGETA
15245 _ACEOF
15246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15247   $EGREP "$ac_pattern" >/dev/null 2>&1; then
15248   ac_cv_prog_gcc_traditional=yes
15249 fi
15250 rm -f conftest*
15251
15252   fi
15253 fi
15254 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
15255 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
15256   if test $ac_cv_prog_gcc_traditional = yes; then
15257     CC="$CC -traditional"
15258   fi
15259 fi
15260
15261
15262 CXXFLAGS=${CXXFLAGS:=}
15263
15264
15265
15266     ac_ext=cpp
15267 ac_cpp='$CXXCPP $CPPFLAGS'
15268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15271 if test -z "$CXX"; then
15272   if test -n "$CCC"; then
15273     CXX=$CCC
15274   else
15275     if test -n "$ac_tool_prefix"; then
15276   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15277   do
15278     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15282 if test "${ac_cv_prog_CXX+set}" = set; then
15283   echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285   if test -n "$CXX"; then
15286   ac_cv_prog_CXX="$CXX" # Let the user override the test.
15287 else
15288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15289 for as_dir in $PATH
15290 do
15291   IFS=$as_save_IFS
15292   test -z "$as_dir" && as_dir=.
15293   for ac_exec_ext in '' $ac_executable_extensions; do
15294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15295     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15297     break 2
15298   fi
15299 done
15300 done
15301 IFS=$as_save_IFS
15302
15303 fi
15304 fi
15305 CXX=$ac_cv_prog_CXX
15306 if test -n "$CXX"; then
15307   { echo "$as_me:$LINENO: result: $CXX" >&5
15308 echo "${ECHO_T}$CXX" >&6; }
15309 else
15310   { echo "$as_me:$LINENO: result: no" >&5
15311 echo "${ECHO_T}no" >&6; }
15312 fi
15313
15314
15315     test -n "$CXX" && break
15316   done
15317 fi
15318 if test -z "$CXX"; then
15319   ac_ct_CXX=$CXX
15320   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15321 do
15322   # Extract the first word of "$ac_prog", so it can be a program name with args.
15323 set dummy $ac_prog; ac_word=$2
15324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15327   echo $ECHO_N "(cached) $ECHO_C" >&6
15328 else
15329   if test -n "$ac_ct_CXX"; then
15330   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15331 else
15332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15333 for as_dir in $PATH
15334 do
15335   IFS=$as_save_IFS
15336   test -z "$as_dir" && as_dir=.
15337   for ac_exec_ext in '' $ac_executable_extensions; do
15338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15339     ac_cv_prog_ac_ct_CXX="$ac_prog"
15340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15341     break 2
15342   fi
15343 done
15344 done
15345 IFS=$as_save_IFS
15346
15347 fi
15348 fi
15349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15350 if test -n "$ac_ct_CXX"; then
15351   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15352 echo "${ECHO_T}$ac_ct_CXX" >&6; }
15353 else
15354   { echo "$as_me:$LINENO: result: no" >&5
15355 echo "${ECHO_T}no" >&6; }
15356 fi
15357
15358
15359   test -n "$ac_ct_CXX" && break
15360 done
15361
15362   if test "x$ac_ct_CXX" = x; then
15363     CXX="g++"
15364   else
15365     case $cross_compiling:$ac_tool_warned in
15366 yes:)
15367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15368 whose name does not start with the host triplet.  If you think this
15369 configuration is useful to you, please write to autoconf@gnu.org." >&5
15370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15371 whose name does not start with the host triplet.  If you think this
15372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15373 ac_tool_warned=yes ;;
15374 esac
15375     CXX=$ac_ct_CXX
15376   fi
15377 fi
15378
15379   fi
15380 fi
15381 # Provide some information about the compiler.
15382 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
15383 ac_compiler=`set X $ac_compile; echo $2`
15384 { (ac_try="$ac_compiler --version >&5"
15385 case "(($ac_try" in
15386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387   *) ac_try_echo=$ac_try;;
15388 esac
15389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15390   (eval "$ac_compiler --version >&5") 2>&5
15391   ac_status=$?
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); }
15394 { (ac_try="$ac_compiler -v >&5"
15395 case "(($ac_try" in
15396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397   *) ac_try_echo=$ac_try;;
15398 esac
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400   (eval "$ac_compiler -v >&5") 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }
15404 { (ac_try="$ac_compiler -V >&5"
15405 case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_compiler -V >&5") 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }
15414
15415 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15416 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
15417 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426
15427 int
15428 main ()
15429 {
15430 #ifndef __GNUC__
15431        choke me
15432 #endif
15433
15434   ;
15435   return 0;
15436 }
15437 _ACEOF
15438 rm -f conftest.$ac_objext
15439 if { (ac_try="$ac_compile"
15440 case "(($ac_try" in
15441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442   *) ac_try_echo=$ac_try;;
15443 esac
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445   (eval "$ac_compile") 2>conftest.er1
15446   ac_status=$?
15447   grep -v '^ *+' conftest.er1 >conftest.err
15448   rm -f conftest.er1
15449   cat conftest.err >&5
15450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451   (exit $ac_status); } &&
15452          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15453   { (case "(($ac_try" in
15454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15455   *) ac_try_echo=$ac_try;;
15456 esac
15457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15458   (eval "$ac_try") 2>&5
15459   ac_status=$?
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); }; } &&
15462          { ac_try='test -s conftest.$ac_objext'
15463   { (case "(($ac_try" in
15464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465   *) ac_try_echo=$ac_try;;
15466 esac
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468   (eval "$ac_try") 2>&5
15469   ac_status=$?
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); }; }; then
15472   ac_compiler_gnu=yes
15473 else
15474   echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477         ac_compiler_gnu=no
15478 fi
15479
15480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15481 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15482
15483 fi
15484 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15485 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
15486 GXX=`test $ac_compiler_gnu = yes && echo yes`
15487 ac_test_CXXFLAGS=${CXXFLAGS+set}
15488 ac_save_CXXFLAGS=$CXXFLAGS
15489 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15490 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
15491 if test "${ac_cv_prog_cxx_g+set}" = set; then
15492   echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15495    ac_cxx_werror_flag=yes
15496    ac_cv_prog_cxx_g=no
15497    CXXFLAGS="-g"
15498    cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h.  */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h.  */
15504
15505 int
15506 main ()
15507 {
15508
15509   ;
15510   return 0;
15511 }
15512 _ACEOF
15513 rm -f conftest.$ac_objext
15514 if { (ac_try="$ac_compile"
15515 case "(($ac_try" in
15516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517   *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520   (eval "$ac_compile") 2>conftest.er1
15521   ac_status=$?
15522   grep -v '^ *+' conftest.er1 >conftest.err
15523   rm -f conftest.er1
15524   cat conftest.err >&5
15525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); } &&
15527          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15528   { (case "(($ac_try" in
15529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530   *) ac_try_echo=$ac_try;;
15531 esac
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533   (eval "$ac_try") 2>&5
15534   ac_status=$?
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); }; } &&
15537          { ac_try='test -s conftest.$ac_objext'
15538   { (case "(($ac_try" in
15539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540   *) ac_try_echo=$ac_try;;
15541 esac
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543   (eval "$ac_try") 2>&5
15544   ac_status=$?
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); }; }; then
15547   ac_cv_prog_cxx_g=yes
15548 else
15549   echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15551
15552         CXXFLAGS=""
15553       cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559
15560 int
15561 main ()
15562 {
15563
15564   ;
15565   return 0;
15566 }
15567 _ACEOF
15568 rm -f conftest.$ac_objext
15569 if { (ac_try="$ac_compile"
15570 case "(($ac_try" in
15571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572   *) ac_try_echo=$ac_try;;
15573 esac
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575   (eval "$ac_compile") 2>conftest.er1
15576   ac_status=$?
15577   grep -v '^ *+' conftest.er1 >conftest.err
15578   rm -f conftest.er1
15579   cat conftest.err >&5
15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581   (exit $ac_status); } &&
15582          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15583   { (case "(($ac_try" in
15584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585   *) ac_try_echo=$ac_try;;
15586 esac
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588   (eval "$ac_try") 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; } &&
15592          { ac_try='test -s conftest.$ac_objext'
15593   { (case "(($ac_try" in
15594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595   *) ac_try_echo=$ac_try;;
15596 esac
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598   (eval "$ac_try") 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; }; then
15602   :
15603 else
15604   echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15606
15607         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15608          CXXFLAGS="-g"
15609          cat >conftest.$ac_ext <<_ACEOF
15610 /* confdefs.h.  */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h.  */
15615
15616 int
15617 main ()
15618 {
15619
15620   ;
15621   return 0;
15622 }
15623 _ACEOF
15624 rm -f conftest.$ac_objext
15625 if { (ac_try="$ac_compile"
15626 case "(($ac_try" in
15627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628   *) ac_try_echo=$ac_try;;
15629 esac
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631   (eval "$ac_compile") 2>conftest.er1
15632   ac_status=$?
15633   grep -v '^ *+' conftest.er1 >conftest.err
15634   rm -f conftest.er1
15635   cat conftest.err >&5
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); } &&
15638          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15639   { (case "(($ac_try" in
15640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641   *) ac_try_echo=$ac_try;;
15642 esac
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644   (eval "$ac_try") 2>&5
15645   ac_status=$?
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); }; } &&
15648          { ac_try='test -s conftest.$ac_objext'
15649   { (case "(($ac_try" in
15650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651   *) ac_try_echo=$ac_try;;
15652 esac
15653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654   (eval "$ac_try") 2>&5
15655   ac_status=$?
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); }; }; then
15658   ac_cv_prog_cxx_g=yes
15659 else
15660   echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663
15664 fi
15665
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 fi
15668
15669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 fi
15671
15672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15673    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15674 fi
15675 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
15677 if test "$ac_test_CXXFLAGS" = set; then
15678   CXXFLAGS=$ac_save_CXXFLAGS
15679 elif test $ac_cv_prog_cxx_g = yes; then
15680   if test "$GXX" = yes; then
15681     CXXFLAGS="-g -O2"
15682   else
15683     CXXFLAGS="-g"
15684   fi
15685 else
15686   if test "$GXX" = yes; then
15687     CXXFLAGS="-O2"
15688   else
15689     CXXFLAGS=
15690   fi
15691 fi
15692 ac_ext=c
15693 ac_cpp='$CPP $CPPFLAGS'
15694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15697
15698
15699
15700     ac_ext=cpp
15701 ac_cpp='$CXXCPP $CPPFLAGS'
15702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15705
15706     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
15707 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
15708 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717
15718 int
15719 main ()
15720 {
15721
15722              #ifndef __INTEL_COMPILER
15723                 choke me
15724              #endif
15725
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext
15731 if { (ac_try="$ac_compile"
15732 case "(($ac_try" in
15733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734   *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737   (eval "$ac_compile") 2>conftest.er1
15738   ac_status=$?
15739   grep -v '^ *+' conftest.er1 >conftest.err
15740   rm -f conftest.er1
15741   cat conftest.err >&5
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); } &&
15744          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15745   { (case "(($ac_try" in
15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747   *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750   (eval "$ac_try") 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); }; } &&
15754          { ac_try='test -s conftest.$ac_objext'
15755   { (case "(($ac_try" in
15756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757   *) ac_try_echo=$ac_try;;
15758 esac
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760   (eval "$ac_try") 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); }; }; then
15764   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
15765 else
15766   echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
15770
15771 fi
15772
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774
15775
15776 fi
15777 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
15778 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
15779     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
15780         :; INTELCXX=yes
15781     else
15782         :;
15783     fi
15784     ac_ext=c
15785 ac_cpp='$CPP $CPPFLAGS'
15786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15789
15790
15791
15792         if test "x$GCXX" != "xyes"; then
15793         if test "xCXX" = "xC"; then
15794             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15795 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15796 if test "${bakefile_cv_c_exto+set}" = set; then
15797   echo $ECHO_N "(cached) $ECHO_C" >&6
15798 else
15799   cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h.  */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h.  */
15805
15806 int
15807 main ()
15808 {
15809
15810   ;
15811   return 0;
15812 }
15813 _ACEOF
15814 rm -f conftest.$ac_objext conftest.$ac_ext.o
15815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816   (eval $ac_compile) 2>&5
15817   ac_status=$?
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); }; then
15820   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15821     case $ac_file in
15822         conftest.$ac_ext.o)
15823             bakefile_cv_c_exto="-ext o"
15824             ;;
15825         *)
15826             ;;
15827     esac
15828 done
15829 else
15830   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15831 See \`config.log' for more details." >&5
15832 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15833 See \`config.log' for more details." >&2;}
15834    { (exit 1); exit 1; }; }
15835
15836 fi
15837
15838 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15839
15840 fi
15841 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15842 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15843 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15844     if test "c" = "c"; then
15845         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15846     fi
15847     if test "c" = "cxx"; then
15848         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15849     fi
15850 fi
15851
15852             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15853                 unset ac_cv_prog_cc_g
15854                 ac_test_CFLAGS=${CFLAGS+set}
15855 ac_save_CFLAGS=$CFLAGS
15856 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15857 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15858 if test "${ac_cv_prog_cc_g+set}" = set; then
15859   echo $ECHO_N "(cached) $ECHO_C" >&6
15860 else
15861   ac_save_c_werror_flag=$ac_c_werror_flag
15862    ac_c_werror_flag=yes
15863    ac_cv_prog_cc_g=no
15864    CFLAGS="-g"
15865    cat >conftest.$ac_ext <<_ACEOF
15866 /* confdefs.h.  */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h.  */
15871
15872 int
15873 main ()
15874 {
15875
15876   ;
15877   return 0;
15878 }
15879 _ACEOF
15880 rm -f conftest.$ac_objext
15881 if { (ac_try="$ac_compile"
15882 case "(($ac_try" in
15883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884   *) ac_try_echo=$ac_try;;
15885 esac
15886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887   (eval "$ac_compile") 2>conftest.er1
15888   ac_status=$?
15889   grep -v '^ *+' conftest.er1 >conftest.err
15890   rm -f conftest.er1
15891   cat conftest.err >&5
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } &&
15894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15895   { (case "(($ac_try" in
15896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897   *) ac_try_echo=$ac_try;;
15898 esac
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900   (eval "$ac_try") 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); }; } &&
15904          { ac_try='test -s conftest.$ac_objext'
15905   { (case "(($ac_try" in
15906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907   *) ac_try_echo=$ac_try;;
15908 esac
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910   (eval "$ac_try") 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); }; }; then
15914   ac_cv_prog_cc_g=yes
15915 else
15916   echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15918
15919         CFLAGS=""
15920       cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h.  */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h.  */
15926
15927 int
15928 main ()
15929 {
15930
15931   ;
15932   return 0;
15933 }
15934 _ACEOF
15935 rm -f conftest.$ac_objext
15936 if { (ac_try="$ac_compile"
15937 case "(($ac_try" in
15938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939   *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942   (eval "$ac_compile") 2>conftest.er1
15943   ac_status=$?
15944   grep -v '^ *+' conftest.er1 >conftest.err
15945   rm -f conftest.er1
15946   cat conftest.err >&5
15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); } &&
15949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950   { (case "(($ac_try" in
15951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952   *) ac_try_echo=$ac_try;;
15953 esac
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955   (eval "$ac_try") 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); }; } &&
15959          { ac_try='test -s conftest.$ac_objext'
15960   { (case "(($ac_try" in
15961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962   *) ac_try_echo=$ac_try;;
15963 esac
15964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965   (eval "$ac_try") 2>&5
15966   ac_status=$?
15967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968   (exit $ac_status); }; }; then
15969   :
15970 else
15971   echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974         ac_c_werror_flag=$ac_save_c_werror_flag
15975          CFLAGS="-g"
15976          cat >conftest.$ac_ext <<_ACEOF
15977 /* confdefs.h.  */
15978 _ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h.  */
15982
15983 int
15984 main ()
15985 {
15986
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext
15992 if { (ac_try="$ac_compile"
15993 case "(($ac_try" in
15994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995   *) ac_try_echo=$ac_try;;
15996 esac
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998   (eval "$ac_compile") 2>conftest.er1
15999   ac_status=$?
16000   grep -v '^ *+' conftest.er1 >conftest.err
16001   rm -f conftest.er1
16002   cat conftest.err >&5
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); } &&
16005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16006   { (case "(($ac_try" in
16007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008   *) ac_try_echo=$ac_try;;
16009 esac
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011   (eval "$ac_try") 2>&5
16012   ac_status=$?
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); }; } &&
16015          { ac_try='test -s conftest.$ac_objext'
16016   { (case "(($ac_try" in
16017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018   *) ac_try_echo=$ac_try;;
16019 esac
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021   (eval "$ac_try") 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; }; then
16025   ac_cv_prog_cc_g=yes
16026 else
16027   echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16029
16030
16031 fi
16032
16033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034 fi
16035
16036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16037 fi
16038
16039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16040    ac_c_werror_flag=$ac_save_c_werror_flag
16041 fi
16042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16043 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16044 if test "$ac_test_CFLAGS" = set; then
16045   CFLAGS=$ac_save_CFLAGS
16046 elif test $ac_cv_prog_cc_g = yes; then
16047   if test "$GCC" = yes; then
16048     CFLAGS="-g -O2"
16049   else
16050     CFLAGS="-g"
16051   fi
16052 else
16053   if test "$GCC" = yes; then
16054     CFLAGS="-O2"
16055   else
16056     CFLAGS=
16057   fi
16058 fi
16059             fi
16060         fi
16061
16062                         case `uname -s` in
16063             AIX*)
16064                 ac_ext=cpp
16065 ac_cpp='$CXXCPP $CPPFLAGS'
16066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16069
16070 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
16071 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
16072 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
16073   echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075   cat >conftest.$ac_ext <<_ACEOF
16076 /* confdefs.h.  */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h.  */
16081
16082 int
16083 main ()
16084 {
16085 #ifndef __xlC__
16086        choke me
16087 #endif
16088
16089   ;
16090   return 0;
16091 }
16092 _ACEOF
16093 rm -f conftest.$ac_objext
16094 if { (ac_try="$ac_compile"
16095 case "(($ac_try" in
16096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097   *) ac_try_echo=$ac_try;;
16098 esac
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100   (eval "$ac_compile") 2>conftest.er1
16101   ac_status=$?
16102   grep -v '^ *+' conftest.er1 >conftest.err
16103   rm -f conftest.er1
16104   cat conftest.err >&5
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); } &&
16107          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16108   { (case "(($ac_try" in
16109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110   *) ac_try_echo=$ac_try;;
16111 esac
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113   (eval "$ac_try") 2>&5
16114   ac_status=$?
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); }; } &&
16117          { ac_try='test -s conftest.$ac_objext'
16118   { (case "(($ac_try" in
16119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120   *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123   (eval "$ac_try") 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; }; then
16127   bakefile_compiler_xlc=yes
16128 else
16129   echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132         bakefile_compiler_xlc=no
16133 fi
16134
16135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
16137
16138 fi
16139 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
16140 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6; }
16141
16142 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
16143 ac_ext=c
16144 ac_cpp='$CPP $CPPFLAGS'
16145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16148
16149
16150                 ;;
16151
16152             Darwin)
16153                 ac_ext=cpp
16154 ac_cpp='$CXXCPP $CPPFLAGS'
16155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16158
16159 { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
16160 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
16161 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
16162   echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164   cat >conftest.$ac_ext <<_ACEOF
16165 /* confdefs.h.  */
16166 _ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h.  */
16170
16171 int
16172 main ()
16173 {
16174 #ifndef __MWERKS__
16175        choke me
16176 #endif
16177
16178   ;
16179   return 0;
16180 }
16181 _ACEOF
16182 rm -f conftest.$ac_objext
16183 if { (ac_try="$ac_compile"
16184 case "(($ac_try" in
16185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186   *) ac_try_echo=$ac_try;;
16187 esac
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189   (eval "$ac_compile") 2>conftest.er1
16190   ac_status=$?
16191   grep -v '^ *+' conftest.er1 >conftest.err
16192   rm -f conftest.er1
16193   cat conftest.err >&5
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); } &&
16196          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16197   { (case "(($ac_try" in
16198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199   *) ac_try_echo=$ac_try;;
16200 esac
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202   (eval "$ac_try") 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; } &&
16206          { ac_try='test -s conftest.$ac_objext'
16207   { (case "(($ac_try" in
16208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209   *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212   (eval "$ac_try") 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); }; }; then
16216   bakefile_compiler_mwerks=yes
16217 else
16218   echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16220
16221         bakefile_compiler_mwerks=no
16222 fi
16223
16224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
16226
16227 fi
16228 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
16229 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6; }
16230
16231 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
16232 ac_ext=c
16233 ac_cpp='$CPP $CPPFLAGS'
16234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16237
16238
16239                 ac_ext=cpp
16240 ac_cpp='$CXXCPP $CPPFLAGS'
16241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16244
16245 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
16246 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
16247 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
16248   echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250   cat >conftest.$ac_ext <<_ACEOF
16251 /* confdefs.h.  */
16252 _ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h.  */
16256
16257 int
16258 main ()
16259 {
16260 #ifndef __xlC__
16261        choke me
16262 #endif
16263
16264   ;
16265   return 0;
16266 }
16267 _ACEOF
16268 rm -f conftest.$ac_objext
16269 if { (ac_try="$ac_compile"
16270 case "(($ac_try" in
16271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272   *) ac_try_echo=$ac_try;;
16273 esac
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275   (eval "$ac_compile") 2>conftest.er1
16276   ac_status=$?
16277   grep -v '^ *+' conftest.er1 >conftest.err
16278   rm -f conftest.er1
16279   cat conftest.err >&5
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); } &&
16282          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16283   { (case "(($ac_try" in
16284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285   *) ac_try_echo=$ac_try;;
16286 esac
16287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288   (eval "$ac_try") 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); }; } &&
16292          { ac_try='test -s conftest.$ac_objext'
16293   { (case "(($ac_try" in
16294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295   *) ac_try_echo=$ac_try;;
16296 esac
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298   (eval "$ac_try") 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; }; then
16302   bakefile_compiler_xlc=yes
16303 else
16304   echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16306
16307         bakefile_compiler_xlc=no
16308 fi
16309
16310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
16312
16313 fi
16314 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
16315 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6; }
16316
16317 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
16318 ac_ext=c
16319 ac_cpp='$CPP $CPPFLAGS'
16320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16323
16324
16325                 ;;
16326
16327             IRIX*)
16328
16329
16330     ac_ext=cpp
16331 ac_cpp='$CXXCPP $CPPFLAGS'
16332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16335
16336     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
16337 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
16338 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
16339   echo $ECHO_N "(cached) $ECHO_C" >&6
16340 else
16341   cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347
16348 int
16349 main ()
16350 {
16351
16352              #ifndef _SGI_COMPILER_VERSION
16353                 choke me
16354              #endif
16355
16356   ;
16357   return 0;
16358 }
16359 _ACEOF
16360 rm -f conftest.$ac_objext
16361 if { (ac_try="$ac_compile"
16362 case "(($ac_try" in
16363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364   *) ac_try_echo=$ac_try;;
16365 esac
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367   (eval "$ac_compile") 2>conftest.er1
16368   ac_status=$?
16369   grep -v '^ *+' conftest.er1 >conftest.err
16370   rm -f conftest.er1
16371   cat conftest.err >&5
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); } &&
16374          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16375   { (case "(($ac_try" in
16376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377   *) ac_try_echo=$ac_try;;
16378 esac
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380   (eval "$ac_try") 2>&5
16381   ac_status=$?
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); }; } &&
16384          { ac_try='test -s conftest.$ac_objext'
16385   { (case "(($ac_try" in
16386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387   *) ac_try_echo=$ac_try;;
16388 esac
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390   (eval "$ac_try") 2>&5
16391   ac_status=$?
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); }; }; then
16394   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
16395 else
16396   echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16398
16399         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
16400
16401 fi
16402
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404
16405
16406 fi
16407 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
16408 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
16409     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16410         :; SGICXX=yes
16411     else
16412         :;
16413     fi
16414     ac_ext=c
16415 ac_cpp='$CPP $CPPFLAGS'
16416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16419
16420
16421
16422                 ;;
16423
16424             HP-UX*)
16425
16426
16427     ac_ext=cpp
16428 ac_cpp='$CXXCPP $CPPFLAGS'
16429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16432
16433     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
16434 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
16435 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
16436   echo $ECHO_N "(cached) $ECHO_C" >&6
16437 else
16438   cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h.  */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h.  */
16444
16445 int
16446 main ()
16447 {
16448
16449              #ifndef __HP_aCC
16450                 choke me
16451              #endif
16452
16453   ;
16454   return 0;
16455 }
16456 _ACEOF
16457 rm -f conftest.$ac_objext
16458 if { (ac_try="$ac_compile"
16459 case "(($ac_try" in
16460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461   *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464   (eval "$ac_compile") 2>conftest.er1
16465   ac_status=$?
16466   grep -v '^ *+' conftest.er1 >conftest.err
16467   rm -f conftest.er1
16468   cat conftest.err >&5
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); } &&
16471          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16472   { (case "(($ac_try" in
16473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474   *) ac_try_echo=$ac_try;;
16475 esac
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477   (eval "$ac_try") 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); }; } &&
16481          { ac_try='test -s conftest.$ac_objext'
16482   { (case "(($ac_try" in
16483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484   *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487   (eval "$ac_try") 2>&5
16488   ac_status=$?
16489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490   (exit $ac_status); }; }; then
16491   bakefile_cv_cxx_compiler___HP_aCC=yes
16492 else
16493   echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16495
16496         bakefile_cv_cxx_compiler___HP_aCC=no
16497
16498 fi
16499
16500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16501
16502
16503 fi
16504 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
16505 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
16506     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
16507         :; HPCXX=yes
16508     else
16509         :;
16510     fi
16511     ac_ext=c
16512 ac_cpp='$CPP $CPPFLAGS'
16513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16516
16517
16518
16519                 ;;
16520
16521             OSF1)
16522
16523
16524     ac_ext=cpp
16525 ac_cpp='$CXXCPP $CPPFLAGS'
16526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16529
16530     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
16531 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
16532 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
16533   echo $ECHO_N "(cached) $ECHO_C" >&6
16534 else
16535   cat >conftest.$ac_ext <<_ACEOF
16536 /* confdefs.h.  */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h.  */
16541
16542 int
16543 main ()
16544 {
16545
16546              #ifndef __DECCXX
16547                 choke me
16548              #endif
16549
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 rm -f conftest.$ac_objext
16555 if { (ac_try="$ac_compile"
16556 case "(($ac_try" in
16557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558   *) ac_try_echo=$ac_try;;
16559 esac
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561   (eval "$ac_compile") 2>conftest.er1
16562   ac_status=$?
16563   grep -v '^ *+' conftest.er1 >conftest.err
16564   rm -f conftest.er1
16565   cat conftest.err >&5
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } &&
16568          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16569   { (case "(($ac_try" in
16570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571   *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574   (eval "$ac_try") 2>&5
16575   ac_status=$?
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); }; } &&
16578          { ac_try='test -s conftest.$ac_objext'
16579   { (case "(($ac_try" in
16580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581   *) ac_try_echo=$ac_try;;
16582 esac
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584   (eval "$ac_try") 2>&5
16585   ac_status=$?
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); }; }; then
16588   bakefile_cv_cxx_compiler___DECCXX=yes
16589 else
16590   echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16592
16593         bakefile_cv_cxx_compiler___DECCXX=no
16594
16595 fi
16596
16597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598
16599
16600 fi
16601 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
16602 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
16603     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
16604         :; COMPAQCXX=yes
16605     else
16606         :;
16607     fi
16608     ac_ext=c
16609 ac_cpp='$CPP $CPPFLAGS'
16610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16613
16614
16615
16616                 ;;
16617
16618             SunOS)
16619
16620
16621     ac_ext=cpp
16622 ac_cpp='$CXXCPP $CPPFLAGS'
16623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16626
16627     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
16628 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
16629 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
16630   echo $ECHO_N "(cached) $ECHO_C" >&6
16631 else
16632   cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638
16639 int
16640 main ()
16641 {
16642
16643              #ifndef __SUNPRO_CC
16644                 choke me
16645              #endif
16646
16647   ;
16648   return 0;
16649 }
16650 _ACEOF
16651 rm -f conftest.$ac_objext
16652 if { (ac_try="$ac_compile"
16653 case "(($ac_try" in
16654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655   *) ac_try_echo=$ac_try;;
16656 esac
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658   (eval "$ac_compile") 2>conftest.er1
16659   ac_status=$?
16660   grep -v '^ *+' conftest.er1 >conftest.err
16661   rm -f conftest.er1
16662   cat conftest.err >&5
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } &&
16665          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16666   { (case "(($ac_try" in
16667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668   *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671   (eval "$ac_try") 2>&5
16672   ac_status=$?
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); }; } &&
16675          { ac_try='test -s conftest.$ac_objext'
16676   { (case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_try") 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; }; then
16685   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
16686 else
16687   echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16689
16690         bakefile_cv_cxx_compiler___SUNPRO_CC=no
16691
16692 fi
16693
16694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16695
16696
16697 fi
16698 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
16699 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
16700     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
16701         :; SUNCXX=yes
16702     else
16703         :;
16704     fi
16705     ac_ext=c
16706 ac_cpp='$CPP $CPPFLAGS'
16707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16710
16711
16712
16713                 ;;
16714         esac
16715     fi
16716
16717
16718
16719 if test -n "$ac_tool_prefix"; then
16720   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16724 if test "${ac_cv_prog_RANLIB+set}" = set; then
16725   echo $ECHO_N "(cached) $ECHO_C" >&6
16726 else
16727   if test -n "$RANLIB"; then
16728   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16729 else
16730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16731 for as_dir in $PATH
16732 do
16733   IFS=$as_save_IFS
16734   test -z "$as_dir" && as_dir=.
16735   for ac_exec_ext in '' $ac_executable_extensions; do
16736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16737     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16739     break 2
16740   fi
16741 done
16742 done
16743 IFS=$as_save_IFS
16744
16745 fi
16746 fi
16747 RANLIB=$ac_cv_prog_RANLIB
16748 if test -n "$RANLIB"; then
16749   { echo "$as_me:$LINENO: result: $RANLIB" >&5
16750 echo "${ECHO_T}$RANLIB" >&6; }
16751 else
16752   { echo "$as_me:$LINENO: result: no" >&5
16753 echo "${ECHO_T}no" >&6; }
16754 fi
16755
16756
16757 fi
16758 if test -z "$ac_cv_prog_RANLIB"; then
16759   ac_ct_RANLIB=$RANLIB
16760   # Extract the first word of "ranlib", so it can be a program name with args.
16761 set dummy ranlib; ac_word=$2
16762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16764 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16765   echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767   if test -n "$ac_ct_RANLIB"; then
16768   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16769 else
16770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16771 for as_dir in $PATH
16772 do
16773   IFS=$as_save_IFS
16774   test -z "$as_dir" && as_dir=.
16775   for ac_exec_ext in '' $ac_executable_extensions; do
16776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16777     ac_cv_prog_ac_ct_RANLIB="ranlib"
16778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16779     break 2
16780   fi
16781 done
16782 done
16783 IFS=$as_save_IFS
16784
16785 fi
16786 fi
16787 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16788 if test -n "$ac_ct_RANLIB"; then
16789   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16790 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
16791 else
16792   { echo "$as_me:$LINENO: result: no" >&5
16793 echo "${ECHO_T}no" >&6; }
16794 fi
16795
16796   if test "x$ac_ct_RANLIB" = x; then
16797     RANLIB=":"
16798   else
16799     case $cross_compiling:$ac_tool_warned in
16800 yes:)
16801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16802 whose name does not start with the host triplet.  If you think this
16803 configuration is useful to you, please write to autoconf@gnu.org." >&5
16804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16805 whose name does not start with the host triplet.  If you think this
16806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16807 ac_tool_warned=yes ;;
16808 esac
16809     RANLIB=$ac_ct_RANLIB
16810   fi
16811 else
16812   RANLIB="$ac_cv_prog_RANLIB"
16813 fi
16814
16815
16816 if test "x$SUNCXX" != xyes; then
16817     if test -n "$ac_tool_prefix"; then
16818   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16819 set dummy ${ac_tool_prefix}ar; ac_word=$2
16820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16822 if test "${ac_cv_prog_AR+set}" = set; then
16823   echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825   if test -n "$AR"; then
16826   ac_cv_prog_AR="$AR" # Let the user override the test.
16827 else
16828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16829 for as_dir in $PATH
16830 do
16831   IFS=$as_save_IFS
16832   test -z "$as_dir" && as_dir=.
16833   for ac_exec_ext in '' $ac_executable_extensions; do
16834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16835     ac_cv_prog_AR="${ac_tool_prefix}ar"
16836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16837     break 2
16838   fi
16839 done
16840 done
16841 IFS=$as_save_IFS
16842
16843 fi
16844 fi
16845 AR=$ac_cv_prog_AR
16846 if test -n "$AR"; then
16847   { echo "$as_me:$LINENO: result: $AR" >&5
16848 echo "${ECHO_T}$AR" >&6; }
16849 else
16850   { echo "$as_me:$LINENO: result: no" >&5
16851 echo "${ECHO_T}no" >&6; }
16852 fi
16853
16854
16855 fi
16856 if test -z "$ac_cv_prog_AR"; then
16857   ac_ct_AR=$AR
16858   # Extract the first word of "ar", so it can be a program name with args.
16859 set dummy ar; ac_word=$2
16860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16862 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16863   echo $ECHO_N "(cached) $ECHO_C" >&6
16864 else
16865   if test -n "$ac_ct_AR"; then
16866   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16867 else
16868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16869 for as_dir in $PATH
16870 do
16871   IFS=$as_save_IFS
16872   test -z "$as_dir" && as_dir=.
16873   for ac_exec_ext in '' $ac_executable_extensions; do
16874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16875     ac_cv_prog_ac_ct_AR="ar"
16876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16877     break 2
16878   fi
16879 done
16880 done
16881 IFS=$as_save_IFS
16882
16883 fi
16884 fi
16885 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16886 if test -n "$ac_ct_AR"; then
16887   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16888 echo "${ECHO_T}$ac_ct_AR" >&6; }
16889 else
16890   { echo "$as_me:$LINENO: result: no" >&5
16891 echo "${ECHO_T}no" >&6; }
16892 fi
16893
16894   if test "x$ac_ct_AR" = x; then
16895     AR=""
16896   else
16897     case $cross_compiling:$ac_tool_warned in
16898 yes:)
16899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16900 whose name does not start with the host triplet.  If you think this
16901 configuration is useful to you, please write to autoconf@gnu.org." >&5
16902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16903 whose name does not start with the host triplet.  If you think this
16904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16905 ac_tool_warned=yes ;;
16906 esac
16907     AR=$ac_ct_AR
16908   fi
16909 else
16910   AR="$ac_cv_prog_AR"
16911 fi
16912
16913     if test "x$AR" = "x" ; then
16914         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
16915 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
16916    { (exit 1); exit 1; }; }
16917     fi
16918 fi
16919
16920 # Find a good install program.  We prefer a C program (faster),
16921 # so one script is as good as another.  But avoid the broken or
16922 # incompatible versions:
16923 # SysV /etc/install, /usr/sbin/install
16924 # SunOS /usr/etc/install
16925 # IRIX /sbin/install
16926 # AIX /bin/install
16927 # AmigaOS /C/install, which installs bootblocks on floppy discs
16928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16931 # OS/2's system install, which has a completely different semantic
16932 # ./install, which can be erroneously created by make from ./install.sh.
16933 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16934 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
16935 if test -z "$INSTALL"; then
16936 if test "${ac_cv_path_install+set}" = set; then
16937   echo $ECHO_N "(cached) $ECHO_C" >&6
16938 else
16939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16940 for as_dir in $PATH
16941 do
16942   IFS=$as_save_IFS
16943   test -z "$as_dir" && as_dir=.
16944   # Account for people who put trailing slashes in PATH elements.
16945 case $as_dir/ in
16946   ./ | .// | /cC/* | \
16947   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16948   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16949   /usr/ucb/* ) ;;
16950   *)
16951     # OSF1 and SCO ODT 3.0 have their own names for install.
16952     # Don't use installbsd from OSF since it installs stuff as root
16953     # by default.
16954     for ac_prog in ginstall scoinst install; do
16955       for ac_exec_ext in '' $ac_executable_extensions; do
16956         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
16957           if test $ac_prog = install &&
16958             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16959             # AIX install.  It has an incompatible calling convention.
16960             :
16961           elif test $ac_prog = install &&
16962             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16963             # program-specific install script used by HP pwplus--don't use.
16964             :
16965           else
16966             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16967             break 3
16968           fi
16969         fi
16970       done
16971     done
16972     ;;
16973 esac
16974 done
16975 IFS=$as_save_IFS
16976
16977
16978 fi
16979   if test "${ac_cv_path_install+set}" = set; then
16980     INSTALL=$ac_cv_path_install
16981   else
16982     # As a last resort, use the slow shell script.  Don't cache a
16983     # value for INSTALL within a source directory, because that will
16984     # break other packages using the cache if that directory is
16985     # removed, or if the value is a relative name.
16986     INSTALL=$ac_install_sh
16987   fi
16988 fi
16989 { echo "$as_me:$LINENO: result: $INSTALL" >&5
16990 echo "${ECHO_T}$INSTALL" >&6; }
16991
16992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16993 # It thinks the first close brace ends the variable substitution.
16994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16995
16996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16997
16998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16999
17000
17001 case ${INSTALL} in
17002   /* ) # Absolute
17003      ;;
17004   ?:* ) # Drive letter, considered as absolute.
17005      ;;
17006   *)
17007      INSTALL=`pwd`/${INSTALL} ;;
17008 esac
17009
17010
17011 case "${host}" in
17012
17013                 *-*-darwin* )
17014         INSTALL_PROGRAM="cp -fp"
17015         INSTALL_DATA="cp -fp"
17016         ;;
17017     *)
17018         ;;
17019 esac
17020
17021 if test -n "$ac_tool_prefix"; then
17022   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17023 set dummy ${ac_tool_prefix}strip; ac_word=$2
17024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17026 if test "${ac_cv_prog_STRIP+set}" = set; then
17027   echo $ECHO_N "(cached) $ECHO_C" >&6
17028 else
17029   if test -n "$STRIP"; then
17030   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
17031 else
17032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17033 for as_dir in $PATH
17034 do
17035   IFS=$as_save_IFS
17036   test -z "$as_dir" && as_dir=.
17037   for ac_exec_ext in '' $ac_executable_extensions; do
17038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17039     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
17040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17041     break 2
17042   fi
17043 done
17044 done
17045 IFS=$as_save_IFS
17046
17047 fi
17048 fi
17049 STRIP=$ac_cv_prog_STRIP
17050 if test -n "$STRIP"; then
17051   { echo "$as_me:$LINENO: result: $STRIP" >&5
17052 echo "${ECHO_T}$STRIP" >&6; }
17053 else
17054   { echo "$as_me:$LINENO: result: no" >&5
17055 echo "${ECHO_T}no" >&6; }
17056 fi
17057
17058
17059 fi
17060 if test -z "$ac_cv_prog_STRIP"; then
17061   ac_ct_STRIP=$STRIP
17062   # Extract the first word of "strip", so it can be a program name with args.
17063 set dummy strip; ac_word=$2
17064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17066 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
17067   echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069   if test -n "$ac_ct_STRIP"; then
17070   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
17071 else
17072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17073 for as_dir in $PATH
17074 do
17075   IFS=$as_save_IFS
17076   test -z "$as_dir" && as_dir=.
17077   for ac_exec_ext in '' $ac_executable_extensions; do
17078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17079     ac_cv_prog_ac_ct_STRIP="strip"
17080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17081     break 2
17082   fi
17083 done
17084 done
17085 IFS=$as_save_IFS
17086
17087 fi
17088 fi
17089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17090 if test -n "$ac_ct_STRIP"; then
17091   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
17092 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
17093 else
17094   { echo "$as_me:$LINENO: result: no" >&5
17095 echo "${ECHO_T}no" >&6; }
17096 fi
17097
17098   if test "x$ac_ct_STRIP" = x; then
17099     STRIP="true"
17100   else
17101     case $cross_compiling:$ac_tool_warned in
17102 yes:)
17103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17104 whose name does not start with the host triplet.  If you think this
17105 configuration is useful to you, please write to autoconf@gnu.org." >&5
17106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17107 whose name does not start with the host triplet.  If you think this
17108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17109 ac_tool_warned=yes ;;
17110 esac
17111     STRIP=$ac_ct_STRIP
17112   fi
17113 else
17114   STRIP="$ac_cv_prog_STRIP"
17115 fi
17116
17117
17118 if test "$wxUSE_WINE" = "yes"; then
17119     if test -n "$ac_tool_prefix"; then
17120   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
17121 set dummy ${ac_tool_prefix}wrc; ac_word=$2
17122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17124 if test "${ac_cv_prog_WINDRES+set}" = set; then
17125   echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127   if test -n "$WINDRES"; then
17128   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17129 else
17130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17131 for as_dir in $PATH
17132 do
17133   IFS=$as_save_IFS
17134   test -z "$as_dir" && as_dir=.
17135   for ac_exec_ext in '' $ac_executable_extensions; do
17136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17137     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
17138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17139     break 2
17140   fi
17141 done
17142 done
17143 IFS=$as_save_IFS
17144
17145 fi
17146 fi
17147 WINDRES=$ac_cv_prog_WINDRES
17148 if test -n "$WINDRES"; then
17149   { echo "$as_me:$LINENO: result: $WINDRES" >&5
17150 echo "${ECHO_T}$WINDRES" >&6; }
17151 else
17152   { echo "$as_me:$LINENO: result: no" >&5
17153 echo "${ECHO_T}no" >&6; }
17154 fi
17155
17156
17157 fi
17158 if test -z "$ac_cv_prog_WINDRES"; then
17159   ac_ct_WINDRES=$WINDRES
17160   # Extract the first word of "wrc", so it can be a program name with args.
17161 set dummy wrc; ac_word=$2
17162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17164 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
17165   echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167   if test -n "$ac_ct_WINDRES"; then
17168   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17169 else
17170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171 for as_dir in $PATH
17172 do
17173   IFS=$as_save_IFS
17174   test -z "$as_dir" && as_dir=.
17175   for ac_exec_ext in '' $ac_executable_extensions; do
17176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17177     ac_cv_prog_ac_ct_WINDRES="wrc"
17178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17179     break 2
17180   fi
17181 done
17182 done
17183 IFS=$as_save_IFS
17184
17185 fi
17186 fi
17187 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17188 if test -n "$ac_ct_WINDRES"; then
17189   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
17190 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
17191 else
17192   { echo "$as_me:$LINENO: result: no" >&5
17193 echo "${ECHO_T}no" >&6; }
17194 fi
17195
17196   if test "x$ac_ct_WINDRES" = x; then
17197     WINDRES=""
17198   else
17199     case $cross_compiling:$ac_tool_warned in
17200 yes:)
17201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17202 whose name does not start with the host triplet.  If you think this
17203 configuration is useful to you, please write to autoconf@gnu.org." >&5
17204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17205 whose name does not start with the host triplet.  If you think this
17206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17207 ac_tool_warned=yes ;;
17208 esac
17209     WINDRES=$ac_ct_WINDRES
17210   fi
17211 else
17212   WINDRES="$ac_cv_prog_WINDRES"
17213 fi
17214
17215     RESCOMP="$WINDRES"
17216 else
17217     case "${host}" in
17218     *-*-cygwin* | *-*-mingw32* )
17219                                 if test -n "$ac_tool_prefix"; then
17220   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17221 set dummy ${ac_tool_prefix}windres; ac_word=$2
17222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17224 if test "${ac_cv_prog_WINDRES+set}" = set; then
17225   echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227   if test -n "$WINDRES"; then
17228   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17229 else
17230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17231 for as_dir in $PATH
17232 do
17233   IFS=$as_save_IFS
17234   test -z "$as_dir" && as_dir=.
17235   for ac_exec_ext in '' $ac_executable_extensions; do
17236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17237     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17239     break 2
17240   fi
17241 done
17242 done
17243 IFS=$as_save_IFS
17244
17245 fi
17246 fi
17247 WINDRES=$ac_cv_prog_WINDRES
17248 if test -n "$WINDRES"; then
17249   { echo "$as_me:$LINENO: result: $WINDRES" >&5
17250 echo "${ECHO_T}$WINDRES" >&6; }
17251 else
17252   { echo "$as_me:$LINENO: result: no" >&5
17253 echo "${ECHO_T}no" >&6; }
17254 fi
17255
17256
17257 fi
17258 if test -z "$ac_cv_prog_WINDRES"; then
17259   ac_ct_WINDRES=$WINDRES
17260   # Extract the first word of "windres", so it can be a program name with args.
17261 set dummy windres; ac_word=$2
17262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17264 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
17265   echo $ECHO_N "(cached) $ECHO_C" >&6
17266 else
17267   if test -n "$ac_ct_WINDRES"; then
17268   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17269 else
17270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17271 for as_dir in $PATH
17272 do
17273   IFS=$as_save_IFS
17274   test -z "$as_dir" && as_dir=.
17275   for ac_exec_ext in '' $ac_executable_extensions; do
17276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17277     ac_cv_prog_ac_ct_WINDRES="windres"
17278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17279     break 2
17280   fi
17281 done
17282 done
17283 IFS=$as_save_IFS
17284
17285 fi
17286 fi
17287 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17288 if test -n "$ac_ct_WINDRES"; then
17289   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
17290 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
17291 else
17292   { echo "$as_me:$LINENO: result: no" >&5
17293 echo "${ECHO_T}no" >&6; }
17294 fi
17295
17296   if test "x$ac_ct_WINDRES" = x; then
17297     WINDRES=""
17298   else
17299     case $cross_compiling:$ac_tool_warned in
17300 yes:)
17301 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17302 whose name does not start with the host triplet.  If you think this
17303 configuration is useful to you, please write to autoconf@gnu.org." >&5
17304 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17305 whose name does not start with the host triplet.  If you think this
17306 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17307 ac_tool_warned=yes ;;
17308 esac
17309     WINDRES=$ac_ct_WINDRES
17310   fi
17311 else
17312   WINDRES="$ac_cv_prog_WINDRES"
17313 fi
17314
17315         RESCOMP="$WINDRES"
17316         if test -n "$ac_tool_prefix"; then
17317   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17318 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17321 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17322   echo $ECHO_N "(cached) $ECHO_C" >&6
17323 else
17324   if test -n "$DLLTOOL"; then
17325   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17326 else
17327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17328 for as_dir in $PATH
17329 do
17330   IFS=$as_save_IFS
17331   test -z "$as_dir" && as_dir=.
17332   for ac_exec_ext in '' $ac_executable_extensions; do
17333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17334     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17336     break 2
17337   fi
17338 done
17339 done
17340 IFS=$as_save_IFS
17341
17342 fi
17343 fi
17344 DLLTOOL=$ac_cv_prog_DLLTOOL
17345 if test -n "$DLLTOOL"; then
17346   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17347 echo "${ECHO_T}$DLLTOOL" >&6; }
17348 else
17349   { echo "$as_me:$LINENO: result: no" >&5
17350 echo "${ECHO_T}no" >&6; }
17351 fi
17352
17353
17354 fi
17355 if test -z "$ac_cv_prog_DLLTOOL"; then
17356   ac_ct_DLLTOOL=$DLLTOOL
17357   # Extract the first word of "dlltool", so it can be a program name with args.
17358 set dummy dlltool; ac_word=$2
17359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17361 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
17362   echo $ECHO_N "(cached) $ECHO_C" >&6
17363 else
17364   if test -n "$ac_ct_DLLTOOL"; then
17365   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17366 else
17367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17368 for as_dir in $PATH
17369 do
17370   IFS=$as_save_IFS
17371   test -z "$as_dir" && as_dir=.
17372   for ac_exec_ext in '' $ac_executable_extensions; do
17373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17374     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17376     break 2
17377   fi
17378 done
17379 done
17380 IFS=$as_save_IFS
17381
17382 fi
17383 fi
17384 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17385 if test -n "$ac_ct_DLLTOOL"; then
17386   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
17387 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
17388 else
17389   { echo "$as_me:$LINENO: result: no" >&5
17390 echo "${ECHO_T}no" >&6; }
17391 fi
17392
17393   if test "x$ac_ct_DLLTOOL" = x; then
17394     DLLTOOL=""
17395   else
17396     case $cross_compiling:$ac_tool_warned in
17397 yes:)
17398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17399 whose name does not start with the host triplet.  If you think this
17400 configuration is useful to you, please write to autoconf@gnu.org." >&5
17401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17402 whose name does not start with the host triplet.  If you think this
17403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17404 ac_tool_warned=yes ;;
17405 esac
17406     DLLTOOL=$ac_ct_DLLTOOL
17407   fi
17408 else
17409   DLLTOOL="$ac_cv_prog_DLLTOOL"
17410 fi
17411
17412         ;;
17413     esac
17414 fi
17415
17416 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
17417 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
17418 if test "${wx_cv_prog_makeisgnu+set}" = set; then
17419   echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421
17422     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
17423             $EGREP -s GNU > /dev/null); then
17424         wx_cv_prog_makeisgnu="yes"
17425     else
17426         wx_cv_prog_makeisgnu="no"
17427     fi
17428
17429 fi
17430 { echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
17431 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6; }
17432
17433 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
17434     IF_GNU_MAKE=""
17435 else
17436     IF_GNU_MAKE="#"
17437 fi
17438
17439
17440
17441 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
17442 { echo "$as_me:$LINENO: checking if make supports VPATH" >&5
17443 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6; }
17444 if test "${wx_cv_prog_makevpath+set}" = set; then
17445   echo $ECHO_N "(cached) $ECHO_C" >&6
17446 else
17447
17448 cat - << EOF > confMake
17449 check : file
17450         cp \$? \$@
17451         cp \$? final_file
17452 EOF
17453
17454 if test ! -d sub ; then
17455   mkdir sub
17456 fi
17457 echo dummy > sub/file
17458 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
17459 RESULT=$?
17460 rm -f sub/file check final_file confMake
17461 rmdir sub
17462 if test "$RESULT" = 0; then
17463   wx_cv_prog_makevpath="yes"
17464 else
17465   wx_cv_prog_makevpath="no"
17466 fi
17467
17468 fi
17469 { echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
17470 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6; }
17471
17472 if test "x$wx_cv_prog_makevpath" != "xyes"; then
17473 { { echo "$as_me:$LINENO: error:
17474 You need a make-utility that is able to use the variable
17475 VPATH correctly.
17476 If your version of make does not support VPATH correctly,
17477 please install GNU-make (possibly as gmake), and start
17478 configure with the following command:
17479 export MAKE=gmake; ./configure  for sh-type shells
17480 setenv MAKE gmake; ./configure  for csh-type shells
17481 Also please do remember to use gmake in this case every time
17482 you are trying to compile.
17483 " >&5
17484 echo "$as_me: error:
17485 You need a make-utility that is able to use the variable
17486 VPATH correctly.
17487 If your version of make does not support VPATH correctly,
17488 please install GNU-make (possibly as gmake), and start
17489 configure with the following command:
17490 export MAKE=gmake; ./configure  for sh-type shells
17491 setenv MAKE gmake; ./configure  for csh-type shells
17492 Also please do remember to use gmake in this case every time
17493 you are trying to compile.
17494 " >&2;}
17495    { (exit 1); exit 1; }; }
17496 fi fi
17497 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
17498 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
17499 LN_S=$as_ln_s
17500 if test "$LN_S" = "ln -s"; then
17501   { echo "$as_me:$LINENO: result: yes" >&5
17502 echo "${ECHO_T}yes" >&6; }
17503 else
17504   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
17505 echo "${ECHO_T}no, using $LN_S" >&6; }
17506 fi
17507
17508
17509
17510
17511 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
17512     CXXFLAGS="-qunique $CXXFLAGS"
17513 fi
17514
17515 case "${host}" in
17516   powerpc-*-darwin* )
17517     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
17518 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
17519     cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h.  */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h.  */
17525
17526 int
17527 main ()
17528 {
17529 #ifndef __POWERPC__
17530         choke me for lack of PowerPC
17531 #endif
17532
17533   ;
17534   return 0;
17535 }
17536 _ACEOF
17537 rm -f conftest.$ac_objext
17538 if { (ac_try="$ac_compile"
17539 case "(($ac_try" in
17540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541   *) ac_try_echo=$ac_try;;
17542 esac
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544   (eval "$ac_compile") 2>conftest.er1
17545   ac_status=$?
17546   grep -v '^ *+' conftest.er1 >conftest.err
17547   rm -f conftest.er1
17548   cat conftest.err >&5
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); } &&
17551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17552   { (case "(($ac_try" in
17553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554   *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557   (eval "$ac_try") 2>&5
17558   ac_status=$?
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); }; } &&
17561          { ac_try='test -s conftest.$ac_objext'
17562   { (case "(($ac_try" in
17563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564   *) ac_try_echo=$ac_try;;
17565 esac
17566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567   (eval "$ac_try") 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); }; }; then
17571   { echo "$as_me:$LINENO: result: yes" >&5
17572 echo "${ECHO_T}yes" >&6; }
17573 else
17574   echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17576
17577         { echo "$as_me:$LINENO: result: no" >&5
17578 echo "${ECHO_T}no" >&6; }
17579         cat >>confdefs.h <<\_ACEOF
17580 #define __POWERPC__ 1
17581 _ACEOF
17582
17583
17584 fi
17585
17586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17587   ;;
17588 esac
17589
17590 case "${host}" in
17591   *-*-darwin* )
17592     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
17593 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
17594     cat >conftest.$ac_ext <<_ACEOF
17595 /* confdefs.h.  */
17596 _ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h.  */
17600 #include <CoreFoundation/CFBase.h>
17601
17602 int
17603 main ()
17604 {
17605
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext
17611 if { (ac_try="$ac_compile"
17612 case "(($ac_try" in
17613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614   *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617   (eval "$ac_compile") 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } &&
17624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17625   { (case "(($ac_try" in
17626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627   *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630   (eval "$ac_try") 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; } &&
17634          { ac_try='test -s conftest.$ac_objext'
17635   { (case "(($ac_try" in
17636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637   *) ac_try_echo=$ac_try;;
17638 esac
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640   (eval "$ac_try") 2>&5
17641   ac_status=$?
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); }; }; then
17644   { echo "$as_me:$LINENO: result: yes" >&5
17645 echo "${ECHO_T}yes" >&6; }
17646 else
17647   echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17649
17650         { echo "$as_me:$LINENO: result: no" >&5
17651 echo "${ECHO_T}no" >&6; }
17652         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
17653 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
17654         cat >conftest.$ac_ext <<_ACEOF
17655 /* confdefs.h.  */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h.  */
17660 #define __CF_USE_FRAMEWORK_INCLUDES__
17661 #include <CoreFoundation/CFBase.h>
17662
17663 int
17664 main ()
17665 {
17666
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 rm -f conftest.$ac_objext
17672 if { (ac_try="$ac_compile"
17673 case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_compile") 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } &&
17685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686   { (case "(($ac_try" in
17687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688   *) ac_try_echo=$ac_try;;
17689 esac
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691   (eval "$ac_try") 2>&5
17692   ac_status=$?
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); }; } &&
17695          { ac_try='test -s conftest.$ac_objext'
17696   { (case "(($ac_try" in
17697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698   *) ac_try_echo=$ac_try;;
17699 esac
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701   (eval "$ac_try") 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; }; then
17705   { echo "$as_me:$LINENO: result: yes" >&5
17706 echo "${ECHO_T}yes" >&6; }
17707                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
17708 else
17709   echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17711
17712         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
17713 See \`config.log' for more details." >&5
17714 echo "$as_me: error: no.  CoreFoundation not available.
17715 See \`config.log' for more details." >&2;}
17716    { (exit 1); exit 1; }; }
17717
17718 fi
17719
17720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17721
17722
17723 fi
17724
17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17726   ;;
17727 esac
17728
17729 wants_win32=0
17730 doesnt_want_win32=0
17731 case "${host}" in
17732   *-*-cygwin*)
17733       if test "$wxUSE_MSW" = 1 ; then
17734         wants_win32=1
17735       else
17736                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
17737 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
17738 if test "${wx_cv_nocygwin+set}" = set; then
17739   echo $ECHO_N "(cached) $ECHO_C" >&6
17740 else
17741
17742                 cat >conftest.$ac_ext <<_ACEOF
17743 /* confdefs.h.  */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h.  */
17748
17749 int
17750 main ()
17751 {
17752
17753                         #ifdef __MINGW32__
17754                             choke me
17755                         #endif
17756
17757   ;
17758   return 0;
17759 }
17760 _ACEOF
17761 rm -f conftest.$ac_objext
17762 if { (ac_try="$ac_compile"
17763 case "(($ac_try" in
17764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765   *) ac_try_echo=$ac_try;;
17766 esac
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768   (eval "$ac_compile") 2>conftest.er1
17769   ac_status=$?
17770   grep -v '^ *+' conftest.er1 >conftest.err
17771   rm -f conftest.er1
17772   cat conftest.err >&5
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); } &&
17775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17776   { (case "(($ac_try" in
17777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778   *) ac_try_echo=$ac_try;;
17779 esac
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781   (eval "$ac_try") 2>&5
17782   ac_status=$?
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); }; } &&
17785          { ac_try='test -s conftest.$ac_objext'
17786   { (case "(($ac_try" in
17787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788   *) ac_try_echo=$ac_try;;
17789 esac
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791   (eval "$ac_try") 2>&5
17792   ac_status=$?
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); }; }; then
17795   wx_cv_nocygwin=no
17796 else
17797   echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800         wx_cv_nocygwin=yes
17801
17802 fi
17803
17804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17805
17806
17807 fi
17808 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
17809 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
17810
17811         if test "$wx_cv_nocygwin" = "yes"; then
17812             wants_win32=1
17813         else
17814             doesnt_want_win32=1
17815         fi
17816       fi
17817       if test "$wants_win32" = 1 ; then
17818         BAKEFILE_FORCE_PLATFORM=win32
17819       fi
17820   ;;
17821   *-*-mingw*)
17822       wants_win32=1
17823   ;;
17824 esac
17825
17826 if test "$wxUSE_WINE" = "yes"; then
17827     wants_win32=1
17828     LDFLAGS_GUI="-mwindows"
17829 fi
17830
17831 if test "$wants_win32" = 1 ; then
17832     USE_UNIX=0
17833     USE_WIN32=1
17834     cat >>confdefs.h <<\_ACEOF
17835 #define __WIN32__ 1
17836 _ACEOF
17837
17838     cat >>confdefs.h <<\_ACEOF
17839 #define __WIN95__ 1
17840 _ACEOF
17841
17842     cat >>confdefs.h <<\_ACEOF
17843 #define __WINDOWS__ 1
17844 _ACEOF
17845
17846     cat >>confdefs.h <<\_ACEOF
17847 #define __GNUWIN32__ 1
17848 _ACEOF
17849
17850     cat >>confdefs.h <<\_ACEOF
17851 #define STRICT 1
17852 _ACEOF
17853
17854 fi
17855 if test "$doesnt_want_win32" = 1 ; then
17856     USE_UNIX=1
17857     USE_WIN32=0
17858 fi
17859
17860 if test "$USE_UNIX" = 1 ; then
17861     wxUSE_UNIX=yes
17862     cat >>confdefs.h <<\_ACEOF
17863 #define __UNIX__ 1
17864 _ACEOF
17865
17866 fi
17867
17868 case "${host}" in
17869   *-pc-os2_emx | *-pc-os2-emx )
17870                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
17871                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
17872 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
17873 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
17874   echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876   ac_check_lib_save_LIBS=$LIBS
17877 LIBS="-lcExt  $LIBS"
17878 cat >conftest.$ac_ext <<_ACEOF
17879 /* confdefs.h.  */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h.  */
17884
17885 /* Override any GCC internal prototype to avoid an error.
17886    Use char because int might match the return type of a GCC
17887    builtin and then its argument prototype would still apply.  */
17888 #ifdef __cplusplus
17889 extern "C"
17890 #endif
17891 char drand48 ();
17892 int
17893 main ()
17894 {
17895 return drand48 ();
17896   ;
17897   return 0;
17898 }
17899 _ACEOF
17900 rm -f conftest.$ac_objext conftest$ac_exeext
17901 if { (ac_try="$ac_link"
17902 case "(($ac_try" in
17903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904   *) ac_try_echo=$ac_try;;
17905 esac
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907   (eval "$ac_link") 2>conftest.er1
17908   ac_status=$?
17909   grep -v '^ *+' conftest.er1 >conftest.err
17910   rm -f conftest.er1
17911   cat conftest.err >&5
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); } &&
17914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17915   { (case "(($ac_try" in
17916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917   *) ac_try_echo=$ac_try;;
17918 esac
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920   (eval "$ac_try") 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; } &&
17924          { ac_try='test -s conftest$ac_exeext'
17925   { (case "(($ac_try" in
17926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927   *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930   (eval "$ac_try") 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; }; then
17934   ac_cv_lib_cExt_drand48=yes
17935 else
17936   echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17938
17939         ac_cv_lib_cExt_drand48=no
17940 fi
17941
17942 rm -f core conftest.err conftest.$ac_objext \
17943       conftest$ac_exeext conftest.$ac_ext
17944 LIBS=$ac_check_lib_save_LIBS
17945 fi
17946 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
17947 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
17948 if test $ac_cv_lib_cExt_drand48 = yes; then
17949   LIBS="$LIBS -lcExt"
17950 fi
17951
17952       else
17953                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
17954       fi
17955                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
17956 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
17957 if test "${wx_cv_gccversion+set}" = set; then
17958   echo $ECHO_N "(cached) $ECHO_C" >&6
17959 else
17960
17961           if test "$cross_compiling" = yes; then
17962                 wx_cv_gccversion="EMX2"
17963
17964 else
17965   cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971
17972                   #include <stdio.h>
17973
17974                   int main()
17975                   {
17976                       FILE *f=fopen("conftestval", "w");
17977                       if (!f) exit(1);
17978                       fprintf(f,
17979                   #if (__GNUC__ < 3)
17980                               "EMX2"
17981                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
17982                               "EMX3"
17983                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
17984                               "Innotek5"
17985                   #else
17986                               "Innotek6"
17987                   #endif
17988                       );
17989                       exit(0);
17990                   }
17991
17992 _ACEOF
17993 rm -f conftest$ac_exeext
17994 if { (ac_try="$ac_link"
17995 case "(($ac_try" in
17996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997   *) ac_try_echo=$ac_try;;
17998 esac
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000   (eval "$ac_link") 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18004   { (case "(($ac_try" in
18005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006   *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009   (eval "$ac_try") 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); }; }; then
18013   wx_cv_gccversion=`cat conftestval`
18014 else
18015   echo "$as_me: program exited with status $ac_status" >&5
18016 echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019 ( exit $ac_status )
18020 wx_cv_gccversion="EMX2"
18021 fi
18022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18023 fi
18024
18025
18026
18027 fi
18028 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18029 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18030       if test "$wx_cv_gccversion" = "EMX2"; then
18031           LIBS="$LIBS -lstdcpp"
18032           LDFLAGS="$LDFLAGS -Zsysv-signals"
18033       else
18034           if test "$wx_cv_gccversion" = "EMX3"; then
18035               LIBS="$LIBS -lstdcxx -lgcc"
18036               LDFLAGS="$LDFLAGS -Zsysv-signals"
18037           else
18038               LIBS="$LIBS -lstdc++"
18039           fi
18040       fi
18041       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18042         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18043 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18044         wxUSE_OMF=yes
18045         enable_omf=yes
18046       fi
18047         ;;
18048   *)
18049
18050       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18051 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18052 if test "${ac_cv_string_strcasecmp+set}" = set; then
18053   echo $ECHO_N "(cached) $ECHO_C" >&6
18054 else
18055
18056           cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h.  */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h.  */
18062
18063               #include <string.h>
18064
18065 int
18066 main ()
18067 {
18068
18069                   strcasecmp("foo", "bar");
18070
18071   ;
18072   return 0;
18073 }
18074 _ACEOF
18075 rm -f conftest.$ac_objext conftest$ac_exeext
18076 if { (ac_try="$ac_link"
18077 case "(($ac_try" in
18078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079   *) ac_try_echo=$ac_try;;
18080 esac
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082   (eval "$ac_link") 2>conftest.er1
18083   ac_status=$?
18084   grep -v '^ *+' conftest.er1 >conftest.err
18085   rm -f conftest.er1
18086   cat conftest.err >&5
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } &&
18089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18090   { (case "(($ac_try" in
18091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092   *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095   (eval "$ac_try") 2>&5
18096   ac_status=$?
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); }; } &&
18099          { ac_try='test -s conftest$ac_exeext'
18100   { (case "(($ac_try" in
18101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102   *) ac_try_echo=$ac_try;;
18103 esac
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105   (eval "$ac_try") 2>&5
18106   ac_status=$?
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); }; }; then
18109   ac_cv_string_strcasecmp=yes
18110 else
18111   echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18113
18114         ac_cv_string_strcasecmp=no
18115
18116 fi
18117
18118 rm -f core conftest.err conftest.$ac_objext \
18119       conftest$ac_exeext conftest.$ac_ext
18120
18121 fi
18122 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18123 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18124
18125       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18126           cat >>confdefs.h <<\_ACEOF
18127 #define HAVE_STRCASECMP_IN_STRING_H 1
18128 _ACEOF
18129
18130       else
18131           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18132 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18133 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18134   echo $ECHO_N "(cached) $ECHO_C" >&6
18135 else
18136
18137               cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h.  */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h.  */
18143
18144                   #include <strings.h>
18145
18146 int
18147 main ()
18148 {
18149
18150                       strcasecmp("foo", "bar");
18151
18152   ;
18153   return 0;
18154 }
18155 _ACEOF
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (ac_try="$ac_link"
18158 case "(($ac_try" in
18159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18160   *) ac_try_echo=$ac_try;;
18161 esac
18162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18163   (eval "$ac_link") 2>conftest.er1
18164   ac_status=$?
18165   grep -v '^ *+' conftest.er1 >conftest.err
18166   rm -f conftest.er1
18167   cat conftest.err >&5
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); } &&
18170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18171   { (case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176   (eval "$ac_try") 2>&5
18177   ac_status=$?
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); }; } &&
18180          { ac_try='test -s conftest$ac_exeext'
18181   { (case "(($ac_try" in
18182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183   *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186   (eval "$ac_try") 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); }; }; then
18190   ac_cv_strings_strcasecmp=yes
18191 else
18192   echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195         ac_cv_strings_strcasecmp=no
18196
18197 fi
18198
18199 rm -f core conftest.err conftest.$ac_objext \
18200       conftest$ac_exeext conftest.$ac_ext
18201
18202 fi
18203 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18204 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18205
18206           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18207               cat >>confdefs.h <<\_ACEOF
18208 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18209 _ACEOF
18210
18211           else
18212               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18213 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18214    { (exit 1); exit 1; }; }
18215           fi
18216       fi
18217
18218         ;;
18219 esac
18220
18221
18222 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18223 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18224 if test "${ac_cv_header_stdc+set}" = set; then
18225   echo $ECHO_N "(cached) $ECHO_C" >&6
18226 else
18227   cat >conftest.$ac_ext <<_ACEOF
18228 /* confdefs.h.  */
18229 _ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h.  */
18233 #include <stdlib.h>
18234 #include <stdarg.h>
18235 #include <string.h>
18236 #include <float.h>
18237
18238 int
18239 main ()
18240 {
18241
18242   ;
18243   return 0;
18244 }
18245 _ACEOF
18246 rm -f conftest.$ac_objext
18247 if { (ac_try="$ac_compile"
18248 case "(($ac_try" in
18249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250   *) ac_try_echo=$ac_try;;
18251 esac
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253   (eval "$ac_compile") 2>conftest.er1
18254   ac_status=$?
18255   grep -v '^ *+' conftest.er1 >conftest.err
18256   rm -f conftest.er1
18257   cat conftest.err >&5
18258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259   (exit $ac_status); } &&
18260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18261   { (case "(($ac_try" in
18262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263   *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266   (eval "$ac_try") 2>&5
18267   ac_status=$?
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); }; } &&
18270          { ac_try='test -s conftest.$ac_objext'
18271   { (case "(($ac_try" in
18272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273   *) ac_try_echo=$ac_try;;
18274 esac
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276   (eval "$ac_try") 2>&5
18277   ac_status=$?
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); }; }; then
18280   ac_cv_header_stdc=yes
18281 else
18282   echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18284
18285         ac_cv_header_stdc=no
18286 fi
18287
18288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18289
18290 if test $ac_cv_header_stdc = yes; then
18291   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18292   cat >conftest.$ac_ext <<_ACEOF
18293 /* confdefs.h.  */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h.  */
18298 #include <string.h>
18299
18300 _ACEOF
18301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18302   $EGREP "memchr" >/dev/null 2>&1; then
18303   :
18304 else
18305   ac_cv_header_stdc=no
18306 fi
18307 rm -f conftest*
18308
18309 fi
18310
18311 if test $ac_cv_header_stdc = yes; then
18312   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18313   cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h.  */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h.  */
18319 #include <stdlib.h>
18320
18321 _ACEOF
18322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18323   $EGREP "free" >/dev/null 2>&1; then
18324   :
18325 else
18326   ac_cv_header_stdc=no
18327 fi
18328 rm -f conftest*
18329
18330 fi
18331
18332 if test $ac_cv_header_stdc = yes; then
18333   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18334   if test "$cross_compiling" = yes; then
18335   :
18336 else
18337   cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h.  */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h.  */
18343 #include <ctype.h>
18344 #include <stdlib.h>
18345 #if ((' ' & 0x0FF) == 0x020)
18346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18348 #else
18349 # define ISLOWER(c) \
18350                    (('a' <= (c) && (c) <= 'i') \
18351                      || ('j' <= (c) && (c) <= 'r') \
18352                      || ('s' <= (c) && (c) <= 'z'))
18353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18354 #endif
18355
18356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18357 int
18358 main ()
18359 {
18360   int i;
18361   for (i = 0; i < 256; i++)
18362     if (XOR (islower (i), ISLOWER (i))
18363         || toupper (i) != TOUPPER (i))
18364       return 2;
18365   return 0;
18366 }
18367 _ACEOF
18368 rm -f conftest$ac_exeext
18369 if { (ac_try="$ac_link"
18370 case "(($ac_try" in
18371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372   *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375   (eval "$ac_link") 2>&5
18376   ac_status=$?
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18379   { (case "(($ac_try" in
18380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381   *) ac_try_echo=$ac_try;;
18382 esac
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384   (eval "$ac_try") 2>&5
18385   ac_status=$?
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); }; }; then
18388   :
18389 else
18390   echo "$as_me: program exited with status $ac_status" >&5
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18393
18394 ( exit $ac_status )
18395 ac_cv_header_stdc=no
18396 fi
18397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18398 fi
18399
18400
18401 fi
18402 fi
18403 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18404 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
18405 if test $ac_cv_header_stdc = yes; then
18406
18407 cat >>confdefs.h <<\_ACEOF
18408 #define STDC_HEADERS 1
18409 _ACEOF
18410
18411 fi
18412
18413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
18424                   inttypes.h stdint.h unistd.h
18425 do
18426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18430   echo $ECHO_N "(cached) $ECHO_C" >&6
18431 else
18432   cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h.  */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h.  */
18438 $ac_includes_default
18439
18440 #include <$ac_header>
18441 _ACEOF
18442 rm -f conftest.$ac_objext
18443 if { (ac_try="$ac_compile"
18444 case "(($ac_try" in
18445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446   *) ac_try_echo=$ac_try;;
18447 esac
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449   (eval "$ac_compile") 2>conftest.er1
18450   ac_status=$?
18451   grep -v '^ *+' conftest.er1 >conftest.err
18452   rm -f conftest.er1
18453   cat conftest.err >&5
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); } &&
18456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18457   { (case "(($ac_try" in
18458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459   *) ac_try_echo=$ac_try;;
18460 esac
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462   (eval "$ac_try") 2>&5
18463   ac_status=$?
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); }; } &&
18466          { ac_try='test -s conftest.$ac_objext'
18467   { (case "(($ac_try" in
18468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469   *) ac_try_echo=$ac_try;;
18470 esac
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472   (eval "$ac_try") 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); }; }; then
18476   eval "$as_ac_Header=yes"
18477 else
18478   echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18480
18481         eval "$as_ac_Header=no"
18482 fi
18483
18484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485 fi
18486 ac_res=`eval echo '${'$as_ac_Header'}'`
18487                { echo "$as_me:$LINENO: result: $ac_res" >&5
18488 echo "${ECHO_T}$ac_res" >&6; }
18489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18490   cat >>confdefs.h <<_ACEOF
18491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18492 _ACEOF
18493
18494 fi
18495
18496 done
18497
18498
18499
18500
18501
18502
18503
18504
18505 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
18506 do
18507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18509   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18512   echo $ECHO_N "(cached) $ECHO_C" >&6
18513 fi
18514 ac_res=`eval echo '${'$as_ac_Header'}'`
18515                { echo "$as_me:$LINENO: result: $ac_res" >&5
18516 echo "${ECHO_T}$ac_res" >&6; }
18517 else
18518   # Is the header compilable?
18519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18521 cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h.  */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h.  */
18527 $ac_includes_default
18528 #include <$ac_header>
18529 _ACEOF
18530 rm -f conftest.$ac_objext
18531 if { (ac_try="$ac_compile"
18532 case "(($ac_try" in
18533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534   *) ac_try_echo=$ac_try;;
18535 esac
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537   (eval "$ac_compile") 2>conftest.er1
18538   ac_status=$?
18539   grep -v '^ *+' conftest.er1 >conftest.err
18540   rm -f conftest.er1
18541   cat conftest.err >&5
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); } &&
18544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18545   { (case "(($ac_try" in
18546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547   *) ac_try_echo=$ac_try;;
18548 esac
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550   (eval "$ac_try") 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); }; } &&
18554          { ac_try='test -s conftest.$ac_objext'
18555   { (case "(($ac_try" in
18556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557   *) ac_try_echo=$ac_try;;
18558 esac
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560   (eval "$ac_try") 2>&5
18561   ac_status=$?
18562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563   (exit $ac_status); }; }; then
18564   ac_header_compiler=yes
18565 else
18566   echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18568
18569         ac_header_compiler=no
18570 fi
18571
18572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18574 echo "${ECHO_T}$ac_header_compiler" >&6; }
18575
18576 # Is the header present?
18577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18579 cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585 #include <$ac_header>
18586 _ACEOF
18587 if { (ac_try="$ac_cpp conftest.$ac_ext"
18588 case "(($ac_try" in
18589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590   *) ac_try_echo=$ac_try;;
18591 esac
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18594   ac_status=$?
18595   grep -v '^ *+' conftest.er1 >conftest.err
18596   rm -f conftest.er1
18597   cat conftest.err >&5
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); } >/dev/null; then
18600   if test -s conftest.err; then
18601     ac_cpp_err=$ac_c_preproc_warn_flag
18602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18603   else
18604     ac_cpp_err=
18605   fi
18606 else
18607   ac_cpp_err=yes
18608 fi
18609 if test -z "$ac_cpp_err"; then
18610   ac_header_preproc=yes
18611 else
18612   echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18614
18615   ac_header_preproc=no
18616 fi
18617
18618 rm -f conftest.err conftest.$ac_ext
18619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18620 echo "${ECHO_T}$ac_header_preproc" >&6; }
18621
18622 # So?  What about this header?
18623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18624   yes:no: )
18625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18629     ac_header_preproc=yes
18630     ;;
18631   no:yes:* )
18632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18634     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18635 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18636     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18638     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18639 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18642     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18644     ( cat <<\_ASBOX
18645 ## ----------------------------------------- ##
18646 ## Report this to wx-dev@lists.wxwidgets.org ##
18647 ## ----------------------------------------- ##
18648 _ASBOX
18649      ) | sed "s/^/$as_me: WARNING:     /" >&2
18650     ;;
18651 esac
18652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18655   echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657   eval "$as_ac_Header=\$ac_header_preproc"
18658 fi
18659 ac_res=`eval echo '${'$as_ac_Header'}'`
18660                { echo "$as_me:$LINENO: result: $ac_res" >&5
18661 echo "${ECHO_T}$ac_res" >&6; }
18662
18663 fi
18664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18665   cat >>confdefs.h <<_ACEOF
18666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18667 _ACEOF
18668
18669 fi
18670
18671 done
18672
18673
18674 if test "$ac_cv_header_wchar_h" != "yes"; then
18675
18676 for ac_header in wcstr.h
18677 do
18678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18680   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18683   echo $ECHO_N "(cached) $ECHO_C" >&6
18684 fi
18685 ac_res=`eval echo '${'$as_ac_Header'}'`
18686                { echo "$as_me:$LINENO: result: $ac_res" >&5
18687 echo "${ECHO_T}$ac_res" >&6; }
18688 else
18689   # Is the header compilable?
18690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h.  */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h.  */
18698 $ac_includes_default
18699 #include <$ac_header>
18700 _ACEOF
18701 rm -f conftest.$ac_objext
18702 if { (ac_try="$ac_compile"
18703 case "(($ac_try" in
18704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705   *) ac_try_echo=$ac_try;;
18706 esac
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708   (eval "$ac_compile") 2>conftest.er1
18709   ac_status=$?
18710   grep -v '^ *+' conftest.er1 >conftest.err
18711   rm -f conftest.er1
18712   cat conftest.err >&5
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); } &&
18715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716   { (case "(($ac_try" in
18717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718   *) ac_try_echo=$ac_try;;
18719 esac
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721   (eval "$ac_try") 2>&5
18722   ac_status=$?
18723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724   (exit $ac_status); }; } &&
18725          { ac_try='test -s conftest.$ac_objext'
18726   { (case "(($ac_try" in
18727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728   *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731   (eval "$ac_try") 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); }; }; then
18735   ac_header_compiler=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740         ac_header_compiler=no
18741 fi
18742
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18745 echo "${ECHO_T}$ac_header_compiler" >&6; }
18746
18747 # Is the header present?
18748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18750 cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756 #include <$ac_header>
18757 _ACEOF
18758 if { (ac_try="$ac_cpp conftest.$ac_ext"
18759 case "(($ac_try" in
18760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761   *) ac_try_echo=$ac_try;;
18762 esac
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18765   ac_status=$?
18766   grep -v '^ *+' conftest.er1 >conftest.err
18767   rm -f conftest.er1
18768   cat conftest.err >&5
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); } >/dev/null; then
18771   if test -s conftest.err; then
18772     ac_cpp_err=$ac_c_preproc_warn_flag
18773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18774   else
18775     ac_cpp_err=
18776   fi
18777 else
18778   ac_cpp_err=yes
18779 fi
18780 if test -z "$ac_cpp_err"; then
18781   ac_header_preproc=yes
18782 else
18783   echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18785
18786   ac_header_preproc=no
18787 fi
18788
18789 rm -f conftest.err conftest.$ac_ext
18790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18791 echo "${ECHO_T}$ac_header_preproc" >&6; }
18792
18793 # So?  What about this header?
18794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18795   yes:no: )
18796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18800     ac_header_preproc=yes
18801     ;;
18802   no:yes:* )
18803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18805     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18806 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18807     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18809     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18810 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18813     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18815     ( cat <<\_ASBOX
18816 ## ----------------------------------------- ##
18817 ## Report this to wx-dev@lists.wxwidgets.org ##
18818 ## ----------------------------------------- ##
18819 _ASBOX
18820      ) | sed "s/^/$as_me: WARNING:     /" >&2
18821     ;;
18822 esac
18823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18826   echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828   eval "$as_ac_Header=\$ac_header_preproc"
18829 fi
18830 ac_res=`eval echo '${'$as_ac_Header'}'`
18831                { echo "$as_me:$LINENO: result: $ac_res" >&5
18832 echo "${ECHO_T}$ac_res" >&6; }
18833
18834 fi
18835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18836   cat >>confdefs.h <<_ACEOF
18837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18838 _ACEOF
18839
18840 fi
18841
18842 done
18843
18844 fi
18845
18846 case "${host}" in
18847   *-pc-os2_emx | *-pc-os2-emx )
18848                   if test $ac_cv_header_langinfo_h = "yes" \
18849                 -a \(   "$wx_cv_gccversion" = "EMX2" \
18850                      -o "$wx_cv_gccversion" = "EMX3" \
18851                      -o "$wx_cv_gccversion" = "Innotek5" \); then
18852           LIBS="$LIBS -lintl"
18853       fi
18854   ;;
18855 esac
18856
18857 if test "$USE_UNIX" = 1 ; then
18858
18859 for ac_header in sys/select.h
18860 do
18861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18863   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18866   echo $ECHO_N "(cached) $ECHO_C" >&6
18867 fi
18868 ac_res=`eval echo '${'$as_ac_Header'}'`
18869                { echo "$as_me:$LINENO: result: $ac_res" >&5
18870 echo "${ECHO_T}$ac_res" >&6; }
18871 else
18872   # Is the header compilable?
18873 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h.  */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h.  */
18881 $ac_includes_default
18882 #include <$ac_header>
18883 _ACEOF
18884 rm -f conftest.$ac_objext
18885 if { (ac_try="$ac_compile"
18886 case "(($ac_try" in
18887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888   *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891   (eval "$ac_compile") 2>conftest.er1
18892   ac_status=$?
18893   grep -v '^ *+' conftest.er1 >conftest.err
18894   rm -f conftest.er1
18895   cat conftest.err >&5
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); } &&
18898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18899   { (case "(($ac_try" in
18900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901   *) ac_try_echo=$ac_try;;
18902 esac
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904   (eval "$ac_try") 2>&5
18905   ac_status=$?
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); }; } &&
18908          { ac_try='test -s conftest.$ac_objext'
18909   { (case "(($ac_try" in
18910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911   *) ac_try_echo=$ac_try;;
18912 esac
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914   (eval "$ac_try") 2>&5
18915   ac_status=$?
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   (exit $ac_status); }; }; then
18918   ac_header_compiler=yes
18919 else
18920   echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18922
18923         ac_header_compiler=no
18924 fi
18925
18926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18928 echo "${ECHO_T}$ac_header_compiler" >&6; }
18929
18930 # Is the header present?
18931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18933 cat >conftest.$ac_ext <<_ACEOF
18934 /* confdefs.h.  */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h.  */
18939 #include <$ac_header>
18940 _ACEOF
18941 if { (ac_try="$ac_cpp conftest.$ac_ext"
18942 case "(($ac_try" in
18943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944   *) ac_try_echo=$ac_try;;
18945 esac
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18948   ac_status=$?
18949   grep -v '^ *+' conftest.er1 >conftest.err
18950   rm -f conftest.er1
18951   cat conftest.err >&5
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); } >/dev/null; then
18954   if test -s conftest.err; then
18955     ac_cpp_err=$ac_c_preproc_warn_flag
18956     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18957   else
18958     ac_cpp_err=
18959   fi
18960 else
18961   ac_cpp_err=yes
18962 fi
18963 if test -z "$ac_cpp_err"; then
18964   ac_header_preproc=yes
18965 else
18966   echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18968
18969   ac_header_preproc=no
18970 fi
18971
18972 rm -f conftest.err conftest.$ac_ext
18973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18974 echo "${ECHO_T}$ac_header_preproc" >&6; }
18975
18976 # So?  What about this header?
18977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18978   yes:no: )
18979     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18983     ac_header_preproc=yes
18984     ;;
18985   no:yes:* )
18986     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18988     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18989 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18990     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18992     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18993 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18996     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18998     ( cat <<\_ASBOX
18999 ## ----------------------------------------- ##
19000 ## Report this to wx-dev@lists.wxwidgets.org ##
19001 ## ----------------------------------------- ##
19002 _ASBOX
19003      ) | sed "s/^/$as_me: WARNING:     /" >&2
19004     ;;
19005 esac
19006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19009   echo $ECHO_N "(cached) $ECHO_C" >&6
19010 else
19011   eval "$as_ac_Header=\$ac_header_preproc"
19012 fi
19013 ac_res=`eval echo '${'$as_ac_Header'}'`
19014                { echo "$as_me:$LINENO: result: $ac_res" >&5
19015 echo "${ECHO_T}$ac_res" >&6; }
19016
19017 fi
19018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19019   cat >>confdefs.h <<_ACEOF
19020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19021 _ACEOF
19022
19023 fi
19024
19025 done
19026
19027 fi
19028
19029
19030 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19032 if test "${ac_cv_c_const+set}" = set; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035   cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h.  */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h.  */
19041
19042 int
19043 main ()
19044 {
19045 /* FIXME: Include the comments suggested by Paul. */
19046 #ifndef __cplusplus
19047   /* Ultrix mips cc rejects this.  */
19048   typedef int charset[2];
19049   const charset x;
19050   /* SunOS 4.1.1 cc rejects this.  */
19051   char const *const *ccp;
19052   char **p;
19053   /* NEC SVR4.0.2 mips cc rejects this.  */
19054   struct point {int x, y;};
19055   static struct point const zero = {0,0};
19056   /* AIX XL C 1.02.0.0 rejects this.
19057      It does not let you subtract one const X* pointer from another in
19058      an arm of an if-expression whose if-part is not a constant
19059      expression */
19060   const char *g = "string";
19061   ccp = &g + (g ? g-g : 0);
19062   /* HPUX 7.0 cc rejects these. */
19063   ++ccp;
19064   p = (char**) ccp;
19065   ccp = (char const *const *) p;
19066   { /* SCO 3.2v4 cc rejects this.  */
19067     char *t;
19068     char const *s = 0 ? (char *) 0 : (char const *) 0;
19069
19070     *t++ = 0;
19071     if (s) return 0;
19072   }
19073   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19074     int x[] = {25, 17};
19075     const int *foo = &x[0];
19076     ++foo;
19077   }
19078   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19079     typedef const int *iptr;
19080     iptr p = 0;
19081     ++p;
19082   }
19083   { /* AIX XL C 1.02.0.0 rejects this saying
19084        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19085     struct s { int j; const int *ap[3]; };
19086     struct s *b; b->j = 5;
19087   }
19088   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19089     const int foo = 10;
19090     if (!foo) return 0;
19091   }
19092   return !x[0] && !zero.x;
19093 #endif
19094
19095   ;
19096   return 0;
19097 }
19098 _ACEOF
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103   *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106   (eval "$ac_compile") 2>conftest.er1
19107   ac_status=$?
19108   grep -v '^ *+' conftest.er1 >conftest.err
19109   rm -f conftest.er1
19110   cat conftest.err >&5
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); } &&
19113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19114   { (case "(($ac_try" in
19115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116   *) ac_try_echo=$ac_try;;
19117 esac
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119   (eval "$ac_try") 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; } &&
19123          { ac_try='test -s conftest.$ac_objext'
19124   { (case "(($ac_try" in
19125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126   *) ac_try_echo=$ac_try;;
19127 esac
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129   (eval "$ac_try") 2>&5
19130   ac_status=$?
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); }; }; then
19133   ac_cv_c_const=yes
19134 else
19135   echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19137
19138         ac_cv_c_const=no
19139 fi
19140
19141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19142 fi
19143 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19144 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19145 if test $ac_cv_c_const = no; then
19146
19147 cat >>confdefs.h <<\_ACEOF
19148 #define const
19149 _ACEOF
19150
19151 fi
19152
19153 { echo "$as_me:$LINENO: checking for inline" >&5
19154 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19155 if test "${ac_cv_c_inline+set}" = set; then
19156   echo $ECHO_N "(cached) $ECHO_C" >&6
19157 else
19158   ac_cv_c_inline=no
19159 for ac_kw in inline __inline__ __inline; do
19160   cat >conftest.$ac_ext <<_ACEOF
19161 /* confdefs.h.  */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h.  */
19166 #ifndef __cplusplus
19167 typedef int foo_t;
19168 static $ac_kw foo_t static_foo () {return 0; }
19169 $ac_kw foo_t foo () {return 0; }
19170 #endif
19171
19172 _ACEOF
19173 rm -f conftest.$ac_objext
19174 if { (ac_try="$ac_compile"
19175 case "(($ac_try" in
19176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177   *) ac_try_echo=$ac_try;;
19178 esac
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180   (eval "$ac_compile") 2>conftest.er1
19181   ac_status=$?
19182   grep -v '^ *+' conftest.er1 >conftest.err
19183   rm -f conftest.er1
19184   cat conftest.err >&5
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); } &&
19187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19188   { (case "(($ac_try" in
19189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190   *) ac_try_echo=$ac_try;;
19191 esac
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193   (eval "$ac_try") 2>&5
19194   ac_status=$?
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); }; } &&
19197          { ac_try='test -s conftest.$ac_objext'
19198   { (case "(($ac_try" in
19199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200   *) ac_try_echo=$ac_try;;
19201 esac
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203   (eval "$ac_try") 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; }; then
19207   ac_cv_c_inline=$ac_kw
19208 else
19209   echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19211
19212
19213 fi
19214
19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216   test "$ac_cv_c_inline" != no && break
19217 done
19218
19219 fi
19220 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19221 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19222
19223
19224 case $ac_cv_c_inline in
19225   inline | yes) ;;
19226   *)
19227     case $ac_cv_c_inline in
19228       no) ac_val=;;
19229       *) ac_val=$ac_cv_c_inline;;
19230     esac
19231     cat >>confdefs.h <<_ACEOF
19232 #ifndef __cplusplus
19233 #define inline $ac_val
19234 #endif
19235 _ACEOF
19236     ;;
19237 esac
19238
19239
19240 { echo "$as_me:$LINENO: checking for char" >&5
19241 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
19242 if test "${ac_cv_type_char+set}" = set; then
19243   echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245   cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h.  */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h.  */
19251 $ac_includes_default
19252 typedef char ac__type_new_;
19253 int
19254 main ()
19255 {
19256 if ((ac__type_new_ *) 0)
19257   return 0;
19258 if (sizeof (ac__type_new_))
19259   return 0;
19260   ;
19261   return 0;
19262 }
19263 _ACEOF
19264 rm -f conftest.$ac_objext
19265 if { (ac_try="$ac_compile"
19266 case "(($ac_try" in
19267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268   *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271   (eval "$ac_compile") 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } &&
19278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19279   { (case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284   (eval "$ac_try") 2>&5
19285   ac_status=$?
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); }; } &&
19288          { ac_try='test -s conftest.$ac_objext'
19289   { (case "(($ac_try" in
19290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291   *) ac_try_echo=$ac_try;;
19292 esac
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294   (eval "$ac_try") 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; }; then
19298   ac_cv_type_char=yes
19299 else
19300   echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303         ac_cv_type_char=no
19304 fi
19305
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307 fi
19308 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
19309 echo "${ECHO_T}$ac_cv_type_char" >&6; }
19310
19311 { echo "$as_me:$LINENO: checking size of char" >&5
19312 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
19313 if test "${ac_cv_sizeof_char+set}" = set; then
19314   echo $ECHO_N "(cached) $ECHO_C" >&6
19315 else
19316   if test "$ac_cv_type_char" = yes; then
19317   # The cast to long int works around a bug in the HP C Compiler
19318   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19319   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19320   # This bug is HP SR number 8606223364.
19321   if test "$cross_compiling" = yes; then
19322   # Depending upon the size, compute the lo and hi bounds.
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h.  */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h.  */
19329 $ac_includes_default
19330                    typedef char ac__type_sizeof_;
19331 int
19332 main ()
19333 {
19334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19335 test_array [0] = 0
19336
19337   ;
19338   return 0;
19339 }
19340 _ACEOF
19341 rm -f conftest.$ac_objext
19342 if { (ac_try="$ac_compile"
19343 case "(($ac_try" in
19344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345   *) ac_try_echo=$ac_try;;
19346 esac
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348   (eval "$ac_compile") 2>conftest.er1
19349   ac_status=$?
19350   grep -v '^ *+' conftest.er1 >conftest.err
19351   rm -f conftest.er1
19352   cat conftest.err >&5
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); } &&
19355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19356   { (case "(($ac_try" in
19357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358   *) ac_try_echo=$ac_try;;
19359 esac
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361   (eval "$ac_try") 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; } &&
19365          { ac_try='test -s conftest.$ac_objext'
19366   { (case "(($ac_try" in
19367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368   *) ac_try_echo=$ac_try;;
19369 esac
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371   (eval "$ac_try") 2>&5
19372   ac_status=$?
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); }; }; then
19375   ac_lo=0 ac_mid=0
19376   while :; do
19377     cat >conftest.$ac_ext <<_ACEOF
19378 /* confdefs.h.  */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h.  */
19383 $ac_includes_default
19384                    typedef char ac__type_sizeof_;
19385 int
19386 main ()
19387 {
19388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19389 test_array [0] = 0
19390
19391   ;
19392   return 0;
19393 }
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399   *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402   (eval "$ac_compile") 2>conftest.er1
19403   ac_status=$?
19404   grep -v '^ *+' conftest.er1 >conftest.err
19405   rm -f conftest.er1
19406   cat conftest.err >&5
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); } &&
19409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19410   { (case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415   (eval "$ac_try") 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); }; } &&
19419          { ac_try='test -s conftest.$ac_objext'
19420   { (case "(($ac_try" in
19421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422   *) ac_try_echo=$ac_try;;
19423 esac
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425   (eval "$ac_try") 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); }; }; then
19429   ac_hi=$ac_mid; break
19430 else
19431   echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434         ac_lo=`expr $ac_mid + 1`
19435                         if test $ac_lo -le $ac_mid; then
19436                           ac_lo= ac_hi=
19437                           break
19438                         fi
19439                         ac_mid=`expr 2 '*' $ac_mid + 1`
19440 fi
19441
19442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19443   done
19444 else
19445   echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448         cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h.  */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h.  */
19454 $ac_includes_default
19455                    typedef char ac__type_sizeof_;
19456 int
19457 main ()
19458 {
19459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19460 test_array [0] = 0
19461
19462   ;
19463   return 0;
19464 }
19465 _ACEOF
19466 rm -f conftest.$ac_objext
19467 if { (ac_try="$ac_compile"
19468 case "(($ac_try" in
19469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470   *) ac_try_echo=$ac_try;;
19471 esac
19472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473   (eval "$ac_compile") 2>conftest.er1
19474   ac_status=$?
19475   grep -v '^ *+' conftest.er1 >conftest.err
19476   rm -f conftest.er1
19477   cat conftest.err >&5
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); } &&
19480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19481   { (case "(($ac_try" in
19482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483   *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486   (eval "$ac_try") 2>&5
19487   ac_status=$?
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); }; } &&
19490          { ac_try='test -s conftest.$ac_objext'
19491   { (case "(($ac_try" in
19492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493   *) ac_try_echo=$ac_try;;
19494 esac
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496   (eval "$ac_try") 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); }; }; then
19500   ac_hi=-1 ac_mid=-1
19501   while :; do
19502     cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h.  */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h.  */
19508 $ac_includes_default
19509                    typedef char ac__type_sizeof_;
19510 int
19511 main ()
19512 {
19513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19514 test_array [0] = 0
19515
19516   ;
19517   return 0;
19518 }
19519 _ACEOF
19520 rm -f conftest.$ac_objext
19521 if { (ac_try="$ac_compile"
19522 case "(($ac_try" in
19523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524   *) ac_try_echo=$ac_try;;
19525 esac
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527   (eval "$ac_compile") 2>conftest.er1
19528   ac_status=$?
19529   grep -v '^ *+' conftest.er1 >conftest.err
19530   rm -f conftest.er1
19531   cat conftest.err >&5
19532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); } &&
19534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19535   { (case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_try") 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); }; } &&
19544          { ac_try='test -s conftest.$ac_objext'
19545   { (case "(($ac_try" in
19546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547   *) ac_try_echo=$ac_try;;
19548 esac
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550   (eval "$ac_try") 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; }; then
19554   ac_lo=$ac_mid; break
19555 else
19556   echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559         ac_hi=`expr '(' $ac_mid ')' - 1`
19560                         if test $ac_mid -le $ac_hi; then
19561                           ac_lo= ac_hi=
19562                           break
19563                         fi
19564                         ac_mid=`expr 2 '*' $ac_mid`
19565 fi
19566
19567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19568   done
19569 else
19570   echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573         ac_lo= ac_hi=
19574 fi
19575
19576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577 fi
19578
19579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19580 # Binary search between lo and hi bounds.
19581 while test "x$ac_lo" != "x$ac_hi"; do
19582   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19583   cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h.  */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h.  */
19589 $ac_includes_default
19590                    typedef char ac__type_sizeof_;
19591 int
19592 main ()
19593 {
19594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19595 test_array [0] = 0
19596
19597   ;
19598   return 0;
19599 }
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605   *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608   (eval "$ac_compile") 2>conftest.er1
19609   ac_status=$?
19610   grep -v '^ *+' conftest.er1 >conftest.err
19611   rm -f conftest.er1
19612   cat conftest.err >&5
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); } &&
19615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19616   { (case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621   (eval "$ac_try") 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; } &&
19625          { ac_try='test -s conftest.$ac_objext'
19626   { (case "(($ac_try" in
19627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628   *) ac_try_echo=$ac_try;;
19629 esac
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631   (eval "$ac_try") 2>&5
19632   ac_status=$?
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); }; }; then
19635   ac_hi=$ac_mid
19636 else
19637   echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19639
19640         ac_lo=`expr '(' $ac_mid ')' + 1`
19641 fi
19642
19643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19644 done
19645 case $ac_lo in
19646 ?*) ac_cv_sizeof_char=$ac_lo;;
19647 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
19648 See \`config.log' for more details." >&5
19649 echo "$as_me: error: cannot compute sizeof (char)
19650 See \`config.log' for more details." >&2;}
19651    { (exit 77); exit 77; }; } ;;
19652 esac
19653 else
19654   cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 $ac_includes_default
19661                    typedef char ac__type_sizeof_;
19662 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19663 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19664 #include <stdio.h>
19665 #include <stdlib.h>
19666 int
19667 main ()
19668 {
19669
19670   FILE *f = fopen ("conftest.val", "w");
19671   if (! f)
19672     return 1;
19673   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19674     {
19675       long int i = longval ();
19676       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19677         return 1;
19678       fprintf (f, "%ld\n", i);
19679     }
19680   else
19681     {
19682       unsigned long int i = ulongval ();
19683       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19684         return 1;
19685       fprintf (f, "%lu\n", i);
19686     }
19687   return ferror (f) || fclose (f) != 0;
19688
19689   ;
19690   return 0;
19691 }
19692 _ACEOF
19693 rm -f conftest$ac_exeext
19694 if { (ac_try="$ac_link"
19695 case "(($ac_try" in
19696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697   *) ac_try_echo=$ac_try;;
19698 esac
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700   (eval "$ac_link") 2>&5
19701   ac_status=$?
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19704   { (case "(($ac_try" in
19705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706   *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709   (eval "$ac_try") 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; }; then
19713   ac_cv_sizeof_char=`cat conftest.val`
19714 else
19715   echo "$as_me: program exited with status $ac_status" >&5
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719 ( exit $ac_status )
19720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
19721 See \`config.log' for more details." >&5
19722 echo "$as_me: error: cannot compute sizeof (char)
19723 See \`config.log' for more details." >&2;}
19724    { (exit 77); exit 77; }; }
19725 fi
19726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19727 fi
19728 rm -f conftest.val
19729 else
19730   ac_cv_sizeof_char=0
19731 fi
19732 fi
19733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
19734 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
19735 cat >>confdefs.h <<_ACEOF
19736 #define SIZEOF_CHAR $ac_cv_sizeof_char
19737 _ACEOF
19738
19739
19740 { echo "$as_me:$LINENO: checking for short" >&5
19741 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19742 if test "${ac_cv_type_short+set}" = set; then
19743   echo $ECHO_N "(cached) $ECHO_C" >&6
19744 else
19745   cat >conftest.$ac_ext <<_ACEOF
19746 /* confdefs.h.  */
19747 _ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h.  */
19751 $ac_includes_default
19752 typedef short ac__type_new_;
19753 int
19754 main ()
19755 {
19756 if ((ac__type_new_ *) 0)
19757   return 0;
19758 if (sizeof (ac__type_new_))
19759   return 0;
19760   ;
19761   return 0;
19762 }
19763 _ACEOF
19764 rm -f conftest.$ac_objext
19765 if { (ac_try="$ac_compile"
19766 case "(($ac_try" in
19767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768   *) ac_try_echo=$ac_try;;
19769 esac
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771   (eval "$ac_compile") 2>conftest.er1
19772   ac_status=$?
19773   grep -v '^ *+' conftest.er1 >conftest.err
19774   rm -f conftest.er1
19775   cat conftest.err >&5
19776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777   (exit $ac_status); } &&
19778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19779   { (case "(($ac_try" in
19780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781   *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784   (eval "$ac_try") 2>&5
19785   ac_status=$?
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); }; } &&
19788          { ac_try='test -s conftest.$ac_objext'
19789   { (case "(($ac_try" in
19790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791   *) ac_try_echo=$ac_try;;
19792 esac
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794   (eval "$ac_try") 2>&5
19795   ac_status=$?
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); }; }; then
19798   ac_cv_type_short=yes
19799 else
19800   echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19802
19803         ac_cv_type_short=no
19804 fi
19805
19806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19807 fi
19808 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19809 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19810
19811 { echo "$as_me:$LINENO: checking size of short" >&5
19812 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19813 if test "${ac_cv_sizeof_short+set}" = set; then
19814   echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816   if test "$ac_cv_type_short" = yes; then
19817   # The cast to long int works around a bug in the HP C Compiler
19818   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19819   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19820   # This bug is HP SR number 8606223364.
19821   if test "$cross_compiling" = yes; then
19822   # Depending upon the size, compute the lo and hi bounds.
19823 cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h.  */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h.  */
19829 $ac_includes_default
19830                    typedef short ac__type_sizeof_;
19831 int
19832 main ()
19833 {
19834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19835 test_array [0] = 0
19836
19837   ;
19838   return 0;
19839 }
19840 _ACEOF
19841 rm -f conftest.$ac_objext
19842 if { (ac_try="$ac_compile"
19843 case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_compile") 2>conftest.er1
19849   ac_status=$?
19850   grep -v '^ *+' conftest.er1 >conftest.err
19851   rm -f conftest.er1
19852   cat conftest.err >&5
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); } &&
19855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19856   { (case "(($ac_try" in
19857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858   *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861   (eval "$ac_try") 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); }; } &&
19865          { ac_try='test -s conftest.$ac_objext'
19866   { (case "(($ac_try" in
19867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868   *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871   (eval "$ac_try") 2>&5
19872   ac_status=$?
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); }; }; then
19875   ac_lo=0 ac_mid=0
19876   while :; do
19877     cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883 $ac_includes_default
19884                    typedef short ac__type_sizeof_;
19885 int
19886 main ()
19887 {
19888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19889 test_array [0] = 0
19890
19891   ;
19892   return 0;
19893 }
19894 _ACEOF
19895 rm -f conftest.$ac_objext
19896 if { (ac_try="$ac_compile"
19897 case "(($ac_try" in
19898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899   *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902   (eval "$ac_compile") 2>conftest.er1
19903   ac_status=$?
19904   grep -v '^ *+' conftest.er1 >conftest.err
19905   rm -f conftest.er1
19906   cat conftest.err >&5
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); } &&
19909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19910   { (case "(($ac_try" in
19911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912   *) ac_try_echo=$ac_try;;
19913 esac
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915   (eval "$ac_try") 2>&5
19916   ac_status=$?
19917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918   (exit $ac_status); }; } &&
19919          { ac_try='test -s conftest.$ac_objext'
19920   { (case "(($ac_try" in
19921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922   *) ac_try_echo=$ac_try;;
19923 esac
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925   (eval "$ac_try") 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); }; }; then
19929   ac_hi=$ac_mid; break
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934         ac_lo=`expr $ac_mid + 1`
19935                         if test $ac_lo -le $ac_mid; then
19936                           ac_lo= ac_hi=
19937                           break
19938                         fi
19939                         ac_mid=`expr 2 '*' $ac_mid + 1`
19940 fi
19941
19942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19943   done
19944 else
19945   echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19947
19948         cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 $ac_includes_default
19955                    typedef short ac__type_sizeof_;
19956 int
19957 main ()
19958 {
19959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19960 test_array [0] = 0
19961
19962   ;
19963   return 0;
19964 }
19965 _ACEOF
19966 rm -f conftest.$ac_objext
19967 if { (ac_try="$ac_compile"
19968 case "(($ac_try" in
19969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970   *) ac_try_echo=$ac_try;;
19971 esac
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973   (eval "$ac_compile") 2>conftest.er1
19974   ac_status=$?
19975   grep -v '^ *+' conftest.er1 >conftest.err
19976   rm -f conftest.er1
19977   cat conftest.err >&5
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); } &&
19980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19981   { (case "(($ac_try" in
19982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983   *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986   (eval "$ac_try") 2>&5
19987   ac_status=$?
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); }; } &&
19990          { ac_try='test -s conftest.$ac_objext'
19991   { (case "(($ac_try" in
19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993   *) ac_try_echo=$ac_try;;
19994 esac
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996   (eval "$ac_try") 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }; }; then
20000   ac_hi=-1 ac_mid=-1
20001   while :; do
20002     cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008 $ac_includes_default
20009                    typedef short ac__type_sizeof_;
20010 int
20011 main ()
20012 {
20013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20014 test_array [0] = 0
20015
20016   ;
20017   return 0;
20018 }
20019 _ACEOF
20020 rm -f conftest.$ac_objext
20021 if { (ac_try="$ac_compile"
20022 case "(($ac_try" in
20023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024   *) ac_try_echo=$ac_try;;
20025 esac
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027   (eval "$ac_compile") 2>conftest.er1
20028   ac_status=$?
20029   grep -v '^ *+' conftest.er1 >conftest.err
20030   rm -f conftest.er1
20031   cat conftest.err >&5
20032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033   (exit $ac_status); } &&
20034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20035   { (case "(($ac_try" in
20036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037   *) ac_try_echo=$ac_try;;
20038 esac
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040   (eval "$ac_try") 2>&5
20041   ac_status=$?
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); }; } &&
20044          { ac_try='test -s conftest.$ac_objext'
20045   { (case "(($ac_try" in
20046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047   *) ac_try_echo=$ac_try;;
20048 esac
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050   (eval "$ac_try") 2>&5
20051   ac_status=$?
20052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053   (exit $ac_status); }; }; then
20054   ac_lo=$ac_mid; break
20055 else
20056   echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20058
20059         ac_hi=`expr '(' $ac_mid ')' - 1`
20060                         if test $ac_mid -le $ac_hi; then
20061                           ac_lo= ac_hi=
20062                           break
20063                         fi
20064                         ac_mid=`expr 2 '*' $ac_mid`
20065 fi
20066
20067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20068   done
20069 else
20070   echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20072
20073         ac_lo= ac_hi=
20074 fi
20075
20076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077 fi
20078
20079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20080 # Binary search between lo and hi bounds.
20081 while test "x$ac_lo" != "x$ac_hi"; do
20082   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20083   cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089 $ac_includes_default
20090                    typedef short ac__type_sizeof_;
20091 int
20092 main ()
20093 {
20094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20095 test_array [0] = 0
20096
20097   ;
20098   return 0;
20099 }
20100 _ACEOF
20101 rm -f conftest.$ac_objext
20102 if { (ac_try="$ac_compile"
20103 case "(($ac_try" in
20104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105   *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108   (eval "$ac_compile") 2>conftest.er1
20109   ac_status=$?
20110   grep -v '^ *+' conftest.er1 >conftest.err
20111   rm -f conftest.er1
20112   cat conftest.err >&5
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); } &&
20115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20116   { (case "(($ac_try" in
20117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118   *) ac_try_echo=$ac_try;;
20119 esac
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121   (eval "$ac_try") 2>&5
20122   ac_status=$?
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); }; } &&
20125          { ac_try='test -s conftest.$ac_objext'
20126   { (case "(($ac_try" in
20127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128   *) ac_try_echo=$ac_try;;
20129 esac
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131   (eval "$ac_try") 2>&5
20132   ac_status=$?
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); }; }; then
20135   ac_hi=$ac_mid
20136 else
20137   echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20139
20140         ac_lo=`expr '(' $ac_mid ')' + 1`
20141 fi
20142
20143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20144 done
20145 case $ac_lo in
20146 ?*) ac_cv_sizeof_short=$ac_lo;;
20147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20148 See \`config.log' for more details." >&5
20149 echo "$as_me: error: cannot compute sizeof (short)
20150 See \`config.log' for more details." >&2;}
20151    { (exit 77); exit 77; }; } ;;
20152 esac
20153 else
20154   cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h.  */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h.  */
20160 $ac_includes_default
20161                    typedef short ac__type_sizeof_;
20162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20164 #include <stdio.h>
20165 #include <stdlib.h>
20166 int
20167 main ()
20168 {
20169
20170   FILE *f = fopen ("conftest.val", "w");
20171   if (! f)
20172     return 1;
20173   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20174     {
20175       long int i = longval ();
20176       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20177         return 1;
20178       fprintf (f, "%ld\n", i);
20179     }
20180   else
20181     {
20182       unsigned long int i = ulongval ();
20183       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20184         return 1;
20185       fprintf (f, "%lu\n", i);
20186     }
20187   return ferror (f) || fclose (f) != 0;
20188
20189   ;
20190   return 0;
20191 }
20192 _ACEOF
20193 rm -f conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200   (eval "$ac_link") 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20204   { (case "(($ac_try" in
20205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206   *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209   (eval "$ac_try") 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); }; }; then
20213   ac_cv_sizeof_short=`cat conftest.val`
20214 else
20215   echo "$as_me: program exited with status $ac_status" >&5
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 ( exit $ac_status )
20220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20221 See \`config.log' for more details." >&5
20222 echo "$as_me: error: cannot compute sizeof (short)
20223 See \`config.log' for more details." >&2;}
20224    { (exit 77); exit 77; }; }
20225 fi
20226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20227 fi
20228 rm -f conftest.val
20229 else
20230   ac_cv_sizeof_short=0
20231 fi
20232 fi
20233 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20234 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20235 cat >>confdefs.h <<_ACEOF
20236 #define SIZEOF_SHORT $ac_cv_sizeof_short
20237 _ACEOF
20238
20239
20240 { echo "$as_me:$LINENO: checking for void *" >&5
20241 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20242 if test "${ac_cv_type_void_p+set}" = set; then
20243   echo $ECHO_N "(cached) $ECHO_C" >&6
20244 else
20245   cat >conftest.$ac_ext <<_ACEOF
20246 /* confdefs.h.  */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h.  */
20251 $ac_includes_default
20252 typedef void * ac__type_new_;
20253 int
20254 main ()
20255 {
20256 if ((ac__type_new_ *) 0)
20257   return 0;
20258 if (sizeof (ac__type_new_))
20259   return 0;
20260   ;
20261   return 0;
20262 }
20263 _ACEOF
20264 rm -f conftest.$ac_objext
20265 if { (ac_try="$ac_compile"
20266 case "(($ac_try" in
20267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268   *) ac_try_echo=$ac_try;;
20269 esac
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271   (eval "$ac_compile") 2>conftest.er1
20272   ac_status=$?
20273   grep -v '^ *+' conftest.er1 >conftest.err
20274   rm -f conftest.er1
20275   cat conftest.err >&5
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); } &&
20278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20279   { (case "(($ac_try" in
20280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281   *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284   (eval "$ac_try") 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; } &&
20288          { ac_try='test -s conftest.$ac_objext'
20289   { (case "(($ac_try" in
20290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291   *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294   (eval "$ac_try") 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); }; }; then
20298   ac_cv_type_void_p=yes
20299 else
20300   echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20302
20303         ac_cv_type_void_p=no
20304 fi
20305
20306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20307 fi
20308 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20309 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20310
20311 { echo "$as_me:$LINENO: checking size of void *" >&5
20312 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20313 if test "${ac_cv_sizeof_void_p+set}" = set; then
20314   echo $ECHO_N "(cached) $ECHO_C" >&6
20315 else
20316   if test "$ac_cv_type_void_p" = yes; then
20317   # The cast to long int works around a bug in the HP C Compiler
20318   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20319   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20320   # This bug is HP SR number 8606223364.
20321   if test "$cross_compiling" = yes; then
20322   # Depending upon the size, compute the lo and hi bounds.
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329 $ac_includes_default
20330                    typedef void * ac__type_sizeof_;
20331 int
20332 main ()
20333 {
20334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20335 test_array [0] = 0
20336
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext
20342 if { (ac_try="$ac_compile"
20343 case "(($ac_try" in
20344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345   *) ac_try_echo=$ac_try;;
20346 esac
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348   (eval "$ac_compile") 2>conftest.er1
20349   ac_status=$?
20350   grep -v '^ *+' conftest.er1 >conftest.err
20351   rm -f conftest.er1
20352   cat conftest.err >&5
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); } &&
20355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20356   { (case "(($ac_try" in
20357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358   *) ac_try_echo=$ac_try;;
20359 esac
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361   (eval "$ac_try") 2>&5
20362   ac_status=$?
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); }; } &&
20365          { ac_try='test -s conftest.$ac_objext'
20366   { (case "(($ac_try" in
20367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368   *) ac_try_echo=$ac_try;;
20369 esac
20370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371   (eval "$ac_try") 2>&5
20372   ac_status=$?
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); }; }; then
20375   ac_lo=0 ac_mid=0
20376   while :; do
20377     cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383 $ac_includes_default
20384                    typedef void * ac__type_sizeof_;
20385 int
20386 main ()
20387 {
20388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20389 test_array [0] = 0
20390
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 rm -f conftest.$ac_objext
20396 if { (ac_try="$ac_compile"
20397 case "(($ac_try" in
20398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399   *) ac_try_echo=$ac_try;;
20400 esac
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402   (eval "$ac_compile") 2>conftest.er1
20403   ac_status=$?
20404   grep -v '^ *+' conftest.er1 >conftest.err
20405   rm -f conftest.er1
20406   cat conftest.err >&5
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); } &&
20409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20410   { (case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_try") 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); }; } &&
20419          { ac_try='test -s conftest.$ac_objext'
20420   { (case "(($ac_try" in
20421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422   *) ac_try_echo=$ac_try;;
20423 esac
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425   (eval "$ac_try") 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; }; then
20429   ac_hi=$ac_mid; break
20430 else
20431   echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434         ac_lo=`expr $ac_mid + 1`
20435                         if test $ac_lo -le $ac_mid; then
20436                           ac_lo= ac_hi=
20437                           break
20438                         fi
20439                         ac_mid=`expr 2 '*' $ac_mid + 1`
20440 fi
20441
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443   done
20444 else
20445   echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447
20448         cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h.  */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h.  */
20454 $ac_includes_default
20455                    typedef void * ac__type_sizeof_;
20456 int
20457 main ()
20458 {
20459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20460 test_array [0] = 0
20461
20462   ;
20463   return 0;
20464 }
20465 _ACEOF
20466 rm -f conftest.$ac_objext
20467 if { (ac_try="$ac_compile"
20468 case "(($ac_try" in
20469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470   *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473   (eval "$ac_compile") 2>conftest.er1
20474   ac_status=$?
20475   grep -v '^ *+' conftest.er1 >conftest.err
20476   rm -f conftest.er1
20477   cat conftest.err >&5
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); } &&
20480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20481   { (case "(($ac_try" in
20482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483   *) ac_try_echo=$ac_try;;
20484 esac
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486   (eval "$ac_try") 2>&5
20487   ac_status=$?
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); }; } &&
20490          { ac_try='test -s conftest.$ac_objext'
20491   { (case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_try") 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); }; }; then
20500   ac_hi=-1 ac_mid=-1
20501   while :; do
20502     cat >conftest.$ac_ext <<_ACEOF
20503 /* confdefs.h.  */
20504 _ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h.  */
20508 $ac_includes_default
20509                    typedef void * ac__type_sizeof_;
20510 int
20511 main ()
20512 {
20513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20514 test_array [0] = 0
20515
20516   ;
20517   return 0;
20518 }
20519 _ACEOF
20520 rm -f conftest.$ac_objext
20521 if { (ac_try="$ac_compile"
20522 case "(($ac_try" in
20523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524   *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527   (eval "$ac_compile") 2>conftest.er1
20528   ac_status=$?
20529   grep -v '^ *+' conftest.er1 >conftest.err
20530   rm -f conftest.er1
20531   cat conftest.err >&5
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); } &&
20534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20535   { (case "(($ac_try" in
20536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537   *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540   (eval "$ac_try") 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; } &&
20544          { ac_try='test -s conftest.$ac_objext'
20545   { (case "(($ac_try" in
20546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547   *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550   (eval "$ac_try") 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; }; then
20554   ac_lo=$ac_mid; break
20555 else
20556   echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559         ac_hi=`expr '(' $ac_mid ')' - 1`
20560                         if test $ac_mid -le $ac_hi; then
20561                           ac_lo= ac_hi=
20562                           break
20563                         fi
20564                         ac_mid=`expr 2 '*' $ac_mid`
20565 fi
20566
20567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20568   done
20569 else
20570   echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20572
20573         ac_lo= ac_hi=
20574 fi
20575
20576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20577 fi
20578
20579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580 # Binary search between lo and hi bounds.
20581 while test "x$ac_lo" != "x$ac_hi"; do
20582   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20583   cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h.  */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h.  */
20589 $ac_includes_default
20590                    typedef void * ac__type_sizeof_;
20591 int
20592 main ()
20593 {
20594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20595 test_array [0] = 0
20596
20597   ;
20598   return 0;
20599 }
20600 _ACEOF
20601 rm -f conftest.$ac_objext
20602 if { (ac_try="$ac_compile"
20603 case "(($ac_try" in
20604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605   *) ac_try_echo=$ac_try;;
20606 esac
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608   (eval "$ac_compile") 2>conftest.er1
20609   ac_status=$?
20610   grep -v '^ *+' conftest.er1 >conftest.err
20611   rm -f conftest.er1
20612   cat conftest.err >&5
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); } &&
20615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20616   { (case "(($ac_try" in
20617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618   *) ac_try_echo=$ac_try;;
20619 esac
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621   (eval "$ac_try") 2>&5
20622   ac_status=$?
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); }; } &&
20625          { ac_try='test -s conftest.$ac_objext'
20626   { (case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_try") 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); }; }; then
20635   ac_hi=$ac_mid
20636 else
20637   echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20639
20640         ac_lo=`expr '(' $ac_mid ')' + 1`
20641 fi
20642
20643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644 done
20645 case $ac_lo in
20646 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20647 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20648 See \`config.log' for more details." >&5
20649 echo "$as_me: error: cannot compute sizeof (void *)
20650 See \`config.log' for more details." >&2;}
20651    { (exit 77); exit 77; }; } ;;
20652 esac
20653 else
20654   cat >conftest.$ac_ext <<_ACEOF
20655 /* confdefs.h.  */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h.  */
20660 $ac_includes_default
20661                    typedef void * ac__type_sizeof_;
20662 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20663 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20664 #include <stdio.h>
20665 #include <stdlib.h>
20666 int
20667 main ()
20668 {
20669
20670   FILE *f = fopen ("conftest.val", "w");
20671   if (! f)
20672     return 1;
20673   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20674     {
20675       long int i = longval ();
20676       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20677         return 1;
20678       fprintf (f, "%ld\n", i);
20679     }
20680   else
20681     {
20682       unsigned long int i = ulongval ();
20683       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20684         return 1;
20685       fprintf (f, "%lu\n", i);
20686     }
20687   return ferror (f) || fclose (f) != 0;
20688
20689   ;
20690   return 0;
20691 }
20692 _ACEOF
20693 rm -f conftest$ac_exeext
20694 if { (ac_try="$ac_link"
20695 case "(($ac_try" in
20696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697   *) ac_try_echo=$ac_try;;
20698 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700   (eval "$ac_link") 2>&5
20701   ac_status=$?
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20704   { (case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709   (eval "$ac_try") 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; }; then
20713   ac_cv_sizeof_void_p=`cat conftest.val`
20714 else
20715   echo "$as_me: program exited with status $ac_status" >&5
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719 ( exit $ac_status )
20720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20721 See \`config.log' for more details." >&5
20722 echo "$as_me: error: cannot compute sizeof (void *)
20723 See \`config.log' for more details." >&2;}
20724    { (exit 77); exit 77; }; }
20725 fi
20726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20727 fi
20728 rm -f conftest.val
20729 else
20730   ac_cv_sizeof_void_p=0
20731 fi
20732 fi
20733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20734 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20735 cat >>confdefs.h <<_ACEOF
20736 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20737 _ACEOF
20738
20739
20740 { echo "$as_me:$LINENO: checking for int" >&5
20741 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20742 if test "${ac_cv_type_int+set}" = set; then
20743   echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745   cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751 $ac_includes_default
20752 typedef int ac__type_new_;
20753 int
20754 main ()
20755 {
20756 if ((ac__type_new_ *) 0)
20757   return 0;
20758 if (sizeof (ac__type_new_))
20759   return 0;
20760   ;
20761   return 0;
20762 }
20763 _ACEOF
20764 rm -f conftest.$ac_objext
20765 if { (ac_try="$ac_compile"
20766 case "(($ac_try" in
20767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20768   *) ac_try_echo=$ac_try;;
20769 esac
20770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20771   (eval "$ac_compile") 2>conftest.er1
20772   ac_status=$?
20773   grep -v '^ *+' conftest.er1 >conftest.err
20774   rm -f conftest.er1
20775   cat conftest.err >&5
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); } &&
20778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20779   { (case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784   (eval "$ac_try") 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; } &&
20788          { ac_try='test -s conftest.$ac_objext'
20789   { (case "(($ac_try" in
20790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791   *) ac_try_echo=$ac_try;;
20792 esac
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794   (eval "$ac_try") 2>&5
20795   ac_status=$?
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); }; }; then
20798   ac_cv_type_int=yes
20799 else
20800   echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20802
20803         ac_cv_type_int=no
20804 fi
20805
20806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20807 fi
20808 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20809 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20810
20811 { echo "$as_me:$LINENO: checking size of int" >&5
20812 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20813 if test "${ac_cv_sizeof_int+set}" = set; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816   if test "$ac_cv_type_int" = yes; then
20817   # The cast to long int works around a bug in the HP C Compiler
20818   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20819   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20820   # This bug is HP SR number 8606223364.
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 int 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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20856   { (case "(($ac_try" in
20857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858   *) ac_try_echo=$ac_try;;
20859 esac
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861   (eval "$ac_try") 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); }; } &&
20865          { ac_try='test -s conftest.$ac_objext'
20866   { (case "(($ac_try" in
20867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868   *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871   (eval "$ac_try") 2>&5
20872   ac_status=$?
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); }; }; then
20875   ac_lo=0 ac_mid=0
20876   while :; do
20877     cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h.  */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h.  */
20883 $ac_includes_default
20884                    typedef int ac__type_sizeof_;
20885 int
20886 main ()
20887 {
20888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20889 test_array [0] = 0
20890
20891   ;
20892   return 0;
20893 }
20894 _ACEOF
20895 rm -f conftest.$ac_objext
20896 if { (ac_try="$ac_compile"
20897 case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_compile") 2>conftest.er1
20903   ac_status=$?
20904   grep -v '^ *+' conftest.er1 >conftest.err
20905   rm -f conftest.er1
20906   cat conftest.err >&5
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); } &&
20909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20910   { (case "(($ac_try" in
20911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912   *) ac_try_echo=$ac_try;;
20913 esac
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915   (eval "$ac_try") 2>&5
20916   ac_status=$?
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); }; } &&
20919          { ac_try='test -s conftest.$ac_objext'
20920   { (case "(($ac_try" in
20921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922   *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925   (eval "$ac_try") 2>&5
20926   ac_status=$?
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); }; }; then
20929   ac_hi=$ac_mid; break
20930 else
20931   echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934         ac_lo=`expr $ac_mid + 1`
20935                         if test $ac_lo -le $ac_mid; then
20936                           ac_lo= ac_hi=
20937                           break
20938                         fi
20939                         ac_mid=`expr 2 '*' $ac_mid + 1`
20940 fi
20941
20942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943   done
20944 else
20945   echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948         cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20954 $ac_includes_default
20955                    typedef int ac__type_sizeof_;
20956 int
20957 main ()
20958 {
20959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20960 test_array [0] = 0
20961
20962   ;
20963   return 0;
20964 }
20965 _ACEOF
20966 rm -f conftest.$ac_objext
20967 if { (ac_try="$ac_compile"
20968 case "(($ac_try" in
20969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970   *) ac_try_echo=$ac_try;;
20971 esac
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973   (eval "$ac_compile") 2>conftest.er1
20974   ac_status=$?
20975   grep -v '^ *+' conftest.er1 >conftest.err
20976   rm -f conftest.er1
20977   cat conftest.err >&5
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); } &&
20980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20981   { (case "(($ac_try" in
20982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983   *) ac_try_echo=$ac_try;;
20984 esac
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986   (eval "$ac_try") 2>&5
20987   ac_status=$?
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); }; } &&
20990          { ac_try='test -s conftest.$ac_objext'
20991   { (case "(($ac_try" in
20992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993   *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996   (eval "$ac_try") 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); }; }; then
21000   ac_hi=-1 ac_mid=-1
21001   while :; do
21002     cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 $ac_includes_default
21009                    typedef int ac__type_sizeof_;
21010 int
21011 main ()
21012 {
21013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21014 test_array [0] = 0
21015
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext
21021 if { (ac_try="$ac_compile"
21022 case "(($ac_try" in
21023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024   *) ac_try_echo=$ac_try;;
21025 esac
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027   (eval "$ac_compile") 2>conftest.er1
21028   ac_status=$?
21029   grep -v '^ *+' conftest.er1 >conftest.err
21030   rm -f conftest.er1
21031   cat conftest.err >&5
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); } &&
21034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
21041   ac_status=$?
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); }; } &&
21044          { ac_try='test -s conftest.$ac_objext'
21045   { (case "(($ac_try" in
21046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047   *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050   (eval "$ac_try") 2>&5
21051   ac_status=$?
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); }; }; then
21054   ac_lo=$ac_mid; break
21055 else
21056   echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059         ac_hi=`expr '(' $ac_mid ')' - 1`
21060                         if test $ac_mid -le $ac_hi; then
21061                           ac_lo= ac_hi=
21062                           break
21063                         fi
21064                         ac_mid=`expr 2 '*' $ac_mid`
21065 fi
21066
21067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21068   done
21069 else
21070   echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21072
21073         ac_lo= ac_hi=
21074 fi
21075
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 fi
21078
21079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 # Binary search between lo and hi bounds.
21081 while test "x$ac_lo" != "x$ac_hi"; do
21082   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21083   cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089 $ac_includes_default
21090                    typedef int ac__type_sizeof_;
21091 int
21092 main ()
21093 {
21094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21095 test_array [0] = 0
21096
21097   ;
21098   return 0;
21099 }
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105   *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108   (eval "$ac_compile") 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } &&
21115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21116   { (case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_try") 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); }; } &&
21125          { ac_try='test -s conftest.$ac_objext'
21126   { (case "(($ac_try" in
21127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128   *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131   (eval "$ac_try") 2>&5
21132   ac_status=$?
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); }; }; then
21135   ac_hi=$ac_mid
21136 else
21137   echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21139
21140         ac_lo=`expr '(' $ac_mid ')' + 1`
21141 fi
21142
21143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21144 done
21145 case $ac_lo in
21146 ?*) ac_cv_sizeof_int=$ac_lo;;
21147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21148 See \`config.log' for more details." >&5
21149 echo "$as_me: error: cannot compute sizeof (int)
21150 See \`config.log' for more details." >&2;}
21151    { (exit 77); exit 77; }; } ;;
21152 esac
21153 else
21154   cat >conftest.$ac_ext <<_ACEOF
21155 /* confdefs.h.  */
21156 _ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h.  */
21160 $ac_includes_default
21161                    typedef int ac__type_sizeof_;
21162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21164 #include <stdio.h>
21165 #include <stdlib.h>
21166 int
21167 main ()
21168 {
21169
21170   FILE *f = fopen ("conftest.val", "w");
21171   if (! f)
21172     return 1;
21173   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21174     {
21175       long int i = longval ();
21176       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21177         return 1;
21178       fprintf (f, "%ld\n", i);
21179     }
21180   else
21181     {
21182       unsigned long int i = ulongval ();
21183       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21184         return 1;
21185       fprintf (f, "%lu\n", i);
21186     }
21187   return ferror (f) || fclose (f) != 0;
21188
21189   ;
21190   return 0;
21191 }
21192 _ACEOF
21193 rm -f conftest$ac_exeext
21194 if { (ac_try="$ac_link"
21195 case "(($ac_try" in
21196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197   *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200   (eval "$ac_link") 2>&5
21201   ac_status=$?
21202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21204   { (case "(($ac_try" in
21205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206   *) ac_try_echo=$ac_try;;
21207 esac
21208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21209   (eval "$ac_try") 2>&5
21210   ac_status=$?
21211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); }; }; then
21213   ac_cv_sizeof_int=`cat conftest.val`
21214 else
21215   echo "$as_me: program exited with status $ac_status" >&5
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21218
21219 ( exit $ac_status )
21220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21221 See \`config.log' for more details." >&5
21222 echo "$as_me: error: cannot compute sizeof (int)
21223 See \`config.log' for more details." >&2;}
21224    { (exit 77); exit 77; }; }
21225 fi
21226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21227 fi
21228 rm -f conftest.val
21229 else
21230   ac_cv_sizeof_int=0
21231 fi
21232 fi
21233 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21234 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21235 cat >>confdefs.h <<_ACEOF
21236 #define SIZEOF_INT $ac_cv_sizeof_int
21237 _ACEOF
21238
21239
21240 { echo "$as_me:$LINENO: checking for long" >&5
21241 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21242 if test "${ac_cv_type_long+set}" = set; then
21243   echo $ECHO_N "(cached) $ECHO_C" >&6
21244 else
21245   cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251 $ac_includes_default
21252 typedef long ac__type_new_;
21253 int
21254 main ()
21255 {
21256 if ((ac__type_new_ *) 0)
21257   return 0;
21258 if (sizeof (ac__type_new_))
21259   return 0;
21260   ;
21261   return 0;
21262 }
21263 _ACEOF
21264 rm -f conftest.$ac_objext
21265 if { (ac_try="$ac_compile"
21266 case "(($ac_try" in
21267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268   *) ac_try_echo=$ac_try;;
21269 esac
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271   (eval "$ac_compile") 2>conftest.er1
21272   ac_status=$?
21273   grep -v '^ *+' conftest.er1 >conftest.err
21274   rm -f conftest.er1
21275   cat conftest.err >&5
21276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277   (exit $ac_status); } &&
21278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21279   { (case "(($ac_try" in
21280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281   *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284   (eval "$ac_try") 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); }; } &&
21288          { ac_try='test -s conftest.$ac_objext'
21289   { (case "(($ac_try" in
21290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291   *) ac_try_echo=$ac_try;;
21292 esac
21293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21294   (eval "$ac_try") 2>&5
21295   ac_status=$?
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); }; }; then
21298   ac_cv_type_long=yes
21299 else
21300   echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303         ac_cv_type_long=no
21304 fi
21305
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 fi
21308 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21309 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21310
21311 { echo "$as_me:$LINENO: checking size of long" >&5
21312 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21313 if test "${ac_cv_sizeof_long+set}" = set; then
21314   echo $ECHO_N "(cached) $ECHO_C" >&6
21315 else
21316   if test "$ac_cv_type_long" = yes; then
21317   # The cast to long int works around a bug in the HP C Compiler
21318   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21319   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21320   # This bug is HP SR number 8606223364.
21321   if test "$cross_compiling" = yes; then
21322   # Depending upon the size, compute the lo and hi bounds.
21323 cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h.  */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h.  */
21329 $ac_includes_default
21330                    typedef long ac__type_sizeof_;
21331 int
21332 main ()
21333 {
21334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21335 test_array [0] = 0
21336
21337   ;
21338   return 0;
21339 }
21340 _ACEOF
21341 rm -f conftest.$ac_objext
21342 if { (ac_try="$ac_compile"
21343 case "(($ac_try" in
21344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345   *) ac_try_echo=$ac_try;;
21346 esac
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348   (eval "$ac_compile") 2>conftest.er1
21349   ac_status=$?
21350   grep -v '^ *+' conftest.er1 >conftest.err
21351   rm -f conftest.er1
21352   cat conftest.err >&5
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); } &&
21355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21356   { (case "(($ac_try" in
21357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358   *) ac_try_echo=$ac_try;;
21359 esac
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361   (eval "$ac_try") 2>&5
21362   ac_status=$?
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); }; } &&
21365          { ac_try='test -s conftest.$ac_objext'
21366   { (case "(($ac_try" in
21367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368   *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371   (eval "$ac_try") 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); }; }; then
21375   ac_lo=0 ac_mid=0
21376   while :; do
21377     cat >conftest.$ac_ext <<_ACEOF
21378 /* confdefs.h.  */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h.  */
21383 $ac_includes_default
21384                    typedef long ac__type_sizeof_;
21385 int
21386 main ()
21387 {
21388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21389 test_array [0] = 0
21390
21391   ;
21392   return 0;
21393 }
21394 _ACEOF
21395 rm -f conftest.$ac_objext
21396 if { (ac_try="$ac_compile"
21397 case "(($ac_try" in
21398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399   *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402   (eval "$ac_compile") 2>conftest.er1
21403   ac_status=$?
21404   grep -v '^ *+' conftest.er1 >conftest.err
21405   rm -f conftest.er1
21406   cat conftest.err >&5
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); } &&
21409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21410   { (case "(($ac_try" in
21411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412   *) ac_try_echo=$ac_try;;
21413 esac
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415   (eval "$ac_try") 2>&5
21416   ac_status=$?
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); }; } &&
21419          { ac_try='test -s conftest.$ac_objext'
21420   { (case "(($ac_try" in
21421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422   *) ac_try_echo=$ac_try;;
21423 esac
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425   (eval "$ac_try") 2>&5
21426   ac_status=$?
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); }; }; then
21429   ac_hi=$ac_mid; break
21430 else
21431   echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21433
21434         ac_lo=`expr $ac_mid + 1`
21435                         if test $ac_lo -le $ac_mid; then
21436                           ac_lo= ac_hi=
21437                           break
21438                         fi
21439                         ac_mid=`expr 2 '*' $ac_mid + 1`
21440 fi
21441
21442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21443   done
21444 else
21445   echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21447
21448         cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h.  */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h.  */
21454 $ac_includes_default
21455                    typedef long ac__type_sizeof_;
21456 int
21457 main ()
21458 {
21459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21460 test_array [0] = 0
21461
21462   ;
21463   return 0;
21464 }
21465 _ACEOF
21466 rm -f conftest.$ac_objext
21467 if { (ac_try="$ac_compile"
21468 case "(($ac_try" in
21469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470   *) ac_try_echo=$ac_try;;
21471 esac
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473   (eval "$ac_compile") 2>conftest.er1
21474   ac_status=$?
21475   grep -v '^ *+' conftest.er1 >conftest.err
21476   rm -f conftest.er1
21477   cat conftest.err >&5
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); } &&
21480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21481   { (case "(($ac_try" in
21482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483   *) ac_try_echo=$ac_try;;
21484 esac
21485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486   (eval "$ac_try") 2>&5
21487   ac_status=$?
21488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489   (exit $ac_status); }; } &&
21490          { ac_try='test -s conftest.$ac_objext'
21491   { (case "(($ac_try" in
21492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493   *) ac_try_echo=$ac_try;;
21494 esac
21495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496   (eval "$ac_try") 2>&5
21497   ac_status=$?
21498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499   (exit $ac_status); }; }; then
21500   ac_hi=-1 ac_mid=-1
21501   while :; do
21502     cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h.  */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h.  */
21508 $ac_includes_default
21509                    typedef long ac__type_sizeof_;
21510 int
21511 main ()
21512 {
21513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21514 test_array [0] = 0
21515
21516   ;
21517   return 0;
21518 }
21519 _ACEOF
21520 rm -f conftest.$ac_objext
21521 if { (ac_try="$ac_compile"
21522 case "(($ac_try" in
21523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524   *) ac_try_echo=$ac_try;;
21525 esac
21526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21527   (eval "$ac_compile") 2>conftest.er1
21528   ac_status=$?
21529   grep -v '^ *+' conftest.er1 >conftest.err
21530   rm -f conftest.er1
21531   cat conftest.err >&5
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); } &&
21534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21535   { (case "(($ac_try" in
21536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537   *) ac_try_echo=$ac_try;;
21538 esac
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540   (eval "$ac_try") 2>&5
21541   ac_status=$?
21542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543   (exit $ac_status); }; } &&
21544          { ac_try='test -s conftest.$ac_objext'
21545   { (case "(($ac_try" in
21546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547   *) ac_try_echo=$ac_try;;
21548 esac
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550   (eval "$ac_try") 2>&5
21551   ac_status=$?
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); }; }; then
21554   ac_lo=$ac_mid; break
21555 else
21556   echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559         ac_hi=`expr '(' $ac_mid ')' - 1`
21560                         if test $ac_mid -le $ac_hi; then
21561                           ac_lo= ac_hi=
21562                           break
21563                         fi
21564                         ac_mid=`expr 2 '*' $ac_mid`
21565 fi
21566
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568   done
21569 else
21570   echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573         ac_lo= ac_hi=
21574 fi
21575
21576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21577 fi
21578
21579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21580 # Binary search between lo and hi bounds.
21581 while test "x$ac_lo" != "x$ac_hi"; do
21582   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21583   cat >conftest.$ac_ext <<_ACEOF
21584 /* confdefs.h.  */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h.  */
21589 $ac_includes_default
21590                    typedef long ac__type_sizeof_;
21591 int
21592 main ()
21593 {
21594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21595 test_array [0] = 0
21596
21597   ;
21598   return 0;
21599 }
21600 _ACEOF
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605   *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608   (eval "$ac_compile") 2>conftest.er1
21609   ac_status=$?
21610   grep -v '^ *+' conftest.er1 >conftest.err
21611   rm -f conftest.er1
21612   cat conftest.err >&5
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); } &&
21615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21616   { (case "(($ac_try" in
21617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618   *) ac_try_echo=$ac_try;;
21619 esac
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621   (eval "$ac_try") 2>&5
21622   ac_status=$?
21623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624   (exit $ac_status); }; } &&
21625          { ac_try='test -s conftest.$ac_objext'
21626   { (case "(($ac_try" in
21627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628   *) ac_try_echo=$ac_try;;
21629 esac
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631   (eval "$ac_try") 2>&5
21632   ac_status=$?
21633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634   (exit $ac_status); }; }; then
21635   ac_hi=$ac_mid
21636 else
21637   echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21639
21640         ac_lo=`expr '(' $ac_mid ')' + 1`
21641 fi
21642
21643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644 done
21645 case $ac_lo in
21646 ?*) ac_cv_sizeof_long=$ac_lo;;
21647 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21648 See \`config.log' for more details." >&5
21649 echo "$as_me: error: cannot compute sizeof (long)
21650 See \`config.log' for more details." >&2;}
21651    { (exit 77); exit 77; }; } ;;
21652 esac
21653 else
21654   cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660 $ac_includes_default
21661                    typedef long ac__type_sizeof_;
21662 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21663 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21664 #include <stdio.h>
21665 #include <stdlib.h>
21666 int
21667 main ()
21668 {
21669
21670   FILE *f = fopen ("conftest.val", "w");
21671   if (! f)
21672     return 1;
21673   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21674     {
21675       long int i = longval ();
21676       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21677         return 1;
21678       fprintf (f, "%ld\n", i);
21679     }
21680   else
21681     {
21682       unsigned long int i = ulongval ();
21683       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21684         return 1;
21685       fprintf (f, "%lu\n", i);
21686     }
21687   return ferror (f) || fclose (f) != 0;
21688
21689   ;
21690   return 0;
21691 }
21692 _ACEOF
21693 rm -f conftest$ac_exeext
21694 if { (ac_try="$ac_link"
21695 case "(($ac_try" in
21696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697   *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700   (eval "$ac_link") 2>&5
21701   ac_status=$?
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21704   { (case "(($ac_try" in
21705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706   *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709   (eval "$ac_try") 2>&5
21710   ac_status=$?
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); }; }; then
21713   ac_cv_sizeof_long=`cat conftest.val`
21714 else
21715   echo "$as_me: program exited with status $ac_status" >&5
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21718
21719 ( exit $ac_status )
21720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21721 See \`config.log' for more details." >&5
21722 echo "$as_me: error: cannot compute sizeof (long)
21723 See \`config.log' for more details." >&2;}
21724    { (exit 77); exit 77; }; }
21725 fi
21726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21727 fi
21728 rm -f conftest.val
21729 else
21730   ac_cv_sizeof_long=0
21731 fi
21732 fi
21733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21734 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21735 cat >>confdefs.h <<_ACEOF
21736 #define SIZEOF_LONG $ac_cv_sizeof_long
21737 _ACEOF
21738
21739
21740 { echo "$as_me:$LINENO: checking for size_t" >&5
21741 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21742 if test "${ac_cv_type_size_t+set}" = set; then
21743   echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745   cat >conftest.$ac_ext <<_ACEOF
21746 /* confdefs.h.  */
21747 _ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h.  */
21751 $ac_includes_default
21752 typedef size_t ac__type_new_;
21753 int
21754 main ()
21755 {
21756 if ((ac__type_new_ *) 0)
21757   return 0;
21758 if (sizeof (ac__type_new_))
21759   return 0;
21760   ;
21761   return 0;
21762 }
21763 _ACEOF
21764 rm -f conftest.$ac_objext
21765 if { (ac_try="$ac_compile"
21766 case "(($ac_try" in
21767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768   *) ac_try_echo=$ac_try;;
21769 esac
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771   (eval "$ac_compile") 2>conftest.er1
21772   ac_status=$?
21773   grep -v '^ *+' conftest.er1 >conftest.err
21774   rm -f conftest.er1
21775   cat conftest.err >&5
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); } &&
21778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21779   { (case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784   (eval "$ac_try") 2>&5
21785   ac_status=$?
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); }; } &&
21788          { ac_try='test -s conftest.$ac_objext'
21789   { (case "(($ac_try" in
21790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791   *) ac_try_echo=$ac_try;;
21792 esac
21793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21794   (eval "$ac_try") 2>&5
21795   ac_status=$?
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); }; }; then
21798   ac_cv_type_size_t=yes
21799 else
21800   echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21802
21803         ac_cv_type_size_t=no
21804 fi
21805
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807 fi
21808 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21809 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21810
21811 { echo "$as_me:$LINENO: checking size of size_t" >&5
21812 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21813 if test "${ac_cv_sizeof_size_t+set}" = set; then
21814   echo $ECHO_N "(cached) $ECHO_C" >&6
21815 else
21816   if test "$ac_cv_type_size_t" = yes; then
21817   # The cast to long int works around a bug in the HP C Compiler
21818   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21819   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21820   # This bug is HP SR number 8606223364.
21821   if test "$cross_compiling" = yes; then
21822   # Depending upon the size, compute the lo and hi bounds.
21823 cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h.  */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h.  */
21829 $ac_includes_default
21830                    typedef size_t ac__type_sizeof_;
21831 int
21832 main ()
21833 {
21834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21835 test_array [0] = 0
21836
21837   ;
21838   return 0;
21839 }
21840 _ACEOF
21841 rm -f conftest.$ac_objext
21842 if { (ac_try="$ac_compile"
21843 case "(($ac_try" in
21844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845   *) ac_try_echo=$ac_try;;
21846 esac
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848   (eval "$ac_compile") 2>conftest.er1
21849   ac_status=$?
21850   grep -v '^ *+' conftest.er1 >conftest.err
21851   rm -f conftest.er1
21852   cat conftest.err >&5
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } &&
21855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21856   { (case "(($ac_try" in
21857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858   *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861   (eval "$ac_try") 2>&5
21862   ac_status=$?
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); }; } &&
21865          { ac_try='test -s conftest.$ac_objext'
21866   { (case "(($ac_try" in
21867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868   *) ac_try_echo=$ac_try;;
21869 esac
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871   (eval "$ac_try") 2>&5
21872   ac_status=$?
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); }; }; then
21875   ac_lo=0 ac_mid=0
21876   while :; do
21877     cat >conftest.$ac_ext <<_ACEOF
21878 /* confdefs.h.  */
21879 _ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h.  */
21883 $ac_includes_default
21884                    typedef size_t ac__type_sizeof_;
21885 int
21886 main ()
21887 {
21888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21889 test_array [0] = 0
21890
21891   ;
21892   return 0;
21893 }
21894 _ACEOF
21895 rm -f conftest.$ac_objext
21896 if { (ac_try="$ac_compile"
21897 case "(($ac_try" in
21898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899   *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902   (eval "$ac_compile") 2>conftest.er1
21903   ac_status=$?
21904   grep -v '^ *+' conftest.er1 >conftest.err
21905   rm -f conftest.er1
21906   cat conftest.err >&5
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } &&
21909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21910   { (case "(($ac_try" in
21911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912   *) ac_try_echo=$ac_try;;
21913 esac
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915   (eval "$ac_try") 2>&5
21916   ac_status=$?
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); }; } &&
21919          { ac_try='test -s conftest.$ac_objext'
21920   { (case "(($ac_try" in
21921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922   *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925   (eval "$ac_try") 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; }; then
21929   ac_hi=$ac_mid; break
21930 else
21931   echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934         ac_lo=`expr $ac_mid + 1`
21935                         if test $ac_lo -le $ac_mid; then
21936                           ac_lo= ac_hi=
21937                           break
21938                         fi
21939                         ac_mid=`expr 2 '*' $ac_mid + 1`
21940 fi
21941
21942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21943   done
21944 else
21945   echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21947
21948         cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h.  */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h.  */
21954 $ac_includes_default
21955                    typedef size_t ac__type_sizeof_;
21956 int
21957 main ()
21958 {
21959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21960 test_array [0] = 0
21961
21962   ;
21963   return 0;
21964 }
21965 _ACEOF
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970   *) ac_try_echo=$ac_try;;
21971 esac
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973   (eval "$ac_compile") 2>conftest.er1
21974   ac_status=$?
21975   grep -v '^ *+' conftest.er1 >conftest.err
21976   rm -f conftest.er1
21977   cat conftest.err >&5
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); } &&
21980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21981   { (case "(($ac_try" in
21982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983   *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986   (eval "$ac_try") 2>&5
21987   ac_status=$?
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); }; } &&
21990          { ac_try='test -s conftest.$ac_objext'
21991   { (case "(($ac_try" in
21992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993   *) ac_try_echo=$ac_try;;
21994 esac
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996   (eval "$ac_try") 2>&5
21997   ac_status=$?
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); }; }; then
22000   ac_hi=-1 ac_mid=-1
22001   while :; do
22002     cat >conftest.$ac_ext <<_ACEOF
22003 /* confdefs.h.  */
22004 _ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h.  */
22008 $ac_includes_default
22009                    typedef size_t ac__type_sizeof_;
22010 int
22011 main ()
22012 {
22013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22014 test_array [0] = 0
22015
22016   ;
22017   return 0;
22018 }
22019 _ACEOF
22020 rm -f conftest.$ac_objext
22021 if { (ac_try="$ac_compile"
22022 case "(($ac_try" in
22023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024   *) ac_try_echo=$ac_try;;
22025 esac
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027   (eval "$ac_compile") 2>conftest.er1
22028   ac_status=$?
22029   grep -v '^ *+' conftest.er1 >conftest.err
22030   rm -f conftest.er1
22031   cat conftest.err >&5
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); } &&
22034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22035   { (case "(($ac_try" in
22036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037   *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040   (eval "$ac_try") 2>&5
22041   ac_status=$?
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); }; } &&
22044          { ac_try='test -s conftest.$ac_objext'
22045   { (case "(($ac_try" in
22046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047   *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050   (eval "$ac_try") 2>&5
22051   ac_status=$?
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); }; }; then
22054   ac_lo=$ac_mid; break
22055 else
22056   echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22058
22059         ac_hi=`expr '(' $ac_mid ')' - 1`
22060                         if test $ac_mid -le $ac_hi; then
22061                           ac_lo= ac_hi=
22062                           break
22063                         fi
22064                         ac_mid=`expr 2 '*' $ac_mid`
22065 fi
22066
22067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22068   done
22069 else
22070   echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22072
22073         ac_lo= ac_hi=
22074 fi
22075
22076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22077 fi
22078
22079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22080 # Binary search between lo and hi bounds.
22081 while test "x$ac_lo" != "x$ac_hi"; do
22082   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22083   cat >conftest.$ac_ext <<_ACEOF
22084 /* confdefs.h.  */
22085 _ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h.  */
22089 $ac_includes_default
22090                    typedef size_t ac__type_sizeof_;
22091 int
22092 main ()
22093 {
22094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22095 test_array [0] = 0
22096
22097   ;
22098   return 0;
22099 }
22100 _ACEOF
22101 rm -f conftest.$ac_objext
22102 if { (ac_try="$ac_compile"
22103 case "(($ac_try" in
22104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105   *) ac_try_echo=$ac_try;;
22106 esac
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108   (eval "$ac_compile") 2>conftest.er1
22109   ac_status=$?
22110   grep -v '^ *+' conftest.er1 >conftest.err
22111   rm -f conftest.er1
22112   cat conftest.err >&5
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); } &&
22115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22116   { (case "(($ac_try" in
22117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118   *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121   (eval "$ac_try") 2>&5
22122   ac_status=$?
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); }; } &&
22125          { ac_try='test -s conftest.$ac_objext'
22126   { (case "(($ac_try" in
22127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128   *) ac_try_echo=$ac_try;;
22129 esac
22130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131   (eval "$ac_try") 2>&5
22132   ac_status=$?
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); }; }; then
22135   ac_hi=$ac_mid
22136 else
22137   echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22139
22140         ac_lo=`expr '(' $ac_mid ')' + 1`
22141 fi
22142
22143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144 done
22145 case $ac_lo in
22146 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22148 See \`config.log' for more details." >&5
22149 echo "$as_me: error: cannot compute sizeof (size_t)
22150 See \`config.log' for more details." >&2;}
22151    { (exit 77); exit 77; }; } ;;
22152 esac
22153 else
22154   cat >conftest.$ac_ext <<_ACEOF
22155 /* confdefs.h.  */
22156 _ACEOF
22157 cat confdefs.h >>conftest.$ac_ext
22158 cat >>conftest.$ac_ext <<_ACEOF
22159 /* end confdefs.h.  */
22160 $ac_includes_default
22161                    typedef size_t ac__type_sizeof_;
22162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22164 #include <stdio.h>
22165 #include <stdlib.h>
22166 int
22167 main ()
22168 {
22169
22170   FILE *f = fopen ("conftest.val", "w");
22171   if (! f)
22172     return 1;
22173   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22174     {
22175       long int i = longval ();
22176       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22177         return 1;
22178       fprintf (f, "%ld\n", i);
22179     }
22180   else
22181     {
22182       unsigned long int i = ulongval ();
22183       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22184         return 1;
22185       fprintf (f, "%lu\n", i);
22186     }
22187   return ferror (f) || fclose (f) != 0;
22188
22189   ;
22190   return 0;
22191 }
22192 _ACEOF
22193 rm -f conftest$ac_exeext
22194 if { (ac_try="$ac_link"
22195 case "(($ac_try" in
22196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197   *) ac_try_echo=$ac_try;;
22198 esac
22199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200   (eval "$ac_link") 2>&5
22201   ac_status=$?
22202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22204   { (case "(($ac_try" in
22205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22206   *) ac_try_echo=$ac_try;;
22207 esac
22208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22209   (eval "$ac_try") 2>&5
22210   ac_status=$?
22211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212   (exit $ac_status); }; }; then
22213   ac_cv_sizeof_size_t=`cat conftest.val`
22214 else
22215   echo "$as_me: program exited with status $ac_status" >&5
22216 echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22218
22219 ( exit $ac_status )
22220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22221 See \`config.log' for more details." >&5
22222 echo "$as_me: error: cannot compute sizeof (size_t)
22223 See \`config.log' for more details." >&2;}
22224    { (exit 77); exit 77; }; }
22225 fi
22226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22227 fi
22228 rm -f conftest.val
22229 else
22230   ac_cv_sizeof_size_t=0
22231 fi
22232 fi
22233 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22234 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22235 cat >>confdefs.h <<_ACEOF
22236 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22237 _ACEOF
22238
22239
22240
22241 case "${host}" in
22242     arm-*-linux* )
22243         { echo "$as_me:$LINENO: checking for long long" >&5
22244 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22245 if test "${ac_cv_type_long_long+set}" = set; then
22246   echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248   cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h.  */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h.  */
22254 $ac_includes_default
22255 typedef long long ac__type_new_;
22256 int
22257 main ()
22258 {
22259 if ((ac__type_new_ *) 0)
22260   return 0;
22261 if (sizeof (ac__type_new_))
22262   return 0;
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 rm -f conftest.$ac_objext
22268 if { (ac_try="$ac_compile"
22269 case "(($ac_try" in
22270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271   *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274   (eval "$ac_compile") 2>conftest.er1
22275   ac_status=$?
22276   grep -v '^ *+' conftest.er1 >conftest.err
22277   rm -f conftest.er1
22278   cat conftest.err >&5
22279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280   (exit $ac_status); } &&
22281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22282   { (case "(($ac_try" in
22283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284   *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287   (eval "$ac_try") 2>&5
22288   ac_status=$?
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); }; } &&
22291          { ac_try='test -s conftest.$ac_objext'
22292   { (case "(($ac_try" in
22293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294   *) ac_try_echo=$ac_try;;
22295 esac
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297   (eval "$ac_try") 2>&5
22298   ac_status=$?
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); }; }; then
22301   ac_cv_type_long_long=yes
22302 else
22303   echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22305
22306         ac_cv_type_long_long=no
22307 fi
22308
22309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310 fi
22311 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22312 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22313
22314 { echo "$as_me:$LINENO: checking size of long long" >&5
22315 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22316 if test "${ac_cv_sizeof_long_long+set}" = set; then
22317   echo $ECHO_N "(cached) $ECHO_C" >&6
22318 else
22319   if test "$ac_cv_type_long_long" = yes; then
22320   # The cast to long int works around a bug in the HP C Compiler
22321   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22322   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22323   # This bug is HP SR number 8606223364.
22324   if test "$cross_compiling" = yes; then
22325   # Depending upon the size, compute the lo and hi bounds.
22326 cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h.  */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h.  */
22332 $ac_includes_default
22333                    typedef long long ac__type_sizeof_;
22334 int
22335 main ()
22336 {
22337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22338 test_array [0] = 0
22339
22340   ;
22341   return 0;
22342 }
22343 _ACEOF
22344 rm -f conftest.$ac_objext
22345 if { (ac_try="$ac_compile"
22346 case "(($ac_try" in
22347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348   *) ac_try_echo=$ac_try;;
22349 esac
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351   (eval "$ac_compile") 2>conftest.er1
22352   ac_status=$?
22353   grep -v '^ *+' conftest.er1 >conftest.err
22354   rm -f conftest.er1
22355   cat conftest.err >&5
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); } &&
22358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22359   { (case "(($ac_try" in
22360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361   *) ac_try_echo=$ac_try;;
22362 esac
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364   (eval "$ac_try") 2>&5
22365   ac_status=$?
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); }; } &&
22368          { ac_try='test -s conftest.$ac_objext'
22369   { (case "(($ac_try" in
22370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371   *) ac_try_echo=$ac_try;;
22372 esac
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374   (eval "$ac_try") 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; }; then
22378   ac_lo=0 ac_mid=0
22379   while :; do
22380     cat >conftest.$ac_ext <<_ACEOF
22381 /* confdefs.h.  */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h.  */
22386 $ac_includes_default
22387                    typedef long long ac__type_sizeof_;
22388 int
22389 main ()
22390 {
22391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22392 test_array [0] = 0
22393
22394   ;
22395   return 0;
22396 }
22397 _ACEOF
22398 rm -f conftest.$ac_objext
22399 if { (ac_try="$ac_compile"
22400 case "(($ac_try" in
22401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402   *) ac_try_echo=$ac_try;;
22403 esac
22404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22405   (eval "$ac_compile") 2>conftest.er1
22406   ac_status=$?
22407   grep -v '^ *+' conftest.er1 >conftest.err
22408   rm -f conftest.er1
22409   cat conftest.err >&5
22410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411   (exit $ac_status); } &&
22412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22413   { (case "(($ac_try" in
22414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415   *) ac_try_echo=$ac_try;;
22416 esac
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418   (eval "$ac_try") 2>&5
22419   ac_status=$?
22420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421   (exit $ac_status); }; } &&
22422          { ac_try='test -s conftest.$ac_objext'
22423   { (case "(($ac_try" in
22424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22425   *) ac_try_echo=$ac_try;;
22426 esac
22427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22428   (eval "$ac_try") 2>&5
22429   ac_status=$?
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); }; }; then
22432   ac_hi=$ac_mid; break
22433 else
22434   echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22436
22437         ac_lo=`expr $ac_mid + 1`
22438                         if test $ac_lo -le $ac_mid; then
22439                           ac_lo= ac_hi=
22440                           break
22441                         fi
22442                         ac_mid=`expr 2 '*' $ac_mid + 1`
22443 fi
22444
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446   done
22447 else
22448   echo "$as_me: failed program was:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22450
22451         cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h.  */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h.  */
22457 $ac_includes_default
22458                    typedef long long ac__type_sizeof_;
22459 int
22460 main ()
22461 {
22462 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22463 test_array [0] = 0
22464
22465   ;
22466   return 0;
22467 }
22468 _ACEOF
22469 rm -f conftest.$ac_objext
22470 if { (ac_try="$ac_compile"
22471 case "(($ac_try" in
22472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473   *) ac_try_echo=$ac_try;;
22474 esac
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476   (eval "$ac_compile") 2>conftest.er1
22477   ac_status=$?
22478   grep -v '^ *+' conftest.er1 >conftest.err
22479   rm -f conftest.er1
22480   cat conftest.err >&5
22481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482   (exit $ac_status); } &&
22483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22484   { (case "(($ac_try" in
22485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22486   *) ac_try_echo=$ac_try;;
22487 esac
22488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22489   (eval "$ac_try") 2>&5
22490   ac_status=$?
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); }; } &&
22493          { ac_try='test -s conftest.$ac_objext'
22494   { (case "(($ac_try" in
22495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496   *) ac_try_echo=$ac_try;;
22497 esac
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499   (eval "$ac_try") 2>&5
22500   ac_status=$?
22501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502   (exit $ac_status); }; }; then
22503   ac_hi=-1 ac_mid=-1
22504   while :; do
22505     cat >conftest.$ac_ext <<_ACEOF
22506 /* confdefs.h.  */
22507 _ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h.  */
22511 $ac_includes_default
22512                    typedef long long ac__type_sizeof_;
22513 int
22514 main ()
22515 {
22516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22517 test_array [0] = 0
22518
22519   ;
22520   return 0;
22521 }
22522 _ACEOF
22523 rm -f conftest.$ac_objext
22524 if { (ac_try="$ac_compile"
22525 case "(($ac_try" in
22526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527   *) ac_try_echo=$ac_try;;
22528 esac
22529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530   (eval "$ac_compile") 2>conftest.er1
22531   ac_status=$?
22532   grep -v '^ *+' conftest.er1 >conftest.err
22533   rm -f conftest.er1
22534   cat conftest.err >&5
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); } &&
22537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22538   { (case "(($ac_try" in
22539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540   *) ac_try_echo=$ac_try;;
22541 esac
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543   (eval "$ac_try") 2>&5
22544   ac_status=$?
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); }; } &&
22547          { ac_try='test -s conftest.$ac_objext'
22548   { (case "(($ac_try" in
22549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550   *) ac_try_echo=$ac_try;;
22551 esac
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553   (eval "$ac_try") 2>&5
22554   ac_status=$?
22555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556   (exit $ac_status); }; }; then
22557   ac_lo=$ac_mid; break
22558 else
22559   echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22561
22562         ac_hi=`expr '(' $ac_mid ')' - 1`
22563                         if test $ac_mid -le $ac_hi; then
22564                           ac_lo= ac_hi=
22565                           break
22566                         fi
22567                         ac_mid=`expr 2 '*' $ac_mid`
22568 fi
22569
22570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571   done
22572 else
22573   echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22575
22576         ac_lo= ac_hi=
22577 fi
22578
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580 fi
22581
22582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583 # Binary search between lo and hi bounds.
22584 while test "x$ac_lo" != "x$ac_hi"; do
22585   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22586   cat >conftest.$ac_ext <<_ACEOF
22587 /* confdefs.h.  */
22588 _ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h.  */
22592 $ac_includes_default
22593                    typedef long long ac__type_sizeof_;
22594 int
22595 main ()
22596 {
22597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22598 test_array [0] = 0
22599
22600   ;
22601   return 0;
22602 }
22603 _ACEOF
22604 rm -f conftest.$ac_objext
22605 if { (ac_try="$ac_compile"
22606 case "(($ac_try" in
22607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22608   *) ac_try_echo=$ac_try;;
22609 esac
22610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22611   (eval "$ac_compile") 2>conftest.er1
22612   ac_status=$?
22613   grep -v '^ *+' conftest.er1 >conftest.err
22614   rm -f conftest.er1
22615   cat conftest.err >&5
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); } &&
22618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22619   { (case "(($ac_try" in
22620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621   *) ac_try_echo=$ac_try;;
22622 esac
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624   (eval "$ac_try") 2>&5
22625   ac_status=$?
22626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627   (exit $ac_status); }; } &&
22628          { ac_try='test -s conftest.$ac_objext'
22629   { (case "(($ac_try" in
22630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631   *) ac_try_echo=$ac_try;;
22632 esac
22633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634   (eval "$ac_try") 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }; }; then
22638   ac_hi=$ac_mid
22639 else
22640   echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22642
22643         ac_lo=`expr '(' $ac_mid ')' + 1`
22644 fi
22645
22646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647 done
22648 case $ac_lo in
22649 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22650 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22651 See \`config.log' for more details." >&5
22652 echo "$as_me: error: cannot compute sizeof (long long)
22653 See \`config.log' for more details." >&2;}
22654    { (exit 77); exit 77; }; } ;;
22655 esac
22656 else
22657   cat >conftest.$ac_ext <<_ACEOF
22658 /* confdefs.h.  */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h.  */
22663 $ac_includes_default
22664                    typedef long long ac__type_sizeof_;
22665 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22666 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22667 #include <stdio.h>
22668 #include <stdlib.h>
22669 int
22670 main ()
22671 {
22672
22673   FILE *f = fopen ("conftest.val", "w");
22674   if (! f)
22675     return 1;
22676   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22677     {
22678       long int i = longval ();
22679       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22680         return 1;
22681       fprintf (f, "%ld\n", i);
22682     }
22683   else
22684     {
22685       unsigned long int i = ulongval ();
22686       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22687         return 1;
22688       fprintf (f, "%lu\n", i);
22689     }
22690   return ferror (f) || fclose (f) != 0;
22691
22692   ;
22693   return 0;
22694 }
22695 _ACEOF
22696 rm -f conftest$ac_exeext
22697 if { (ac_try="$ac_link"
22698 case "(($ac_try" in
22699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700   *) ac_try_echo=$ac_try;;
22701 esac
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703   (eval "$ac_link") 2>&5
22704   ac_status=$?
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22707   { (case "(($ac_try" in
22708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709   *) ac_try_echo=$ac_try;;
22710 esac
22711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22712   (eval "$ac_try") 2>&5
22713   ac_status=$?
22714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715   (exit $ac_status); }; }; then
22716   ac_cv_sizeof_long_long=`cat conftest.val`
22717 else
22718   echo "$as_me: program exited with status $ac_status" >&5
22719 echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22721
22722 ( exit $ac_status )
22723 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22724 See \`config.log' for more details." >&5
22725 echo "$as_me: error: cannot compute sizeof (long long)
22726 See \`config.log' for more details." >&2;}
22727    { (exit 77); exit 77; }; }
22728 fi
22729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22730 fi
22731 rm -f conftest.val
22732 else
22733   ac_cv_sizeof_long_long=0
22734 fi
22735 fi
22736 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22737 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22738 cat >>confdefs.h <<_ACEOF
22739 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22740 _ACEOF
22741
22742
22743     ;;
22744     *-hp-hpux* )
22745         { echo "$as_me:$LINENO: checking for long long" >&5
22746 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22747 if test "${ac_cv_type_long_long+set}" = set; then
22748   echo $ECHO_N "(cached) $ECHO_C" >&6
22749 else
22750   cat >conftest.$ac_ext <<_ACEOF
22751 /* confdefs.h.  */
22752 _ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h.  */
22756 $ac_includes_default
22757 typedef long long ac__type_new_;
22758 int
22759 main ()
22760 {
22761 if ((ac__type_new_ *) 0)
22762   return 0;
22763 if (sizeof (ac__type_new_))
22764   return 0;
22765   ;
22766   return 0;
22767 }
22768 _ACEOF
22769 rm -f conftest.$ac_objext
22770 if { (ac_try="$ac_compile"
22771 case "(($ac_try" in
22772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773   *) ac_try_echo=$ac_try;;
22774 esac
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776   (eval "$ac_compile") 2>conftest.er1
22777   ac_status=$?
22778   grep -v '^ *+' conftest.er1 >conftest.err
22779   rm -f conftest.er1
22780   cat conftest.err >&5
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); } &&
22783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22784   { (case "(($ac_try" in
22785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786   *) ac_try_echo=$ac_try;;
22787 esac
22788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789   (eval "$ac_try") 2>&5
22790   ac_status=$?
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); }; } &&
22793          { ac_try='test -s conftest.$ac_objext'
22794   { (case "(($ac_try" in
22795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22796   *) ac_try_echo=$ac_try;;
22797 esac
22798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799   (eval "$ac_try") 2>&5
22800   ac_status=$?
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); }; }; then
22803   ac_cv_type_long_long=yes
22804 else
22805   echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22807
22808         ac_cv_type_long_long=no
22809 fi
22810
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22812 fi
22813 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22814 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22815
22816 { echo "$as_me:$LINENO: checking size of long long" >&5
22817 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22818 if test "${ac_cv_sizeof_long_long+set}" = set; then
22819   echo $ECHO_N "(cached) $ECHO_C" >&6
22820 else
22821   if test "$ac_cv_type_long_long" = yes; then
22822   # The cast to long int works around a bug in the HP C Compiler
22823   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22824   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22825   # This bug is HP SR number 8606223364.
22826   if test "$cross_compiling" = yes; then
22827   # Depending upon the size, compute the lo and hi bounds.
22828 cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h.  */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h.  */
22834 $ac_includes_default
22835                    typedef long long ac__type_sizeof_;
22836 int
22837 main ()
22838 {
22839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22840 test_array [0] = 0
22841
22842   ;
22843   return 0;
22844 }
22845 _ACEOF
22846 rm -f conftest.$ac_objext
22847 if { (ac_try="$ac_compile"
22848 case "(($ac_try" in
22849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850   *) ac_try_echo=$ac_try;;
22851 esac
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853   (eval "$ac_compile") 2>conftest.er1
22854   ac_status=$?
22855   grep -v '^ *+' conftest.er1 >conftest.err
22856   rm -f conftest.er1
22857   cat conftest.err >&5
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); } &&
22860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22861   { (case "(($ac_try" in
22862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863   *) ac_try_echo=$ac_try;;
22864 esac
22865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866   (eval "$ac_try") 2>&5
22867   ac_status=$?
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); }; } &&
22870          { ac_try='test -s conftest.$ac_objext'
22871   { (case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876   (eval "$ac_try") 2>&5
22877   ac_status=$?
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); }; }; then
22880   ac_lo=0 ac_mid=0
22881   while :; do
22882     cat >conftest.$ac_ext <<_ACEOF
22883 /* confdefs.h.  */
22884 _ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h.  */
22888 $ac_includes_default
22889                    typedef long long ac__type_sizeof_;
22890 int
22891 main ()
22892 {
22893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22894 test_array [0] = 0
22895
22896   ;
22897   return 0;
22898 }
22899 _ACEOF
22900 rm -f conftest.$ac_objext
22901 if { (ac_try="$ac_compile"
22902 case "(($ac_try" in
22903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904   *) ac_try_echo=$ac_try;;
22905 esac
22906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22907   (eval "$ac_compile") 2>conftest.er1
22908   ac_status=$?
22909   grep -v '^ *+' conftest.er1 >conftest.err
22910   rm -f conftest.er1
22911   cat conftest.err >&5
22912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); } &&
22914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22915   { (case "(($ac_try" in
22916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917   *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920   (eval "$ac_try") 2>&5
22921   ac_status=$?
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); }; } &&
22924          { ac_try='test -s conftest.$ac_objext'
22925   { (case "(($ac_try" in
22926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927   *) ac_try_echo=$ac_try;;
22928 esac
22929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22930   (eval "$ac_try") 2>&5
22931   ac_status=$?
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); }; }; then
22934   ac_hi=$ac_mid; break
22935 else
22936   echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22938
22939         ac_lo=`expr $ac_mid + 1`
22940                         if test $ac_lo -le $ac_mid; then
22941                           ac_lo= ac_hi=
22942                           break
22943                         fi
22944                         ac_mid=`expr 2 '*' $ac_mid + 1`
22945 fi
22946
22947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22948   done
22949 else
22950   echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22952
22953         cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h.  */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h.  */
22959 $ac_includes_default
22960                    typedef long long ac__type_sizeof_;
22961 int
22962 main ()
22963 {
22964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22965 test_array [0] = 0
22966
22967   ;
22968   return 0;
22969 }
22970 _ACEOF
22971 rm -f conftest.$ac_objext
22972 if { (ac_try="$ac_compile"
22973 case "(($ac_try" in
22974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22975   *) ac_try_echo=$ac_try;;
22976 esac
22977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22978   (eval "$ac_compile") 2>conftest.er1
22979   ac_status=$?
22980   grep -v '^ *+' conftest.er1 >conftest.err
22981   rm -f conftest.er1
22982   cat conftest.err >&5
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); } &&
22985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22986   { (case "(($ac_try" in
22987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988   *) ac_try_echo=$ac_try;;
22989 esac
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991   (eval "$ac_try") 2>&5
22992   ac_status=$?
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); }; } &&
22995          { ac_try='test -s conftest.$ac_objext'
22996   { (case "(($ac_try" in
22997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998   *) ac_try_echo=$ac_try;;
22999 esac
23000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23001   (eval "$ac_try") 2>&5
23002   ac_status=$?
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); }; }; then
23005   ac_hi=-1 ac_mid=-1
23006   while :; do
23007     cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h.  */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h.  */
23013 $ac_includes_default
23014                    typedef long long ac__type_sizeof_;
23015 int
23016 main ()
23017 {
23018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23019 test_array [0] = 0
23020
23021   ;
23022   return 0;
23023 }
23024 _ACEOF
23025 rm -f conftest.$ac_objext
23026 if { (ac_try="$ac_compile"
23027 case "(($ac_try" in
23028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029   *) ac_try_echo=$ac_try;;
23030 esac
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032   (eval "$ac_compile") 2>conftest.er1
23033   ac_status=$?
23034   grep -v '^ *+' conftest.er1 >conftest.err
23035   rm -f conftest.er1
23036   cat conftest.err >&5
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); } &&
23039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23040   { (case "(($ac_try" in
23041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042   *) ac_try_echo=$ac_try;;
23043 esac
23044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045   (eval "$ac_try") 2>&5
23046   ac_status=$?
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); }; } &&
23049          { ac_try='test -s conftest.$ac_objext'
23050   { (case "(($ac_try" in
23051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052   *) ac_try_echo=$ac_try;;
23053 esac
23054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23055   (eval "$ac_try") 2>&5
23056   ac_status=$?
23057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058   (exit $ac_status); }; }; then
23059   ac_lo=$ac_mid; break
23060 else
23061   echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23063
23064         ac_hi=`expr '(' $ac_mid ')' - 1`
23065                         if test $ac_mid -le $ac_hi; then
23066                           ac_lo= ac_hi=
23067                           break
23068                         fi
23069                         ac_mid=`expr 2 '*' $ac_mid`
23070 fi
23071
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23073   done
23074 else
23075   echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078         ac_lo= ac_hi=
23079 fi
23080
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 fi
23083
23084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23085 # Binary search between lo and hi bounds.
23086 while test "x$ac_lo" != "x$ac_hi"; do
23087   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23088   cat >conftest.$ac_ext <<_ACEOF
23089 /* confdefs.h.  */
23090 _ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h.  */
23094 $ac_includes_default
23095                    typedef long long ac__type_sizeof_;
23096 int
23097 main ()
23098 {
23099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23100 test_array [0] = 0
23101
23102   ;
23103   return 0;
23104 }
23105 _ACEOF
23106 rm -f conftest.$ac_objext
23107 if { (ac_try="$ac_compile"
23108 case "(($ac_try" in
23109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23110   *) ac_try_echo=$ac_try;;
23111 esac
23112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23113   (eval "$ac_compile") 2>conftest.er1
23114   ac_status=$?
23115   grep -v '^ *+' conftest.er1 >conftest.err
23116   rm -f conftest.er1
23117   cat conftest.err >&5
23118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119   (exit $ac_status); } &&
23120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23121   { (case "(($ac_try" in
23122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123   *) ac_try_echo=$ac_try;;
23124 esac
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126   (eval "$ac_try") 2>&5
23127   ac_status=$?
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); }; } &&
23130          { ac_try='test -s conftest.$ac_objext'
23131   { (case "(($ac_try" in
23132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133   *) ac_try_echo=$ac_try;;
23134 esac
23135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23136   (eval "$ac_try") 2>&5
23137   ac_status=$?
23138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139   (exit $ac_status); }; }; then
23140   ac_hi=$ac_mid
23141 else
23142   echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23144
23145         ac_lo=`expr '(' $ac_mid ')' + 1`
23146 fi
23147
23148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23149 done
23150 case $ac_lo in
23151 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23152 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23153 See \`config.log' for more details." >&5
23154 echo "$as_me: error: cannot compute sizeof (long long)
23155 See \`config.log' for more details." >&2;}
23156    { (exit 77); exit 77; }; } ;;
23157 esac
23158 else
23159   cat >conftest.$ac_ext <<_ACEOF
23160 /* confdefs.h.  */
23161 _ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h.  */
23165 $ac_includes_default
23166                    typedef long long ac__type_sizeof_;
23167 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23168 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23169 #include <stdio.h>
23170 #include <stdlib.h>
23171 int
23172 main ()
23173 {
23174
23175   FILE *f = fopen ("conftest.val", "w");
23176   if (! f)
23177     return 1;
23178   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23179     {
23180       long int i = longval ();
23181       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23182         return 1;
23183       fprintf (f, "%ld\n", i);
23184     }
23185   else
23186     {
23187       unsigned long int i = ulongval ();
23188       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23189         return 1;
23190       fprintf (f, "%lu\n", i);
23191     }
23192   return ferror (f) || fclose (f) != 0;
23193
23194   ;
23195   return 0;
23196 }
23197 _ACEOF
23198 rm -f conftest$ac_exeext
23199 if { (ac_try="$ac_link"
23200 case "(($ac_try" in
23201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202   *) ac_try_echo=$ac_try;;
23203 esac
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205   (eval "$ac_link") 2>&5
23206   ac_status=$?
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23209   { (case "(($ac_try" in
23210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211   *) ac_try_echo=$ac_try;;
23212 esac
23213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214   (eval "$ac_try") 2>&5
23215   ac_status=$?
23216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217   (exit $ac_status); }; }; then
23218   ac_cv_sizeof_long_long=`cat conftest.val`
23219 else
23220   echo "$as_me: program exited with status $ac_status" >&5
23221 echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23223
23224 ( exit $ac_status )
23225 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23226 See \`config.log' for more details." >&5
23227 echo "$as_me: error: cannot compute sizeof (long long)
23228 See \`config.log' for more details." >&2;}
23229    { (exit 77); exit 77; }; }
23230 fi
23231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23232 fi
23233 rm -f conftest.val
23234 else
23235   ac_cv_sizeof_long_long=0
23236 fi
23237 fi
23238 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23239 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23240 cat >>confdefs.h <<_ACEOF
23241 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23242 _ACEOF
23243
23244
23245         if test "$ac_cv_sizeof_long_long" != "0"; then
23246                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23247         fi
23248     ;;
23249     * )
23250         { echo "$as_me:$LINENO: checking for long long" >&5
23251 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23252 if test "${ac_cv_type_long_long+set}" = set; then
23253   echo $ECHO_N "(cached) $ECHO_C" >&6
23254 else
23255   cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h.  */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h.  */
23261 $ac_includes_default
23262 typedef long long ac__type_new_;
23263 int
23264 main ()
23265 {
23266 if ((ac__type_new_ *) 0)
23267   return 0;
23268 if (sizeof (ac__type_new_))
23269   return 0;
23270   ;
23271   return 0;
23272 }
23273 _ACEOF
23274 rm -f conftest.$ac_objext
23275 if { (ac_try="$ac_compile"
23276 case "(($ac_try" in
23277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278   *) ac_try_echo=$ac_try;;
23279 esac
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281   (eval "$ac_compile") 2>conftest.er1
23282   ac_status=$?
23283   grep -v '^ *+' conftest.er1 >conftest.err
23284   rm -f conftest.er1
23285   cat conftest.err >&5
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); } &&
23288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23289   { (case "(($ac_try" in
23290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291   *) ac_try_echo=$ac_try;;
23292 esac
23293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23294   (eval "$ac_try") 2>&5
23295   ac_status=$?
23296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297   (exit $ac_status); }; } &&
23298          { ac_try='test -s conftest.$ac_objext'
23299   { (case "(($ac_try" in
23300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301   *) ac_try_echo=$ac_try;;
23302 esac
23303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23304   (eval "$ac_try") 2>&5
23305   ac_status=$?
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); }; }; then
23308   ac_cv_type_long_long=yes
23309 else
23310   echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23312
23313         ac_cv_type_long_long=no
23314 fi
23315
23316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23317 fi
23318 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23319 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23320
23321 { echo "$as_me:$LINENO: checking size of long long" >&5
23322 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23323 if test "${ac_cv_sizeof_long_long+set}" = set; then
23324   echo $ECHO_N "(cached) $ECHO_C" >&6
23325 else
23326   if test "$ac_cv_type_long_long" = yes; then
23327   # The cast to long int works around a bug in the HP C Compiler
23328   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23329   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23330   # This bug is HP SR number 8606223364.
23331   if test "$cross_compiling" = yes; then
23332   # Depending upon the size, compute the lo and hi bounds.
23333 cat >conftest.$ac_ext <<_ACEOF
23334 /* confdefs.h.  */
23335 _ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h.  */
23339 $ac_includes_default
23340                    typedef long long ac__type_sizeof_;
23341 int
23342 main ()
23343 {
23344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23345 test_array [0] = 0
23346
23347   ;
23348   return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest.$ac_objext
23352 if { (ac_try="$ac_compile"
23353 case "(($ac_try" in
23354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355   *) ac_try_echo=$ac_try;;
23356 esac
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358   (eval "$ac_compile") 2>conftest.er1
23359   ac_status=$?
23360   grep -v '^ *+' conftest.er1 >conftest.err
23361   rm -f conftest.er1
23362   cat conftest.err >&5
23363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364   (exit $ac_status); } &&
23365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23366   { (case "(($ac_try" in
23367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368   *) ac_try_echo=$ac_try;;
23369 esac
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371   (eval "$ac_try") 2>&5
23372   ac_status=$?
23373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374   (exit $ac_status); }; } &&
23375          { ac_try='test -s conftest.$ac_objext'
23376   { (case "(($ac_try" in
23377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378   *) ac_try_echo=$ac_try;;
23379 esac
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381   (eval "$ac_try") 2>&5
23382   ac_status=$?
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); }; }; then
23385   ac_lo=0 ac_mid=0
23386   while :; do
23387     cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h.  */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h.  */
23393 $ac_includes_default
23394                    typedef long long ac__type_sizeof_;
23395 int
23396 main ()
23397 {
23398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23399 test_array [0] = 0
23400
23401   ;
23402   return 0;
23403 }
23404 _ACEOF
23405 rm -f conftest.$ac_objext
23406 if { (ac_try="$ac_compile"
23407 case "(($ac_try" in
23408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409   *) ac_try_echo=$ac_try;;
23410 esac
23411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23412   (eval "$ac_compile") 2>conftest.er1
23413   ac_status=$?
23414   grep -v '^ *+' conftest.er1 >conftest.err
23415   rm -f conftest.er1
23416   cat conftest.err >&5
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); } &&
23419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23420   { (case "(($ac_try" in
23421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422   *) ac_try_echo=$ac_try;;
23423 esac
23424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23425   (eval "$ac_try") 2>&5
23426   ac_status=$?
23427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428   (exit $ac_status); }; } &&
23429          { ac_try='test -s conftest.$ac_objext'
23430   { (case "(($ac_try" in
23431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432   *) ac_try_echo=$ac_try;;
23433 esac
23434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23435   (eval "$ac_try") 2>&5
23436   ac_status=$?
23437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438   (exit $ac_status); }; }; then
23439   ac_hi=$ac_mid; break
23440 else
23441   echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23443
23444         ac_lo=`expr $ac_mid + 1`
23445                         if test $ac_lo -le $ac_mid; then
23446                           ac_lo= ac_hi=
23447                           break
23448                         fi
23449                         ac_mid=`expr 2 '*' $ac_mid + 1`
23450 fi
23451
23452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23453   done
23454 else
23455   echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23457
23458         cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h.  */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h.  */
23464 $ac_includes_default
23465                    typedef long long ac__type_sizeof_;
23466 int
23467 main ()
23468 {
23469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23470 test_array [0] = 0
23471
23472   ;
23473   return 0;
23474 }
23475 _ACEOF
23476 rm -f conftest.$ac_objext
23477 if { (ac_try="$ac_compile"
23478 case "(($ac_try" in
23479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23480   *) ac_try_echo=$ac_try;;
23481 esac
23482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23483   (eval "$ac_compile") 2>conftest.er1
23484   ac_status=$?
23485   grep -v '^ *+' conftest.er1 >conftest.err
23486   rm -f conftest.er1
23487   cat conftest.err >&5
23488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489   (exit $ac_status); } &&
23490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23491   { (case "(($ac_try" in
23492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23493   *) ac_try_echo=$ac_try;;
23494 esac
23495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23496   (eval "$ac_try") 2>&5
23497   ac_status=$?
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); }; } &&
23500          { ac_try='test -s conftest.$ac_objext'
23501   { (case "(($ac_try" in
23502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23503   *) ac_try_echo=$ac_try;;
23504 esac
23505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23506   (eval "$ac_try") 2>&5
23507   ac_status=$?
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); }; }; then
23510   ac_hi=-1 ac_mid=-1
23511   while :; do
23512     cat >conftest.$ac_ext <<_ACEOF
23513 /* confdefs.h.  */
23514 _ACEOF
23515 cat confdefs.h >>conftest.$ac_ext
23516 cat >>conftest.$ac_ext <<_ACEOF
23517 /* end confdefs.h.  */
23518 $ac_includes_default
23519                    typedef long long ac__type_sizeof_;
23520 int
23521 main ()
23522 {
23523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23524 test_array [0] = 0
23525
23526   ;
23527   return 0;
23528 }
23529 _ACEOF
23530 rm -f conftest.$ac_objext
23531 if { (ac_try="$ac_compile"
23532 case "(($ac_try" in
23533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23534   *) ac_try_echo=$ac_try;;
23535 esac
23536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23537   (eval "$ac_compile") 2>conftest.er1
23538   ac_status=$?
23539   grep -v '^ *+' conftest.er1 >conftest.err
23540   rm -f conftest.er1
23541   cat conftest.err >&5
23542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); } &&
23544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23545   { (case "(($ac_try" in
23546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547   *) ac_try_echo=$ac_try;;
23548 esac
23549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23550   (eval "$ac_try") 2>&5
23551   ac_status=$?
23552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553   (exit $ac_status); }; } &&
23554          { ac_try='test -s conftest.$ac_objext'
23555   { (case "(($ac_try" in
23556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557   *) ac_try_echo=$ac_try;;
23558 esac
23559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23560   (eval "$ac_try") 2>&5
23561   ac_status=$?
23562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563   (exit $ac_status); }; }; then
23564   ac_lo=$ac_mid; break
23565 else
23566   echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23568
23569         ac_hi=`expr '(' $ac_mid ')' - 1`
23570                         if test $ac_mid -le $ac_hi; then
23571                           ac_lo= ac_hi=
23572                           break
23573                         fi
23574                         ac_mid=`expr 2 '*' $ac_mid`
23575 fi
23576
23577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23578   done
23579 else
23580   echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23582
23583         ac_lo= ac_hi=
23584 fi
23585
23586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23587 fi
23588
23589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590 # Binary search between lo and hi bounds.
23591 while test "x$ac_lo" != "x$ac_hi"; do
23592   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23593   cat >conftest.$ac_ext <<_ACEOF
23594 /* confdefs.h.  */
23595 _ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h.  */
23599 $ac_includes_default
23600                    typedef long long ac__type_sizeof_;
23601 int
23602 main ()
23603 {
23604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23605 test_array [0] = 0
23606
23607   ;
23608   return 0;
23609 }
23610 _ACEOF
23611 rm -f conftest.$ac_objext
23612 if { (ac_try="$ac_compile"
23613 case "(($ac_try" in
23614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23615   *) ac_try_echo=$ac_try;;
23616 esac
23617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23618   (eval "$ac_compile") 2>conftest.er1
23619   ac_status=$?
23620   grep -v '^ *+' conftest.er1 >conftest.err
23621   rm -f conftest.er1
23622   cat conftest.err >&5
23623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624   (exit $ac_status); } &&
23625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23626   { (case "(($ac_try" in
23627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628   *) ac_try_echo=$ac_try;;
23629 esac
23630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631   (eval "$ac_try") 2>&5
23632   ac_status=$?
23633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); }; } &&
23635          { ac_try='test -s conftest.$ac_objext'
23636   { (case "(($ac_try" in
23637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638   *) ac_try_echo=$ac_try;;
23639 esac
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641   (eval "$ac_try") 2>&5
23642   ac_status=$?
23643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644   (exit $ac_status); }; }; then
23645   ac_hi=$ac_mid
23646 else
23647   echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.$ac_ext >&5
23649
23650         ac_lo=`expr '(' $ac_mid ')' + 1`
23651 fi
23652
23653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23654 done
23655 case $ac_lo in
23656 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23657 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23658 See \`config.log' for more details." >&5
23659 echo "$as_me: error: cannot compute sizeof (long long)
23660 See \`config.log' for more details." >&2;}
23661    { (exit 77); exit 77; }; } ;;
23662 esac
23663 else
23664   cat >conftest.$ac_ext <<_ACEOF
23665 /* confdefs.h.  */
23666 _ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h.  */
23670 $ac_includes_default
23671                    typedef long long ac__type_sizeof_;
23672 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23673 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23674 #include <stdio.h>
23675 #include <stdlib.h>
23676 int
23677 main ()
23678 {
23679
23680   FILE *f = fopen ("conftest.val", "w");
23681   if (! f)
23682     return 1;
23683   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23684     {
23685       long int i = longval ();
23686       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23687         return 1;
23688       fprintf (f, "%ld\n", i);
23689     }
23690   else
23691     {
23692       unsigned long int i = ulongval ();
23693       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23694         return 1;
23695       fprintf (f, "%lu\n", i);
23696     }
23697   return ferror (f) || fclose (f) != 0;
23698
23699   ;
23700   return 0;
23701 }
23702 _ACEOF
23703 rm -f conftest$ac_exeext
23704 if { (ac_try="$ac_link"
23705 case "(($ac_try" in
23706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707   *) ac_try_echo=$ac_try;;
23708 esac
23709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710   (eval "$ac_link") 2>&5
23711   ac_status=$?
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23714   { (case "(($ac_try" in
23715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23716   *) ac_try_echo=$ac_try;;
23717 esac
23718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23719   (eval "$ac_try") 2>&5
23720   ac_status=$?
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); }; }; then
23723   ac_cv_sizeof_long_long=`cat conftest.val`
23724 else
23725   echo "$as_me: program exited with status $ac_status" >&5
23726 echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23728
23729 ( exit $ac_status )
23730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23731 See \`config.log' for more details." >&5
23732 echo "$as_me: error: cannot compute sizeof (long long)
23733 See \`config.log' for more details." >&2;}
23734    { (exit 77); exit 77; }; }
23735 fi
23736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23737 fi
23738 rm -f conftest.val
23739 else
23740   ac_cv_sizeof_long_long=0
23741 fi
23742 fi
23743 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23744 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23745 cat >>confdefs.h <<_ACEOF
23746 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23747 _ACEOF
23748
23749
23750 esac
23751
23752 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23753 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23754 if test "${ac_cv_type_wchar_t+set}" = set; then
23755   echo $ECHO_N "(cached) $ECHO_C" >&6
23756 else
23757   cat >conftest.$ac_ext <<_ACEOF
23758 /* confdefs.h.  */
23759 _ACEOF
23760 cat confdefs.h >>conftest.$ac_ext
23761 cat >>conftest.$ac_ext <<_ACEOF
23762 /* end confdefs.h.  */
23763
23764         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23765         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23766         #  error "fake wchar_t"
23767         #endif
23768         #ifdef HAVE_WCHAR_H
23769         #  ifdef __CYGWIN__
23770         #    include <stddef.h>
23771         #  endif
23772         #  include <wchar.h>
23773         #endif
23774         #ifdef HAVE_STDLIB_H
23775         #  include <stdlib.h>
23776         #endif
23777         #include <stdio.h>
23778
23779
23780
23781 typedef wchar_t ac__type_new_;
23782 int
23783 main ()
23784 {
23785 if ((ac__type_new_ *) 0)
23786   return 0;
23787 if (sizeof (ac__type_new_))
23788   return 0;
23789   ;
23790   return 0;
23791 }
23792 _ACEOF
23793 rm -f conftest.$ac_objext
23794 if { (ac_try="$ac_compile"
23795 case "(($ac_try" in
23796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797   *) ac_try_echo=$ac_try;;
23798 esac
23799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23800   (eval "$ac_compile") 2>conftest.er1
23801   ac_status=$?
23802   grep -v '^ *+' conftest.er1 >conftest.err
23803   rm -f conftest.er1
23804   cat conftest.err >&5
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); } &&
23807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23808   { (case "(($ac_try" in
23809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810   *) ac_try_echo=$ac_try;;
23811 esac
23812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23813   (eval "$ac_try") 2>&5
23814   ac_status=$?
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); }; } &&
23817          { ac_try='test -s conftest.$ac_objext'
23818   { (case "(($ac_try" in
23819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820   *) ac_try_echo=$ac_try;;
23821 esac
23822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23823   (eval "$ac_try") 2>&5
23824   ac_status=$?
23825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826   (exit $ac_status); }; }; then
23827   ac_cv_type_wchar_t=yes
23828 else
23829   echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.$ac_ext >&5
23831
23832         ac_cv_type_wchar_t=no
23833 fi
23834
23835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23836 fi
23837 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23838 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23839
23840 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23841 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23842 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23843   echo $ECHO_N "(cached) $ECHO_C" >&6
23844 else
23845   if test "$ac_cv_type_wchar_t" = yes; then
23846   # The cast to long int works around a bug in the HP C Compiler
23847   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23848   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23849   # This bug is HP SR number 8606223364.
23850   if test "$cross_compiling" = yes; then
23851   # Depending upon the size, compute the lo and hi bounds.
23852 cat >conftest.$ac_ext <<_ACEOF
23853 /* confdefs.h.  */
23854 _ACEOF
23855 cat confdefs.h >>conftest.$ac_ext
23856 cat >>conftest.$ac_ext <<_ACEOF
23857 /* end confdefs.h.  */
23858
23859         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23860         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23861         #  error "fake wchar_t"
23862         #endif
23863         #ifdef HAVE_WCHAR_H
23864         #  ifdef __CYGWIN__
23865         #    include <stddef.h>
23866         #  endif
23867         #  include <wchar.h>
23868         #endif
23869         #ifdef HAVE_STDLIB_H
23870         #  include <stdlib.h>
23871         #endif
23872         #include <stdio.h>
23873
23874
23875
23876                    typedef wchar_t ac__type_sizeof_;
23877 int
23878 main ()
23879 {
23880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23881 test_array [0] = 0
23882
23883   ;
23884   return 0;
23885 }
23886 _ACEOF
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891   *) ac_try_echo=$ac_try;;
23892 esac
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894   (eval "$ac_compile") 2>conftest.er1
23895   ac_status=$?
23896   grep -v '^ *+' conftest.er1 >conftest.err
23897   rm -f conftest.er1
23898   cat conftest.err >&5
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); } &&
23901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23902   { (case "(($ac_try" in
23903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23904   *) ac_try_echo=$ac_try;;
23905 esac
23906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23907   (eval "$ac_try") 2>&5
23908   ac_status=$?
23909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910   (exit $ac_status); }; } &&
23911          { ac_try='test -s conftest.$ac_objext'
23912   { (case "(($ac_try" in
23913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23914   *) ac_try_echo=$ac_try;;
23915 esac
23916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23917   (eval "$ac_try") 2>&5
23918   ac_status=$?
23919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920   (exit $ac_status); }; }; then
23921   ac_lo=0 ac_mid=0
23922   while :; do
23923     cat >conftest.$ac_ext <<_ACEOF
23924 /* confdefs.h.  */
23925 _ACEOF
23926 cat confdefs.h >>conftest.$ac_ext
23927 cat >>conftest.$ac_ext <<_ACEOF
23928 /* end confdefs.h.  */
23929
23930         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23931         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23932         #  error "fake wchar_t"
23933         #endif
23934         #ifdef HAVE_WCHAR_H
23935         #  ifdef __CYGWIN__
23936         #    include <stddef.h>
23937         #  endif
23938         #  include <wchar.h>
23939         #endif
23940         #ifdef HAVE_STDLIB_H
23941         #  include <stdlib.h>
23942         #endif
23943         #include <stdio.h>
23944
23945
23946
23947                    typedef wchar_t ac__type_sizeof_;
23948 int
23949 main ()
23950 {
23951 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23952 test_array [0] = 0
23953
23954   ;
23955   return 0;
23956 }
23957 _ACEOF
23958 rm -f conftest.$ac_objext
23959 if { (ac_try="$ac_compile"
23960 case "(($ac_try" in
23961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23962   *) ac_try_echo=$ac_try;;
23963 esac
23964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23965   (eval "$ac_compile") 2>conftest.er1
23966   ac_status=$?
23967   grep -v '^ *+' conftest.er1 >conftest.err
23968   rm -f conftest.er1
23969   cat conftest.err >&5
23970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); } &&
23972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23973   { (case "(($ac_try" in
23974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975   *) ac_try_echo=$ac_try;;
23976 esac
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978   (eval "$ac_try") 2>&5
23979   ac_status=$?
23980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981   (exit $ac_status); }; } &&
23982          { ac_try='test -s conftest.$ac_objext'
23983   { (case "(($ac_try" in
23984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23985   *) ac_try_echo=$ac_try;;
23986 esac
23987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23988   (eval "$ac_try") 2>&5
23989   ac_status=$?
23990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991   (exit $ac_status); }; }; then
23992   ac_hi=$ac_mid; break
23993 else
23994   echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23996
23997         ac_lo=`expr $ac_mid + 1`
23998                         if test $ac_lo -le $ac_mid; then
23999                           ac_lo= ac_hi=
24000                           break
24001                         fi
24002                         ac_mid=`expr 2 '*' $ac_mid + 1`
24003 fi
24004
24005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24006   done
24007 else
24008   echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24010
24011         cat >conftest.$ac_ext <<_ACEOF
24012 /* confdefs.h.  */
24013 _ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h.  */
24017
24018         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24019         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24020         #  error "fake wchar_t"
24021         #endif
24022         #ifdef HAVE_WCHAR_H
24023         #  ifdef __CYGWIN__
24024         #    include <stddef.h>
24025         #  endif
24026         #  include <wchar.h>
24027         #endif
24028         #ifdef HAVE_STDLIB_H
24029         #  include <stdlib.h>
24030         #endif
24031         #include <stdio.h>
24032
24033
24034
24035                    typedef wchar_t ac__type_sizeof_;
24036 int
24037 main ()
24038 {
24039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24040 test_array [0] = 0
24041
24042   ;
24043   return 0;
24044 }
24045 _ACEOF
24046 rm -f conftest.$ac_objext
24047 if { (ac_try="$ac_compile"
24048 case "(($ac_try" in
24049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050   *) ac_try_echo=$ac_try;;
24051 esac
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053   (eval "$ac_compile") 2>conftest.er1
24054   ac_status=$?
24055   grep -v '^ *+' conftest.er1 >conftest.err
24056   rm -f conftest.er1
24057   cat conftest.err >&5
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); } &&
24060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24061   { (case "(($ac_try" in
24062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24063   *) ac_try_echo=$ac_try;;
24064 esac
24065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24066   (eval "$ac_try") 2>&5
24067   ac_status=$?
24068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069   (exit $ac_status); }; } &&
24070          { ac_try='test -s conftest.$ac_objext'
24071   { (case "(($ac_try" in
24072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073   *) ac_try_echo=$ac_try;;
24074 esac
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076   (eval "$ac_try") 2>&5
24077   ac_status=$?
24078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079   (exit $ac_status); }; }; then
24080   ac_hi=-1 ac_mid=-1
24081   while :; do
24082     cat >conftest.$ac_ext <<_ACEOF
24083 /* confdefs.h.  */
24084 _ACEOF
24085 cat confdefs.h >>conftest.$ac_ext
24086 cat >>conftest.$ac_ext <<_ACEOF
24087 /* end confdefs.h.  */
24088
24089         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24090         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24091         #  error "fake wchar_t"
24092         #endif
24093         #ifdef HAVE_WCHAR_H
24094         #  ifdef __CYGWIN__
24095         #    include <stddef.h>
24096         #  endif
24097         #  include <wchar.h>
24098         #endif
24099         #ifdef HAVE_STDLIB_H
24100         #  include <stdlib.h>
24101         #endif
24102         #include <stdio.h>
24103
24104
24105
24106                    typedef wchar_t ac__type_sizeof_;
24107 int
24108 main ()
24109 {
24110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24111 test_array [0] = 0
24112
24113   ;
24114   return 0;
24115 }
24116 _ACEOF
24117 rm -f conftest.$ac_objext
24118 if { (ac_try="$ac_compile"
24119 case "(($ac_try" in
24120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24121   *) ac_try_echo=$ac_try;;
24122 esac
24123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24124   (eval "$ac_compile") 2>conftest.er1
24125   ac_status=$?
24126   grep -v '^ *+' conftest.er1 >conftest.err
24127   rm -f conftest.er1
24128   cat conftest.err >&5
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); } &&
24131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24132   { (case "(($ac_try" in
24133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24134   *) ac_try_echo=$ac_try;;
24135 esac
24136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24137   (eval "$ac_try") 2>&5
24138   ac_status=$?
24139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140   (exit $ac_status); }; } &&
24141          { ac_try='test -s conftest.$ac_objext'
24142   { (case "(($ac_try" in
24143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24144   *) ac_try_echo=$ac_try;;
24145 esac
24146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24147   (eval "$ac_try") 2>&5
24148   ac_status=$?
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); }; }; then
24151   ac_lo=$ac_mid; break
24152 else
24153   echo "$as_me: failed program was:" >&5
24154 sed 's/^/| /' conftest.$ac_ext >&5
24155
24156         ac_hi=`expr '(' $ac_mid ')' - 1`
24157                         if test $ac_mid -le $ac_hi; then
24158                           ac_lo= ac_hi=
24159                           break
24160                         fi
24161                         ac_mid=`expr 2 '*' $ac_mid`
24162 fi
24163
24164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24165   done
24166 else
24167   echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24169
24170         ac_lo= ac_hi=
24171 fi
24172
24173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24174 fi
24175
24176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24177 # Binary search between lo and hi bounds.
24178 while test "x$ac_lo" != "x$ac_hi"; do
24179   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24180   cat >conftest.$ac_ext <<_ACEOF
24181 /* confdefs.h.  */
24182 _ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h.  */
24186
24187         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24188         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24189         #  error "fake wchar_t"
24190         #endif
24191         #ifdef HAVE_WCHAR_H
24192         #  ifdef __CYGWIN__
24193         #    include <stddef.h>
24194         #  endif
24195         #  include <wchar.h>
24196         #endif
24197         #ifdef HAVE_STDLIB_H
24198         #  include <stdlib.h>
24199         #endif
24200         #include <stdio.h>
24201
24202
24203
24204                    typedef wchar_t ac__type_sizeof_;
24205 int
24206 main ()
24207 {
24208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24209 test_array [0] = 0
24210
24211   ;
24212   return 0;
24213 }
24214 _ACEOF
24215 rm -f conftest.$ac_objext
24216 if { (ac_try="$ac_compile"
24217 case "(($ac_try" in
24218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24219   *) ac_try_echo=$ac_try;;
24220 esac
24221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24222   (eval "$ac_compile") 2>conftest.er1
24223   ac_status=$?
24224   grep -v '^ *+' conftest.er1 >conftest.err
24225   rm -f conftest.er1
24226   cat conftest.err >&5
24227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228   (exit $ac_status); } &&
24229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24230   { (case "(($ac_try" in
24231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232   *) ac_try_echo=$ac_try;;
24233 esac
24234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24235   (eval "$ac_try") 2>&5
24236   ac_status=$?
24237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238   (exit $ac_status); }; } &&
24239          { ac_try='test -s conftest.$ac_objext'
24240   { (case "(($ac_try" in
24241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242   *) ac_try_echo=$ac_try;;
24243 esac
24244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24245   (eval "$ac_try") 2>&5
24246   ac_status=$?
24247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248   (exit $ac_status); }; }; then
24249   ac_hi=$ac_mid
24250 else
24251   echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.$ac_ext >&5
24253
24254         ac_lo=`expr '(' $ac_mid ')' + 1`
24255 fi
24256
24257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24258 done
24259 case $ac_lo in
24260 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24261 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24262 See \`config.log' for more details." >&5
24263 echo "$as_me: error: cannot compute sizeof (wchar_t)
24264 See \`config.log' for more details." >&2;}
24265    { (exit 77); exit 77; }; } ;;
24266 esac
24267 else
24268   cat >conftest.$ac_ext <<_ACEOF
24269 /* confdefs.h.  */
24270 _ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h.  */
24274
24275         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24276         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24277         #  error "fake wchar_t"
24278         #endif
24279         #ifdef HAVE_WCHAR_H
24280         #  ifdef __CYGWIN__
24281         #    include <stddef.h>
24282         #  endif
24283         #  include <wchar.h>
24284         #endif
24285         #ifdef HAVE_STDLIB_H
24286         #  include <stdlib.h>
24287         #endif
24288         #include <stdio.h>
24289
24290
24291
24292                    typedef wchar_t ac__type_sizeof_;
24293 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24294 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24295 #include <stdio.h>
24296 #include <stdlib.h>
24297 int
24298 main ()
24299 {
24300
24301   FILE *f = fopen ("conftest.val", "w");
24302   if (! f)
24303     return 1;
24304   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24305     {
24306       long int i = longval ();
24307       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24308         return 1;
24309       fprintf (f, "%ld\n", i);
24310     }
24311   else
24312     {
24313       unsigned long int i = ulongval ();
24314       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24315         return 1;
24316       fprintf (f, "%lu\n", i);
24317     }
24318   return ferror (f) || fclose (f) != 0;
24319
24320   ;
24321   return 0;
24322 }
24323 _ACEOF
24324 rm -f conftest$ac_exeext
24325 if { (ac_try="$ac_link"
24326 case "(($ac_try" in
24327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24328   *) ac_try_echo=$ac_try;;
24329 esac
24330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24331   (eval "$ac_link") 2>&5
24332   ac_status=$?
24333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24335   { (case "(($ac_try" in
24336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337   *) ac_try_echo=$ac_try;;
24338 esac
24339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24340   (eval "$ac_try") 2>&5
24341   ac_status=$?
24342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); }; }; then
24344   ac_cv_sizeof_wchar_t=`cat conftest.val`
24345 else
24346   echo "$as_me: program exited with status $ac_status" >&5
24347 echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24349
24350 ( exit $ac_status )
24351 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24352 See \`config.log' for more details." >&5
24353 echo "$as_me: error: cannot compute sizeof (wchar_t)
24354 See \`config.log' for more details." >&2;}
24355    { (exit 77); exit 77; }; }
24356 fi
24357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24358 fi
24359 rm -f conftest.val
24360 else
24361   ac_cv_sizeof_wchar_t=0
24362 fi
24363 fi
24364 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24365 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24366 cat >>confdefs.h <<_ACEOF
24367 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24368 _ACEOF
24369
24370
24371 if test "$ac_cv_sizeof_wchar_t" != "0"; then
24372     wxUSE_WCHAR_T=yes
24373 else
24374     wxUSE_WCHAR_T=no
24375 fi
24376
24377 { echo "$as_me:$LINENO: checking for va_copy" >&5
24378 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24379 if test "${wx_cv_func_va_copy+set}" = set; then
24380   echo $ECHO_N "(cached) $ECHO_C" >&6
24381 else
24382
24383         cat >conftest.$ac_ext <<_ACEOF
24384
24385             #include <stdarg.h>
24386             void foo(char *f, ...)
24387             {
24388                 va_list ap1, ap2;
24389                 va_start(ap1, f);
24390                 va_copy(ap2, ap1);
24391                 va_end(ap2);
24392                 va_end(ap1);
24393             }
24394             int main()
24395             {
24396                 foo("hi", 17);
24397                 return 0;
24398             }
24399 _ACEOF
24400 rm -f conftest.$ac_objext conftest$ac_exeext
24401 if { (ac_try="$ac_link"
24402 case "(($ac_try" in
24403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404   *) ac_try_echo=$ac_try;;
24405 esac
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407   (eval "$ac_link") 2>conftest.er1
24408   ac_status=$?
24409   grep -v '^ *+' conftest.er1 >conftest.err
24410   rm -f conftest.er1
24411   cat conftest.err >&5
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); } &&
24414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24415   { (case "(($ac_try" in
24416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417   *) ac_try_echo=$ac_try;;
24418 esac
24419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420   (eval "$ac_try") 2>&5
24421   ac_status=$?
24422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423   (exit $ac_status); }; } &&
24424          { ac_try='test -s conftest$ac_exeext'
24425   { (case "(($ac_try" in
24426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427   *) ac_try_echo=$ac_try;;
24428 esac
24429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430   (eval "$ac_try") 2>&5
24431   ac_status=$?
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); }; }; then
24434   wx_cv_func_va_copy=yes
24435 else
24436   echo "$as_me: failed program was:" >&5
24437 sed 's/^/| /' conftest.$ac_ext >&5
24438
24439         wx_cv_func_va_copy=no
24440
24441 fi
24442
24443 rm -f core conftest.err conftest.$ac_objext \
24444       conftest$ac_exeext conftest.$ac_ext
24445
24446
24447 fi
24448 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24449 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24450
24451 if test $wx_cv_func_va_copy = "yes"; then
24452     cat >>confdefs.h <<\_ACEOF
24453 #define HAVE_VA_COPY 1
24454 _ACEOF
24455
24456 else
24457         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24458 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24459 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24460   echo $ECHO_N "(cached) $ECHO_C" >&6
24461 else
24462
24463             if test "$cross_compiling" = yes; then
24464                   wx_cv_type_va_list_lvalue=yes
24465
24466 else
24467   cat >conftest.$ac_ext <<_ACEOF
24468
24469                 #include <stdarg.h>
24470                 int foo(char *f, ...)
24471                 {
24472                     va_list ap1, ap2;
24473                     va_start(ap1, f);
24474                     ap2 = ap1;
24475                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24476                         return 1;
24477                     va_end(ap2);
24478                     va_end(ap1);
24479                     return 0;
24480                 }
24481                 int main()
24482                 {
24483                     return foo("hi", 17);
24484                 }
24485 _ACEOF
24486 rm -f conftest$ac_exeext
24487 if { (ac_try="$ac_link"
24488 case "(($ac_try" in
24489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24490   *) ac_try_echo=$ac_try;;
24491 esac
24492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24493   (eval "$ac_link") 2>&5
24494   ac_status=$?
24495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24497   { (case "(($ac_try" in
24498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24499   *) ac_try_echo=$ac_try;;
24500 esac
24501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24502   (eval "$ac_try") 2>&5
24503   ac_status=$?
24504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505   (exit $ac_status); }; }; then
24506   wx_cv_type_va_list_lvalue=yes
24507 else
24508   echo "$as_me: program exited with status $ac_status" >&5
24509 echo "$as_me: failed program was:" >&5
24510 sed 's/^/| /' conftest.$ac_ext >&5
24511
24512 ( exit $ac_status )
24513 wx_cv_type_va_list_lvalue=no
24514 fi
24515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24516 fi
24517
24518
24519
24520
24521 fi
24522 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24523 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24524
24525     if test $wx_cv_type_va_list_lvalue != "yes"; then
24526                         cat >>confdefs.h <<\_ACEOF
24527 #define VA_LIST_IS_ARRAY 1
24528 _ACEOF
24529
24530     fi
24531 fi
24532
24533 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24534
24535 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24536 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24537 if test "${wx_cv_have_variadic_macros+set}" = set; then
24538   echo $ECHO_N "(cached) $ECHO_C" >&6
24539 else
24540
24541                         ac_ext=cpp
24542 ac_cpp='$CXXCPP $CPPFLAGS'
24543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24546
24547         cat >conftest.$ac_ext <<_ACEOF
24548 /* confdefs.h.  */
24549 _ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h.  */
24553
24554                     #include <stdio.h>
24555                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24556
24557 int
24558 main ()
24559 {
24560
24561                     test("%s %d %p", "test", 1, 0);
24562
24563
24564   ;
24565   return 0;
24566 }
24567 _ACEOF
24568 rm -f conftest.$ac_objext
24569 if { (ac_try="$ac_compile"
24570 case "(($ac_try" in
24571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572   *) ac_try_echo=$ac_try;;
24573 esac
24574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24575   (eval "$ac_compile") 2>conftest.er1
24576   ac_status=$?
24577   grep -v '^ *+' conftest.er1 >conftest.err
24578   rm -f conftest.er1
24579   cat conftest.err >&5
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); } &&
24582          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24583   { (case "(($ac_try" in
24584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585   *) ac_try_echo=$ac_try;;
24586 esac
24587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24588   (eval "$ac_try") 2>&5
24589   ac_status=$?
24590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591   (exit $ac_status); }; } &&
24592          { ac_try='test -s conftest.$ac_objext'
24593   { (case "(($ac_try" in
24594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595   *) ac_try_echo=$ac_try;;
24596 esac
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598   (eval "$ac_try") 2>&5
24599   ac_status=$?
24600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601   (exit $ac_status); }; }; then
24602   wx_cv_have_variadic_macros=yes
24603 else
24604   echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24606
24607         wx_cv_have_variadic_macros=no
24608
24609 fi
24610
24611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24612         ac_ext=c
24613 ac_cpp='$CPP $CPPFLAGS'
24614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24617
24618
24619
24620 fi
24621 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24622 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24623
24624 if test $wx_cv_have_variadic_macros = "yes"; then
24625     cat >>confdefs.h <<\_ACEOF
24626 #define HAVE_VARIADIC_MACROS 1
24627 _ACEOF
24628
24629 fi
24630
24631 fi
24632 # Check whether --enable-largefile was given.
24633 if test "${enable_largefile+set}" = set; then
24634   enableval=$enable_largefile;
24635 fi
24636
24637 if test "$enable_largefile" != no; then
24638             wx_largefile=no
24639
24640     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24641 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24642 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24643   echo $ECHO_N "(cached) $ECHO_C" >&6
24644 else
24645
24646           cat >conftest.$ac_ext <<_ACEOF
24647 /* confdefs.h.  */
24648 _ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h.  */
24652 #define _FILE_OFFSET_BITS 64
24653                           #include <sys/types.h>
24654 int
24655 main ()
24656 {
24657 typedef struct {
24658     unsigned int field: sizeof(off_t) == 8;
24659 } wxlf;
24660
24661   ;
24662   return 0;
24663 }
24664 _ACEOF
24665 rm -f conftest.$ac_objext
24666 if { (ac_try="$ac_compile"
24667 case "(($ac_try" in
24668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669   *) ac_try_echo=$ac_try;;
24670 esac
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672   (eval "$ac_compile") 2>conftest.er1
24673   ac_status=$?
24674   grep -v '^ *+' conftest.er1 >conftest.err
24675   rm -f conftest.er1
24676   cat conftest.err >&5
24677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678   (exit $ac_status); } &&
24679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24680   { (case "(($ac_try" in
24681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682   *) ac_try_echo=$ac_try;;
24683 esac
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685   (eval "$ac_try") 2>&5
24686   ac_status=$?
24687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688   (exit $ac_status); }; } &&
24689          { ac_try='test -s conftest.$ac_objext'
24690   { (case "(($ac_try" in
24691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692   *) ac_try_echo=$ac_try;;
24693 esac
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695   (eval "$ac_try") 2>&5
24696   ac_status=$?
24697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698   (exit $ac_status); }; }; then
24699   ac_cv_sys_file_offset_bits=64
24700 else
24701   echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24703
24704         ac_cv_sys_file_offset_bits=no
24705 fi
24706
24707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24708
24709
24710 fi
24711 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24712 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24713
24714     if test "$ac_cv_sys_file_offset_bits" != no; then
24715         wx_largefile=yes
24716         cat >>confdefs.h <<_ACEOF
24717 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24718 _ACEOF
24719
24720     fi
24721
24722     if test "x$wx_largefile" != "xyes"; then
24723
24724     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24725 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24726 if test "${ac_cv_sys_large_files+set}" = set; then
24727   echo $ECHO_N "(cached) $ECHO_C" >&6
24728 else
24729
24730           cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h.  */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h.  */
24736 #define _LARGE_FILES 1
24737                           #include <sys/types.h>
24738 int
24739 main ()
24740 {
24741 typedef struct {
24742     unsigned int field: sizeof(off_t) == 8;
24743 } wxlf;
24744
24745   ;
24746   return 0;
24747 }
24748 _ACEOF
24749 rm -f conftest.$ac_objext
24750 if { (ac_try="$ac_compile"
24751 case "(($ac_try" in
24752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24753   *) ac_try_echo=$ac_try;;
24754 esac
24755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24756   (eval "$ac_compile") 2>conftest.er1
24757   ac_status=$?
24758   grep -v '^ *+' conftest.er1 >conftest.err
24759   rm -f conftest.er1
24760   cat conftest.err >&5
24761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762   (exit $ac_status); } &&
24763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24764   { (case "(($ac_try" in
24765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24766   *) ac_try_echo=$ac_try;;
24767 esac
24768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24769   (eval "$ac_try") 2>&5
24770   ac_status=$?
24771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772   (exit $ac_status); }; } &&
24773          { ac_try='test -s conftest.$ac_objext'
24774   { (case "(($ac_try" in
24775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24776   *) ac_try_echo=$ac_try;;
24777 esac
24778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24779   (eval "$ac_try") 2>&5
24780   ac_status=$?
24781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782   (exit $ac_status); }; }; then
24783   ac_cv_sys_large_files=1
24784 else
24785   echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24787
24788         ac_cv_sys_large_files=no
24789 fi
24790
24791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24792
24793
24794 fi
24795 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24796 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24797
24798     if test "$ac_cv_sys_large_files" != no; then
24799         wx_largefile=yes
24800         cat >>confdefs.h <<_ACEOF
24801 #define _LARGE_FILES $ac_cv_sys_large_files
24802 _ACEOF
24803
24804     fi
24805
24806     fi
24807
24808     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24809 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24810     if test "x$wx_largefile" = "xyes"; then
24811         cat >>confdefs.h <<\_ACEOF
24812 #define HAVE_LARGEFILE_SUPPORT 1
24813 _ACEOF
24814
24815     fi
24816     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24817 echo "${ECHO_T}$wx_largefile" >&6; }
24818 fi
24819
24820
24821 if test "x$wx_largefile" = "xyes"; then
24822     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
24823         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
24824
24825                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24826             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24827 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24828 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24829   echo $ECHO_N "(cached) $ECHO_C" >&6
24830 else
24831
24832                     ac_ext=cpp
24833 ac_cpp='$CXXCPP $CPPFLAGS'
24834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24837
24838                     cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h.  */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h.  */
24844
24845 int
24846 main ()
24847 {
24848
24849                             #ifndef __STDC_EXT__
24850                                 choke me
24851                             #endif
24852
24853   ;
24854   return 0;
24855 }
24856 _ACEOF
24857 rm -f conftest.$ac_objext
24858 if { (ac_try="$ac_compile"
24859 case "(($ac_try" in
24860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24861   *) ac_try_echo=$ac_try;;
24862 esac
24863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24864   (eval "$ac_compile") 2>conftest.er1
24865   ac_status=$?
24866   grep -v '^ *+' conftest.er1 >conftest.err
24867   rm -f conftest.er1
24868   cat conftest.err >&5
24869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870   (exit $ac_status); } &&
24871          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24872   { (case "(($ac_try" in
24873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874   *) ac_try_echo=$ac_try;;
24875 esac
24876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877   (eval "$ac_try") 2>&5
24878   ac_status=$?
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); }; } &&
24881          { ac_try='test -s conftest.$ac_objext'
24882   { (case "(($ac_try" in
24883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884   *) ac_try_echo=$ac_try;;
24885 esac
24886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24887   (eval "$ac_try") 2>&5
24888   ac_status=$?
24889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890   (exit $ac_status); }; }; then
24891   wx_cv_STDC_EXT_required=no
24892 else
24893   echo "$as_me: failed program was:" >&5
24894 sed 's/^/| /' conftest.$ac_ext >&5
24895
24896         wx_cv_STDC_EXT_required=yes
24897
24898 fi
24899
24900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24901                     ac_ext=c
24902 ac_cpp='$CPP $CPPFLAGS'
24903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24906
24907
24908
24909 fi
24910 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24911 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
24912             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24913                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24914             fi
24915         fi
24916     else
24917         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
24918     fi
24919         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24920 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
24921 if test "${ac_cv_sys_largefile_source+set}" = set; then
24922   echo $ECHO_N "(cached) $ECHO_C" >&6
24923 else
24924   while :; do
24925   ac_cv_sys_largefile_source=no
24926   cat >conftest.$ac_ext <<_ACEOF
24927 /* confdefs.h.  */
24928 _ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h.  */
24932 #include <stdio.h>
24933 int
24934 main ()
24935 {
24936 return !fseeko;
24937   ;
24938   return 0;
24939 }
24940 _ACEOF
24941 rm -f conftest.$ac_objext
24942 if { (ac_try="$ac_compile"
24943 case "(($ac_try" in
24944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945   *) ac_try_echo=$ac_try;;
24946 esac
24947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948   (eval "$ac_compile") 2>conftest.er1
24949   ac_status=$?
24950   grep -v '^ *+' conftest.er1 >conftest.err
24951   rm -f conftest.er1
24952   cat conftest.err >&5
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); } &&
24955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24956   { (case "(($ac_try" in
24957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24958   *) ac_try_echo=$ac_try;;
24959 esac
24960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24961   (eval "$ac_try") 2>&5
24962   ac_status=$?
24963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); }; } &&
24965          { ac_try='test -s conftest.$ac_objext'
24966   { (case "(($ac_try" in
24967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968   *) ac_try_echo=$ac_try;;
24969 esac
24970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971   (eval "$ac_try") 2>&5
24972   ac_status=$?
24973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974   (exit $ac_status); }; }; then
24975   break
24976 else
24977   echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24979
24980
24981 fi
24982
24983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24984   cat >conftest.$ac_ext <<_ACEOF
24985 /* confdefs.h.  */
24986 _ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h.  */
24990 #define _LARGEFILE_SOURCE 1
24991 #include <stdio.h>
24992 int
24993 main ()
24994 {
24995 return !fseeko;
24996   ;
24997   return 0;
24998 }
24999 _ACEOF
25000 rm -f conftest.$ac_objext
25001 if { (ac_try="$ac_compile"
25002 case "(($ac_try" in
25003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25004   *) ac_try_echo=$ac_try;;
25005 esac
25006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25007   (eval "$ac_compile") 2>conftest.er1
25008   ac_status=$?
25009   grep -v '^ *+' conftest.er1 >conftest.err
25010   rm -f conftest.er1
25011   cat conftest.err >&5
25012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013   (exit $ac_status); } &&
25014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25015   { (case "(($ac_try" in
25016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25017   *) ac_try_echo=$ac_try;;
25018 esac
25019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25020   (eval "$ac_try") 2>&5
25021   ac_status=$?
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); }; } &&
25024          { ac_try='test -s conftest.$ac_objext'
25025   { (case "(($ac_try" in
25026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027   *) ac_try_echo=$ac_try;;
25028 esac
25029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030   (eval "$ac_try") 2>&5
25031   ac_status=$?
25032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033   (exit $ac_status); }; }; then
25034   ac_cv_sys_largefile_source=1; break
25035 else
25036   echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25038
25039
25040 fi
25041
25042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25043   break
25044 done
25045 fi
25046 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25047 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25048 if test "$ac_cv_sys_largefile_source" != no; then
25049
25050 cat >>confdefs.h <<_ACEOF
25051 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25052 _ACEOF
25053
25054 fi
25055 rm -f conftest*
25056
25057 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25058 # in glibc 2.1.3, but that breaks too many other things.
25059 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25060 { echo "$as_me:$LINENO: checking for fseeko" >&5
25061 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
25062 if test "${ac_cv_func_fseeko+set}" = set; then
25063   echo $ECHO_N "(cached) $ECHO_C" >&6
25064 else
25065   cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h.  */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h.  */
25071 #include <stdio.h>
25072 int
25073 main ()
25074 {
25075 return fseeko && fseeko (stdin, 0, 0);
25076   ;
25077   return 0;
25078 }
25079 _ACEOF
25080 rm -f conftest.$ac_objext conftest$ac_exeext
25081 if { (ac_try="$ac_link"
25082 case "(($ac_try" in
25083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25084   *) ac_try_echo=$ac_try;;
25085 esac
25086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25087   (eval "$ac_link") 2>conftest.er1
25088   ac_status=$?
25089   grep -v '^ *+' conftest.er1 >conftest.err
25090   rm -f conftest.er1
25091   cat conftest.err >&5
25092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093   (exit $ac_status); } &&
25094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25095   { (case "(($ac_try" in
25096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097   *) ac_try_echo=$ac_try;;
25098 esac
25099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25100   (eval "$ac_try") 2>&5
25101   ac_status=$?
25102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103   (exit $ac_status); }; } &&
25104          { ac_try='test -s conftest$ac_exeext'
25105   { (case "(($ac_try" in
25106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25107   *) ac_try_echo=$ac_try;;
25108 esac
25109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25110   (eval "$ac_try") 2>&5
25111   ac_status=$?
25112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113   (exit $ac_status); }; }; then
25114   ac_cv_func_fseeko=yes
25115 else
25116   echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25118
25119         ac_cv_func_fseeko=no
25120 fi
25121
25122 rm -f core conftest.err conftest.$ac_objext \
25123       conftest$ac_exeext conftest.$ac_ext
25124 fi
25125 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
25126 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
25127 if test $ac_cv_func_fseeko = yes; then
25128
25129 cat >>confdefs.h <<\_ACEOF
25130 #define HAVE_FSEEKO 1
25131 _ACEOF
25132
25133 fi
25134
25135     if test "$ac_cv_sys_largefile_source" != no; then
25136         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25137     fi
25138 fi
25139
25140 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25141 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25142 if test "${ac_cv_c_bigendian+set}" = set; then
25143   echo $ECHO_N "(cached) $ECHO_C" >&6
25144 else
25145   ac_cv_c_bigendian=unknown
25146 # See if sys/param.h defines the BYTE_ORDER macro.
25147 cat >conftest.$ac_ext <<_ACEOF
25148 /* confdefs.h.  */
25149 _ACEOF
25150 cat confdefs.h >>conftest.$ac_ext
25151 cat >>conftest.$ac_ext <<_ACEOF
25152 /* end confdefs.h.  */
25153 #include <sys/types.h>
25154 #include <sys/param.h>
25155 int
25156 main ()
25157 {
25158
25159 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25160  bogus endian macros
25161 #endif
25162   ;
25163   return 0;
25164 }
25165 _ACEOF
25166 rm -f conftest.$ac_objext
25167 if { (ac_try="$ac_compile"
25168 case "(($ac_try" in
25169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25170   *) ac_try_echo=$ac_try;;
25171 esac
25172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25173   (eval "$ac_compile") 2>conftest.er1
25174   ac_status=$?
25175   grep -v '^ *+' conftest.er1 >conftest.err
25176   rm -f conftest.er1
25177   cat conftest.err >&5
25178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); } &&
25180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25181   { (case "(($ac_try" in
25182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183   *) ac_try_echo=$ac_try;;
25184 esac
25185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186   (eval "$ac_try") 2>&5
25187   ac_status=$?
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); }; } &&
25190          { ac_try='test -s conftest.$ac_objext'
25191   { (case "(($ac_try" in
25192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193   *) ac_try_echo=$ac_try;;
25194 esac
25195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196   (eval "$ac_try") 2>&5
25197   ac_status=$?
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); }; }; then
25200   # It does; now see whether it defined to BIG_ENDIAN or not.
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h.  */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h.  */
25207 #include <sys/types.h>
25208 #include <sys/param.h>
25209 int
25210 main ()
25211 {
25212
25213 #if BYTE_ORDER != BIG_ENDIAN
25214  not big endian
25215 #endif
25216   ;
25217   return 0;
25218 }
25219 _ACEOF
25220 rm -f conftest.$ac_objext
25221 if { (ac_try="$ac_compile"
25222 case "(($ac_try" in
25223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25224   *) ac_try_echo=$ac_try;;
25225 esac
25226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25227   (eval "$ac_compile") 2>conftest.er1
25228   ac_status=$?
25229   grep -v '^ *+' conftest.er1 >conftest.err
25230   rm -f conftest.er1
25231   cat conftest.err >&5
25232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233   (exit $ac_status); } &&
25234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25235   { (case "(($ac_try" in
25236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237   *) ac_try_echo=$ac_try;;
25238 esac
25239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25240   (eval "$ac_try") 2>&5
25241   ac_status=$?
25242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243   (exit $ac_status); }; } &&
25244          { ac_try='test -s conftest.$ac_objext'
25245   { (case "(($ac_try" in
25246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25247   *) ac_try_echo=$ac_try;;
25248 esac
25249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25250   (eval "$ac_try") 2>&5
25251   ac_status=$?
25252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253   (exit $ac_status); }; }; then
25254   ac_cv_c_bigendian=yes
25255 else
25256   echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25258
25259         ac_cv_c_bigendian=no
25260 fi
25261
25262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25263 else
25264   echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25266
25267
25268 fi
25269
25270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25271 if test $ac_cv_c_bigendian = unknown; then
25272 if test "$cross_compiling" = yes; then
25273   ac_cv_c_bigendian=unknown
25274 else
25275   cat >conftest.$ac_ext <<_ACEOF
25276 /* confdefs.h.  */
25277 _ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h.  */
25281 main () {
25282   /* Are we little or big endian?  From Harbison&Steele.  */
25283   union
25284   {
25285     long l;
25286     char c[sizeof (long)];
25287   } u;
25288   u.l = 1;
25289   exit (u.c[sizeof (long) - 1] == 1);
25290 }
25291 _ACEOF
25292 rm -f conftest$ac_exeext
25293 if { (ac_try="$ac_link"
25294 case "(($ac_try" in
25295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296   *) ac_try_echo=$ac_try;;
25297 esac
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299   (eval "$ac_link") 2>&5
25300   ac_status=$?
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25303   { (case "(($ac_try" in
25304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305   *) ac_try_echo=$ac_try;;
25306 esac
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308   (eval "$ac_try") 2>&5
25309   ac_status=$?
25310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311   (exit $ac_status); }; }; then
25312   ac_cv_c_bigendian=no
25313 else
25314   echo "$as_me: program exited with status $ac_status" >&5
25315 echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25317
25318 ( exit $ac_status )
25319 ac_cv_c_bigendian=yes
25320 fi
25321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25322 fi
25323
25324
25325 fi
25326 fi
25327 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25328 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25329 if test $ac_cv_c_bigendian = unknown; then
25330   { 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
25331 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;}
25332 fi
25333 if test $ac_cv_c_bigendian = yes; then
25334   cat >>confdefs.h <<\_ACEOF
25335 #define WORDS_BIGENDIAN 1
25336 _ACEOF
25337
25338 fi
25339
25340
25341 ac_ext=cpp
25342 ac_cpp='$CXXCPP $CPPFLAGS'
25343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25346 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
25347 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
25348 if test -z "$CXXCPP"; then
25349   if test "${ac_cv_prog_CXXCPP+set}" = set; then
25350   echo $ECHO_N "(cached) $ECHO_C" >&6
25351 else
25352       # Double quotes because CXXCPP needs to be expanded
25353     for CXXCPP in "$CXX -E" "/lib/cpp"
25354     do
25355       ac_preproc_ok=false
25356 for ac_cxx_preproc_warn_flag in '' yes
25357 do
25358   # Use a header file that comes with gcc, so configuring glibc
25359   # with a fresh cross-compiler works.
25360   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25361   # <limits.h> exists even on freestanding compilers.
25362   # On the NeXT, cc -E runs the code through the compiler's parser,
25363   # not just through cpp. "Syntax error" is here to catch this case.
25364   cat >conftest.$ac_ext <<_ACEOF
25365 /* confdefs.h.  */
25366 _ACEOF
25367 cat confdefs.h >>conftest.$ac_ext
25368 cat >>conftest.$ac_ext <<_ACEOF
25369 /* end confdefs.h.  */
25370 #ifdef __STDC__
25371 # include <limits.h>
25372 #else
25373 # include <assert.h>
25374 #endif
25375                      Syntax error
25376 _ACEOF
25377 if { (ac_try="$ac_cpp conftest.$ac_ext"
25378 case "(($ac_try" in
25379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380   *) ac_try_echo=$ac_try;;
25381 esac
25382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25384   ac_status=$?
25385   grep -v '^ *+' conftest.er1 >conftest.err
25386   rm -f conftest.er1
25387   cat conftest.err >&5
25388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389   (exit $ac_status); } >/dev/null; then
25390   if test -s conftest.err; then
25391     ac_cpp_err=$ac_cxx_preproc_warn_flag
25392     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25393   else
25394     ac_cpp_err=
25395   fi
25396 else
25397   ac_cpp_err=yes
25398 fi
25399 if test -z "$ac_cpp_err"; then
25400   :
25401 else
25402   echo "$as_me: failed program was:" >&5
25403 sed 's/^/| /' conftest.$ac_ext >&5
25404
25405   # Broken: fails on valid input.
25406 continue
25407 fi
25408
25409 rm -f conftest.err conftest.$ac_ext
25410
25411   # OK, works on sane cases.  Now check whether nonexistent headers
25412   # can be detected and how.
25413   cat >conftest.$ac_ext <<_ACEOF
25414 /* confdefs.h.  */
25415 _ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h.  */
25419 #include <ac_nonexistent.h>
25420 _ACEOF
25421 if { (ac_try="$ac_cpp conftest.$ac_ext"
25422 case "(($ac_try" in
25423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25424   *) ac_try_echo=$ac_try;;
25425 esac
25426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25428   ac_status=$?
25429   grep -v '^ *+' conftest.er1 >conftest.err
25430   rm -f conftest.er1
25431   cat conftest.err >&5
25432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433   (exit $ac_status); } >/dev/null; then
25434   if test -s conftest.err; then
25435     ac_cpp_err=$ac_cxx_preproc_warn_flag
25436     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25437   else
25438     ac_cpp_err=
25439   fi
25440 else
25441   ac_cpp_err=yes
25442 fi
25443 if test -z "$ac_cpp_err"; then
25444   # Broken: success on invalid input.
25445 continue
25446 else
25447   echo "$as_me: failed program was:" >&5
25448 sed 's/^/| /' conftest.$ac_ext >&5
25449
25450   # Passes both tests.
25451 ac_preproc_ok=:
25452 break
25453 fi
25454
25455 rm -f conftest.err conftest.$ac_ext
25456
25457 done
25458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25459 rm -f conftest.err conftest.$ac_ext
25460 if $ac_preproc_ok; then
25461   break
25462 fi
25463
25464     done
25465     ac_cv_prog_CXXCPP=$CXXCPP
25466
25467 fi
25468   CXXCPP=$ac_cv_prog_CXXCPP
25469 else
25470   ac_cv_prog_CXXCPP=$CXXCPP
25471 fi
25472 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
25473 echo "${ECHO_T}$CXXCPP" >&6; }
25474 ac_preproc_ok=false
25475 for ac_cxx_preproc_warn_flag in '' yes
25476 do
25477   # Use a header file that comes with gcc, so configuring glibc
25478   # with a fresh cross-compiler works.
25479   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25480   # <limits.h> exists even on freestanding compilers.
25481   # On the NeXT, cc -E runs the code through the compiler's parser,
25482   # not just through cpp. "Syntax error" is here to catch this case.
25483   cat >conftest.$ac_ext <<_ACEOF
25484 /* confdefs.h.  */
25485 _ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h.  */
25489 #ifdef __STDC__
25490 # include <limits.h>
25491 #else
25492 # include <assert.h>
25493 #endif
25494                      Syntax error
25495 _ACEOF
25496 if { (ac_try="$ac_cpp conftest.$ac_ext"
25497 case "(($ac_try" in
25498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25499   *) ac_try_echo=$ac_try;;
25500 esac
25501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25503   ac_status=$?
25504   grep -v '^ *+' conftest.er1 >conftest.err
25505   rm -f conftest.er1
25506   cat conftest.err >&5
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); } >/dev/null; then
25509   if test -s conftest.err; then
25510     ac_cpp_err=$ac_cxx_preproc_warn_flag
25511     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25512   else
25513     ac_cpp_err=
25514   fi
25515 else
25516   ac_cpp_err=yes
25517 fi
25518 if test -z "$ac_cpp_err"; then
25519   :
25520 else
25521   echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25523
25524   # Broken: fails on valid input.
25525 continue
25526 fi
25527
25528 rm -f conftest.err conftest.$ac_ext
25529
25530   # OK, works on sane cases.  Now check whether nonexistent headers
25531   # can be detected and how.
25532   cat >conftest.$ac_ext <<_ACEOF
25533 /* confdefs.h.  */
25534 _ACEOF
25535 cat confdefs.h >>conftest.$ac_ext
25536 cat >>conftest.$ac_ext <<_ACEOF
25537 /* end confdefs.h.  */
25538 #include <ac_nonexistent.h>
25539 _ACEOF
25540 if { (ac_try="$ac_cpp conftest.$ac_ext"
25541 case "(($ac_try" in
25542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25543   *) ac_try_echo=$ac_try;;
25544 esac
25545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25546   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25547   ac_status=$?
25548   grep -v '^ *+' conftest.er1 >conftest.err
25549   rm -f conftest.er1
25550   cat conftest.err >&5
25551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552   (exit $ac_status); } >/dev/null; then
25553   if test -s conftest.err; then
25554     ac_cpp_err=$ac_cxx_preproc_warn_flag
25555     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25556   else
25557     ac_cpp_err=
25558   fi
25559 else
25560   ac_cpp_err=yes
25561 fi
25562 if test -z "$ac_cpp_err"; then
25563   # Broken: success on invalid input.
25564 continue
25565 else
25566   echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25568
25569   # Passes both tests.
25570 ac_preproc_ok=:
25571 break
25572 fi
25573
25574 rm -f conftest.err conftest.$ac_ext
25575
25576 done
25577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25578 rm -f conftest.err conftest.$ac_ext
25579 if $ac_preproc_ok; then
25580   :
25581 else
25582   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
25583 See \`config.log' for more details." >&5
25584 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
25585 See \`config.log' for more details." >&2;}
25586    { (exit 1); exit 1; }; }
25587 fi
25588
25589 ac_ext=cpp
25590 ac_cpp='$CXXCPP $CPPFLAGS'
25591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25594
25595
25596
25597
25598     ac_ext=cpp
25599 ac_cpp='$CXXCPP $CPPFLAGS'
25600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25603
25604
25605
25606 for ac_header in iostream
25607 do
25608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25610   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25613   echo $ECHO_N "(cached) $ECHO_C" >&6
25614 fi
25615 ac_res=`eval echo '${'$as_ac_Header'}'`
25616                { echo "$as_me:$LINENO: result: $ac_res" >&5
25617 echo "${ECHO_T}$ac_res" >&6; }
25618 else
25619   # Is the header compilable?
25620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25622 cat >conftest.$ac_ext <<_ACEOF
25623 /* confdefs.h.  */
25624 _ACEOF
25625 cat confdefs.h >>conftest.$ac_ext
25626 cat >>conftest.$ac_ext <<_ACEOF
25627 /* end confdefs.h.  */
25628 $ac_includes_default
25629 #include <$ac_header>
25630 _ACEOF
25631 rm -f conftest.$ac_objext
25632 if { (ac_try="$ac_compile"
25633 case "(($ac_try" in
25634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25635   *) ac_try_echo=$ac_try;;
25636 esac
25637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25638   (eval "$ac_compile") 2>conftest.er1
25639   ac_status=$?
25640   grep -v '^ *+' conftest.er1 >conftest.err
25641   rm -f conftest.er1
25642   cat conftest.err >&5
25643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644   (exit $ac_status); } &&
25645          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25646   { (case "(($ac_try" in
25647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25648   *) ac_try_echo=$ac_try;;
25649 esac
25650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25651   (eval "$ac_try") 2>&5
25652   ac_status=$?
25653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654   (exit $ac_status); }; } &&
25655          { ac_try='test -s conftest.$ac_objext'
25656   { (case "(($ac_try" in
25657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25658   *) ac_try_echo=$ac_try;;
25659 esac
25660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25661   (eval "$ac_try") 2>&5
25662   ac_status=$?
25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); }; }; then
25665   ac_header_compiler=yes
25666 else
25667   echo "$as_me: failed program was:" >&5
25668 sed 's/^/| /' conftest.$ac_ext >&5
25669
25670         ac_header_compiler=no
25671 fi
25672
25673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25675 echo "${ECHO_T}$ac_header_compiler" >&6; }
25676
25677 # Is the header present?
25678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25680 cat >conftest.$ac_ext <<_ACEOF
25681 /* confdefs.h.  */
25682 _ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h.  */
25686 #include <$ac_header>
25687 _ACEOF
25688 if { (ac_try="$ac_cpp conftest.$ac_ext"
25689 case "(($ac_try" in
25690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691   *) ac_try_echo=$ac_try;;
25692 esac
25693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25695   ac_status=$?
25696   grep -v '^ *+' conftest.er1 >conftest.err
25697   rm -f conftest.er1
25698   cat conftest.err >&5
25699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); } >/dev/null; then
25701   if test -s conftest.err; then
25702     ac_cpp_err=$ac_cxx_preproc_warn_flag
25703     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25704   else
25705     ac_cpp_err=
25706   fi
25707 else
25708   ac_cpp_err=yes
25709 fi
25710 if test -z "$ac_cpp_err"; then
25711   ac_header_preproc=yes
25712 else
25713   echo "$as_me: failed program was:" >&5
25714 sed 's/^/| /' conftest.$ac_ext >&5
25715
25716   ac_header_preproc=no
25717 fi
25718
25719 rm -f conftest.err conftest.$ac_ext
25720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25721 echo "${ECHO_T}$ac_header_preproc" >&6; }
25722
25723 # So?  What about this header?
25724 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25725   yes:no: )
25726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25730     ac_header_preproc=yes
25731     ;;
25732   no:yes:* )
25733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25735     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25736 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25737     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25739     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25740 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25743     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25745     ( cat <<\_ASBOX
25746 ## ----------------------------------------- ##
25747 ## Report this to wx-dev@lists.wxwidgets.org ##
25748 ## ----------------------------------------- ##
25749 _ASBOX
25750      ) | sed "s/^/$as_me: WARNING:     /" >&2
25751     ;;
25752 esac
25753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25756   echo $ECHO_N "(cached) $ECHO_C" >&6
25757 else
25758   eval "$as_ac_Header=\$ac_header_preproc"
25759 fi
25760 ac_res=`eval echo '${'$as_ac_Header'}'`
25761                { echo "$as_me:$LINENO: result: $ac_res" >&5
25762 echo "${ECHO_T}$ac_res" >&6; }
25763
25764 fi
25765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25766   cat >>confdefs.h <<_ACEOF
25767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25768 _ACEOF
25769
25770 fi
25771
25772 done
25773
25774
25775     if test "$ac_cv_header_iostream" = "yes" ; then
25776       :
25777     else
25778       cat >>confdefs.h <<\_ACEOF
25779 #define wxUSE_IOSTREAMH 1
25780 _ACEOF
25781
25782     fi
25783
25784     ac_ext=c
25785 ac_cpp='$CPP $CPPFLAGS'
25786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25789
25790
25791
25792
25793   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
25794 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
25795 if test "${wx_cv_cpp_bool+set}" = set; then
25796   echo $ECHO_N "(cached) $ECHO_C" >&6
25797 else
25798
25799
25800     ac_ext=cpp
25801 ac_cpp='$CXXCPP $CPPFLAGS'
25802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25805
25806
25807     cat >conftest.$ac_ext <<_ACEOF
25808 /* confdefs.h.  */
25809 _ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h.  */
25813
25814
25815 int
25816 main ()
25817 {
25818
25819         bool b = true;
25820
25821         return 0;
25822
25823   ;
25824   return 0;
25825 }
25826 _ACEOF
25827 rm -f conftest.$ac_objext
25828 if { (ac_try="$ac_compile"
25829 case "(($ac_try" in
25830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25831   *) ac_try_echo=$ac_try;;
25832 esac
25833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25834   (eval "$ac_compile") 2>conftest.er1
25835   ac_status=$?
25836   grep -v '^ *+' conftest.er1 >conftest.err
25837   rm -f conftest.er1
25838   cat conftest.err >&5
25839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840   (exit $ac_status); } &&
25841          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25842   { (case "(($ac_try" in
25843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844   *) ac_try_echo=$ac_try;;
25845 esac
25846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25847   (eval "$ac_try") 2>&5
25848   ac_status=$?
25849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); }; } &&
25851          { ac_try='test -s conftest.$ac_objext'
25852   { (case "(($ac_try" in
25853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25854   *) ac_try_echo=$ac_try;;
25855 esac
25856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857   (eval "$ac_try") 2>&5
25858   ac_status=$?
25859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860   (exit $ac_status); }; }; then
25861
25862         wx_cv_cpp_bool=yes
25863
25864 else
25865   echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25867
25868
25869         wx_cv_cpp_bool=no
25870
25871
25872 fi
25873
25874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25875
25876     ac_ext=c
25877 ac_cpp='$CPP $CPPFLAGS'
25878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25881
25882
25883 fi
25884 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
25885 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
25886
25887   if test "$wx_cv_cpp_bool" = "yes"; then
25888     cat >>confdefs.h <<\_ACEOF
25889 #define HAVE_BOOL 1
25890 _ACEOF
25891
25892   fi
25893
25894
25895
25896   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25897 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25898 if test "${wx_cv_explicit+set}" = set; then
25899   echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901
25902
25903     ac_ext=cpp
25904 ac_cpp='$CXXCPP $CPPFLAGS'
25905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25908
25909
25910             cat >conftest.$ac_ext <<_ACEOF
25911 /* confdefs.h.  */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h.  */
25916
25917         class Foo { public: explicit Foo(int) {} };
25918
25919 int
25920 main ()
25921 {
25922
25923         return 0;
25924
25925   ;
25926   return 0;
25927 }
25928 _ACEOF
25929 rm -f conftest.$ac_objext
25930 if { (ac_try="$ac_compile"
25931 case "(($ac_try" in
25932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25933   *) ac_try_echo=$ac_try;;
25934 esac
25935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25936   (eval "$ac_compile") 2>conftest.er1
25937   ac_status=$?
25938   grep -v '^ *+' conftest.er1 >conftest.err
25939   rm -f conftest.er1
25940   cat conftest.err >&5
25941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942   (exit $ac_status); } &&
25943          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25944   { (case "(($ac_try" in
25945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946   *) ac_try_echo=$ac_try;;
25947 esac
25948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25949   (eval "$ac_try") 2>&5
25950   ac_status=$?
25951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952   (exit $ac_status); }; } &&
25953          { ac_try='test -s conftest.$ac_objext'
25954   { (case "(($ac_try" in
25955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956   *) ac_try_echo=$ac_try;;
25957 esac
25958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25959   (eval "$ac_try") 2>&5
25960   ac_status=$?
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); }; }; then
25963
25964         cat >conftest.$ac_ext <<_ACEOF
25965 /* confdefs.h.  */
25966 _ACEOF
25967 cat confdefs.h >>conftest.$ac_ext
25968 cat >>conftest.$ac_ext <<_ACEOF
25969 /* end confdefs.h.  */
25970
25971                 class Foo { public: explicit Foo(int) {} };
25972                 static void TakeFoo(const Foo& foo) { }
25973
25974 int
25975 main ()
25976 {
25977
25978                 TakeFoo(17);
25979                 return 0;
25980
25981   ;
25982   return 0;
25983 }
25984 _ACEOF
25985 rm -f conftest.$ac_objext
25986 if { (ac_try="$ac_compile"
25987 case "(($ac_try" in
25988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989   *) ac_try_echo=$ac_try;;
25990 esac
25991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992   (eval "$ac_compile") 2>conftest.er1
25993   ac_status=$?
25994   grep -v '^ *+' conftest.er1 >conftest.err
25995   rm -f conftest.er1
25996   cat conftest.err >&5
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); } &&
25999          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26000   { (case "(($ac_try" in
26001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002   *) ac_try_echo=$ac_try;;
26003 esac
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005   (eval "$ac_try") 2>&5
26006   ac_status=$?
26007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008   (exit $ac_status); }; } &&
26009          { ac_try='test -s conftest.$ac_objext'
26010   { (case "(($ac_try" in
26011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012   *) ac_try_echo=$ac_try;;
26013 esac
26014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26015   (eval "$ac_try") 2>&5
26016   ac_status=$?
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); }; }; then
26019   wx_cv_explicit=no
26020 else
26021   echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26023
26024         wx_cv_explicit=yes
26025
26026 fi
26027
26028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26029
26030 else
26031   echo "$as_me: failed program was:" >&5
26032 sed 's/^/| /' conftest.$ac_ext >&5
26033
26034         wx_cv_explicit=no
26035
26036 fi
26037
26038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26039
26040     ac_ext=c
26041 ac_cpp='$CPP $CPPFLAGS'
26042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26045
26046
26047 fi
26048 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26049 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26050
26051   if test "$wx_cv_explicit" = "yes"; then
26052     cat >>confdefs.h <<\_ACEOF
26053 #define HAVE_EXPLICIT 1
26054 _ACEOF
26055
26056   fi
26057
26058
26059 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26060 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26061 if test "${ac_cv_cxx_const_cast+set}" = set; then
26062   echo $ECHO_N "(cached) $ECHO_C" >&6
26063 else
26064
26065  ac_ext=cpp
26066 ac_cpp='$CXXCPP $CPPFLAGS'
26067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26070
26071  cat >conftest.$ac_ext <<_ACEOF
26072 /* confdefs.h.  */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h.  */
26077
26078 int
26079 main ()
26080 {
26081 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26082   ;
26083   return 0;
26084 }
26085 _ACEOF
26086 rm -f conftest.$ac_objext
26087 if { (ac_try="$ac_compile"
26088 case "(($ac_try" in
26089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26090   *) ac_try_echo=$ac_try;;
26091 esac
26092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26093   (eval "$ac_compile") 2>conftest.er1
26094   ac_status=$?
26095   grep -v '^ *+' conftest.er1 >conftest.err
26096   rm -f conftest.er1
26097   cat conftest.err >&5
26098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); } &&
26100          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26101   { (case "(($ac_try" in
26102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26103   *) ac_try_echo=$ac_try;;
26104 esac
26105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26106   (eval "$ac_try") 2>&5
26107   ac_status=$?
26108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109   (exit $ac_status); }; } &&
26110          { ac_try='test -s conftest.$ac_objext'
26111   { (case "(($ac_try" in
26112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26113   *) ac_try_echo=$ac_try;;
26114 esac
26115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26116   (eval "$ac_try") 2>&5
26117   ac_status=$?
26118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119   (exit $ac_status); }; }; then
26120   ac_cv_cxx_const_cast=yes
26121 else
26122   echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.$ac_ext >&5
26124
26125         ac_cv_cxx_const_cast=no
26126 fi
26127
26128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26129  ac_ext=c
26130 ac_cpp='$CPP $CPPFLAGS'
26131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26134
26135
26136 fi
26137 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26138 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26139 if test "$ac_cv_cxx_const_cast" = yes; then
26140
26141 cat >>confdefs.h <<\_ACEOF
26142 #define HAVE_CONST_CAST
26143 _ACEOF
26144
26145 fi
26146
26147 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26148 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26149 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26150   echo $ECHO_N "(cached) $ECHO_C" >&6
26151 else
26152
26153  ac_ext=cpp
26154 ac_cpp='$CXXCPP $CPPFLAGS'
26155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26158
26159  cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165 #include <typeinfo>
26166 class Base { public : Base () {} virtual void f () = 0;};
26167 class Derived : public Base { public : Derived () {} virtual void f () {} };
26168 class Unrelated { public : Unrelated () {} };
26169 int g (Unrelated&) { return 0; }
26170 int
26171 main ()
26172 {
26173
26174 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26175   ;
26176   return 0;
26177 }
26178 _ACEOF
26179 rm -f conftest.$ac_objext
26180 if { (ac_try="$ac_compile"
26181 case "(($ac_try" in
26182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183   *) ac_try_echo=$ac_try;;
26184 esac
26185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26186   (eval "$ac_compile") 2>conftest.er1
26187   ac_status=$?
26188   grep -v '^ *+' conftest.er1 >conftest.err
26189   rm -f conftest.er1
26190   cat conftest.err >&5
26191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192   (exit $ac_status); } &&
26193          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26194   { (case "(($ac_try" in
26195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26196   *) ac_try_echo=$ac_try;;
26197 esac
26198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26199   (eval "$ac_try") 2>&5
26200   ac_status=$?
26201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202   (exit $ac_status); }; } &&
26203          { ac_try='test -s conftest.$ac_objext'
26204   { (case "(($ac_try" in
26205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206   *) ac_try_echo=$ac_try;;
26207 esac
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209   (eval "$ac_try") 2>&5
26210   ac_status=$?
26211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212   (exit $ac_status); }; }; then
26213   ac_cv_cxx_reinterpret_cast=yes
26214 else
26215   echo "$as_me: failed program was:" >&5
26216 sed 's/^/| /' conftest.$ac_ext >&5
26217
26218         ac_cv_cxx_reinterpret_cast=no
26219 fi
26220
26221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26222  ac_ext=c
26223 ac_cpp='$CPP $CPPFLAGS'
26224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26227
26228
26229 fi
26230 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26231 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26232 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26233
26234 cat >>confdefs.h <<\_ACEOF
26235 #define HAVE_REINTERPRET_CAST
26236 _ACEOF
26237
26238 fi
26239
26240 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26241 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26242 if test "${ac_cv_cxx_static_cast+set}" = set; then
26243   echo $ECHO_N "(cached) $ECHO_C" >&6
26244 else
26245
26246  ac_ext=cpp
26247 ac_cpp='$CXXCPP $CPPFLAGS'
26248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26251
26252  cat >conftest.$ac_ext <<_ACEOF
26253 /* confdefs.h.  */
26254 _ACEOF
26255 cat confdefs.h >>conftest.$ac_ext
26256 cat >>conftest.$ac_ext <<_ACEOF
26257 /* end confdefs.h.  */
26258 #include <typeinfo>
26259 class Base { public : Base () {} virtual void f () = 0; };
26260 class Derived : public Base { public : Derived () {} virtual void f () {} };
26261 int g (Derived&) { return 0; }
26262 int
26263 main ()
26264 {
26265
26266 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26267   ;
26268   return 0;
26269 }
26270 _ACEOF
26271 rm -f conftest.$ac_objext
26272 if { (ac_try="$ac_compile"
26273 case "(($ac_try" in
26274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26275   *) ac_try_echo=$ac_try;;
26276 esac
26277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26278   (eval "$ac_compile") 2>conftest.er1
26279   ac_status=$?
26280   grep -v '^ *+' conftest.er1 >conftest.err
26281   rm -f conftest.er1
26282   cat conftest.err >&5
26283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284   (exit $ac_status); } &&
26285          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26286   { (case "(($ac_try" in
26287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26288   *) ac_try_echo=$ac_try;;
26289 esac
26290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26291   (eval "$ac_try") 2>&5
26292   ac_status=$?
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); }; } &&
26295          { ac_try='test -s conftest.$ac_objext'
26296   { (case "(($ac_try" in
26297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298   *) ac_try_echo=$ac_try;;
26299 esac
26300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301   (eval "$ac_try") 2>&5
26302   ac_status=$?
26303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304   (exit $ac_status); }; }; then
26305   ac_cv_cxx_static_cast=yes
26306 else
26307   echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26309
26310         ac_cv_cxx_static_cast=no
26311 fi
26312
26313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26314  ac_ext=c
26315 ac_cpp='$CPP $CPPFLAGS'
26316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26319
26320
26321 fi
26322 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
26323 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
26324 if test "$ac_cv_cxx_static_cast" = yes; then
26325
26326 cat >>confdefs.h <<\_ACEOF
26327 #define HAVE_STATIC_CAST
26328 _ACEOF
26329
26330 fi
26331
26332
26333 if test "x$SUNCXX" = xyes; then
26334     CXXFLAGS="-features=tmplife $CXXFLAGS"
26335 fi
26336
26337 if test "x$SUNCC" = xyes; then
26338     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
26339 fi
26340
26341 if test "x$SGICC" = "xyes"; then
26342     CFLAGS="-woff 3970 $CFLAGS"
26343 fi
26344 if test "x$SGICXX" = "xyes"; then
26345     CXXFLAGS="-woff 3970 $CXXFLAGS"
26346 fi
26347
26348 if test "x$HPCC" = "xyes"; then
26349                     CFLAGS="+W 2011,2450 $CFLAGS"
26350 fi
26351 if test "x$HPCXX" = "xyes"; then
26352             CXXFLAGS="+W 2340 $CXXFLAGS"
26353 fi
26354
26355 if test "x$COMPAQCXX" = "xyes"; then
26356                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
26357 fi
26358
26359 ac_ext=cpp
26360 ac_cpp='$CXXCPP $CPPFLAGS'
26361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26364
26365
26366 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
26367     if test "$wxUSE_UNICODE" = "yes"; then
26368         std_string="std::wstring"
26369         char_type="wchar_t"
26370     else
26371         std_string="std::string"
26372         char_type="char"
26373     fi
26374
26375         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
26376 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
26377 if test "${wx_cv_class_stdstring+set}" = set; then
26378   echo $ECHO_N "(cached) $ECHO_C" >&6
26379 else
26380
26381             cat >conftest.$ac_ext <<_ACEOF
26382 /* confdefs.h.  */
26383 _ACEOF
26384 cat confdefs.h >>conftest.$ac_ext
26385 cat >>conftest.$ac_ext <<_ACEOF
26386 /* end confdefs.h.  */
26387 #include <string>
26388 int
26389 main ()
26390 {
26391 $std_string foo;
26392   ;
26393   return 0;
26394 }
26395 _ACEOF
26396 rm -f conftest.$ac_objext
26397 if { (ac_try="$ac_compile"
26398 case "(($ac_try" in
26399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26400   *) ac_try_echo=$ac_try;;
26401 esac
26402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26403   (eval "$ac_compile") 2>conftest.er1
26404   ac_status=$?
26405   grep -v '^ *+' conftest.er1 >conftest.err
26406   rm -f conftest.er1
26407   cat conftest.err >&5
26408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); } &&
26410          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26411   { (case "(($ac_try" in
26412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413   *) ac_try_echo=$ac_try;;
26414 esac
26415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416   (eval "$ac_try") 2>&5
26417   ac_status=$?
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); }; } &&
26420          { ac_try='test -s conftest.$ac_objext'
26421   { (case "(($ac_try" in
26422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423   *) ac_try_echo=$ac_try;;
26424 esac
26425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26426   (eval "$ac_try") 2>&5
26427   ac_status=$?
26428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429   (exit $ac_status); }; }; then
26430   wx_cv_class_stdstring=yes
26431 else
26432   echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26434
26435         wx_cv_class_stdstring=no
26436
26437 fi
26438
26439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26440
26441
26442 fi
26443 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
26444 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
26445
26446     if test "$wx_cv_class_stdstring" = yes; then
26447         if test "$wxUSE_UNICODE" = "yes"; then
26448             cat >>confdefs.h <<\_ACEOF
26449 #define HAVE_STD_WSTRING 1
26450 _ACEOF
26451
26452         fi
26453                     else
26454         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
26455 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
26456 if test "${wx_cv_class_stdbasicstring+set}" = set; then
26457   echo $ECHO_N "(cached) $ECHO_C" >&6
26458 else
26459
26460                 cat >conftest.$ac_ext <<_ACEOF
26461 /* confdefs.h.  */
26462 _ACEOF
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h.  */
26466
26467                     #ifdef HAVE_WCHAR_H
26468                     #  ifdef __CYGWIN__
26469                     #    include <stddef.h>
26470                     #  endif
26471                     #  include <wchar.h>
26472                     #endif
26473                     #ifdef HAVE_STDLIB_H
26474                     #  include <stdlib.h>
26475                     #endif
26476                     #include <stdio.h>
26477                     #include <string>
26478
26479 int
26480 main ()
26481 {
26482 std::basic_string<$char_type> foo;
26483                      const $char_type* dummy = foo.c_str();
26484   ;
26485   return 0;
26486 }
26487 _ACEOF
26488 rm -f conftest.$ac_objext
26489 if { (ac_try="$ac_compile"
26490 case "(($ac_try" in
26491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492   *) ac_try_echo=$ac_try;;
26493 esac
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495   (eval "$ac_compile") 2>conftest.er1
26496   ac_status=$?
26497   grep -v '^ *+' conftest.er1 >conftest.err
26498   rm -f conftest.er1
26499   cat conftest.err >&5
26500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501   (exit $ac_status); } &&
26502          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26503   { (case "(($ac_try" in
26504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26505   *) ac_try_echo=$ac_try;;
26506 esac
26507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26508   (eval "$ac_try") 2>&5
26509   ac_status=$?
26510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511   (exit $ac_status); }; } &&
26512          { ac_try='test -s conftest.$ac_objext'
26513   { (case "(($ac_try" in
26514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26515   *) ac_try_echo=$ac_try;;
26516 esac
26517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26518   (eval "$ac_try") 2>&5
26519   ac_status=$?
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); }; }; then
26522   wx_cv_class_stdbasicstring=yes
26523 else
26524   echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527         wx_cv_class_stdbasicstring=no
26528
26529 fi
26530
26531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26532
26533
26534 fi
26535 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
26536 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
26537
26538         if test "$wx_cv_class_stdbasicstring" != yes; then
26539             if test "$wxUSE_STL" = "yes"; then
26540                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
26541 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
26542    { (exit 1); exit 1; }; }
26543             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
26544                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
26545 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
26546    { (exit 1); exit 1; }; }
26547             else
26548                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
26549 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
26550                 wxUSE_STD_STRING=no
26551             fi
26552         fi
26553     fi
26554 fi
26555
26556 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
26557     { echo "$as_me:$LINENO: checking for std::istream" >&5
26558 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
26559 if test "${ac_cv_type_std__istream+set}" = set; then
26560   echo $ECHO_N "(cached) $ECHO_C" >&6
26561 else
26562   cat >conftest.$ac_ext <<_ACEOF
26563 /* confdefs.h.  */
26564 _ACEOF
26565 cat confdefs.h >>conftest.$ac_ext
26566 cat >>conftest.$ac_ext <<_ACEOF
26567 /* end confdefs.h.  */
26568 #include <iostream>
26569
26570 typedef std::istream ac__type_new_;
26571 int
26572 main ()
26573 {
26574 if ((ac__type_new_ *) 0)
26575   return 0;
26576 if (sizeof (ac__type_new_))
26577   return 0;
26578   ;
26579   return 0;
26580 }
26581 _ACEOF
26582 rm -f conftest.$ac_objext
26583 if { (ac_try="$ac_compile"
26584 case "(($ac_try" in
26585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26586   *) ac_try_echo=$ac_try;;
26587 esac
26588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26589   (eval "$ac_compile") 2>conftest.er1
26590   ac_status=$?
26591   grep -v '^ *+' conftest.er1 >conftest.err
26592   rm -f conftest.er1
26593   cat conftest.err >&5
26594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); } &&
26596          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26597   { (case "(($ac_try" in
26598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26599   *) ac_try_echo=$ac_try;;
26600 esac
26601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26602   (eval "$ac_try") 2>&5
26603   ac_status=$?
26604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605   (exit $ac_status); }; } &&
26606          { ac_try='test -s conftest.$ac_objext'
26607   { (case "(($ac_try" in
26608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26609   *) ac_try_echo=$ac_try;;
26610 esac
26611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26612   (eval "$ac_try") 2>&5
26613   ac_status=$?
26614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615   (exit $ac_status); }; }; then
26616   ac_cv_type_std__istream=yes
26617 else
26618   echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26620
26621         ac_cv_type_std__istream=no
26622 fi
26623
26624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26625 fi
26626 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
26627 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
26628 if test $ac_cv_type_std__istream = yes; then
26629
26630 cat >>confdefs.h <<_ACEOF
26631 #define HAVE_STD__ISTREAM 1
26632 _ACEOF
26633
26634
26635 else
26636   wxUSE_STD_IOSTREAM=no
26637 fi
26638 { echo "$as_me:$LINENO: checking for std::ostream" >&5
26639 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
26640 if test "${ac_cv_type_std__ostream+set}" = set; then
26641   echo $ECHO_N "(cached) $ECHO_C" >&6
26642 else
26643   cat >conftest.$ac_ext <<_ACEOF
26644 /* confdefs.h.  */
26645 _ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h.  */
26649 #include <iostream>
26650
26651 typedef std::ostream ac__type_new_;
26652 int
26653 main ()
26654 {
26655 if ((ac__type_new_ *) 0)
26656   return 0;
26657 if (sizeof (ac__type_new_))
26658   return 0;
26659   ;
26660   return 0;
26661 }
26662 _ACEOF
26663 rm -f conftest.$ac_objext
26664 if { (ac_try="$ac_compile"
26665 case "(($ac_try" in
26666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26667   *) ac_try_echo=$ac_try;;
26668 esac
26669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26670   (eval "$ac_compile") 2>conftest.er1
26671   ac_status=$?
26672   grep -v '^ *+' conftest.er1 >conftest.err
26673   rm -f conftest.er1
26674   cat conftest.err >&5
26675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); } &&
26677          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26678   { (case "(($ac_try" in
26679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680   *) ac_try_echo=$ac_try;;
26681 esac
26682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26683   (eval "$ac_try") 2>&5
26684   ac_status=$?
26685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686   (exit $ac_status); }; } &&
26687          { ac_try='test -s conftest.$ac_objext'
26688   { (case "(($ac_try" in
26689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26690   *) ac_try_echo=$ac_try;;
26691 esac
26692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26693   (eval "$ac_try") 2>&5
26694   ac_status=$?
26695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696   (exit $ac_status); }; }; then
26697   ac_cv_type_std__ostream=yes
26698 else
26699   echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26701
26702         ac_cv_type_std__ostream=no
26703 fi
26704
26705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26706 fi
26707 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
26708 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
26709 if test $ac_cv_type_std__ostream = yes; then
26710
26711 cat >>confdefs.h <<_ACEOF
26712 #define HAVE_STD__OSTREAM 1
26713 _ACEOF
26714
26715
26716 else
26717   wxUSE_STD_IOSTREAM=no
26718 fi
26719
26720
26721     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
26722         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
26723             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
26724 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
26725    { (exit 1); exit 1; }; }
26726         else
26727             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
26728 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
26729         fi
26730     fi
26731 fi
26732
26733 if test "$wxUSE_STL" = "yes"; then
26734         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26735 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26736 if test "${wx_cv_lib_stl+set}" = set; then
26737   echo $ECHO_N "(cached) $ECHO_C" >&6
26738 else
26739   cat >conftest.$ac_ext <<_ACEOF
26740 /* confdefs.h.  */
26741 _ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h.  */
26745 #include <string>
26746             #include <functional>
26747             #include <algorithm>
26748             #include <vector>
26749             #include <list>
26750 int
26751 main ()
26752 {
26753 std::vector<int> moo;
26754              std::list<int> foo;
26755              std::vector<int>::iterator it =
26756                  std::find_if(moo.begin(), moo.end(),
26757                               std::bind2nd(std::less<int>(), 3));
26758   ;
26759   return 0;
26760 }
26761 _ACEOF
26762 rm -f conftest.$ac_objext
26763 if { (ac_try="$ac_compile"
26764 case "(($ac_try" in
26765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26766   *) ac_try_echo=$ac_try;;
26767 esac
26768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26769   (eval "$ac_compile") 2>conftest.er1
26770   ac_status=$?
26771   grep -v '^ *+' conftest.er1 >conftest.err
26772   rm -f conftest.er1
26773   cat conftest.err >&5
26774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775   (exit $ac_status); } &&
26776          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26777   { (case "(($ac_try" in
26778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26779   *) ac_try_echo=$ac_try;;
26780 esac
26781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26782   (eval "$ac_try") 2>&5
26783   ac_status=$?
26784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785   (exit $ac_status); }; } &&
26786          { ac_try='test -s conftest.$ac_objext'
26787   { (case "(($ac_try" in
26788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26789   *) ac_try_echo=$ac_try;;
26790 esac
26791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26792   (eval "$ac_try") 2>&5
26793   ac_status=$?
26794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795   (exit $ac_status); }; }; then
26796   wx_cv_lib_stl=yes
26797 else
26798   echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26800
26801         wx_cv_lib_stl=no
26802
26803 fi
26804
26805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26806
26807 fi
26808 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26809 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26810
26811     if test "$wx_cv_lib_stl" != yes; then
26812          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26813 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26814    { (exit 1); exit 1; }; }
26815     fi
26816
26817         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26818 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26819 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26820   echo $ECHO_N "(cached) $ECHO_C" >&6
26821 else
26822   cat >conftest.$ac_ext <<_ACEOF
26823 /* confdefs.h.  */
26824 _ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h.  */
26828 #include <string>
26829 int
26830 main ()
26831 {
26832 std::string foo, bar;
26833             foo.compare(bar);
26834             foo.compare(1, 1, bar);
26835             foo.compare(1, 1, bar, 1, 1);
26836             foo.compare("");
26837             foo.compare(1, 1, "");
26838             foo.compare(1, 1, "", 2);
26839   ;
26840   return 0;
26841 }
26842 _ACEOF
26843 rm -f conftest.$ac_objext
26844 if { (ac_try="$ac_compile"
26845 case "(($ac_try" in
26846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26847   *) ac_try_echo=$ac_try;;
26848 esac
26849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26850   (eval "$ac_compile") 2>conftest.er1
26851   ac_status=$?
26852   grep -v '^ *+' conftest.er1 >conftest.err
26853   rm -f conftest.er1
26854   cat conftest.err >&5
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); } &&
26857          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26858   { (case "(($ac_try" in
26859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860   *) ac_try_echo=$ac_try;;
26861 esac
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863   (eval "$ac_try") 2>&5
26864   ac_status=$?
26865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866   (exit $ac_status); }; } &&
26867          { ac_try='test -s conftest.$ac_objext'
26868   { (case "(($ac_try" in
26869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26870   *) ac_try_echo=$ac_try;;
26871 esac
26872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26873   (eval "$ac_try") 2>&5
26874   ac_status=$?
26875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876   (exit $ac_status); }; }; then
26877   wx_cv_func_stdstring_compare=yes
26878 else
26879   echo "$as_me: failed program was:" >&5
26880 sed 's/^/| /' conftest.$ac_ext >&5
26881
26882         wx_cv_func_stdstring_compare=no
26883
26884 fi
26885
26886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26887
26888 fi
26889 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26890 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26891
26892     if test "$wx_cv_func_stdstring_compare" = yes; then
26893         cat >>confdefs.h <<\_ACEOF
26894 #define HAVE_STD_STRING_COMPARE 1
26895 _ACEOF
26896
26897     fi
26898
26899         if test "${ac_cv_header_hash_map+set}" = set; then
26900   { echo "$as_me:$LINENO: checking for hash_map" >&5
26901 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26902 if test "${ac_cv_header_hash_map+set}" = set; then
26903   echo $ECHO_N "(cached) $ECHO_C" >&6
26904 fi
26905 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26906 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26907 else
26908   # Is the header compilable?
26909 { echo "$as_me:$LINENO: checking hash_map usability" >&5
26910 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6; }
26911 cat >conftest.$ac_ext <<_ACEOF
26912 /* confdefs.h.  */
26913 _ACEOF
26914 cat confdefs.h >>conftest.$ac_ext
26915 cat >>conftest.$ac_ext <<_ACEOF
26916 /* end confdefs.h.  */
26917 $ac_includes_default
26918 #include <hash_map>
26919 _ACEOF
26920 rm -f conftest.$ac_objext
26921 if { (ac_try="$ac_compile"
26922 case "(($ac_try" in
26923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924   *) ac_try_echo=$ac_try;;
26925 esac
26926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26927   (eval "$ac_compile") 2>conftest.er1
26928   ac_status=$?
26929   grep -v '^ *+' conftest.er1 >conftest.err
26930   rm -f conftest.er1
26931   cat conftest.err >&5
26932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933   (exit $ac_status); } &&
26934          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26935   { (case "(($ac_try" in
26936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937   *) ac_try_echo=$ac_try;;
26938 esac
26939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26940   (eval "$ac_try") 2>&5
26941   ac_status=$?
26942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943   (exit $ac_status); }; } &&
26944          { ac_try='test -s conftest.$ac_objext'
26945   { (case "(($ac_try" in
26946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947   *) ac_try_echo=$ac_try;;
26948 esac
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950   (eval "$ac_try") 2>&5
26951   ac_status=$?
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); }; }; then
26954   ac_header_compiler=yes
26955 else
26956   echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26958
26959         ac_header_compiler=no
26960 fi
26961
26962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26964 echo "${ECHO_T}$ac_header_compiler" >&6; }
26965
26966 # Is the header present?
26967 { echo "$as_me:$LINENO: checking hash_map presence" >&5
26968 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6; }
26969 cat >conftest.$ac_ext <<_ACEOF
26970 /* confdefs.h.  */
26971 _ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h.  */
26975 #include <hash_map>
26976 _ACEOF
26977 if { (ac_try="$ac_cpp conftest.$ac_ext"
26978 case "(($ac_try" in
26979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26980   *) ac_try_echo=$ac_try;;
26981 esac
26982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26984   ac_status=$?
26985   grep -v '^ *+' conftest.er1 >conftest.err
26986   rm -f conftest.er1
26987   cat conftest.err >&5
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); } >/dev/null; then
26990   if test -s conftest.err; then
26991     ac_cpp_err=$ac_cxx_preproc_warn_flag
26992     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26993   else
26994     ac_cpp_err=
26995   fi
26996 else
26997   ac_cpp_err=yes
26998 fi
26999 if test -z "$ac_cpp_err"; then
27000   ac_header_preproc=yes
27001 else
27002   echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27004
27005   ac_header_preproc=no
27006 fi
27007
27008 rm -f conftest.err conftest.$ac_ext
27009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27010 echo "${ECHO_T}$ac_header_preproc" >&6; }
27011
27012 # So?  What about this header?
27013 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27014   yes:no: )
27015     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
27016 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
27017     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
27018 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
27019     ac_header_preproc=yes
27020     ;;
27021   no:yes:* )
27022     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
27023 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
27024     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
27025 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
27026     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
27027 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
27028     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
27029 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
27030     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
27031 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
27032     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
27033 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
27034     ( cat <<\_ASBOX
27035 ## ----------------------------------------- ##
27036 ## Report this to wx-dev@lists.wxwidgets.org ##
27037 ## ----------------------------------------- ##
27038 _ASBOX
27039      ) | sed "s/^/$as_me: WARNING:     /" >&2
27040     ;;
27041 esac
27042 { echo "$as_me:$LINENO: checking for hash_map" >&5
27043 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
27044 if test "${ac_cv_header_hash_map+set}" = set; then
27045   echo $ECHO_N "(cached) $ECHO_C" >&6
27046 else
27047   ac_cv_header_hash_map=$ac_header_preproc
27048 fi
27049 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27050 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
27051
27052 fi
27053 if test $ac_cv_header_hash_map = yes; then
27054   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27055 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
27056 if test "${wx_cv_class_stdhashmapset+set}" = set; then
27057   echo $ECHO_N "(cached) $ECHO_C" >&6
27058 else
27059   cat >conftest.$ac_ext <<_ACEOF
27060 /* confdefs.h.  */
27061 _ACEOF
27062 cat confdefs.h >>conftest.$ac_ext
27063 cat >>conftest.$ac_ext <<_ACEOF
27064 /* end confdefs.h.  */
27065 #include <hash_map>
27066                 #include <hash_set>
27067 int
27068 main ()
27069 {
27070 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
27071                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
27072   ;
27073   return 0;
27074 }
27075 _ACEOF
27076 rm -f conftest.$ac_objext
27077 if { (ac_try="$ac_compile"
27078 case "(($ac_try" in
27079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27080   *) ac_try_echo=$ac_try;;
27081 esac
27082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27083   (eval "$ac_compile") 2>conftest.er1
27084   ac_status=$?
27085   grep -v '^ *+' conftest.er1 >conftest.err
27086   rm -f conftest.er1
27087   cat conftest.err >&5
27088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089   (exit $ac_status); } &&
27090          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27091   { (case "(($ac_try" in
27092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27093   *) ac_try_echo=$ac_try;;
27094 esac
27095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27096   (eval "$ac_try") 2>&5
27097   ac_status=$?
27098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099   (exit $ac_status); }; } &&
27100          { ac_try='test -s conftest.$ac_objext'
27101   { (case "(($ac_try" in
27102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27103   *) ac_try_echo=$ac_try;;
27104 esac
27105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27106   (eval "$ac_try") 2>&5
27107   ac_status=$?
27108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109   (exit $ac_status); }; }; then
27110   wx_cv_class_stdhashmapset=yes
27111 else
27112   echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27114
27115         wx_cv_class_stdhashmapset=no
27116 fi
27117
27118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27119
27120
27121 fi
27122 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27123 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
27124
27125 fi
27126
27127
27128
27129     if test "$wx_cv_class_stdhashmapset" = yes; then
27130         cat >>confdefs.h <<\_ACEOF
27131 #define HAVE_HASH_MAP 1
27132 _ACEOF
27133
27134         cat >>confdefs.h <<\_ACEOF
27135 #define HAVE_STD_HASH_MAP 1
27136 _ACEOF
27137
27138     fi
27139
27140     if test "${ac_cv_header_ext_hash_map+set}" = set; then
27141   { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27142 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27143 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27144   echo $ECHO_N "(cached) $ECHO_C" >&6
27145 fi
27146 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27147 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27148 else
27149   # Is the header compilable?
27150 { echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
27151 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6; }
27152 cat >conftest.$ac_ext <<_ACEOF
27153 /* confdefs.h.  */
27154 _ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h.  */
27158 $ac_includes_default
27159 #include <ext/hash_map>
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          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27176   { (case "(($ac_try" in
27177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27178   *) ac_try_echo=$ac_try;;
27179 esac
27180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27181   (eval "$ac_try") 2>&5
27182   ac_status=$?
27183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184   (exit $ac_status); }; } &&
27185          { ac_try='test -s conftest.$ac_objext'
27186   { (case "(($ac_try" in
27187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188   *) ac_try_echo=$ac_try;;
27189 esac
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191   (eval "$ac_try") 2>&5
27192   ac_status=$?
27193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); }; }; then
27195   ac_header_compiler=yes
27196 else
27197   echo "$as_me: failed program was:" >&5
27198 sed 's/^/| /' conftest.$ac_ext >&5
27199
27200         ac_header_compiler=no
27201 fi
27202
27203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27205 echo "${ECHO_T}$ac_header_compiler" >&6; }
27206
27207 # Is the header present?
27208 { echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
27209 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6; }
27210 cat >conftest.$ac_ext <<_ACEOF
27211 /* confdefs.h.  */
27212 _ACEOF
27213 cat confdefs.h >>conftest.$ac_ext
27214 cat >>conftest.$ac_ext <<_ACEOF
27215 /* end confdefs.h.  */
27216 #include <ext/hash_map>
27217 _ACEOF
27218 if { (ac_try="$ac_cpp conftest.$ac_ext"
27219 case "(($ac_try" in
27220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221   *) ac_try_echo=$ac_try;;
27222 esac
27223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27225   ac_status=$?
27226   grep -v '^ *+' conftest.er1 >conftest.err
27227   rm -f conftest.er1
27228   cat conftest.err >&5
27229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230   (exit $ac_status); } >/dev/null; then
27231   if test -s conftest.err; then
27232     ac_cpp_err=$ac_cxx_preproc_warn_flag
27233     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27234   else
27235     ac_cpp_err=
27236   fi
27237 else
27238   ac_cpp_err=yes
27239 fi
27240 if test -z "$ac_cpp_err"; then
27241   ac_header_preproc=yes
27242 else
27243   echo "$as_me: failed program was:" >&5
27244 sed 's/^/| /' conftest.$ac_ext >&5
27245
27246   ac_header_preproc=no
27247 fi
27248
27249 rm -f conftest.err conftest.$ac_ext
27250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27251 echo "${ECHO_T}$ac_header_preproc" >&6; }
27252
27253 # So?  What about this header?
27254 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27255   yes:no: )
27256     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
27257 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
27258     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
27259 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
27260     ac_header_preproc=yes
27261     ;;
27262   no:yes:* )
27263     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
27264 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
27265     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
27266 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
27267     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
27268 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
27269     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
27270 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
27271     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
27272 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
27273     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
27274 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
27275     ( cat <<\_ASBOX
27276 ## ----------------------------------------- ##
27277 ## Report this to wx-dev@lists.wxwidgets.org ##
27278 ## ----------------------------------------- ##
27279 _ASBOX
27280      ) | sed "s/^/$as_me: WARNING:     /" >&2
27281     ;;
27282 esac
27283 { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27284 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27285 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27286   echo $ECHO_N "(cached) $ECHO_C" >&6
27287 else
27288   ac_cv_header_ext_hash_map=$ac_header_preproc
27289 fi
27290 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27291 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27292
27293 fi
27294 if test $ac_cv_header_ext_hash_map = yes; then
27295   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27296 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
27297 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27298   echo $ECHO_N "(cached) $ECHO_C" >&6
27299 else
27300   cat >conftest.$ac_ext <<_ACEOF
27301 /* confdefs.h.  */
27302 _ACEOF
27303 cat confdefs.h >>conftest.$ac_ext
27304 cat >>conftest.$ac_ext <<_ACEOF
27305 /* end confdefs.h.  */
27306 #include <ext/hash_map>
27307                 #include <ext/hash_set>
27308 int
27309 main ()
27310 {
27311 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
27312                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
27313   ;
27314   return 0;
27315 }
27316 _ACEOF
27317 rm -f conftest.$ac_objext
27318 if { (ac_try="$ac_compile"
27319 case "(($ac_try" in
27320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321   *) ac_try_echo=$ac_try;;
27322 esac
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324   (eval "$ac_compile") 2>conftest.er1
27325   ac_status=$?
27326   grep -v '^ *+' conftest.er1 >conftest.err
27327   rm -f conftest.er1
27328   cat conftest.err >&5
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); } &&
27331          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27332   { (case "(($ac_try" in
27333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27334   *) ac_try_echo=$ac_try;;
27335 esac
27336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27337   (eval "$ac_try") 2>&5
27338   ac_status=$?
27339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340   (exit $ac_status); }; } &&
27341          { ac_try='test -s conftest.$ac_objext'
27342   { (case "(($ac_try" in
27343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27344   *) ac_try_echo=$ac_try;;
27345 esac
27346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27347   (eval "$ac_try") 2>&5
27348   ac_status=$?
27349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350   (exit $ac_status); }; }; then
27351   wx_cv_class_gnuhashmapset=yes
27352 else
27353   echo "$as_me: failed program was:" >&5
27354 sed 's/^/| /' conftest.$ac_ext >&5
27355
27356         wx_cv_class_gnuhashmapset=no
27357 fi
27358
27359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360
27361
27362 fi
27363 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27364 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
27365
27366 fi
27367
27368
27369
27370     if test "$wx_cv_class_gnuhashmapset" = yes; then
27371          cat >>confdefs.h <<\_ACEOF
27372 #define HAVE_EXT_HASH_MAP 1
27373 _ACEOF
27374
27375          cat >>confdefs.h <<\_ACEOF
27376 #define HAVE_GNU_CXX_HASH_MAP 1
27377 _ACEOF
27378
27379     fi
27380 fi
27381
27382 ac_ext=c
27383 ac_cpp='$CPP $CPPFLAGS'
27384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27387
27388
27389
27390 SEARCH_INCLUDE="\
27391     /usr/local/include        \
27392                               \
27393     /usr/Motif-2.1/include    \
27394     /usr/Motif-1.2/include    \
27395     /usr/include/Motif1.2     \
27396                               \
27397     /usr/dt/include           \
27398     /usr/openwin/include      \
27399                               \
27400     /usr/include/Xm           \
27401                               \
27402     /usr/X11R6/include        \
27403     /usr/X11R6.4/include      \
27404     /usr/X11R5/include        \
27405     /usr/X11R4/include        \
27406                               \
27407     /usr/include/X11R6        \
27408     /usr/include/X11R5        \
27409     /usr/include/X11R4        \
27410                               \
27411     /usr/local/X11R6/include  \
27412     /usr/local/X11R5/include  \
27413     /usr/local/X11R4/include  \
27414                               \
27415     /usr/local/include/X11R6  \
27416     /usr/local/include/X11R5  \
27417     /usr/local/include/X11R4  \
27418                               \
27419     /usr/X11/include          \
27420     /usr/include/X11          \
27421     /usr/local/X11/include    \
27422     /usr/local/include/X11    \
27423                               \
27424     /usr/XFree86/include/X11  \
27425     /usr/pkg/include          \
27426                               \
27427     /usr/openwin/share/include"
27428
27429 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27430 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27431
27432 case "${host}" in
27433     *-*-irix6* )
27434         if test "${wx_cv_std_libpath+set}" = set; then
27435   echo $ECHO_N "(cached) $ECHO_C" >&6
27436 else
27437
27438                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27439                     for e in a so sl dylib dll.a; do
27440                         libc="$d/libc.$e"
27441                         if test -f $libc; then
27442                             save_LIBS="$LIBS"
27443                             LIBS="$libc"
27444                             cat >conftest.$ac_ext <<_ACEOF
27445 int main() { return 0; }
27446 _ACEOF
27447 rm -f conftest.$ac_objext conftest$ac_exeext
27448 if { (ac_try="$ac_link"
27449 case "(($ac_try" in
27450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451   *) ac_try_echo=$ac_try;;
27452 esac
27453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454   (eval "$ac_link") 2>conftest.er1
27455   ac_status=$?
27456   grep -v '^ *+' conftest.er1 >conftest.err
27457   rm -f conftest.er1
27458   cat conftest.err >&5
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); } &&
27461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27462   { (case "(($ac_try" in
27463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464   *) ac_try_echo=$ac_try;;
27465 esac
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467   (eval "$ac_try") 2>&5
27468   ac_status=$?
27469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470   (exit $ac_status); }; } &&
27471          { ac_try='test -s conftest$ac_exeext'
27472   { (case "(($ac_try" in
27473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474   *) ac_try_echo=$ac_try;;
27475 esac
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477   (eval "$ac_try") 2>&5
27478   ac_status=$?
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); }; }; then
27481   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27482 else
27483   echo "$as_me: failed program was:" >&5
27484 sed 's/^/| /' conftest.$ac_ext >&5
27485
27486
27487 fi
27488
27489 rm -f core conftest.err conftest.$ac_objext \
27490       conftest$ac_exeext conftest.$ac_ext
27491                             LIBS="$save_LIBS"
27492                             if test "x$wx_cv_std_libpath" != "x"; then
27493                                 break 2
27494                             fi
27495                         fi
27496                     done
27497                 done
27498                 if test "x$wx_cv_std_libpath" = "x"; then
27499                     wx_cv_std_libpath="lib"
27500                 fi
27501
27502
27503 fi
27504
27505         ;;
27506
27507     *-*-solaris2* )
27508                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27509             wx_cv_std_libpath="lib/64"
27510         else
27511             wx_cv_std_libpath="lib"
27512         fi
27513         ;;
27514
27515     *-*-linux* )
27516                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27517                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27518             wx_cv_std_libpath="lib64"
27519         else
27520             wx_cv_std_libpath="lib"
27521         fi
27522         ;;
27523
27524     *)
27525         wx_cv_std_libpath="lib";
27526         ;;
27527 esac
27528
27529 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27530 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27531
27532 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27533
27534 if test "$build" != "$host" -a "$GCC" = yes; then
27535                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27536         cross_root=`dirname $cross_root`
27537         cross_root=`dirname $cross_root`
27538
27539                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27540         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27541         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27542
27543                 if test -z "$PKG_CONFIG_PATH"; then
27544             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27545             export PKG_CONFIG_PATH
27546         fi
27547
27548                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27549
27550 ac_find_includes=
27551 for ac_dir in $SEARCH_INCLUDE /usr/include;
27552   do
27553     if test -f "$ac_dir/X11/Intrinsic.h"; then
27554       ac_find_includes=$ac_dir
27555       break
27556     fi
27557   done
27558
27559             x_includes=$ac_find_includes
27560         fi
27561         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27562
27563   ac_find_libraries=
27564   for ac_dir in $SEARCH_LIB;
27565   do
27566     for ac_extension in a so sl dylib dll.a; do
27567       if test -f "$ac_dir/libXt.$ac_extension"; then
27568         ac_find_libraries=$ac_dir
27569         break 2
27570       fi
27571     done
27572   done
27573
27574             x_libraries=$ac_find_libraries
27575         fi
27576     fi
27577 fi
27578
27579
27580 cat >confcache <<\_ACEOF
27581 # This file is a shell script that caches the results of configure
27582 # tests run on this system so they can be shared between configure
27583 # scripts and configure runs, see configure's option --config-cache.
27584 # It is not useful on other systems.  If it contains results you don't
27585 # want to keep, you may remove or edit it.
27586 #
27587 # config.status only pays attention to the cache file if you give it
27588 # the --recheck option to rerun configure.
27589 #
27590 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27591 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27592 # following values.
27593
27594 _ACEOF
27595
27596 # The following way of writing the cache mishandles newlines in values,
27597 # but we know of no workaround that is simple, portable, and efficient.
27598 # So, we kill variables containing newlines.
27599 # Ultrix sh set writes to stderr and can't be redirected directly,
27600 # and sets the high bit in the cache file unless we assign to the vars.
27601 (
27602   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27603     eval ac_val=\$$ac_var
27604     case $ac_val in #(
27605     *${as_nl}*)
27606       case $ac_var in #(
27607       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27608 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27609       esac
27610       case $ac_var in #(
27611       _ | IFS | as_nl) ;; #(
27612       *) $as_unset $ac_var ;;
27613       esac ;;
27614     esac
27615   done
27616
27617   (set) 2>&1 |
27618     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27619     *${as_nl}ac_space=\ *)
27620       # `set' does not quote correctly, so add quotes (double-quote
27621       # substitution turns \\\\ into \\, and sed turns \\ into \).
27622       sed -n \
27623         "s/'/'\\\\''/g;
27624           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27625       ;; #(
27626     *)
27627       # `set' quotes correctly as required by POSIX, so do not add quotes.
27628       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27629       ;;
27630     esac |
27631     sort
27632 ) |
27633   sed '
27634      /^ac_cv_env_/b end
27635      t clear
27636      :clear
27637      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27638      t end
27639      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27640      :end' >>confcache
27641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27642   if test -w "$cache_file"; then
27643     test "x$cache_file" != "x/dev/null" &&
27644       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27645 echo "$as_me: updating cache $cache_file" >&6;}
27646     cat confcache >$cache_file
27647   else
27648     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27649 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27650   fi
27651 fi
27652 rm -f confcache
27653
27654 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27655     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27656 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27657 if test "${wx_cv_lib_glibc21+set}" = set; then
27658   echo $ECHO_N "(cached) $ECHO_C" >&6
27659 else
27660
27661         cat >conftest.$ac_ext <<_ACEOF
27662 /* confdefs.h.  */
27663 _ACEOF
27664 cat confdefs.h >>conftest.$ac_ext
27665 cat >>conftest.$ac_ext <<_ACEOF
27666 /* end confdefs.h.  */
27667 #include <features.h>
27668 int
27669 main ()
27670 {
27671
27672                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27673                 not glibc 2.1
27674                 #endif
27675
27676   ;
27677   return 0;
27678 }
27679 _ACEOF
27680 rm -f conftest.$ac_objext
27681 if { (ac_try="$ac_compile"
27682 case "(($ac_try" in
27683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684   *) ac_try_echo=$ac_try;;
27685 esac
27686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687   (eval "$ac_compile") 2>conftest.er1
27688   ac_status=$?
27689   grep -v '^ *+' conftest.er1 >conftest.err
27690   rm -f conftest.er1
27691   cat conftest.err >&5
27692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693   (exit $ac_status); } &&
27694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27695   { (case "(($ac_try" in
27696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27697   *) ac_try_echo=$ac_try;;
27698 esac
27699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27700   (eval "$ac_try") 2>&5
27701   ac_status=$?
27702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703   (exit $ac_status); }; } &&
27704          { ac_try='test -s conftest.$ac_objext'
27705   { (case "(($ac_try" in
27706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27707   *) ac_try_echo=$ac_try;;
27708 esac
27709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27710   (eval "$ac_try") 2>&5
27711   ac_status=$?
27712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); }; }; then
27714
27715                 wx_cv_lib_glibc21=yes
27716
27717 else
27718   echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27720
27721
27722                 wx_cv_lib_glibc21=no
27723
27724
27725 fi
27726
27727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27728
27729 fi
27730 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27731 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27732     if test "$wx_cv_lib_glibc21" = "yes"; then
27733         cat >>confdefs.h <<\_ACEOF
27734 #define wxHAVE_GLIBC2 1
27735 _ACEOF
27736
27737     fi
27738 fi
27739
27740 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27741     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27742         cat >>confdefs.h <<\_ACEOF
27743 #define _GNU_SOURCE 1
27744 _ACEOF
27745
27746     fi
27747 fi
27748
27749 have_cos=0
27750 have_floor=0
27751
27752 for ac_func in cos
27753 do
27754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27758   echo $ECHO_N "(cached) $ECHO_C" >&6
27759 else
27760   cat >conftest.$ac_ext <<_ACEOF
27761 /* confdefs.h.  */
27762 _ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h.  */
27766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27768 #define $ac_func innocuous_$ac_func
27769
27770 /* System header to define __stub macros and hopefully few prototypes,
27771     which can conflict with char $ac_func (); below.
27772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27773     <limits.h> exists even on freestanding compilers.  */
27774
27775 #ifdef __STDC__
27776 # include <limits.h>
27777 #else
27778 # include <assert.h>
27779 #endif
27780
27781 #undef $ac_func
27782
27783 /* Override any GCC internal prototype to avoid an error.
27784    Use char because int might match the return type of a GCC
27785    builtin and then its argument prototype would still apply.  */
27786 #ifdef __cplusplus
27787 extern "C"
27788 #endif
27789 char $ac_func ();
27790 /* The GNU C library defines this for functions which it implements
27791     to always fail with ENOSYS.  Some functions are actually named
27792     something starting with __ and the normal name is an alias.  */
27793 #if defined __stub_$ac_func || defined __stub___$ac_func
27794 choke me
27795 #endif
27796
27797 int
27798 main ()
27799 {
27800 return $ac_func ();
27801   ;
27802   return 0;
27803 }
27804 _ACEOF
27805 rm -f conftest.$ac_objext conftest$ac_exeext
27806 if { (ac_try="$ac_link"
27807 case "(($ac_try" in
27808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809   *) ac_try_echo=$ac_try;;
27810 esac
27811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812   (eval "$ac_link") 2>conftest.er1
27813   ac_status=$?
27814   grep -v '^ *+' conftest.er1 >conftest.err
27815   rm -f conftest.er1
27816   cat conftest.err >&5
27817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818   (exit $ac_status); } &&
27819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27820   { (case "(($ac_try" in
27821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822   *) ac_try_echo=$ac_try;;
27823 esac
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825   (eval "$ac_try") 2>&5
27826   ac_status=$?
27827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828   (exit $ac_status); }; } &&
27829          { ac_try='test -s conftest$ac_exeext'
27830   { (case "(($ac_try" in
27831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27832   *) ac_try_echo=$ac_try;;
27833 esac
27834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27835   (eval "$ac_try") 2>&5
27836   ac_status=$?
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); }; }; then
27839   eval "$as_ac_var=yes"
27840 else
27841   echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27843
27844         eval "$as_ac_var=no"
27845 fi
27846
27847 rm -f core conftest.err conftest.$ac_objext \
27848       conftest$ac_exeext conftest.$ac_ext
27849 fi
27850 ac_res=`eval echo '${'$as_ac_var'}'`
27851                { echo "$as_me:$LINENO: result: $ac_res" >&5
27852 echo "${ECHO_T}$ac_res" >&6; }
27853 if test `eval echo '${'$as_ac_var'}'` = yes; then
27854   cat >>confdefs.h <<_ACEOF
27855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27856 _ACEOF
27857  have_cos=1
27858 fi
27859 done
27860
27861
27862 for ac_func in floor
27863 do
27864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27868   echo $ECHO_N "(cached) $ECHO_C" >&6
27869 else
27870   cat >conftest.$ac_ext <<_ACEOF
27871 /* confdefs.h.  */
27872 _ACEOF
27873 cat confdefs.h >>conftest.$ac_ext
27874 cat >>conftest.$ac_ext <<_ACEOF
27875 /* end confdefs.h.  */
27876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27878 #define $ac_func innocuous_$ac_func
27879
27880 /* System header to define __stub macros and hopefully few prototypes,
27881     which can conflict with char $ac_func (); below.
27882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27883     <limits.h> exists even on freestanding compilers.  */
27884
27885 #ifdef __STDC__
27886 # include <limits.h>
27887 #else
27888 # include <assert.h>
27889 #endif
27890
27891 #undef $ac_func
27892
27893 /* Override any GCC internal prototype to avoid an error.
27894    Use char because int might match the return type of a GCC
27895    builtin and then its argument prototype would still apply.  */
27896 #ifdef __cplusplus
27897 extern "C"
27898 #endif
27899 char $ac_func ();
27900 /* The GNU C library defines this for functions which it implements
27901     to always fail with ENOSYS.  Some functions are actually named
27902     something starting with __ and the normal name is an alias.  */
27903 #if defined __stub_$ac_func || defined __stub___$ac_func
27904 choke me
27905 #endif
27906
27907 int
27908 main ()
27909 {
27910 return $ac_func ();
27911   ;
27912   return 0;
27913 }
27914 _ACEOF
27915 rm -f conftest.$ac_objext conftest$ac_exeext
27916 if { (ac_try="$ac_link"
27917 case "(($ac_try" in
27918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27919   *) ac_try_echo=$ac_try;;
27920 esac
27921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27922   (eval "$ac_link") 2>conftest.er1
27923   ac_status=$?
27924   grep -v '^ *+' conftest.er1 >conftest.err
27925   rm -f conftest.er1
27926   cat conftest.err >&5
27927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928   (exit $ac_status); } &&
27929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27930   { (case "(($ac_try" in
27931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932   *) ac_try_echo=$ac_try;;
27933 esac
27934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935   (eval "$ac_try") 2>&5
27936   ac_status=$?
27937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938   (exit $ac_status); }; } &&
27939          { ac_try='test -s conftest$ac_exeext'
27940   { (case "(($ac_try" in
27941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27942   *) ac_try_echo=$ac_try;;
27943 esac
27944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27945   (eval "$ac_try") 2>&5
27946   ac_status=$?
27947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948   (exit $ac_status); }; }; then
27949   eval "$as_ac_var=yes"
27950 else
27951   echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27953
27954         eval "$as_ac_var=no"
27955 fi
27956
27957 rm -f core conftest.err conftest.$ac_objext \
27958       conftest$ac_exeext conftest.$ac_ext
27959 fi
27960 ac_res=`eval echo '${'$as_ac_var'}'`
27961                { echo "$as_me:$LINENO: result: $ac_res" >&5
27962 echo "${ECHO_T}$ac_res" >&6; }
27963 if test `eval echo '${'$as_ac_var'}'` = yes; then
27964   cat >>confdefs.h <<_ACEOF
27965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27966 _ACEOF
27967  have_floor=1
27968 fi
27969 done
27970
27971 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27972 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27973 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27974     { echo "$as_me:$LINENO: result: yes" >&5
27975 echo "${ECHO_T}yes" >&6; }
27976 else
27977     { echo "$as_me:$LINENO: result: no" >&5
27978 echo "${ECHO_T}no" >&6; }
27979     LIBS="$LIBS -lm"
27980     # use different functions to avoid configure caching
27981     have_sin=0
27982     have_ceil=0
27983
27984 for ac_func in sin
27985 do
27986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27990   echo $ECHO_N "(cached) $ECHO_C" >&6
27991 else
27992   cat >conftest.$ac_ext <<_ACEOF
27993 /* confdefs.h.  */
27994 _ACEOF
27995 cat confdefs.h >>conftest.$ac_ext
27996 cat >>conftest.$ac_ext <<_ACEOF
27997 /* end confdefs.h.  */
27998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28000 #define $ac_func innocuous_$ac_func
28001
28002 /* System header to define __stub macros and hopefully few prototypes,
28003     which can conflict with char $ac_func (); below.
28004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28005     <limits.h> exists even on freestanding compilers.  */
28006
28007 #ifdef __STDC__
28008 # include <limits.h>
28009 #else
28010 # include <assert.h>
28011 #endif
28012
28013 #undef $ac_func
28014
28015 /* Override any GCC internal prototype to avoid an error.
28016    Use char because int might match the return type of a GCC
28017    builtin and then its argument prototype would still apply.  */
28018 #ifdef __cplusplus
28019 extern "C"
28020 #endif
28021 char $ac_func ();
28022 /* The GNU C library defines this for functions which it implements
28023     to always fail with ENOSYS.  Some functions are actually named
28024     something starting with __ and the normal name is an alias.  */
28025 #if defined __stub_$ac_func || defined __stub___$ac_func
28026 choke me
28027 #endif
28028
28029 int
28030 main ()
28031 {
28032 return $ac_func ();
28033   ;
28034   return 0;
28035 }
28036 _ACEOF
28037 rm -f conftest.$ac_objext conftest$ac_exeext
28038 if { (ac_try="$ac_link"
28039 case "(($ac_try" in
28040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28041   *) ac_try_echo=$ac_try;;
28042 esac
28043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28044   (eval "$ac_link") 2>conftest.er1
28045   ac_status=$?
28046   grep -v '^ *+' conftest.er1 >conftest.err
28047   rm -f conftest.er1
28048   cat conftest.err >&5
28049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050   (exit $ac_status); } &&
28051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28052   { (case "(($ac_try" in
28053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054   *) ac_try_echo=$ac_try;;
28055 esac
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057   (eval "$ac_try") 2>&5
28058   ac_status=$?
28059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060   (exit $ac_status); }; } &&
28061          { ac_try='test -s conftest$ac_exeext'
28062   { (case "(($ac_try" in
28063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064   *) ac_try_echo=$ac_try;;
28065 esac
28066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067   (eval "$ac_try") 2>&5
28068   ac_status=$?
28069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070   (exit $ac_status); }; }; then
28071   eval "$as_ac_var=yes"
28072 else
28073   echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28075
28076         eval "$as_ac_var=no"
28077 fi
28078
28079 rm -f core conftest.err conftest.$ac_objext \
28080       conftest$ac_exeext conftest.$ac_ext
28081 fi
28082 ac_res=`eval echo '${'$as_ac_var'}'`
28083                { echo "$as_me:$LINENO: result: $ac_res" >&5
28084 echo "${ECHO_T}$ac_res" >&6; }
28085 if test `eval echo '${'$as_ac_var'}'` = yes; then
28086   cat >>confdefs.h <<_ACEOF
28087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28088 _ACEOF
28089  have_sin=1
28090 fi
28091 done
28092
28093
28094 for ac_func in ceil
28095 do
28096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28100   echo $ECHO_N "(cached) $ECHO_C" >&6
28101 else
28102   cat >conftest.$ac_ext <<_ACEOF
28103 /* confdefs.h.  */
28104 _ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h.  */
28108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28110 #define $ac_func innocuous_$ac_func
28111
28112 /* System header to define __stub macros and hopefully few prototypes,
28113     which can conflict with char $ac_func (); below.
28114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28115     <limits.h> exists even on freestanding compilers.  */
28116
28117 #ifdef __STDC__
28118 # include <limits.h>
28119 #else
28120 # include <assert.h>
28121 #endif
28122
28123 #undef $ac_func
28124
28125 /* Override any GCC internal prototype to avoid an error.
28126    Use char because int might match the return type of a GCC
28127    builtin and then its argument prototype would still apply.  */
28128 #ifdef __cplusplus
28129 extern "C"
28130 #endif
28131 char $ac_func ();
28132 /* The GNU C library defines this for functions which it implements
28133     to always fail with ENOSYS.  Some functions are actually named
28134     something starting with __ and the normal name is an alias.  */
28135 #if defined __stub_$ac_func || defined __stub___$ac_func
28136 choke me
28137 #endif
28138
28139 int
28140 main ()
28141 {
28142 return $ac_func ();
28143   ;
28144   return 0;
28145 }
28146 _ACEOF
28147 rm -f conftest.$ac_objext conftest$ac_exeext
28148 if { (ac_try="$ac_link"
28149 case "(($ac_try" in
28150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28151   *) ac_try_echo=$ac_try;;
28152 esac
28153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28154   (eval "$ac_link") 2>conftest.er1
28155   ac_status=$?
28156   grep -v '^ *+' conftest.er1 >conftest.err
28157   rm -f conftest.er1
28158   cat conftest.err >&5
28159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160   (exit $ac_status); } &&
28161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28162   { (case "(($ac_try" in
28163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164   *) ac_try_echo=$ac_try;;
28165 esac
28166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28167   (eval "$ac_try") 2>&5
28168   ac_status=$?
28169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170   (exit $ac_status); }; } &&
28171          { ac_try='test -s conftest$ac_exeext'
28172   { (case "(($ac_try" in
28173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174   *) ac_try_echo=$ac_try;;
28175 esac
28176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177   (eval "$ac_try") 2>&5
28178   ac_status=$?
28179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180   (exit $ac_status); }; }; then
28181   eval "$as_ac_var=yes"
28182 else
28183   echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28185
28186         eval "$as_ac_var=no"
28187 fi
28188
28189 rm -f core conftest.err conftest.$ac_objext \
28190       conftest$ac_exeext conftest.$ac_ext
28191 fi
28192 ac_res=`eval echo '${'$as_ac_var'}'`
28193                { echo "$as_me:$LINENO: result: $ac_res" >&5
28194 echo "${ECHO_T}$ac_res" >&6; }
28195 if test `eval echo '${'$as_ac_var'}'` = yes; then
28196   cat >>confdefs.h <<_ACEOF
28197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28198 _ACEOF
28199  have_ceil=1
28200 fi
28201 done
28202
28203     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
28204 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
28205     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28206         { echo "$as_me:$LINENO: result: yes" >&5
28207 echo "${ECHO_T}yes" >&6; }
28208     else
28209         { echo "$as_me:$LINENO: result: no" >&5
28210 echo "${ECHO_T}no" >&6; }
28211         # not sure we should warn the user, crash, etc.
28212     fi
28213 fi
28214
28215 if test "wxUSE_UNICODE" = "yes"; then
28216
28217   for wx_func in wcstoull
28218   do
28219     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28220 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28221 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28222   echo $ECHO_N "(cached) $ECHO_C" >&6
28223 else
28224
28225         cat >conftest.$ac_ext <<_ACEOF
28226
28227             /* confdefs.h.  */
28228 _ACEOF
28229 cat confdefs.h >>conftest.$ac_ext
28230 cat >>conftest.$ac_ext <<_ACEOF
28231 /* end confdefs.h.  */
28232
28233
28234                 $ac_includes_default
28235
28236 int
28237 main ()
28238 {
28239
28240                 #ifndef $wx_func
28241                   &$wx_func;
28242                 #endif
28243
28244
28245   ;
28246   return 0;
28247 }
28248
28249 _ACEOF
28250 rm -f conftest.$ac_objext conftest$ac_exeext
28251 if { (ac_try="$ac_link"
28252 case "(($ac_try" in
28253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28254   *) ac_try_echo=$ac_try;;
28255 esac
28256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28257   (eval "$ac_link") 2>conftest.er1
28258   ac_status=$?
28259   grep -v '^ *+' conftest.er1 >conftest.err
28260   rm -f conftest.er1
28261   cat conftest.err >&5
28262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263   (exit $ac_status); } &&
28264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28265   { (case "(($ac_try" in
28266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267   *) ac_try_echo=$ac_try;;
28268 esac
28269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270   (eval "$ac_try") 2>&5
28271   ac_status=$?
28272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273   (exit $ac_status); }; } &&
28274          { ac_try='test -s conftest$ac_exeext'
28275   { (case "(($ac_try" in
28276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28277   *) ac_try_echo=$ac_try;;
28278 esac
28279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28280   (eval "$ac_try") 2>&5
28281   ac_status=$?
28282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283   (exit $ac_status); }; }; then
28284   eval wx_cv_func_$wx_func=yes
28285 else
28286   echo "$as_me: failed program was:" >&5
28287 sed 's/^/| /' conftest.$ac_ext >&5
28288
28289         eval wx_cv_func_$wx_func=no
28290 fi
28291
28292 rm -f core conftest.err conftest.$ac_objext \
28293       conftest$ac_exeext conftest.$ac_ext
28294
28295 fi
28296 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28297                { echo "$as_me:$LINENO: result: $ac_res" >&5
28298 echo "${ECHO_T}$ac_res" >&6; }
28299
28300     if eval test \$wx_cv_func_$wx_func = yes
28301     then
28302       cat >>confdefs.h <<_ACEOF
28303 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28304 _ACEOF
28305
28306
28307     else
28308       :
28309
28310     fi
28311   done
28312
28313 else
28314
28315   for wx_func in strtoull
28316   do
28317     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28318 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28319 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28320   echo $ECHO_N "(cached) $ECHO_C" >&6
28321 else
28322
28323         cat >conftest.$ac_ext <<_ACEOF
28324
28325             /* confdefs.h.  */
28326 _ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h.  */
28330
28331
28332                 $ac_includes_default
28333
28334 int
28335 main ()
28336 {
28337
28338                 #ifndef $wx_func
28339                   &$wx_func;
28340                 #endif
28341
28342
28343   ;
28344   return 0;
28345 }
28346
28347 _ACEOF
28348 rm -f conftest.$ac_objext conftest$ac_exeext
28349 if { (ac_try="$ac_link"
28350 case "(($ac_try" in
28351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28352   *) ac_try_echo=$ac_try;;
28353 esac
28354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28355   (eval "$ac_link") 2>conftest.er1
28356   ac_status=$?
28357   grep -v '^ *+' conftest.er1 >conftest.err
28358   rm -f conftest.er1
28359   cat conftest.err >&5
28360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361   (exit $ac_status); } &&
28362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28363   { (case "(($ac_try" in
28364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28365   *) ac_try_echo=$ac_try;;
28366 esac
28367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28368   (eval "$ac_try") 2>&5
28369   ac_status=$?
28370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371   (exit $ac_status); }; } &&
28372          { ac_try='test -s conftest$ac_exeext'
28373   { (case "(($ac_try" in
28374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28375   *) ac_try_echo=$ac_try;;
28376 esac
28377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28378   (eval "$ac_try") 2>&5
28379   ac_status=$?
28380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381   (exit $ac_status); }; }; then
28382   eval wx_cv_func_$wx_func=yes
28383 else
28384   echo "$as_me: failed program was:" >&5
28385 sed 's/^/| /' conftest.$ac_ext >&5
28386
28387         eval wx_cv_func_$wx_func=no
28388 fi
28389
28390 rm -f core conftest.err conftest.$ac_objext \
28391       conftest$ac_exeext conftest.$ac_ext
28392
28393 fi
28394 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28395                { echo "$as_me:$LINENO: result: $ac_res" >&5
28396 echo "${ECHO_T}$ac_res" >&6; }
28397
28398     if eval test \$wx_cv_func_$wx_func = yes
28399     then
28400       cat >>confdefs.h <<_ACEOF
28401 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28402 _ACEOF
28403
28404
28405     else
28406       :
28407
28408     fi
28409   done
28410
28411 fi
28412
28413
28414
28415 if test "$wxUSE_REGEX" != "no"; then
28416     cat >>confdefs.h <<\_ACEOF
28417 #define wxUSE_REGEX 1
28418 _ACEOF
28419
28420
28421     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28422         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28423 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28424         wxUSE_REGEX=builtin
28425     fi
28426
28427     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28428                         if test "${ac_cv_header_regex_h+set}" = set; then
28429   { echo "$as_me:$LINENO: checking for regex.h" >&5
28430 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28431 if test "${ac_cv_header_regex_h+set}" = set; then
28432   echo $ECHO_N "(cached) $ECHO_C" >&6
28433 fi
28434 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28435 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28436 else
28437   # Is the header compilable?
28438 { echo "$as_me:$LINENO: checking regex.h usability" >&5
28439 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
28440 cat >conftest.$ac_ext <<_ACEOF
28441 /* confdefs.h.  */
28442 _ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h.  */
28446 $ac_includes_default
28447 #include <regex.h>
28448 _ACEOF
28449 rm -f conftest.$ac_objext
28450 if { (ac_try="$ac_compile"
28451 case "(($ac_try" in
28452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28453   *) ac_try_echo=$ac_try;;
28454 esac
28455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28456   (eval "$ac_compile") 2>conftest.er1
28457   ac_status=$?
28458   grep -v '^ *+' conftest.er1 >conftest.err
28459   rm -f conftest.er1
28460   cat conftest.err >&5
28461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462   (exit $ac_status); } &&
28463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28464   { (case "(($ac_try" in
28465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28466   *) ac_try_echo=$ac_try;;
28467 esac
28468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28469   (eval "$ac_try") 2>&5
28470   ac_status=$?
28471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472   (exit $ac_status); }; } &&
28473          { ac_try='test -s conftest.$ac_objext'
28474   { (case "(($ac_try" in
28475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28476   *) ac_try_echo=$ac_try;;
28477 esac
28478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28479   (eval "$ac_try") 2>&5
28480   ac_status=$?
28481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); }; }; then
28483   ac_header_compiler=yes
28484 else
28485   echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28487
28488         ac_header_compiler=no
28489 fi
28490
28491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28493 echo "${ECHO_T}$ac_header_compiler" >&6; }
28494
28495 # Is the header present?
28496 { echo "$as_me:$LINENO: checking regex.h presence" >&5
28497 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
28498 cat >conftest.$ac_ext <<_ACEOF
28499 /* confdefs.h.  */
28500 _ACEOF
28501 cat confdefs.h >>conftest.$ac_ext
28502 cat >>conftest.$ac_ext <<_ACEOF
28503 /* end confdefs.h.  */
28504 #include <regex.h>
28505 _ACEOF
28506 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
28513   ac_status=$?
28514   grep -v '^ *+' conftest.er1 >conftest.err
28515   rm -f conftest.er1
28516   cat conftest.err >&5
28517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518   (exit $ac_status); } >/dev/null; then
28519   if test -s conftest.err; then
28520     ac_cpp_err=$ac_c_preproc_warn_flag
28521     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28522   else
28523     ac_cpp_err=
28524   fi
28525 else
28526   ac_cpp_err=yes
28527 fi
28528 if test -z "$ac_cpp_err"; then
28529   ac_header_preproc=yes
28530 else
28531   echo "$as_me: failed program was:" >&5
28532 sed 's/^/| /' conftest.$ac_ext >&5
28533
28534   ac_header_preproc=no
28535 fi
28536
28537 rm -f conftest.err conftest.$ac_ext
28538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28539 echo "${ECHO_T}$ac_header_preproc" >&6; }
28540
28541 # So?  What about this header?
28542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28543   yes:no: )
28544     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
28545 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28546     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
28547 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
28548     ac_header_preproc=yes
28549     ;;
28550   no:yes:* )
28551     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
28552 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
28553     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
28554 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
28555     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
28556 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
28557     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
28558 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28559     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
28560 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
28561     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
28562 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
28563     ( cat <<\_ASBOX
28564 ## ----------------------------------------- ##
28565 ## Report this to wx-dev@lists.wxwidgets.org ##
28566 ## ----------------------------------------- ##
28567 _ASBOX
28568      ) | sed "s/^/$as_me: WARNING:     /" >&2
28569     ;;
28570 esac
28571 { echo "$as_me:$LINENO: checking for regex.h" >&5
28572 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28573 if test "${ac_cv_header_regex_h+set}" = set; then
28574   echo $ECHO_N "(cached) $ECHO_C" >&6
28575 else
28576   ac_cv_header_regex_h=$ac_header_preproc
28577 fi
28578 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28579 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28580
28581 fi
28582 if test $ac_cv_header_regex_h = yes; then
28583
28584
28585 for ac_func in regcomp re_search
28586 do
28587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28591   echo $ECHO_N "(cached) $ECHO_C" >&6
28592 else
28593   cat >conftest.$ac_ext <<_ACEOF
28594 /* confdefs.h.  */
28595 _ACEOF
28596 cat confdefs.h >>conftest.$ac_ext
28597 cat >>conftest.$ac_ext <<_ACEOF
28598 /* end confdefs.h.  */
28599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28601 #define $ac_func innocuous_$ac_func
28602
28603 /* System header to define __stub macros and hopefully few prototypes,
28604     which can conflict with char $ac_func (); below.
28605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28606     <limits.h> exists even on freestanding compilers.  */
28607
28608 #ifdef __STDC__
28609 # include <limits.h>
28610 #else
28611 # include <assert.h>
28612 #endif
28613
28614 #undef $ac_func
28615
28616 /* Override any GCC internal prototype to avoid an error.
28617    Use char because int might match the return type of a GCC
28618    builtin and then its argument prototype would still apply.  */
28619 #ifdef __cplusplus
28620 extern "C"
28621 #endif
28622 char $ac_func ();
28623 /* The GNU C library defines this for functions which it implements
28624     to always fail with ENOSYS.  Some functions are actually named
28625     something starting with __ and the normal name is an alias.  */
28626 #if defined __stub_$ac_func || defined __stub___$ac_func
28627 choke me
28628 #endif
28629
28630 int
28631 main ()
28632 {
28633 return $ac_func ();
28634   ;
28635   return 0;
28636 }
28637 _ACEOF
28638 rm -f conftest.$ac_objext conftest$ac_exeext
28639 if { (ac_try="$ac_link"
28640 case "(($ac_try" in
28641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28642   *) ac_try_echo=$ac_try;;
28643 esac
28644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28645   (eval "$ac_link") 2>conftest.er1
28646   ac_status=$?
28647   grep -v '^ *+' conftest.er1 >conftest.err
28648   rm -f conftest.er1
28649   cat conftest.err >&5
28650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); } &&
28652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28653   { (case "(($ac_try" in
28654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28655   *) ac_try_echo=$ac_try;;
28656 esac
28657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28658   (eval "$ac_try") 2>&5
28659   ac_status=$?
28660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661   (exit $ac_status); }; } &&
28662          { ac_try='test -s conftest$ac_exeext'
28663   { (case "(($ac_try" in
28664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665   *) ac_try_echo=$ac_try;;
28666 esac
28667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668   (eval "$ac_try") 2>&5
28669   ac_status=$?
28670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671   (exit $ac_status); }; }; then
28672   eval "$as_ac_var=yes"
28673 else
28674   echo "$as_me: failed program was:" >&5
28675 sed 's/^/| /' conftest.$ac_ext >&5
28676
28677         eval "$as_ac_var=no"
28678 fi
28679
28680 rm -f core conftest.err conftest.$ac_objext \
28681       conftest$ac_exeext conftest.$ac_ext
28682 fi
28683 ac_res=`eval echo '${'$as_ac_var'}'`
28684                { echo "$as_me:$LINENO: result: $ac_res" >&5
28685 echo "${ECHO_T}$ac_res" >&6; }
28686 if test `eval echo '${'$as_ac_var'}'` = yes; then
28687   cat >>confdefs.h <<_ACEOF
28688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28689 _ACEOF
28690
28691 fi
28692 done
28693
28694 fi
28695
28696
28697
28698         if test "x$ac_cv_func_regcomp" != "xyes"; then
28699             if test "$wxUSE_REGEX" = "sys" ; then
28700                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28701 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28702    { (exit 1); exit 1; }; }
28703             else
28704                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28705 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28706                 wxUSE_REGEX=builtin
28707             fi
28708         else
28709                         wxUSE_REGEX=sys
28710                         cat >>confdefs.h <<\_ACEOF
28711 #define WX_NO_REGEX_ADVANCED 1
28712 _ACEOF
28713
28714         fi
28715     fi
28716 fi
28717
28718
28719 ZLIB_LINK=
28720 if test "$wxUSE_ZLIB" != "no" ; then
28721     cat >>confdefs.h <<\_ACEOF
28722 #define wxUSE_ZLIB 1
28723 _ACEOF
28724
28725
28726     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28727                                                 if test "$USE_DARWIN" = 1; then
28728             system_zlib_h_ok="yes"
28729         else
28730                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28731 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28732 if test "${ac_cv_header_zlib_h+set}" = set; then
28733   echo $ECHO_N "(cached) $ECHO_C" >&6
28734 else
28735   if test "$cross_compiling" = yes; then
28736                       unset ac_cv_header_zlib_h
28737
28738 else
28739   cat >conftest.$ac_ext <<_ACEOF
28740 /* confdefs.h.  */
28741 _ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h.  */
28745
28746                         #include <zlib.h>
28747                         #include <stdio.h>
28748
28749                         int main()
28750                         {
28751                             FILE *f=fopen("conftestval", "w");
28752                             if (!f) exit(1);
28753                             fprintf(f, "%s",
28754                                     ZLIB_VERSION[0] == '1' &&
28755                                     (ZLIB_VERSION[2] > '1' ||
28756                                     (ZLIB_VERSION[2] == '1' &&
28757                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28758                             exit(0);
28759                         }
28760
28761 _ACEOF
28762 rm -f conftest$ac_exeext
28763 if { (ac_try="$ac_link"
28764 case "(($ac_try" in
28765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766   *) ac_try_echo=$ac_try;;
28767 esac
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769   (eval "$ac_link") 2>&5
28770   ac_status=$?
28771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28773   { (case "(($ac_try" in
28774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28775   *) ac_try_echo=$ac_try;;
28776 esac
28777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28778   (eval "$ac_try") 2>&5
28779   ac_status=$?
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); }; }; then
28782   ac_cv_header_zlib_h=`cat conftestval`
28783 else
28784   echo "$as_me: program exited with status $ac_status" >&5
28785 echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28787
28788 ( exit $ac_status )
28789 ac_cv_header_zlib_h=no
28790 fi
28791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28792 fi
28793
28794
28795
28796 fi
28797 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28798 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28799                                     if test "${ac_cv_header_zlib_h+set}" = set; then
28800   { echo "$as_me:$LINENO: checking for zlib.h" >&5
28801 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28802 if test "${ac_cv_header_zlib_h+set}" = set; then
28803   echo $ECHO_N "(cached) $ECHO_C" >&6
28804 fi
28805 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28806 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28807 else
28808   # Is the header compilable?
28809 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28810 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28811 cat >conftest.$ac_ext <<_ACEOF
28812 /* confdefs.h.  */
28813 _ACEOF
28814 cat confdefs.h >>conftest.$ac_ext
28815 cat >>conftest.$ac_ext <<_ACEOF
28816 /* end confdefs.h.  */
28817 $ac_includes_default
28818 #include <zlib.h>
28819 _ACEOF
28820 rm -f conftest.$ac_objext
28821 if { (ac_try="$ac_compile"
28822 case "(($ac_try" in
28823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824   *) ac_try_echo=$ac_try;;
28825 esac
28826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28827   (eval "$ac_compile") 2>conftest.er1
28828   ac_status=$?
28829   grep -v '^ *+' conftest.er1 >conftest.err
28830   rm -f conftest.er1
28831   cat conftest.err >&5
28832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833   (exit $ac_status); } &&
28834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28835   { (case "(($ac_try" in
28836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28837   *) ac_try_echo=$ac_try;;
28838 esac
28839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28840   (eval "$ac_try") 2>&5
28841   ac_status=$?
28842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843   (exit $ac_status); }; } &&
28844          { ac_try='test -s conftest.$ac_objext'
28845   { (case "(($ac_try" in
28846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28847   *) ac_try_echo=$ac_try;;
28848 esac
28849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28850   (eval "$ac_try") 2>&5
28851   ac_status=$?
28852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853   (exit $ac_status); }; }; then
28854   ac_header_compiler=yes
28855 else
28856   echo "$as_me: failed program was:" >&5
28857 sed 's/^/| /' conftest.$ac_ext >&5
28858
28859         ac_header_compiler=no
28860 fi
28861
28862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28864 echo "${ECHO_T}$ac_header_compiler" >&6; }
28865
28866 # Is the header present?
28867 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28868 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28869 cat >conftest.$ac_ext <<_ACEOF
28870 /* confdefs.h.  */
28871 _ACEOF
28872 cat confdefs.h >>conftest.$ac_ext
28873 cat >>conftest.$ac_ext <<_ACEOF
28874 /* end confdefs.h.  */
28875 #include <zlib.h>
28876 _ACEOF
28877 if { (ac_try="$ac_cpp conftest.$ac_ext"
28878 case "(($ac_try" in
28879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28880   *) ac_try_echo=$ac_try;;
28881 esac
28882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28883   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28884   ac_status=$?
28885   grep -v '^ *+' conftest.er1 >conftest.err
28886   rm -f conftest.er1
28887   cat conftest.err >&5
28888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889   (exit $ac_status); } >/dev/null; then
28890   if test -s conftest.err; then
28891     ac_cpp_err=$ac_c_preproc_warn_flag
28892     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28893   else
28894     ac_cpp_err=
28895   fi
28896 else
28897   ac_cpp_err=yes
28898 fi
28899 if test -z "$ac_cpp_err"; then
28900   ac_header_preproc=yes
28901 else
28902   echo "$as_me: failed program was:" >&5
28903 sed 's/^/| /' conftest.$ac_ext >&5
28904
28905   ac_header_preproc=no
28906 fi
28907
28908 rm -f conftest.err conftest.$ac_ext
28909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28910 echo "${ECHO_T}$ac_header_preproc" >&6; }
28911
28912 # So?  What about this header?
28913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28914   yes:no: )
28915     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28916 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28917     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28918 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28919     ac_header_preproc=yes
28920     ;;
28921   no:yes:* )
28922     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28923 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28924     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
28925 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
28926     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28927 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28928     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
28929 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28930     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28931 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28932     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28933 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28934     ( cat <<\_ASBOX
28935 ## ----------------------------------------- ##
28936 ## Report this to wx-dev@lists.wxwidgets.org ##
28937 ## ----------------------------------------- ##
28938 _ASBOX
28939      ) | sed "s/^/$as_me: WARNING:     /" >&2
28940     ;;
28941 esac
28942 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28943 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28944 if test "${ac_cv_header_zlib_h+set}" = set; then
28945   echo $ECHO_N "(cached) $ECHO_C" >&6
28946 else
28947   ac_cv_header_zlib_h=$ac_header_preproc
28948 fi
28949 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28950 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28951
28952 fi
28953
28954
28955
28956             system_zlib_h_ok=$ac_cv_header_zlib_h
28957         fi
28958
28959         if test "$system_zlib_h_ok" = "yes"; then
28960             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28961 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28962 if test "${ac_cv_lib_z_deflate+set}" = set; then
28963   echo $ECHO_N "(cached) $ECHO_C" >&6
28964 else
28965   ac_check_lib_save_LIBS=$LIBS
28966 LIBS="-lz  $LIBS"
28967 cat >conftest.$ac_ext <<_ACEOF
28968 /* confdefs.h.  */
28969 _ACEOF
28970 cat confdefs.h >>conftest.$ac_ext
28971 cat >>conftest.$ac_ext <<_ACEOF
28972 /* end confdefs.h.  */
28973
28974 /* Override any GCC internal prototype to avoid an error.
28975    Use char because int might match the return type of a GCC
28976    builtin and then its argument prototype would still apply.  */
28977 #ifdef __cplusplus
28978 extern "C"
28979 #endif
28980 char deflate ();
28981 int
28982 main ()
28983 {
28984 return deflate ();
28985   ;
28986   return 0;
28987 }
28988 _ACEOF
28989 rm -f conftest.$ac_objext conftest$ac_exeext
28990 if { (ac_try="$ac_link"
28991 case "(($ac_try" in
28992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993   *) ac_try_echo=$ac_try;;
28994 esac
28995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28996   (eval "$ac_link") 2>conftest.er1
28997   ac_status=$?
28998   grep -v '^ *+' conftest.er1 >conftest.err
28999   rm -f conftest.er1
29000   cat conftest.err >&5
29001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002   (exit $ac_status); } &&
29003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29004   { (case "(($ac_try" in
29005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29006   *) ac_try_echo=$ac_try;;
29007 esac
29008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29009   (eval "$ac_try") 2>&5
29010   ac_status=$?
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); }; } &&
29013          { ac_try='test -s conftest$ac_exeext'
29014   { (case "(($ac_try" in
29015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016   *) ac_try_echo=$ac_try;;
29017 esac
29018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019   (eval "$ac_try") 2>&5
29020   ac_status=$?
29021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022   (exit $ac_status); }; }; then
29023   ac_cv_lib_z_deflate=yes
29024 else
29025   echo "$as_me: failed program was:" >&5
29026 sed 's/^/| /' conftest.$ac_ext >&5
29027
29028         ac_cv_lib_z_deflate=no
29029 fi
29030
29031 rm -f core conftest.err conftest.$ac_objext \
29032       conftest$ac_exeext conftest.$ac_ext
29033 LIBS=$ac_check_lib_save_LIBS
29034 fi
29035 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29036 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29037 if test $ac_cv_lib_z_deflate = yes; then
29038   ZLIB_LINK=" -lz"
29039 fi
29040
29041         fi
29042
29043         if test "x$ZLIB_LINK" = "x" ; then
29044             if test "$wxUSE_ZLIB" = "sys" ; then
29045                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
29046 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
29047    { (exit 1); exit 1; }; }
29048             else
29049                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
29050 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
29051                 wxUSE_ZLIB=builtin
29052             fi
29053         else
29054                         wxUSE_ZLIB=sys
29055         fi
29056     fi
29057 fi
29058
29059
29060 PNG_LINK=
29061 if test "$wxUSE_LIBPNG" != "no" ; then
29062     cat >>confdefs.h <<\_ACEOF
29063 #define wxUSE_LIBPNG 1
29064 _ACEOF
29065
29066
29067     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
29068         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
29069 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
29070         wxUSE_LIBPNG=sys
29071     fi
29072
29073                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
29074         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
29075 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
29076         wxUSE_LIBPNG=builtin
29077     fi
29078
29079     if test "$wxUSE_MGL" != 1 ; then
29080                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
29081                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
29082 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
29083 if test "${ac_cv_header_png_h+set}" = set; then
29084   echo $ECHO_N "(cached) $ECHO_C" >&6
29085 else
29086   if test "$cross_compiling" = yes; then
29087                       unset ac_cv_header_png_h
29088
29089 else
29090   cat >conftest.$ac_ext <<_ACEOF
29091 /* confdefs.h.  */
29092 _ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h.  */
29096
29097                         #include <png.h>
29098                         #include <stdio.h>
29099
29100                         int main()
29101                         {
29102                             FILE *f=fopen("conftestval", "w");
29103                             if (!f) exit(1);
29104                             fprintf(f, "%s",
29105                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
29106                             exit(0);
29107                         }
29108
29109 _ACEOF
29110 rm -f conftest$ac_exeext
29111 if { (ac_try="$ac_link"
29112 case "(($ac_try" in
29113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114   *) ac_try_echo=$ac_try;;
29115 esac
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117   (eval "$ac_link") 2>&5
29118   ac_status=$?
29119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29121   { (case "(($ac_try" in
29122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29123   *) ac_try_echo=$ac_try;;
29124 esac
29125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29126   (eval "$ac_try") 2>&5
29127   ac_status=$?
29128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129   (exit $ac_status); }; }; then
29130   ac_cv_header_png_h=`cat conftestval`
29131 else
29132   echo "$as_me: program exited with status $ac_status" >&5
29133 echo "$as_me: failed program was:" >&5
29134 sed 's/^/| /' conftest.$ac_ext >&5
29135
29136 ( exit $ac_status )
29137 ac_cv_header_png_h=no
29138 fi
29139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29140 fi
29141
29142
29143
29144 fi
29145 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29146 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29147             if test "${ac_cv_header_png_h+set}" = set; then
29148   { echo "$as_me:$LINENO: checking for png.h" >&5
29149 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
29150 if test "${ac_cv_header_png_h+set}" = set; then
29151   echo $ECHO_N "(cached) $ECHO_C" >&6
29152 fi
29153 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29154 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29155 else
29156   # Is the header compilable?
29157 { echo "$as_me:$LINENO: checking png.h usability" >&5
29158 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
29159 cat >conftest.$ac_ext <<_ACEOF
29160 /* confdefs.h.  */
29161 _ACEOF
29162 cat confdefs.h >>conftest.$ac_ext
29163 cat >>conftest.$ac_ext <<_ACEOF
29164 /* end confdefs.h.  */
29165 $ac_includes_default
29166 #include <png.h>
29167 _ACEOF
29168 rm -f conftest.$ac_objext
29169 if { (ac_try="$ac_compile"
29170 case "(($ac_try" in
29171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29172   *) ac_try_echo=$ac_try;;
29173 esac
29174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29175   (eval "$ac_compile") 2>conftest.er1
29176   ac_status=$?
29177   grep -v '^ *+' conftest.er1 >conftest.err
29178   rm -f conftest.er1
29179   cat conftest.err >&5
29180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181   (exit $ac_status); } &&
29182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29183   { (case "(($ac_try" in
29184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185   *) ac_try_echo=$ac_try;;
29186 esac
29187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29188   (eval "$ac_try") 2>&5
29189   ac_status=$?
29190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191   (exit $ac_status); }; } &&
29192          { ac_try='test -s conftest.$ac_objext'
29193   { (case "(($ac_try" in
29194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29195   *) ac_try_echo=$ac_try;;
29196 esac
29197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29198   (eval "$ac_try") 2>&5
29199   ac_status=$?
29200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201   (exit $ac_status); }; }; then
29202   ac_header_compiler=yes
29203 else
29204   echo "$as_me: failed program was:" >&5
29205 sed 's/^/| /' conftest.$ac_ext >&5
29206
29207         ac_header_compiler=no
29208 fi
29209
29210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29212 echo "${ECHO_T}$ac_header_compiler" >&6; }
29213
29214 # Is the header present?
29215 { echo "$as_me:$LINENO: checking png.h presence" >&5
29216 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
29217 cat >conftest.$ac_ext <<_ACEOF
29218 /* confdefs.h.  */
29219 _ACEOF
29220 cat confdefs.h >>conftest.$ac_ext
29221 cat >>conftest.$ac_ext <<_ACEOF
29222 /* end confdefs.h.  */
29223 #include <png.h>
29224 _ACEOF
29225 if { (ac_try="$ac_cpp conftest.$ac_ext"
29226 case "(($ac_try" in
29227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228   *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29232   ac_status=$?
29233   grep -v '^ *+' conftest.er1 >conftest.err
29234   rm -f conftest.er1
29235   cat conftest.err >&5
29236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237   (exit $ac_status); } >/dev/null; then
29238   if test -s conftest.err; then
29239     ac_cpp_err=$ac_c_preproc_warn_flag
29240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29241   else
29242     ac_cpp_err=
29243   fi
29244 else
29245   ac_cpp_err=yes
29246 fi
29247 if test -z "$ac_cpp_err"; then
29248   ac_header_preproc=yes
29249 else
29250   echo "$as_me: failed program was:" >&5
29251 sed 's/^/| /' conftest.$ac_ext >&5
29252
29253   ac_header_preproc=no
29254 fi
29255
29256 rm -f conftest.err conftest.$ac_ext
29257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29258 echo "${ECHO_T}$ac_header_preproc" >&6; }
29259
29260 # So?  What about this header?
29261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29262   yes:no: )
29263     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
29264 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29265     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
29266 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
29267     ac_header_preproc=yes
29268     ;;
29269   no:yes:* )
29270     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
29271 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
29272     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
29273 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
29274     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
29275 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
29276     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
29277 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29278     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
29279 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
29280     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
29281 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
29282     ( cat <<\_ASBOX
29283 ## ----------------------------------------- ##
29284 ## Report this to wx-dev@lists.wxwidgets.org ##
29285 ## ----------------------------------------- ##
29286 _ASBOX
29287      ) | sed "s/^/$as_me: WARNING:     /" >&2
29288     ;;
29289 esac
29290 { echo "$as_me:$LINENO: checking for png.h" >&5
29291 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
29292 if test "${ac_cv_header_png_h+set}" = set; then
29293   echo $ECHO_N "(cached) $ECHO_C" >&6
29294 else
29295   ac_cv_header_png_h=$ac_header_preproc
29296 fi
29297 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29298 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29299
29300 fi
29301
29302
29303
29304             if test "$ac_cv_header_png_h" = "yes"; then
29305                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
29306 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
29307 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
29308   echo $ECHO_N "(cached) $ECHO_C" >&6
29309 else
29310   ac_check_lib_save_LIBS=$LIBS
29311 LIBS="-lpng -lz -lm $LIBS"
29312 cat >conftest.$ac_ext <<_ACEOF
29313 /* confdefs.h.  */
29314 _ACEOF
29315 cat confdefs.h >>conftest.$ac_ext
29316 cat >>conftest.$ac_ext <<_ACEOF
29317 /* end confdefs.h.  */
29318
29319 /* Override any GCC internal prototype to avoid an error.
29320    Use char because int might match the return type of a GCC
29321    builtin and then its argument prototype would still apply.  */
29322 #ifdef __cplusplus
29323 extern "C"
29324 #endif
29325 char png_check_sig ();
29326 int
29327 main ()
29328 {
29329 return png_check_sig ();
29330   ;
29331   return 0;
29332 }
29333 _ACEOF
29334 rm -f conftest.$ac_objext conftest$ac_exeext
29335 if { (ac_try="$ac_link"
29336 case "(($ac_try" in
29337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29338   *) ac_try_echo=$ac_try;;
29339 esac
29340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29341   (eval "$ac_link") 2>conftest.er1
29342   ac_status=$?
29343   grep -v '^ *+' conftest.er1 >conftest.err
29344   rm -f conftest.er1
29345   cat conftest.err >&5
29346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347   (exit $ac_status); } &&
29348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29349   { (case "(($ac_try" in
29350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351   *) ac_try_echo=$ac_try;;
29352 esac
29353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354   (eval "$ac_try") 2>&5
29355   ac_status=$?
29356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357   (exit $ac_status); }; } &&
29358          { ac_try='test -s conftest$ac_exeext'
29359   { (case "(($ac_try" in
29360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29361   *) ac_try_echo=$ac_try;;
29362 esac
29363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29364   (eval "$ac_try") 2>&5
29365   ac_status=$?
29366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367   (exit $ac_status); }; }; then
29368   ac_cv_lib_png_png_check_sig=yes
29369 else
29370   echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29372
29373         ac_cv_lib_png_png_check_sig=no
29374 fi
29375
29376 rm -f core conftest.err conftest.$ac_objext \
29377       conftest$ac_exeext conftest.$ac_ext
29378 LIBS=$ac_check_lib_save_LIBS
29379 fi
29380 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
29381 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
29382 if test $ac_cv_lib_png_png_check_sig = yes; then
29383   PNG_LINK=" -lpng -lz"
29384 fi
29385
29386             fi
29387
29388             if test "x$PNG_LINK" = "x" ; then
29389                 if test "$wxUSE_LIBPNG" = "sys" ; then
29390                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
29391 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
29392    { (exit 1); exit 1; }; }
29393                 else
29394                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
29395 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
29396                     wxUSE_LIBPNG=builtin
29397                 fi
29398             else
29399                                 wxUSE_LIBPNG=sys
29400             fi
29401         fi
29402     fi
29403
29404     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
29405 fi
29406
29407
29408 JPEG_LINK=
29409 if test "$wxUSE_LIBJPEG" != "no" ; then
29410     cat >>confdefs.h <<\_ACEOF
29411 #define wxUSE_LIBJPEG 1
29412 _ACEOF
29413
29414
29415     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
29416         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
29417 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
29418         wxUSE_LIBJPEG=sys
29419     fi
29420
29421     if test "$wxUSE_MGL" != 1 ; then
29422                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
29423                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
29424 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
29425             if test "${ac_cv_header_jpeglib_h+set}" = set; then
29426   echo $ECHO_N "(cached) $ECHO_C" >&6
29427 else
29428   cat >conftest.$ac_ext <<_ACEOF
29429 /* confdefs.h.  */
29430 _ACEOF
29431 cat confdefs.h >>conftest.$ac_ext
29432 cat >>conftest.$ac_ext <<_ACEOF
29433 /* end confdefs.h.  */
29434
29435                         #undef HAVE_STDLIB_H
29436                         #include <stdio.h>
29437                         #include <jpeglib.h>
29438
29439 int
29440 main ()
29441 {
29442
29443
29444   ;
29445   return 0;
29446 }
29447 _ACEOF
29448 rm -f conftest.$ac_objext
29449 if { (ac_try="$ac_compile"
29450 case "(($ac_try" in
29451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452   *) ac_try_echo=$ac_try;;
29453 esac
29454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455   (eval "$ac_compile") 2>conftest.er1
29456   ac_status=$?
29457   grep -v '^ *+' conftest.er1 >conftest.err
29458   rm -f conftest.er1
29459   cat conftest.err >&5
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); } &&
29462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29463   { (case "(($ac_try" in
29464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465   *) ac_try_echo=$ac_try;;
29466 esac
29467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468   (eval "$ac_try") 2>&5
29469   ac_status=$?
29470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471   (exit $ac_status); }; } &&
29472          { ac_try='test -s conftest.$ac_objext'
29473   { (case "(($ac_try" in
29474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29475   *) ac_try_echo=$ac_try;;
29476 esac
29477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29478   (eval "$ac_try") 2>&5
29479   ac_status=$?
29480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481   (exit $ac_status); }; }; then
29482   ac_cv_header_jpeglib_h=yes
29483 else
29484   echo "$as_me: failed program was:" >&5
29485 sed 's/^/| /' conftest.$ac_ext >&5
29486
29487         ac_cv_header_jpeglib_h=no
29488
29489 fi
29490
29491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29492
29493 fi
29494
29495             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
29496 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
29497
29498             if test "$ac_cv_header_jpeglib_h" = "yes"; then
29499                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
29500 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
29501 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
29502   echo $ECHO_N "(cached) $ECHO_C" >&6
29503 else
29504   ac_check_lib_save_LIBS=$LIBS
29505 LIBS="-ljpeg  $LIBS"
29506 cat >conftest.$ac_ext <<_ACEOF
29507 /* confdefs.h.  */
29508 _ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h.  */
29512
29513 /* Override any GCC internal prototype to avoid an error.
29514    Use char because int might match the return type of a GCC
29515    builtin and then its argument prototype would still apply.  */
29516 #ifdef __cplusplus
29517 extern "C"
29518 #endif
29519 char jpeg_read_header ();
29520 int
29521 main ()
29522 {
29523 return jpeg_read_header ();
29524   ;
29525   return 0;
29526 }
29527 _ACEOF
29528 rm -f conftest.$ac_objext conftest$ac_exeext
29529 if { (ac_try="$ac_link"
29530 case "(($ac_try" in
29531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532   *) ac_try_echo=$ac_try;;
29533 esac
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535   (eval "$ac_link") 2>conftest.er1
29536   ac_status=$?
29537   grep -v '^ *+' conftest.er1 >conftest.err
29538   rm -f conftest.er1
29539   cat conftest.err >&5
29540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541   (exit $ac_status); } &&
29542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29543   { (case "(($ac_try" in
29544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29545   *) ac_try_echo=$ac_try;;
29546 esac
29547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548   (eval "$ac_try") 2>&5
29549   ac_status=$?
29550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551   (exit $ac_status); }; } &&
29552          { ac_try='test -s conftest$ac_exeext'
29553   { (case "(($ac_try" in
29554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29555   *) ac_try_echo=$ac_try;;
29556 esac
29557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29558   (eval "$ac_try") 2>&5
29559   ac_status=$?
29560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561   (exit $ac_status); }; }; then
29562   ac_cv_lib_jpeg_jpeg_read_header=yes
29563 else
29564   echo "$as_me: failed program was:" >&5
29565 sed 's/^/| /' conftest.$ac_ext >&5
29566
29567         ac_cv_lib_jpeg_jpeg_read_header=no
29568 fi
29569
29570 rm -f core conftest.err conftest.$ac_objext \
29571       conftest$ac_exeext conftest.$ac_ext
29572 LIBS=$ac_check_lib_save_LIBS
29573 fi
29574 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29575 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29576 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
29577   JPEG_LINK=" -ljpeg"
29578 fi
29579
29580             fi
29581
29582             if test "x$JPEG_LINK" = "x" ; then
29583                 if test "$wxUSE_LIBJPEG" = "sys" ; then
29584                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
29585 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
29586    { (exit 1); exit 1; }; }
29587                 else
29588                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
29589 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
29590                     wxUSE_LIBJPEG=builtin
29591                 fi
29592             else
29593                                 wxUSE_LIBJPEG=sys
29594
29595                 if test "$wxUSE_MSW" = 1; then
29596                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
29597 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29598 if test "${ac_cv_type_boolean+set}" = set; then
29599   echo $ECHO_N "(cached) $ECHO_C" >&6
29600 else
29601   cat >conftest.$ac_ext <<_ACEOF
29602 /* confdefs.h.  */
29603 _ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h.  */
29607 #include <windows.h>
29608
29609 typedef boolean ac__type_new_;
29610 int
29611 main ()
29612 {
29613 if ((ac__type_new_ *) 0)
29614   return 0;
29615 if (sizeof (ac__type_new_))
29616   return 0;
29617   ;
29618   return 0;
29619 }
29620 _ACEOF
29621 rm -f conftest.$ac_objext
29622 if { (ac_try="$ac_compile"
29623 case "(($ac_try" in
29624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625   *) ac_try_echo=$ac_try;;
29626 esac
29627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628   (eval "$ac_compile") 2>conftest.er1
29629   ac_status=$?
29630   grep -v '^ *+' conftest.er1 >conftest.err
29631   rm -f conftest.er1
29632   cat conftest.err >&5
29633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634   (exit $ac_status); } &&
29635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29636   { (case "(($ac_try" in
29637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638   *) ac_try_echo=$ac_try;;
29639 esac
29640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641   (eval "$ac_try") 2>&5
29642   ac_status=$?
29643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644   (exit $ac_status); }; } &&
29645          { ac_try='test -s conftest.$ac_objext'
29646   { (case "(($ac_try" in
29647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29648   *) ac_try_echo=$ac_try;;
29649 esac
29650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29651   (eval "$ac_try") 2>&5
29652   ac_status=$?
29653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654   (exit $ac_status); }; }; then
29655   ac_cv_type_boolean=yes
29656 else
29657   echo "$as_me: failed program was:" >&5
29658 sed 's/^/| /' conftest.$ac_ext >&5
29659
29660         ac_cv_type_boolean=no
29661 fi
29662
29663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29664 fi
29665 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29666 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29667 if test $ac_cv_type_boolean = yes; then
29668
29669 cat >>confdefs.h <<_ACEOF
29670 #define HAVE_BOOLEAN 1
29671 _ACEOF
29672
29673
29674                             { echo "$as_me:$LINENO: checking for boolean" >&5
29675 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29676 if test "${ac_cv_type_boolean+set}" = set; then
29677   echo $ECHO_N "(cached) $ECHO_C" >&6
29678 else
29679   cat >conftest.$ac_ext <<_ACEOF
29680 /* confdefs.h.  */
29681 _ACEOF
29682 cat confdefs.h >>conftest.$ac_ext
29683 cat >>conftest.$ac_ext <<_ACEOF
29684 /* end confdefs.h.  */
29685
29686                                     #undef HAVE_BOOLEAN
29687                                     #include <stdio.h>
29688                                     #include <jpeglib.h>
29689
29690
29691 typedef boolean ac__type_new_;
29692 int
29693 main ()
29694 {
29695 if ((ac__type_new_ *) 0)
29696   return 0;
29697 if (sizeof (ac__type_new_))
29698   return 0;
29699   ;
29700   return 0;
29701 }
29702 _ACEOF
29703 rm -f conftest.$ac_objext
29704 if { (ac_try="$ac_compile"
29705 case "(($ac_try" in
29706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29707   *) ac_try_echo=$ac_try;;
29708 esac
29709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29710   (eval "$ac_compile") 2>conftest.er1
29711   ac_status=$?
29712   grep -v '^ *+' conftest.er1 >conftest.err
29713   rm -f conftest.er1
29714   cat conftest.err >&5
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); } &&
29717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29718   { (case "(($ac_try" in
29719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29720   *) ac_try_echo=$ac_try;;
29721 esac
29722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29723   (eval "$ac_try") 2>&5
29724   ac_status=$?
29725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726   (exit $ac_status); }; } &&
29727          { ac_try='test -s conftest.$ac_objext'
29728   { (case "(($ac_try" in
29729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730   *) ac_try_echo=$ac_try;;
29731 esac
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733   (eval "$ac_try") 2>&5
29734   ac_status=$?
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); }; }; then
29737   ac_cv_type_boolean=yes
29738 else
29739   echo "$as_me: failed program was:" >&5
29740 sed 's/^/| /' conftest.$ac_ext >&5
29741
29742         ac_cv_type_boolean=no
29743 fi
29744
29745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29746 fi
29747 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29748 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29749
29750 { echo "$as_me:$LINENO: checking size of boolean" >&5
29751 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
29752 if test "${ac_cv_sizeof_boolean+set}" = set; then
29753   echo $ECHO_N "(cached) $ECHO_C" >&6
29754 else
29755   if test "$ac_cv_type_boolean" = yes; then
29756   # The cast to long int works around a bug in the HP C Compiler
29757   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29758   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29759   # This bug is HP SR number 8606223364.
29760   if test "$cross_compiling" = yes; then
29761   # Depending upon the size, compute the lo and hi bounds.
29762 cat >conftest.$ac_ext <<_ACEOF
29763 /* confdefs.h.  */
29764 _ACEOF
29765 cat confdefs.h >>conftest.$ac_ext
29766 cat >>conftest.$ac_ext <<_ACEOF
29767 /* end confdefs.h.  */
29768
29769                                     #undef HAVE_BOOLEAN
29770                                     #include <stdio.h>
29771                                     #include <jpeglib.h>
29772
29773
29774                    typedef boolean ac__type_sizeof_;
29775 int
29776 main ()
29777 {
29778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29779 test_array [0] = 0
29780
29781   ;
29782   return 0;
29783 }
29784 _ACEOF
29785 rm -f conftest.$ac_objext
29786 if { (ac_try="$ac_compile"
29787 case "(($ac_try" in
29788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789   *) ac_try_echo=$ac_try;;
29790 esac
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792   (eval "$ac_compile") 2>conftest.er1
29793   ac_status=$?
29794   grep -v '^ *+' conftest.er1 >conftest.err
29795   rm -f conftest.er1
29796   cat conftest.err >&5
29797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798   (exit $ac_status); } &&
29799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29800   { (case "(($ac_try" in
29801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802   *) ac_try_echo=$ac_try;;
29803 esac
29804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29805   (eval "$ac_try") 2>&5
29806   ac_status=$?
29807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808   (exit $ac_status); }; } &&
29809          { ac_try='test -s conftest.$ac_objext'
29810   { (case "(($ac_try" in
29811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812   *) ac_try_echo=$ac_try;;
29813 esac
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815   (eval "$ac_try") 2>&5
29816   ac_status=$?
29817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818   (exit $ac_status); }; }; then
29819   ac_lo=0 ac_mid=0
29820   while :; do
29821     cat >conftest.$ac_ext <<_ACEOF
29822 /* confdefs.h.  */
29823 _ACEOF
29824 cat confdefs.h >>conftest.$ac_ext
29825 cat >>conftest.$ac_ext <<_ACEOF
29826 /* end confdefs.h.  */
29827
29828                                     #undef HAVE_BOOLEAN
29829                                     #include <stdio.h>
29830                                     #include <jpeglib.h>
29831
29832
29833                    typedef boolean ac__type_sizeof_;
29834 int
29835 main ()
29836 {
29837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29838 test_array [0] = 0
29839
29840   ;
29841   return 0;
29842 }
29843 _ACEOF
29844 rm -f conftest.$ac_objext
29845 if { (ac_try="$ac_compile"
29846 case "(($ac_try" in
29847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29848   *) ac_try_echo=$ac_try;;
29849 esac
29850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29851   (eval "$ac_compile") 2>conftest.er1
29852   ac_status=$?
29853   grep -v '^ *+' conftest.er1 >conftest.err
29854   rm -f conftest.er1
29855   cat conftest.err >&5
29856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857   (exit $ac_status); } &&
29858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29859   { (case "(($ac_try" in
29860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29861   *) ac_try_echo=$ac_try;;
29862 esac
29863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29864   (eval "$ac_try") 2>&5
29865   ac_status=$?
29866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867   (exit $ac_status); }; } &&
29868          { ac_try='test -s conftest.$ac_objext'
29869   { (case "(($ac_try" in
29870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29871   *) ac_try_echo=$ac_try;;
29872 esac
29873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29874   (eval "$ac_try") 2>&5
29875   ac_status=$?
29876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877   (exit $ac_status); }; }; then
29878   ac_hi=$ac_mid; break
29879 else
29880   echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29882
29883         ac_lo=`expr $ac_mid + 1`
29884                         if test $ac_lo -le $ac_mid; then
29885                           ac_lo= ac_hi=
29886                           break
29887                         fi
29888                         ac_mid=`expr 2 '*' $ac_mid + 1`
29889 fi
29890
29891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29892   done
29893 else
29894   echo "$as_me: failed program was:" >&5
29895 sed 's/^/| /' conftest.$ac_ext >&5
29896
29897         cat >conftest.$ac_ext <<_ACEOF
29898 /* confdefs.h.  */
29899 _ACEOF
29900 cat confdefs.h >>conftest.$ac_ext
29901 cat >>conftest.$ac_ext <<_ACEOF
29902 /* end confdefs.h.  */
29903
29904                                     #undef HAVE_BOOLEAN
29905                                     #include <stdio.h>
29906                                     #include <jpeglib.h>
29907
29908
29909                    typedef boolean ac__type_sizeof_;
29910 int
29911 main ()
29912 {
29913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29914 test_array [0] = 0
29915
29916   ;
29917   return 0;
29918 }
29919 _ACEOF
29920 rm -f conftest.$ac_objext
29921 if { (ac_try="$ac_compile"
29922 case "(($ac_try" in
29923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29924   *) ac_try_echo=$ac_try;;
29925 esac
29926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29927   (eval "$ac_compile") 2>conftest.er1
29928   ac_status=$?
29929   grep -v '^ *+' conftest.er1 >conftest.err
29930   rm -f conftest.er1
29931   cat conftest.err >&5
29932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933   (exit $ac_status); } &&
29934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29935   { (case "(($ac_try" in
29936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937   *) ac_try_echo=$ac_try;;
29938 esac
29939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940   (eval "$ac_try") 2>&5
29941   ac_status=$?
29942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943   (exit $ac_status); }; } &&
29944          { ac_try='test -s conftest.$ac_objext'
29945   { (case "(($ac_try" in
29946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947   *) ac_try_echo=$ac_try;;
29948 esac
29949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950   (eval "$ac_try") 2>&5
29951   ac_status=$?
29952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953   (exit $ac_status); }; }; then
29954   ac_hi=-1 ac_mid=-1
29955   while :; do
29956     cat >conftest.$ac_ext <<_ACEOF
29957 /* confdefs.h.  */
29958 _ACEOF
29959 cat confdefs.h >>conftest.$ac_ext
29960 cat >>conftest.$ac_ext <<_ACEOF
29961 /* end confdefs.h.  */
29962
29963                                     #undef HAVE_BOOLEAN
29964                                     #include <stdio.h>
29965                                     #include <jpeglib.h>
29966
29967
29968                    typedef boolean ac__type_sizeof_;
29969 int
29970 main ()
29971 {
29972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29973 test_array [0] = 0
29974
29975   ;
29976   return 0;
29977 }
29978 _ACEOF
29979 rm -f conftest.$ac_objext
29980 if { (ac_try="$ac_compile"
29981 case "(($ac_try" in
29982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983   *) ac_try_echo=$ac_try;;
29984 esac
29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986   (eval "$ac_compile") 2>conftest.er1
29987   ac_status=$?
29988   grep -v '^ *+' conftest.er1 >conftest.err
29989   rm -f conftest.er1
29990   cat conftest.err >&5
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); } &&
29993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29994   { (case "(($ac_try" in
29995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996   *) ac_try_echo=$ac_try;;
29997 esac
29998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999   (eval "$ac_try") 2>&5
30000   ac_status=$?
30001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002   (exit $ac_status); }; } &&
30003          { ac_try='test -s conftest.$ac_objext'
30004   { (case "(($ac_try" in
30005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006   *) ac_try_echo=$ac_try;;
30007 esac
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009   (eval "$ac_try") 2>&5
30010   ac_status=$?
30011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012   (exit $ac_status); }; }; then
30013   ac_lo=$ac_mid; break
30014 else
30015   echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30017
30018         ac_hi=`expr '(' $ac_mid ')' - 1`
30019                         if test $ac_mid -le $ac_hi; then
30020                           ac_lo= ac_hi=
30021                           break
30022                         fi
30023                         ac_mid=`expr 2 '*' $ac_mid`
30024 fi
30025
30026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30027   done
30028 else
30029   echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30031
30032         ac_lo= ac_hi=
30033 fi
30034
30035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30036 fi
30037
30038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039 # Binary search between lo and hi bounds.
30040 while test "x$ac_lo" != "x$ac_hi"; do
30041   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30042   cat >conftest.$ac_ext <<_ACEOF
30043 /* confdefs.h.  */
30044 _ACEOF
30045 cat confdefs.h >>conftest.$ac_ext
30046 cat >>conftest.$ac_ext <<_ACEOF
30047 /* end confdefs.h.  */
30048
30049                                     #undef HAVE_BOOLEAN
30050                                     #include <stdio.h>
30051                                     #include <jpeglib.h>
30052
30053
30054                    typedef boolean ac__type_sizeof_;
30055 int
30056 main ()
30057 {
30058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30059 test_array [0] = 0
30060
30061   ;
30062   return 0;
30063 }
30064 _ACEOF
30065 rm -f conftest.$ac_objext
30066 if { (ac_try="$ac_compile"
30067 case "(($ac_try" in
30068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069   *) ac_try_echo=$ac_try;;
30070 esac
30071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072   (eval "$ac_compile") 2>conftest.er1
30073   ac_status=$?
30074   grep -v '^ *+' conftest.er1 >conftest.err
30075   rm -f conftest.er1
30076   cat conftest.err >&5
30077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078   (exit $ac_status); } &&
30079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30080   { (case "(($ac_try" in
30081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30082   *) ac_try_echo=$ac_try;;
30083 esac
30084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30085   (eval "$ac_try") 2>&5
30086   ac_status=$?
30087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088   (exit $ac_status); }; } &&
30089          { ac_try='test -s conftest.$ac_objext'
30090   { (case "(($ac_try" in
30091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30092   *) ac_try_echo=$ac_try;;
30093 esac
30094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30095   (eval "$ac_try") 2>&5
30096   ac_status=$?
30097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098   (exit $ac_status); }; }; then
30099   ac_hi=$ac_mid
30100 else
30101   echo "$as_me: failed program was:" >&5
30102 sed 's/^/| /' conftest.$ac_ext >&5
30103
30104         ac_lo=`expr '(' $ac_mid ')' + 1`
30105 fi
30106
30107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30108 done
30109 case $ac_lo in
30110 ?*) ac_cv_sizeof_boolean=$ac_lo;;
30111 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
30112 See \`config.log' for more details." >&5
30113 echo "$as_me: error: cannot compute sizeof (boolean)
30114 See \`config.log' for more details." >&2;}
30115    { (exit 77); exit 77; }; } ;;
30116 esac
30117 else
30118   cat >conftest.$ac_ext <<_ACEOF
30119 /* confdefs.h.  */
30120 _ACEOF
30121 cat confdefs.h >>conftest.$ac_ext
30122 cat >>conftest.$ac_ext <<_ACEOF
30123 /* end confdefs.h.  */
30124
30125                                     #undef HAVE_BOOLEAN
30126                                     #include <stdio.h>
30127                                     #include <jpeglib.h>
30128
30129
30130                    typedef boolean ac__type_sizeof_;
30131 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30132 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30133 #include <stdio.h>
30134 #include <stdlib.h>
30135 int
30136 main ()
30137 {
30138
30139   FILE *f = fopen ("conftest.val", "w");
30140   if (! f)
30141     return 1;
30142   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30143     {
30144       long int i = longval ();
30145       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30146         return 1;
30147       fprintf (f, "%ld\n", i);
30148     }
30149   else
30150     {
30151       unsigned long int i = ulongval ();
30152       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30153         return 1;
30154       fprintf (f, "%lu\n", i);
30155     }
30156   return ferror (f) || fclose (f) != 0;
30157
30158   ;
30159   return 0;
30160 }
30161 _ACEOF
30162 rm -f conftest$ac_exeext
30163 if { (ac_try="$ac_link"
30164 case "(($ac_try" in
30165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166   *) ac_try_echo=$ac_try;;
30167 esac
30168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169   (eval "$ac_link") 2>&5
30170   ac_status=$?
30171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
30179   ac_status=$?
30180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30181   (exit $ac_status); }; }; then
30182   ac_cv_sizeof_boolean=`cat conftest.val`
30183 else
30184   echo "$as_me: program exited with status $ac_status" >&5
30185 echo "$as_me: failed program was:" >&5
30186 sed 's/^/| /' conftest.$ac_ext >&5
30187
30188 ( exit $ac_status )
30189 { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
30190 See \`config.log' for more details." >&5
30191 echo "$as_me: error: cannot compute sizeof (boolean)
30192 See \`config.log' for more details." >&2;}
30193    { (exit 77); exit 77; }; }
30194 fi
30195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30196 fi
30197 rm -f conftest.val
30198 else
30199   ac_cv_sizeof_boolean=0
30200 fi
30201 fi
30202 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
30203 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
30204 cat >>confdefs.h <<_ACEOF
30205 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
30206 _ACEOF
30207
30208
30209                             cat >>confdefs.h <<_ACEOF
30210 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
30211 _ACEOF
30212
30213
30214 fi
30215
30216                 fi
30217             fi
30218         fi
30219     fi
30220 fi
30221
30222
30223 TIFF_LINK=
30224 TIFF_PREREQ_LINKS=-lm
30225 if test "$wxUSE_LIBTIFF" != "no" ; then
30226     cat >>confdefs.h <<\_ACEOF
30227 #define wxUSE_LIBTIFF 1
30228 _ACEOF
30229
30230
30231     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
30232                         if test "$wxUSE_LIBJPEG" = "sys"; then
30233             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
30234         fi
30235         if test "$wxUSE_ZLIB" = "sys"; then
30236             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
30237         fi
30238         if test "${ac_cv_header_tiffio_h+set}" = set; then
30239   { echo "$as_me:$LINENO: checking for tiffio.h" >&5
30240 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
30241 if test "${ac_cv_header_tiffio_h+set}" = set; then
30242   echo $ECHO_N "(cached) $ECHO_C" >&6
30243 fi
30244 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
30245 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
30246 else
30247   # Is the header compilable?
30248 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
30249 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
30250 cat >conftest.$ac_ext <<_ACEOF
30251 /* confdefs.h.  */
30252 _ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h.  */
30256 $ac_includes_default
30257 #include <tiffio.h>
30258 _ACEOF
30259 rm -f conftest.$ac_objext
30260 if { (ac_try="$ac_compile"
30261 case "(($ac_try" in
30262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263   *) ac_try_echo=$ac_try;;
30264 esac
30265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266   (eval "$ac_compile") 2>conftest.er1
30267   ac_status=$?
30268   grep -v '^ *+' conftest.er1 >conftest.err
30269   rm -f conftest.er1
30270   cat conftest.err >&5
30271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272   (exit $ac_status); } &&
30273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30274   { (case "(($ac_try" in
30275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276   *) ac_try_echo=$ac_try;;
30277 esac
30278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279   (eval "$ac_try") 2>&5
30280   ac_status=$?
30281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); }; } &&
30283          { ac_try='test -s conftest.$ac_objext'
30284   { (case "(($ac_try" in
30285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286   *) ac_try_echo=$ac_try;;
30287 esac
30288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289   (eval "$ac_try") 2>&5
30290   ac_status=$?
30291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292   (exit $ac_status); }; }; then
30293   ac_header_compiler=yes
30294 else
30295   echo "$as_me: failed program was:" >&5
30296 sed 's/^/| /' conftest.$ac_ext >&5
30297
30298         ac_header_compiler=no
30299 fi
30300
30301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30303 echo "${ECHO_T}$ac_header_compiler" >&6; }
30304
30305 # Is the header present?
30306 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
30307 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
30308 cat >conftest.$ac_ext <<_ACEOF
30309 /* confdefs.h.  */
30310 _ACEOF
30311 cat confdefs.h >>conftest.$ac_ext
30312 cat >>conftest.$ac_ext <<_ACEOF
30313 /* end confdefs.h.  */
30314 #include <tiffio.h>
30315 _ACEOF
30316 if { (ac_try="$ac_cpp conftest.$ac_ext"
30317 case "(($ac_try" in
30318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30319   *) ac_try_echo=$ac_try;;
30320 esac
30321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30323   ac_status=$?
30324   grep -v '^ *+' conftest.er1 >conftest.err
30325   rm -f conftest.er1
30326   cat conftest.err >&5
30327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328   (exit $ac_status); } >/dev/null; then
30329   if test -s conftest.err; then
30330     ac_cpp_err=$ac_c_preproc_warn_flag
30331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30332   else
30333     ac_cpp_err=
30334   fi
30335 else
30336   ac_cpp_err=yes
30337 fi
30338 if test -z "$ac_cpp_err"; then
30339   ac_header_preproc=yes
30340 else
30341   echo "$as_me: failed program was:" >&5
30342 sed 's/^/| /' conftest.$ac_ext >&5
30343
30344   ac_header_preproc=no
30345 fi
30346
30347 rm -f conftest.err conftest.$ac_ext
30348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30349 echo "${ECHO_T}$ac_header_preproc" >&6; }
30350
30351 # So?  What about this header?
30352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30353   yes:no: )
30354     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
30355 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30356     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
30357 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
30358     ac_header_preproc=yes
30359     ;;
30360   no:yes:* )
30361     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
30362 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
30363     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
30364 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
30365     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
30366 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
30367     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
30368 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30369     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
30370 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
30371     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
30372 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
30373     ( cat <<\_ASBOX
30374 ## ----------------------------------------- ##
30375 ## Report this to wx-dev@lists.wxwidgets.org ##
30376 ## ----------------------------------------- ##
30377 _ASBOX
30378      ) | sed "s/^/$as_me: WARNING:     /" >&2
30379     ;;
30380 esac
30381 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
30382 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
30383 if test "${ac_cv_header_tiffio_h+set}" = set; then
30384   echo $ECHO_N "(cached) $ECHO_C" >&6
30385 else
30386   ac_cv_header_tiffio_h=$ac_header_preproc
30387 fi
30388 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
30389 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
30390
30391 fi
30392 if test $ac_cv_header_tiffio_h = yes; then
30393
30394                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
30395 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
30396 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
30397   echo $ECHO_N "(cached) $ECHO_C" >&6
30398 else
30399   ac_check_lib_save_LIBS=$LIBS
30400 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
30401 cat >conftest.$ac_ext <<_ACEOF
30402 /* confdefs.h.  */
30403 _ACEOF
30404 cat confdefs.h >>conftest.$ac_ext
30405 cat >>conftest.$ac_ext <<_ACEOF
30406 /* end confdefs.h.  */
30407
30408 /* Override any GCC internal prototype to avoid an error.
30409    Use char because int might match the return type of a GCC
30410    builtin and then its argument prototype would still apply.  */
30411 #ifdef __cplusplus
30412 extern "C"
30413 #endif
30414 char TIFFError ();
30415 int
30416 main ()
30417 {
30418 return TIFFError ();
30419   ;
30420   return 0;
30421 }
30422 _ACEOF
30423 rm -f conftest.$ac_objext conftest$ac_exeext
30424 if { (ac_try="$ac_link"
30425 case "(($ac_try" in
30426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30427   *) ac_try_echo=$ac_try;;
30428 esac
30429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30430   (eval "$ac_link") 2>conftest.er1
30431   ac_status=$?
30432   grep -v '^ *+' conftest.er1 >conftest.err
30433   rm -f conftest.er1
30434   cat conftest.err >&5
30435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436   (exit $ac_status); } &&
30437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30438   { (case "(($ac_try" in
30439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30440   *) ac_try_echo=$ac_try;;
30441 esac
30442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30443   (eval "$ac_try") 2>&5
30444   ac_status=$?
30445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446   (exit $ac_status); }; } &&
30447          { ac_try='test -s conftest$ac_exeext'
30448   { (case "(($ac_try" in
30449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450   *) ac_try_echo=$ac_try;;
30451 esac
30452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453   (eval "$ac_try") 2>&5
30454   ac_status=$?
30455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456   (exit $ac_status); }; }; then
30457   ac_cv_lib_tiff_TIFFError=yes
30458 else
30459   echo "$as_me: failed program was:" >&5
30460 sed 's/^/| /' conftest.$ac_ext >&5
30461
30462         ac_cv_lib_tiff_TIFFError=no
30463 fi
30464
30465 rm -f core conftest.err conftest.$ac_objext \
30466       conftest$ac_exeext conftest.$ac_ext
30467 LIBS=$ac_check_lib_save_LIBS
30468 fi
30469 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
30470 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
30471 if test $ac_cv_lib_tiff_TIFFError = yes; then
30472   TIFF_LINK=" -ltiff"
30473 fi
30474
30475
30476
30477 fi
30478
30479
30480
30481         if test "x$TIFF_LINK" = "x" ; then
30482             if test "$wxUSE_LIBTIFF" = "sys" ; then
30483                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
30484 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
30485    { (exit 1); exit 1; }; }
30486             else
30487                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
30488 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
30489                 wxUSE_LIBTIFF=builtin
30490             fi
30491         else
30492                         wxUSE_LIBTIFF=sys
30493         fi
30494     fi
30495 fi
30496
30497
30498 if test "$wxUSE_WCHAR_T" != "yes"; then
30499     if test "$wxUSE_EXPAT" != "no"; then
30500         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
30501 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
30502         wxUSE_EXPAT=no
30503     fi
30504     if test "$wxUSE_XML" != "no"; then
30505         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
30506 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
30507         wxUSE_XML=no
30508     fi
30509 fi
30510
30511 if test "$wxUSE_EXPAT" != "no"; then
30512     wxUSE_XML=yes
30513     cat >>confdefs.h <<\_ACEOF
30514 #define wxUSE_EXPAT 1
30515 _ACEOF
30516
30517     cat >>confdefs.h <<\_ACEOF
30518 #define wxUSE_XML 1
30519 _ACEOF
30520
30521
30522     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
30523         if test "${ac_cv_header_expat_h+set}" = set; then
30524   { echo "$as_me:$LINENO: checking for expat.h" >&5
30525 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
30526 if test "${ac_cv_header_expat_h+set}" = set; then
30527   echo $ECHO_N "(cached) $ECHO_C" >&6
30528 fi
30529 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30530 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
30531 else
30532   # Is the header compilable?
30533 { echo "$as_me:$LINENO: checking expat.h usability" >&5
30534 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; }
30535 cat >conftest.$ac_ext <<_ACEOF
30536 /* confdefs.h.  */
30537 _ACEOF
30538 cat confdefs.h >>conftest.$ac_ext
30539 cat >>conftest.$ac_ext <<_ACEOF
30540 /* end confdefs.h.  */
30541 $ac_includes_default
30542 #include <expat.h>
30543 _ACEOF
30544 rm -f conftest.$ac_objext
30545 if { (ac_try="$ac_compile"
30546 case "(($ac_try" in
30547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30548   *) ac_try_echo=$ac_try;;
30549 esac
30550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30551   (eval "$ac_compile") 2>conftest.er1
30552   ac_status=$?
30553   grep -v '^ *+' conftest.er1 >conftest.err
30554   rm -f conftest.er1
30555   cat conftest.err >&5
30556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557   (exit $ac_status); } &&
30558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30559   { (case "(($ac_try" in
30560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561   *) ac_try_echo=$ac_try;;
30562 esac
30563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564   (eval "$ac_try") 2>&5
30565   ac_status=$?
30566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567   (exit $ac_status); }; } &&
30568          { ac_try='test -s conftest.$ac_objext'
30569   { (case "(($ac_try" in
30570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571   *) ac_try_echo=$ac_try;;
30572 esac
30573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574   (eval "$ac_try") 2>&5
30575   ac_status=$?
30576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577   (exit $ac_status); }; }; then
30578   ac_header_compiler=yes
30579 else
30580   echo "$as_me: failed program was:" >&5
30581 sed 's/^/| /' conftest.$ac_ext >&5
30582
30583         ac_header_compiler=no
30584 fi
30585
30586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30588 echo "${ECHO_T}$ac_header_compiler" >&6; }
30589
30590 # Is the header present?
30591 { echo "$as_me:$LINENO: checking expat.h presence" >&5
30592 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; }
30593 cat >conftest.$ac_ext <<_ACEOF
30594 /* confdefs.h.  */
30595 _ACEOF
30596 cat confdefs.h >>conftest.$ac_ext
30597 cat >>conftest.$ac_ext <<_ACEOF
30598 /* end confdefs.h.  */
30599 #include <expat.h>
30600 _ACEOF
30601 if { (ac_try="$ac_cpp conftest.$ac_ext"
30602 case "(($ac_try" in
30603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30604   *) ac_try_echo=$ac_try;;
30605 esac
30606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30608   ac_status=$?
30609   grep -v '^ *+' conftest.er1 >conftest.err
30610   rm -f conftest.er1
30611   cat conftest.err >&5
30612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613   (exit $ac_status); } >/dev/null; then
30614   if test -s conftest.err; then
30615     ac_cpp_err=$ac_c_preproc_warn_flag
30616     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30617   else
30618     ac_cpp_err=
30619   fi
30620 else
30621   ac_cpp_err=yes
30622 fi
30623 if test -z "$ac_cpp_err"; then
30624   ac_header_preproc=yes
30625 else
30626   echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30628
30629   ac_header_preproc=no
30630 fi
30631
30632 rm -f conftest.err conftest.$ac_ext
30633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30634 echo "${ECHO_T}$ac_header_preproc" >&6; }
30635
30636 # So?  What about this header?
30637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30638   yes:no: )
30639     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
30640 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30641     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
30642 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
30643     ac_header_preproc=yes
30644     ;;
30645   no:yes:* )
30646     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
30647 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
30648     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
30649 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
30650     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
30651 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
30652     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
30653 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30654     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
30655 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
30656     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
30657 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
30658     ( cat <<\_ASBOX
30659 ## ----------------------------------------- ##
30660 ## Report this to wx-dev@lists.wxwidgets.org ##
30661 ## ----------------------------------------- ##
30662 _ASBOX
30663      ) | sed "s/^/$as_me: WARNING:     /" >&2
30664     ;;
30665 esac
30666 { echo "$as_me:$LINENO: checking for expat.h" >&5
30667 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
30668 if test "${ac_cv_header_expat_h+set}" = set; then
30669   echo $ECHO_N "(cached) $ECHO_C" >&6
30670 else
30671   ac_cv_header_expat_h=$ac_header_preproc
30672 fi
30673 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30674 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
30675
30676 fi
30677 if test $ac_cv_header_expat_h = yes; then
30678   found_expat_h=1
30679 fi
30680
30681
30682         if test "x$found_expat_h" = "x1"; then
30683                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
30684 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
30685 if test "${wx_cv_expat_is_not_broken+set}" = set; then
30686   echo $ECHO_N "(cached) $ECHO_C" >&6
30687 else
30688
30689                 ac_ext=cpp
30690 ac_cpp='$CXXCPP $CPPFLAGS'
30691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30694
30695                 cat >conftest.$ac_ext <<_ACEOF
30696 /* confdefs.h.  */
30697 _ACEOF
30698 cat confdefs.h >>conftest.$ac_ext
30699 cat >>conftest.$ac_ext <<_ACEOF
30700 /* end confdefs.h.  */
30701 #include <expat.h>
30702 int
30703 main ()
30704 {
30705
30706   ;
30707   return 0;
30708 }
30709 _ACEOF
30710 rm -f conftest.$ac_objext
30711 if { (ac_try="$ac_compile"
30712 case "(($ac_try" in
30713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30714   *) ac_try_echo=$ac_try;;
30715 esac
30716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30717   (eval "$ac_compile") 2>conftest.er1
30718   ac_status=$?
30719   grep -v '^ *+' conftest.er1 >conftest.err
30720   rm -f conftest.er1
30721   cat conftest.err >&5
30722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723   (exit $ac_status); } &&
30724          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30725   { (case "(($ac_try" in
30726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30727   *) ac_try_echo=$ac_try;;
30728 esac
30729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30730   (eval "$ac_try") 2>&5
30731   ac_status=$?
30732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30733   (exit $ac_status); }; } &&
30734          { ac_try='test -s conftest.$ac_objext'
30735   { (case "(($ac_try" in
30736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30737   *) ac_try_echo=$ac_try;;
30738 esac
30739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30740   (eval "$ac_try") 2>&5
30741   ac_status=$?
30742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743   (exit $ac_status); }; }; then
30744   wx_cv_expat_is_not_broken=yes
30745 else
30746   echo "$as_me: failed program was:" >&5
30747 sed 's/^/| /' conftest.$ac_ext >&5
30748
30749         wx_cv_expat_is_not_broken=no
30750
30751 fi
30752
30753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30754                 ac_ext=c
30755 ac_cpp='$CPP $CPPFLAGS'
30756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30759
30760
30761
30762 fi
30763 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
30764 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
30765             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
30766                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
30767 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
30768 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
30769   echo $ECHO_N "(cached) $ECHO_C" >&6
30770 else
30771   ac_check_lib_save_LIBS=$LIBS
30772 LIBS="-lexpat  $LIBS"
30773 cat >conftest.$ac_ext <<_ACEOF
30774 /* confdefs.h.  */
30775 _ACEOF
30776 cat confdefs.h >>conftest.$ac_ext
30777 cat >>conftest.$ac_ext <<_ACEOF
30778 /* end confdefs.h.  */
30779
30780 /* Override any GCC internal prototype to avoid an error.
30781    Use char because int might match the return type of a GCC
30782    builtin and then its argument prototype would still apply.  */
30783 #ifdef __cplusplus
30784 extern "C"
30785 #endif
30786 char XML_ParserCreate ();
30787 int
30788 main ()
30789 {
30790 return XML_ParserCreate ();
30791   ;
30792   return 0;
30793 }
30794 _ACEOF
30795 rm -f conftest.$ac_objext conftest$ac_exeext
30796 if { (ac_try="$ac_link"
30797 case "(($ac_try" in
30798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799   *) ac_try_echo=$ac_try;;
30800 esac
30801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802   (eval "$ac_link") 2>conftest.er1
30803   ac_status=$?
30804   grep -v '^ *+' conftest.er1 >conftest.err
30805   rm -f conftest.er1
30806   cat conftest.err >&5
30807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808   (exit $ac_status); } &&
30809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30810   { (case "(($ac_try" in
30811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30812   *) ac_try_echo=$ac_try;;
30813 esac
30814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30815   (eval "$ac_try") 2>&5
30816   ac_status=$?
30817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818   (exit $ac_status); }; } &&
30819          { ac_try='test -s conftest$ac_exeext'
30820   { (case "(($ac_try" in
30821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822   *) ac_try_echo=$ac_try;;
30823 esac
30824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825   (eval "$ac_try") 2>&5
30826   ac_status=$?
30827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828   (exit $ac_status); }; }; then
30829   ac_cv_lib_expat_XML_ParserCreate=yes
30830 else
30831   echo "$as_me: failed program was:" >&5
30832 sed 's/^/| /' conftest.$ac_ext >&5
30833
30834         ac_cv_lib_expat_XML_ParserCreate=no
30835 fi
30836
30837 rm -f core conftest.err conftest.$ac_objext \
30838       conftest$ac_exeext conftest.$ac_ext
30839 LIBS=$ac_check_lib_save_LIBS
30840 fi
30841 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
30842 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
30843 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
30844   EXPAT_LINK=" -lexpat"
30845 fi
30846
30847             fi
30848         fi
30849         if test "x$EXPAT_LINK" = "x" ; then
30850             if test "$wxUSE_EXPAT" = "sys" ; then
30851                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
30852 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
30853    { (exit 1); exit 1; }; }
30854             else
30855                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
30856 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
30857                 wxUSE_EXPAT=builtin
30858             fi
30859         else
30860                         wxUSE_EXPAT=sys
30861         fi
30862     fi
30863     if test "$wxUSE_EXPAT" = "builtin" ; then
30864                 subdirs="$subdirs src/expat"
30865
30866     fi
30867 fi
30868
30869
30870
30871 if test "$wxUSE_LIBMSPACK" != "no"; then
30872     if test "${ac_cv_header_mspack_h+set}" = set; then
30873   { echo "$as_me:$LINENO: checking for mspack.h" >&5
30874 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
30875 if test "${ac_cv_header_mspack_h+set}" = set; then
30876   echo $ECHO_N "(cached) $ECHO_C" >&6
30877 fi
30878 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
30879 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
30880 else
30881   # Is the header compilable?
30882 { echo "$as_me:$LINENO: checking mspack.h usability" >&5
30883 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6; }
30884 cat >conftest.$ac_ext <<_ACEOF
30885 /* confdefs.h.  */
30886 _ACEOF
30887 cat confdefs.h >>conftest.$ac_ext
30888 cat >>conftest.$ac_ext <<_ACEOF
30889 /* end confdefs.h.  */
30890 $ac_includes_default
30891 #include <mspack.h>
30892 _ACEOF
30893 rm -f conftest.$ac_objext
30894 if { (ac_try="$ac_compile"
30895 case "(($ac_try" in
30896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30897   *) ac_try_echo=$ac_try;;
30898 esac
30899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30900   (eval "$ac_compile") 2>conftest.er1
30901   ac_status=$?
30902   grep -v '^ *+' conftest.er1 >conftest.err
30903   rm -f conftest.er1
30904   cat conftest.err >&5
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); } &&
30907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30908   { (case "(($ac_try" in
30909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30910   *) ac_try_echo=$ac_try;;
30911 esac
30912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30913   (eval "$ac_try") 2>&5
30914   ac_status=$?
30915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916   (exit $ac_status); }; } &&
30917          { ac_try='test -s conftest.$ac_objext'
30918   { (case "(($ac_try" in
30919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920   *) ac_try_echo=$ac_try;;
30921 esac
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923   (eval "$ac_try") 2>&5
30924   ac_status=$?
30925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926   (exit $ac_status); }; }; then
30927   ac_header_compiler=yes
30928 else
30929   echo "$as_me: failed program was:" >&5
30930 sed 's/^/| /' conftest.$ac_ext >&5
30931
30932         ac_header_compiler=no
30933 fi
30934
30935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30937 echo "${ECHO_T}$ac_header_compiler" >&6; }
30938
30939 # Is the header present?
30940 { echo "$as_me:$LINENO: checking mspack.h presence" >&5
30941 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6; }
30942 cat >conftest.$ac_ext <<_ACEOF
30943 /* confdefs.h.  */
30944 _ACEOF
30945 cat confdefs.h >>conftest.$ac_ext
30946 cat >>conftest.$ac_ext <<_ACEOF
30947 /* end confdefs.h.  */
30948 #include <mspack.h>
30949 _ACEOF
30950 if { (ac_try="$ac_cpp conftest.$ac_ext"
30951 case "(($ac_try" in
30952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953   *) ac_try_echo=$ac_try;;
30954 esac
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30957   ac_status=$?
30958   grep -v '^ *+' conftest.er1 >conftest.err
30959   rm -f conftest.er1
30960   cat conftest.err >&5
30961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962   (exit $ac_status); } >/dev/null; then
30963   if test -s conftest.err; then
30964     ac_cpp_err=$ac_c_preproc_warn_flag
30965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30966   else
30967     ac_cpp_err=
30968   fi
30969 else
30970   ac_cpp_err=yes
30971 fi
30972 if test -z "$ac_cpp_err"; then
30973   ac_header_preproc=yes
30974 else
30975   echo "$as_me: failed program was:" >&5
30976 sed 's/^/| /' conftest.$ac_ext >&5
30977
30978   ac_header_preproc=no
30979 fi
30980
30981 rm -f conftest.err conftest.$ac_ext
30982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30983 echo "${ECHO_T}$ac_header_preproc" >&6; }
30984
30985 # So?  What about this header?
30986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30987   yes:no: )
30988     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
30989 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30990     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
30991 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
30992     ac_header_preproc=yes
30993     ;;
30994   no:yes:* )
30995     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
30996 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
30997     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
30998 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
30999     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
31000 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
31001     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
31002 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31003     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
31004 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
31005     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
31006 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
31007     ( cat <<\_ASBOX
31008 ## ----------------------------------------- ##
31009 ## Report this to wx-dev@lists.wxwidgets.org ##
31010 ## ----------------------------------------- ##
31011 _ASBOX
31012      ) | sed "s/^/$as_me: WARNING:     /" >&2
31013     ;;
31014 esac
31015 { echo "$as_me:$LINENO: checking for mspack.h" >&5
31016 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
31017 if test "${ac_cv_header_mspack_h+set}" = set; then
31018   echo $ECHO_N "(cached) $ECHO_C" >&6
31019 else
31020   ac_cv_header_mspack_h=$ac_header_preproc
31021 fi
31022 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
31023 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
31024
31025 fi
31026 if test $ac_cv_header_mspack_h = yes; then
31027   found_mspack_h=1
31028 fi
31029
31030
31031     if test "x$found_mspack_h" = "x1"; then
31032         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
31033 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
31034 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
31035   echo $ECHO_N "(cached) $ECHO_C" >&6
31036 else
31037   ac_check_lib_save_LIBS=$LIBS
31038 LIBS="-lmspack  $LIBS"
31039 cat >conftest.$ac_ext <<_ACEOF
31040 /* confdefs.h.  */
31041 _ACEOF
31042 cat confdefs.h >>conftest.$ac_ext
31043 cat >>conftest.$ac_ext <<_ACEOF
31044 /* end confdefs.h.  */
31045
31046 /* Override any GCC internal prototype to avoid an error.
31047    Use char because int might match the return type of a GCC
31048    builtin and then its argument prototype would still apply.  */
31049 #ifdef __cplusplus
31050 extern "C"
31051 #endif
31052 char mspack_create_chm_decompressor ();
31053 int
31054 main ()
31055 {
31056 return mspack_create_chm_decompressor ();
31057   ;
31058   return 0;
31059 }
31060 _ACEOF
31061 rm -f conftest.$ac_objext conftest$ac_exeext
31062 if { (ac_try="$ac_link"
31063 case "(($ac_try" in
31064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31065   *) ac_try_echo=$ac_try;;
31066 esac
31067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31068   (eval "$ac_link") 2>conftest.er1
31069   ac_status=$?
31070   grep -v '^ *+' conftest.er1 >conftest.err
31071   rm -f conftest.er1
31072   cat conftest.err >&5
31073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074   (exit $ac_status); } &&
31075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31076   { (case "(($ac_try" in
31077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31078   *) ac_try_echo=$ac_try;;
31079 esac
31080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31081   (eval "$ac_try") 2>&5
31082   ac_status=$?
31083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084   (exit $ac_status); }; } &&
31085          { ac_try='test -s conftest$ac_exeext'
31086   { (case "(($ac_try" in
31087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31088   *) ac_try_echo=$ac_try;;
31089 esac
31090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31091   (eval "$ac_try") 2>&5
31092   ac_status=$?
31093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094   (exit $ac_status); }; }; then
31095   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
31096 else
31097   echo "$as_me: failed program was:" >&5
31098 sed 's/^/| /' conftest.$ac_ext >&5
31099
31100         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
31101 fi
31102
31103 rm -f core conftest.err conftest.$ac_objext \
31104       conftest$ac_exeext conftest.$ac_ext
31105 LIBS=$ac_check_lib_save_LIBS
31106 fi
31107 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
31108 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
31109 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
31110   MSPACK_LINK=" -lmspack"
31111 fi
31112
31113     fi
31114     if test "x$MSPACK_LINK" = "x" ; then
31115         wxUSE_LIBMSPACK=no
31116     fi
31117 fi
31118
31119 if test "$wxUSE_LIBMSPACK" != "no"; then
31120     cat >>confdefs.h <<\_ACEOF
31121 #define wxUSE_LIBMSPACK 1
31122 _ACEOF
31123
31124 fi
31125
31126
31127
31128 AFMINSTALL=
31129 WIN32INSTALL=
31130
31131 TOOLKIT=
31132 TOOLKIT_INCLUDE=
31133 WIDGET_SET=
31134
31135 if test "$USE_WIN32" = 1 ; then
31136
31137 for ac_header in w32api.h
31138 do
31139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31141   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31144   echo $ECHO_N "(cached) $ECHO_C" >&6
31145 fi
31146 ac_res=`eval echo '${'$as_ac_Header'}'`
31147                { echo "$as_me:$LINENO: result: $ac_res" >&5
31148 echo "${ECHO_T}$ac_res" >&6; }
31149 else
31150   # Is the header compilable?
31151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31153 cat >conftest.$ac_ext <<_ACEOF
31154 /* confdefs.h.  */
31155 _ACEOF
31156 cat confdefs.h >>conftest.$ac_ext
31157 cat >>conftest.$ac_ext <<_ACEOF
31158 /* end confdefs.h.  */
31159 $ac_includes_default
31160 #include <$ac_header>
31161 _ACEOF
31162 rm -f conftest.$ac_objext
31163 if { (ac_try="$ac_compile"
31164 case "(($ac_try" in
31165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166   *) ac_try_echo=$ac_try;;
31167 esac
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169   (eval "$ac_compile") 2>conftest.er1
31170   ac_status=$?
31171   grep -v '^ *+' conftest.er1 >conftest.err
31172   rm -f conftest.er1
31173   cat conftest.err >&5
31174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175   (exit $ac_status); } &&
31176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31177   { (case "(($ac_try" in
31178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179   *) ac_try_echo=$ac_try;;
31180 esac
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182   (eval "$ac_try") 2>&5
31183   ac_status=$?
31184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); }; } &&
31186          { ac_try='test -s conftest.$ac_objext'
31187   { (case "(($ac_try" in
31188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189   *) ac_try_echo=$ac_try;;
31190 esac
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192   (eval "$ac_try") 2>&5
31193   ac_status=$?
31194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195   (exit $ac_status); }; }; then
31196   ac_header_compiler=yes
31197 else
31198   echo "$as_me: failed program was:" >&5
31199 sed 's/^/| /' conftest.$ac_ext >&5
31200
31201         ac_header_compiler=no
31202 fi
31203
31204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31206 echo "${ECHO_T}$ac_header_compiler" >&6; }
31207
31208 # Is the header present?
31209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31211 cat >conftest.$ac_ext <<_ACEOF
31212 /* confdefs.h.  */
31213 _ACEOF
31214 cat confdefs.h >>conftest.$ac_ext
31215 cat >>conftest.$ac_ext <<_ACEOF
31216 /* end confdefs.h.  */
31217 #include <$ac_header>
31218 _ACEOF
31219 if { (ac_try="$ac_cpp conftest.$ac_ext"
31220 case "(($ac_try" in
31221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31222   *) ac_try_echo=$ac_try;;
31223 esac
31224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31226   ac_status=$?
31227   grep -v '^ *+' conftest.er1 >conftest.err
31228   rm -f conftest.er1
31229   cat conftest.err >&5
31230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231   (exit $ac_status); } >/dev/null; then
31232   if test -s conftest.err; then
31233     ac_cpp_err=$ac_c_preproc_warn_flag
31234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31235   else
31236     ac_cpp_err=
31237   fi
31238 else
31239   ac_cpp_err=yes
31240 fi
31241 if test -z "$ac_cpp_err"; then
31242   ac_header_preproc=yes
31243 else
31244   echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31246
31247   ac_header_preproc=no
31248 fi
31249
31250 rm -f conftest.err conftest.$ac_ext
31251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31252 echo "${ECHO_T}$ac_header_preproc" >&6; }
31253
31254 # So?  What about this header?
31255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31256   yes:no: )
31257     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31261     ac_header_preproc=yes
31262     ;;
31263   no:yes:* )
31264     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31266     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31267 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31268     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31270     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31271 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31274     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31276     ( cat <<\_ASBOX
31277 ## ----------------------------------------- ##
31278 ## Report this to wx-dev@lists.wxwidgets.org ##
31279 ## ----------------------------------------- ##
31280 _ASBOX
31281      ) | sed "s/^/$as_me: WARNING:     /" >&2
31282     ;;
31283 esac
31284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31287   echo $ECHO_N "(cached) $ECHO_C" >&6
31288 else
31289   eval "$as_ac_Header=\$ac_header_preproc"
31290 fi
31291 ac_res=`eval echo '${'$as_ac_Header'}'`
31292                { echo "$as_me:$LINENO: result: $ac_res" >&5
31293 echo "${ECHO_T}$ac_res" >&6; }
31294
31295 fi
31296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31297   cat >>confdefs.h <<_ACEOF
31298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31299 _ACEOF
31300
31301 fi
31302
31303 done
31304
31305     if test "${ac_cv_header_windows_h+set}" = set; then
31306   { echo "$as_me:$LINENO: checking for windows.h" >&5
31307 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
31308 if test "${ac_cv_header_windows_h+set}" = set; then
31309   echo $ECHO_N "(cached) $ECHO_C" >&6
31310 fi
31311 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
31312 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
31313 else
31314   # Is the header compilable?
31315 { echo "$as_me:$LINENO: checking windows.h usability" >&5
31316 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
31317 cat >conftest.$ac_ext <<_ACEOF
31318 /* confdefs.h.  */
31319 _ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h.  */
31323 $ac_includes_default
31324 #include <windows.h>
31325 _ACEOF
31326 rm -f conftest.$ac_objext
31327 if { (ac_try="$ac_compile"
31328 case "(($ac_try" in
31329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330   *) ac_try_echo=$ac_try;;
31331 esac
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333   (eval "$ac_compile") 2>conftest.er1
31334   ac_status=$?
31335   grep -v '^ *+' conftest.er1 >conftest.err
31336   rm -f conftest.er1
31337   cat conftest.err >&5
31338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339   (exit $ac_status); } &&
31340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31341   { (case "(($ac_try" in
31342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343   *) ac_try_echo=$ac_try;;
31344 esac
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346   (eval "$ac_try") 2>&5
31347   ac_status=$?
31348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349   (exit $ac_status); }; } &&
31350          { ac_try='test -s conftest.$ac_objext'
31351   { (case "(($ac_try" in
31352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353   *) ac_try_echo=$ac_try;;
31354 esac
31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356   (eval "$ac_try") 2>&5
31357   ac_status=$?
31358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359   (exit $ac_status); }; }; then
31360   ac_header_compiler=yes
31361 else
31362   echo "$as_me: failed program was:" >&5
31363 sed 's/^/| /' conftest.$ac_ext >&5
31364
31365         ac_header_compiler=no
31366 fi
31367
31368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31370 echo "${ECHO_T}$ac_header_compiler" >&6; }
31371
31372 # Is the header present?
31373 { echo "$as_me:$LINENO: checking windows.h presence" >&5
31374 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
31375 cat >conftest.$ac_ext <<_ACEOF
31376 /* confdefs.h.  */
31377 _ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h.  */
31381 #include <windows.h>
31382 _ACEOF
31383 if { (ac_try="$ac_cpp conftest.$ac_ext"
31384 case "(($ac_try" in
31385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31386   *) ac_try_echo=$ac_try;;
31387 esac
31388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31390   ac_status=$?
31391   grep -v '^ *+' conftest.er1 >conftest.err
31392   rm -f conftest.er1
31393   cat conftest.err >&5
31394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395   (exit $ac_status); } >/dev/null; then
31396   if test -s conftest.err; then
31397     ac_cpp_err=$ac_c_preproc_warn_flag
31398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31399   else
31400     ac_cpp_err=
31401   fi
31402 else
31403   ac_cpp_err=yes
31404 fi
31405 if test -z "$ac_cpp_err"; then
31406   ac_header_preproc=yes
31407 else
31408   echo "$as_me: failed program was:" >&5
31409 sed 's/^/| /' conftest.$ac_ext >&5
31410
31411   ac_header_preproc=no
31412 fi
31413
31414 rm -f conftest.err conftest.$ac_ext
31415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31416 echo "${ECHO_T}$ac_header_preproc" >&6; }
31417
31418 # So?  What about this header?
31419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31420   yes:no: )
31421     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
31422 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31423     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
31424 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
31425     ac_header_preproc=yes
31426     ;;
31427   no:yes:* )
31428     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
31429 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
31430     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
31431 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
31432     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
31433 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
31434     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
31435 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31436     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
31437 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
31438     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
31439 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
31440     ( cat <<\_ASBOX
31441 ## ----------------------------------------- ##
31442 ## Report this to wx-dev@lists.wxwidgets.org ##
31443 ## ----------------------------------------- ##
31444 _ASBOX
31445      ) | sed "s/^/$as_me: WARNING:     /" >&2
31446     ;;
31447 esac
31448 { echo "$as_me:$LINENO: checking for windows.h" >&5
31449 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
31450 if test "${ac_cv_header_windows_h+set}" = set; then
31451   echo $ECHO_N "(cached) $ECHO_C" >&6
31452 else
31453   ac_cv_header_windows_h=$ac_header_preproc
31454 fi
31455 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
31456 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
31457
31458 fi
31459 if test $ac_cv_header_windows_h = yes; then
31460   :
31461 else
31462
31463         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
31464 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
31465    { (exit 1); exit 1; }; }
31466
31467 fi
31468
31469
31470
31471             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
31472
31473     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
31474         LIBS="$LIBS -loleacc"
31475     fi
31476
31477     case "${host}" in
31478         *-*-cygwin* )
31479                         LIBS="$LIBS -lkernel32 -luser32"
31480     esac
31481
31482         if test "$wxUSE_ODBC" = "sys" ; then
31483         wxUSE_ODBC = "yes"
31484     fi
31485     if test "$wxUSE_ODBC" = "yes" ; then
31486         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
31487         cat >>confdefs.h <<\_ACEOF
31488 #define wxUSE_ODBC 1
31489 _ACEOF
31490
31491     fi
31492
31493         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
31494     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
31495
31496                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
31497
31498         WIN32INSTALL=win32install
31499
31500
31501 for ac_header in pbt.h
31502 do
31503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31505   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31508   echo $ECHO_N "(cached) $ECHO_C" >&6
31509 fi
31510 ac_res=`eval echo '${'$as_ac_Header'}'`
31511                { echo "$as_me:$LINENO: result: $ac_res" >&5
31512 echo "${ECHO_T}$ac_res" >&6; }
31513 else
31514   # Is the header compilable?
31515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31517 cat >conftest.$ac_ext <<_ACEOF
31518 /* confdefs.h.  */
31519 _ACEOF
31520 cat confdefs.h >>conftest.$ac_ext
31521 cat >>conftest.$ac_ext <<_ACEOF
31522 /* end confdefs.h.  */
31523 $ac_includes_default
31524 #include <$ac_header>
31525 _ACEOF
31526 rm -f conftest.$ac_objext
31527 if { (ac_try="$ac_compile"
31528 case "(($ac_try" in
31529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31530   *) ac_try_echo=$ac_try;;
31531 esac
31532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31533   (eval "$ac_compile") 2>conftest.er1
31534   ac_status=$?
31535   grep -v '^ *+' conftest.er1 >conftest.err
31536   rm -f conftest.er1
31537   cat conftest.err >&5
31538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539   (exit $ac_status); } &&
31540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31541   { (case "(($ac_try" in
31542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543   *) ac_try_echo=$ac_try;;
31544 esac
31545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31546   (eval "$ac_try") 2>&5
31547   ac_status=$?
31548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); }; } &&
31550          { ac_try='test -s conftest.$ac_objext'
31551   { (case "(($ac_try" in
31552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553   *) ac_try_echo=$ac_try;;
31554 esac
31555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31556   (eval "$ac_try") 2>&5
31557   ac_status=$?
31558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559   (exit $ac_status); }; }; then
31560   ac_header_compiler=yes
31561 else
31562   echo "$as_me: failed program was:" >&5
31563 sed 's/^/| /' conftest.$ac_ext >&5
31564
31565         ac_header_compiler=no
31566 fi
31567
31568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31570 echo "${ECHO_T}$ac_header_compiler" >&6; }
31571
31572 # Is the header present?
31573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31575 cat >conftest.$ac_ext <<_ACEOF
31576 /* confdefs.h.  */
31577 _ACEOF
31578 cat confdefs.h >>conftest.$ac_ext
31579 cat >>conftest.$ac_ext <<_ACEOF
31580 /* end confdefs.h.  */
31581 #include <$ac_header>
31582 _ACEOF
31583 if { (ac_try="$ac_cpp conftest.$ac_ext"
31584 case "(($ac_try" in
31585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586   *) ac_try_echo=$ac_try;;
31587 esac
31588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31590   ac_status=$?
31591   grep -v '^ *+' conftest.er1 >conftest.err
31592   rm -f conftest.er1
31593   cat conftest.err >&5
31594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595   (exit $ac_status); } >/dev/null; then
31596   if test -s conftest.err; then
31597     ac_cpp_err=$ac_c_preproc_warn_flag
31598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31599   else
31600     ac_cpp_err=
31601   fi
31602 else
31603   ac_cpp_err=yes
31604 fi
31605 if test -z "$ac_cpp_err"; then
31606   ac_header_preproc=yes
31607 else
31608   echo "$as_me: failed program was:" >&5
31609 sed 's/^/| /' conftest.$ac_ext >&5
31610
31611   ac_header_preproc=no
31612 fi
31613
31614 rm -f conftest.err conftest.$ac_ext
31615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31616 echo "${ECHO_T}$ac_header_preproc" >&6; }
31617
31618 # So?  What about this header?
31619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31620   yes:no: )
31621     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31625     ac_header_preproc=yes
31626     ;;
31627   no:yes:* )
31628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31630     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31631 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31632     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31634     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31635 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31638     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31640     ( cat <<\_ASBOX
31641 ## ----------------------------------------- ##
31642 ## Report this to wx-dev@lists.wxwidgets.org ##
31643 ## ----------------------------------------- ##
31644 _ASBOX
31645      ) | sed "s/^/$as_me: WARNING:     /" >&2
31646     ;;
31647 esac
31648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31651   echo $ECHO_N "(cached) $ECHO_C" >&6
31652 else
31653   eval "$as_ac_Header=\$ac_header_preproc"
31654 fi
31655 ac_res=`eval echo '${'$as_ac_Header'}'`
31656                { echo "$as_me:$LINENO: result: $ac_res" >&5
31657 echo "${ECHO_T}$ac_res" >&6; }
31658
31659 fi
31660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31661   cat >>confdefs.h <<_ACEOF
31662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31663 _ACEOF
31664
31665 else
31666   cat >>confdefs.h <<\_ACEOF
31667 #define NEED_PBT_H 1
31668 _ACEOF
31669
31670 fi
31671
31672 done
31673
31674 fi
31675
31676 if test "$wxUSE_GUI" = "yes"; then
31677     USE_GUI=1
31678
31679     GUI_TK_LIBRARY=
31680
31681     WXGTK12=
31682     WXGTK127=
31683     WXGTK20=
31684     WXGPE=
31685
31686     if test "$wxUSE_COCOA" = 1 ; then
31687         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
31688             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
31689 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
31690             wxUSE_PRINTING_ARCHITECTURE=no
31691         fi
31692         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
31693             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
31694 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
31695             wxUSE_DRAG_AND_DROP=no
31696         fi
31697         if test "$wxUSE_DRAGIMAGE" = "yes"; then
31698             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
31699 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
31700             wxUSE_DRAGIMAGE=no
31701         fi
31702     fi
31703
31704     if test "$wxUSE_MSW" = 1 ; then
31705         TOOLKIT=MSW
31706         GUIDIST=MSW_DIST
31707
31708                 case "${host}" in
31709             *-*-mingw32* )
31710                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
31711         esac
31712     fi
31713
31714     if test "$wxUSE_GTK" = 1; then
31715                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
31716 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
31717
31718         gtk_version_cached=1
31719         if test "${wx_cv_lib_gtk+set}" = set; then
31720   echo $ECHO_N "(cached) $ECHO_C" >&6
31721 else
31722
31723                                                 gtk_version_cached=0
31724                 { echo "$as_me:$LINENO: result: " >&5
31725 echo "${ECHO_T}" >&6; }
31726
31727                                                 GTK_MODULES=
31728                 if test "$wxUSE_THREADS" = "yes"; then
31729                     GTK_MODULES=gthread
31730                 fi
31731
31732                                 wx_cv_lib_gtk=
31733                 if test "x$wxGTK_VERSION" != "x1"
31734                 then
31735                                                                                 case "${host}" in
31736                         *-*-solaris2* )
31737                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
31738                             enable_gtktest=no
31739                             fi
31740                     esac
31741
31742                     # Check whether --enable-gtktest was given.
31743 if test "${enable_gtktest+set}" = set; then
31744   enableval=$enable_gtktest;
31745 else
31746   enable_gtktest=yes
31747 fi
31748
31749
31750   pkg_config_args=gtk+-2.0
31751   for module in . $GTK_MODULES
31752   do
31753       case "$module" in
31754          gthread)
31755              pkg_config_args="$pkg_config_args gthread-2.0"
31756          ;;
31757       esac
31758   done
31759
31760   no_gtk=""
31761
31762   # Extract the first word of "pkg-config", so it can be a program name with args.
31763 set dummy pkg-config; ac_word=$2
31764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31766 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31767   echo $ECHO_N "(cached) $ECHO_C" >&6
31768 else
31769   case $PKG_CONFIG in
31770   [\\/]* | ?:[\\/]*)
31771   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31772   ;;
31773   *)
31774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31775 for as_dir in $PATH
31776 do
31777   IFS=$as_save_IFS
31778   test -z "$as_dir" && as_dir=.
31779   for ac_exec_ext in '' $ac_executable_extensions; do
31780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31781     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31783     break 2
31784   fi
31785 done
31786 done
31787 IFS=$as_save_IFS
31788
31789   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
31790   ;;
31791 esac
31792 fi
31793 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31794 if test -n "$PKG_CONFIG"; then
31795   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31796 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31797 else
31798   { echo "$as_me:$LINENO: result: no" >&5
31799 echo "${ECHO_T}no" >&6; }
31800 fi
31801
31802
31803
31804   if test x$PKG_CONFIG != xno ; then
31805     if pkg-config --atleast-pkgconfig-version 0.7 ; then
31806       :
31807     else
31808       echo "*** pkg-config too old; version 0.7 or better required."
31809       no_gtk=yes
31810       PKG_CONFIG=no
31811     fi
31812   else
31813     no_gtk=yes
31814   fi
31815
31816   min_gtk_version=2.0.0
31817   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
31818 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
31819
31820   if test x$PKG_CONFIG != xno ; then
31821     ## don't try to run the test against uninstalled libtool libs
31822     if $PKG_CONFIG --uninstalled $pkg_config_args; then
31823           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
31824           enable_gtktest=no
31825     fi
31826
31827     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
31828           :
31829     else
31830           no_gtk=yes
31831     fi
31832   fi
31833
31834   if test x"$no_gtk" = x ; then
31835     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
31836     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
31837     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31838            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31839     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31840            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31841     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31842            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31843     if test "x$enable_gtktest" = "xyes" ; then
31844       ac_save_CFLAGS="$CFLAGS"
31845       ac_save_LIBS="$LIBS"
31846       CFLAGS="$CFLAGS $GTK_CFLAGS"
31847       LIBS="$GTK_LIBS $LIBS"
31848       rm -f conf.gtktest
31849       if test "$cross_compiling" = yes; then
31850   echo $ac_n "cross compiling; assumed OK... $ac_c"
31851 else
31852   cat >conftest.$ac_ext <<_ACEOF
31853 /* confdefs.h.  */
31854 _ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h.  */
31858
31859 #include <gtk/gtk.h>
31860 #include <stdio.h>
31861 #include <stdlib.h>
31862
31863 int
31864 main ()
31865 {
31866   int major, minor, micro;
31867   char *tmp_version;
31868
31869   system ("touch conf.gtktest");
31870
31871   /* HP/UX 9 (%@#!) writes to sscanf strings */
31872   tmp_version = g_strdup("$min_gtk_version");
31873   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31874      printf("%s, bad version string\n", "$min_gtk_version");
31875      exit(1);
31876    }
31877
31878   if ((gtk_major_version != $gtk_config_major_version) ||
31879       (gtk_minor_version != $gtk_config_minor_version) ||
31880       (gtk_micro_version != $gtk_config_micro_version))
31881     {
31882       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31883              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31884              gtk_major_version, gtk_minor_version, gtk_micro_version);
31885       printf ("*** was found! If pkg-config was correct, then it is best\n");
31886       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31887       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31888       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31889       printf("*** required on your system.\n");
31890       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
31891       printf("*** to point to the correct configuration files\n");
31892     }
31893   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31894            (gtk_minor_version != GTK_MINOR_VERSION) ||
31895            (gtk_micro_version != GTK_MICRO_VERSION))
31896     {
31897       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31898              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31899       printf("*** library (version %d.%d.%d)\n",
31900              gtk_major_version, gtk_minor_version, gtk_micro_version);
31901     }
31902   else
31903     {
31904       if ((gtk_major_version > major) ||
31905         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31906         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31907       {
31908         return 0;
31909        }
31910      else
31911       {
31912         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31913                gtk_major_version, gtk_minor_version, gtk_micro_version);
31914         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31915                major, minor, micro);
31916         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31917         printf("***\n");
31918         printf("*** If you have already installed a sufficiently new version, this error\n");
31919         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
31920         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31921         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
31922         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
31923         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31924         printf("*** so that the correct libraries are found at run-time))\n");
31925       }
31926     }
31927   return 1;
31928 }
31929
31930 _ACEOF
31931 rm -f conftest$ac_exeext
31932 if { (ac_try="$ac_link"
31933 case "(($ac_try" in
31934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31935   *) ac_try_echo=$ac_try;;
31936 esac
31937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31938   (eval "$ac_link") 2>&5
31939   ac_status=$?
31940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31942   { (case "(($ac_try" in
31943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944   *) ac_try_echo=$ac_try;;
31945 esac
31946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31947   (eval "$ac_try") 2>&5
31948   ac_status=$?
31949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950   (exit $ac_status); }; }; then
31951   :
31952 else
31953   echo "$as_me: program exited with status $ac_status" >&5
31954 echo "$as_me: failed program was:" >&5
31955 sed 's/^/| /' conftest.$ac_ext >&5
31956
31957 ( exit $ac_status )
31958 no_gtk=yes
31959 fi
31960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31961 fi
31962
31963
31964        CFLAGS="$ac_save_CFLAGS"
31965        LIBS="$ac_save_LIBS"
31966      fi
31967   fi
31968   if test "x$no_gtk" = x ; then
31969      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
31970 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
31971      wx_cv_lib_gtk=2.0
31972   else
31973      { echo "$as_me:$LINENO: result: no" >&5
31974 echo "${ECHO_T}no" >&6; }
31975      if test "$PKG_CONFIG" = "no" ; then
31976        echo "*** A new enough version of pkg-config was not found."
31977        echo "*** See http://pkgconfig.sourceforge.net"
31978      else
31979        if test -f conf.gtktest ; then
31980         :
31981        else
31982           echo "*** Could not run GTK+ test program, checking why..."
31983           ac_save_CFLAGS="$CFLAGS"
31984           ac_save_LIBS="$LIBS"
31985           CFLAGS="$CFLAGS $GTK_CFLAGS"
31986           LIBS="$LIBS $GTK_LIBS"
31987           cat >conftest.$ac_ext <<_ACEOF
31988 /* confdefs.h.  */
31989 _ACEOF
31990 cat confdefs.h >>conftest.$ac_ext
31991 cat >>conftest.$ac_ext <<_ACEOF
31992 /* end confdefs.h.  */
31993
31994 #include <gtk/gtk.h>
31995 #include <stdio.h>
31996
31997 int
31998 main ()
31999 {
32000  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
32001   ;
32002   return 0;
32003 }
32004 _ACEOF
32005 rm -f conftest.$ac_objext conftest$ac_exeext
32006 if { (ac_try="$ac_link"
32007 case "(($ac_try" in
32008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009   *) ac_try_echo=$ac_try;;
32010 esac
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012   (eval "$ac_link") 2>conftest.er1
32013   ac_status=$?
32014   grep -v '^ *+' conftest.er1 >conftest.err
32015   rm -f conftest.er1
32016   cat conftest.err >&5
32017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018   (exit $ac_status); } &&
32019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32020   { (case "(($ac_try" in
32021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022   *) ac_try_echo=$ac_try;;
32023 esac
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025   (eval "$ac_try") 2>&5
32026   ac_status=$?
32027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028   (exit $ac_status); }; } &&
32029          { ac_try='test -s conftest$ac_exeext'
32030   { (case "(($ac_try" in
32031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032   *) ac_try_echo=$ac_try;;
32033 esac
32034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035   (eval "$ac_try") 2>&5
32036   ac_status=$?
32037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038   (exit $ac_status); }; }; then
32039    echo "*** The test program compiled, but did not run. This usually means"
32040           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
32041           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
32042           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32043           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
32044           echo "*** is required on your system"
32045           echo "***"
32046           echo "*** If you have an old version installed, it is best to remove it, although"
32047           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
32048 else
32049   echo "$as_me: failed program was:" >&5
32050 sed 's/^/| /' conftest.$ac_ext >&5
32051
32052          echo "*** The test program failed to compile or link. See the file config.log for the"
32053           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
32054 fi
32055
32056 rm -f core conftest.err conftest.$ac_objext \
32057       conftest$ac_exeext conftest.$ac_ext
32058           CFLAGS="$ac_save_CFLAGS"
32059           LIBS="$ac_save_LIBS"
32060        fi
32061      fi
32062      GTK_CFLAGS=""
32063      GTK_LIBS=""
32064      :
32065   fi
32066
32067
32068   rm -f conf.gtktest
32069
32070
32071                                         case "${host}" in
32072                         *-*-solaris2* )
32073                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
32074                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
32075                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
32076                             fi
32077                                                         if test "$wxUSE_SHARED" != "yes"; then
32078                                 GTK_LIBS="$GTK_LIBS -lX11"
32079                             fi
32080                     esac
32081                 fi
32082
32083                                 if test -z "$wx_cv_lib_gtk"; then
32084                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
32085
32086 # Check whether --with-gtk-prefix was given.
32087 if test "${with_gtk_prefix+set}" = set; then
32088   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
32089 else
32090   gtk_config_prefix=""
32091 fi
32092
32093
32094 # Check whether --with-gtk-exec-prefix was given.
32095 if test "${with_gtk_exec_prefix+set}" = set; then
32096   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
32097 else
32098   gtk_config_exec_prefix=""
32099 fi
32100
32101 # Check whether --enable-gtktest was given.
32102 if test "${enable_gtktest+set}" = set; then
32103   enableval=$enable_gtktest;
32104 else
32105   enable_gtktest=yes
32106 fi
32107
32108
32109   for module in . $GTK_MODULES
32110   do
32111       case "$module" in
32112          gthread)
32113              gtk_config_args="$gtk_config_args gthread"
32114          ;;
32115       esac
32116   done
32117
32118   if test x$gtk_config_exec_prefix != x ; then
32119      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
32120      if test x${GTK_CONFIG+set} != xset ; then
32121         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
32122      fi
32123   fi
32124   if test x$gtk_config_prefix != x ; then
32125      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
32126      if test x${GTK_CONFIG+set} != xset ; then
32127         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
32128      fi
32129   fi
32130
32131   # Extract the first word of "gtk-config", so it can be a program name with args.
32132 set dummy gtk-config; ac_word=$2
32133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32135 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
32136   echo $ECHO_N "(cached) $ECHO_C" >&6
32137 else
32138   case $GTK_CONFIG in
32139   [\\/]* | ?:[\\/]*)
32140   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
32141   ;;
32142   *)
32143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32144 for as_dir in $PATH
32145 do
32146   IFS=$as_save_IFS
32147   test -z "$as_dir" && as_dir=.
32148   for ac_exec_ext in '' $ac_executable_extensions; do
32149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32150     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32152     break 2
32153   fi
32154 done
32155 done
32156 IFS=$as_save_IFS
32157
32158   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
32159   ;;
32160 esac
32161 fi
32162 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
32163 if test -n "$GTK_CONFIG"; then
32164   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
32165 echo "${ECHO_T}$GTK_CONFIG" >&6; }
32166 else
32167   { echo "$as_me:$LINENO: result: no" >&5
32168 echo "${ECHO_T}no" >&6; }
32169 fi
32170
32171
32172   min_gtk_version=1.2.7
32173   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
32174 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
32175   no_gtk=""
32176   if test "$GTK_CONFIG" = "no" ; then
32177     no_gtk=yes
32178   else
32179     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
32180     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
32181     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
32182            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32183     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
32184            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32185     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
32186            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32187     if test "x$enable_gtktest" = "xyes" ; then
32188       ac_save_CFLAGS="$CFLAGS"
32189       ac_save_LIBS="$LIBS"
32190       CFLAGS="$CFLAGS $GTK_CFLAGS"
32191       LIBS="$GTK_LIBS $LIBS"
32192       rm -f conf.gtktest
32193       if test "$cross_compiling" = yes; then
32194   echo $ac_n "cross compiling; assumed OK... $ac_c"
32195 else
32196   cat >conftest.$ac_ext <<_ACEOF
32197 /* confdefs.h.  */
32198 _ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h.  */
32202
32203 #include <gtk/gtk.h>
32204 #include <stdio.h>
32205 #include <stdlib.h>
32206
32207 int
32208 main ()
32209 {
32210   int major, minor, micro;
32211   char *tmp_version;
32212
32213   system ("touch conf.gtktest");
32214
32215   /* HP/UX 9 (%@#!) writes to sscanf strings */
32216   tmp_version = g_strdup("$min_gtk_version");
32217   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
32218      printf("%s, bad version string\n", "$min_gtk_version");
32219      exit(1);
32220    }
32221
32222   if ((gtk_major_version != $gtk_config_major_version) ||
32223       (gtk_minor_version != $gtk_config_minor_version) ||
32224       (gtk_micro_version != $gtk_config_micro_version))
32225     {
32226       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
32227              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
32228              gtk_major_version, gtk_minor_version, gtk_micro_version);
32229       printf ("*** was found! If gtk-config was correct, then it is best\n");
32230       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
32231       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
32232       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
32233       printf("*** required on your system.\n");
32234       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
32235       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
32236       printf("*** before re-running configure\n");
32237     }
32238 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
32239   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
32240            (gtk_minor_version != GTK_MINOR_VERSION) ||
32241            (gtk_micro_version != GTK_MICRO_VERSION))
32242     {
32243       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
32244              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
32245       printf("*** library (version %d.%d.%d)\n",
32246              gtk_major_version, gtk_minor_version, gtk_micro_version);
32247     }
32248 #endif /* defined (GTK_MAJOR_VERSION) ... */
32249   else
32250     {
32251       if ((gtk_major_version > major) ||
32252         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
32253         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
32254       {
32255         return 0;
32256        }
32257      else
32258       {
32259         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
32260                gtk_major_version, gtk_minor_version, gtk_micro_version);
32261         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
32262                major, minor, micro);
32263         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
32264         printf("***\n");
32265         printf("*** If you have already installed a sufficiently new version, this error\n");
32266         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
32267         printf("*** being found. The easiest way to fix this is to remove the old version\n");
32268         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
32269         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
32270         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
32271         printf("*** so that the correct libraries are found at run-time))\n");
32272       }
32273     }
32274   return 1;
32275 }
32276
32277 _ACEOF
32278 rm -f conftest$ac_exeext
32279 if { (ac_try="$ac_link"
32280 case "(($ac_try" in
32281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282   *) ac_try_echo=$ac_try;;
32283 esac
32284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285   (eval "$ac_link") 2>&5
32286   ac_status=$?
32287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32289   { (case "(($ac_try" in
32290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32291   *) ac_try_echo=$ac_try;;
32292 esac
32293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32294   (eval "$ac_try") 2>&5
32295   ac_status=$?
32296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297   (exit $ac_status); }; }; then
32298   :
32299 else
32300   echo "$as_me: program exited with status $ac_status" >&5
32301 echo "$as_me: failed program was:" >&5
32302 sed 's/^/| /' conftest.$ac_ext >&5
32303
32304 ( exit $ac_status )
32305 no_gtk=yes
32306 fi
32307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32308 fi
32309
32310
32311        CFLAGS="$ac_save_CFLAGS"
32312        LIBS="$ac_save_LIBS"
32313      fi
32314   fi
32315   if test "x$no_gtk" = x ; then
32316      { echo "$as_me:$LINENO: result: yes" >&5
32317 echo "${ECHO_T}yes" >&6; }
32318      wx_cv_lib_gtk=1.2.7
32319   else
32320      { echo "$as_me:$LINENO: result: no" >&5
32321 echo "${ECHO_T}no" >&6; }
32322      if test "$GTK_CONFIG" = "no" ; then
32323        echo "*** The gtk-config script installed by GTK could not be found"
32324        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
32325        echo "*** your path, or set the GTK_CONFIG environment variable to the"
32326        echo "*** full path to gtk-config."
32327      else
32328        if test -f conf.gtktest ; then
32329         :
32330        else
32331           echo "*** Could not run GTK test program, checking why..."
32332           CFLAGS="$CFLAGS $GTK_CFLAGS"
32333           LIBS="$LIBS $GTK_LIBS"
32334           cat >conftest.$ac_ext <<_ACEOF
32335 /* confdefs.h.  */
32336 _ACEOF
32337 cat confdefs.h >>conftest.$ac_ext
32338 cat >>conftest.$ac_ext <<_ACEOF
32339 /* end confdefs.h.  */
32340
32341 #include <gtk/gtk.h>
32342 #include <stdio.h>
32343
32344 int
32345 main ()
32346 {
32347  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
32348   ;
32349   return 0;
32350 }
32351 _ACEOF
32352 rm -f conftest.$ac_objext conftest$ac_exeext
32353 if { (ac_try="$ac_link"
32354 case "(($ac_try" in
32355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32356   *) ac_try_echo=$ac_try;;
32357 esac
32358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32359   (eval "$ac_link") 2>conftest.er1
32360   ac_status=$?
32361   grep -v '^ *+' conftest.er1 >conftest.err
32362   rm -f conftest.er1
32363   cat conftest.err >&5
32364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365   (exit $ac_status); } &&
32366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32367   { (case "(($ac_try" in
32368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32369   *) ac_try_echo=$ac_try;;
32370 esac
32371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32372   (eval "$ac_try") 2>&5
32373   ac_status=$?
32374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375   (exit $ac_status); }; } &&
32376          { ac_try='test -s conftest$ac_exeext'
32377   { (case "(($ac_try" in
32378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32379   *) ac_try_echo=$ac_try;;
32380 esac
32381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32382   (eval "$ac_try") 2>&5
32383   ac_status=$?
32384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32385   (exit $ac_status); }; }; then
32386    echo "*** The test program compiled, but did not run. This usually means"
32387           echo "*** that the run-time linker is not finding GTK or finding the wrong"
32388           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
32389           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32390           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
32391           echo "*** is required on your system"
32392           echo "***"
32393           echo "*** If you have an old version installed, it is best to remove it, although"
32394           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
32395           echo "***"
32396           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
32397           echo "*** came with the system with the command"
32398           echo "***"
32399           echo "***    rpm --erase --nodeps gtk gtk-devel"
32400 else
32401   echo "$as_me: failed program was:" >&5
32402 sed 's/^/| /' conftest.$ac_ext >&5
32403
32404          echo "*** The test program failed to compile or link. See the file config.log for the"
32405           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
32406           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
32407           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
32408 fi
32409
32410 rm -f core conftest.err conftest.$ac_objext \
32411       conftest$ac_exeext conftest.$ac_ext
32412           CFLAGS="$ac_save_CFLAGS"
32413           LIBS="$ac_save_LIBS"
32414        fi
32415      fi
32416      GTK_CFLAGS=""
32417      GTK_LIBS=""
32418      :
32419   fi
32420
32421
32422   rm -f conf.gtktest
32423
32424
32425                         if test -z "$wx_cv_lib_gtk"; then
32426
32427 # Check whether --with-gtk-prefix was given.
32428 if test "${with_gtk_prefix+set}" = set; then
32429   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
32430 else
32431   gtk_config_prefix=""
32432 fi
32433
32434
32435 # Check whether --with-gtk-exec-prefix was given.
32436 if test "${with_gtk_exec_prefix+set}" = set; then
32437   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
32438 else
32439   gtk_config_exec_prefix=""
32440 fi
32441
32442 # Check whether --enable-gtktest was given.
32443 if test "${enable_gtktest+set}" = set; then
32444   enableval=$enable_gtktest;
32445 else
32446   enable_gtktest=yes
32447 fi
32448
32449
32450   for module in . $GTK_MODULES
32451   do
32452       case "$module" in
32453          gthread)
32454              gtk_config_args="$gtk_config_args gthread"
32455          ;;
32456       esac
32457   done
32458
32459   if test x$gtk_config_exec_prefix != x ; then
32460      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
32461      if test x${GTK_CONFIG+set} != xset ; then
32462         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
32463      fi
32464   fi
32465   if test x$gtk_config_prefix != x ; then
32466      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
32467      if test x${GTK_CONFIG+set} != xset ; then
32468         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
32469      fi
32470   fi
32471
32472   # Extract the first word of "gtk-config", so it can be a program name with args.
32473 set dummy gtk-config; ac_word=$2
32474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32476 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
32477   echo $ECHO_N "(cached) $ECHO_C" >&6
32478 else
32479   case $GTK_CONFIG in
32480   [\\/]* | ?:[\\/]*)
32481   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
32482   ;;
32483   *)
32484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32485 for as_dir in $PATH
32486 do
32487   IFS=$as_save_IFS
32488   test -z "$as_dir" && as_dir=.
32489   for ac_exec_ext in '' $ac_executable_extensions; do
32490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32491     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32493     break 2
32494   fi
32495 done
32496 done
32497 IFS=$as_save_IFS
32498
32499   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
32500   ;;
32501 esac
32502 fi
32503 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
32504 if test -n "$GTK_CONFIG"; then
32505   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
32506 echo "${ECHO_T}$GTK_CONFIG" >&6; }
32507 else
32508   { echo "$as_me:$LINENO: result: no" >&5
32509 echo "${ECHO_T}no" >&6; }
32510 fi
32511
32512
32513   min_gtk_version=1.2.3
32514   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
32515 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
32516   no_gtk=""
32517   if test "$GTK_CONFIG" = "no" ; then
32518     no_gtk=yes
32519   else
32520     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
32521     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
32522     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
32523            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32524     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
32525            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32526     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
32527            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32528     if test "x$enable_gtktest" = "xyes" ; then
32529       ac_save_CFLAGS="$CFLAGS"
32530       ac_save_LIBS="$LIBS"
32531       CFLAGS="$CFLAGS $GTK_CFLAGS"
32532       LIBS="$GTK_LIBS $LIBS"
32533       rm -f conf.gtktest
32534       if test "$cross_compiling" = yes; then
32535   echo $ac_n "cross compiling; assumed OK... $ac_c"
32536 else
32537   cat >conftest.$ac_ext <<_ACEOF
32538 /* confdefs.h.  */
32539 _ACEOF
32540 cat confdefs.h >>conftest.$ac_ext
32541 cat >>conftest.$ac_ext <<_ACEOF
32542 /* end confdefs.h.  */
32543
32544 #include <gtk/gtk.h>
32545 #include <stdio.h>
32546 #include <stdlib.h>
32547
32548 int
32549 main ()
32550 {
32551   int major, minor, micro;
32552   char *tmp_version;
32553
32554   system ("touch conf.gtktest");
32555
32556   /* HP/UX 9 (%@#!) writes to sscanf strings */
32557   tmp_version = g_strdup("$min_gtk_version");
32558   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
32559      printf("%s, bad version string\n", "$min_gtk_version");
32560      exit(1);
32561    }
32562
32563   if ((gtk_major_version != $gtk_config_major_version) ||
32564       (gtk_minor_version != $gtk_config_minor_version) ||
32565       (gtk_micro_version != $gtk_config_micro_version))
32566     {
32567       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
32568              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
32569              gtk_major_version, gtk_minor_version, gtk_micro_version);
32570       printf ("*** was found! If gtk-config was correct, then it is best\n");
32571       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
32572       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
32573       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
32574       printf("*** required on your system.\n");
32575       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
32576       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
32577       printf("*** before re-running configure\n");
32578     }
32579 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
32580   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
32581            (gtk_minor_version != GTK_MINOR_VERSION) ||
32582            (gtk_micro_version != GTK_MICRO_VERSION))
32583     {
32584       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
32585              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
32586       printf("*** library (version %d.%d.%d)\n",
32587              gtk_major_version, gtk_minor_version, gtk_micro_version);
32588     }
32589 #endif /* defined (GTK_MAJOR_VERSION) ... */
32590   else
32591     {
32592       if ((gtk_major_version > major) ||
32593         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
32594         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
32595       {
32596         return 0;
32597        }
32598      else
32599       {
32600         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
32601                gtk_major_version, gtk_minor_version, gtk_micro_version);
32602         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
32603                major, minor, micro);
32604         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
32605         printf("***\n");
32606         printf("*** If you have already installed a sufficiently new version, this error\n");
32607         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
32608         printf("*** being found. The easiest way to fix this is to remove the old version\n");
32609         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
32610         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
32611         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
32612         printf("*** so that the correct libraries are found at run-time))\n");
32613       }
32614     }
32615   return 1;
32616 }
32617
32618 _ACEOF
32619 rm -f conftest$ac_exeext
32620 if { (ac_try="$ac_link"
32621 case "(($ac_try" in
32622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32623   *) ac_try_echo=$ac_try;;
32624 esac
32625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32626   (eval "$ac_link") 2>&5
32627   ac_status=$?
32628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32630   { (case "(($ac_try" in
32631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32632   *) ac_try_echo=$ac_try;;
32633 esac
32634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635   (eval "$ac_try") 2>&5
32636   ac_status=$?
32637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638   (exit $ac_status); }; }; then
32639   :
32640 else
32641   echo "$as_me: program exited with status $ac_status" >&5
32642 echo "$as_me: failed program was:" >&5
32643 sed 's/^/| /' conftest.$ac_ext >&5
32644
32645 ( exit $ac_status )
32646 no_gtk=yes
32647 fi
32648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32649 fi
32650
32651
32652        CFLAGS="$ac_save_CFLAGS"
32653        LIBS="$ac_save_LIBS"
32654      fi
32655   fi
32656   if test "x$no_gtk" = x ; then
32657      { echo "$as_me:$LINENO: result: yes" >&5
32658 echo "${ECHO_T}yes" >&6; }
32659      wx_cv_lib_gtk=1.2.3
32660   else
32661      { echo "$as_me:$LINENO: result: no" >&5
32662 echo "${ECHO_T}no" >&6; }
32663      if test "$GTK_CONFIG" = "no" ; then
32664        echo "*** The gtk-config script installed by GTK could not be found"
32665        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
32666        echo "*** your path, or set the GTK_CONFIG environment variable to the"
32667        echo "*** full path to gtk-config."
32668      else
32669        if test -f conf.gtktest ; then
32670         :
32671        else
32672           echo "*** Could not run GTK test program, checking why..."
32673           CFLAGS="$CFLAGS $GTK_CFLAGS"
32674           LIBS="$LIBS $GTK_LIBS"
32675           cat >conftest.$ac_ext <<_ACEOF
32676 /* confdefs.h.  */
32677 _ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h.  */
32681
32682 #include <gtk/gtk.h>
32683 #include <stdio.h>
32684
32685 int
32686 main ()
32687 {
32688  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
32689   ;
32690   return 0;
32691 }
32692 _ACEOF
32693 rm -f conftest.$ac_objext conftest$ac_exeext
32694 if { (ac_try="$ac_link"
32695 case "(($ac_try" in
32696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32697   *) ac_try_echo=$ac_try;;
32698 esac
32699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32700   (eval "$ac_link") 2>conftest.er1
32701   ac_status=$?
32702   grep -v '^ *+' conftest.er1 >conftest.err
32703   rm -f conftest.er1
32704   cat conftest.err >&5
32705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706   (exit $ac_status); } &&
32707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32708   { (case "(($ac_try" in
32709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710   *) ac_try_echo=$ac_try;;
32711 esac
32712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32713   (eval "$ac_try") 2>&5
32714   ac_status=$?
32715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716   (exit $ac_status); }; } &&
32717          { ac_try='test -s conftest$ac_exeext'
32718   { (case "(($ac_try" in
32719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32720   *) ac_try_echo=$ac_try;;
32721 esac
32722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32723   (eval "$ac_try") 2>&5
32724   ac_status=$?
32725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726   (exit $ac_status); }; }; then
32727    echo "*** The test program compiled, but did not run. This usually means"
32728           echo "*** that the run-time linker is not finding GTK or finding the wrong"
32729           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
32730           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32731           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
32732           echo "*** is required on your system"
32733           echo "***"
32734           echo "*** If you have an old version installed, it is best to remove it, although"
32735           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
32736           echo "***"
32737           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
32738           echo "*** came with the system with the command"
32739           echo "***"
32740           echo "***    rpm --erase --nodeps gtk gtk-devel"
32741 else
32742   echo "$as_me: failed program was:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32744
32745          echo "*** The test program failed to compile or link. See the file config.log for the"
32746           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
32747           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
32748           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
32749 fi
32750
32751 rm -f core conftest.err conftest.$ac_objext \
32752       conftest$ac_exeext conftest.$ac_ext
32753           CFLAGS="$ac_save_CFLAGS"
32754           LIBS="$ac_save_LIBS"
32755        fi
32756      fi
32757      GTK_CFLAGS=""
32758      GTK_LIBS=""
32759      :
32760   fi
32761
32762
32763   rm -f conf.gtktest
32764
32765                         fi
32766                     fi
32767                 fi
32768
32769                 if test -z "$wx_cv_lib_gtk"; then
32770                                         wx_cv_lib_gtk=none
32771                 else
32772                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
32773                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
32774                 fi
32775
32776
32777 fi
32778
32779
32780                         if test "$gtk_version_cached" = 1; then
32781             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
32782 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
32783         fi
32784
32785         case "$wx_cv_lib_gtk" in
32786             2.0)    WXGTK20=1
32787                     TOOLKIT_VERSION=2
32788                     ;;
32789             1.2.7)  WXGTK127=1
32790                     WXGTK12=1
32791                     ;;
32792             1.2.3)  WXGTK12=1
32793                     ;;
32794             *)      { { echo "$as_me:$LINENO: error:
32795 The development files for GTK+ were not found. For GTK+ 2, please
32796 ensure that pkg-config is in the path and that gtk+-2.0.pc is
32797 installed. For GTK+ 1.2 please check that gtk-config is in the path,
32798 and that the version is 1.2.3 or above. Also check that the
32799 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
32800 --libs' are in the LD_LIBRARY_PATH or equivalent.
32801                             " >&5
32802 echo "$as_me: error:
32803 The development files for GTK+ were not found. For GTK+ 2, please
32804 ensure that pkg-config is in the path and that gtk+-2.0.pc is
32805 installed. For GTK+ 1.2 please check that gtk-config is in the path,
32806 and that the version is 1.2.3 or above. Also check that the
32807 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
32808 --libs' are in the LD_LIBRARY_PATH or equivalent.
32809                             " >&2;}
32810    { (exit 1); exit 1; }; }
32811                     ;;
32812         esac
32813
32814         if test "$WXGTK20" = 1; then
32815             save_CFLAGS="$CFLAGS"
32816             save_LIBS="$LIBS"
32817             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
32818             LIBS="$LIBS $wx_cv_libs_gtk"
32819
32820                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
32821 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
32822 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
32823   echo $ECHO_N "(cached) $ECHO_C" >&6
32824 else
32825   cat >conftest.$ac_ext <<_ACEOF
32826 /* confdefs.h.  */
32827 _ACEOF
32828 cat confdefs.h >>conftest.$ac_ext
32829 cat >>conftest.$ac_ext <<_ACEOF
32830 /* end confdefs.h.  */
32831 #include <gtk/gtk.h>
32832
32833 int
32834 main ()
32835 {
32836 #ifndef gtk_icon_size_lookup
32837   char *p = (char *) gtk_icon_size_lookup;
32838   return !p;
32839 #endif
32840
32841   ;
32842   return 0;
32843 }
32844 _ACEOF
32845 rm -f conftest.$ac_objext
32846 if { (ac_try="$ac_compile"
32847 case "(($ac_try" in
32848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32849   *) ac_try_echo=$ac_try;;
32850 esac
32851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32852   (eval "$ac_compile") 2>conftest.er1
32853   ac_status=$?
32854   grep -v '^ *+' conftest.er1 >conftest.err
32855   rm -f conftest.er1
32856   cat conftest.err >&5
32857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858   (exit $ac_status); } &&
32859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32860   { (case "(($ac_try" in
32861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32862   *) ac_try_echo=$ac_try;;
32863 esac
32864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32865   (eval "$ac_try") 2>&5
32866   ac_status=$?
32867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868   (exit $ac_status); }; } &&
32869          { ac_try='test -s conftest.$ac_objext'
32870   { (case "(($ac_try" in
32871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872   *) ac_try_echo=$ac_try;;
32873 esac
32874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875   (eval "$ac_try") 2>&5
32876   ac_status=$?
32877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878   (exit $ac_status); }; }; then
32879   ac_cv_have_decl_gtk_icon_size_lookup=yes
32880 else
32881   echo "$as_me: failed program was:" >&5
32882 sed 's/^/| /' conftest.$ac_ext >&5
32883
32884         ac_cv_have_decl_gtk_icon_size_lookup=no
32885 fi
32886
32887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32888 fi
32889 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
32890 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
32891 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
32892
32893 cat >>confdefs.h <<_ACEOF
32894 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
32895 _ACEOF
32896
32897
32898 else
32899   cat >>confdefs.h <<_ACEOF
32900 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
32901 _ACEOF
32902
32903 cat >>confdefs.h <<\_ACEOF
32904 #define NEED_GTK_ICON_SIZE_LOOKUP 1
32905 _ACEOF
32906
32907 fi
32908
32909
32910
32911                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
32912 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
32913             cat >conftest.$ac_ext <<_ACEOF
32914 /* confdefs.h.  */
32915 _ACEOF
32916 cat confdefs.h >>conftest.$ac_ext
32917 cat >>conftest.$ac_ext <<_ACEOF
32918 /* end confdefs.h.  */
32919
32920                             #include <gtk/gtk.h>
32921
32922 int
32923 main ()
32924 {
32925
32926                             #if !GTK_CHECK_VERSION(2,6,0)
32927                             Not GTK+ 2.6
32928                             #endif
32929
32930   ;
32931   return 0;
32932 }
32933 _ACEOF
32934 rm -f conftest.$ac_objext
32935 if { (ac_try="$ac_compile"
32936 case "(($ac_try" in
32937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938   *) ac_try_echo=$ac_try;;
32939 esac
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941   (eval "$ac_compile") 2>conftest.er1
32942   ac_status=$?
32943   grep -v '^ *+' conftest.er1 >conftest.err
32944   rm -f conftest.er1
32945   cat conftest.err >&5
32946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947   (exit $ac_status); } &&
32948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32949   { (case "(($ac_try" in
32950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951   *) ac_try_echo=$ac_try;;
32952 esac
32953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32954   (eval "$ac_try") 2>&5
32955   ac_status=$?
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); }; } &&
32958          { ac_try='test -s conftest.$ac_objext'
32959   { (case "(($ac_try" in
32960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961   *) ac_try_echo=$ac_try;;
32962 esac
32963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964   (eval "$ac_try") 2>&5
32965   ac_status=$?
32966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967   (exit $ac_status); }; }; then
32968
32969                             cat >>confdefs.h <<\_ACEOF
32970 #define __WXGTK26__ 1
32971 _ACEOF
32972
32973                             cat >>confdefs.h <<\_ACEOF
32974 #define __WXGTK24__ 1
32975 _ACEOF
32976
32977                             { echo "$as_me:$LINENO: result: yes" >&5
32978 echo "${ECHO_T}yes" >&6; }
32979                             ac_wxgtk26=1
32980
32981 else
32982   echo "$as_me: failed program was:" >&5
32983 sed 's/^/| /' conftest.$ac_ext >&5
32984
32985
32986                             { echo "$as_me:$LINENO: result: no" >&5
32987 echo "${ECHO_T}no" >&6; }
32988                             ac_wxgtk26=0
32989
32990 fi
32991
32992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32993
32994             if test "$ac_wxgtk26" = 0; then
32995                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
32996 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
32997             cat >conftest.$ac_ext <<_ACEOF
32998 /* confdefs.h.  */
32999 _ACEOF
33000 cat confdefs.h >>conftest.$ac_ext
33001 cat >>conftest.$ac_ext <<_ACEOF
33002 /* end confdefs.h.  */
33003
33004                             #include <gtk/gtk.h>
33005
33006 int
33007 main ()
33008 {
33009
33010                             #if !GTK_CHECK_VERSION(2,4,0)
33011                             Not GTK+ 2.4
33012                             #endif
33013
33014   ;
33015   return 0;
33016 }
33017 _ACEOF
33018 rm -f conftest.$ac_objext
33019 if { (ac_try="$ac_compile"
33020 case "(($ac_try" in
33021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33022   *) ac_try_echo=$ac_try;;
33023 esac
33024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33025   (eval "$ac_compile") 2>conftest.er1
33026   ac_status=$?
33027   grep -v '^ *+' conftest.er1 >conftest.err
33028   rm -f conftest.er1
33029   cat conftest.err >&5
33030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33031   (exit $ac_status); } &&
33032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33033   { (case "(($ac_try" in
33034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33035   *) ac_try_echo=$ac_try;;
33036 esac
33037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33038   (eval "$ac_try") 2>&5
33039   ac_status=$?
33040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041   (exit $ac_status); }; } &&
33042          { ac_try='test -s conftest.$ac_objext'
33043   { (case "(($ac_try" in
33044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33045   *) ac_try_echo=$ac_try;;
33046 esac
33047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33048   (eval "$ac_try") 2>&5
33049   ac_status=$?
33050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051   (exit $ac_status); }; }; then
33052
33053                             cat >>confdefs.h <<\_ACEOF
33054 #define __WXGTK24__ 1
33055 _ACEOF
33056
33057                             { echo "$as_me:$LINENO: result: yes" >&5
33058 echo "${ECHO_T}yes" >&6; }
33059
33060 else
33061   echo "$as_me: failed program was:" >&5
33062 sed 's/^/| /' conftest.$ac_ext >&5
33063
33064
33065                             { echo "$as_me:$LINENO: result: no" >&5
33066 echo "${ECHO_T}no" >&6; }
33067
33068 fi
33069
33070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33071             fi
33072
33073             CFLAGS="$save_CFLAGS"
33074             LIBS="$save_LIBS"
33075         else
33076             if test "$wxUSE_UNICODE" = "yes"; then
33077                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
33078 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
33079                 wxUSE_UNICODE=no
33080             fi
33081
33082                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
33083 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
33084 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
33085   echo $ECHO_N "(cached) $ECHO_C" >&6
33086 else
33087   ac_check_lib_save_LIBS=$LIBS
33088 LIBS="-lgdk  $LIBS"
33089 cat >conftest.$ac_ext <<_ACEOF
33090 /* confdefs.h.  */
33091 _ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h.  */
33095
33096 /* Override any GCC internal prototype to avoid an error.
33097    Use char because int might match the return type of a GCC
33098    builtin and then its argument prototype would still apply.  */
33099 #ifdef __cplusplus
33100 extern "C"
33101 #endif
33102 char gdk_im_open ();
33103 int
33104 main ()
33105 {
33106 return gdk_im_open ();
33107   ;
33108   return 0;
33109 }
33110 _ACEOF
33111 rm -f conftest.$ac_objext conftest$ac_exeext
33112 if { (ac_try="$ac_link"
33113 case "(($ac_try" in
33114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33115   *) ac_try_echo=$ac_try;;
33116 esac
33117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33118   (eval "$ac_link") 2>conftest.er1
33119   ac_status=$?
33120   grep -v '^ *+' conftest.er1 >conftest.err
33121   rm -f conftest.er1
33122   cat conftest.err >&5
33123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124   (exit $ac_status); } &&
33125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33126   { (case "(($ac_try" in
33127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33128   *) ac_try_echo=$ac_try;;
33129 esac
33130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33131   (eval "$ac_try") 2>&5
33132   ac_status=$?
33133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33134   (exit $ac_status); }; } &&
33135          { ac_try='test -s conftest$ac_exeext'
33136   { (case "(($ac_try" in
33137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33138   *) ac_try_echo=$ac_try;;
33139 esac
33140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33141   (eval "$ac_try") 2>&5
33142   ac_status=$?
33143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144   (exit $ac_status); }; }; then
33145   ac_cv_lib_gdk_gdk_im_open=yes
33146 else
33147   echo "$as_me: failed program was:" >&5
33148 sed 's/^/| /' conftest.$ac_ext >&5
33149
33150         ac_cv_lib_gdk_gdk_im_open=no
33151 fi
33152
33153 rm -f core conftest.err conftest.$ac_objext \
33154       conftest$ac_exeext conftest.$ac_ext
33155 LIBS=$ac_check_lib_save_LIBS
33156 fi
33157 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
33158 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
33159 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
33160   cat >>confdefs.h <<\_ACEOF
33161 #define HAVE_XIM 1
33162 _ACEOF
33163
33164 fi
33165
33166         fi
33167
33168                         if test "$USE_DARWIN" != 1; then
33169
33170 for ac_func in poll
33171 do
33172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33176   echo $ECHO_N "(cached) $ECHO_C" >&6
33177 else
33178   cat >conftest.$ac_ext <<_ACEOF
33179 /* confdefs.h.  */
33180 _ACEOF
33181 cat confdefs.h >>conftest.$ac_ext
33182 cat >>conftest.$ac_ext <<_ACEOF
33183 /* end confdefs.h.  */
33184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33186 #define $ac_func innocuous_$ac_func
33187
33188 /* System header to define __stub macros and hopefully few prototypes,
33189     which can conflict with char $ac_func (); below.
33190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33191     <limits.h> exists even on freestanding compilers.  */
33192
33193 #ifdef __STDC__
33194 # include <limits.h>
33195 #else
33196 # include <assert.h>
33197 #endif
33198
33199 #undef $ac_func
33200
33201 /* Override any GCC internal prototype to avoid an error.
33202    Use char because int might match the return type of a GCC
33203    builtin and then its argument prototype would still apply.  */
33204 #ifdef __cplusplus
33205 extern "C"
33206 #endif
33207 char $ac_func ();
33208 /* The GNU C library defines this for functions which it implements
33209     to always fail with ENOSYS.  Some functions are actually named
33210     something starting with __ and the normal name is an alias.  */
33211 #if defined __stub_$ac_func || defined __stub___$ac_func
33212 choke me
33213 #endif
33214
33215 int
33216 main ()
33217 {
33218 return $ac_func ();
33219   ;
33220   return 0;
33221 }
33222 _ACEOF
33223 rm -f conftest.$ac_objext conftest$ac_exeext
33224 if { (ac_try="$ac_link"
33225 case "(($ac_try" in
33226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33227   *) ac_try_echo=$ac_try;;
33228 esac
33229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33230   (eval "$ac_link") 2>conftest.er1
33231   ac_status=$?
33232   grep -v '^ *+' conftest.er1 >conftest.err
33233   rm -f conftest.er1
33234   cat conftest.err >&5
33235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236   (exit $ac_status); } &&
33237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33238   { (case "(($ac_try" in
33239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33240   *) ac_try_echo=$ac_try;;
33241 esac
33242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33243   (eval "$ac_try") 2>&5
33244   ac_status=$?
33245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246   (exit $ac_status); }; } &&
33247          { ac_try='test -s conftest$ac_exeext'
33248   { (case "(($ac_try" in
33249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33250   *) ac_try_echo=$ac_try;;
33251 esac
33252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33253   (eval "$ac_try") 2>&5
33254   ac_status=$?
33255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256   (exit $ac_status); }; }; then
33257   eval "$as_ac_var=yes"
33258 else
33259   echo "$as_me: failed program was:" >&5
33260 sed 's/^/| /' conftest.$ac_ext >&5
33261
33262         eval "$as_ac_var=no"
33263 fi
33264
33265 rm -f core conftest.err conftest.$ac_objext \
33266       conftest$ac_exeext conftest.$ac_ext
33267 fi
33268 ac_res=`eval echo '${'$as_ac_var'}'`
33269                { echo "$as_me:$LINENO: result: $ac_res" >&5
33270 echo "${ECHO_T}$ac_res" >&6; }
33271 if test `eval echo '${'$as_ac_var'}'` = yes; then
33272   cat >>confdefs.h <<_ACEOF
33273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33274 _ACEOF
33275
33276 fi
33277 done
33278
33279         fi
33280
33281         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
33282         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
33283
33284         AFMINSTALL=afminstall
33285         TOOLKIT=GTK
33286         GUIDIST=GTK_DIST
33287
33288                 if test "$wxUSE_GPE" = "yes"; then
33289             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
33290 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
33291
33292   ac_find_libraries=
33293   for ac_dir in $SEARCH_LIB;
33294   do
33295     for ac_extension in a so sl dylib dll.a; do
33296       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
33297         ac_find_libraries=$ac_dir
33298         break 2
33299       fi
33300     done
33301   done
33302
33303             if test "$ac_find_libraries" != "" ; then
33304
33305     if test "$ac_find_libraries" = "default location"; then
33306     ac_path_to_link=""
33307   else
33308     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33309     result=$?
33310     if test $result = 0; then
33311       ac_path_to_link=""
33312     else
33313       ac_path_to_link=" -L$ac_find_libraries"
33314     fi
33315   fi
33316
33317                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
33318                 WXGPE=1
33319                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33320 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33321             else
33322                 { echo "$as_me:$LINENO: result: not found" >&5
33323 echo "${ECHO_T}not found" >&6; }
33324             fi
33325
33326                                                                                                                     fi
33327     fi
33328
33329     if test "$wxUSE_MGL" = 1; then
33330        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
33331 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
33332         if test "x$MGL_ROOT" = x ; then
33333             { echo "$as_me:$LINENO: result: not found" >&5
33334 echo "${ECHO_T}not found" >&6; }
33335             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
33336 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
33337    { (exit 1); exit 1; }; }
33338         else
33339             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
33340 echo "${ECHO_T}$MGL_ROOT" >&6; }
33341         fi
33342
33343         { echo "$as_me:$LINENO: checking for libmgl location" >&5
33344 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
33345                                 case "${host}" in
33346             *-*-linux* )
33347                                           if test "x$wxUSE_SHARED" = xyes ; then
33348                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
33349               else
33350                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
33351               fi
33352               ;;
33353             *-pc-msdosdjgpp )
33354               mgl_os_candidates="dos32/dj2"
33355               ;;
33356             *)
33357               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
33358 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
33359    { (exit 1); exit 1; }; }
33360         esac
33361
33362         mgl_lib_type=""
33363         mgl_os=""
33364
33365         for mgl_os_i in $mgl_os_candidates ; do
33366             if test "x$mgl_os" = x ; then
33367                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
33368                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
33369                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
33370                         mgl_lib_type=debug
33371                         mgl_os=$mgl_os_i
33372                     fi
33373                 fi
33374                 if test "x$mgl_lib_type" = x ; then
33375                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
33376                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
33377                         mgl_lib_type=release
33378                         mgl_os=$mgl_os_i
33379                     fi
33380                 fi
33381             fi
33382         done
33383
33384         if test "x$mgl_os" = x ; then
33385             { echo "$as_me:$LINENO: result: not found" >&5
33386 echo "${ECHO_T}not found" >&6; }
33387             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
33388 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
33389    { (exit 1); exit 1; }; }
33390         fi
33391         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
33392 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
33393
33394         wxUSE_UNIVERSAL="yes"
33395
33396         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
33397         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
33398
33399         AFMINSTALL=afminstall
33400         TOOLKIT=MGL
33401         GUIDIST=MGL_DIST
33402     fi
33403
33404     if test "$wxUSE_DFB" = 1; then
33405
33406
33407 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33408         if test -n "$ac_tool_prefix"; then
33409   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33410 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33413 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33414   echo $ECHO_N "(cached) $ECHO_C" >&6
33415 else
33416   case $PKG_CONFIG in
33417   [\\/]* | ?:[\\/]*)
33418   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33419   ;;
33420   *)
33421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33422 for as_dir in $PATH
33423 do
33424   IFS=$as_save_IFS
33425   test -z "$as_dir" && as_dir=.
33426   for ac_exec_ext in '' $ac_executable_extensions; do
33427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33428     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33430     break 2
33431   fi
33432 done
33433 done
33434 IFS=$as_save_IFS
33435
33436   ;;
33437 esac
33438 fi
33439 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33440 if test -n "$PKG_CONFIG"; then
33441   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33442 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33443 else
33444   { echo "$as_me:$LINENO: result: no" >&5
33445 echo "${ECHO_T}no" >&6; }
33446 fi
33447
33448
33449 fi
33450 if test -z "$ac_cv_path_PKG_CONFIG"; then
33451   ac_pt_PKG_CONFIG=$PKG_CONFIG
33452   # Extract the first word of "pkg-config", so it can be a program name with args.
33453 set dummy pkg-config; ac_word=$2
33454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33456 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33457   echo $ECHO_N "(cached) $ECHO_C" >&6
33458 else
33459   case $ac_pt_PKG_CONFIG in
33460   [\\/]* | ?:[\\/]*)
33461   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33462   ;;
33463   *)
33464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33465 for as_dir in $PATH
33466 do
33467   IFS=$as_save_IFS
33468   test -z "$as_dir" && as_dir=.
33469   for ac_exec_ext in '' $ac_executable_extensions; do
33470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33471     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33473     break 2
33474   fi
33475 done
33476 done
33477 IFS=$as_save_IFS
33478
33479   ;;
33480 esac
33481 fi
33482 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33483 if test -n "$ac_pt_PKG_CONFIG"; then
33484   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33485 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33486 else
33487   { echo "$as_me:$LINENO: result: no" >&5
33488 echo "${ECHO_T}no" >&6; }
33489 fi
33490
33491   if test "x$ac_pt_PKG_CONFIG" = x; then
33492     PKG_CONFIG=""
33493   else
33494     case $cross_compiling:$ac_tool_warned in
33495 yes:)
33496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33497 whose name does not start with the host triplet.  If you think this
33498 configuration is useful to you, please write to autoconf@gnu.org." >&5
33499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33500 whose name does not start with the host triplet.  If you think this
33501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33502 ac_tool_warned=yes ;;
33503 esac
33504     PKG_CONFIG=$ac_pt_PKG_CONFIG
33505   fi
33506 else
33507   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33508 fi
33509
33510 fi
33511 if test -n "$PKG_CONFIG"; then
33512         _pkg_min_version=0.9.0
33513         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33514 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33515         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33516                 { echo "$as_me:$LINENO: result: yes" >&5
33517 echo "${ECHO_T}yes" >&6; }
33518         else
33519                 { echo "$as_me:$LINENO: result: no" >&5
33520 echo "${ECHO_T}no" >&6; }
33521                 PKG_CONFIG=""
33522         fi
33523
33524 fi
33525
33526
33527 pkg_failed=no
33528 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
33529 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
33530
33531 if test -n "$PKG_CONFIG"; then
33532     if test -n "$DIRECTFB_CFLAGS"; then
33533         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
33534     else
33535         if test -n "$PKG_CONFIG" && \
33536     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
33537   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
33538   ac_status=$?
33539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540   (exit $ac_status); }; then
33541   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
33542 else
33543   pkg_failed=yes
33544 fi
33545     fi
33546 else
33547         pkg_failed=untried
33548 fi
33549 if test -n "$PKG_CONFIG"; then
33550     if test -n "$DIRECTFB_LIBS"; then
33551         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
33552     else
33553         if test -n "$PKG_CONFIG" && \
33554     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
33555   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
33556   ac_status=$?
33557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558   (exit $ac_status); }; then
33559   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
33560 else
33561   pkg_failed=yes
33562 fi
33563     fi
33564 else
33565         pkg_failed=untried
33566 fi
33567
33568
33569
33570 if test $pkg_failed = yes; then
33571
33572 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33573         _pkg_short_errors_supported=yes
33574 else
33575         _pkg_short_errors_supported=no
33576 fi
33577         if test $_pkg_short_errors_supported = yes; then
33578                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
33579         else
33580                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
33581         fi
33582         # Put the nasty error message in config.log where it belongs
33583         echo "$DIRECTFB_PKG_ERRORS" >&5
33584
33585
33586                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
33587 echo "$as_me: error: DirectFB not found." >&2;}
33588    { (exit 1); exit 1; }; }
33589
33590
33591 elif test $pkg_failed = untried; then
33592
33593                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
33594 echo "$as_me: error: DirectFB not found." >&2;}
33595    { (exit 1); exit 1; }; }
33596
33597
33598 else
33599         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
33600         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
33601         { echo "$as_me:$LINENO: result: yes" >&5
33602 echo "${ECHO_T}yes" >&6; }
33603
33604                            wxUSE_UNIVERSAL="yes"
33605                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
33606                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
33607                            TOOLKIT=DFB
33608                            GUIDIST=DFB_DIST
33609
33610 fi
33611     fi
33612
33613     if test "$wxUSE_MICROWIN" = 1; then
33614         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
33615 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
33616         if test "x$MICROWINDOWS" = x ; then
33617             { echo "$as_me:$LINENO: result: not found" >&5
33618 echo "${ECHO_T}not found" >&6; }
33619             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
33620 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
33621    { (exit 1); exit 1; }; }
33622         else
33623             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
33624 echo "${ECHO_T}$MICROWINDOWS" >&6; }
33625         fi
33626
33627         if test -f $MICROWINDOWS/lib/libmwin.a; then
33628             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
33629 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
33630         else
33631             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
33632 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
33633    { (exit 1); exit 1; }; }
33634         fi
33635
33636         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
33637         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
33638
33639         wxUSE_UNIVERSAL="yes"
33640
33641         AFMINSTALL=afminstall
33642         TOOLKIT=MICROWIN
33643         GUIDIST=MICROWIN_DIST
33644
33645         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
33646     fi
33647
33648         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
33649                                 { echo "$as_me:$LINENO: checking for X" >&5
33650 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
33651
33652
33653 # Check whether --with-x was given.
33654 if test "${with_x+set}" = set; then
33655   withval=$with_x;
33656 fi
33657
33658 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
33659 if test "x$with_x" = xno; then
33660   # The user explicitly disabled X.
33661   have_x=disabled
33662 else
33663   case $x_includes,$x_libraries in #(
33664     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
33665 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
33666    { (exit 1); exit 1; }; };; #(
33667     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
33668   echo $ECHO_N "(cached) $ECHO_C" >&6
33669 else
33670   # One or both of the vars are not set, and there is no cached value.
33671 ac_x_includes=no ac_x_libraries=no
33672 rm -f -r conftest.dir
33673 if mkdir conftest.dir; then
33674   cd conftest.dir
33675   cat >Imakefile <<'_ACEOF'
33676 incroot:
33677         @echo incroot='${INCROOT}'
33678 usrlibdir:
33679         @echo usrlibdir='${USRLIBDIR}'
33680 libdir:
33681         @echo libdir='${LIBDIR}'
33682 _ACEOF
33683   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
33684     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
33685     for ac_var in incroot usrlibdir libdir; do
33686       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
33687     done
33688     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
33689     for ac_extension in a so sl; do
33690       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
33691          test -f "$ac_im_libdir/libX11.$ac_extension"; then
33692         ac_im_usrlibdir=$ac_im_libdir; break
33693       fi
33694     done
33695     # Screen out bogus values from the imake configuration.  They are
33696     # bogus both because they are the default anyway, and because
33697     # using them would break gcc on systems where it needs fixed includes.
33698     case $ac_im_incroot in
33699         /usr/include) ac_x_includes= ;;
33700         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
33701     esac
33702     case $ac_im_usrlibdir in
33703         /usr/lib | /lib) ;;
33704         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
33705     esac
33706   fi
33707   cd ..
33708   rm -f -r conftest.dir
33709 fi
33710
33711 # Standard set of common directories for X headers.
33712 # Check X11 before X11Rn because it is often a symlink to the current release.
33713 ac_x_header_dirs='
33714 /usr/X11/include
33715 /usr/X11R6/include
33716 /usr/X11R5/include
33717 /usr/X11R4/include
33718
33719 /usr/include/X11
33720 /usr/include/X11R6
33721 /usr/include/X11R5
33722 /usr/include/X11R4
33723
33724 /usr/local/X11/include
33725 /usr/local/X11R6/include
33726 /usr/local/X11R5/include
33727 /usr/local/X11R4/include
33728
33729 /usr/local/include/X11
33730 /usr/local/include/X11R6
33731 /usr/local/include/X11R5
33732 /usr/local/include/X11R4
33733
33734 /usr/X386/include
33735 /usr/x386/include
33736 /usr/XFree86/include/X11
33737
33738 /usr/include
33739 /usr/local/include
33740 /usr/unsupported/include
33741 /usr/athena/include
33742 /usr/local/x11r5/include
33743 /usr/lpp/Xamples/include
33744
33745 /usr/openwin/include
33746 /usr/openwin/share/include'
33747
33748 if test "$ac_x_includes" = no; then
33749   # Guess where to find include files, by looking for Xlib.h.
33750   # First, try using that file with no special directory specified.
33751   cat >conftest.$ac_ext <<_ACEOF
33752 /* confdefs.h.  */
33753 _ACEOF
33754 cat confdefs.h >>conftest.$ac_ext
33755 cat >>conftest.$ac_ext <<_ACEOF
33756 /* end confdefs.h.  */
33757 #include <X11/Xlib.h>
33758 _ACEOF
33759 if { (ac_try="$ac_cpp conftest.$ac_ext"
33760 case "(($ac_try" in
33761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762   *) ac_try_echo=$ac_try;;
33763 esac
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33766   ac_status=$?
33767   grep -v '^ *+' conftest.er1 >conftest.err
33768   rm -f conftest.er1
33769   cat conftest.err >&5
33770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771   (exit $ac_status); } >/dev/null; then
33772   if test -s conftest.err; then
33773     ac_cpp_err=$ac_c_preproc_warn_flag
33774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33775   else
33776     ac_cpp_err=
33777   fi
33778 else
33779   ac_cpp_err=yes
33780 fi
33781 if test -z "$ac_cpp_err"; then
33782   # We can compile using X headers with no special include directory.
33783 ac_x_includes=
33784 else
33785   echo "$as_me: failed program was:" >&5
33786 sed 's/^/| /' conftest.$ac_ext >&5
33787
33788   for ac_dir in $ac_x_header_dirs; do
33789   if test -r "$ac_dir/X11/Xlib.h"; then
33790     ac_x_includes=$ac_dir
33791     break
33792   fi
33793 done
33794 fi
33795
33796 rm -f conftest.err conftest.$ac_ext
33797 fi # $ac_x_includes = no
33798
33799 if test "$ac_x_libraries" = no; then
33800   # Check for the libraries.
33801   # See if we find them without any special options.
33802   # Don't add to $LIBS permanently.
33803   ac_save_LIBS=$LIBS
33804   LIBS="-lXt $LIBS"
33805   cat >conftest.$ac_ext <<_ACEOF
33806 /* confdefs.h.  */
33807 _ACEOF
33808 cat confdefs.h >>conftest.$ac_ext
33809 cat >>conftest.$ac_ext <<_ACEOF
33810 /* end confdefs.h.  */
33811 #include <X11/Xlib.h>
33812 int
33813 main ()
33814 {
33815 XrmInitialize ()
33816   ;
33817   return 0;
33818 }
33819 _ACEOF
33820 rm -f conftest.$ac_objext conftest$ac_exeext
33821 if { (ac_try="$ac_link"
33822 case "(($ac_try" in
33823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33824   *) ac_try_echo=$ac_try;;
33825 esac
33826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33827   (eval "$ac_link") 2>conftest.er1
33828   ac_status=$?
33829   grep -v '^ *+' conftest.er1 >conftest.err
33830   rm -f conftest.er1
33831   cat conftest.err >&5
33832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833   (exit $ac_status); } &&
33834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33835   { (case "(($ac_try" in
33836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33837   *) ac_try_echo=$ac_try;;
33838 esac
33839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33840   (eval "$ac_try") 2>&5
33841   ac_status=$?
33842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33843   (exit $ac_status); }; } &&
33844          { ac_try='test -s conftest$ac_exeext'
33845   { (case "(($ac_try" in
33846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847   *) ac_try_echo=$ac_try;;
33848 esac
33849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33850   (eval "$ac_try") 2>&5
33851   ac_status=$?
33852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853   (exit $ac_status); }; }; then
33854   LIBS=$ac_save_LIBS
33855 # We can link X programs with no special library path.
33856 ac_x_libraries=
33857 else
33858   echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.$ac_ext >&5
33860
33861         LIBS=$ac_save_LIBS
33862 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
33863 do
33864   # Don't even attempt the hair of trying to link an X program!
33865   for ac_extension in a so sl; do
33866     if test -r "$ac_dir/libXt.$ac_extension"; then
33867       ac_x_libraries=$ac_dir
33868       break 2
33869     fi
33870   done
33871 done
33872 fi
33873
33874 rm -f core conftest.err conftest.$ac_objext \
33875       conftest$ac_exeext conftest.$ac_ext
33876 fi # $ac_x_libraries = no
33877
33878 case $ac_x_includes,$ac_x_libraries in #(
33879   no,* | *,no | *\'*)
33880     # Didn't find X, or a directory has "'" in its name.
33881     ac_cv_have_x="have_x=no";; #(
33882   *)
33883     # Record where we found X for the cache.
33884     ac_cv_have_x="have_x=yes\
33885         ac_x_includes='$ac_x_includes'\
33886         ac_x_libraries='$ac_x_libraries'"
33887 esac
33888 fi
33889 ;; #(
33890     *) have_x=yes;;
33891   esac
33892   eval "$ac_cv_have_x"
33893 fi # $with_x != no
33894
33895 if test "$have_x" != yes; then
33896   { echo "$as_me:$LINENO: result: $have_x" >&5
33897 echo "${ECHO_T}$have_x" >&6; }
33898   no_x=yes
33899 else
33900   # If each of the values was on the command line, it overrides each guess.
33901   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
33902   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
33903   # Update the cache value to reflect the command line values.
33904   ac_cv_have_x="have_x=yes\
33905         ac_x_includes='$x_includes'\
33906         ac_x_libraries='$x_libraries'"
33907   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
33908 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
33909 fi
33910
33911 if test "$no_x" = yes; then
33912   # Not all programs may use this symbol, but it does not hurt to define it.
33913
33914 cat >>confdefs.h <<\_ACEOF
33915 #define X_DISPLAY_MISSING 1
33916 _ACEOF
33917
33918   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
33919 else
33920   if test -n "$x_includes"; then
33921     X_CFLAGS="$X_CFLAGS -I$x_includes"
33922   fi
33923
33924   # It would also be nice to do this for all -L options, not just this one.
33925   if test -n "$x_libraries"; then
33926     X_LIBS="$X_LIBS -L$x_libraries"
33927     # For Solaris; some versions of Sun CC require a space after -R and
33928     # others require no space.  Words are not sufficient . . . .
33929     case `(uname -sr) 2>/dev/null` in
33930     "SunOS 5"*)
33931       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
33932 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
33933       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
33934       cat >conftest.$ac_ext <<_ACEOF
33935 /* confdefs.h.  */
33936 _ACEOF
33937 cat confdefs.h >>conftest.$ac_ext
33938 cat >>conftest.$ac_ext <<_ACEOF
33939 /* end confdefs.h.  */
33940
33941 int
33942 main ()
33943 {
33944
33945   ;
33946   return 0;
33947 }
33948 _ACEOF
33949 rm -f conftest.$ac_objext conftest$ac_exeext
33950 if { (ac_try="$ac_link"
33951 case "(($ac_try" in
33952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33953   *) ac_try_echo=$ac_try;;
33954 esac
33955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33956   (eval "$ac_link") 2>conftest.er1
33957   ac_status=$?
33958   grep -v '^ *+' conftest.er1 >conftest.err
33959   rm -f conftest.er1
33960   cat conftest.err >&5
33961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33962   (exit $ac_status); } &&
33963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33964   { (case "(($ac_try" in
33965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33966   *) ac_try_echo=$ac_try;;
33967 esac
33968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33969   (eval "$ac_try") 2>&5
33970   ac_status=$?
33971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33972   (exit $ac_status); }; } &&
33973          { ac_try='test -s conftest$ac_exeext'
33974   { (case "(($ac_try" in
33975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33976   *) ac_try_echo=$ac_try;;
33977 esac
33978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33979   (eval "$ac_try") 2>&5
33980   ac_status=$?
33981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982   (exit $ac_status); }; }; then
33983   ac_R_nospace=yes
33984 else
33985   echo "$as_me: failed program was:" >&5
33986 sed 's/^/| /' conftest.$ac_ext >&5
33987
33988         ac_R_nospace=no
33989 fi
33990
33991 rm -f core conftest.err conftest.$ac_objext \
33992       conftest$ac_exeext conftest.$ac_ext
33993       if test $ac_R_nospace = yes; then
33994         { echo "$as_me:$LINENO: result: no" >&5
33995 echo "${ECHO_T}no" >&6; }
33996         X_LIBS="$X_LIBS -R$x_libraries"
33997       else
33998         LIBS="$ac_xsave_LIBS -R $x_libraries"
33999         cat >conftest.$ac_ext <<_ACEOF
34000 /* confdefs.h.  */
34001 _ACEOF
34002 cat confdefs.h >>conftest.$ac_ext
34003 cat >>conftest.$ac_ext <<_ACEOF
34004 /* end confdefs.h.  */
34005
34006 int
34007 main ()
34008 {
34009
34010   ;
34011   return 0;
34012 }
34013 _ACEOF
34014 rm -f conftest.$ac_objext conftest$ac_exeext
34015 if { (ac_try="$ac_link"
34016 case "(($ac_try" in
34017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018   *) ac_try_echo=$ac_try;;
34019 esac
34020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021   (eval "$ac_link") 2>conftest.er1
34022   ac_status=$?
34023   grep -v '^ *+' conftest.er1 >conftest.err
34024   rm -f conftest.er1
34025   cat conftest.err >&5
34026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027   (exit $ac_status); } &&
34028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34029   { (case "(($ac_try" in
34030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34031   *) ac_try_echo=$ac_try;;
34032 esac
34033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34034   (eval "$ac_try") 2>&5
34035   ac_status=$?
34036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037   (exit $ac_status); }; } &&
34038          { ac_try='test -s conftest$ac_exeext'
34039   { (case "(($ac_try" in
34040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34041   *) ac_try_echo=$ac_try;;
34042 esac
34043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34044   (eval "$ac_try") 2>&5
34045   ac_status=$?
34046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047   (exit $ac_status); }; }; then
34048   ac_R_space=yes
34049 else
34050   echo "$as_me: failed program was:" >&5
34051 sed 's/^/| /' conftest.$ac_ext >&5
34052
34053         ac_R_space=no
34054 fi
34055
34056 rm -f core conftest.err conftest.$ac_objext \
34057       conftest$ac_exeext conftest.$ac_ext
34058         if test $ac_R_space = yes; then
34059           { echo "$as_me:$LINENO: result: yes" >&5
34060 echo "${ECHO_T}yes" >&6; }
34061           X_LIBS="$X_LIBS -R $x_libraries"
34062         else
34063           { echo "$as_me:$LINENO: result: neither works" >&5
34064 echo "${ECHO_T}neither works" >&6; }
34065         fi
34066       fi
34067       LIBS=$ac_xsave_LIBS
34068     esac
34069   fi
34070
34071   # Check for system-dependent libraries X programs must link with.
34072   # Do this before checking for the system-independent R6 libraries
34073   # (-lICE), since we may need -lsocket or whatever for X linking.
34074
34075   if test "$ISC" = yes; then
34076     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
34077   else
34078     # Martyn Johnson says this is needed for Ultrix, if the X
34079     # libraries were built with DECnet support.  And Karl Berry says
34080     # the Alpha needs dnet_stub (dnet does not exist).
34081     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
34082     cat >conftest.$ac_ext <<_ACEOF
34083 /* confdefs.h.  */
34084 _ACEOF
34085 cat confdefs.h >>conftest.$ac_ext
34086 cat >>conftest.$ac_ext <<_ACEOF
34087 /* end confdefs.h.  */
34088
34089 /* Override any GCC internal prototype to avoid an error.
34090    Use char because int might match the return type of a GCC
34091    builtin and then its argument prototype would still apply.  */
34092 #ifdef __cplusplus
34093 extern "C"
34094 #endif
34095 char XOpenDisplay ();
34096 int
34097 main ()
34098 {
34099 return XOpenDisplay ();
34100   ;
34101   return 0;
34102 }
34103 _ACEOF
34104 rm -f conftest.$ac_objext conftest$ac_exeext
34105 if { (ac_try="$ac_link"
34106 case "(($ac_try" in
34107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34108   *) ac_try_echo=$ac_try;;
34109 esac
34110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34111   (eval "$ac_link") 2>conftest.er1
34112   ac_status=$?
34113   grep -v '^ *+' conftest.er1 >conftest.err
34114   rm -f conftest.er1
34115   cat conftest.err >&5
34116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117   (exit $ac_status); } &&
34118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34119   { (case "(($ac_try" in
34120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34121   *) ac_try_echo=$ac_try;;
34122 esac
34123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34124   (eval "$ac_try") 2>&5
34125   ac_status=$?
34126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127   (exit $ac_status); }; } &&
34128          { ac_try='test -s conftest$ac_exeext'
34129   { (case "(($ac_try" in
34130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34131   *) ac_try_echo=$ac_try;;
34132 esac
34133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34134   (eval "$ac_try") 2>&5
34135   ac_status=$?
34136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137   (exit $ac_status); }; }; then
34138   :
34139 else
34140   echo "$as_me: failed program was:" >&5
34141 sed 's/^/| /' conftest.$ac_ext >&5
34142
34143         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
34144 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
34145 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
34146   echo $ECHO_N "(cached) $ECHO_C" >&6
34147 else
34148   ac_check_lib_save_LIBS=$LIBS
34149 LIBS="-ldnet  $LIBS"
34150 cat >conftest.$ac_ext <<_ACEOF
34151 /* confdefs.h.  */
34152 _ACEOF
34153 cat confdefs.h >>conftest.$ac_ext
34154 cat >>conftest.$ac_ext <<_ACEOF
34155 /* end confdefs.h.  */
34156
34157 /* Override any GCC internal prototype to avoid an error.
34158    Use char because int might match the return type of a GCC
34159    builtin and then its argument prototype would still apply.  */
34160 #ifdef __cplusplus
34161 extern "C"
34162 #endif
34163 char dnet_ntoa ();
34164 int
34165 main ()
34166 {
34167 return dnet_ntoa ();
34168   ;
34169   return 0;
34170 }
34171 _ACEOF
34172 rm -f conftest.$ac_objext conftest$ac_exeext
34173 if { (ac_try="$ac_link"
34174 case "(($ac_try" in
34175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34176   *) ac_try_echo=$ac_try;;
34177 esac
34178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34179   (eval "$ac_link") 2>conftest.er1
34180   ac_status=$?
34181   grep -v '^ *+' conftest.er1 >conftest.err
34182   rm -f conftest.er1
34183   cat conftest.err >&5
34184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185   (exit $ac_status); } &&
34186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34187   { (case "(($ac_try" in
34188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34189   *) ac_try_echo=$ac_try;;
34190 esac
34191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34192   (eval "$ac_try") 2>&5
34193   ac_status=$?
34194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195   (exit $ac_status); }; } &&
34196          { ac_try='test -s conftest$ac_exeext'
34197   { (case "(($ac_try" in
34198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199   *) ac_try_echo=$ac_try;;
34200 esac
34201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202   (eval "$ac_try") 2>&5
34203   ac_status=$?
34204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205   (exit $ac_status); }; }; then
34206   ac_cv_lib_dnet_dnet_ntoa=yes
34207 else
34208   echo "$as_me: failed program was:" >&5
34209 sed 's/^/| /' conftest.$ac_ext >&5
34210
34211         ac_cv_lib_dnet_dnet_ntoa=no
34212 fi
34213
34214 rm -f core conftest.err conftest.$ac_objext \
34215       conftest$ac_exeext conftest.$ac_ext
34216 LIBS=$ac_check_lib_save_LIBS
34217 fi
34218 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
34219 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
34220 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
34221   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
34222 fi
34223
34224     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
34225       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
34226 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
34227 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
34228   echo $ECHO_N "(cached) $ECHO_C" >&6
34229 else
34230   ac_check_lib_save_LIBS=$LIBS
34231 LIBS="-ldnet_stub  $LIBS"
34232 cat >conftest.$ac_ext <<_ACEOF
34233 /* confdefs.h.  */
34234 _ACEOF
34235 cat confdefs.h >>conftest.$ac_ext
34236 cat >>conftest.$ac_ext <<_ACEOF
34237 /* end confdefs.h.  */
34238
34239 /* Override any GCC internal prototype to avoid an error.
34240    Use char because int might match the return type of a GCC
34241    builtin and then its argument prototype would still apply.  */
34242 #ifdef __cplusplus
34243 extern "C"
34244 #endif
34245 char dnet_ntoa ();
34246 int
34247 main ()
34248 {
34249 return dnet_ntoa ();
34250   ;
34251   return 0;
34252 }
34253 _ACEOF
34254 rm -f conftest.$ac_objext conftest$ac_exeext
34255 if { (ac_try="$ac_link"
34256 case "(($ac_try" in
34257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34258   *) ac_try_echo=$ac_try;;
34259 esac
34260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34261   (eval "$ac_link") 2>conftest.er1
34262   ac_status=$?
34263   grep -v '^ *+' conftest.er1 >conftest.err
34264   rm -f conftest.er1
34265   cat conftest.err >&5
34266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267   (exit $ac_status); } &&
34268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34269   { (case "(($ac_try" in
34270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34271   *) ac_try_echo=$ac_try;;
34272 esac
34273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34274   (eval "$ac_try") 2>&5
34275   ac_status=$?
34276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277   (exit $ac_status); }; } &&
34278          { ac_try='test -s conftest$ac_exeext'
34279   { (case "(($ac_try" in
34280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34281   *) ac_try_echo=$ac_try;;
34282 esac
34283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34284   (eval "$ac_try") 2>&5
34285   ac_status=$?
34286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287   (exit $ac_status); }; }; then
34288   ac_cv_lib_dnet_stub_dnet_ntoa=yes
34289 else
34290   echo "$as_me: failed program was:" >&5
34291 sed 's/^/| /' conftest.$ac_ext >&5
34292
34293         ac_cv_lib_dnet_stub_dnet_ntoa=no
34294 fi
34295
34296 rm -f core conftest.err conftest.$ac_objext \
34297       conftest$ac_exeext conftest.$ac_ext
34298 LIBS=$ac_check_lib_save_LIBS
34299 fi
34300 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
34301 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
34302 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
34303   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
34304 fi
34305
34306     fi
34307 fi
34308
34309 rm -f core conftest.err conftest.$ac_objext \
34310       conftest$ac_exeext conftest.$ac_ext
34311     LIBS="$ac_xsave_LIBS"
34312
34313     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
34314     # to get the SysV transport functions.
34315     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
34316     # needs -lnsl.
34317     # The nsl library prevents programs from opening the X display
34318     # on Irix 5.2, according to T.E. Dickey.
34319     # The functions gethostbyname, getservbyname, and inet_addr are
34320     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
34321     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
34322 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
34323 if test "${ac_cv_func_gethostbyname+set}" = set; then
34324   echo $ECHO_N "(cached) $ECHO_C" >&6
34325 else
34326   cat >conftest.$ac_ext <<_ACEOF
34327 /* confdefs.h.  */
34328 _ACEOF
34329 cat confdefs.h >>conftest.$ac_ext
34330 cat >>conftest.$ac_ext <<_ACEOF
34331 /* end confdefs.h.  */
34332 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
34333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34334 #define gethostbyname innocuous_gethostbyname
34335
34336 /* System header to define __stub macros and hopefully few prototypes,
34337     which can conflict with char gethostbyname (); below.
34338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34339     <limits.h> exists even on freestanding compilers.  */
34340
34341 #ifdef __STDC__
34342 # include <limits.h>
34343 #else
34344 # include <assert.h>
34345 #endif
34346
34347 #undef gethostbyname
34348
34349 /* Override any GCC internal prototype to avoid an error.
34350    Use char because int might match the return type of a GCC
34351    builtin and then its argument prototype would still apply.  */
34352 #ifdef __cplusplus
34353 extern "C"
34354 #endif
34355 char gethostbyname ();
34356 /* The GNU C library defines this for functions which it implements
34357     to always fail with ENOSYS.  Some functions are actually named
34358     something starting with __ and the normal name is an alias.  */
34359 #if defined __stub_gethostbyname || defined __stub___gethostbyname
34360 choke me
34361 #endif
34362
34363 int
34364 main ()
34365 {
34366 return gethostbyname ();
34367   ;
34368   return 0;
34369 }
34370 _ACEOF
34371 rm -f conftest.$ac_objext conftest$ac_exeext
34372 if { (ac_try="$ac_link"
34373 case "(($ac_try" in
34374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34375   *) ac_try_echo=$ac_try;;
34376 esac
34377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34378   (eval "$ac_link") 2>conftest.er1
34379   ac_status=$?
34380   grep -v '^ *+' conftest.er1 >conftest.err
34381   rm -f conftest.er1
34382   cat conftest.err >&5
34383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384   (exit $ac_status); } &&
34385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34386   { (case "(($ac_try" in
34387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34388   *) ac_try_echo=$ac_try;;
34389 esac
34390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34391   (eval "$ac_try") 2>&5
34392   ac_status=$?
34393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394   (exit $ac_status); }; } &&
34395          { ac_try='test -s conftest$ac_exeext'
34396   { (case "(($ac_try" in
34397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34398   *) ac_try_echo=$ac_try;;
34399 esac
34400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34401   (eval "$ac_try") 2>&5
34402   ac_status=$?
34403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404   (exit $ac_status); }; }; then
34405   ac_cv_func_gethostbyname=yes
34406 else
34407   echo "$as_me: failed program was:" >&5
34408 sed 's/^/| /' conftest.$ac_ext >&5
34409
34410         ac_cv_func_gethostbyname=no
34411 fi
34412
34413 rm -f core conftest.err conftest.$ac_objext \
34414       conftest$ac_exeext conftest.$ac_ext
34415 fi
34416 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
34417 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
34418
34419     if test $ac_cv_func_gethostbyname = no; then
34420       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
34421 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
34422 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
34423   echo $ECHO_N "(cached) $ECHO_C" >&6
34424 else
34425   ac_check_lib_save_LIBS=$LIBS
34426 LIBS="-lnsl  $LIBS"
34427 cat >conftest.$ac_ext <<_ACEOF
34428 /* confdefs.h.  */
34429 _ACEOF
34430 cat confdefs.h >>conftest.$ac_ext
34431 cat >>conftest.$ac_ext <<_ACEOF
34432 /* end confdefs.h.  */
34433
34434 /* Override any GCC internal prototype to avoid an error.
34435    Use char because int might match the return type of a GCC
34436    builtin and then its argument prototype would still apply.  */
34437 #ifdef __cplusplus
34438 extern "C"
34439 #endif
34440 char gethostbyname ();
34441 int
34442 main ()
34443 {
34444 return gethostbyname ();
34445   ;
34446   return 0;
34447 }
34448 _ACEOF
34449 rm -f conftest.$ac_objext conftest$ac_exeext
34450 if { (ac_try="$ac_link"
34451 case "(($ac_try" in
34452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34453   *) ac_try_echo=$ac_try;;
34454 esac
34455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34456   (eval "$ac_link") 2>conftest.er1
34457   ac_status=$?
34458   grep -v '^ *+' conftest.er1 >conftest.err
34459   rm -f conftest.er1
34460   cat conftest.err >&5
34461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462   (exit $ac_status); } &&
34463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
34470   ac_status=$?
34471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472   (exit $ac_status); }; } &&
34473          { ac_try='test -s conftest$ac_exeext'
34474   { (case "(($ac_try" in
34475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34476   *) ac_try_echo=$ac_try;;
34477 esac
34478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34479   (eval "$ac_try") 2>&5
34480   ac_status=$?
34481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482   (exit $ac_status); }; }; then
34483   ac_cv_lib_nsl_gethostbyname=yes
34484 else
34485   echo "$as_me: failed program was:" >&5
34486 sed 's/^/| /' conftest.$ac_ext >&5
34487
34488         ac_cv_lib_nsl_gethostbyname=no
34489 fi
34490
34491 rm -f core conftest.err conftest.$ac_objext \
34492       conftest$ac_exeext conftest.$ac_ext
34493 LIBS=$ac_check_lib_save_LIBS
34494 fi
34495 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
34496 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
34497 if test $ac_cv_lib_nsl_gethostbyname = yes; then
34498   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
34499 fi
34500
34501       if test $ac_cv_lib_nsl_gethostbyname = no; then
34502         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
34503 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
34504 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
34505   echo $ECHO_N "(cached) $ECHO_C" >&6
34506 else
34507   ac_check_lib_save_LIBS=$LIBS
34508 LIBS="-lbsd  $LIBS"
34509 cat >conftest.$ac_ext <<_ACEOF
34510 /* confdefs.h.  */
34511 _ACEOF
34512 cat confdefs.h >>conftest.$ac_ext
34513 cat >>conftest.$ac_ext <<_ACEOF
34514 /* end confdefs.h.  */
34515
34516 /* Override any GCC internal prototype to avoid an error.
34517    Use char because int might match the return type of a GCC
34518    builtin and then its argument prototype would still apply.  */
34519 #ifdef __cplusplus
34520 extern "C"
34521 #endif
34522 char gethostbyname ();
34523 int
34524 main ()
34525 {
34526 return gethostbyname ();
34527   ;
34528   return 0;
34529 }
34530 _ACEOF
34531 rm -f conftest.$ac_objext conftest$ac_exeext
34532 if { (ac_try="$ac_link"
34533 case "(($ac_try" in
34534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34535   *) ac_try_echo=$ac_try;;
34536 esac
34537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34538   (eval "$ac_link") 2>conftest.er1
34539   ac_status=$?
34540   grep -v '^ *+' conftest.er1 >conftest.err
34541   rm -f conftest.er1
34542   cat conftest.err >&5
34543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544   (exit $ac_status); } &&
34545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34546   { (case "(($ac_try" in
34547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34548   *) ac_try_echo=$ac_try;;
34549 esac
34550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34551   (eval "$ac_try") 2>&5
34552   ac_status=$?
34553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554   (exit $ac_status); }; } &&
34555          { ac_try='test -s conftest$ac_exeext'
34556   { (case "(($ac_try" in
34557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34558   *) ac_try_echo=$ac_try;;
34559 esac
34560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34561   (eval "$ac_try") 2>&5
34562   ac_status=$?
34563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564   (exit $ac_status); }; }; then
34565   ac_cv_lib_bsd_gethostbyname=yes
34566 else
34567   echo "$as_me: failed program was:" >&5
34568 sed 's/^/| /' conftest.$ac_ext >&5
34569
34570         ac_cv_lib_bsd_gethostbyname=no
34571 fi
34572
34573 rm -f core conftest.err conftest.$ac_objext \
34574       conftest$ac_exeext conftest.$ac_ext
34575 LIBS=$ac_check_lib_save_LIBS
34576 fi
34577 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
34578 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
34579 if test $ac_cv_lib_bsd_gethostbyname = yes; then
34580   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
34581 fi
34582
34583       fi
34584     fi
34585
34586     # lieder@skyler.mavd.honeywell.com says without -lsocket,
34587     # socket/setsockopt and other routines are undefined under SCO ODT
34588     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
34589     # on later versions), says Simon Leinen: it contains gethostby*
34590     # variants that don't use the name server (or something).  -lsocket
34591     # must be given before -lnsl if both are needed.  We assume that
34592     # if connect needs -lnsl, so does gethostbyname.
34593     { echo "$as_me:$LINENO: checking for connect" >&5
34594 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
34595 if test "${ac_cv_func_connect+set}" = set; then
34596   echo $ECHO_N "(cached) $ECHO_C" >&6
34597 else
34598   cat >conftest.$ac_ext <<_ACEOF
34599 /* confdefs.h.  */
34600 _ACEOF
34601 cat confdefs.h >>conftest.$ac_ext
34602 cat >>conftest.$ac_ext <<_ACEOF
34603 /* end confdefs.h.  */
34604 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
34605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34606 #define connect innocuous_connect
34607
34608 /* System header to define __stub macros and hopefully few prototypes,
34609     which can conflict with char connect (); below.
34610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34611     <limits.h> exists even on freestanding compilers.  */
34612
34613 #ifdef __STDC__
34614 # include <limits.h>
34615 #else
34616 # include <assert.h>
34617 #endif
34618
34619 #undef connect
34620
34621 /* Override any GCC internal prototype to avoid an error.
34622    Use char because int might match the return type of a GCC
34623    builtin and then its argument prototype would still apply.  */
34624 #ifdef __cplusplus
34625 extern "C"
34626 #endif
34627 char connect ();
34628 /* The GNU C library defines this for functions which it implements
34629     to always fail with ENOSYS.  Some functions are actually named
34630     something starting with __ and the normal name is an alias.  */
34631 #if defined __stub_connect || defined __stub___connect
34632 choke me
34633 #endif
34634
34635 int
34636 main ()
34637 {
34638 return connect ();
34639   ;
34640   return 0;
34641 }
34642 _ACEOF
34643 rm -f conftest.$ac_objext conftest$ac_exeext
34644 if { (ac_try="$ac_link"
34645 case "(($ac_try" in
34646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34647   *) ac_try_echo=$ac_try;;
34648 esac
34649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34650   (eval "$ac_link") 2>conftest.er1
34651   ac_status=$?
34652   grep -v '^ *+' conftest.er1 >conftest.err
34653   rm -f conftest.er1
34654   cat conftest.err >&5
34655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656   (exit $ac_status); } &&
34657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34658   { (case "(($ac_try" in
34659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34660   *) ac_try_echo=$ac_try;;
34661 esac
34662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34663   (eval "$ac_try") 2>&5
34664   ac_status=$?
34665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666   (exit $ac_status); }; } &&
34667          { ac_try='test -s conftest$ac_exeext'
34668   { (case "(($ac_try" in
34669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34670   *) ac_try_echo=$ac_try;;
34671 esac
34672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34673   (eval "$ac_try") 2>&5
34674   ac_status=$?
34675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676   (exit $ac_status); }; }; then
34677   ac_cv_func_connect=yes
34678 else
34679   echo "$as_me: failed program was:" >&5
34680 sed 's/^/| /' conftest.$ac_ext >&5
34681
34682         ac_cv_func_connect=no
34683 fi
34684
34685 rm -f core conftest.err conftest.$ac_objext \
34686       conftest$ac_exeext conftest.$ac_ext
34687 fi
34688 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
34689 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
34690
34691     if test $ac_cv_func_connect = no; then
34692       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
34693 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
34694 if test "${ac_cv_lib_socket_connect+set}" = set; then
34695   echo $ECHO_N "(cached) $ECHO_C" >&6
34696 else
34697   ac_check_lib_save_LIBS=$LIBS
34698 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
34699 cat >conftest.$ac_ext <<_ACEOF
34700 /* confdefs.h.  */
34701 _ACEOF
34702 cat confdefs.h >>conftest.$ac_ext
34703 cat >>conftest.$ac_ext <<_ACEOF
34704 /* end confdefs.h.  */
34705
34706 /* Override any GCC internal prototype to avoid an error.
34707    Use char because int might match the return type of a GCC
34708    builtin and then its argument prototype would still apply.  */
34709 #ifdef __cplusplus
34710 extern "C"
34711 #endif
34712 char connect ();
34713 int
34714 main ()
34715 {
34716 return connect ();
34717   ;
34718   return 0;
34719 }
34720 _ACEOF
34721 rm -f conftest.$ac_objext conftest$ac_exeext
34722 if { (ac_try="$ac_link"
34723 case "(($ac_try" in
34724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34725   *) ac_try_echo=$ac_try;;
34726 esac
34727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34728   (eval "$ac_link") 2>conftest.er1
34729   ac_status=$?
34730   grep -v '^ *+' conftest.er1 >conftest.err
34731   rm -f conftest.er1
34732   cat conftest.err >&5
34733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34734   (exit $ac_status); } &&
34735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34736   { (case "(($ac_try" in
34737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34738   *) ac_try_echo=$ac_try;;
34739 esac
34740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34741   (eval "$ac_try") 2>&5
34742   ac_status=$?
34743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34744   (exit $ac_status); }; } &&
34745          { ac_try='test -s conftest$ac_exeext'
34746   { (case "(($ac_try" in
34747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34748   *) ac_try_echo=$ac_try;;
34749 esac
34750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34751   (eval "$ac_try") 2>&5
34752   ac_status=$?
34753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754   (exit $ac_status); }; }; then
34755   ac_cv_lib_socket_connect=yes
34756 else
34757   echo "$as_me: failed program was:" >&5
34758 sed 's/^/| /' conftest.$ac_ext >&5
34759
34760         ac_cv_lib_socket_connect=no
34761 fi
34762
34763 rm -f core conftest.err conftest.$ac_objext \
34764       conftest$ac_exeext conftest.$ac_ext
34765 LIBS=$ac_check_lib_save_LIBS
34766 fi
34767 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
34768 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
34769 if test $ac_cv_lib_socket_connect = yes; then
34770   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
34771 fi
34772
34773     fi
34774
34775     # Guillermo Gomez says -lposix is necessary on A/UX.
34776     { echo "$as_me:$LINENO: checking for remove" >&5
34777 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
34778 if test "${ac_cv_func_remove+set}" = set; then
34779   echo $ECHO_N "(cached) $ECHO_C" >&6
34780 else
34781   cat >conftest.$ac_ext <<_ACEOF
34782 /* confdefs.h.  */
34783 _ACEOF
34784 cat confdefs.h >>conftest.$ac_ext
34785 cat >>conftest.$ac_ext <<_ACEOF
34786 /* end confdefs.h.  */
34787 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
34788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34789 #define remove innocuous_remove
34790
34791 /* System header to define __stub macros and hopefully few prototypes,
34792     which can conflict with char remove (); below.
34793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34794     <limits.h> exists even on freestanding compilers.  */
34795
34796 #ifdef __STDC__
34797 # include <limits.h>
34798 #else
34799 # include <assert.h>
34800 #endif
34801
34802 #undef remove
34803
34804 /* Override any GCC internal prototype to avoid an error.
34805    Use char because int might match the return type of a GCC
34806    builtin and then its argument prototype would still apply.  */
34807 #ifdef __cplusplus
34808 extern "C"
34809 #endif
34810 char remove ();
34811 /* The GNU C library defines this for functions which it implements
34812     to always fail with ENOSYS.  Some functions are actually named
34813     something starting with __ and the normal name is an alias.  */
34814 #if defined __stub_remove || defined __stub___remove
34815 choke me
34816 #endif
34817
34818 int
34819 main ()
34820 {
34821 return remove ();
34822   ;
34823   return 0;
34824 }
34825 _ACEOF
34826 rm -f conftest.$ac_objext conftest$ac_exeext
34827 if { (ac_try="$ac_link"
34828 case "(($ac_try" in
34829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34830   *) ac_try_echo=$ac_try;;
34831 esac
34832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34833   (eval "$ac_link") 2>conftest.er1
34834   ac_status=$?
34835   grep -v '^ *+' conftest.er1 >conftest.err
34836   rm -f conftest.er1
34837   cat conftest.err >&5
34838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839   (exit $ac_status); } &&
34840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34841   { (case "(($ac_try" in
34842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34843   *) ac_try_echo=$ac_try;;
34844 esac
34845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34846   (eval "$ac_try") 2>&5
34847   ac_status=$?
34848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849   (exit $ac_status); }; } &&
34850          { ac_try='test -s conftest$ac_exeext'
34851   { (case "(($ac_try" in
34852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34853   *) ac_try_echo=$ac_try;;
34854 esac
34855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34856   (eval "$ac_try") 2>&5
34857   ac_status=$?
34858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859   (exit $ac_status); }; }; then
34860   ac_cv_func_remove=yes
34861 else
34862   echo "$as_me: failed program was:" >&5
34863 sed 's/^/| /' conftest.$ac_ext >&5
34864
34865         ac_cv_func_remove=no
34866 fi
34867
34868 rm -f core conftest.err conftest.$ac_objext \
34869       conftest$ac_exeext conftest.$ac_ext
34870 fi
34871 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
34872 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
34873
34874     if test $ac_cv_func_remove = no; then
34875       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
34876 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
34877 if test "${ac_cv_lib_posix_remove+set}" = set; then
34878   echo $ECHO_N "(cached) $ECHO_C" >&6
34879 else
34880   ac_check_lib_save_LIBS=$LIBS
34881 LIBS="-lposix  $LIBS"
34882 cat >conftest.$ac_ext <<_ACEOF
34883 /* confdefs.h.  */
34884 _ACEOF
34885 cat confdefs.h >>conftest.$ac_ext
34886 cat >>conftest.$ac_ext <<_ACEOF
34887 /* end confdefs.h.  */
34888
34889 /* Override any GCC internal prototype to avoid an error.
34890    Use char because int might match the return type of a GCC
34891    builtin and then its argument prototype would still apply.  */
34892 #ifdef __cplusplus
34893 extern "C"
34894 #endif
34895 char remove ();
34896 int
34897 main ()
34898 {
34899 return remove ();
34900   ;
34901   return 0;
34902 }
34903 _ACEOF
34904 rm -f conftest.$ac_objext conftest$ac_exeext
34905 if { (ac_try="$ac_link"
34906 case "(($ac_try" in
34907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34908   *) ac_try_echo=$ac_try;;
34909 esac
34910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34911   (eval "$ac_link") 2>conftest.er1
34912   ac_status=$?
34913   grep -v '^ *+' conftest.er1 >conftest.err
34914   rm -f conftest.er1
34915   cat conftest.err >&5
34916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917   (exit $ac_status); } &&
34918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
34925   ac_status=$?
34926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927   (exit $ac_status); }; } &&
34928          { ac_try='test -s conftest$ac_exeext'
34929   { (case "(($ac_try" in
34930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34931   *) ac_try_echo=$ac_try;;
34932 esac
34933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34934   (eval "$ac_try") 2>&5
34935   ac_status=$?
34936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937   (exit $ac_status); }; }; then
34938   ac_cv_lib_posix_remove=yes
34939 else
34940   echo "$as_me: failed program was:" >&5
34941 sed 's/^/| /' conftest.$ac_ext >&5
34942
34943         ac_cv_lib_posix_remove=no
34944 fi
34945
34946 rm -f core conftest.err conftest.$ac_objext \
34947       conftest$ac_exeext conftest.$ac_ext
34948 LIBS=$ac_check_lib_save_LIBS
34949 fi
34950 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
34951 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
34952 if test $ac_cv_lib_posix_remove = yes; then
34953   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
34954 fi
34955
34956     fi
34957
34958     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
34959     { echo "$as_me:$LINENO: checking for shmat" >&5
34960 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
34961 if test "${ac_cv_func_shmat+set}" = set; then
34962   echo $ECHO_N "(cached) $ECHO_C" >&6
34963 else
34964   cat >conftest.$ac_ext <<_ACEOF
34965 /* confdefs.h.  */
34966 _ACEOF
34967 cat confdefs.h >>conftest.$ac_ext
34968 cat >>conftest.$ac_ext <<_ACEOF
34969 /* end confdefs.h.  */
34970 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
34971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34972 #define shmat innocuous_shmat
34973
34974 /* System header to define __stub macros and hopefully few prototypes,
34975     which can conflict with char shmat (); below.
34976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34977     <limits.h> exists even on freestanding compilers.  */
34978
34979 #ifdef __STDC__
34980 # include <limits.h>
34981 #else
34982 # include <assert.h>
34983 #endif
34984
34985 #undef shmat
34986
34987 /* Override any GCC internal prototype to avoid an error.
34988    Use char because int might match the return type of a GCC
34989    builtin and then its argument prototype would still apply.  */
34990 #ifdef __cplusplus
34991 extern "C"
34992 #endif
34993 char shmat ();
34994 /* The GNU C library defines this for functions which it implements
34995     to always fail with ENOSYS.  Some functions are actually named
34996     something starting with __ and the normal name is an alias.  */
34997 #if defined __stub_shmat || defined __stub___shmat
34998 choke me
34999 #endif
35000
35001 int
35002 main ()
35003 {
35004 return shmat ();
35005   ;
35006   return 0;
35007 }
35008 _ACEOF
35009 rm -f conftest.$ac_objext conftest$ac_exeext
35010 if { (ac_try="$ac_link"
35011 case "(($ac_try" in
35012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35013   *) ac_try_echo=$ac_try;;
35014 esac
35015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35016   (eval "$ac_link") 2>conftest.er1
35017   ac_status=$?
35018   grep -v '^ *+' conftest.er1 >conftest.err
35019   rm -f conftest.er1
35020   cat conftest.err >&5
35021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35022   (exit $ac_status); } &&
35023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35024   { (case "(($ac_try" in
35025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35026   *) ac_try_echo=$ac_try;;
35027 esac
35028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35029   (eval "$ac_try") 2>&5
35030   ac_status=$?
35031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032   (exit $ac_status); }; } &&
35033          { ac_try='test -s conftest$ac_exeext'
35034   { (case "(($ac_try" in
35035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35036   *) ac_try_echo=$ac_try;;
35037 esac
35038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35039   (eval "$ac_try") 2>&5
35040   ac_status=$?
35041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042   (exit $ac_status); }; }; then
35043   ac_cv_func_shmat=yes
35044 else
35045   echo "$as_me: failed program was:" >&5
35046 sed 's/^/| /' conftest.$ac_ext >&5
35047
35048         ac_cv_func_shmat=no
35049 fi
35050
35051 rm -f core conftest.err conftest.$ac_objext \
35052       conftest$ac_exeext conftest.$ac_ext
35053 fi
35054 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
35055 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
35056
35057     if test $ac_cv_func_shmat = no; then
35058       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
35059 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
35060 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
35061   echo $ECHO_N "(cached) $ECHO_C" >&6
35062 else
35063   ac_check_lib_save_LIBS=$LIBS
35064 LIBS="-lipc  $LIBS"
35065 cat >conftest.$ac_ext <<_ACEOF
35066 /* confdefs.h.  */
35067 _ACEOF
35068 cat confdefs.h >>conftest.$ac_ext
35069 cat >>conftest.$ac_ext <<_ACEOF
35070 /* end confdefs.h.  */
35071
35072 /* Override any GCC internal prototype to avoid an error.
35073    Use char because int might match the return type of a GCC
35074    builtin and then its argument prototype would still apply.  */
35075 #ifdef __cplusplus
35076 extern "C"
35077 #endif
35078 char shmat ();
35079 int
35080 main ()
35081 {
35082 return shmat ();
35083   ;
35084   return 0;
35085 }
35086 _ACEOF
35087 rm -f conftest.$ac_objext conftest$ac_exeext
35088 if { (ac_try="$ac_link"
35089 case "(($ac_try" in
35090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35091   *) ac_try_echo=$ac_try;;
35092 esac
35093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35094   (eval "$ac_link") 2>conftest.er1
35095   ac_status=$?
35096   grep -v '^ *+' conftest.er1 >conftest.err
35097   rm -f conftest.er1
35098   cat conftest.err >&5
35099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100   (exit $ac_status); } &&
35101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35102   { (case "(($ac_try" in
35103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35104   *) ac_try_echo=$ac_try;;
35105 esac
35106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35107   (eval "$ac_try") 2>&5
35108   ac_status=$?
35109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110   (exit $ac_status); }; } &&
35111          { ac_try='test -s conftest$ac_exeext'
35112   { (case "(($ac_try" in
35113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35114   *) ac_try_echo=$ac_try;;
35115 esac
35116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35117   (eval "$ac_try") 2>&5
35118   ac_status=$?
35119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120   (exit $ac_status); }; }; then
35121   ac_cv_lib_ipc_shmat=yes
35122 else
35123   echo "$as_me: failed program was:" >&5
35124 sed 's/^/| /' conftest.$ac_ext >&5
35125
35126         ac_cv_lib_ipc_shmat=no
35127 fi
35128
35129 rm -f core conftest.err conftest.$ac_objext \
35130       conftest$ac_exeext conftest.$ac_ext
35131 LIBS=$ac_check_lib_save_LIBS
35132 fi
35133 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
35134 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
35135 if test $ac_cv_lib_ipc_shmat = yes; then
35136   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
35137 fi
35138
35139     fi
35140   fi
35141
35142   # Check for libraries that X11R6 Xt/Xaw programs need.
35143   ac_save_LDFLAGS=$LDFLAGS
35144   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
35145   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
35146   # check for ICE first), but we must link in the order -lSM -lICE or
35147   # we get undefined symbols.  So assume we have SM if we have ICE.
35148   # These have to be linked with before -lX11, unlike the other
35149   # libraries we check for below, so use a different variable.
35150   # John Interrante, Karl Berry
35151   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
35152 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
35153 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
35154   echo $ECHO_N "(cached) $ECHO_C" >&6
35155 else
35156   ac_check_lib_save_LIBS=$LIBS
35157 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
35158 cat >conftest.$ac_ext <<_ACEOF
35159 /* confdefs.h.  */
35160 _ACEOF
35161 cat confdefs.h >>conftest.$ac_ext
35162 cat >>conftest.$ac_ext <<_ACEOF
35163 /* end confdefs.h.  */
35164
35165 /* Override any GCC internal prototype to avoid an error.
35166    Use char because int might match the return type of a GCC
35167    builtin and then its argument prototype would still apply.  */
35168 #ifdef __cplusplus
35169 extern "C"
35170 #endif
35171 char IceConnectionNumber ();
35172 int
35173 main ()
35174 {
35175 return IceConnectionNumber ();
35176   ;
35177   return 0;
35178 }
35179 _ACEOF
35180 rm -f conftest.$ac_objext conftest$ac_exeext
35181 if { (ac_try="$ac_link"
35182 case "(($ac_try" in
35183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35184   *) ac_try_echo=$ac_try;;
35185 esac
35186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35187   (eval "$ac_link") 2>conftest.er1
35188   ac_status=$?
35189   grep -v '^ *+' conftest.er1 >conftest.err
35190   rm -f conftest.er1
35191   cat conftest.err >&5
35192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193   (exit $ac_status); } &&
35194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35195   { (case "(($ac_try" in
35196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35197   *) ac_try_echo=$ac_try;;
35198 esac
35199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35200   (eval "$ac_try") 2>&5
35201   ac_status=$?
35202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203   (exit $ac_status); }; } &&
35204          { ac_try='test -s conftest$ac_exeext'
35205   { (case "(($ac_try" in
35206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35207   *) ac_try_echo=$ac_try;;
35208 esac
35209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35210   (eval "$ac_try") 2>&5
35211   ac_status=$?
35212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213   (exit $ac_status); }; }; then
35214   ac_cv_lib_ICE_IceConnectionNumber=yes
35215 else
35216   echo "$as_me: failed program was:" >&5
35217 sed 's/^/| /' conftest.$ac_ext >&5
35218
35219         ac_cv_lib_ICE_IceConnectionNumber=no
35220 fi
35221
35222 rm -f core conftest.err conftest.$ac_objext \
35223       conftest$ac_exeext conftest.$ac_ext
35224 LIBS=$ac_check_lib_save_LIBS
35225 fi
35226 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
35227 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
35228 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
35229   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
35230 fi
35231
35232   LDFLAGS=$ac_save_LDFLAGS
35233
35234 fi
35235
35236
35237         if test "$no_x" = "yes"; then
35238           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
35239 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
35240    { (exit 1); exit 1; }; }
35241         fi
35242
35243                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
35244         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
35245         AFMINSTALL=afminstall
35246         COMPILED_X_PROGRAM=0
35247
35248     fi
35249
35250     if test "$wxUSE_X11" = 1; then
35251         if test "$wxUSE_NANOX" = "yes"; then
35252             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
35253 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
35254             if test "x$MICROWIN" = x ; then
35255                 { echo "$as_me:$LINENO: result: not found" >&5
35256 echo "${ECHO_T}not found" >&6; }
35257                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
35258 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
35259    { (exit 1); exit 1; }; }
35260             else
35261                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
35262 echo "${ECHO_T}$MICROWIN" >&6; }
35263                 cat >>confdefs.h <<\_ACEOF
35264 #define wxUSE_NANOX 1
35265 _ACEOF
35266
35267             fi
35268         fi
35269
35270         if test "$wxUSE_UNICODE" = "yes"; then
35271
35272
35273 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
35274         if test -n "$ac_tool_prefix"; then
35275   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35276 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35279 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35280   echo $ECHO_N "(cached) $ECHO_C" >&6
35281 else
35282   case $PKG_CONFIG in
35283   [\\/]* | ?:[\\/]*)
35284   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35285   ;;
35286   *)
35287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35288 for as_dir in $PATH
35289 do
35290   IFS=$as_save_IFS
35291   test -z "$as_dir" && as_dir=.
35292   for ac_exec_ext in '' $ac_executable_extensions; do
35293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35294     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35296     break 2
35297   fi
35298 done
35299 done
35300 IFS=$as_save_IFS
35301
35302   ;;
35303 esac
35304 fi
35305 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35306 if test -n "$PKG_CONFIG"; then
35307   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35308 echo "${ECHO_T}$PKG_CONFIG" >&6; }
35309 else
35310   { echo "$as_me:$LINENO: result: no" >&5
35311 echo "${ECHO_T}no" >&6; }
35312 fi
35313
35314
35315 fi
35316 if test -z "$ac_cv_path_PKG_CONFIG"; then
35317   ac_pt_PKG_CONFIG=$PKG_CONFIG
35318   # Extract the first word of "pkg-config", so it can be a program name with args.
35319 set dummy pkg-config; ac_word=$2
35320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35322 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35323   echo $ECHO_N "(cached) $ECHO_C" >&6
35324 else
35325   case $ac_pt_PKG_CONFIG in
35326   [\\/]* | ?:[\\/]*)
35327   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35328   ;;
35329   *)
35330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35331 for as_dir in $PATH
35332 do
35333   IFS=$as_save_IFS
35334   test -z "$as_dir" && as_dir=.
35335   for ac_exec_ext in '' $ac_executable_extensions; do
35336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35337     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35339     break 2
35340   fi
35341 done
35342 done
35343 IFS=$as_save_IFS
35344
35345   ;;
35346 esac
35347 fi
35348 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35349 if test -n "$ac_pt_PKG_CONFIG"; then
35350   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35351 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
35352 else
35353   { echo "$as_me:$LINENO: result: no" >&5
35354 echo "${ECHO_T}no" >&6; }
35355 fi
35356
35357   if test "x$ac_pt_PKG_CONFIG" = x; then
35358     PKG_CONFIG=""
35359   else
35360     case $cross_compiling:$ac_tool_warned in
35361 yes:)
35362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35363 whose name does not start with the host triplet.  If you think this
35364 configuration is useful to you, please write to autoconf@gnu.org." >&5
35365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35366 whose name does not start with the host triplet.  If you think this
35367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35368 ac_tool_warned=yes ;;
35369 esac
35370     PKG_CONFIG=$ac_pt_PKG_CONFIG
35371   fi
35372 else
35373   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35374 fi
35375
35376 fi
35377 if test -n "$PKG_CONFIG"; then
35378         _pkg_min_version=0.9.0
35379         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35380 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
35381         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35382                 { echo "$as_me:$LINENO: result: yes" >&5
35383 echo "${ECHO_T}yes" >&6; }
35384         else
35385                 { echo "$as_me:$LINENO: result: no" >&5
35386 echo "${ECHO_T}no" >&6; }
35387                 PKG_CONFIG=""
35388         fi
35389
35390 fi
35391
35392
35393 pkg_failed=no
35394 { echo "$as_me:$LINENO: checking for PANGOX" >&5
35395 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
35396
35397 if test -n "$PKG_CONFIG"; then
35398     if test -n "$PANGOX_CFLAGS"; then
35399         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
35400     else
35401         if test -n "$PKG_CONFIG" && \
35402     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
35403   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
35404   ac_status=$?
35405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35406   (exit $ac_status); }; then
35407   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
35408 else
35409   pkg_failed=yes
35410 fi
35411     fi
35412 else
35413         pkg_failed=untried
35414 fi
35415 if test -n "$PKG_CONFIG"; then
35416     if test -n "$PANGOX_LIBS"; then
35417         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
35418     else
35419         if test -n "$PKG_CONFIG" && \
35420     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
35421   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
35422   ac_status=$?
35423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424   (exit $ac_status); }; then
35425   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
35426 else
35427   pkg_failed=yes
35428 fi
35429     fi
35430 else
35431         pkg_failed=untried
35432 fi
35433
35434
35435
35436 if test $pkg_failed = yes; then
35437
35438 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35439         _pkg_short_errors_supported=yes
35440 else
35441         _pkg_short_errors_supported=no
35442 fi
35443         if test $_pkg_short_errors_supported = yes; then
35444                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
35445         else
35446                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
35447         fi
35448         # Put the nasty error message in config.log where it belongs
35449         echo "$PANGOX_PKG_ERRORS" >&5
35450
35451
35452                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
35453 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
35454    { (exit 1); exit 1; }; }
35455
35456
35457 elif test $pkg_failed = untried; then
35458
35459                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
35460 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
35461    { (exit 1); exit 1; }; }
35462
35463
35464 else
35465         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
35466         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
35467         { echo "$as_me:$LINENO: result: yes" >&5
35468 echo "${ECHO_T}yes" >&6; }
35469
35470                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
35471                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
35472                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
35473
35474 fi
35475
35476 pkg_failed=no
35477 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
35478 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
35479
35480 if test -n "$PKG_CONFIG"; then
35481     if test -n "$PANGOFT2_CFLAGS"; then
35482         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
35483     else
35484         if test -n "$PKG_CONFIG" && \
35485     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
35486   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
35487   ac_status=$?
35488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489   (exit $ac_status); }; then
35490   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
35491 else
35492   pkg_failed=yes
35493 fi
35494     fi
35495 else
35496         pkg_failed=untried
35497 fi
35498 if test -n "$PKG_CONFIG"; then
35499     if test -n "$PANGOFT2_LIBS"; then
35500         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
35501     else
35502         if test -n "$PKG_CONFIG" && \
35503     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
35504   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
35505   ac_status=$?
35506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507   (exit $ac_status); }; then
35508   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
35509 else
35510   pkg_failed=yes
35511 fi
35512     fi
35513 else
35514         pkg_failed=untried
35515 fi
35516
35517
35518
35519 if test $pkg_failed = yes; then
35520
35521 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35522         _pkg_short_errors_supported=yes
35523 else
35524         _pkg_short_errors_supported=no
35525 fi
35526         if test $_pkg_short_errors_supported = yes; then
35527                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
35528         else
35529                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
35530         fi
35531         # Put the nasty error message in config.log where it belongs
35532         echo "$PANGOFT2_PKG_ERRORS" >&5
35533
35534
35535                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
35536 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
35537                     wxUSE_PRINTING_ARCHITECTURE="no"
35538
35539
35540 elif test $pkg_failed = untried; then
35541
35542                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
35543 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
35544                     wxUSE_PRINTING_ARCHITECTURE="no"
35545
35546
35547 else
35548         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
35549         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
35550         { echo "$as_me:$LINENO: result: yes" >&5
35551 echo "${ECHO_T}yes" >&6; }
35552
35553                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
35554                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
35555                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
35556
35557 fi
35558
35559 pkg_failed=no
35560 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
35561 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
35562
35563 if test -n "$PKG_CONFIG"; then
35564     if test -n "$PANGOXFT_CFLAGS"; then
35565         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
35566     else
35567         if test -n "$PKG_CONFIG" && \
35568     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
35569   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
35570   ac_status=$?
35571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572   (exit $ac_status); }; then
35573   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
35574 else
35575   pkg_failed=yes
35576 fi
35577     fi
35578 else
35579         pkg_failed=untried
35580 fi
35581 if test -n "$PKG_CONFIG"; then
35582     if test -n "$PANGOXFT_LIBS"; then
35583         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
35584     else
35585         if test -n "$PKG_CONFIG" && \
35586     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
35587   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
35588   ac_status=$?
35589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590   (exit $ac_status); }; then
35591   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
35592 else
35593   pkg_failed=yes
35594 fi
35595     fi
35596 else
35597         pkg_failed=untried
35598 fi
35599
35600
35601
35602 if test $pkg_failed = yes; then
35603
35604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35605         _pkg_short_errors_supported=yes
35606 else
35607         _pkg_short_errors_supported=no
35608 fi
35609         if test $_pkg_short_errors_supported = yes; then
35610                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
35611         else
35612                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
35613         fi
35614         # Put the nasty error message in config.log where it belongs
35615         echo "$PANGOXFT_PKG_ERRORS" >&5
35616
35617
35618                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
35619 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
35620
35621
35622 elif test $pkg_failed = untried; then
35623
35624                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
35625 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
35626
35627
35628 else
35629         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
35630         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
35631         { echo "$as_me:$LINENO: result: yes" >&5
35632 echo "${ECHO_T}yes" >&6; }
35633
35634                     cat >>confdefs.h <<\_ACEOF
35635 #define HAVE_PANGO_XFT 1
35636 _ACEOF
35637
35638                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
35639                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
35640                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
35641
35642 fi
35643             save_LIBS="$LIBS"
35644             LIBS="$LIBS $PANGOX_LIBS"
35645
35646 for ac_func in pango_font_family_is_monospace
35647 do
35648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35652   echo $ECHO_N "(cached) $ECHO_C" >&6
35653 else
35654   cat >conftest.$ac_ext <<_ACEOF
35655 /* confdefs.h.  */
35656 _ACEOF
35657 cat confdefs.h >>conftest.$ac_ext
35658 cat >>conftest.$ac_ext <<_ACEOF
35659 /* end confdefs.h.  */
35660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35662 #define $ac_func innocuous_$ac_func
35663
35664 /* System header to define __stub macros and hopefully few prototypes,
35665     which can conflict with char $ac_func (); below.
35666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35667     <limits.h> exists even on freestanding compilers.  */
35668
35669 #ifdef __STDC__
35670 # include <limits.h>
35671 #else
35672 # include <assert.h>
35673 #endif
35674
35675 #undef $ac_func
35676
35677 /* Override any GCC internal prototype to avoid an error.
35678    Use char because int might match the return type of a GCC
35679    builtin and then its argument prototype would still apply.  */
35680 #ifdef __cplusplus
35681 extern "C"
35682 #endif
35683 char $ac_func ();
35684 /* The GNU C library defines this for functions which it implements
35685     to always fail with ENOSYS.  Some functions are actually named
35686     something starting with __ and the normal name is an alias.  */
35687 #if defined __stub_$ac_func || defined __stub___$ac_func
35688 choke me
35689 #endif
35690
35691 int
35692 main ()
35693 {
35694 return $ac_func ();
35695   ;
35696   return 0;
35697 }
35698 _ACEOF
35699 rm -f conftest.$ac_objext conftest$ac_exeext
35700 if { (ac_try="$ac_link"
35701 case "(($ac_try" in
35702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35703   *) ac_try_echo=$ac_try;;
35704 esac
35705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35706   (eval "$ac_link") 2>conftest.er1
35707   ac_status=$?
35708   grep -v '^ *+' conftest.er1 >conftest.err
35709   rm -f conftest.er1
35710   cat conftest.err >&5
35711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712   (exit $ac_status); } &&
35713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35714   { (case "(($ac_try" in
35715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35716   *) ac_try_echo=$ac_try;;
35717 esac
35718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35719   (eval "$ac_try") 2>&5
35720   ac_status=$?
35721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35722   (exit $ac_status); }; } &&
35723          { ac_try='test -s conftest$ac_exeext'
35724   { (case "(($ac_try" in
35725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35726   *) ac_try_echo=$ac_try;;
35727 esac
35728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35729   (eval "$ac_try") 2>&5
35730   ac_status=$?
35731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732   (exit $ac_status); }; }; then
35733   eval "$as_ac_var=yes"
35734 else
35735   echo "$as_me: failed program was:" >&5
35736 sed 's/^/| /' conftest.$ac_ext >&5
35737
35738         eval "$as_ac_var=no"
35739 fi
35740
35741 rm -f core conftest.err conftest.$ac_objext \
35742       conftest$ac_exeext conftest.$ac_ext
35743 fi
35744 ac_res=`eval echo '${'$as_ac_var'}'`
35745                { echo "$as_me:$LINENO: result: $ac_res" >&5
35746 echo "${ECHO_T}$ac_res" >&6; }
35747 if test `eval echo '${'$as_ac_var'}'` = yes; then
35748   cat >>confdefs.h <<_ACEOF
35749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35750 _ACEOF
35751
35752 fi
35753 done
35754
35755             LIBS="$save_LIBS"
35756         fi
35757
35758         wxUSE_UNIVERSAL="yes"
35759
35760         if test "$wxUSE_NANOX" = "yes"; then
35761             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
35762             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"
35763             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
35764         else
35765             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
35766         fi
35767
35768         TOOLKIT=X11
35769         GUIDIST=X11_DIST
35770     fi
35771
35772     if test "$wxUSE_MOTIF" = 1; then
35773         if test "$wxUSE_UNICODE" = "yes"; then
35774             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
35775 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
35776    { (exit 1); exit 1; }; }
35777         fi
35778
35779         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
35780 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
35781
35782 ac_find_includes=
35783 for ac_dir in $SEARCH_INCLUDE /usr/include;
35784   do
35785     if test -f "$ac_dir/Xm/Xm.h"; then
35786       ac_find_includes=$ac_dir
35787       break
35788     fi
35789   done
35790
35791         if test "$ac_find_includes" != "" ; then
35792             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35793 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35794
35795     if test "x$ac_find_includes" = "x/usr/include"; then
35796     ac_path_to_include=""
35797   else
35798     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
35799     result=$?
35800     if test $result = 0; then
35801       ac_path_to_include=""
35802     else
35803       ac_path_to_include=" -I$ac_find_includes"
35804     fi
35805   fi
35806
35807             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
35808         else
35809             save_CFLAGS=$CFLAGS
35810             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35811
35812             cat >conftest.$ac_ext <<_ACEOF
35813 /* confdefs.h.  */
35814 _ACEOF
35815 cat confdefs.h >>conftest.$ac_ext
35816 cat >>conftest.$ac_ext <<_ACEOF
35817 /* end confdefs.h.  */
35818
35819                     #include <Xm/Xm.h>
35820
35821 int
35822 main ()
35823 {
35824
35825                     int version;
35826                     version = xmUseVersion;
35827
35828   ;
35829   return 0;
35830 }
35831 _ACEOF
35832 rm -f conftest.$ac_objext
35833 if { (ac_try="$ac_compile"
35834 case "(($ac_try" in
35835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35836   *) ac_try_echo=$ac_try;;
35837 esac
35838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35839   (eval "$ac_compile") 2>conftest.er1
35840   ac_status=$?
35841   grep -v '^ *+' conftest.er1 >conftest.err
35842   rm -f conftest.er1
35843   cat conftest.err >&5
35844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845   (exit $ac_status); } &&
35846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35847   { (case "(($ac_try" in
35848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35849   *) ac_try_echo=$ac_try;;
35850 esac
35851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35852   (eval "$ac_try") 2>&5
35853   ac_status=$?
35854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855   (exit $ac_status); }; } &&
35856          { ac_try='test -s conftest.$ac_objext'
35857   { (case "(($ac_try" in
35858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35859   *) ac_try_echo=$ac_try;;
35860 esac
35861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35862   (eval "$ac_try") 2>&5
35863   ac_status=$?
35864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865   (exit $ac_status); }; }; then
35866
35867                     { echo "$as_me:$LINENO: result: found in default search path" >&5
35868 echo "${ECHO_T}found in default search path" >&6; }
35869                     COMPILED_X_PROGRAM=1
35870
35871 else
35872   echo "$as_me: failed program was:" >&5
35873 sed 's/^/| /' conftest.$ac_ext >&5
35874
35875
35876                     { echo "$as_me:$LINENO: result: no" >&5
35877 echo "${ECHO_T}no" >&6; }
35878                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
35879 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
35880    { (exit 1); exit 1; }; }
35881
35882
35883 fi
35884
35885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35886
35887             CFLAGS=$save_CFLAGS
35888         fi
35889
35890
35891         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
35892 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
35893
35894   ac_find_libraries=
35895   for ac_dir in $SEARCH_LIB;
35896   do
35897     for ac_extension in a so sl dylib dll.a; do
35898       if test -f "$ac_dir/libXm.$ac_extension"; then
35899         ac_find_libraries=$ac_dir
35900         break 2
35901       fi
35902     done
35903   done
35904
35905
35906         if test "x$ac_find_libraries" != "x" ; then
35907             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
35908 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
35909
35910
35911     if test "$ac_find_libraries" = "default location"; then
35912     ac_path_to_link=""
35913   else
35914     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
35915     result=$?
35916     if test $result = 0; then
35917       ac_path_to_link=""
35918     else
35919       ac_path_to_link=" -L$ac_find_libraries"
35920     fi
35921   fi
35922
35923             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
35924         else
35925                                                 save_CFLAGS=$CFLAGS
35926             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35927             save_LIBS="$LIBS"
35928             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
35929
35930             cat >conftest.$ac_ext <<_ACEOF
35931 /* confdefs.h.  */
35932 _ACEOF
35933 cat confdefs.h >>conftest.$ac_ext
35934 cat >>conftest.$ac_ext <<_ACEOF
35935 /* end confdefs.h.  */
35936
35937                     #include <Xm/Xm.h>
35938
35939 int
35940 main ()
35941 {
35942
35943                     int version;
35944                     version = xmUseVersion;
35945
35946   ;
35947   return 0;
35948 }
35949 _ACEOF
35950 rm -f conftest.$ac_objext conftest$ac_exeext
35951 if { (ac_try="$ac_link"
35952 case "(($ac_try" in
35953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35954   *) ac_try_echo=$ac_try;;
35955 esac
35956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35957   (eval "$ac_link") 2>conftest.er1
35958   ac_status=$?
35959   grep -v '^ *+' conftest.er1 >conftest.err
35960   rm -f conftest.er1
35961   cat conftest.err >&5
35962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963   (exit $ac_status); } &&
35964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
35971   ac_status=$?
35972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973   (exit $ac_status); }; } &&
35974          { ac_try='test -s conftest$ac_exeext'
35975   { (case "(($ac_try" in
35976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35977   *) ac_try_echo=$ac_try;;
35978 esac
35979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35980   (eval "$ac_try") 2>&5
35981   ac_status=$?
35982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983   (exit $ac_status); }; }; then
35984
35985                     { echo "$as_me:$LINENO: result: found in default search path" >&5
35986 echo "${ECHO_T}found in default search path" >&6; }
35987                     COMPILED_X_PROGRAM=1
35988
35989 else
35990   echo "$as_me: failed program was:" >&5
35991 sed 's/^/| /' conftest.$ac_ext >&5
35992
35993
35994                     { echo "$as_me:$LINENO: result: no" >&5
35995 echo "${ECHO_T}no" >&6; }
35996                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
35997 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
35998    { (exit 1); exit 1; }; }
35999
36000
36001 fi
36002
36003 rm -f core conftest.err conftest.$ac_objext \
36004       conftest$ac_exeext conftest.$ac_ext
36005
36006             CFLAGS=$save_CFLAGS
36007             LIBS="$save_LIBS"
36008         fi
36009
36010         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
36011 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
36012         libp_link=""
36013         libsm_ice_link=""
36014         libs_found=0
36015         for libp in "" " -lXp"; do
36016             if test "$libs_found" = "0"; then
36017                 for libsm_ice in "" " -lSM -lICE"; do
36018                     if test "$libs_found" = "0"; then
36019                         save_LIBS="$LIBS"
36020                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
36021                         save_CFLAGS=$CFLAGS
36022                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
36023
36024                         cat >conftest.$ac_ext <<_ACEOF
36025 /* confdefs.h.  */
36026 _ACEOF
36027 cat confdefs.h >>conftest.$ac_ext
36028 cat >>conftest.$ac_ext <<_ACEOF
36029 /* end confdefs.h.  */
36030
36031                                 #include <Xm/Xm.h>
36032                                 #include <Xm/List.h>
36033
36034 int
36035 main ()
36036 {
36037
36038                                 XmString string = NULL;
36039                                 Widget w = NULL;
36040                                 int position = 0;
36041                                 XmListAddItem(w, string, position);
36042
36043   ;
36044   return 0;
36045 }
36046 _ACEOF
36047 rm -f conftest.$ac_objext conftest$ac_exeext
36048 if { (ac_try="$ac_link"
36049 case "(($ac_try" in
36050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36051   *) ac_try_echo=$ac_try;;
36052 esac
36053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36054   (eval "$ac_link") 2>conftest.er1
36055   ac_status=$?
36056   grep -v '^ *+' conftest.er1 >conftest.err
36057   rm -f conftest.er1
36058   cat conftest.err >&5
36059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060   (exit $ac_status); } &&
36061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36062   { (case "(($ac_try" in
36063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36064   *) ac_try_echo=$ac_try;;
36065 esac
36066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36067   (eval "$ac_try") 2>&5
36068   ac_status=$?
36069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070   (exit $ac_status); }; } &&
36071          { ac_try='test -s conftest$ac_exeext'
36072   { (case "(($ac_try" in
36073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36074   *) ac_try_echo=$ac_try;;
36075 esac
36076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36077   (eval "$ac_try") 2>&5
36078   ac_status=$?
36079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080   (exit $ac_status); }; }; then
36081
36082                                 libp_link="$libp"
36083                                 libsm_ice_link="$libsm_ice"
36084                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
36085 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
36086                                 libs_found=1
36087
36088 else
36089   echo "$as_me: failed program was:" >&5
36090 sed 's/^/| /' conftest.$ac_ext >&5
36091
36092
36093
36094 fi
36095
36096 rm -f core conftest.err conftest.$ac_objext \
36097       conftest$ac_exeext conftest.$ac_ext
36098
36099                         LIBS="$save_LIBS"
36100                         CFLAGS=$save_CFLAGS
36101                     fi
36102                 done
36103             fi
36104         done
36105
36106         if test "$libs_found" = "0"; then
36107             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
36108 echo "${ECHO_T}can't find the right libraries" >&6; }
36109             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
36110 echo "$as_me: error: can't link a simple motif program" >&2;}
36111    { (exit 1); exit 1; }; }
36112         fi
36113
36114                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
36115 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
36116 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
36117   echo $ECHO_N "(cached) $ECHO_C" >&6
36118 else
36119   ac_check_lib_save_LIBS=$LIBS
36120 LIBS="-lSgm  $LIBS"
36121 cat >conftest.$ac_ext <<_ACEOF
36122 /* confdefs.h.  */
36123 _ACEOF
36124 cat confdefs.h >>conftest.$ac_ext
36125 cat >>conftest.$ac_ext <<_ACEOF
36126 /* end confdefs.h.  */
36127
36128 /* Override any GCC internal prototype to avoid an error.
36129    Use char because int might match the return type of a GCC
36130    builtin and then its argument prototype would still apply.  */
36131 #ifdef __cplusplus
36132 extern "C"
36133 #endif
36134 char SgCreateList ();
36135 int
36136 main ()
36137 {
36138 return SgCreateList ();
36139   ;
36140   return 0;
36141 }
36142 _ACEOF
36143 rm -f conftest.$ac_objext conftest$ac_exeext
36144 if { (ac_try="$ac_link"
36145 case "(($ac_try" in
36146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36147   *) ac_try_echo=$ac_try;;
36148 esac
36149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36150   (eval "$ac_link") 2>conftest.er1
36151   ac_status=$?
36152   grep -v '^ *+' conftest.er1 >conftest.err
36153   rm -f conftest.er1
36154   cat conftest.err >&5
36155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36156   (exit $ac_status); } &&
36157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36158   { (case "(($ac_try" in
36159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36160   *) ac_try_echo=$ac_try;;
36161 esac
36162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36163   (eval "$ac_try") 2>&5
36164   ac_status=$?
36165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166   (exit $ac_status); }; } &&
36167          { ac_try='test -s conftest$ac_exeext'
36168   { (case "(($ac_try" in
36169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36170   *) ac_try_echo=$ac_try;;
36171 esac
36172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36173   (eval "$ac_try") 2>&5
36174   ac_status=$?
36175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176   (exit $ac_status); }; }; then
36177   ac_cv_lib_Sgm_SgCreateList=yes
36178 else
36179   echo "$as_me: failed program was:" >&5
36180 sed 's/^/| /' conftest.$ac_ext >&5
36181
36182         ac_cv_lib_Sgm_SgCreateList=no
36183 fi
36184
36185 rm -f core conftest.err conftest.$ac_objext \
36186       conftest$ac_exeext conftest.$ac_ext
36187 LIBS=$ac_check_lib_save_LIBS
36188 fi
36189 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
36190 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
36191 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
36192   libsgm_link=" -lSgm"
36193 fi
36194
36195
36196         save_CFLAGS=$CFLAGS
36197         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
36198
36199         { echo "$as_me:$LINENO: checking for Motif 2" >&5
36200 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
36201 if test "${wx_cv_lib_motif2+set}" = set; then
36202   echo $ECHO_N "(cached) $ECHO_C" >&6
36203 else
36204   cat >conftest.$ac_ext <<_ACEOF
36205 /* confdefs.h.  */
36206 _ACEOF
36207 cat confdefs.h >>conftest.$ac_ext
36208 cat >>conftest.$ac_ext <<_ACEOF
36209 /* end confdefs.h.  */
36210
36211                             #include <Xm/Xm.h>
36212
36213 int
36214 main ()
36215 {
36216
36217                             #if XmVersion < 2000
36218                             Not Motif 2
36219                             #endif
36220
36221   ;
36222   return 0;
36223 }
36224 _ACEOF
36225 rm -f conftest.$ac_objext
36226 if { (ac_try="$ac_compile"
36227 case "(($ac_try" in
36228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36229   *) ac_try_echo=$ac_try;;
36230 esac
36231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36232   (eval "$ac_compile") 2>conftest.er1
36233   ac_status=$?
36234   grep -v '^ *+' conftest.er1 >conftest.err
36235   rm -f conftest.er1
36236   cat conftest.err >&5
36237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36238   (exit $ac_status); } &&
36239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36240   { (case "(($ac_try" in
36241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36242   *) ac_try_echo=$ac_try;;
36243 esac
36244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36245   (eval "$ac_try") 2>&5
36246   ac_status=$?
36247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248   (exit $ac_status); }; } &&
36249          { ac_try='test -s conftest.$ac_objext'
36250   { (case "(($ac_try" in
36251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36252   *) ac_try_echo=$ac_try;;
36253 esac
36254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36255   (eval "$ac_try") 2>&5
36256   ac_status=$?
36257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258   (exit $ac_status); }; }; then
36259   wx_cv_lib_motif2="yes"
36260 else
36261   echo "$as_me: failed program was:" >&5
36262 sed 's/^/| /' conftest.$ac_ext >&5
36263
36264         wx_cv_lib_motif2="no"
36265 fi
36266
36267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36268 fi
36269 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
36270 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
36271         if test "$wx_cv_lib_motif2" = "yes"; then
36272             cat >>confdefs.h <<\_ACEOF
36273 #define __WXMOTIF20__ 1
36274 _ACEOF
36275
36276         else
36277             cat >>confdefs.h <<\_ACEOF
36278 #define __WXMOTIF20__ 0
36279 _ACEOF
36280
36281         fi
36282
36283         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
36284 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
36285 if test "${wx_cv_lib_lesstif+set}" = set; then
36286   echo $ECHO_N "(cached) $ECHO_C" >&6
36287 else
36288   cat >conftest.$ac_ext <<_ACEOF
36289 /* confdefs.h.  */
36290 _ACEOF
36291 cat confdefs.h >>conftest.$ac_ext
36292 cat >>conftest.$ac_ext <<_ACEOF
36293 /* end confdefs.h.  */
36294
36295                             #include <Xm/Xm.h>
36296
36297 int
36298 main ()
36299 {
36300
36301                             #if !defined(LesstifVersion) || LesstifVersion <= 0
36302                             Not Lesstif
36303                             #endif
36304
36305   ;
36306   return 0;
36307 }
36308 _ACEOF
36309 rm -f conftest.$ac_objext
36310 if { (ac_try="$ac_compile"
36311 case "(($ac_try" in
36312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36313   *) ac_try_echo=$ac_try;;
36314 esac
36315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36316   (eval "$ac_compile") 2>conftest.er1
36317   ac_status=$?
36318   grep -v '^ *+' conftest.er1 >conftest.err
36319   rm -f conftest.er1
36320   cat conftest.err >&5
36321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322   (exit $ac_status); } &&
36323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36324   { (case "(($ac_try" in
36325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36326   *) ac_try_echo=$ac_try;;
36327 esac
36328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36329   (eval "$ac_try") 2>&5
36330   ac_status=$?
36331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332   (exit $ac_status); }; } &&
36333          { ac_try='test -s conftest.$ac_objext'
36334   { (case "(($ac_try" in
36335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36336   *) ac_try_echo=$ac_try;;
36337 esac
36338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36339   (eval "$ac_try") 2>&5
36340   ac_status=$?
36341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36342   (exit $ac_status); }; }; then
36343   wx_cv_lib_lesstif="yes"
36344 else
36345   echo "$as_me: failed program was:" >&5
36346 sed 's/^/| /' conftest.$ac_ext >&5
36347
36348         wx_cv_lib_lesstif="no"
36349 fi
36350
36351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36352
36353 fi
36354 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
36355 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
36356         if test "$wx_cv_lib_lesstif" = "yes"; then
36357             cat >>confdefs.h <<\_ACEOF
36358 #define __WXLESSTIF__ 1
36359 _ACEOF
36360
36361         else
36362             cat >>confdefs.h <<\_ACEOF
36363 #define __WXLESSTIF__ 0
36364 _ACEOF
36365
36366         fi
36367
36368         CFLAGS=$save_CFLAGS
36369
36370         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
36371         TOOLKIT=MOTIF
36372         GUIDIST=MOTIF_DIST
36373     fi
36374
36375         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
36376                 if test "$wxUSE_LIBXPM" = "sys"; then
36377             { echo "$as_me:$LINENO: checking for Xpm library" >&5
36378 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
36379
36380   ac_find_libraries=
36381   for ac_dir in $SEARCH_LIB;
36382   do
36383     for ac_extension in a so sl dylib dll.a; do
36384       if test -f "$ac_dir/libXpm.$ac_extension"; then
36385         ac_find_libraries=$ac_dir
36386         break 2
36387       fi
36388     done
36389   done
36390
36391             if test "$ac_find_libraries" != "" ; then
36392
36393     if test "$ac_find_libraries" = "default location"; then
36394     ac_path_to_link=""
36395   else
36396     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
36397     result=$?
36398     if test $result = 0; then
36399       ac_path_to_link=""
36400     else
36401       ac_path_to_link=" -L$ac_find_libraries"
36402     fi
36403   fi
36404
36405                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
36406                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
36407 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
36408
36409                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
36410 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
36411 if test "${wx_cv_x11_xpm_h+set}" = set; then
36412   echo $ECHO_N "(cached) $ECHO_C" >&6
36413 else
36414
36415                         save_CFLAGS=$CFLAGS
36416                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
36417
36418                         cat >conftest.$ac_ext <<_ACEOF
36419 /* confdefs.h.  */
36420 _ACEOF
36421 cat confdefs.h >>conftest.$ac_ext
36422 cat >>conftest.$ac_ext <<_ACEOF
36423 /* end confdefs.h.  */
36424
36425                                 #include <X11/xpm.h>
36426
36427 int
36428 main ()
36429 {
36430
36431                                 int version;
36432                                 version = XpmLibraryVersion();
36433
36434   ;
36435   return 0;
36436 }
36437 _ACEOF
36438 rm -f conftest.$ac_objext
36439 if { (ac_try="$ac_compile"
36440 case "(($ac_try" in
36441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36442   *) ac_try_echo=$ac_try;;
36443 esac
36444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36445   (eval "$ac_compile") 2>conftest.er1
36446   ac_status=$?
36447   grep -v '^ *+' conftest.er1 >conftest.err
36448   rm -f conftest.er1
36449   cat conftest.err >&5
36450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451   (exit $ac_status); } &&
36452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36453   { (case "(($ac_try" in
36454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36455   *) ac_try_echo=$ac_try;;
36456 esac
36457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36458   (eval "$ac_try") 2>&5
36459   ac_status=$?
36460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36461   (exit $ac_status); }; } &&
36462          { ac_try='test -s conftest.$ac_objext'
36463   { (case "(($ac_try" in
36464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36465   *) ac_try_echo=$ac_try;;
36466 esac
36467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36468   (eval "$ac_try") 2>&5
36469   ac_status=$?
36470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471   (exit $ac_status); }; }; then
36472   wx_cv_x11_xpm_h=yes
36473 else
36474   echo "$as_me: failed program was:" >&5
36475 sed 's/^/| /' conftest.$ac_ext >&5
36476
36477         wx_cv_x11_xpm_h=no
36478
36479 fi
36480
36481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36482
36483                         CFLAGS=$save_CFLAGS
36484
36485
36486 fi
36487 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
36488 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
36489
36490                 if test $wx_cv_x11_xpm_h = "yes"; then
36491                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
36492                     cat >>confdefs.h <<\_ACEOF
36493 #define wxHAVE_LIB_XPM 1
36494 _ACEOF
36495
36496                 else
36497                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
36498 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
36499                 fi
36500             fi
36501
36502         fi
36503
36504                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
36505 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
36506 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
36507   echo $ECHO_N "(cached) $ECHO_C" >&6
36508 else
36509   ac_check_lib_save_LIBS=$LIBS
36510 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
36511 cat >conftest.$ac_ext <<_ACEOF
36512 /* confdefs.h.  */
36513 _ACEOF
36514 cat confdefs.h >>conftest.$ac_ext
36515 cat >>conftest.$ac_ext <<_ACEOF
36516 /* end confdefs.h.  */
36517
36518 /* Override any GCC internal prototype to avoid an error.
36519    Use char because int might match the return type of a GCC
36520    builtin and then its argument prototype would still apply.  */
36521 #ifdef __cplusplus
36522 extern "C"
36523 #endif
36524 char XShapeQueryExtension ();
36525 int
36526 main ()
36527 {
36528 return XShapeQueryExtension ();
36529   ;
36530   return 0;
36531 }
36532 _ACEOF
36533 rm -f conftest.$ac_objext conftest$ac_exeext
36534 if { (ac_try="$ac_link"
36535 case "(($ac_try" in
36536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36537   *) ac_try_echo=$ac_try;;
36538 esac
36539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36540   (eval "$ac_link") 2>conftest.er1
36541   ac_status=$?
36542   grep -v '^ *+' conftest.er1 >conftest.err
36543   rm -f conftest.er1
36544   cat conftest.err >&5
36545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546   (exit $ac_status); } &&
36547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36548   { (case "(($ac_try" in
36549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36550   *) ac_try_echo=$ac_try;;
36551 esac
36552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36553   (eval "$ac_try") 2>&5
36554   ac_status=$?
36555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556   (exit $ac_status); }; } &&
36557          { ac_try='test -s conftest$ac_exeext'
36558   { (case "(($ac_try" in
36559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36560   *) ac_try_echo=$ac_try;;
36561 esac
36562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36563   (eval "$ac_try") 2>&5
36564   ac_status=$?
36565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566   (exit $ac_status); }; }; then
36567   ac_cv_lib_Xext_XShapeQueryExtension=yes
36568 else
36569   echo "$as_me: failed program was:" >&5
36570 sed 's/^/| /' conftest.$ac_ext >&5
36571
36572         ac_cv_lib_Xext_XShapeQueryExtension=no
36573 fi
36574
36575 rm -f core conftest.err conftest.$ac_objext \
36576       conftest$ac_exeext conftest.$ac_ext
36577 LIBS=$ac_check_lib_save_LIBS
36578 fi
36579 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
36580 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
36581 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
36582
36583                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
36584                       wxHAVE_XEXT_LIB=1
36585
36586 fi
36587
36588
36589         if test "$wxHAVE_XEXT_LIB" = 1; then
36590             save_CFLAGS="$CFLAGS"
36591             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
36592
36593             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
36594 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
36595             cat >conftest.$ac_ext <<_ACEOF
36596 /* confdefs.h.  */
36597 _ACEOF
36598 cat confdefs.h >>conftest.$ac_ext
36599 cat >>conftest.$ac_ext <<_ACEOF
36600 /* end confdefs.h.  */
36601
36602                             #include <X11/Xlib.h>
36603                             #include <X11/extensions/shape.h>
36604
36605 int
36606 main ()
36607 {
36608
36609                             int dummy1, dummy2;
36610                             XShapeQueryExtension((Display*)NULL,
36611                                                  (int*)NULL, (int*)NULL);
36612
36613   ;
36614   return 0;
36615 }
36616 _ACEOF
36617 rm -f conftest.$ac_objext
36618 if { (ac_try="$ac_compile"
36619 case "(($ac_try" in
36620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36621   *) ac_try_echo=$ac_try;;
36622 esac
36623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36624   (eval "$ac_compile") 2>conftest.er1
36625   ac_status=$?
36626   grep -v '^ *+' conftest.er1 >conftest.err
36627   rm -f conftest.er1
36628   cat conftest.err >&5
36629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630   (exit $ac_status); } &&
36631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36632   { (case "(($ac_try" in
36633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36634   *) ac_try_echo=$ac_try;;
36635 esac
36636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36637   (eval "$ac_try") 2>&5
36638   ac_status=$?
36639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640   (exit $ac_status); }; } &&
36641          { ac_try='test -s conftest.$ac_objext'
36642   { (case "(($ac_try" in
36643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36644   *) ac_try_echo=$ac_try;;
36645 esac
36646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36647   (eval "$ac_try") 2>&5
36648   ac_status=$?
36649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650   (exit $ac_status); }; }; then
36651
36652                             cat >>confdefs.h <<\_ACEOF
36653 #define HAVE_XSHAPE 1
36654 _ACEOF
36655
36656                             { echo "$as_me:$LINENO: result: found" >&5
36657 echo "${ECHO_T}found" >&6; }
36658
36659 else
36660   echo "$as_me: failed program was:" >&5
36661 sed 's/^/| /' conftest.$ac_ext >&5
36662
36663
36664                             { echo "$as_me:$LINENO: result: not found" >&5
36665 echo "${ECHO_T}not found" >&6; }
36666
36667 fi
36668
36669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36670             CFLAGS="$save_CFLAGS"
36671
36672         fi
36673     fi
36674
36675     if test "$wxUSE_MAC" = 1; then
36676         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
36677 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
36678         if test "$GCC" = yes; then
36679             { echo "$as_me:$LINENO: result: gcc" >&5
36680 echo "${ECHO_T}gcc" >&6; }
36681             CPPFLAGS_PASCAL="-fpascal-strings"
36682         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
36683             { echo "$as_me:$LINENO: result: xlc" >&5
36684 echo "${ECHO_T}xlc" >&6; }
36685             CPPFLAGS_PASCAL="-qmacpstr"
36686         else
36687             { echo "$as_me:$LINENO: result: none" >&5
36688 echo "${ECHO_T}none" >&6; }
36689         fi
36690
36691         if test "x$wxUSE_UNIX" = "xyes"; then
36692             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
36693         else
36694                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
36695         fi
36696
36697         TOOLKIT=MAC
36698                 GUIDIST=MACX_DIST
36699                         WXBASEPORT="_carbon"
36700     fi
36701
36702     if test "$wxUSE_COCOA" = 1; then
36703         TOOLKIT=COCOA
36704         GUIDIST=COCOA_DIST
36705     fi
36706
36707     if test "$wxUSE_PM" = 1; then
36708         TOOLKIT=PM
36709         GUIDIST=PM_DIST
36710         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
36711 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
36712 if test "${wx_cv_spbcdata+set}" = set; then
36713   echo $ECHO_N "(cached) $ECHO_C" >&6
36714 else
36715
36716                 cat >conftest.$ac_ext <<_ACEOF
36717 /* confdefs.h.  */
36718 _ACEOF
36719 cat confdefs.h >>conftest.$ac_ext
36720 cat >>conftest.$ac_ext <<_ACEOF
36721 /* end confdefs.h.  */
36722
36723                         #define INCL_PM
36724                         #include <os2.h>
36725
36726 int
36727 main ()
36728 {
36729
36730                         SPBCDATA test;
36731
36732   ;
36733   return 0;
36734 }
36735 _ACEOF
36736 rm -f conftest.$ac_objext
36737 if { (ac_try="$ac_compile"
36738 case "(($ac_try" in
36739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36740   *) ac_try_echo=$ac_try;;
36741 esac
36742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36743   (eval "$ac_compile") 2>conftest.er1
36744   ac_status=$?
36745   grep -v '^ *+' conftest.er1 >conftest.err
36746   rm -f conftest.er1
36747   cat conftest.err >&5
36748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749   (exit $ac_status); } &&
36750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36751   { (case "(($ac_try" in
36752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36753   *) ac_try_echo=$ac_try;;
36754 esac
36755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36756   (eval "$ac_try") 2>&5
36757   ac_status=$?
36758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759   (exit $ac_status); }; } &&
36760          { ac_try='test -s conftest.$ac_objext'
36761   { (case "(($ac_try" in
36762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36763   *) ac_try_echo=$ac_try;;
36764 esac
36765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36766   (eval "$ac_try") 2>&5
36767   ac_status=$?
36768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769   (exit $ac_status); }; }; then
36770   wx_cv_spbcdata=yes
36771 else
36772   echo "$as_me: failed program was:" >&5
36773 sed 's/^/| /' conftest.$ac_ext >&5
36774
36775         wx_cv_spbcdata=no
36776
36777 fi
36778
36779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36780
36781
36782 fi
36783 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
36784 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
36785
36786         if test $wx_cv_spbcdata = "yes"; then
36787             cat >>confdefs.h <<\_ACEOF
36788 #define HAVE_SPBCDATA 1
36789 _ACEOF
36790
36791         fi
36792     fi
36793
36794         if test "$TOOLKIT" = "PM" ; then
36795         TOOLKIT_DIR="os2"
36796     else
36797         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
36798     fi
36799
36800     if test "$wxUSE_UNIVERSAL" = "yes"; then
36801         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
36802         WIDGET_SET=univ
36803     fi
36804
36805         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
36806     DISTDIR="wx\$(TOOLKIT)"
36807 else
36808     USE_GUI=0
36809
36810             TOOLKIT_DIR="base"
36811
36812         if test "$USE_WIN32" = 1 ; then
36813                         TOOLKIT="MSW"
36814     fi
36815
36816         GUIDIST="BASE_DIST"
36817     DISTDIR="wxBase"
36818 fi
36819
36820
36821 if test "$wxUSE_GUI" = "yes"; then
36822     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
36823
36824 for ac_header in X11/Xlib.h
36825 do
36826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36828   { echo "$as_me:$LINENO: checking for $ac_header" >&5
36829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36831   echo $ECHO_N "(cached) $ECHO_C" >&6
36832 fi
36833 ac_res=`eval echo '${'$as_ac_Header'}'`
36834                { echo "$as_me:$LINENO: result: $ac_res" >&5
36835 echo "${ECHO_T}$ac_res" >&6; }
36836 else
36837   # Is the header compilable?
36838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36840 cat >conftest.$ac_ext <<_ACEOF
36841 /* confdefs.h.  */
36842 _ACEOF
36843 cat confdefs.h >>conftest.$ac_ext
36844 cat >>conftest.$ac_ext <<_ACEOF
36845 /* end confdefs.h.  */
36846 $ac_includes_default
36847 #include <$ac_header>
36848 _ACEOF
36849 rm -f conftest.$ac_objext
36850 if { (ac_try="$ac_compile"
36851 case "(($ac_try" in
36852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36853   *) ac_try_echo=$ac_try;;
36854 esac
36855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36856   (eval "$ac_compile") 2>conftest.er1
36857   ac_status=$?
36858   grep -v '^ *+' conftest.er1 >conftest.err
36859   rm -f conftest.er1
36860   cat conftest.err >&5
36861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862   (exit $ac_status); } &&
36863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36864   { (case "(($ac_try" in
36865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36866   *) ac_try_echo=$ac_try;;
36867 esac
36868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36869   (eval "$ac_try") 2>&5
36870   ac_status=$?
36871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36872   (exit $ac_status); }; } &&
36873          { ac_try='test -s conftest.$ac_objext'
36874   { (case "(($ac_try" in
36875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36876   *) ac_try_echo=$ac_try;;
36877 esac
36878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36879   (eval "$ac_try") 2>&5
36880   ac_status=$?
36881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882   (exit $ac_status); }; }; then
36883   ac_header_compiler=yes
36884 else
36885   echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36887
36888         ac_header_compiler=no
36889 fi
36890
36891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36893 echo "${ECHO_T}$ac_header_compiler" >&6; }
36894
36895 # Is the header present?
36896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36898 cat >conftest.$ac_ext <<_ACEOF
36899 /* confdefs.h.  */
36900 _ACEOF
36901 cat confdefs.h >>conftest.$ac_ext
36902 cat >>conftest.$ac_ext <<_ACEOF
36903 /* end confdefs.h.  */
36904 #include <$ac_header>
36905 _ACEOF
36906 if { (ac_try="$ac_cpp conftest.$ac_ext"
36907 case "(($ac_try" in
36908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36909   *) ac_try_echo=$ac_try;;
36910 esac
36911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36913   ac_status=$?
36914   grep -v '^ *+' conftest.er1 >conftest.err
36915   rm -f conftest.er1
36916   cat conftest.err >&5
36917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918   (exit $ac_status); } >/dev/null; then
36919   if test -s conftest.err; then
36920     ac_cpp_err=$ac_c_preproc_warn_flag
36921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36922   else
36923     ac_cpp_err=
36924   fi
36925 else
36926   ac_cpp_err=yes
36927 fi
36928 if test -z "$ac_cpp_err"; then
36929   ac_header_preproc=yes
36930 else
36931   echo "$as_me: failed program was:" >&5
36932 sed 's/^/| /' conftest.$ac_ext >&5
36933
36934   ac_header_preproc=no
36935 fi
36936
36937 rm -f conftest.err conftest.$ac_ext
36938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36939 echo "${ECHO_T}$ac_header_preproc" >&6; }
36940
36941 # So?  What about this header?
36942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36943   yes:no: )
36944     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36948     ac_header_preproc=yes
36949     ;;
36950   no:yes:* )
36951     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36953     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36954 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36955     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36957     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36958 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36961     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36963     ( cat <<\_ASBOX
36964 ## ----------------------------------------- ##
36965 ## Report this to wx-dev@lists.wxwidgets.org ##
36966 ## ----------------------------------------- ##
36967 _ASBOX
36968      ) | sed "s/^/$as_me: WARNING:     /" >&2
36969     ;;
36970 esac
36971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36974   echo $ECHO_N "(cached) $ECHO_C" >&6
36975 else
36976   eval "$as_ac_Header=\$ac_header_preproc"
36977 fi
36978 ac_res=`eval echo '${'$as_ac_Header'}'`
36979                { echo "$as_me:$LINENO: result: $ac_res" >&5
36980 echo "${ECHO_T}$ac_res" >&6; }
36981
36982 fi
36983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36984   cat >>confdefs.h <<_ACEOF
36985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36986 _ACEOF
36987
36988 fi
36989
36990 done
36991
36992
36993 for ac_header in X11/XKBlib.h
36994 do
36995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36999   echo $ECHO_N "(cached) $ECHO_C" >&6
37000 else
37001   cat >conftest.$ac_ext <<_ACEOF
37002 /* confdefs.h.  */
37003 _ACEOF
37004 cat confdefs.h >>conftest.$ac_ext
37005 cat >>conftest.$ac_ext <<_ACEOF
37006 /* end confdefs.h.  */
37007
37008                           #if HAVE_X11_XLIB_H
37009                             #include <X11/Xlib.h>
37010                           #endif
37011
37012
37013 #include <$ac_header>
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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37030   { (case "(($ac_try" in
37031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37032   *) ac_try_echo=$ac_try;;
37033 esac
37034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37035   (eval "$ac_try") 2>&5
37036   ac_status=$?
37037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038   (exit $ac_status); }; } &&
37039          { ac_try='test -s conftest.$ac_objext'
37040   { (case "(($ac_try" in
37041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37042   *) ac_try_echo=$ac_try;;
37043 esac
37044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37045   (eval "$ac_try") 2>&5
37046   ac_status=$?
37047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048   (exit $ac_status); }; }; then
37049   eval "$as_ac_Header=yes"
37050 else
37051   echo "$as_me: failed program was:" >&5
37052 sed 's/^/| /' conftest.$ac_ext >&5
37053
37054         eval "$as_ac_Header=no"
37055 fi
37056
37057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37058 fi
37059 ac_res=`eval echo '${'$as_ac_Header'}'`
37060                { echo "$as_me:$LINENO: result: $ac_res" >&5
37061 echo "${ECHO_T}$ac_res" >&6; }
37062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37063   cat >>confdefs.h <<_ACEOF
37064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37065 _ACEOF
37066
37067 fi
37068
37069 done
37070
37071     fi
37072 fi
37073
37074
37075
37076 IODBC_C_SRC=""
37077
37078
37079 if test "$TOOLKIT" != "MSW" ; then
37080
37081     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
37082
37083         if test "${ac_cv_header_sql_h+set}" = set; then
37084   { echo "$as_me:$LINENO: checking for sql.h" >&5
37085 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
37086 if test "${ac_cv_header_sql_h+set}" = set; then
37087   echo $ECHO_N "(cached) $ECHO_C" >&6
37088 fi
37089 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
37090 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
37091 else
37092   # Is the header compilable?
37093 { echo "$as_me:$LINENO: checking sql.h usability" >&5
37094 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
37095 cat >conftest.$ac_ext <<_ACEOF
37096 /* confdefs.h.  */
37097 _ACEOF
37098 cat confdefs.h >>conftest.$ac_ext
37099 cat >>conftest.$ac_ext <<_ACEOF
37100 /* end confdefs.h.  */
37101 $ac_includes_default
37102 #include <sql.h>
37103 _ACEOF
37104 rm -f conftest.$ac_objext
37105 if { (ac_try="$ac_compile"
37106 case "(($ac_try" in
37107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37108   *) ac_try_echo=$ac_try;;
37109 esac
37110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37111   (eval "$ac_compile") 2>conftest.er1
37112   ac_status=$?
37113   grep -v '^ *+' conftest.er1 >conftest.err
37114   rm -f conftest.er1
37115   cat conftest.err >&5
37116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117   (exit $ac_status); } &&
37118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37119   { (case "(($ac_try" in
37120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121   *) ac_try_echo=$ac_try;;
37122 esac
37123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37124   (eval "$ac_try") 2>&5
37125   ac_status=$?
37126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127   (exit $ac_status); }; } &&
37128          { ac_try='test -s conftest.$ac_objext'
37129   { (case "(($ac_try" in
37130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37131   *) ac_try_echo=$ac_try;;
37132 esac
37133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37134   (eval "$ac_try") 2>&5
37135   ac_status=$?
37136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37137   (exit $ac_status); }; }; then
37138   ac_header_compiler=yes
37139 else
37140   echo "$as_me: failed program was:" >&5
37141 sed 's/^/| /' conftest.$ac_ext >&5
37142
37143         ac_header_compiler=no
37144 fi
37145
37146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37148 echo "${ECHO_T}$ac_header_compiler" >&6; }
37149
37150 # Is the header present?
37151 { echo "$as_me:$LINENO: checking sql.h presence" >&5
37152 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
37153 cat >conftest.$ac_ext <<_ACEOF
37154 /* confdefs.h.  */
37155 _ACEOF
37156 cat confdefs.h >>conftest.$ac_ext
37157 cat >>conftest.$ac_ext <<_ACEOF
37158 /* end confdefs.h.  */
37159 #include <sql.h>
37160 _ACEOF
37161 if { (ac_try="$ac_cpp conftest.$ac_ext"
37162 case "(($ac_try" in
37163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37164   *) ac_try_echo=$ac_try;;
37165 esac
37166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37168   ac_status=$?
37169   grep -v '^ *+' conftest.er1 >conftest.err
37170   rm -f conftest.er1
37171   cat conftest.err >&5
37172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173   (exit $ac_status); } >/dev/null; then
37174   if test -s conftest.err; then
37175     ac_cpp_err=$ac_c_preproc_warn_flag
37176     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37177   else
37178     ac_cpp_err=
37179   fi
37180 else
37181   ac_cpp_err=yes
37182 fi
37183 if test -z "$ac_cpp_err"; then
37184   ac_header_preproc=yes
37185 else
37186   echo "$as_me: failed program was:" >&5
37187 sed 's/^/| /' conftest.$ac_ext >&5
37188
37189   ac_header_preproc=no
37190 fi
37191
37192 rm -f conftest.err conftest.$ac_ext
37193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37194 echo "${ECHO_T}$ac_header_preproc" >&6; }
37195
37196 # So?  What about this header?
37197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37198   yes:no: )
37199     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
37200 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37201     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
37202 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
37203     ac_header_preproc=yes
37204     ;;
37205   no:yes:* )
37206     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
37207 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
37208     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
37209 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
37210     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
37211 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
37212     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
37213 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37214     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
37215 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
37216     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
37217 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
37218     ( cat <<\_ASBOX
37219 ## ----------------------------------------- ##
37220 ## Report this to wx-dev@lists.wxwidgets.org ##
37221 ## ----------------------------------------- ##
37222 _ASBOX
37223      ) | sed "s/^/$as_me: WARNING:     /" >&2
37224     ;;
37225 esac
37226 { echo "$as_me:$LINENO: checking for sql.h" >&5
37227 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
37228 if test "${ac_cv_header_sql_h+set}" = set; then
37229   echo $ECHO_N "(cached) $ECHO_C" >&6
37230 else
37231   ac_cv_header_sql_h=$ac_header_preproc
37232 fi
37233 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
37234 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
37235
37236 fi
37237 if test $ac_cv_header_sql_h = yes; then
37238   found_sql_h=1
37239 fi
37240
37241
37242         if test "x$found_sql_h" = "x1" ; then
37243             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
37244 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
37245 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
37246   echo $ECHO_N "(cached) $ECHO_C" >&6
37247 else
37248   ac_check_lib_save_LIBS=$LIBS
37249 LIBS="-liodbc  $LIBS"
37250 cat >conftest.$ac_ext <<_ACEOF
37251 /* confdefs.h.  */
37252 _ACEOF
37253 cat confdefs.h >>conftest.$ac_ext
37254 cat >>conftest.$ac_ext <<_ACEOF
37255 /* end confdefs.h.  */
37256
37257 /* Override any GCC internal prototype to avoid an error.
37258    Use char because int might match the return type of a GCC
37259    builtin and then its argument prototype would still apply.  */
37260 #ifdef __cplusplus
37261 extern "C"
37262 #endif
37263 char SQLAllocEnv ();
37264 int
37265 main ()
37266 {
37267 return SQLAllocEnv ();
37268   ;
37269   return 0;
37270 }
37271 _ACEOF
37272 rm -f conftest.$ac_objext conftest$ac_exeext
37273 if { (ac_try="$ac_link"
37274 case "(($ac_try" in
37275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37276   *) ac_try_echo=$ac_try;;
37277 esac
37278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37279   (eval "$ac_link") 2>conftest.er1
37280   ac_status=$?
37281   grep -v '^ *+' conftest.er1 >conftest.err
37282   rm -f conftest.er1
37283   cat conftest.err >&5
37284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37285   (exit $ac_status); } &&
37286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
37293   ac_status=$?
37294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37295   (exit $ac_status); }; } &&
37296          { ac_try='test -s conftest$ac_exeext'
37297   { (case "(($ac_try" in
37298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37299   *) ac_try_echo=$ac_try;;
37300 esac
37301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37302   (eval "$ac_try") 2>&5
37303   ac_status=$?
37304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305   (exit $ac_status); }; }; then
37306   ac_cv_lib_iodbc_SQLAllocEnv=yes
37307 else
37308   echo "$as_me: failed program was:" >&5
37309 sed 's/^/| /' conftest.$ac_ext >&5
37310
37311         ac_cv_lib_iodbc_SQLAllocEnv=no
37312 fi
37313
37314 rm -f core conftest.err conftest.$ac_objext \
37315       conftest$ac_exeext conftest.$ac_ext
37316 LIBS=$ac_check_lib_save_LIBS
37317 fi
37318 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
37319 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
37320 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
37321   ODBC_LINK=" -liodbc"
37322 else
37323
37324                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
37325 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
37326 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
37327   echo $ECHO_N "(cached) $ECHO_C" >&6
37328 else
37329   ac_check_lib_save_LIBS=$LIBS
37330 LIBS="-lunixodbc  $LIBS"
37331 cat >conftest.$ac_ext <<_ACEOF
37332 /* confdefs.h.  */
37333 _ACEOF
37334 cat confdefs.h >>conftest.$ac_ext
37335 cat >>conftest.$ac_ext <<_ACEOF
37336 /* end confdefs.h.  */
37337
37338 /* Override any GCC internal prototype to avoid an error.
37339    Use char because int might match the return type of a GCC
37340    builtin and then its argument prototype would still apply.  */
37341 #ifdef __cplusplus
37342 extern "C"
37343 #endif
37344 char SQLAllocEnv ();
37345 int
37346 main ()
37347 {
37348 return SQLAllocEnv ();
37349   ;
37350   return 0;
37351 }
37352 _ACEOF
37353 rm -f conftest.$ac_objext conftest$ac_exeext
37354 if { (ac_try="$ac_link"
37355 case "(($ac_try" in
37356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37357   *) ac_try_echo=$ac_try;;
37358 esac
37359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37360   (eval "$ac_link") 2>conftest.er1
37361   ac_status=$?
37362   grep -v '^ *+' conftest.er1 >conftest.err
37363   rm -f conftest.er1
37364   cat conftest.err >&5
37365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366   (exit $ac_status); } &&
37367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37368   { (case "(($ac_try" in
37369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37370   *) ac_try_echo=$ac_try;;
37371 esac
37372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37373   (eval "$ac_try") 2>&5
37374   ac_status=$?
37375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37376   (exit $ac_status); }; } &&
37377          { ac_try='test -s conftest$ac_exeext'
37378   { (case "(($ac_try" in
37379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37380   *) ac_try_echo=$ac_try;;
37381 esac
37382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37383   (eval "$ac_try") 2>&5
37384   ac_status=$?
37385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386   (exit $ac_status); }; }; then
37387   ac_cv_lib_unixodbc_SQLAllocEnv=yes
37388 else
37389   echo "$as_me: failed program was:" >&5
37390 sed 's/^/| /' conftest.$ac_ext >&5
37391
37392         ac_cv_lib_unixodbc_SQLAllocEnv=no
37393 fi
37394
37395 rm -f core conftest.err conftest.$ac_objext \
37396       conftest$ac_exeext conftest.$ac_ext
37397 LIBS=$ac_check_lib_save_LIBS
37398 fi
37399 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
37400 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
37401 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
37402   ODBC_LINK=" -lunixodbc"
37403 else
37404
37405                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
37406 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
37407 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
37408   echo $ECHO_N "(cached) $ECHO_C" >&6
37409 else
37410   ac_check_lib_save_LIBS=$LIBS
37411 LIBS="-lodbc  $LIBS"
37412 cat >conftest.$ac_ext <<_ACEOF
37413 /* confdefs.h.  */
37414 _ACEOF
37415 cat confdefs.h >>conftest.$ac_ext
37416 cat >>conftest.$ac_ext <<_ACEOF
37417 /* end confdefs.h.  */
37418
37419 /* Override any GCC internal prototype to avoid an error.
37420    Use char because int might match the return type of a GCC
37421    builtin and then its argument prototype would still apply.  */
37422 #ifdef __cplusplus
37423 extern "C"
37424 #endif
37425 char SQLAllocEnv ();
37426 int
37427 main ()
37428 {
37429 return SQLAllocEnv ();
37430   ;
37431   return 0;
37432 }
37433 _ACEOF
37434 rm -f conftest.$ac_objext conftest$ac_exeext
37435 if { (ac_try="$ac_link"
37436 case "(($ac_try" in
37437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37438   *) ac_try_echo=$ac_try;;
37439 esac
37440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37441   (eval "$ac_link") 2>conftest.er1
37442   ac_status=$?
37443   grep -v '^ *+' conftest.er1 >conftest.err
37444   rm -f conftest.er1
37445   cat conftest.err >&5
37446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447   (exit $ac_status); } &&
37448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37449   { (case "(($ac_try" in
37450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37451   *) ac_try_echo=$ac_try;;
37452 esac
37453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37454   (eval "$ac_try") 2>&5
37455   ac_status=$?
37456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457   (exit $ac_status); }; } &&
37458          { ac_try='test -s conftest$ac_exeext'
37459   { (case "(($ac_try" in
37460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37461   *) ac_try_echo=$ac_try;;
37462 esac
37463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37464   (eval "$ac_try") 2>&5
37465   ac_status=$?
37466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37467   (exit $ac_status); }; }; then
37468   ac_cv_lib_odbc_SQLAllocEnv=yes
37469 else
37470   echo "$as_me: failed program was:" >&5
37471 sed 's/^/| /' conftest.$ac_ext >&5
37472
37473         ac_cv_lib_odbc_SQLAllocEnv=no
37474 fi
37475
37476 rm -f core conftest.err conftest.$ac_objext \
37477       conftest$ac_exeext conftest.$ac_ext
37478 LIBS=$ac_check_lib_save_LIBS
37479 fi
37480 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
37481 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
37482 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
37483   ODBC_LINK=" -lodbc"
37484 fi
37485
37486
37487 fi
37488
37489
37490 fi
37491
37492         fi
37493         if test "x$ODBC_LINK" = "x" ; then
37494             if test "$wxUSE_ODBC" = "sys" ; then
37495                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
37496 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
37497    { (exit 1); exit 1; }; }
37498             else
37499                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
37500 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
37501                 wxUSE_ODBC=builtin
37502             fi
37503         else
37504                         wxUSE_ODBC=sys
37505         fi
37506     fi
37507
37508     if test "$wxUSE_ODBC" = "builtin" ; then
37509         cat >>confdefs.h <<\_ACEOF
37510 #define wxUSE_BUILTIN_IODBC 1
37511 _ACEOF
37512
37513     fi
37514 fi
37515
37516 if test "$wxUSE_ODBC" != "no" ; then
37517     cat >>confdefs.h <<\_ACEOF
37518 #define wxUSE_ODBC 1
37519 _ACEOF
37520
37521     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
37522
37523         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
37524 fi
37525
37526
37527 if test "$wxUSE_DISPLAY" = "yes"; then
37528     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
37529         { echo "$as_me:$LINENO: checking for Xinerama" >&5
37530 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
37531
37532   ac_find_libraries=
37533   for ac_dir in $SEARCH_LIB;
37534   do
37535     for ac_extension in a so sl dylib dll.a; do
37536       if test -f "$ac_dir/libXinerama.$ac_extension"; then
37537         ac_find_libraries=$ac_dir
37538         break 2
37539       fi
37540     done
37541   done
37542
37543         if test "$ac_find_libraries" != "" ; then
37544
37545     if test "$ac_find_libraries" = "default location"; then
37546     ac_path_to_link=""
37547   else
37548     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
37549     result=$?
37550     if test $result = 0; then
37551       ac_path_to_link=""
37552     else
37553       ac_path_to_link=" -L$ac_find_libraries"
37554     fi
37555   fi
37556
37557             if test "$ac_path_to_link" != " -L/usr/lib" ; then
37558                 LDFLAGS="$LDFLAGS $ac_path_to_link"
37559             fi
37560             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
37561             { echo "$as_me:$LINENO: result: yes" >&5
37562 echo "${ECHO_T}yes" >&6; }
37563
37564             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
37565 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
37566
37567   ac_find_libraries=
37568   for ac_dir in $SEARCH_LIB;
37569   do
37570     for ac_extension in a so sl dylib dll.a; do
37571       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
37572         ac_find_libraries=$ac_dir
37573         break 2
37574       fi
37575     done
37576   done
37577
37578             if test "$ac_find_libraries" != "" ; then
37579                 { echo "$as_me:$LINENO: result: yes" >&5
37580 echo "${ECHO_T}yes" >&6; }
37581
37582 for ac_header in X11/extensions/xf86vmode.h
37583 do
37584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37588   echo $ECHO_N "(cached) $ECHO_C" >&6
37589 else
37590   cat >conftest.$ac_ext <<_ACEOF
37591 /* confdefs.h.  */
37592 _ACEOF
37593 cat confdefs.h >>conftest.$ac_ext
37594 cat >>conftest.$ac_ext <<_ACEOF
37595 /* end confdefs.h.  */
37596
37597                                       #if HAVE_X11_XLIB_H
37598                                         #include <X11/Xlib.h>
37599                                       #endif
37600
37601
37602 #include <$ac_header>
37603 _ACEOF
37604 rm -f conftest.$ac_objext
37605 if { (ac_try="$ac_compile"
37606 case "(($ac_try" in
37607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37608   *) ac_try_echo=$ac_try;;
37609 esac
37610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37611   (eval "$ac_compile") 2>conftest.er1
37612   ac_status=$?
37613   grep -v '^ *+' conftest.er1 >conftest.err
37614   rm -f conftest.er1
37615   cat conftest.err >&5
37616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617   (exit $ac_status); } &&
37618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37619   { (case "(($ac_try" in
37620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37621   *) ac_try_echo=$ac_try;;
37622 esac
37623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37624   (eval "$ac_try") 2>&5
37625   ac_status=$?
37626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627   (exit $ac_status); }; } &&
37628          { ac_try='test -s conftest.$ac_objext'
37629   { (case "(($ac_try" in
37630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37631   *) ac_try_echo=$ac_try;;
37632 esac
37633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37634   (eval "$ac_try") 2>&5
37635   ac_status=$?
37636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37637   (exit $ac_status); }; }; then
37638   eval "$as_ac_Header=yes"
37639 else
37640   echo "$as_me: failed program was:" >&5
37641 sed 's/^/| /' conftest.$ac_ext >&5
37642
37643         eval "$as_ac_Header=no"
37644 fi
37645
37646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37647 fi
37648 ac_res=`eval echo '${'$as_ac_Header'}'`
37649                { echo "$as_me:$LINENO: result: $ac_res" >&5
37650 echo "${ECHO_T}$ac_res" >&6; }
37651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37652   cat >>confdefs.h <<_ACEOF
37653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37654 _ACEOF
37655
37656                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
37657
37658 fi
37659
37660 done
37661
37662             else
37663                 { echo "$as_me:$LINENO: result: no" >&5
37664 echo "${ECHO_T}no" >&6; }
37665             fi
37666
37667         else
37668             { echo "$as_me:$LINENO: result: no" >&5
37669 echo "${ECHO_T}no" >&6; }
37670             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
37671 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
37672             wxUSE_DISPLAY="no"
37673         fi
37674     elif test "$wxUSE_MSW" = 1; then
37675
37676 for ac_header in ddraw.h
37677 do
37678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37682   echo $ECHO_N "(cached) $ECHO_C" >&6
37683 else
37684   cat >conftest.$ac_ext <<_ACEOF
37685 /* confdefs.h.  */
37686 _ACEOF
37687 cat confdefs.h >>conftest.$ac_ext
37688 cat >>conftest.$ac_ext <<_ACEOF
37689 /* end confdefs.h.  */
37690 #include <windows.h>
37691
37692 #include <$ac_header>
37693 _ACEOF
37694 rm -f conftest.$ac_objext
37695 if { (ac_try="$ac_compile"
37696 case "(($ac_try" in
37697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37698   *) ac_try_echo=$ac_try;;
37699 esac
37700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37701   (eval "$ac_compile") 2>conftest.er1
37702   ac_status=$?
37703   grep -v '^ *+' conftest.er1 >conftest.err
37704   rm -f conftest.er1
37705   cat conftest.err >&5
37706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37707   (exit $ac_status); } &&
37708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37709   { (case "(($ac_try" in
37710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37711   *) ac_try_echo=$ac_try;;
37712 esac
37713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37714   (eval "$ac_try") 2>&5
37715   ac_status=$?
37716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37717   (exit $ac_status); }; } &&
37718          { ac_try='test -s conftest.$ac_objext'
37719   { (case "(($ac_try" in
37720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37721   *) ac_try_echo=$ac_try;;
37722 esac
37723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37724   (eval "$ac_try") 2>&5
37725   ac_status=$?
37726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37727   (exit $ac_status); }; }; then
37728   eval "$as_ac_Header=yes"
37729 else
37730   echo "$as_me: failed program was:" >&5
37731 sed 's/^/| /' conftest.$ac_ext >&5
37732
37733         eval "$as_ac_Header=no"
37734 fi
37735
37736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37737 fi
37738 ac_res=`eval echo '${'$as_ac_Header'}'`
37739                { echo "$as_me:$LINENO: result: $ac_res" >&5
37740 echo "${ECHO_T}$ac_res" >&6; }
37741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37742   cat >>confdefs.h <<_ACEOF
37743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37744 _ACEOF
37745
37746 fi
37747
37748 done
37749
37750     fi
37751 fi
37752
37753 if test "$wxUSE_DETECT_SM" = "yes"; then
37754     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
37755         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
37756 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
37757
37758   ac_find_libraries=
37759   for ac_dir in $SEARCH_LIB;
37760   do
37761     for ac_extension in a so sl dylib dll.a; do
37762       if test -f "$ac_dir/libSM.$ac_extension"; then
37763         ac_find_libraries=$ac_dir
37764         break 2
37765       fi
37766     done
37767   done
37768
37769         if test "$ac_find_libraries" != "" ; then
37770
37771     if test "$ac_find_libraries" = "default location"; then
37772     ac_path_to_link=""
37773   else
37774     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
37775     result=$?
37776     if test $result = 0; then
37777       ac_path_to_link=""
37778     else
37779       ac_path_to_link=" -L$ac_find_libraries"
37780     fi
37781   fi
37782
37783             if test "$ac_path_to_link" != " -L/usr/lib" ; then
37784                 LDFLAGS="$LDFLAGS $ac_path_to_link"
37785             fi
37786             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
37787             { echo "$as_me:$LINENO: result: yes" >&5
37788 echo "${ECHO_T}yes" >&6; }
37789         else
37790             { echo "$as_me:$LINENO: result: no" >&5
37791 echo "${ECHO_T}no" >&6; }
37792             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
37793 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
37794             wxUSE_DETECT_SM="no"
37795         fi
37796     else
37797         wxUSE_DETECT_SM="no"
37798     fi
37799 fi
37800
37801
37802
37803 USE_OPENGL=0
37804 if test "$wxUSE_OPENGL" = "yes"; then
37805     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
37806         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
37807 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
37808         wxUSE_OPENGL="no"
37809     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
37810         OPENGL_LIBS="-framework OpenGL -framework AGL"
37811     elif test "$wxUSE_MSW" = 1; then
37812         OPENGL_LIBS="-lopengl32 -lglu32"
37813     else
37814                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
37815 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
37816
37817 ac_find_includes=
37818 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
37819   do
37820     if test -f "$ac_dir/GL/gl.h"; then
37821       ac_find_includes=$ac_dir
37822       break
37823     fi
37824   done
37825
37826         if test "$ac_find_includes" != "" ; then
37827             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
37828 echo "${ECHO_T}found in $ac_find_includes" >&6; }
37829
37830     if test "x$ac_find_includes" = "x/usr/include"; then
37831     ac_path_to_include=""
37832   else
37833     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
37834     result=$?
37835     if test $result = 0; then
37836       ac_path_to_include=""
37837     else
37838       ac_path_to_include=" -I$ac_find_includes"
37839     fi
37840   fi
37841
37842             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
37843         else
37844             { echo "$as_me:$LINENO: result: not found" >&5
37845 echo "${ECHO_T}not found" >&6; }
37846         fi
37847
37848         if test "${ac_cv_header_GL_gl_h+set}" = set; then
37849   { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
37850 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
37851 if test "${ac_cv_header_GL_gl_h+set}" = set; then
37852   echo $ECHO_N "(cached) $ECHO_C" >&6
37853 fi
37854 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
37855 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
37856 else
37857   # Is the header compilable?
37858 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
37859 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
37860 cat >conftest.$ac_ext <<_ACEOF
37861 /* confdefs.h.  */
37862 _ACEOF
37863 cat confdefs.h >>conftest.$ac_ext
37864 cat >>conftest.$ac_ext <<_ACEOF
37865 /* end confdefs.h.  */
37866 $ac_includes_default
37867 #include <GL/gl.h>
37868 _ACEOF
37869 rm -f conftest.$ac_objext
37870 if { (ac_try="$ac_compile"
37871 case "(($ac_try" in
37872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37873   *) ac_try_echo=$ac_try;;
37874 esac
37875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37876   (eval "$ac_compile") 2>conftest.er1
37877   ac_status=$?
37878   grep -v '^ *+' conftest.er1 >conftest.err
37879   rm -f conftest.er1
37880   cat conftest.err >&5
37881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882   (exit $ac_status); } &&
37883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37884   { (case "(($ac_try" in
37885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37886   *) ac_try_echo=$ac_try;;
37887 esac
37888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37889   (eval "$ac_try") 2>&5
37890   ac_status=$?
37891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37892   (exit $ac_status); }; } &&
37893          { ac_try='test -s conftest.$ac_objext'
37894   { (case "(($ac_try" in
37895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37896   *) ac_try_echo=$ac_try;;
37897 esac
37898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37899   (eval "$ac_try") 2>&5
37900   ac_status=$?
37901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902   (exit $ac_status); }; }; then
37903   ac_header_compiler=yes
37904 else
37905   echo "$as_me: failed program was:" >&5
37906 sed 's/^/| /' conftest.$ac_ext >&5
37907
37908         ac_header_compiler=no
37909 fi
37910
37911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37913 echo "${ECHO_T}$ac_header_compiler" >&6; }
37914
37915 # Is the header present?
37916 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
37917 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
37918 cat >conftest.$ac_ext <<_ACEOF
37919 /* confdefs.h.  */
37920 _ACEOF
37921 cat confdefs.h >>conftest.$ac_ext
37922 cat >>conftest.$ac_ext <<_ACEOF
37923 /* end confdefs.h.  */
37924 #include <GL/gl.h>
37925 _ACEOF
37926 if { (ac_try="$ac_cpp conftest.$ac_ext"
37927 case "(($ac_try" in
37928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37929   *) ac_try_echo=$ac_try;;
37930 esac
37931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37932   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37933   ac_status=$?
37934   grep -v '^ *+' conftest.er1 >conftest.err
37935   rm -f conftest.er1
37936   cat conftest.err >&5
37937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37938   (exit $ac_status); } >/dev/null; then
37939   if test -s conftest.err; then
37940     ac_cpp_err=$ac_c_preproc_warn_flag
37941     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37942   else
37943     ac_cpp_err=
37944   fi
37945 else
37946   ac_cpp_err=yes
37947 fi
37948 if test -z "$ac_cpp_err"; then
37949   ac_header_preproc=yes
37950 else
37951   echo "$as_me: failed program was:" >&5
37952 sed 's/^/| /' conftest.$ac_ext >&5
37953
37954   ac_header_preproc=no
37955 fi
37956
37957 rm -f conftest.err conftest.$ac_ext
37958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37959 echo "${ECHO_T}$ac_header_preproc" >&6; }
37960
37961 # So?  What about this header?
37962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37963   yes:no: )
37964     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
37965 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37966     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
37967 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
37968     ac_header_preproc=yes
37969     ;;
37970   no:yes:* )
37971     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
37972 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
37973     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
37974 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
37975     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
37976 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
37977     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
37978 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37979     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
37980 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
37981     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
37982 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
37983     ( cat <<\_ASBOX
37984 ## ----------------------------------------- ##
37985 ## Report this to wx-dev@lists.wxwidgets.org ##
37986 ## ----------------------------------------- ##
37987 _ASBOX
37988      ) | sed "s/^/$as_me: WARNING:     /" >&2
37989     ;;
37990 esac
37991 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
37992 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
37993 if test "${ac_cv_header_GL_gl_h+set}" = set; then
37994   echo $ECHO_N "(cached) $ECHO_C" >&6
37995 else
37996   ac_cv_header_GL_gl_h=$ac_header_preproc
37997 fi
37998 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
37999 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
38000
38001 fi
38002 if test $ac_cv_header_GL_gl_h = yes; then
38003
38004             if test "${ac_cv_header_GL_glu_h+set}" = set; then
38005   { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
38006 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
38007 if test "${ac_cv_header_GL_glu_h+set}" = set; then
38008   echo $ECHO_N "(cached) $ECHO_C" >&6
38009 fi
38010 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
38011 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
38012 else
38013   # Is the header compilable?
38014 { echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
38015 echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6; }
38016 cat >conftest.$ac_ext <<_ACEOF
38017 /* confdefs.h.  */
38018 _ACEOF
38019 cat confdefs.h >>conftest.$ac_ext
38020 cat >>conftest.$ac_ext <<_ACEOF
38021 /* end confdefs.h.  */
38022 $ac_includes_default
38023 #include <GL/glu.h>
38024 _ACEOF
38025 rm -f conftest.$ac_objext
38026 if { (ac_try="$ac_compile"
38027 case "(($ac_try" in
38028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38029   *) ac_try_echo=$ac_try;;
38030 esac
38031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38032   (eval "$ac_compile") 2>conftest.er1
38033   ac_status=$?
38034   grep -v '^ *+' conftest.er1 >conftest.err
38035   rm -f conftest.er1
38036   cat conftest.err >&5
38037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38038   (exit $ac_status); } &&
38039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38040   { (case "(($ac_try" in
38041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38042   *) ac_try_echo=$ac_try;;
38043 esac
38044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38045   (eval "$ac_try") 2>&5
38046   ac_status=$?
38047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048   (exit $ac_status); }; } &&
38049          { ac_try='test -s conftest.$ac_objext'
38050   { (case "(($ac_try" in
38051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38052   *) ac_try_echo=$ac_try;;
38053 esac
38054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38055   (eval "$ac_try") 2>&5
38056   ac_status=$?
38057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058   (exit $ac_status); }; }; then
38059   ac_header_compiler=yes
38060 else
38061   echo "$as_me: failed program was:" >&5
38062 sed 's/^/| /' conftest.$ac_ext >&5
38063
38064         ac_header_compiler=no
38065 fi
38066
38067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38069 echo "${ECHO_T}$ac_header_compiler" >&6; }
38070
38071 # Is the header present?
38072 { echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
38073 echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6; }
38074 cat >conftest.$ac_ext <<_ACEOF
38075 /* confdefs.h.  */
38076 _ACEOF
38077 cat confdefs.h >>conftest.$ac_ext
38078 cat >>conftest.$ac_ext <<_ACEOF
38079 /* end confdefs.h.  */
38080 #include <GL/glu.h>
38081 _ACEOF
38082 if { (ac_try="$ac_cpp conftest.$ac_ext"
38083 case "(($ac_try" in
38084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38085   *) ac_try_echo=$ac_try;;
38086 esac
38087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38089   ac_status=$?
38090   grep -v '^ *+' conftest.er1 >conftest.err
38091   rm -f conftest.er1
38092   cat conftest.err >&5
38093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094   (exit $ac_status); } >/dev/null; then
38095   if test -s conftest.err; then
38096     ac_cpp_err=$ac_c_preproc_warn_flag
38097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38098   else
38099     ac_cpp_err=
38100   fi
38101 else
38102   ac_cpp_err=yes
38103 fi
38104 if test -z "$ac_cpp_err"; then
38105   ac_header_preproc=yes
38106 else
38107   echo "$as_me: failed program was:" >&5
38108 sed 's/^/| /' conftest.$ac_ext >&5
38109
38110   ac_header_preproc=no
38111 fi
38112
38113 rm -f conftest.err conftest.$ac_ext
38114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38115 echo "${ECHO_T}$ac_header_preproc" >&6; }
38116
38117 # So?  What about this header?
38118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38119   yes:no: )
38120     { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
38121 echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38122     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
38123 echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
38124     ac_header_preproc=yes
38125     ;;
38126   no:yes:* )
38127     { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
38128 echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
38129     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
38130 echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
38131     { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
38132 echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
38133     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
38134 echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38135     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
38136 echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
38137     { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
38138 echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
38139     ( cat <<\_ASBOX
38140 ## ----------------------------------------- ##
38141 ## Report this to wx-dev@lists.wxwidgets.org ##
38142 ## ----------------------------------------- ##
38143 _ASBOX
38144      ) | sed "s/^/$as_me: WARNING:     /" >&2
38145     ;;
38146 esac
38147 { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
38148 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
38149 if test "${ac_cv_header_GL_glu_h+set}" = set; then
38150   echo $ECHO_N "(cached) $ECHO_C" >&6
38151 else
38152   ac_cv_header_GL_glu_h=$ac_header_preproc
38153 fi
38154 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
38155 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
38156
38157 fi
38158 if test $ac_cv_header_GL_glu_h = yes; then
38159
38160                 found_gl=0
38161
38162                 { echo "$as_me:$LINENO: checking for -lGL" >&5
38163 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
38164
38165   ac_find_libraries=
38166   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
38167   do
38168     for ac_extension in a so sl dylib dll.a; do
38169       if test -f "$ac_dir/libGL.$ac_extension"; then
38170         ac_find_libraries=$ac_dir
38171         break 2
38172       fi
38173     done
38174   done
38175
38176                 if test "$ac_find_libraries" != "" ; then
38177                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
38178 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
38179
38180
38181     if test "$ac_find_libraries" = "default location"; then
38182     ac_path_to_link=""
38183   else
38184     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
38185     result=$?
38186     if test $result = 0; then
38187       ac_path_to_link=""
38188     else
38189       ac_path_to_link=" -L$ac_find_libraries"
38190     fi
38191   fi
38192
38193                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
38194                         LDFLAGS_GL="$ac_path_to_link"
38195                     fi
38196
38197                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
38198 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
38199
38200   ac_find_libraries=
38201   for ac_dir in $SEARCH_LIB;
38202   do
38203     for ac_extension in a so sl dylib dll.a; do
38204       if test -f "$ac_dir/libGLU.$ac_extension"; then
38205         ac_find_libraries=$ac_dir
38206         break 2
38207       fi
38208     done
38209   done
38210
38211                     if test "$ac_find_libraries" != "" ; then
38212
38213     if test "$ac_find_libraries" = "default location"; then
38214     ac_path_to_link=""
38215   else
38216     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
38217     result=$?
38218     if test $result = 0; then
38219       ac_path_to_link=""
38220     else
38221       ac_path_to_link=" -L$ac_find_libraries"
38222     fi
38223   fi
38224
38225                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
38226                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
38227                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
38228                         fi
38229
38230                         found_gl=1
38231                         OPENGL_LIBS="-lGL -lGLU"
38232                         { echo "$as_me:$LINENO: result: yes" >&5
38233 echo "${ECHO_T}yes" >&6; }
38234                     else
38235                         { echo "$as_me:$LINENO: result: no" >&5
38236 echo "${ECHO_T}no" >&6; }
38237                     fi
38238                 else
38239                     { echo "$as_me:$LINENO: result: no" >&5
38240 echo "${ECHO_T}no" >&6; }
38241                 fi
38242
38243                 if test "$found_gl" != 1; then
38244                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
38245 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
38246
38247   ac_find_libraries=
38248   for ac_dir in $SEARCH_LIB;
38249   do
38250     for ac_extension in a so sl dylib dll.a; do
38251       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
38252         ac_find_libraries=$ac_dir
38253         break 2
38254       fi
38255     done
38256   done
38257
38258                     if test "$ac_find_libraries" != "" ; then
38259
38260     if test "$ac_find_libraries" = "default location"; then
38261     ac_path_to_link=""
38262   else
38263     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
38264     result=$?
38265     if test $result = 0; then
38266       ac_path_to_link=""
38267     else
38268       ac_path_to_link=" -L$ac_find_libraries"
38269     fi
38270   fi
38271
38272                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
38273                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
38274                         { echo "$as_me:$LINENO: result: yes" >&5
38275 echo "${ECHO_T}yes" >&6; }
38276                     else
38277                         { echo "$as_me:$LINENO: result: no" >&5
38278 echo "${ECHO_T}no" >&6; }
38279                     fi
38280                 fi
38281
38282 fi
38283
38284
38285
38286 fi
38287
38288
38289
38290         if test "x$OPENGL_LIBS" = "x"; then
38291                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
38292 echo "$as_me: error: OpenGL libraries not available" >&2;}
38293    { (exit 1); exit 1; }; }
38294         fi
38295     fi
38296
38297     if test "$wxUSE_OPENGL" = "yes"; then
38298         USE_OPENGL=1
38299         cat >>confdefs.h <<\_ACEOF
38300 #define wxUSE_OPENGL 1
38301 _ACEOF
38302
38303         cat >>confdefs.h <<\_ACEOF
38304 #define wxUSE_GLCANVAS 1
38305 _ACEOF
38306
38307         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
38308     fi
38309 fi
38310
38311
38312 if test -n "$TOOLKIT" ; then
38313     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
38314 fi
38315
38316
38317
38318 if test "$wxUSE_SHARED" = "yes"; then
38319     case "${host}" in
38320       *-pc-msdosdjgpp )
38321                 wxUSE_SHARED=no
38322         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
38323 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
38324       ;;
38325     esac
38326 fi
38327
38328 if test "$wxUSE_SHARED" = "yes"; then
38329
38330
38331     case "${host}" in
38332         *-*-cygwin* | *-*-mingw* )
38333                                                                                                 wx_cv_version_script=no
38334             ;;
38335
38336         *)
38337             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
38338 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
38339 if test "${wx_cv_version_script+set}" = set; then
38340   echo $ECHO_N "(cached) $ECHO_C" >&6
38341 else
38342
38343                 echo "VER_1 { *; };" >conftest.sym
38344                 echo "int main() { return 0; }" >conftest.cpp
38345
38346                 if { ac_try='
38347                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
38348                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
38349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38350   (eval $ac_try) 2>&5
38351   ac_status=$?
38352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353   (exit $ac_status); }; } ; then
38354                   if test -s conftest.stderr ; then
38355                       wx_cv_version_script=no
38356                   else
38357                       wx_cv_version_script=yes
38358                   fi
38359                 else
38360                   wx_cv_version_script=no
38361                 fi
38362
38363                                                                                                                                                                                                 if test $wx_cv_version_script = yes
38364                 then
38365                   echo "struct B { virtual ~B() { } }; \
38366                         struct D : public B { }; \
38367                         void F() { D d; }" > conftest.cpp
38368
38369                   if { ac_try='
38370                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
38371                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
38372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38373   (eval $ac_try) 2>&5
38374   ac_status=$?
38375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38376   (exit $ac_status); }; } &&
38377                      { ac_try='
38378                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
38379                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
38380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38381   (eval $ac_try) 2>&5
38382   ac_status=$?
38383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384   (exit $ac_status); }; }
38385                   then
38386                     if { ac_try='
38387                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
38388                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
38389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38390   (eval $ac_try) 2>&5
38391   ac_status=$?
38392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393   (exit $ac_status); }; }
38394                     then
38395                       wx_cv_version_script=yes
38396                     else
38397                       wx_cv_version_script=no
38398                     fi
38399                   fi
38400                 fi
38401
38402                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
38403                 rm -f conftest1.output conftest2.output conftest3.output
38404
38405 fi
38406 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
38407 echo "${ECHO_T}$wx_cv_version_script" >&6; }
38408
38409             if test $wx_cv_version_script = yes ; then
38410                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
38411             fi
38412             ;;
38413     esac
38414
38415
38416     case "${host}" in
38417       *-*-linux* | *-*-gnu* )
38418         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
38419         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
38420         ;;
38421
38422       *-*-solaris2* )
38423         if test "$GCC" = yes ; then
38424                                     CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
38425
38426                                     saveLdflags="$LDFLAGS"
38427             LDFLAGS="$saveLdflags -Wl,-rpath,/"
38428             { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
38429 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
38430             cat >conftest.$ac_ext <<_ACEOF
38431 /* confdefs.h.  */
38432 _ACEOF
38433 cat confdefs.h >>conftest.$ac_ext
38434 cat >>conftest.$ac_ext <<_ACEOF
38435 /* end confdefs.h.  */
38436
38437 int
38438 main ()
38439 {
38440
38441   ;
38442   return 0;
38443 }
38444 _ACEOF
38445 rm -f conftest.$ac_objext conftest$ac_exeext
38446 if { (ac_try="$ac_link"
38447 case "(($ac_try" in
38448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38449   *) ac_try_echo=$ac_try;;
38450 esac
38451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38452   (eval "$ac_link") 2>conftest.er1
38453   ac_status=$?
38454   grep -v '^ *+' conftest.er1 >conftest.err
38455   rm -f conftest.er1
38456   cat conftest.err >&5
38457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458   (exit $ac_status); } &&
38459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38460   { (case "(($ac_try" in
38461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38462   *) ac_try_echo=$ac_try;;
38463 esac
38464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38465   (eval "$ac_try") 2>&5
38466   ac_status=$?
38467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38468   (exit $ac_status); }; } &&
38469          { ac_try='test -s conftest$ac_exeext'
38470   { (case "(($ac_try" in
38471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38472   *) ac_try_echo=$ac_try;;
38473 esac
38474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38475   (eval "$ac_try") 2>&5
38476   ac_status=$?
38477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478   (exit $ac_status); }; }; then
38479
38480                     { echo "$as_me:$LINENO: result: yes" >&5
38481 echo "${ECHO_T}yes" >&6; }
38482                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
38483                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
38484
38485 else
38486   echo "$as_me: failed program was:" >&5
38487 sed 's/^/| /' conftest.$ac_ext >&5
38488
38489
38490                     { echo "$as_me:$LINENO: result: no" >&5
38491 echo "${ECHO_T}no" >&6; }
38492                     { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
38493 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
38494                     LDFLAGS="$saveLdflags -Wl,-R,/"
38495                     cat >conftest.$ac_ext <<_ACEOF
38496 /* confdefs.h.  */
38497 _ACEOF
38498 cat confdefs.h >>conftest.$ac_ext
38499 cat >>conftest.$ac_ext <<_ACEOF
38500 /* end confdefs.h.  */
38501
38502 int
38503 main ()
38504 {
38505
38506   ;
38507   return 0;
38508 }
38509 _ACEOF
38510 rm -f conftest.$ac_objext conftest$ac_exeext
38511 if { (ac_try="$ac_link"
38512 case "(($ac_try" in
38513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38514   *) ac_try_echo=$ac_try;;
38515 esac
38516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38517   (eval "$ac_link") 2>conftest.er1
38518   ac_status=$?
38519   grep -v '^ *+' conftest.er1 >conftest.err
38520   rm -f conftest.er1
38521   cat conftest.err >&5
38522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38523   (exit $ac_status); } &&
38524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38525   { (case "(($ac_try" in
38526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38527   *) ac_try_echo=$ac_try;;
38528 esac
38529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38530   (eval "$ac_try") 2>&5
38531   ac_status=$?
38532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533   (exit $ac_status); }; } &&
38534          { ac_try='test -s conftest$ac_exeext'
38535   { (case "(($ac_try" in
38536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38537   *) ac_try_echo=$ac_try;;
38538 esac
38539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38540   (eval "$ac_try") 2>&5
38541   ac_status=$?
38542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38543   (exit $ac_status); }; }; then
38544
38545                             { echo "$as_me:$LINENO: result: yes" >&5
38546 echo "${ECHO_T}yes" >&6; }
38547                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
38548                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
38549
38550 else
38551   echo "$as_me: failed program was:" >&5
38552 sed 's/^/| /' conftest.$ac_ext >&5
38553
38554
38555                             { echo "$as_me:$LINENO: result: no" >&5
38556 echo "${ECHO_T}no" >&6; }
38557
38558 fi
38559
38560 rm -f core conftest.err conftest.$ac_objext \
38561       conftest$ac_exeext conftest.$ac_ext
38562
38563 fi
38564
38565 rm -f core conftest.err conftest.$ac_objext \
38566       conftest$ac_exeext conftest.$ac_ext
38567             LDFLAGS="$saveLdflags"
38568         else
38569             SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
38570             WXCONFIG_RPATH="-R\$libdir"
38571         fi
38572       ;;
38573
38574       *-*-darwin* )
38575         install_name_tool=`which install_name_tool`
38576         if test "$install_name_tool" -a -x "$install_name_tool"; then
38577             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
38578             cat <<EOF >change-install-names
38579 #!/bin/sh
38580 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
38581 inst_cmd="install_name_tool "
38582 for i in \${libnames} ; do
38583     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
38584 done
38585 \${inst_cmd} \${3}
38586 EOF
38587             chmod +x change-install-names
38588         fi
38589       ;;
38590
38591       *-*-cygwin* | *-*-mingw32* )
38592                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
38593         ;;
38594
38595       *-*-hpux* )
38596         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
38597         WXCONFIG_RPATH="-Wl,+b,\$libdir"
38598         ;;
38599
38600     esac
38601
38602     if test $wxUSE_RPATH = "no"; then
38603         SAMPLES_RPATH_FLAG=''
38604         SAMPLES_RPATH_POSTLINK=''
38605         WXCONFIG_RPATH=''
38606     fi
38607
38608     SHARED=1
38609
38610 else
38611
38612     config_linkage_component="-static"
38613     SHARED=0
38614
38615 fi
38616
38617
38618 UNICODE=0
38619 lib_unicode_suffix=
38620 WX_CHARTYPE="ansi"
38621 if test "$wxUSE_UNICODE" = "yes"; then
38622     lib_unicode_suffix=u
38623     WX_CHARTYPE="unicode"
38624     UNICODE=1
38625 fi
38626
38627 lib_debug_suffix=
38628 WX_DEBUGTYPE="release"
38629 DEBUG_FLAG=0
38630 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
38631     lib_debug_suffix=d
38632     WX_DEBUGTYPE="debug"
38633     DEBUG_FLAG=1
38634 fi
38635
38636 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
38637 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
38638
38639 DEBUG_INFO=0
38640 if test "$wxUSE_DEBUG_INFO" = "yes"; then
38641     DEBUG_INFO=1
38642 fi
38643
38644 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
38645
38646 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
38647
38648 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
38649
38650 if test "$cross_compiling" = "yes"; then
38651     HOST_SUFFIX="-$host_alias"
38652     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
38653     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
38654 fi
38655
38656 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
38657 if test "${TOOLKIT_DIR}" = "os2"; then
38658     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
38659 else
38660     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
38661 fi
38662
38663
38664
38665 if test "$wxUSE_COCOA" = 1; then
38666
38667     ac_ext=c
38668 ac_cpp='$CPP $CPPFLAGS'
38669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38672
38673 ac_ext=m
38674
38675     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
38676 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
38677     cat >conftest.$ac_ext <<_ACEOF
38678 /* confdefs.h.  */
38679 _ACEOF
38680 cat confdefs.h >>conftest.$ac_ext
38681 cat >>conftest.$ac_ext <<_ACEOF
38682 /* end confdefs.h.  */
38683 #include <AppKit/NSEvent.h>
38684 #include <CoreFoundation/CoreFoundation.h>
38685
38686 int
38687 main ()
38688 {
38689
38690   ;
38691   return 0;
38692 }
38693 _ACEOF
38694 rm -f conftest.$ac_objext
38695 if { (ac_try="$ac_compile"
38696 case "(($ac_try" in
38697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38698   *) ac_try_echo=$ac_try;;
38699 esac
38700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38701   (eval "$ac_compile") 2>conftest.er1
38702   ac_status=$?
38703   grep -v '^ *+' conftest.er1 >conftest.err
38704   rm -f conftest.er1
38705   cat conftest.err >&5
38706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707   (exit $ac_status); } &&
38708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38709   { (case "(($ac_try" in
38710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38711   *) ac_try_echo=$ac_try;;
38712 esac
38713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38714   (eval "$ac_try") 2>&5
38715   ac_status=$?
38716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38717   (exit $ac_status); }; } &&
38718          { ac_try='test -s conftest.$ac_objext'
38719   { (case "(($ac_try" in
38720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38721   *) ac_try_echo=$ac_try;;
38722 esac
38723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38724   (eval "$ac_try") 2>&5
38725   ac_status=$?
38726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727   (exit $ac_status); }; }; then
38728   { echo "$as_me:$LINENO: result: no" >&5
38729 echo "${ECHO_T}no" >&6; }
38730 else
38731   echo "$as_me: failed program was:" >&5
38732 sed 's/^/| /' conftest.$ac_ext >&5
38733
38734         { echo "$as_me:$LINENO: result: yes" >&5
38735 echo "${ECHO_T}yes" >&6; }
38736         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
38737 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
38738         cat >conftest.$ac_ext <<_ACEOF
38739 /* confdefs.h.  */
38740 _ACEOF
38741 cat confdefs.h >>conftest.$ac_ext
38742 cat >>conftest.$ac_ext <<_ACEOF
38743 /* end confdefs.h.  */
38744 #define __Point__ 1
38745 #include <AppKit/NSEvent.h>
38746 #include <CoreFoundation/CoreFoundation.h>
38747
38748 int
38749 main ()
38750 {
38751
38752   ;
38753   return 0;
38754 }
38755 _ACEOF
38756 rm -f conftest.$ac_objext
38757 if { (ac_try="$ac_compile"
38758 case "(($ac_try" in
38759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38760   *) ac_try_echo=$ac_try;;
38761 esac
38762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38763   (eval "$ac_compile") 2>conftest.er1
38764   ac_status=$?
38765   grep -v '^ *+' conftest.er1 >conftest.err
38766   rm -f conftest.er1
38767   cat conftest.err >&5
38768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38769   (exit $ac_status); } &&
38770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38771   { (case "(($ac_try" in
38772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38773   *) ac_try_echo=$ac_try;;
38774 esac
38775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38776   (eval "$ac_try") 2>&5
38777   ac_status=$?
38778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779   (exit $ac_status); }; } &&
38780          { ac_try='test -s conftest.$ac_objext'
38781   { (case "(($ac_try" in
38782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38783   *) ac_try_echo=$ac_try;;
38784 esac
38785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38786   (eval "$ac_try") 2>&5
38787   ac_status=$?
38788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38789   (exit $ac_status); }; }; then
38790   { echo "$as_me:$LINENO: result: yes" >&5
38791 echo "${ECHO_T}yes" >&6; }
38792             cat >>confdefs.h <<\_ACEOF
38793 #define __Point__ 1
38794 _ACEOF
38795
38796
38797 else
38798   echo "$as_me: failed program was:" >&5
38799 sed 's/^/| /' conftest.$ac_ext >&5
38800
38801         { { echo "$as_me:$LINENO: error: no
38802 See \`config.log' for more details." >&5
38803 echo "$as_me: error: no
38804 See \`config.log' for more details." >&2;}
38805    { (exit 1); exit 1; }; }
38806
38807 fi
38808
38809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38810
38811 fi
38812
38813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38814     ac_ext=c
38815 ac_cpp='$CPP $CPPFLAGS'
38816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38819
38820 fi
38821
38822 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
38823             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
38824     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
38825
38826         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
38827
38828     # Extract the first word of "Rez", so it can be a program name with args.
38829 set dummy Rez; ac_word=$2
38830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38832 if test "${ac_cv_prog_REZ+set}" = set; then
38833   echo $ECHO_N "(cached) $ECHO_C" >&6
38834 else
38835   if test -n "$REZ"; then
38836   ac_cv_prog_REZ="$REZ" # Let the user override the test.
38837 else
38838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38839 for as_dir in $PATH
38840 do
38841   IFS=$as_save_IFS
38842   test -z "$as_dir" && as_dir=.
38843   for ac_exec_ext in '' $ac_executable_extensions; do
38844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38845     ac_cv_prog_REZ="Rez"
38846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38847     break 2
38848   fi
38849 done
38850 done
38851 IFS=$as_save_IFS
38852
38853   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
38854 fi
38855 fi
38856 REZ=$ac_cv_prog_REZ
38857 if test -n "$REZ"; then
38858   { echo "$as_me:$LINENO: result: $REZ" >&5
38859 echo "${ECHO_T}$REZ" >&6; }
38860 else
38861   { echo "$as_me:$LINENO: result: no" >&5
38862 echo "${ECHO_T}no" >&6; }
38863 fi
38864
38865
38866     # Extract the first word of "DeRez", so it can be a program name with args.
38867 set dummy DeRez; ac_word=$2
38868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38870 if test "${ac_cv_prog_DEREZ+set}" = set; then
38871   echo $ECHO_N "(cached) $ECHO_C" >&6
38872 else
38873   if test -n "$DEREZ"; then
38874   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
38875 else
38876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38877 for as_dir in $PATH
38878 do
38879   IFS=$as_save_IFS
38880   test -z "$as_dir" && as_dir=.
38881   for ac_exec_ext in '' $ac_executable_extensions; do
38882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38883     ac_cv_prog_DEREZ="DeRez"
38884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38885     break 2
38886   fi
38887 done
38888 done
38889 IFS=$as_save_IFS
38890
38891   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
38892 fi
38893 fi
38894 DEREZ=$ac_cv_prog_DEREZ
38895 if test -n "$DEREZ"; then
38896   { echo "$as_me:$LINENO: result: $DEREZ" >&5
38897 echo "${ECHO_T}$DEREZ" >&6; }
38898 else
38899   { echo "$as_me:$LINENO: result: no" >&5
38900 echo "${ECHO_T}no" >&6; }
38901 fi
38902
38903
38904     # Extract the first word of "SetFile", so it can be a program name with args.
38905 set dummy SetFile; ac_word=$2
38906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38908 if test "${ac_cv_prog_SETFILE+set}" = set; then
38909   echo $ECHO_N "(cached) $ECHO_C" >&6
38910 else
38911   if test -n "$SETFILE"; then
38912   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
38913 else
38914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38915 for as_dir in $PATH
38916 do
38917   IFS=$as_save_IFS
38918   test -z "$as_dir" && as_dir=.
38919   for ac_exec_ext in '' $ac_executable_extensions; do
38920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38921     ac_cv_prog_SETFILE="SetFile"
38922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38923     break 2
38924   fi
38925 done
38926 done
38927 IFS=$as_save_IFS
38928
38929   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
38930 fi
38931 fi
38932 SETFILE=$ac_cv_prog_SETFILE
38933 if test -n "$SETFILE"; then
38934   { echo "$as_me:$LINENO: result: $SETFILE" >&5
38935 echo "${ECHO_T}$SETFILE" >&6; }
38936 else
38937   { echo "$as_me:$LINENO: result: no" >&5
38938 echo "${ECHO_T}no" >&6; }
38939 fi
38940
38941
38942
38943     MACSETFILE="\$(SETFILE)"
38944
38945             if test "$wxUSE_MAC" = 1; then
38946         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
38947         RESCOMP="$REZ"
38948         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
38949     else
38950         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
38951         RESCOMP="echo -n \| $REZ"
38952         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
38953     fi
38954
38955 else
38956         MACSETFILE="@true"
38957
38958     if test "$wxUSE_PM" = 1; then
38959         RESCOMP="emxbind"
38960         WXCONFIG_RESFLAGS="-ep"
38961
38962                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
38963     else
38964         POSTLINK_COMMAND="@true"
38965     fi
38966
38967 fi
38968
38969
38970
38971 { echo "$as_me:$LINENO: checking for mode_t" >&5
38972 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
38973 if test "${ac_cv_type_mode_t+set}" = set; then
38974   echo $ECHO_N "(cached) $ECHO_C" >&6
38975 else
38976   cat >conftest.$ac_ext <<_ACEOF
38977 /* confdefs.h.  */
38978 _ACEOF
38979 cat confdefs.h >>conftest.$ac_ext
38980 cat >>conftest.$ac_ext <<_ACEOF
38981 /* end confdefs.h.  */
38982 $ac_includes_default
38983 typedef mode_t ac__type_new_;
38984 int
38985 main ()
38986 {
38987 if ((ac__type_new_ *) 0)
38988   return 0;
38989 if (sizeof (ac__type_new_))
38990   return 0;
38991   ;
38992   return 0;
38993 }
38994 _ACEOF
38995 rm -f conftest.$ac_objext
38996 if { (ac_try="$ac_compile"
38997 case "(($ac_try" in
38998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38999   *) ac_try_echo=$ac_try;;
39000 esac
39001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39002   (eval "$ac_compile") 2>conftest.er1
39003   ac_status=$?
39004   grep -v '^ *+' conftest.er1 >conftest.err
39005   rm -f conftest.er1
39006   cat conftest.err >&5
39007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008   (exit $ac_status); } &&
39009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39010   { (case "(($ac_try" in
39011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39012   *) ac_try_echo=$ac_try;;
39013 esac
39014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39015   (eval "$ac_try") 2>&5
39016   ac_status=$?
39017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39018   (exit $ac_status); }; } &&
39019          { ac_try='test -s conftest.$ac_objext'
39020   { (case "(($ac_try" in
39021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39022   *) ac_try_echo=$ac_try;;
39023 esac
39024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39025   (eval "$ac_try") 2>&5
39026   ac_status=$?
39027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39028   (exit $ac_status); }; }; then
39029   ac_cv_type_mode_t=yes
39030 else
39031   echo "$as_me: failed program was:" >&5
39032 sed 's/^/| /' conftest.$ac_ext >&5
39033
39034         ac_cv_type_mode_t=no
39035 fi
39036
39037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39038 fi
39039 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
39040 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
39041 if test $ac_cv_type_mode_t = yes; then
39042   :
39043 else
39044
39045 cat >>confdefs.h <<_ACEOF
39046 #define mode_t int
39047 _ACEOF
39048
39049 fi
39050
39051 { echo "$as_me:$LINENO: checking for off_t" >&5
39052 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
39053 if test "${ac_cv_type_off_t+set}" = set; then
39054   echo $ECHO_N "(cached) $ECHO_C" >&6
39055 else
39056   cat >conftest.$ac_ext <<_ACEOF
39057 /* confdefs.h.  */
39058 _ACEOF
39059 cat confdefs.h >>conftest.$ac_ext
39060 cat >>conftest.$ac_ext <<_ACEOF
39061 /* end confdefs.h.  */
39062 $ac_includes_default
39063 typedef off_t ac__type_new_;
39064 int
39065 main ()
39066 {
39067 if ((ac__type_new_ *) 0)
39068   return 0;
39069 if (sizeof (ac__type_new_))
39070   return 0;
39071   ;
39072   return 0;
39073 }
39074 _ACEOF
39075 rm -f conftest.$ac_objext
39076 if { (ac_try="$ac_compile"
39077 case "(($ac_try" in
39078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39079   *) ac_try_echo=$ac_try;;
39080 esac
39081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39082   (eval "$ac_compile") 2>conftest.er1
39083   ac_status=$?
39084   grep -v '^ *+' conftest.er1 >conftest.err
39085   rm -f conftest.er1
39086   cat conftest.err >&5
39087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39088   (exit $ac_status); } &&
39089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39090   { (case "(($ac_try" in
39091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39092   *) ac_try_echo=$ac_try;;
39093 esac
39094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39095   (eval "$ac_try") 2>&5
39096   ac_status=$?
39097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39098   (exit $ac_status); }; } &&
39099          { ac_try='test -s conftest.$ac_objext'
39100   { (case "(($ac_try" in
39101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39102   *) ac_try_echo=$ac_try;;
39103 esac
39104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39105   (eval "$ac_try") 2>&5
39106   ac_status=$?
39107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39108   (exit $ac_status); }; }; then
39109   ac_cv_type_off_t=yes
39110 else
39111   echo "$as_me: failed program was:" >&5
39112 sed 's/^/| /' conftest.$ac_ext >&5
39113
39114         ac_cv_type_off_t=no
39115 fi
39116
39117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39118 fi
39119 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
39120 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
39121 if test $ac_cv_type_off_t = yes; then
39122   :
39123 else
39124
39125 cat >>confdefs.h <<_ACEOF
39126 #define off_t long int
39127 _ACEOF
39128
39129 fi
39130
39131 { echo "$as_me:$LINENO: checking for pid_t" >&5
39132 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
39133 if test "${ac_cv_type_pid_t+set}" = set; then
39134   echo $ECHO_N "(cached) $ECHO_C" >&6
39135 else
39136   cat >conftest.$ac_ext <<_ACEOF
39137 /* confdefs.h.  */
39138 _ACEOF
39139 cat confdefs.h >>conftest.$ac_ext
39140 cat >>conftest.$ac_ext <<_ACEOF
39141 /* end confdefs.h.  */
39142 $ac_includes_default
39143 typedef pid_t ac__type_new_;
39144 int
39145 main ()
39146 {
39147 if ((ac__type_new_ *) 0)
39148   return 0;
39149 if (sizeof (ac__type_new_))
39150   return 0;
39151   ;
39152   return 0;
39153 }
39154 _ACEOF
39155 rm -f conftest.$ac_objext
39156 if { (ac_try="$ac_compile"
39157 case "(($ac_try" in
39158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39159   *) ac_try_echo=$ac_try;;
39160 esac
39161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39162   (eval "$ac_compile") 2>conftest.er1
39163   ac_status=$?
39164   grep -v '^ *+' conftest.er1 >conftest.err
39165   rm -f conftest.er1
39166   cat conftest.err >&5
39167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39168   (exit $ac_status); } &&
39169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39170   { (case "(($ac_try" in
39171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39172   *) ac_try_echo=$ac_try;;
39173 esac
39174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39175   (eval "$ac_try") 2>&5
39176   ac_status=$?
39177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178   (exit $ac_status); }; } &&
39179          { ac_try='test -s conftest.$ac_objext'
39180   { (case "(($ac_try" in
39181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39182   *) ac_try_echo=$ac_try;;
39183 esac
39184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39185   (eval "$ac_try") 2>&5
39186   ac_status=$?
39187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39188   (exit $ac_status); }; }; then
39189   ac_cv_type_pid_t=yes
39190 else
39191   echo "$as_me: failed program was:" >&5
39192 sed 's/^/| /' conftest.$ac_ext >&5
39193
39194         ac_cv_type_pid_t=no
39195 fi
39196
39197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39198 fi
39199 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
39200 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
39201 if test $ac_cv_type_pid_t = yes; then
39202   :
39203 else
39204
39205 cat >>confdefs.h <<_ACEOF
39206 #define pid_t int
39207 _ACEOF
39208
39209 fi
39210
39211 { echo "$as_me:$LINENO: checking for size_t" >&5
39212 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
39213 if test "${ac_cv_type_size_t+set}" = set; then
39214   echo $ECHO_N "(cached) $ECHO_C" >&6
39215 else
39216   cat >conftest.$ac_ext <<_ACEOF
39217 /* confdefs.h.  */
39218 _ACEOF
39219 cat confdefs.h >>conftest.$ac_ext
39220 cat >>conftest.$ac_ext <<_ACEOF
39221 /* end confdefs.h.  */
39222 $ac_includes_default
39223 typedef size_t ac__type_new_;
39224 int
39225 main ()
39226 {
39227 if ((ac__type_new_ *) 0)
39228   return 0;
39229 if (sizeof (ac__type_new_))
39230   return 0;
39231   ;
39232   return 0;
39233 }
39234 _ACEOF
39235 rm -f conftest.$ac_objext
39236 if { (ac_try="$ac_compile"
39237 case "(($ac_try" in
39238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39239   *) ac_try_echo=$ac_try;;
39240 esac
39241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39242   (eval "$ac_compile") 2>conftest.er1
39243   ac_status=$?
39244   grep -v '^ *+' conftest.er1 >conftest.err
39245   rm -f conftest.er1
39246   cat conftest.err >&5
39247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39248   (exit $ac_status); } &&
39249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39250   { (case "(($ac_try" in
39251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39252   *) ac_try_echo=$ac_try;;
39253 esac
39254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39255   (eval "$ac_try") 2>&5
39256   ac_status=$?
39257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39258   (exit $ac_status); }; } &&
39259          { ac_try='test -s conftest.$ac_objext'
39260   { (case "(($ac_try" in
39261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39262   *) ac_try_echo=$ac_try;;
39263 esac
39264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39265   (eval "$ac_try") 2>&5
39266   ac_status=$?
39267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268   (exit $ac_status); }; }; then
39269   ac_cv_type_size_t=yes
39270 else
39271   echo "$as_me: failed program was:" >&5
39272 sed 's/^/| /' conftest.$ac_ext >&5
39273
39274         ac_cv_type_size_t=no
39275 fi
39276
39277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39278 fi
39279 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39280 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
39281 if test $ac_cv_type_size_t = yes; then
39282   :
39283 else
39284
39285 cat >>confdefs.h <<_ACEOF
39286 #define size_t unsigned int
39287 _ACEOF
39288
39289 fi
39290
39291 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39292 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
39293 if test "${ac_cv_type_uid_t+set}" = set; then
39294   echo $ECHO_N "(cached) $ECHO_C" >&6
39295 else
39296   cat >conftest.$ac_ext <<_ACEOF
39297 /* confdefs.h.  */
39298 _ACEOF
39299 cat confdefs.h >>conftest.$ac_ext
39300 cat >>conftest.$ac_ext <<_ACEOF
39301 /* end confdefs.h.  */
39302 #include <sys/types.h>
39303
39304 _ACEOF
39305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39306   $EGREP "uid_t" >/dev/null 2>&1; then
39307   ac_cv_type_uid_t=yes
39308 else
39309   ac_cv_type_uid_t=no
39310 fi
39311 rm -f conftest*
39312
39313 fi
39314 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39315 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
39316 if test $ac_cv_type_uid_t = no; then
39317
39318 cat >>confdefs.h <<\_ACEOF
39319 #define uid_t int
39320 _ACEOF
39321
39322
39323 cat >>confdefs.h <<\_ACEOF
39324 #define gid_t int
39325 _ACEOF
39326
39327 fi
39328
39329
39330 { echo "$as_me:$LINENO: checking for ssize_t" >&5
39331 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
39332 if test "${ac_cv_type_ssize_t+set}" = set; then
39333   echo $ECHO_N "(cached) $ECHO_C" >&6
39334 else
39335   cat >conftest.$ac_ext <<_ACEOF
39336 /* confdefs.h.  */
39337 _ACEOF
39338 cat confdefs.h >>conftest.$ac_ext
39339 cat >>conftest.$ac_ext <<_ACEOF
39340 /* end confdefs.h.  */
39341 $ac_includes_default
39342 typedef ssize_t ac__type_new_;
39343 int
39344 main ()
39345 {
39346 if ((ac__type_new_ *) 0)
39347   return 0;
39348 if (sizeof (ac__type_new_))
39349   return 0;
39350   ;
39351   return 0;
39352 }
39353 _ACEOF
39354 rm -f conftest.$ac_objext
39355 if { (ac_try="$ac_compile"
39356 case "(($ac_try" in
39357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39358   *) ac_try_echo=$ac_try;;
39359 esac
39360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39361   (eval "$ac_compile") 2>conftest.er1
39362   ac_status=$?
39363   grep -v '^ *+' conftest.er1 >conftest.err
39364   rm -f conftest.er1
39365   cat conftest.err >&5
39366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39367   (exit $ac_status); } &&
39368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39369   { (case "(($ac_try" in
39370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39371   *) ac_try_echo=$ac_try;;
39372 esac
39373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39374   (eval "$ac_try") 2>&5
39375   ac_status=$?
39376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377   (exit $ac_status); }; } &&
39378          { ac_try='test -s conftest.$ac_objext'
39379   { (case "(($ac_try" in
39380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39381   *) ac_try_echo=$ac_try;;
39382 esac
39383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39384   (eval "$ac_try") 2>&5
39385   ac_status=$?
39386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387   (exit $ac_status); }; }; then
39388   ac_cv_type_ssize_t=yes
39389 else
39390   echo "$as_me: failed program was:" >&5
39391 sed 's/^/| /' conftest.$ac_ext >&5
39392
39393         ac_cv_type_ssize_t=no
39394 fi
39395
39396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39397 fi
39398 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39399 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
39400 if test $ac_cv_type_ssize_t = yes; then
39401
39402 cat >>confdefs.h <<_ACEOF
39403 #define HAVE_SSIZE_T 1
39404 _ACEOF
39405
39406
39407 fi
39408
39409
39410 ac_ext=cpp
39411 ac_cpp='$CXXCPP $CPPFLAGS'
39412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39415  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
39416 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
39417 if test "${wx_cv_size_t_is_uint+set}" = set; then
39418   echo $ECHO_N "(cached) $ECHO_C" >&6
39419 else
39420
39421                             cat >conftest.$ac_ext <<_ACEOF
39422 /* confdefs.h.  */
39423 _ACEOF
39424 cat confdefs.h >>conftest.$ac_ext
39425 cat >>conftest.$ac_ext <<_ACEOF
39426 /* end confdefs.h.  */
39427 #include <stddef.h>
39428 int
39429 main ()
39430 {
39431
39432             return 0; }
39433
39434             struct Foo { void foo(size_t); void foo(unsigned int); };
39435
39436             int bar() {
39437
39438   ;
39439   return 0;
39440 }
39441 _ACEOF
39442 rm -f conftest.$ac_objext
39443 if { (ac_try="$ac_compile"
39444 case "(($ac_try" in
39445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39446   *) ac_try_echo=$ac_try;;
39447 esac
39448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39449   (eval "$ac_compile") 2>conftest.er1
39450   ac_status=$?
39451   grep -v '^ *+' conftest.er1 >conftest.err
39452   rm -f conftest.er1
39453   cat conftest.err >&5
39454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39455   (exit $ac_status); } &&
39456          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39457   { (case "(($ac_try" in
39458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39459   *) ac_try_echo=$ac_try;;
39460 esac
39461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39462   (eval "$ac_try") 2>&5
39463   ac_status=$?
39464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39465   (exit $ac_status); }; } &&
39466          { ac_try='test -s conftest.$ac_objext'
39467   { (case "(($ac_try" in
39468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39469   *) ac_try_echo=$ac_try;;
39470 esac
39471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39472   (eval "$ac_try") 2>&5
39473   ac_status=$?
39474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475   (exit $ac_status); }; }; then
39476   wx_cv_size_t_is_uint=no
39477 else
39478   echo "$as_me: failed program was:" >&5
39479 sed 's/^/| /' conftest.$ac_ext >&5
39480
39481         wx_cv_size_t_is_uint=yes
39482
39483 fi
39484
39485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39486
39487
39488 fi
39489 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
39490 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
39491
39492 if test "$wx_cv_size_t_is_uint" = "yes"; then
39493     cat >>confdefs.h <<\_ACEOF
39494 #define wxSIZE_T_IS_UINT 1
39495 _ACEOF
39496
39497 else
39498     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
39499 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
39500 if test "${wx_cv_size_t_is_ulong+set}" = set; then
39501   echo $ECHO_N "(cached) $ECHO_C" >&6
39502 else
39503   cat >conftest.$ac_ext <<_ACEOF
39504 /* confdefs.h.  */
39505 _ACEOF
39506 cat confdefs.h >>conftest.$ac_ext
39507 cat >>conftest.$ac_ext <<_ACEOF
39508 /* end confdefs.h.  */
39509 #include <stddef.h>
39510 int
39511 main ()
39512 {
39513
39514                 return 0; }
39515
39516                 struct Foo { void foo(size_t); void foo(unsigned long); };
39517
39518                 int bar() {
39519
39520   ;
39521   return 0;
39522 }
39523 _ACEOF
39524 rm -f conftest.$ac_objext
39525 if { (ac_try="$ac_compile"
39526 case "(($ac_try" in
39527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39528   *) ac_try_echo=$ac_try;;
39529 esac
39530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39531   (eval "$ac_compile") 2>conftest.er1
39532   ac_status=$?
39533   grep -v '^ *+' conftest.er1 >conftest.err
39534   rm -f conftest.er1
39535   cat conftest.err >&5
39536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39537   (exit $ac_status); } &&
39538          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39539   { (case "(($ac_try" in
39540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39541   *) ac_try_echo=$ac_try;;
39542 esac
39543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39544   (eval "$ac_try") 2>&5
39545   ac_status=$?
39546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547   (exit $ac_status); }; } &&
39548          { ac_try='test -s conftest.$ac_objext'
39549   { (case "(($ac_try" in
39550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39551   *) ac_try_echo=$ac_try;;
39552 esac
39553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39554   (eval "$ac_try") 2>&5
39555   ac_status=$?
39556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39557   (exit $ac_status); }; }; then
39558   wx_cv_size_t_is_ulong=no
39559 else
39560   echo "$as_me: failed program was:" >&5
39561 sed 's/^/| /' conftest.$ac_ext >&5
39562
39563         wx_cv_size_t_is_ulong=yes
39564
39565 fi
39566
39567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39568
39569 fi
39570 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
39571 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
39572
39573     if test "$wx_cv_size_t_is_ulong" = "yes"; then
39574         cat >>confdefs.h <<\_ACEOF
39575 #define wxSIZE_T_IS_ULONG 1
39576 _ACEOF
39577
39578     fi
39579 fi
39580
39581 ac_ext=c
39582 ac_cpp='$CPP $CPPFLAGS'
39583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39586
39587
39588 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
39589 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
39590 if test "${wx_cv_struct_pw_gecos+set}" = set; then
39591   echo $ECHO_N "(cached) $ECHO_C" >&6
39592 else
39593
39594         cat >conftest.$ac_ext <<_ACEOF
39595 /* confdefs.h.  */
39596 _ACEOF
39597 cat confdefs.h >>conftest.$ac_ext
39598 cat >>conftest.$ac_ext <<_ACEOF
39599 /* end confdefs.h.  */
39600 #include <pwd.h>
39601 int
39602 main ()
39603 {
39604
39605                 char *p;
39606                 struct passwd *pw;
39607                 p = pw->pw_gecos;
39608
39609   ;
39610   return 0;
39611 }
39612 _ACEOF
39613 rm -f conftest.$ac_objext
39614 if { (ac_try="$ac_compile"
39615 case "(($ac_try" in
39616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39617   *) ac_try_echo=$ac_try;;
39618 esac
39619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39620   (eval "$ac_compile") 2>conftest.er1
39621   ac_status=$?
39622   grep -v '^ *+' conftest.er1 >conftest.err
39623   rm -f conftest.er1
39624   cat conftest.err >&5
39625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39626   (exit $ac_status); } &&
39627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39628   { (case "(($ac_try" in
39629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39630   *) ac_try_echo=$ac_try;;
39631 esac
39632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39633   (eval "$ac_try") 2>&5
39634   ac_status=$?
39635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39636   (exit $ac_status); }; } &&
39637          { ac_try='test -s conftest.$ac_objext'
39638   { (case "(($ac_try" in
39639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39640   *) ac_try_echo=$ac_try;;
39641 esac
39642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39643   (eval "$ac_try") 2>&5
39644   ac_status=$?
39645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39646   (exit $ac_status); }; }; then
39647
39648                 wx_cv_struct_pw_gecos=yes
39649
39650 else
39651   echo "$as_me: failed program was:" >&5
39652 sed 's/^/| /' conftest.$ac_ext >&5
39653
39654
39655                 wx_cv_struct_pw_gecos=no
39656
39657
39658 fi
39659
39660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39661
39662
39663 fi
39664 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
39665 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
39666
39667 if test "$wx_cv_struct_pw_gecos" = "yes"; then
39668     cat >>confdefs.h <<\_ACEOF
39669 #define HAVE_PW_GECOS 1
39670 _ACEOF
39671
39672 fi
39673
39674
39675 if test "$wxUSE_WCHAR_T" = "yes"; then
39676     cat >>confdefs.h <<\_ACEOF
39677 #define wxUSE_WCHAR_T 1
39678 _ACEOF
39679
39680
39681         WCSLEN_FOUND=0
39682     WCHAR_LINK=
39683
39684 for ac_func in wcslen
39685 do
39686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39690   echo $ECHO_N "(cached) $ECHO_C" >&6
39691 else
39692   cat >conftest.$ac_ext <<_ACEOF
39693 /* confdefs.h.  */
39694 _ACEOF
39695 cat confdefs.h >>conftest.$ac_ext
39696 cat >>conftest.$ac_ext <<_ACEOF
39697 /* end confdefs.h.  */
39698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39700 #define $ac_func innocuous_$ac_func
39701
39702 /* System header to define __stub macros and hopefully few prototypes,
39703     which can conflict with char $ac_func (); below.
39704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39705     <limits.h> exists even on freestanding compilers.  */
39706
39707 #ifdef __STDC__
39708 # include <limits.h>
39709 #else
39710 # include <assert.h>
39711 #endif
39712
39713 #undef $ac_func
39714
39715 /* Override any GCC internal prototype to avoid an error.
39716    Use char because int might match the return type of a GCC
39717    builtin and then its argument prototype would still apply.  */
39718 #ifdef __cplusplus
39719 extern "C"
39720 #endif
39721 char $ac_func ();
39722 /* The GNU C library defines this for functions which it implements
39723     to always fail with ENOSYS.  Some functions are actually named
39724     something starting with __ and the normal name is an alias.  */
39725 #if defined __stub_$ac_func || defined __stub___$ac_func
39726 choke me
39727 #endif
39728
39729 int
39730 main ()
39731 {
39732 return $ac_func ();
39733   ;
39734   return 0;
39735 }
39736 _ACEOF
39737 rm -f conftest.$ac_objext conftest$ac_exeext
39738 if { (ac_try="$ac_link"
39739 case "(($ac_try" in
39740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39741   *) ac_try_echo=$ac_try;;
39742 esac
39743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39744   (eval "$ac_link") 2>conftest.er1
39745   ac_status=$?
39746   grep -v '^ *+' conftest.er1 >conftest.err
39747   rm -f conftest.er1
39748   cat conftest.err >&5
39749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750   (exit $ac_status); } &&
39751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39752   { (case "(($ac_try" in
39753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39754   *) ac_try_echo=$ac_try;;
39755 esac
39756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39757   (eval "$ac_try") 2>&5
39758   ac_status=$?
39759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39760   (exit $ac_status); }; } &&
39761          { ac_try='test -s conftest$ac_exeext'
39762   { (case "(($ac_try" in
39763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39764   *) ac_try_echo=$ac_try;;
39765 esac
39766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39767   (eval "$ac_try") 2>&5
39768   ac_status=$?
39769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770   (exit $ac_status); }; }; then
39771   eval "$as_ac_var=yes"
39772 else
39773   echo "$as_me: failed program was:" >&5
39774 sed 's/^/| /' conftest.$ac_ext >&5
39775
39776         eval "$as_ac_var=no"
39777 fi
39778
39779 rm -f core conftest.err conftest.$ac_objext \
39780       conftest$ac_exeext conftest.$ac_ext
39781 fi
39782 ac_res=`eval echo '${'$as_ac_var'}'`
39783                { echo "$as_me:$LINENO: result: $ac_res" >&5
39784 echo "${ECHO_T}$ac_res" >&6; }
39785 if test `eval echo '${'$as_ac_var'}'` = yes; then
39786   cat >>confdefs.h <<_ACEOF
39787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39788 _ACEOF
39789  WCSLEN_FOUND=1
39790 fi
39791 done
39792
39793
39794     if test "$WCSLEN_FOUND" = 0; then
39795         if test "$TOOLKIT" = "MSW"; then
39796             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
39797 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
39798 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
39799   echo $ECHO_N "(cached) $ECHO_C" >&6
39800 else
39801   ac_check_lib_save_LIBS=$LIBS
39802 LIBS="-lmsvcrt  $LIBS"
39803 cat >conftest.$ac_ext <<_ACEOF
39804 /* confdefs.h.  */
39805 _ACEOF
39806 cat confdefs.h >>conftest.$ac_ext
39807 cat >>conftest.$ac_ext <<_ACEOF
39808 /* end confdefs.h.  */
39809
39810 /* Override any GCC internal prototype to avoid an error.
39811    Use char because int might match the return type of a GCC
39812    builtin and then its argument prototype would still apply.  */
39813 #ifdef __cplusplus
39814 extern "C"
39815 #endif
39816 char wcslen ();
39817 int
39818 main ()
39819 {
39820 return wcslen ();
39821   ;
39822   return 0;
39823 }
39824 _ACEOF
39825 rm -f conftest.$ac_objext conftest$ac_exeext
39826 if { (ac_try="$ac_link"
39827 case "(($ac_try" in
39828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39829   *) ac_try_echo=$ac_try;;
39830 esac
39831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39832   (eval "$ac_link") 2>conftest.er1
39833   ac_status=$?
39834   grep -v '^ *+' conftest.er1 >conftest.err
39835   rm -f conftest.er1
39836   cat conftest.err >&5
39837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838   (exit $ac_status); } &&
39839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39840   { (case "(($ac_try" in
39841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39842   *) ac_try_echo=$ac_try;;
39843 esac
39844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39845   (eval "$ac_try") 2>&5
39846   ac_status=$?
39847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39848   (exit $ac_status); }; } &&
39849          { ac_try='test -s conftest$ac_exeext'
39850   { (case "(($ac_try" in
39851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39852   *) ac_try_echo=$ac_try;;
39853 esac
39854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39855   (eval "$ac_try") 2>&5
39856   ac_status=$?
39857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39858   (exit $ac_status); }; }; then
39859   ac_cv_lib_msvcrt_wcslen=yes
39860 else
39861   echo "$as_me: failed program was:" >&5
39862 sed 's/^/| /' conftest.$ac_ext >&5
39863
39864         ac_cv_lib_msvcrt_wcslen=no
39865 fi
39866
39867 rm -f core conftest.err conftest.$ac_objext \
39868       conftest$ac_exeext conftest.$ac_ext
39869 LIBS=$ac_check_lib_save_LIBS
39870 fi
39871 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
39872 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
39873 if test $ac_cv_lib_msvcrt_wcslen = yes; then
39874   WCHAR_OK=1
39875 fi
39876
39877         else
39878             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
39879 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
39880 if test "${ac_cv_lib_w_wcslen+set}" = set; then
39881   echo $ECHO_N "(cached) $ECHO_C" >&6
39882 else
39883   ac_check_lib_save_LIBS=$LIBS
39884 LIBS="-lw  $LIBS"
39885 cat >conftest.$ac_ext <<_ACEOF
39886 /* confdefs.h.  */
39887 _ACEOF
39888 cat confdefs.h >>conftest.$ac_ext
39889 cat >>conftest.$ac_ext <<_ACEOF
39890 /* end confdefs.h.  */
39891
39892 /* Override any GCC internal prototype to avoid an error.
39893    Use char because int might match the return type of a GCC
39894    builtin and then its argument prototype would still apply.  */
39895 #ifdef __cplusplus
39896 extern "C"
39897 #endif
39898 char wcslen ();
39899 int
39900 main ()
39901 {
39902 return wcslen ();
39903   ;
39904   return 0;
39905 }
39906 _ACEOF
39907 rm -f conftest.$ac_objext conftest$ac_exeext
39908 if { (ac_try="$ac_link"
39909 case "(($ac_try" in
39910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39911   *) ac_try_echo=$ac_try;;
39912 esac
39913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39914   (eval "$ac_link") 2>conftest.er1
39915   ac_status=$?
39916   grep -v '^ *+' conftest.er1 >conftest.err
39917   rm -f conftest.er1
39918   cat conftest.err >&5
39919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920   (exit $ac_status); } &&
39921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39922   { (case "(($ac_try" in
39923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39924   *) ac_try_echo=$ac_try;;
39925 esac
39926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39927   (eval "$ac_try") 2>&5
39928   ac_status=$?
39929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39930   (exit $ac_status); }; } &&
39931          { ac_try='test -s conftest$ac_exeext'
39932   { (case "(($ac_try" in
39933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39934   *) ac_try_echo=$ac_try;;
39935 esac
39936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39937   (eval "$ac_try") 2>&5
39938   ac_status=$?
39939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39940   (exit $ac_status); }; }; then
39941   ac_cv_lib_w_wcslen=yes
39942 else
39943   echo "$as_me: failed program was:" >&5
39944 sed 's/^/| /' conftest.$ac_ext >&5
39945
39946         ac_cv_lib_w_wcslen=no
39947 fi
39948
39949 rm -f core conftest.err conftest.$ac_objext \
39950       conftest$ac_exeext conftest.$ac_ext
39951 LIBS=$ac_check_lib_save_LIBS
39952 fi
39953 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
39954 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
39955 if test $ac_cv_lib_w_wcslen = yes; then
39956
39957                             WCHAR_LINK=" -lw"
39958                             WCSLEN_FOUND=1
39959
39960 fi
39961
39962         fi
39963     fi
39964
39965     if test "$WCSLEN_FOUND" = 1; then
39966         cat >>confdefs.h <<\_ACEOF
39967 #define HAVE_WCSLEN 1
39968 _ACEOF
39969
39970     fi
39971
39972                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
39973         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
39974     fi
39975
39976                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
39977 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
39978 if test "${ac_cv_type_mbstate_t+set}" = set; then
39979   echo $ECHO_N "(cached) $ECHO_C" >&6
39980 else
39981   cat >conftest.$ac_ext <<_ACEOF
39982 /* confdefs.h.  */
39983 _ACEOF
39984 cat confdefs.h >>conftest.$ac_ext
39985 cat >>conftest.$ac_ext <<_ACEOF
39986 /* end confdefs.h.  */
39987 #include <wchar.h>
39988
39989 typedef mbstate_t ac__type_new_;
39990 int
39991 main ()
39992 {
39993 if ((ac__type_new_ *) 0)
39994   return 0;
39995 if (sizeof (ac__type_new_))
39996   return 0;
39997   ;
39998   return 0;
39999 }
40000 _ACEOF
40001 rm -f conftest.$ac_objext
40002 if { (ac_try="$ac_compile"
40003 case "(($ac_try" in
40004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40005   *) ac_try_echo=$ac_try;;
40006 esac
40007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40008   (eval "$ac_compile") 2>conftest.er1
40009   ac_status=$?
40010   grep -v '^ *+' conftest.er1 >conftest.err
40011   rm -f conftest.er1
40012   cat conftest.err >&5
40013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014   (exit $ac_status); } &&
40015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
40022   ac_status=$?
40023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40024   (exit $ac_status); }; } &&
40025          { ac_try='test -s conftest.$ac_objext'
40026   { (case "(($ac_try" in
40027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40028   *) ac_try_echo=$ac_try;;
40029 esac
40030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40031   (eval "$ac_try") 2>&5
40032   ac_status=$?
40033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40034   (exit $ac_status); }; }; then
40035   ac_cv_type_mbstate_t=yes
40036 else
40037   echo "$as_me: failed program was:" >&5
40038 sed 's/^/| /' conftest.$ac_ext >&5
40039
40040         ac_cv_type_mbstate_t=no
40041 fi
40042
40043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40044 fi
40045 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
40046 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
40047 if test $ac_cv_type_mbstate_t = yes; then
40048
40049 cat >>confdefs.h <<_ACEOF
40050 #define HAVE_MBSTATE_T 1
40051 _ACEOF
40052
40053
40054 for ac_func in wcsrtombs
40055 do
40056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40060   echo $ECHO_N "(cached) $ECHO_C" >&6
40061 else
40062   cat >conftest.$ac_ext <<_ACEOF
40063 /* confdefs.h.  */
40064 _ACEOF
40065 cat confdefs.h >>conftest.$ac_ext
40066 cat >>conftest.$ac_ext <<_ACEOF
40067 /* end confdefs.h.  */
40068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40070 #define $ac_func innocuous_$ac_func
40071
40072 /* System header to define __stub macros and hopefully few prototypes,
40073     which can conflict with char $ac_func (); below.
40074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40075     <limits.h> exists even on freestanding compilers.  */
40076
40077 #ifdef __STDC__
40078 # include <limits.h>
40079 #else
40080 # include <assert.h>
40081 #endif
40082
40083 #undef $ac_func
40084
40085 /* Override any GCC internal prototype to avoid an error.
40086    Use char because int might match the return type of a GCC
40087    builtin and then its argument prototype would still apply.  */
40088 #ifdef __cplusplus
40089 extern "C"
40090 #endif
40091 char $ac_func ();
40092 /* The GNU C library defines this for functions which it implements
40093     to always fail with ENOSYS.  Some functions are actually named
40094     something starting with __ and the normal name is an alias.  */
40095 #if defined __stub_$ac_func || defined __stub___$ac_func
40096 choke me
40097 #endif
40098
40099 int
40100 main ()
40101 {
40102 return $ac_func ();
40103   ;
40104   return 0;
40105 }
40106 _ACEOF
40107 rm -f conftest.$ac_objext conftest$ac_exeext
40108 if { (ac_try="$ac_link"
40109 case "(($ac_try" in
40110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40111   *) ac_try_echo=$ac_try;;
40112 esac
40113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40114   (eval "$ac_link") 2>conftest.er1
40115   ac_status=$?
40116   grep -v '^ *+' conftest.er1 >conftest.err
40117   rm -f conftest.er1
40118   cat conftest.err >&5
40119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40120   (exit $ac_status); } &&
40121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40122   { (case "(($ac_try" in
40123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40124   *) ac_try_echo=$ac_try;;
40125 esac
40126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40127   (eval "$ac_try") 2>&5
40128   ac_status=$?
40129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40130   (exit $ac_status); }; } &&
40131          { ac_try='test -s conftest$ac_exeext'
40132   { (case "(($ac_try" in
40133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40134   *) ac_try_echo=$ac_try;;
40135 esac
40136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40137   (eval "$ac_try") 2>&5
40138   ac_status=$?
40139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40140   (exit $ac_status); }; }; then
40141   eval "$as_ac_var=yes"
40142 else
40143   echo "$as_me: failed program was:" >&5
40144 sed 's/^/| /' conftest.$ac_ext >&5
40145
40146         eval "$as_ac_var=no"
40147 fi
40148
40149 rm -f core conftest.err conftest.$ac_objext \
40150       conftest$ac_exeext conftest.$ac_ext
40151 fi
40152 ac_res=`eval echo '${'$as_ac_var'}'`
40153                { echo "$as_me:$LINENO: result: $ac_res" >&5
40154 echo "${ECHO_T}$ac_res" >&6; }
40155 if test `eval echo '${'$as_ac_var'}'` = yes; then
40156   cat >>confdefs.h <<_ACEOF
40157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40158 _ACEOF
40159
40160 fi
40161 done
40162
40163 fi
40164
40165 else
40166     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
40167 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
40168 fi
40169
40170
40171
40172 for ac_func in snprintf vsnprintf
40173 do
40174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40178   echo $ECHO_N "(cached) $ECHO_C" >&6
40179 else
40180   cat >conftest.$ac_ext <<_ACEOF
40181 /* confdefs.h.  */
40182 _ACEOF
40183 cat confdefs.h >>conftest.$ac_ext
40184 cat >>conftest.$ac_ext <<_ACEOF
40185 /* end confdefs.h.  */
40186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40188 #define $ac_func innocuous_$ac_func
40189
40190 /* System header to define __stub macros and hopefully few prototypes,
40191     which can conflict with char $ac_func (); below.
40192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40193     <limits.h> exists even on freestanding compilers.  */
40194
40195 #ifdef __STDC__
40196 # include <limits.h>
40197 #else
40198 # include <assert.h>
40199 #endif
40200
40201 #undef $ac_func
40202
40203 /* Override any GCC internal prototype to avoid an error.
40204    Use char because int might match the return type of a GCC
40205    builtin and then its argument prototype would still apply.  */
40206 #ifdef __cplusplus
40207 extern "C"
40208 #endif
40209 char $ac_func ();
40210 /* The GNU C library defines this for functions which it implements
40211     to always fail with ENOSYS.  Some functions are actually named
40212     something starting with __ and the normal name is an alias.  */
40213 #if defined __stub_$ac_func || defined __stub___$ac_func
40214 choke me
40215 #endif
40216
40217 int
40218 main ()
40219 {
40220 return $ac_func ();
40221   ;
40222   return 0;
40223 }
40224 _ACEOF
40225 rm -f conftest.$ac_objext conftest$ac_exeext
40226 if { (ac_try="$ac_link"
40227 case "(($ac_try" in
40228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40229   *) ac_try_echo=$ac_try;;
40230 esac
40231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40232   (eval "$ac_link") 2>conftest.er1
40233   ac_status=$?
40234   grep -v '^ *+' conftest.er1 >conftest.err
40235   rm -f conftest.er1
40236   cat conftest.err >&5
40237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40238   (exit $ac_status); } &&
40239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40240   { (case "(($ac_try" in
40241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40242   *) ac_try_echo=$ac_try;;
40243 esac
40244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40245   (eval "$ac_try") 2>&5
40246   ac_status=$?
40247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248   (exit $ac_status); }; } &&
40249          { ac_try='test -s conftest$ac_exeext'
40250   { (case "(($ac_try" in
40251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40252   *) ac_try_echo=$ac_try;;
40253 esac
40254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40255   (eval "$ac_try") 2>&5
40256   ac_status=$?
40257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40258   (exit $ac_status); }; }; then
40259   eval "$as_ac_var=yes"
40260 else
40261   echo "$as_me: failed program was:" >&5
40262 sed 's/^/| /' conftest.$ac_ext >&5
40263
40264         eval "$as_ac_var=no"
40265 fi
40266
40267 rm -f core conftest.err conftest.$ac_objext \
40268       conftest$ac_exeext conftest.$ac_ext
40269 fi
40270 ac_res=`eval echo '${'$as_ac_var'}'`
40271                { echo "$as_me:$LINENO: result: $ac_res" >&5
40272 echo "${ECHO_T}$ac_res" >&6; }
40273 if test `eval echo '${'$as_ac_var'}'` = yes; then
40274   cat >>confdefs.h <<_ACEOF
40275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40276 _ACEOF
40277
40278 fi
40279 done
40280
40281
40282 if test "$ac_cv_func_vsnprintf" = "yes"; then
40283         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
40284 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
40285 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
40286   echo $ECHO_N "(cached) $ECHO_C" >&6
40287 else
40288
40289                                                             cat >conftest.$ac_ext <<_ACEOF
40290 /* confdefs.h.  */
40291 _ACEOF
40292 cat confdefs.h >>conftest.$ac_ext
40293 cat >>conftest.$ac_ext <<_ACEOF
40294 /* end confdefs.h.  */
40295
40296                     #include <stdio.h>
40297                     #include <stdarg.h>
40298                     #ifdef __MSL__
40299                     #if __MSL__ >= 0x6000
40300                     namespace std {}
40301                     using namespace std;
40302                     #endif
40303                     #endif
40304
40305 int
40306 main ()
40307 {
40308
40309                     char *buf;
40310                     va_list ap;
40311                     vsnprintf(buf, 10u, "%s", ap);
40312
40313   ;
40314   return 0;
40315 }
40316 _ACEOF
40317 rm -f conftest.$ac_objext
40318 if { (ac_try="$ac_compile"
40319 case "(($ac_try" in
40320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40321   *) ac_try_echo=$ac_try;;
40322 esac
40323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40324   (eval "$ac_compile") 2>conftest.er1
40325   ac_status=$?
40326   grep -v '^ *+' conftest.er1 >conftest.err
40327   rm -f conftest.er1
40328   cat conftest.err >&5
40329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40330   (exit $ac_status); } &&
40331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40332   { (case "(($ac_try" in
40333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40334   *) ac_try_echo=$ac_try;;
40335 esac
40336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40337   (eval "$ac_try") 2>&5
40338   ac_status=$?
40339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340   (exit $ac_status); }; } &&
40341          { ac_try='test -s conftest.$ac_objext'
40342   { (case "(($ac_try" in
40343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40344   *) ac_try_echo=$ac_try;;
40345 esac
40346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40347   (eval "$ac_try") 2>&5
40348   ac_status=$?
40349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40350   (exit $ac_status); }; }; then
40351   wx_cv_func_vsnprintf_decl=yes
40352 else
40353   echo "$as_me: failed program was:" >&5
40354 sed 's/^/| /' conftest.$ac_ext >&5
40355
40356         wx_cv_func_vsnprintf_decl=no
40357
40358 fi
40359
40360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40361
40362
40363 fi
40364 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
40365 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
40366
40367     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
40368         cat >>confdefs.h <<\_ACEOF
40369 #define HAVE_VSNPRINTF_DECL 1
40370 _ACEOF
40371
40372
40373                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
40374 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
40375 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
40376   echo $ECHO_N "(cached) $ECHO_C" >&6
40377 else
40378
40379                 cat >conftest.$ac_ext <<_ACEOF
40380 /* confdefs.h.  */
40381 _ACEOF
40382 cat confdefs.h >>conftest.$ac_ext
40383 cat >>conftest.$ac_ext <<_ACEOF
40384 /* end confdefs.h.  */
40385
40386                         #include <stdio.h>
40387                         #include <stdarg.h>
40388                         #ifdef __MSL__
40389                         #if __MSL__ >= 0x6000
40390                         namespace std {}
40391                         using namespace std;
40392                         #endif
40393                         #endif
40394
40395 int
40396 main ()
40397 {
40398
40399                         char *buf;
40400                         va_list ap;
40401                         const char *fmt = "%s";
40402                         vsnprintf(buf, 10u, fmt, ap);
40403
40404   ;
40405   return 0;
40406 }
40407 _ACEOF
40408 rm -f conftest.$ac_objext
40409 if { (ac_try="$ac_compile"
40410 case "(($ac_try" in
40411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40412   *) ac_try_echo=$ac_try;;
40413 esac
40414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40415   (eval "$ac_compile") 2>conftest.er1
40416   ac_status=$?
40417   grep -v '^ *+' conftest.er1 >conftest.err
40418   rm -f conftest.er1
40419   cat conftest.err >&5
40420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421   (exit $ac_status); } &&
40422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40423   { (case "(($ac_try" in
40424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40425   *) ac_try_echo=$ac_try;;
40426 esac
40427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40428   (eval "$ac_try") 2>&5
40429   ac_status=$?
40430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40431   (exit $ac_status); }; } &&
40432          { ac_try='test -s conftest.$ac_objext'
40433   { (case "(($ac_try" in
40434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40435   *) ac_try_echo=$ac_try;;
40436 esac
40437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40438   (eval "$ac_try") 2>&5
40439   ac_status=$?
40440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40441   (exit $ac_status); }; }; then
40442   wx_cv_func_broken_vsnprintf_decl=no
40443 else
40444   echo "$as_me: failed program was:" >&5
40445 sed 's/^/| /' conftest.$ac_ext >&5
40446
40447         wx_cv_func_broken_vsnprintf_decl=yes
40448
40449 fi
40450
40451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40452
40453
40454 fi
40455 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
40456 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
40457
40458         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
40459             cat >>confdefs.h <<\_ACEOF
40460 #define HAVE_BROKEN_VSNPRINTF_DECL 1
40461 _ACEOF
40462
40463         fi
40464     fi
40465 fi
40466
40467 if test "$ac_cv_func_snprintf" = "yes"; then
40468     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
40469 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
40470 if test "${wx_cv_func_snprintf_decl+set}" = set; then
40471   echo $ECHO_N "(cached) $ECHO_C" >&6
40472 else
40473
40474             cat >conftest.$ac_ext <<_ACEOF
40475 /* confdefs.h.  */
40476 _ACEOF
40477 cat confdefs.h >>conftest.$ac_ext
40478 cat >>conftest.$ac_ext <<_ACEOF
40479 /* end confdefs.h.  */
40480
40481                     #include <stdio.h>
40482                     #include <stdarg.h>
40483                     #ifdef __MSL__
40484                     #if __MSL__ >= 0x6000
40485                     namespace std {}
40486                     using namespace std;
40487                     #endif
40488                     #endif
40489
40490 int
40491 main ()
40492 {
40493
40494                     char *buf;
40495                     snprintf(buf, 10u, "%s", "wx");
40496
40497   ;
40498   return 0;
40499 }
40500 _ACEOF
40501 rm -f conftest.$ac_objext
40502 if { (ac_try="$ac_compile"
40503 case "(($ac_try" in
40504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40505   *) ac_try_echo=$ac_try;;
40506 esac
40507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40508   (eval "$ac_compile") 2>conftest.er1
40509   ac_status=$?
40510   grep -v '^ *+' conftest.er1 >conftest.err
40511   rm -f conftest.er1
40512   cat conftest.err >&5
40513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40514   (exit $ac_status); } &&
40515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40516   { (case "(($ac_try" in
40517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40518   *) ac_try_echo=$ac_try;;
40519 esac
40520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40521   (eval "$ac_try") 2>&5
40522   ac_status=$?
40523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524   (exit $ac_status); }; } &&
40525          { ac_try='test -s conftest.$ac_objext'
40526   { (case "(($ac_try" in
40527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40528   *) ac_try_echo=$ac_try;;
40529 esac
40530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40531   (eval "$ac_try") 2>&5
40532   ac_status=$?
40533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534   (exit $ac_status); }; }; then
40535   wx_cv_func_snprintf_decl=yes
40536 else
40537   echo "$as_me: failed program was:" >&5
40538 sed 's/^/| /' conftest.$ac_ext >&5
40539
40540         wx_cv_func_snprintf_decl=no
40541
40542 fi
40543
40544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40545
40546
40547 fi
40548 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
40549 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
40550
40551     if test "$wx_cv_func_snprintf_decl" = "yes"; then
40552         cat >>confdefs.h <<\_ACEOF
40553 #define HAVE_SNPRINTF_DECL 1
40554 _ACEOF
40555
40556
40557                         { echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
40558 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6; }
40559 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
40560   echo $ECHO_N "(cached) $ECHO_C" >&6
40561 else
40562
40563                 cat >conftest.$ac_ext <<_ACEOF
40564 /* confdefs.h.  */
40565 _ACEOF
40566 cat confdefs.h >>conftest.$ac_ext
40567 cat >>conftest.$ac_ext <<_ACEOF
40568 /* end confdefs.h.  */
40569
40570                         #include <stdio.h>
40571                         #include <stdarg.h>
40572                         #ifdef __MSL__
40573                         #if __MSL__ >= 0x6000
40574                         namespace std {}
40575                         using namespace std;
40576                         #endif
40577                         #endif
40578
40579 int
40580 main ()
40581 {
40582
40583                         char *buf;
40584                         const char *fmt = "%s";
40585                         snprintf(buf, 10u, fmt, "wx");
40586
40587   ;
40588   return 0;
40589 }
40590 _ACEOF
40591 rm -f conftest.$ac_objext
40592 if { (ac_try="$ac_compile"
40593 case "(($ac_try" in
40594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40595   *) ac_try_echo=$ac_try;;
40596 esac
40597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40598   (eval "$ac_compile") 2>conftest.er1
40599   ac_status=$?
40600   grep -v '^ *+' conftest.er1 >conftest.err
40601   rm -f conftest.er1
40602   cat conftest.err >&5
40603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40604   (exit $ac_status); } &&
40605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40606   { (case "(($ac_try" in
40607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40608   *) ac_try_echo=$ac_try;;
40609 esac
40610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40611   (eval "$ac_try") 2>&5
40612   ac_status=$?
40613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40614   (exit $ac_status); }; } &&
40615          { ac_try='test -s conftest.$ac_objext'
40616   { (case "(($ac_try" in
40617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40618   *) ac_try_echo=$ac_try;;
40619 esac
40620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40621   (eval "$ac_try") 2>&5
40622   ac_status=$?
40623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40624   (exit $ac_status); }; }; then
40625   wx_cv_func_broken_snprintf_decl=no
40626 else
40627   echo "$as_me: failed program was:" >&5
40628 sed 's/^/| /' conftest.$ac_ext >&5
40629
40630         wx_cv_func_broken_snprintf_decl=yes
40631
40632 fi
40633
40634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40635
40636
40637 fi
40638 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
40639 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6; }
40640
40641         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
40642             cat >>confdefs.h <<\_ACEOF
40643 #define HAVE_BROKEN_SNPRINTF_DECL 1
40644 _ACEOF
40645
40646         fi
40647     fi
40648
40649     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
40650
40651                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
40652 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
40653 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
40654   echo $ECHO_N "(cached) $ECHO_C" >&6
40655 else
40656
40657                 if test "$cross_compiling" = yes; then
40658
40659                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
40660 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
40661 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
40662 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
40663                         wx_cv_func_snprintf_pos_params=no
40664
40665
40666 else
40667   cat >conftest.$ac_ext <<_ACEOF
40668 /* confdefs.h.  */
40669 _ACEOF
40670 cat confdefs.h >>conftest.$ac_ext
40671 cat >>conftest.$ac_ext <<_ACEOF
40672 /* end confdefs.h.  */
40673
40674                         #include <stdio.h>
40675
40676                         int main (void)
40677                         {
40678                             char buffer[128];
40679                             snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
40680                             if (strcmp ("2 3 1", buffer) == 0)
40681                                 exit (0);
40682                             exit (1);
40683                         }
40684
40685 _ACEOF
40686 rm -f conftest$ac_exeext
40687 if { (ac_try="$ac_link"
40688 case "(($ac_try" in
40689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40690   *) ac_try_echo=$ac_try;;
40691 esac
40692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40693   (eval "$ac_link") 2>&5
40694   ac_status=$?
40695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40697   { (case "(($ac_try" in
40698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40699   *) ac_try_echo=$ac_try;;
40700 esac
40701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40702   (eval "$ac_try") 2>&5
40703   ac_status=$?
40704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40705   (exit $ac_status); }; }; then
40706   wx_cv_func_snprintf_pos_params=no
40707 else
40708   echo "$as_me: program exited with status $ac_status" >&5
40709 echo "$as_me: failed program was:" >&5
40710 sed 's/^/| /' conftest.$ac_ext >&5
40711
40712 ( exit $ac_status )
40713 wx_cv_func_snprintf_pos_params=yes
40714 fi
40715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40716 fi
40717
40718
40719
40720
40721 fi
40722 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
40723 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
40724
40725         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
40726             cat >>confdefs.h <<\_ACEOF
40727 #define HAVE_UNIX98_PRINTF 1
40728 _ACEOF
40729
40730         fi
40731     fi
40732 fi
40733
40734 if test "$wxUSE_UNICODE" = yes; then
40735
40736
40737 for ac_func in swprintf
40738 do
40739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40743   echo $ECHO_N "(cached) $ECHO_C" >&6
40744 else
40745   cat >conftest.$ac_ext <<_ACEOF
40746 /* confdefs.h.  */
40747 _ACEOF
40748 cat confdefs.h >>conftest.$ac_ext
40749 cat >>conftest.$ac_ext <<_ACEOF
40750 /* end confdefs.h.  */
40751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40753 #define $ac_func innocuous_$ac_func
40754
40755 /* System header to define __stub macros and hopefully few prototypes,
40756     which can conflict with char $ac_func (); below.
40757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40758     <limits.h> exists even on freestanding compilers.  */
40759
40760 #ifdef __STDC__
40761 # include <limits.h>
40762 #else
40763 # include <assert.h>
40764 #endif
40765
40766 #undef $ac_func
40767
40768 /* Override any GCC internal prototype to avoid an error.
40769    Use char because int might match the return type of a GCC
40770    builtin and then its argument prototype would still apply.  */
40771 #ifdef __cplusplus
40772 extern "C"
40773 #endif
40774 char $ac_func ();
40775 /* The GNU C library defines this for functions which it implements
40776     to always fail with ENOSYS.  Some functions are actually named
40777     something starting with __ and the normal name is an alias.  */
40778 #if defined __stub_$ac_func || defined __stub___$ac_func
40779 choke me
40780 #endif
40781
40782 int
40783 main ()
40784 {
40785 return $ac_func ();
40786   ;
40787   return 0;
40788 }
40789 _ACEOF
40790 rm -f conftest.$ac_objext conftest$ac_exeext
40791 if { (ac_try="$ac_link"
40792 case "(($ac_try" in
40793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40794   *) ac_try_echo=$ac_try;;
40795 esac
40796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40797   (eval "$ac_link") 2>conftest.er1
40798   ac_status=$?
40799   grep -v '^ *+' conftest.er1 >conftest.err
40800   rm -f conftest.er1
40801   cat conftest.err >&5
40802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40803   (exit $ac_status); } &&
40804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40805   { (case "(($ac_try" in
40806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40807   *) ac_try_echo=$ac_try;;
40808 esac
40809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40810   (eval "$ac_try") 2>&5
40811   ac_status=$?
40812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40813   (exit $ac_status); }; } &&
40814          { ac_try='test -s conftest$ac_exeext'
40815   { (case "(($ac_try" in
40816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40817   *) ac_try_echo=$ac_try;;
40818 esac
40819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40820   (eval "$ac_try") 2>&5
40821   ac_status=$?
40822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40823   (exit $ac_status); }; }; then
40824   eval "$as_ac_var=yes"
40825 else
40826   echo "$as_me: failed program was:" >&5
40827 sed 's/^/| /' conftest.$ac_ext >&5
40828
40829         eval "$as_ac_var=no"
40830 fi
40831
40832 rm -f core conftest.err conftest.$ac_objext \
40833       conftest$ac_exeext conftest.$ac_ext
40834 fi
40835 ac_res=`eval echo '${'$as_ac_var'}'`
40836                { echo "$as_me:$LINENO: result: $ac_res" >&5
40837 echo "${ECHO_T}$ac_res" >&6; }
40838 if test `eval echo '${'$as_ac_var'}'` = yes; then
40839   cat >>confdefs.h <<_ACEOF
40840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40841 _ACEOF
40842
40843 fi
40844 done
40845
40846
40847     if test "$ac_cv_func_swprintf" = "yes"; then
40848         { echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
40849 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6; }
40850 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
40851   echo $ECHO_N "(cached) $ECHO_C" >&6
40852 else
40853
40854                 cat >conftest.$ac_ext <<_ACEOF
40855 /* confdefs.h.  */
40856 _ACEOF
40857 cat confdefs.h >>conftest.$ac_ext
40858 cat >>conftest.$ac_ext <<_ACEOF
40859 /* end confdefs.h.  */
40860
40861                         #include <stdio.h>
40862                         #include <stdarg.h>
40863                         #include <wchar.h>
40864
40865 int
40866 main ()
40867 {
40868
40869                         wchar_t *buf;
40870                         const wchar_t *fmt = L"test";
40871                         swprintf(buf, 10u, fmt);
40872
40873   ;
40874   return 0;
40875 }
40876 _ACEOF
40877 rm -f conftest.$ac_objext
40878 if { (ac_try="$ac_compile"
40879 case "(($ac_try" in
40880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40881   *) ac_try_echo=$ac_try;;
40882 esac
40883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40884   (eval "$ac_compile") 2>conftest.er1
40885   ac_status=$?
40886   grep -v '^ *+' conftest.er1 >conftest.err
40887   rm -f conftest.er1
40888   cat conftest.err >&5
40889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890   (exit $ac_status); } &&
40891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40892   { (case "(($ac_try" in
40893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40894   *) ac_try_echo=$ac_try;;
40895 esac
40896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40897   (eval "$ac_try") 2>&5
40898   ac_status=$?
40899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900   (exit $ac_status); }; } &&
40901          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
40908   ac_status=$?
40909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40910   (exit $ac_status); }; }; then
40911   wx_cv_func_broken_swprintf_decl=no
40912 else
40913   echo "$as_me: failed program was:" >&5
40914 sed 's/^/| /' conftest.$ac_ext >&5
40915
40916         wx_cv_func_broken_swprintf_decl=yes
40917
40918 fi
40919
40920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40921
40922
40923 fi
40924 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
40925 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6; }
40926
40927         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
40928             cat >>confdefs.h <<\_ACEOF
40929 #define HAVE_BROKEN_SWPRINTF_DECL 1
40930 _ACEOF
40931
40932         fi
40933     fi
40934
40935             wchar_headers="#include <stdio.h>
40936 #include <wchar.h>"
40937     case "${host}" in
40938         *-*-solaris2* )
40939
40940 for ac_header in widec.h
40941 do
40942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40944   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40947   echo $ECHO_N "(cached) $ECHO_C" >&6
40948 fi
40949 ac_res=`eval echo '${'$as_ac_Header'}'`
40950                { echo "$as_me:$LINENO: result: $ac_res" >&5
40951 echo "${ECHO_T}$ac_res" >&6; }
40952 else
40953   # Is the header compilable?
40954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40956 cat >conftest.$ac_ext <<_ACEOF
40957 /* confdefs.h.  */
40958 _ACEOF
40959 cat confdefs.h >>conftest.$ac_ext
40960 cat >>conftest.$ac_ext <<_ACEOF
40961 /* end confdefs.h.  */
40962 $ac_includes_default
40963 #include <$ac_header>
40964 _ACEOF
40965 rm -f conftest.$ac_objext
40966 if { (ac_try="$ac_compile"
40967 case "(($ac_try" in
40968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40969   *) ac_try_echo=$ac_try;;
40970 esac
40971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40972   (eval "$ac_compile") 2>conftest.er1
40973   ac_status=$?
40974   grep -v '^ *+' conftest.er1 >conftest.err
40975   rm -f conftest.er1
40976   cat conftest.err >&5
40977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978   (exit $ac_status); } &&
40979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40980   { (case "(($ac_try" in
40981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40982   *) ac_try_echo=$ac_try;;
40983 esac
40984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40985   (eval "$ac_try") 2>&5
40986   ac_status=$?
40987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40988   (exit $ac_status); }; } &&
40989          { ac_try='test -s conftest.$ac_objext'
40990   { (case "(($ac_try" in
40991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40992   *) ac_try_echo=$ac_try;;
40993 esac
40994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40995   (eval "$ac_try") 2>&5
40996   ac_status=$?
40997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40998   (exit $ac_status); }; }; then
40999   ac_header_compiler=yes
41000 else
41001   echo "$as_me: failed program was:" >&5
41002 sed 's/^/| /' conftest.$ac_ext >&5
41003
41004         ac_header_compiler=no
41005 fi
41006
41007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41008 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41009 echo "${ECHO_T}$ac_header_compiler" >&6; }
41010
41011 # Is the header present?
41012 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41014 cat >conftest.$ac_ext <<_ACEOF
41015 /* confdefs.h.  */
41016 _ACEOF
41017 cat confdefs.h >>conftest.$ac_ext
41018 cat >>conftest.$ac_ext <<_ACEOF
41019 /* end confdefs.h.  */
41020 #include <$ac_header>
41021 _ACEOF
41022 if { (ac_try="$ac_cpp conftest.$ac_ext"
41023 case "(($ac_try" in
41024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41025   *) ac_try_echo=$ac_try;;
41026 esac
41027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41029   ac_status=$?
41030   grep -v '^ *+' conftest.er1 >conftest.err
41031   rm -f conftest.er1
41032   cat conftest.err >&5
41033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41034   (exit $ac_status); } >/dev/null; then
41035   if test -s conftest.err; then
41036     ac_cpp_err=$ac_c_preproc_warn_flag
41037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41038   else
41039     ac_cpp_err=
41040   fi
41041 else
41042   ac_cpp_err=yes
41043 fi
41044 if test -z "$ac_cpp_err"; then
41045   ac_header_preproc=yes
41046 else
41047   echo "$as_me: failed program was:" >&5
41048 sed 's/^/| /' conftest.$ac_ext >&5
41049
41050   ac_header_preproc=no
41051 fi
41052
41053 rm -f conftest.err conftest.$ac_ext
41054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41055 echo "${ECHO_T}$ac_header_preproc" >&6; }
41056
41057 # So?  What about this header?
41058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41059   yes:no: )
41060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41064     ac_header_preproc=yes
41065     ;;
41066   no:yes:* )
41067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41069     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41070 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41071     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41073     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41074 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41077     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41079     ( cat <<\_ASBOX
41080 ## ----------------------------------------- ##
41081 ## Report this to wx-dev@lists.wxwidgets.org ##
41082 ## ----------------------------------------- ##
41083 _ASBOX
41084      ) | sed "s/^/$as_me: WARNING:     /" >&2
41085     ;;
41086 esac
41087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41090   echo $ECHO_N "(cached) $ECHO_C" >&6
41091 else
41092   eval "$as_ac_Header=\$ac_header_preproc"
41093 fi
41094 ac_res=`eval echo '${'$as_ac_Header'}'`
41095                { echo "$as_me:$LINENO: result: $ac_res" >&5
41096 echo "${ECHO_T}$ac_res" >&6; }
41097
41098 fi
41099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41100   cat >>confdefs.h <<_ACEOF
41101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41102 _ACEOF
41103
41104 fi
41105
41106 done
41107
41108             if test "$ac_cv_header_widec_h" = "yes"; then
41109                 wchar_headers="$wchar_headers
41110 #include <widec.h>"
41111             fi
41112     esac
41113
41114
41115   for wx_func in wputc wputchar putws fputws wprintf vswprintf
41116   do
41117     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41118 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41119 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41120   echo $ECHO_N "(cached) $ECHO_C" >&6
41121 else
41122
41123         cat >conftest.$ac_ext <<_ACEOF
41124
41125             /* confdefs.h.  */
41126 _ACEOF
41127 cat confdefs.h >>conftest.$ac_ext
41128 cat >>conftest.$ac_ext <<_ACEOF
41129 /* end confdefs.h.  */
41130
41131                 $wchar_headers
41132                 $ac_includes_default
41133
41134 int
41135 main ()
41136 {
41137
41138                 #ifndef $wx_func
41139                   &$wx_func;
41140                 #endif
41141
41142
41143   ;
41144   return 0;
41145 }
41146
41147 _ACEOF
41148 rm -f conftest.$ac_objext conftest$ac_exeext
41149 if { (ac_try="$ac_link"
41150 case "(($ac_try" in
41151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41152   *) ac_try_echo=$ac_try;;
41153 esac
41154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41155   (eval "$ac_link") 2>conftest.er1
41156   ac_status=$?
41157   grep -v '^ *+' conftest.er1 >conftest.err
41158   rm -f conftest.er1
41159   cat conftest.err >&5
41160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161   (exit $ac_status); } &&
41162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41163   { (case "(($ac_try" in
41164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41165   *) ac_try_echo=$ac_try;;
41166 esac
41167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41168   (eval "$ac_try") 2>&5
41169   ac_status=$?
41170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41171   (exit $ac_status); }; } &&
41172          { ac_try='test -s conftest$ac_exeext'
41173   { (case "(($ac_try" in
41174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41175   *) ac_try_echo=$ac_try;;
41176 esac
41177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41178   (eval "$ac_try") 2>&5
41179   ac_status=$?
41180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41181   (exit $ac_status); }; }; then
41182   eval wx_cv_func_$wx_func=yes
41183 else
41184   echo "$as_me: failed program was:" >&5
41185 sed 's/^/| /' conftest.$ac_ext >&5
41186
41187         eval wx_cv_func_$wx_func=no
41188 fi
41189
41190 rm -f core conftest.err conftest.$ac_objext \
41191       conftest$ac_exeext conftest.$ac_ext
41192
41193 fi
41194 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41195                { echo "$as_me:$LINENO: result: $ac_res" >&5
41196 echo "${ECHO_T}$ac_res" >&6; }
41197
41198     if eval test \$wx_cv_func_$wx_func = yes
41199     then
41200       cat >>confdefs.h <<_ACEOF
41201 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41202 _ACEOF
41203
41204
41205     else
41206       :
41207
41208     fi
41209   done
41210
41211
41212                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
41213 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
41214     cat >conftest.$ac_ext <<_ACEOF
41215 /* confdefs.h.  */
41216 _ACEOF
41217 cat confdefs.h >>conftest.$ac_ext
41218 cat >>conftest.$ac_ext <<_ACEOF
41219 /* end confdefs.h.  */
41220 #include <wchar.h>
41221 int
41222 main ()
41223 {
41224 &_vsnwprintf;
41225   ;
41226   return 0;
41227 }
41228 _ACEOF
41229 rm -f conftest.$ac_objext
41230 if { (ac_try="$ac_compile"
41231 case "(($ac_try" in
41232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41233   *) ac_try_echo=$ac_try;;
41234 esac
41235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41236   (eval "$ac_compile") 2>conftest.er1
41237   ac_status=$?
41238   grep -v '^ *+' conftest.er1 >conftest.err
41239   rm -f conftest.er1
41240   cat conftest.err >&5
41241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41242   (exit $ac_status); } &&
41243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41244   { (case "(($ac_try" in
41245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41246   *) ac_try_echo=$ac_try;;
41247 esac
41248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41249   (eval "$ac_try") 2>&5
41250   ac_status=$?
41251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41252   (exit $ac_status); }; } &&
41253          { ac_try='test -s conftest.$ac_objext'
41254   { (case "(($ac_try" in
41255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41256   *) ac_try_echo=$ac_try;;
41257 esac
41258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41259   (eval "$ac_try") 2>&5
41260   ac_status=$?
41261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41262   (exit $ac_status); }; }; then
41263   { echo "$as_me:$LINENO: result: yes" >&5
41264 echo "${ECHO_T}yes" >&6; }
41265                     cat >>confdefs.h <<\_ACEOF
41266 #define HAVE__VSNWPRINTF 1
41267 _ACEOF
41268
41269 else
41270   echo "$as_me: failed program was:" >&5
41271 sed 's/^/| /' conftest.$ac_ext >&5
41272
41273         { echo "$as_me:$LINENO: result: no" >&5
41274 echo "${ECHO_T}no" >&6; }
41275 fi
41276
41277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
41278 fi
41279
41280 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
41281
41282   for wx_func in fnmatch
41283   do
41284     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41285 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41286 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41287   echo $ECHO_N "(cached) $ECHO_C" >&6
41288 else
41289
41290         cat >conftest.$ac_ext <<_ACEOF
41291
41292             /* confdefs.h.  */
41293 _ACEOF
41294 cat confdefs.h >>conftest.$ac_ext
41295 cat >>conftest.$ac_ext <<_ACEOF
41296 /* end confdefs.h.  */
41297
41298                 #include <fnmatch.h>
41299                 $ac_includes_default
41300
41301 int
41302 main ()
41303 {
41304
41305                 #ifndef $wx_func
41306                   &$wx_func;
41307                 #endif
41308
41309
41310   ;
41311   return 0;
41312 }
41313
41314 _ACEOF
41315 rm -f conftest.$ac_objext conftest$ac_exeext
41316 if { (ac_try="$ac_link"
41317 case "(($ac_try" in
41318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41319   *) ac_try_echo=$ac_try;;
41320 esac
41321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41322   (eval "$ac_link") 2>conftest.er1
41323   ac_status=$?
41324   grep -v '^ *+' conftest.er1 >conftest.err
41325   rm -f conftest.er1
41326   cat conftest.err >&5
41327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41328   (exit $ac_status); } &&
41329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41330   { (case "(($ac_try" in
41331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41332   *) ac_try_echo=$ac_try;;
41333 esac
41334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41335   (eval "$ac_try") 2>&5
41336   ac_status=$?
41337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41338   (exit $ac_status); }; } &&
41339          { ac_try='test -s conftest$ac_exeext'
41340   { (case "(($ac_try" in
41341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41342   *) ac_try_echo=$ac_try;;
41343 esac
41344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41345   (eval "$ac_try") 2>&5
41346   ac_status=$?
41347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41348   (exit $ac_status); }; }; then
41349   eval wx_cv_func_$wx_func=yes
41350 else
41351   echo "$as_me: failed program was:" >&5
41352 sed 's/^/| /' conftest.$ac_ext >&5
41353
41354         eval wx_cv_func_$wx_func=no
41355 fi
41356
41357 rm -f core conftest.err conftest.$ac_objext \
41358       conftest$ac_exeext conftest.$ac_ext
41359
41360 fi
41361 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41362                { echo "$as_me:$LINENO: result: $ac_res" >&5
41363 echo "${ECHO_T}$ac_res" >&6; }
41364
41365     if eval test \$wx_cv_func_$wx_func = yes
41366     then
41367       cat >>confdefs.h <<_ACEOF
41368 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41369 _ACEOF
41370
41371
41372     else
41373       :
41374
41375     fi
41376   done
41377
41378 fi
41379
41380 if test "$wxUSE_FILE" = "yes"; then
41381
41382   for wx_func in fsync
41383   do
41384     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41385 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41386 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41387   echo $ECHO_N "(cached) $ECHO_C" >&6
41388 else
41389
41390         cat >conftest.$ac_ext <<_ACEOF
41391
41392             /* confdefs.h.  */
41393 _ACEOF
41394 cat confdefs.h >>conftest.$ac_ext
41395 cat >>conftest.$ac_ext <<_ACEOF
41396 /* end confdefs.h.  */
41397
41398
41399                 $ac_includes_default
41400
41401 int
41402 main ()
41403 {
41404
41405                 #ifndef $wx_func
41406                   &$wx_func;
41407                 #endif
41408
41409
41410   ;
41411   return 0;
41412 }
41413
41414 _ACEOF
41415 rm -f conftest.$ac_objext conftest$ac_exeext
41416 if { (ac_try="$ac_link"
41417 case "(($ac_try" in
41418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41419   *) ac_try_echo=$ac_try;;
41420 esac
41421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41422   (eval "$ac_link") 2>conftest.er1
41423   ac_status=$?
41424   grep -v '^ *+' conftest.er1 >conftest.err
41425   rm -f conftest.er1
41426   cat conftest.err >&5
41427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41428   (exit $ac_status); } &&
41429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41430   { (case "(($ac_try" in
41431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41432   *) ac_try_echo=$ac_try;;
41433 esac
41434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41435   (eval "$ac_try") 2>&5
41436   ac_status=$?
41437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41438   (exit $ac_status); }; } &&
41439          { ac_try='test -s conftest$ac_exeext'
41440   { (case "(($ac_try" in
41441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41442   *) ac_try_echo=$ac_try;;
41443 esac
41444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41445   (eval "$ac_try") 2>&5
41446   ac_status=$?
41447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41448   (exit $ac_status); }; }; then
41449   eval wx_cv_func_$wx_func=yes
41450 else
41451   echo "$as_me: failed program was:" >&5
41452 sed 's/^/| /' conftest.$ac_ext >&5
41453
41454         eval wx_cv_func_$wx_func=no
41455 fi
41456
41457 rm -f core conftest.err conftest.$ac_objext \
41458       conftest$ac_exeext conftest.$ac_ext
41459
41460 fi
41461 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41462                { echo "$as_me:$LINENO: result: $ac_res" >&5
41463 echo "${ECHO_T}$ac_res" >&6; }
41464
41465     if eval test \$wx_cv_func_$wx_func = yes
41466     then
41467       cat >>confdefs.h <<_ACEOF
41468 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41469 _ACEOF
41470
41471
41472     else
41473       :
41474
41475     fi
41476   done
41477
41478 fi
41479
41480
41481   for wx_func in round
41482   do
41483     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41484 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41485 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41486   echo $ECHO_N "(cached) $ECHO_C" >&6
41487 else
41488
41489         cat >conftest.$ac_ext <<_ACEOF
41490
41491             /* confdefs.h.  */
41492 _ACEOF
41493 cat confdefs.h >>conftest.$ac_ext
41494 cat >>conftest.$ac_ext <<_ACEOF
41495 /* end confdefs.h.  */
41496
41497                 #include <math.h>
41498                 $ac_includes_default
41499
41500 int
41501 main ()
41502 {
41503
41504                 #ifndef $wx_func
41505                   &$wx_func;
41506                 #endif
41507
41508
41509   ;
41510   return 0;
41511 }
41512
41513 _ACEOF
41514 rm -f conftest.$ac_objext conftest$ac_exeext
41515 if { (ac_try="$ac_link"
41516 case "(($ac_try" in
41517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41518   *) ac_try_echo=$ac_try;;
41519 esac
41520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41521   (eval "$ac_link") 2>conftest.er1
41522   ac_status=$?
41523   grep -v '^ *+' conftest.er1 >conftest.err
41524   rm -f conftest.er1
41525   cat conftest.err >&5
41526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41527   (exit $ac_status); } &&
41528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41529   { (case "(($ac_try" in
41530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41531   *) ac_try_echo=$ac_try;;
41532 esac
41533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41534   (eval "$ac_try") 2>&5
41535   ac_status=$?
41536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41537   (exit $ac_status); }; } &&
41538          { ac_try='test -s conftest$ac_exeext'
41539   { (case "(($ac_try" in
41540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41541   *) ac_try_echo=$ac_try;;
41542 esac
41543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41544   (eval "$ac_try") 2>&5
41545   ac_status=$?
41546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41547   (exit $ac_status); }; }; then
41548   eval wx_cv_func_$wx_func=yes
41549 else
41550   echo "$as_me: failed program was:" >&5
41551 sed 's/^/| /' conftest.$ac_ext >&5
41552
41553         eval wx_cv_func_$wx_func=no
41554 fi
41555
41556 rm -f core conftest.err conftest.$ac_objext \
41557       conftest$ac_exeext conftest.$ac_ext
41558
41559 fi
41560 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41561                { echo "$as_me:$LINENO: result: $ac_res" >&5
41562 echo "${ECHO_T}$ac_res" >&6; }
41563
41564     if eval test \$wx_cv_func_$wx_func = yes
41565     then
41566       cat >>confdefs.h <<_ACEOF
41567 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41568 _ACEOF
41569
41570
41571     else
41572       :
41573
41574     fi
41575   done
41576
41577
41578 if test "$TOOLKIT" != "MSW"; then
41579
41580
41581
41582
41583
41584 # Check whether --with-libiconv-prefix was given.
41585 if test "${with_libiconv_prefix+set}" = set; then
41586   withval=$with_libiconv_prefix;
41587     for dir in `echo "$withval" | tr : ' '`; do
41588       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
41589       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
41590     done
41591
41592 fi
41593
41594
41595   { echo "$as_me:$LINENO: checking for iconv" >&5
41596 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
41597 if test "${am_cv_func_iconv+set}" = set; then
41598   echo $ECHO_N "(cached) $ECHO_C" >&6
41599 else
41600
41601     am_cv_func_iconv="no, consider installing GNU libiconv"
41602     am_cv_lib_iconv=no
41603     cat >conftest.$ac_ext <<_ACEOF
41604 /* confdefs.h.  */
41605 _ACEOF
41606 cat confdefs.h >>conftest.$ac_ext
41607 cat >>conftest.$ac_ext <<_ACEOF
41608 /* end confdefs.h.  */
41609 #include <stdlib.h>
41610 #include <iconv.h>
41611 int
41612 main ()
41613 {
41614 iconv_t cd = iconv_open("","");
41615        iconv(cd,NULL,NULL,NULL,NULL);
41616        iconv_close(cd);
41617   ;
41618   return 0;
41619 }
41620 _ACEOF
41621 rm -f conftest.$ac_objext conftest$ac_exeext
41622 if { (ac_try="$ac_link"
41623 case "(($ac_try" in
41624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41625   *) ac_try_echo=$ac_try;;
41626 esac
41627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41628   (eval "$ac_link") 2>conftest.er1
41629   ac_status=$?
41630   grep -v '^ *+' conftest.er1 >conftest.err
41631   rm -f conftest.er1
41632   cat conftest.err >&5
41633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41634   (exit $ac_status); } &&
41635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41636   { (case "(($ac_try" in
41637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41638   *) ac_try_echo=$ac_try;;
41639 esac
41640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41641   (eval "$ac_try") 2>&5
41642   ac_status=$?
41643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644   (exit $ac_status); }; } &&
41645          { ac_try='test -s conftest$ac_exeext'
41646   { (case "(($ac_try" in
41647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41648   *) ac_try_echo=$ac_try;;
41649 esac
41650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41651   (eval "$ac_try") 2>&5
41652   ac_status=$?
41653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41654   (exit $ac_status); }; }; then
41655   am_cv_func_iconv=yes
41656 else
41657   echo "$as_me: failed program was:" >&5
41658 sed 's/^/| /' conftest.$ac_ext >&5
41659
41660
41661 fi
41662
41663 rm -f core conftest.err conftest.$ac_objext \
41664       conftest$ac_exeext conftest.$ac_ext
41665     if test "$am_cv_func_iconv" != yes; then
41666       am_save_LIBS="$LIBS"
41667       LIBS="$LIBS -liconv"
41668       cat >conftest.$ac_ext <<_ACEOF
41669 /* confdefs.h.  */
41670 _ACEOF
41671 cat confdefs.h >>conftest.$ac_ext
41672 cat >>conftest.$ac_ext <<_ACEOF
41673 /* end confdefs.h.  */
41674 #include <stdlib.h>
41675 #include <iconv.h>
41676 int
41677 main ()
41678 {
41679 iconv_t cd = iconv_open("","");
41680          iconv(cd,NULL,NULL,NULL,NULL);
41681          iconv_close(cd);
41682   ;
41683   return 0;
41684 }
41685 _ACEOF
41686 rm -f conftest.$ac_objext conftest$ac_exeext
41687 if { (ac_try="$ac_link"
41688 case "(($ac_try" in
41689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41690   *) ac_try_echo=$ac_try;;
41691 esac
41692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41693   (eval "$ac_link") 2>conftest.er1
41694   ac_status=$?
41695   grep -v '^ *+' conftest.er1 >conftest.err
41696   rm -f conftest.er1
41697   cat conftest.err >&5
41698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41699   (exit $ac_status); } &&
41700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41701   { (case "(($ac_try" in
41702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41703   *) ac_try_echo=$ac_try;;
41704 esac
41705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41706   (eval "$ac_try") 2>&5
41707   ac_status=$?
41708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41709   (exit $ac_status); }; } &&
41710          { ac_try='test -s conftest$ac_exeext'
41711   { (case "(($ac_try" in
41712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41713   *) ac_try_echo=$ac_try;;
41714 esac
41715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41716   (eval "$ac_try") 2>&5
41717   ac_status=$?
41718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41719   (exit $ac_status); }; }; then
41720   am_cv_lib_iconv=yes
41721         am_cv_func_iconv=yes
41722 else
41723   echo "$as_me: failed program was:" >&5
41724 sed 's/^/| /' conftest.$ac_ext >&5
41725
41726
41727 fi
41728
41729 rm -f core conftest.err conftest.$ac_objext \
41730       conftest$ac_exeext conftest.$ac_ext
41731       LIBS="$am_save_LIBS"
41732     fi
41733
41734 fi
41735 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
41736 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
41737   if test "$am_cv_func_iconv" = yes; then
41738
41739 cat >>confdefs.h <<\_ACEOF
41740 #define HAVE_ICONV 1
41741 _ACEOF
41742
41743     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
41744 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
41745 if test "${wx_cv_func_iconv_const+set}" = set; then
41746   echo $ECHO_N "(cached) $ECHO_C" >&6
41747 else
41748   cat >conftest.$ac_ext <<_ACEOF
41749 /* confdefs.h.  */
41750 _ACEOF
41751 cat confdefs.h >>conftest.$ac_ext
41752 cat >>conftest.$ac_ext <<_ACEOF
41753 /* end confdefs.h.  */
41754
41755 #include <stdlib.h>
41756 #include <iconv.h>
41757 extern
41758 #ifdef __cplusplus
41759 "C"
41760 #endif
41761 #if defined(__STDC__) || defined(__cplusplus)
41762 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
41763 #else
41764 size_t iconv();
41765 #endif
41766
41767 int
41768 main ()
41769 {
41770
41771   ;
41772   return 0;
41773 }
41774 _ACEOF
41775 rm -f conftest.$ac_objext
41776 if { (ac_try="$ac_compile"
41777 case "(($ac_try" in
41778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41779   *) ac_try_echo=$ac_try;;
41780 esac
41781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41782   (eval "$ac_compile") 2>conftest.er1
41783   ac_status=$?
41784   grep -v '^ *+' conftest.er1 >conftest.err
41785   rm -f conftest.er1
41786   cat conftest.err >&5
41787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41788   (exit $ac_status); } &&
41789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41790   { (case "(($ac_try" in
41791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41792   *) ac_try_echo=$ac_try;;
41793 esac
41794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41795   (eval "$ac_try") 2>&5
41796   ac_status=$?
41797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41798   (exit $ac_status); }; } &&
41799          { ac_try='test -s conftest.$ac_objext'
41800   { (case "(($ac_try" in
41801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41802   *) ac_try_echo=$ac_try;;
41803 esac
41804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41805   (eval "$ac_try") 2>&5
41806   ac_status=$?
41807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41808   (exit $ac_status); }; }; then
41809   wx_cv_func_iconv_const="no"
41810 else
41811   echo "$as_me: failed program was:" >&5
41812 sed 's/^/| /' conftest.$ac_ext >&5
41813
41814         wx_cv_func_iconv_const="yes"
41815
41816 fi
41817
41818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41819
41820 fi
41821 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
41822 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
41823
41824     iconv_const=
41825     if test "x$wx_cv_func_iconv_const" = "xyes"; then
41826         iconv_const="const"
41827     fi
41828
41829
41830 cat >>confdefs.h <<_ACEOF
41831 #define ICONV_CONST $iconv_const
41832 _ACEOF
41833
41834   fi
41835   LIBICONV=
41836   if test "$am_cv_lib_iconv" = yes; then
41837     LIBICONV="-liconv"
41838   fi
41839
41840
41841 LIBS="$LIBICONV $LIBS"
41842
41843 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
41844
41845 for ac_func in sigaction
41846 do
41847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41851   echo $ECHO_N "(cached) $ECHO_C" >&6
41852 else
41853   cat >conftest.$ac_ext <<_ACEOF
41854 /* confdefs.h.  */
41855 _ACEOF
41856 cat confdefs.h >>conftest.$ac_ext
41857 cat >>conftest.$ac_ext <<_ACEOF
41858 /* end confdefs.h.  */
41859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41861 #define $ac_func innocuous_$ac_func
41862
41863 /* System header to define __stub macros and hopefully few prototypes,
41864     which can conflict with char $ac_func (); below.
41865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41866     <limits.h> exists even on freestanding compilers.  */
41867
41868 #ifdef __STDC__
41869 # include <limits.h>
41870 #else
41871 # include <assert.h>
41872 #endif
41873
41874 #undef $ac_func
41875
41876 /* Override any GCC internal prototype to avoid an error.
41877    Use char because int might match the return type of a GCC
41878    builtin and then its argument prototype would still apply.  */
41879 #ifdef __cplusplus
41880 extern "C"
41881 #endif
41882 char $ac_func ();
41883 /* The GNU C library defines this for functions which it implements
41884     to always fail with ENOSYS.  Some functions are actually named
41885     something starting with __ and the normal name is an alias.  */
41886 #if defined __stub_$ac_func || defined __stub___$ac_func
41887 choke me
41888 #endif
41889
41890 int
41891 main ()
41892 {
41893 return $ac_func ();
41894   ;
41895   return 0;
41896 }
41897 _ACEOF
41898 rm -f conftest.$ac_objext conftest$ac_exeext
41899 if { (ac_try="$ac_link"
41900 case "(($ac_try" in
41901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41902   *) ac_try_echo=$ac_try;;
41903 esac
41904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41905   (eval "$ac_link") 2>conftest.er1
41906   ac_status=$?
41907   grep -v '^ *+' conftest.er1 >conftest.err
41908   rm -f conftest.er1
41909   cat conftest.err >&5
41910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41911   (exit $ac_status); } &&
41912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41913   { (case "(($ac_try" in
41914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41915   *) ac_try_echo=$ac_try;;
41916 esac
41917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41918   (eval "$ac_try") 2>&5
41919   ac_status=$?
41920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41921   (exit $ac_status); }; } &&
41922          { ac_try='test -s conftest$ac_exeext'
41923   { (case "(($ac_try" in
41924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41925   *) ac_try_echo=$ac_try;;
41926 esac
41927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41928   (eval "$ac_try") 2>&5
41929   ac_status=$?
41930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41931   (exit $ac_status); }; }; then
41932   eval "$as_ac_var=yes"
41933 else
41934   echo "$as_me: failed program was:" >&5
41935 sed 's/^/| /' conftest.$ac_ext >&5
41936
41937         eval "$as_ac_var=no"
41938 fi
41939
41940 rm -f core conftest.err conftest.$ac_objext \
41941       conftest$ac_exeext conftest.$ac_ext
41942 fi
41943 ac_res=`eval echo '${'$as_ac_var'}'`
41944                { echo "$as_me:$LINENO: result: $ac_res" >&5
41945 echo "${ECHO_T}$ac_res" >&6; }
41946 if test `eval echo '${'$as_ac_var'}'` = yes; then
41947   cat >>confdefs.h <<_ACEOF
41948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41949 _ACEOF
41950
41951 fi
41952 done
41953
41954
41955     if test "$ac_cv_func_sigaction" = "no"; then
41956         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
41957 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
41958         wxUSE_ON_FATAL_EXCEPTION=no
41959     fi
41960
41961     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41962       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
41963 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
41964 if test "${wx_cv_type_sa_handler+set}" = set; then
41965   echo $ECHO_N "(cached) $ECHO_C" >&6
41966 else
41967
41968                 ac_ext=cpp
41969 ac_cpp='$CXXCPP $CPPFLAGS'
41970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41973
41974         cat >conftest.$ac_ext <<_ACEOF
41975 /* confdefs.h.  */
41976 _ACEOF
41977 cat confdefs.h >>conftest.$ac_ext
41978 cat >>conftest.$ac_ext <<_ACEOF
41979 /* end confdefs.h.  */
41980 #include <signal.h>
41981 int
41982 main ()
41983 {
41984
41985                         extern void testSigHandler(int);
41986
41987                         struct sigaction sa;
41988                         sa.sa_handler = testSigHandler;
41989
41990   ;
41991   return 0;
41992 }
41993 _ACEOF
41994 rm -f conftest.$ac_objext
41995 if { (ac_try="$ac_compile"
41996 case "(($ac_try" in
41997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41998   *) ac_try_echo=$ac_try;;
41999 esac
42000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42001   (eval "$ac_compile") 2>conftest.er1
42002   ac_status=$?
42003   grep -v '^ *+' conftest.er1 >conftest.err
42004   rm -f conftest.er1
42005   cat conftest.err >&5
42006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42007   (exit $ac_status); } &&
42008          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42009   { (case "(($ac_try" in
42010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42011   *) ac_try_echo=$ac_try;;
42012 esac
42013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42014   (eval "$ac_try") 2>&5
42015   ac_status=$?
42016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42017   (exit $ac_status); }; } &&
42018          { ac_try='test -s conftest.$ac_objext'
42019   { (case "(($ac_try" in
42020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42021   *) ac_try_echo=$ac_try;;
42022 esac
42023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42024   (eval "$ac_try") 2>&5
42025   ac_status=$?
42026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42027   (exit $ac_status); }; }; then
42028
42029                         wx_cv_type_sa_handler=int
42030
42031 else
42032   echo "$as_me: failed program was:" >&5
42033 sed 's/^/| /' conftest.$ac_ext >&5
42034
42035
42036                         wx_cv_type_sa_handler=void
42037
42038 fi
42039
42040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42041         ac_ext=c
42042 ac_cpp='$CPP $CPPFLAGS'
42043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42046
42047
42048 fi
42049 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
42050 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
42051
42052       cat >>confdefs.h <<_ACEOF
42053 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
42054 _ACEOF
42055
42056     fi
42057 fi
42058
42059 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
42060     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
42061 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
42062 if test "${wx_cv_func_backtrace+set}" = set; then
42063   echo $ECHO_N "(cached) $ECHO_C" >&6
42064 else
42065
42066             ac_ext=cpp
42067 ac_cpp='$CXXCPP $CPPFLAGS'
42068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42071
42072             cat >conftest.$ac_ext <<_ACEOF
42073 /* confdefs.h.  */
42074 _ACEOF
42075 cat confdefs.h >>conftest.$ac_ext
42076 cat >>conftest.$ac_ext <<_ACEOF
42077 /* end confdefs.h.  */
42078 #include <execinfo.h>
42079 int
42080 main ()
42081 {
42082
42083                     void *trace[1];
42084                     char **messages;
42085
42086                     backtrace(trace, 1);
42087                     messages = backtrace_symbols(trace, 1);
42088
42089   ;
42090   return 0;
42091 }
42092 _ACEOF
42093 rm -f conftest.$ac_objext
42094 if { (ac_try="$ac_compile"
42095 case "(($ac_try" in
42096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42097   *) ac_try_echo=$ac_try;;
42098 esac
42099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42100   (eval "$ac_compile") 2>conftest.er1
42101   ac_status=$?
42102   grep -v '^ *+' conftest.er1 >conftest.err
42103   rm -f conftest.er1
42104   cat conftest.err >&5
42105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42106   (exit $ac_status); } &&
42107          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42108   { (case "(($ac_try" in
42109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42110   *) ac_try_echo=$ac_try;;
42111 esac
42112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42113   (eval "$ac_try") 2>&5
42114   ac_status=$?
42115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42116   (exit $ac_status); }; } &&
42117          { ac_try='test -s conftest.$ac_objext'
42118   { (case "(($ac_try" in
42119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42120   *) ac_try_echo=$ac_try;;
42121 esac
42122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42123   (eval "$ac_try") 2>&5
42124   ac_status=$?
42125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126   (exit $ac_status); }; }; then
42127   wx_cv_func_backtrace=yes
42128 else
42129   echo "$as_me: failed program was:" >&5
42130 sed 's/^/| /' conftest.$ac_ext >&5
42131
42132         wx_cv_func_backtrace=no
42133
42134 fi
42135
42136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42137             ac_ext=c
42138 ac_cpp='$CPP $CPPFLAGS'
42139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42142
42143
42144
42145 fi
42146 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
42147 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
42148
42149
42150     if test "$wx_cv_func_backtrace" = "no"; then
42151         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
42152 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
42153         wxUSE_STACKWALKER=no
42154     else
42155         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
42156 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
42157 if test "${wx_cv_func_cxa_demangle+set}" = set; then
42158   echo $ECHO_N "(cached) $ECHO_C" >&6
42159 else
42160
42161                 ac_ext=cpp
42162 ac_cpp='$CXXCPP $CPPFLAGS'
42163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42166
42167                 cat >conftest.$ac_ext <<_ACEOF
42168 /* confdefs.h.  */
42169 _ACEOF
42170 cat confdefs.h >>conftest.$ac_ext
42171 cat >>conftest.$ac_ext <<_ACEOF
42172 /* end confdefs.h.  */
42173 #include <cxxabi.h>
42174 int
42175 main ()
42176 {
42177
42178                         int rc;
42179                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
42180
42181   ;
42182   return 0;
42183 }
42184 _ACEOF
42185 rm -f conftest.$ac_objext conftest$ac_exeext
42186 if { (ac_try="$ac_link"
42187 case "(($ac_try" in
42188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42189   *) ac_try_echo=$ac_try;;
42190 esac
42191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42192   (eval "$ac_link") 2>conftest.er1
42193   ac_status=$?
42194   grep -v '^ *+' conftest.er1 >conftest.err
42195   rm -f conftest.er1
42196   cat conftest.err >&5
42197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42198   (exit $ac_status); } &&
42199          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42200   { (case "(($ac_try" in
42201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42202   *) ac_try_echo=$ac_try;;
42203 esac
42204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42205   (eval "$ac_try") 2>&5
42206   ac_status=$?
42207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42208   (exit $ac_status); }; } &&
42209          { ac_try='test -s conftest$ac_exeext'
42210   { (case "(($ac_try" in
42211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42212   *) ac_try_echo=$ac_try;;
42213 esac
42214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42215   (eval "$ac_try") 2>&5
42216   ac_status=$?
42217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42218   (exit $ac_status); }; }; then
42219   wx_cv_func_cxa_demangle=yes
42220 else
42221   echo "$as_me: failed program was:" >&5
42222 sed 's/^/| /' conftest.$ac_ext >&5
42223
42224         wx_cv_func_cxa_demangle=no
42225
42226 fi
42227
42228 rm -f core conftest.err conftest.$ac_objext \
42229       conftest$ac_exeext conftest.$ac_ext
42230                 ac_ext=c
42231 ac_cpp='$CPP $CPPFLAGS'
42232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42235
42236
42237
42238 fi
42239 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
42240 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
42241
42242         if test "$wx_cv_func_cxa_demangle" = "yes"; then
42243             cat >>confdefs.h <<\_ACEOF
42244 #define HAVE_CXA_DEMANGLE 1
42245 _ACEOF
42246
42247         fi
42248     fi
42249 fi
42250
42251 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
42252     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
42253 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
42254     wxUSE_STACKWALKER=no
42255 fi
42256
42257
42258
42259
42260 for ac_func in mkstemp mktemp
42261 do
42262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42266   echo $ECHO_N "(cached) $ECHO_C" >&6
42267 else
42268   cat >conftest.$ac_ext <<_ACEOF
42269 /* confdefs.h.  */
42270 _ACEOF
42271 cat confdefs.h >>conftest.$ac_ext
42272 cat >>conftest.$ac_ext <<_ACEOF
42273 /* end confdefs.h.  */
42274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42276 #define $ac_func innocuous_$ac_func
42277
42278 /* System header to define __stub macros and hopefully few prototypes,
42279     which can conflict with char $ac_func (); below.
42280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42281     <limits.h> exists even on freestanding compilers.  */
42282
42283 #ifdef __STDC__
42284 # include <limits.h>
42285 #else
42286 # include <assert.h>
42287 #endif
42288
42289 #undef $ac_func
42290
42291 /* Override any GCC internal prototype to avoid an error.
42292    Use char because int might match the return type of a GCC
42293    builtin and then its argument prototype would still apply.  */
42294 #ifdef __cplusplus
42295 extern "C"
42296 #endif
42297 char $ac_func ();
42298 /* The GNU C library defines this for functions which it implements
42299     to always fail with ENOSYS.  Some functions are actually named
42300     something starting with __ and the normal name is an alias.  */
42301 #if defined __stub_$ac_func || defined __stub___$ac_func
42302 choke me
42303 #endif
42304
42305 int
42306 main ()
42307 {
42308 return $ac_func ();
42309   ;
42310   return 0;
42311 }
42312 _ACEOF
42313 rm -f conftest.$ac_objext conftest$ac_exeext
42314 if { (ac_try="$ac_link"
42315 case "(($ac_try" in
42316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42317   *) ac_try_echo=$ac_try;;
42318 esac
42319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42320   (eval "$ac_link") 2>conftest.er1
42321   ac_status=$?
42322   grep -v '^ *+' conftest.er1 >conftest.err
42323   rm -f conftest.er1
42324   cat conftest.err >&5
42325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42326   (exit $ac_status); } &&
42327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42328   { (case "(($ac_try" in
42329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42330   *) ac_try_echo=$ac_try;;
42331 esac
42332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42333   (eval "$ac_try") 2>&5
42334   ac_status=$?
42335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336   (exit $ac_status); }; } &&
42337          { ac_try='test -s conftest$ac_exeext'
42338   { (case "(($ac_try" in
42339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42340   *) ac_try_echo=$ac_try;;
42341 esac
42342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42343   (eval "$ac_try") 2>&5
42344   ac_status=$?
42345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42346   (exit $ac_status); }; }; then
42347   eval "$as_ac_var=yes"
42348 else
42349   echo "$as_me: failed program was:" >&5
42350 sed 's/^/| /' conftest.$ac_ext >&5
42351
42352         eval "$as_ac_var=no"
42353 fi
42354
42355 rm -f core conftest.err conftest.$ac_objext \
42356       conftest$ac_exeext conftest.$ac_ext
42357 fi
42358 ac_res=`eval echo '${'$as_ac_var'}'`
42359                { echo "$as_me:$LINENO: result: $ac_res" >&5
42360 echo "${ECHO_T}$ac_res" >&6; }
42361 if test `eval echo '${'$as_ac_var'}'` = yes; then
42362   cat >>confdefs.h <<_ACEOF
42363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42364 _ACEOF
42365  break
42366 fi
42367 done
42368
42369
42370 { echo "$as_me:$LINENO: checking for statfs" >&5
42371 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
42372 if test "${wx_cv_func_statfs+set}" = set; then
42373   echo $ECHO_N "(cached) $ECHO_C" >&6
42374 else
42375   cat >conftest.$ac_ext <<_ACEOF
42376 /* confdefs.h.  */
42377 _ACEOF
42378 cat confdefs.h >>conftest.$ac_ext
42379 cat >>conftest.$ac_ext <<_ACEOF
42380 /* end confdefs.h.  */
42381
42382              #if defined(__BSD__)
42383              #include <sys/param.h>
42384              #include <sys/mount.h>
42385              #else
42386              #include <sys/vfs.h>
42387              #endif
42388
42389 int
42390 main ()
42391 {
42392
42393              long l;
42394              struct statfs fs;
42395              statfs("/", &fs);
42396              l = fs.f_bsize;
42397              l += fs.f_blocks;
42398              l += fs.f_bavail;
42399
42400   ;
42401   return 0;
42402 }
42403 _ACEOF
42404 rm -f conftest.$ac_objext
42405 if { (ac_try="$ac_compile"
42406 case "(($ac_try" in
42407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42408   *) ac_try_echo=$ac_try;;
42409 esac
42410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42411   (eval "$ac_compile") 2>conftest.er1
42412   ac_status=$?
42413   grep -v '^ *+' conftest.er1 >conftest.err
42414   rm -f conftest.er1
42415   cat conftest.err >&5
42416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42417   (exit $ac_status); } &&
42418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42419   { (case "(($ac_try" in
42420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42421   *) ac_try_echo=$ac_try;;
42422 esac
42423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42424   (eval "$ac_try") 2>&5
42425   ac_status=$?
42426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42427   (exit $ac_status); }; } &&
42428          { ac_try='test -s conftest.$ac_objext'
42429   { (case "(($ac_try" in
42430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42431   *) ac_try_echo=$ac_try;;
42432 esac
42433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42434   (eval "$ac_try") 2>&5
42435   ac_status=$?
42436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42437   (exit $ac_status); }; }; then
42438   wx_cv_func_statfs=yes
42439 else
42440   echo "$as_me: failed program was:" >&5
42441 sed 's/^/| /' conftest.$ac_ext >&5
42442
42443         wx_cv_func_statfs=no
42444
42445 fi
42446
42447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42448
42449 fi
42450 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
42451 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
42452
42453 if test "$wx_cv_func_statfs" = "yes"; then
42454         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
42455 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
42456 if test "${wx_cv_func_statfs_decl+set}" = set; then
42457   echo $ECHO_N "(cached) $ECHO_C" >&6
42458 else
42459   ac_ext=cpp
42460 ac_cpp='$CXXCPP $CPPFLAGS'
42461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42464
42465         cat >conftest.$ac_ext <<_ACEOF
42466 /* confdefs.h.  */
42467 _ACEOF
42468 cat confdefs.h >>conftest.$ac_ext
42469 cat >>conftest.$ac_ext <<_ACEOF
42470 /* end confdefs.h.  */
42471
42472                  #if defined(__BSD__)
42473                  #include <sys/param.h>
42474                  #include <sys/mount.h>
42475                  #else
42476                  #include <sys/vfs.h>
42477                  #endif
42478
42479 int
42480 main ()
42481 {
42482
42483                 struct statfs fs;
42484                 statfs("", &fs);
42485
42486   ;
42487   return 0;
42488 }
42489 _ACEOF
42490 rm -f conftest.$ac_objext
42491 if { (ac_try="$ac_compile"
42492 case "(($ac_try" in
42493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42494   *) ac_try_echo=$ac_try;;
42495 esac
42496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42497   (eval "$ac_compile") 2>conftest.er1
42498   ac_status=$?
42499   grep -v '^ *+' conftest.er1 >conftest.err
42500   rm -f conftest.er1
42501   cat conftest.err >&5
42502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42503   (exit $ac_status); } &&
42504          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42505   { (case "(($ac_try" in
42506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42507   *) ac_try_echo=$ac_try;;
42508 esac
42509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42510   (eval "$ac_try") 2>&5
42511   ac_status=$?
42512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42513   (exit $ac_status); }; } &&
42514          { ac_try='test -s conftest.$ac_objext'
42515   { (case "(($ac_try" in
42516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42517   *) ac_try_echo=$ac_try;;
42518 esac
42519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42520   (eval "$ac_try") 2>&5
42521   ac_status=$?
42522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42523   (exit $ac_status); }; }; then
42524   wx_cv_func_statfs_decl=yes
42525 else
42526   echo "$as_me: failed program was:" >&5
42527 sed 's/^/| /' conftest.$ac_ext >&5
42528
42529         wx_cv_func_statfs_decl=no
42530
42531 fi
42532
42533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42534         ac_ext=c
42535 ac_cpp='$CPP $CPPFLAGS'
42536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42539
42540
42541 fi
42542 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
42543 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
42544
42545     if test "$wx_cv_func_statfs_decl" = "yes"; then
42546         cat >>confdefs.h <<\_ACEOF
42547 #define HAVE_STATFS_DECL 1
42548 _ACEOF
42549
42550     fi
42551
42552     wx_cv_type_statvfs_t="struct statfs"
42553     cat >>confdefs.h <<\_ACEOF
42554 #define HAVE_STATFS 1
42555 _ACEOF
42556
42557 else
42558     { echo "$as_me:$LINENO: checking for statvfs" >&5
42559 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
42560 if test "${wx_cv_func_statvfs+set}" = set; then
42561   echo $ECHO_N "(cached) $ECHO_C" >&6
42562 else
42563   cat >conftest.$ac_ext <<_ACEOF
42564 /* confdefs.h.  */
42565 _ACEOF
42566 cat confdefs.h >>conftest.$ac_ext
42567 cat >>conftest.$ac_ext <<_ACEOF
42568 /* end confdefs.h.  */
42569
42570                 #include <stddef.h>
42571                 #include <sys/statvfs.h>
42572
42573 int
42574 main ()
42575 {
42576
42577                 statvfs("/", NULL);
42578
42579   ;
42580   return 0;
42581 }
42582 _ACEOF
42583 rm -f conftest.$ac_objext
42584 if { (ac_try="$ac_compile"
42585 case "(($ac_try" in
42586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42587   *) ac_try_echo=$ac_try;;
42588 esac
42589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42590   (eval "$ac_compile") 2>conftest.er1
42591   ac_status=$?
42592   grep -v '^ *+' conftest.er1 >conftest.err
42593   rm -f conftest.er1
42594   cat conftest.err >&5
42595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42596   (exit $ac_status); } &&
42597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42598   { (case "(($ac_try" in
42599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42600   *) ac_try_echo=$ac_try;;
42601 esac
42602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42603   (eval "$ac_try") 2>&5
42604   ac_status=$?
42605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42606   (exit $ac_status); }; } &&
42607          { ac_try='test -s conftest.$ac_objext'
42608   { (case "(($ac_try" in
42609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42610   *) ac_try_echo=$ac_try;;
42611 esac
42612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42613   (eval "$ac_try") 2>&5
42614   ac_status=$?
42615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42616   (exit $ac_status); }; }; then
42617   wx_cv_func_statvfs=yes
42618 else
42619   echo "$as_me: failed program was:" >&5
42620 sed 's/^/| /' conftest.$ac_ext >&5
42621
42622         wx_cv_func_statvfs=no
42623
42624 fi
42625
42626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42627
42628 fi
42629 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
42630 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
42631
42632     if test "$wx_cv_func_statvfs" = "yes"; then
42633                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
42634 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
42635 if test "${wx_cv_type_statvfs_t+set}" = set; then
42636   echo $ECHO_N "(cached) $ECHO_C" >&6
42637 else
42638   ac_ext=cpp
42639 ac_cpp='$CXXCPP $CPPFLAGS'
42640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42643
42644             cat >conftest.$ac_ext <<_ACEOF
42645 /* confdefs.h.  */
42646 _ACEOF
42647 cat confdefs.h >>conftest.$ac_ext
42648 cat >>conftest.$ac_ext <<_ACEOF
42649 /* end confdefs.h.  */
42650
42651                     #include <sys/statvfs.h>
42652
42653 int
42654 main ()
42655 {
42656
42657                     long l;
42658                     statvfs_t fs;
42659                     statvfs("/", &fs);
42660                     l = fs.f_bsize;
42661                     l += fs.f_blocks;
42662                     l += fs.f_bavail;
42663
42664   ;
42665   return 0;
42666 }
42667 _ACEOF
42668 rm -f conftest.$ac_objext
42669 if { (ac_try="$ac_compile"
42670 case "(($ac_try" in
42671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42672   *) ac_try_echo=$ac_try;;
42673 esac
42674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42675   (eval "$ac_compile") 2>conftest.er1
42676   ac_status=$?
42677   grep -v '^ *+' conftest.er1 >conftest.err
42678   rm -f conftest.er1
42679   cat conftest.err >&5
42680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42681   (exit $ac_status); } &&
42682          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42683   { (case "(($ac_try" in
42684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42685   *) ac_try_echo=$ac_try;;
42686 esac
42687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42688   (eval "$ac_try") 2>&5
42689   ac_status=$?
42690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42691   (exit $ac_status); }; } &&
42692          { ac_try='test -s conftest.$ac_objext'
42693   { (case "(($ac_try" in
42694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42695   *) ac_try_echo=$ac_try;;
42696 esac
42697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42698   (eval "$ac_try") 2>&5
42699   ac_status=$?
42700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42701   (exit $ac_status); }; }; then
42702   wx_cv_type_statvfs_t=statvfs_t
42703 else
42704   echo "$as_me: failed program was:" >&5
42705 sed 's/^/| /' conftest.$ac_ext >&5
42706
42707
42708                     cat >conftest.$ac_ext <<_ACEOF
42709 /* confdefs.h.  */
42710 _ACEOF
42711 cat confdefs.h >>conftest.$ac_ext
42712 cat >>conftest.$ac_ext <<_ACEOF
42713 /* end confdefs.h.  */
42714
42715                             #include <sys/statvfs.h>
42716
42717 int
42718 main ()
42719 {
42720
42721                             long l;
42722                             struct statvfs fs;
42723                             statvfs("/", &fs);
42724                             l = fs.f_bsize;
42725                             l += fs.f_blocks;
42726                             l += fs.f_bavail;
42727
42728   ;
42729   return 0;
42730 }
42731 _ACEOF
42732 rm -f conftest.$ac_objext
42733 if { (ac_try="$ac_compile"
42734 case "(($ac_try" in
42735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42736   *) ac_try_echo=$ac_try;;
42737 esac
42738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42739   (eval "$ac_compile") 2>conftest.er1
42740   ac_status=$?
42741   grep -v '^ *+' conftest.er1 >conftest.err
42742   rm -f conftest.er1
42743   cat conftest.err >&5
42744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42745   (exit $ac_status); } &&
42746          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42747   { (case "(($ac_try" in
42748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42749   *) ac_try_echo=$ac_try;;
42750 esac
42751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42752   (eval "$ac_try") 2>&5
42753   ac_status=$?
42754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42755   (exit $ac_status); }; } &&
42756          { ac_try='test -s conftest.$ac_objext'
42757   { (case "(($ac_try" in
42758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42759   *) ac_try_echo=$ac_try;;
42760 esac
42761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42762   (eval "$ac_try") 2>&5
42763   ac_status=$?
42764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42765   (exit $ac_status); }; }; then
42766   wx_cv_type_statvfs_t="struct statvfs"
42767 else
42768   echo "$as_me: failed program was:" >&5
42769 sed 's/^/| /' conftest.$ac_ext >&5
42770
42771         wx_cv_type_statvfs_t="unknown"
42772
42773 fi
42774
42775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42776
42777
42778 fi
42779
42780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42781             ac_ext=c
42782 ac_cpp='$CPP $CPPFLAGS'
42783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42786
42787
42788 fi
42789 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
42790 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
42791
42792         if test "$wx_cv_type_statvfs_t" != "unknown"; then
42793             cat >>confdefs.h <<\_ACEOF
42794 #define HAVE_STATVFS 1
42795 _ACEOF
42796
42797         fi
42798     else
42799                 wx_cv_type_statvfs_t="unknown"
42800     fi
42801 fi
42802
42803 if test "$wx_cv_type_statvfs_t" != "unknown"; then
42804     cat >>confdefs.h <<_ACEOF
42805 #define WX_STATFS_T $wx_cv_type_statvfs_t
42806 _ACEOF
42807
42808 else
42809     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
42810 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
42811 fi
42812
42813 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42814
42815
42816 for ac_func in fcntl flock
42817 do
42818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42822   echo $ECHO_N "(cached) $ECHO_C" >&6
42823 else
42824   cat >conftest.$ac_ext <<_ACEOF
42825 /* confdefs.h.  */
42826 _ACEOF
42827 cat confdefs.h >>conftest.$ac_ext
42828 cat >>conftest.$ac_ext <<_ACEOF
42829 /* end confdefs.h.  */
42830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42832 #define $ac_func innocuous_$ac_func
42833
42834 /* System header to define __stub macros and hopefully few prototypes,
42835     which can conflict with char $ac_func (); below.
42836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42837     <limits.h> exists even on freestanding compilers.  */
42838
42839 #ifdef __STDC__
42840 # include <limits.h>
42841 #else
42842 # include <assert.h>
42843 #endif
42844
42845 #undef $ac_func
42846
42847 /* Override any GCC internal prototype to avoid an error.
42848    Use char because int might match the return type of a GCC
42849    builtin and then its argument prototype would still apply.  */
42850 #ifdef __cplusplus
42851 extern "C"
42852 #endif
42853 char $ac_func ();
42854 /* The GNU C library defines this for functions which it implements
42855     to always fail with ENOSYS.  Some functions are actually named
42856     something starting with __ and the normal name is an alias.  */
42857 #if defined __stub_$ac_func || defined __stub___$ac_func
42858 choke me
42859 #endif
42860
42861 int
42862 main ()
42863 {
42864 return $ac_func ();
42865   ;
42866   return 0;
42867 }
42868 _ACEOF
42869 rm -f conftest.$ac_objext conftest$ac_exeext
42870 if { (ac_try="$ac_link"
42871 case "(($ac_try" in
42872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42873   *) ac_try_echo=$ac_try;;
42874 esac
42875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42876   (eval "$ac_link") 2>conftest.er1
42877   ac_status=$?
42878   grep -v '^ *+' conftest.er1 >conftest.err
42879   rm -f conftest.er1
42880   cat conftest.err >&5
42881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42882   (exit $ac_status); } &&
42883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42884   { (case "(($ac_try" in
42885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42886   *) ac_try_echo=$ac_try;;
42887 esac
42888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42889   (eval "$ac_try") 2>&5
42890   ac_status=$?
42891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42892   (exit $ac_status); }; } &&
42893          { ac_try='test -s conftest$ac_exeext'
42894   { (case "(($ac_try" in
42895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42896   *) ac_try_echo=$ac_try;;
42897 esac
42898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42899   (eval "$ac_try") 2>&5
42900   ac_status=$?
42901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42902   (exit $ac_status); }; }; then
42903   eval "$as_ac_var=yes"
42904 else
42905   echo "$as_me: failed program was:" >&5
42906 sed 's/^/| /' conftest.$ac_ext >&5
42907
42908         eval "$as_ac_var=no"
42909 fi
42910
42911 rm -f core conftest.err conftest.$ac_objext \
42912       conftest$ac_exeext conftest.$ac_ext
42913 fi
42914 ac_res=`eval echo '${'$as_ac_var'}'`
42915                { echo "$as_me:$LINENO: result: $ac_res" >&5
42916 echo "${ECHO_T}$ac_res" >&6; }
42917 if test `eval echo '${'$as_ac_var'}'` = yes; then
42918   cat >>confdefs.h <<_ACEOF
42919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42920 _ACEOF
42921  break
42922 fi
42923 done
42924
42925
42926     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
42927         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
42928 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
42929         wxUSE_SNGLINST_CHECKER=no
42930     fi
42931 fi
42932
42933
42934 for ac_func in timegm
42935 do
42936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42940   echo $ECHO_N "(cached) $ECHO_C" >&6
42941 else
42942   cat >conftest.$ac_ext <<_ACEOF
42943 /* confdefs.h.  */
42944 _ACEOF
42945 cat confdefs.h >>conftest.$ac_ext
42946 cat >>conftest.$ac_ext <<_ACEOF
42947 /* end confdefs.h.  */
42948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42950 #define $ac_func innocuous_$ac_func
42951
42952 /* System header to define __stub macros and hopefully few prototypes,
42953     which can conflict with char $ac_func (); below.
42954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42955     <limits.h> exists even on freestanding compilers.  */
42956
42957 #ifdef __STDC__
42958 # include <limits.h>
42959 #else
42960 # include <assert.h>
42961 #endif
42962
42963 #undef $ac_func
42964
42965 /* Override any GCC internal prototype to avoid an error.
42966    Use char because int might match the return type of a GCC
42967    builtin and then its argument prototype would still apply.  */
42968 #ifdef __cplusplus
42969 extern "C"
42970 #endif
42971 char $ac_func ();
42972 /* The GNU C library defines this for functions which it implements
42973     to always fail with ENOSYS.  Some functions are actually named
42974     something starting with __ and the normal name is an alias.  */
42975 #if defined __stub_$ac_func || defined __stub___$ac_func
42976 choke me
42977 #endif
42978
42979 int
42980 main ()
42981 {
42982 return $ac_func ();
42983   ;
42984   return 0;
42985 }
42986 _ACEOF
42987 rm -f conftest.$ac_objext conftest$ac_exeext
42988 if { (ac_try="$ac_link"
42989 case "(($ac_try" in
42990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42991   *) ac_try_echo=$ac_try;;
42992 esac
42993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42994   (eval "$ac_link") 2>conftest.er1
42995   ac_status=$?
42996   grep -v '^ *+' conftest.er1 >conftest.err
42997   rm -f conftest.er1
42998   cat conftest.err >&5
42999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43000   (exit $ac_status); } &&
43001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43002   { (case "(($ac_try" in
43003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43004   *) ac_try_echo=$ac_try;;
43005 esac
43006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43007   (eval "$ac_try") 2>&5
43008   ac_status=$?
43009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010   (exit $ac_status); }; } &&
43011          { ac_try='test -s conftest$ac_exeext'
43012   { (case "(($ac_try" in
43013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43014   *) ac_try_echo=$ac_try;;
43015 esac
43016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43017   (eval "$ac_try") 2>&5
43018   ac_status=$?
43019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43020   (exit $ac_status); }; }; then
43021   eval "$as_ac_var=yes"
43022 else
43023   echo "$as_me: failed program was:" >&5
43024 sed 's/^/| /' conftest.$ac_ext >&5
43025
43026         eval "$as_ac_var=no"
43027 fi
43028
43029 rm -f core conftest.err conftest.$ac_objext \
43030       conftest$ac_exeext conftest.$ac_ext
43031 fi
43032 ac_res=`eval echo '${'$as_ac_var'}'`
43033                { echo "$as_me:$LINENO: result: $ac_res" >&5
43034 echo "${ECHO_T}$ac_res" >&6; }
43035 if test `eval echo '${'$as_ac_var'}'` = yes; then
43036   cat >>confdefs.h <<_ACEOF
43037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43038 _ACEOF
43039
43040 fi
43041 done
43042
43043
43044
43045
43046 for ac_func in putenv setenv
43047 do
43048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43052   echo $ECHO_N "(cached) $ECHO_C" >&6
43053 else
43054   cat >conftest.$ac_ext <<_ACEOF
43055 /* confdefs.h.  */
43056 _ACEOF
43057 cat confdefs.h >>conftest.$ac_ext
43058 cat >>conftest.$ac_ext <<_ACEOF
43059 /* end confdefs.h.  */
43060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43062 #define $ac_func innocuous_$ac_func
43063
43064 /* System header to define __stub macros and hopefully few prototypes,
43065     which can conflict with char $ac_func (); below.
43066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43067     <limits.h> exists even on freestanding compilers.  */
43068
43069 #ifdef __STDC__
43070 # include <limits.h>
43071 #else
43072 # include <assert.h>
43073 #endif
43074
43075 #undef $ac_func
43076
43077 /* Override any GCC internal prototype to avoid an error.
43078    Use char because int might match the return type of a GCC
43079    builtin and then its argument prototype would still apply.  */
43080 #ifdef __cplusplus
43081 extern "C"
43082 #endif
43083 char $ac_func ();
43084 /* The GNU C library defines this for functions which it implements
43085     to always fail with ENOSYS.  Some functions are actually named
43086     something starting with __ and the normal name is an alias.  */
43087 #if defined __stub_$ac_func || defined __stub___$ac_func
43088 choke me
43089 #endif
43090
43091 int
43092 main ()
43093 {
43094 return $ac_func ();
43095   ;
43096   return 0;
43097 }
43098 _ACEOF
43099 rm -f conftest.$ac_objext conftest$ac_exeext
43100 if { (ac_try="$ac_link"
43101 case "(($ac_try" in
43102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43103   *) ac_try_echo=$ac_try;;
43104 esac
43105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43106   (eval "$ac_link") 2>conftest.er1
43107   ac_status=$?
43108   grep -v '^ *+' conftest.er1 >conftest.err
43109   rm -f conftest.er1
43110   cat conftest.err >&5
43111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43112   (exit $ac_status); } &&
43113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43114   { (case "(($ac_try" in
43115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43116   *) ac_try_echo=$ac_try;;
43117 esac
43118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43119   (eval "$ac_try") 2>&5
43120   ac_status=$?
43121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43122   (exit $ac_status); }; } &&
43123          { ac_try='test -s conftest$ac_exeext'
43124   { (case "(($ac_try" in
43125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43126   *) ac_try_echo=$ac_try;;
43127 esac
43128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43129   (eval "$ac_try") 2>&5
43130   ac_status=$?
43131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43132   (exit $ac_status); }; }; then
43133   eval "$as_ac_var=yes"
43134 else
43135   echo "$as_me: failed program was:" >&5
43136 sed 's/^/| /' conftest.$ac_ext >&5
43137
43138         eval "$as_ac_var=no"
43139 fi
43140
43141 rm -f core conftest.err conftest.$ac_objext \
43142       conftest$ac_exeext conftest.$ac_ext
43143 fi
43144 ac_res=`eval echo '${'$as_ac_var'}'`
43145                { echo "$as_me:$LINENO: result: $ac_res" >&5
43146 echo "${ECHO_T}$ac_res" >&6; }
43147 if test `eval echo '${'$as_ac_var'}'` = yes; then
43148   cat >>confdefs.h <<_ACEOF
43149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43150 _ACEOF
43151  break
43152 fi
43153 done
43154
43155
43156 HAVE_SOME_SLEEP_FUNC=0
43157 if test "$USE_BEOS" = 1; then
43158             cat >>confdefs.h <<\_ACEOF
43159 #define HAVE_SLEEP 1
43160 _ACEOF
43161
43162     HAVE_SOME_SLEEP_FUNC=1
43163 fi
43164
43165 if test "$USE_DARWIN" = 1; then
43166             cat >>confdefs.h <<\_ACEOF
43167 #define HAVE_USLEEP 1
43168 _ACEOF
43169
43170     HAVE_SOME_SLEEP_FUNC=1
43171 fi
43172
43173 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
43174         POSIX4_LINK=
43175
43176 for ac_func in nanosleep
43177 do
43178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43182   echo $ECHO_N "(cached) $ECHO_C" >&6
43183 else
43184   cat >conftest.$ac_ext <<_ACEOF
43185 /* confdefs.h.  */
43186 _ACEOF
43187 cat confdefs.h >>conftest.$ac_ext
43188 cat >>conftest.$ac_ext <<_ACEOF
43189 /* end confdefs.h.  */
43190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43192 #define $ac_func innocuous_$ac_func
43193
43194 /* System header to define __stub macros and hopefully few prototypes,
43195     which can conflict with char $ac_func (); below.
43196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43197     <limits.h> exists even on freestanding compilers.  */
43198
43199 #ifdef __STDC__
43200 # include <limits.h>
43201 #else
43202 # include <assert.h>
43203 #endif
43204
43205 #undef $ac_func
43206
43207 /* Override any GCC internal prototype to avoid an error.
43208    Use char because int might match the return type of a GCC
43209    builtin and then its argument prototype would still apply.  */
43210 #ifdef __cplusplus
43211 extern "C"
43212 #endif
43213 char $ac_func ();
43214 /* The GNU C library defines this for functions which it implements
43215     to always fail with ENOSYS.  Some functions are actually named
43216     something starting with __ and the normal name is an alias.  */
43217 #if defined __stub_$ac_func || defined __stub___$ac_func
43218 choke me
43219 #endif
43220
43221 int
43222 main ()
43223 {
43224 return $ac_func ();
43225   ;
43226   return 0;
43227 }
43228 _ACEOF
43229 rm -f conftest.$ac_objext conftest$ac_exeext
43230 if { (ac_try="$ac_link"
43231 case "(($ac_try" in
43232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43233   *) ac_try_echo=$ac_try;;
43234 esac
43235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43236   (eval "$ac_link") 2>conftest.er1
43237   ac_status=$?
43238   grep -v '^ *+' conftest.er1 >conftest.err
43239   rm -f conftest.er1
43240   cat conftest.err >&5
43241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43242   (exit $ac_status); } &&
43243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43244   { (case "(($ac_try" in
43245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43246   *) ac_try_echo=$ac_try;;
43247 esac
43248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43249   (eval "$ac_try") 2>&5
43250   ac_status=$?
43251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43252   (exit $ac_status); }; } &&
43253          { ac_try='test -s conftest$ac_exeext'
43254   { (case "(($ac_try" in
43255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43256   *) ac_try_echo=$ac_try;;
43257 esac
43258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43259   (eval "$ac_try") 2>&5
43260   ac_status=$?
43261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43262   (exit $ac_status); }; }; then
43263   eval "$as_ac_var=yes"
43264 else
43265   echo "$as_me: failed program was:" >&5
43266 sed 's/^/| /' conftest.$ac_ext >&5
43267
43268         eval "$as_ac_var=no"
43269 fi
43270
43271 rm -f core conftest.err conftest.$ac_objext \
43272       conftest$ac_exeext conftest.$ac_ext
43273 fi
43274 ac_res=`eval echo '${'$as_ac_var'}'`
43275                { echo "$as_me:$LINENO: result: $ac_res" >&5
43276 echo "${ECHO_T}$ac_res" >&6; }
43277 if test `eval echo '${'$as_ac_var'}'` = yes; then
43278   cat >>confdefs.h <<_ACEOF
43279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43280 _ACEOF
43281  cat >>confdefs.h <<\_ACEOF
43282 #define HAVE_NANOSLEEP 1
43283 _ACEOF
43284
43285 else
43286
43287             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
43288 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
43289 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
43290   echo $ECHO_N "(cached) $ECHO_C" >&6
43291 else
43292   ac_check_lib_save_LIBS=$LIBS
43293 LIBS="-lposix4  $LIBS"
43294 cat >conftest.$ac_ext <<_ACEOF
43295 /* confdefs.h.  */
43296 _ACEOF
43297 cat confdefs.h >>conftest.$ac_ext
43298 cat >>conftest.$ac_ext <<_ACEOF
43299 /* end confdefs.h.  */
43300
43301 /* Override any GCC internal prototype to avoid an error.
43302    Use char because int might match the return type of a GCC
43303    builtin and then its argument prototype would still apply.  */
43304 #ifdef __cplusplus
43305 extern "C"
43306 #endif
43307 char nanosleep ();
43308 int
43309 main ()
43310 {
43311 return nanosleep ();
43312   ;
43313   return 0;
43314 }
43315 _ACEOF
43316 rm -f conftest.$ac_objext conftest$ac_exeext
43317 if { (ac_try="$ac_link"
43318 case "(($ac_try" in
43319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43320   *) ac_try_echo=$ac_try;;
43321 esac
43322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43323   (eval "$ac_link") 2>conftest.er1
43324   ac_status=$?
43325   grep -v '^ *+' conftest.er1 >conftest.err
43326   rm -f conftest.er1
43327   cat conftest.err >&5
43328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43329   (exit $ac_status); } &&
43330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43331   { (case "(($ac_try" in
43332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43333   *) ac_try_echo=$ac_try;;
43334 esac
43335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43336   (eval "$ac_try") 2>&5
43337   ac_status=$?
43338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339   (exit $ac_status); }; } &&
43340          { ac_try='test -s conftest$ac_exeext'
43341   { (case "(($ac_try" in
43342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43343   *) ac_try_echo=$ac_try;;
43344 esac
43345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43346   (eval "$ac_try") 2>&5
43347   ac_status=$?
43348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43349   (exit $ac_status); }; }; then
43350   ac_cv_lib_posix4_nanosleep=yes
43351 else
43352   echo "$as_me: failed program was:" >&5
43353 sed 's/^/| /' conftest.$ac_ext >&5
43354
43355         ac_cv_lib_posix4_nanosleep=no
43356 fi
43357
43358 rm -f core conftest.err conftest.$ac_objext \
43359       conftest$ac_exeext conftest.$ac_ext
43360 LIBS=$ac_check_lib_save_LIBS
43361 fi
43362 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
43363 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
43364 if test $ac_cv_lib_posix4_nanosleep = yes; then
43365
43366                     cat >>confdefs.h <<\_ACEOF
43367 #define HAVE_NANOSLEEP 1
43368 _ACEOF
43369
43370                     POSIX4_LINK=" -lposix4"
43371
43372 else
43373
43374
43375   for wx_func in usleep
43376   do
43377     { echo "$as_me:$LINENO: checking for $wx_func" >&5
43378 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
43379 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
43380   echo $ECHO_N "(cached) $ECHO_C" >&6
43381 else
43382
43383         cat >conftest.$ac_ext <<_ACEOF
43384
43385             /* confdefs.h.  */
43386 _ACEOF
43387 cat confdefs.h >>conftest.$ac_ext
43388 cat >>conftest.$ac_ext <<_ACEOF
43389 /* end confdefs.h.  */
43390
43391
43392                 $ac_includes_default
43393
43394 int
43395 main ()
43396 {
43397
43398                 #ifndef $wx_func
43399                   &$wx_func;
43400                 #endif
43401
43402
43403   ;
43404   return 0;
43405 }
43406
43407 _ACEOF
43408 rm -f conftest.$ac_objext conftest$ac_exeext
43409 if { (ac_try="$ac_link"
43410 case "(($ac_try" in
43411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43412   *) ac_try_echo=$ac_try;;
43413 esac
43414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43415   (eval "$ac_link") 2>conftest.er1
43416   ac_status=$?
43417   grep -v '^ *+' conftest.er1 >conftest.err
43418   rm -f conftest.er1
43419   cat conftest.err >&5
43420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43421   (exit $ac_status); } &&
43422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43423   { (case "(($ac_try" in
43424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43425   *) ac_try_echo=$ac_try;;
43426 esac
43427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43428   (eval "$ac_try") 2>&5
43429   ac_status=$?
43430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43431   (exit $ac_status); }; } &&
43432          { ac_try='test -s conftest$ac_exeext'
43433   { (case "(($ac_try" in
43434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43435   *) ac_try_echo=$ac_try;;
43436 esac
43437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43438   (eval "$ac_try") 2>&5
43439   ac_status=$?
43440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43441   (exit $ac_status); }; }; then
43442   eval wx_cv_func_$wx_func=yes
43443 else
43444   echo "$as_me: failed program was:" >&5
43445 sed 's/^/| /' conftest.$ac_ext >&5
43446
43447         eval wx_cv_func_$wx_func=no
43448 fi
43449
43450 rm -f core conftest.err conftest.$ac_objext \
43451       conftest$ac_exeext conftest.$ac_ext
43452
43453 fi
43454 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
43455                { echo "$as_me:$LINENO: result: $ac_res" >&5
43456 echo "${ECHO_T}$ac_res" >&6; }
43457
43458     if eval test \$wx_cv_func_$wx_func = yes
43459     then
43460       cat >>confdefs.h <<_ACEOF
43461 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
43462 _ACEOF
43463
43464
43465     else
43466       :
43467       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
43468 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
43469
43470     fi
43471   done
43472
43473
43474
43475 fi
43476
43477
43478
43479 fi
43480 done
43481
43482 fi
43483
43484
43485   for wx_func in uname
43486   do
43487     { echo "$as_me:$LINENO: checking for $wx_func" >&5
43488 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
43489 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
43490   echo $ECHO_N "(cached) $ECHO_C" >&6
43491 else
43492
43493         cat >conftest.$ac_ext <<_ACEOF
43494
43495             /* confdefs.h.  */
43496 _ACEOF
43497 cat confdefs.h >>conftest.$ac_ext
43498 cat >>conftest.$ac_ext <<_ACEOF
43499 /* end confdefs.h.  */
43500
43501                 #include <sys/utsname.h>
43502                 $ac_includes_default
43503
43504 int
43505 main ()
43506 {
43507
43508                 #ifndef $wx_func
43509                   &$wx_func;
43510                 #endif
43511
43512
43513   ;
43514   return 0;
43515 }
43516
43517 _ACEOF
43518 rm -f conftest.$ac_objext conftest$ac_exeext
43519 if { (ac_try="$ac_link"
43520 case "(($ac_try" in
43521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43522   *) ac_try_echo=$ac_try;;
43523 esac
43524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43525   (eval "$ac_link") 2>conftest.er1
43526   ac_status=$?
43527   grep -v '^ *+' conftest.er1 >conftest.err
43528   rm -f conftest.er1
43529   cat conftest.err >&5
43530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43531   (exit $ac_status); } &&
43532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43533   { (case "(($ac_try" in
43534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43535   *) ac_try_echo=$ac_try;;
43536 esac
43537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43538   (eval "$ac_try") 2>&5
43539   ac_status=$?
43540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43541   (exit $ac_status); }; } &&
43542          { ac_try='test -s conftest$ac_exeext'
43543   { (case "(($ac_try" in
43544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43545   *) ac_try_echo=$ac_try;;
43546 esac
43547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43548   (eval "$ac_try") 2>&5
43549   ac_status=$?
43550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551   (exit $ac_status); }; }; then
43552   eval wx_cv_func_$wx_func=yes
43553 else
43554   echo "$as_me: failed program was:" >&5
43555 sed 's/^/| /' conftest.$ac_ext >&5
43556
43557         eval wx_cv_func_$wx_func=no
43558 fi
43559
43560 rm -f core conftest.err conftest.$ac_objext \
43561       conftest$ac_exeext conftest.$ac_ext
43562
43563 fi
43564 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
43565                { echo "$as_me:$LINENO: result: $ac_res" >&5
43566 echo "${ECHO_T}$ac_res" >&6; }
43567
43568     if eval test \$wx_cv_func_$wx_func = yes
43569     then
43570       cat >>confdefs.h <<_ACEOF
43571 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
43572 _ACEOF
43573
43574
43575     else
43576       :
43577
43578     fi
43579   done
43580
43581 if test "$wx_cv_func_uname" != yes; then
43582
43583   for wx_func in gethostname
43584   do
43585     { echo "$as_me:$LINENO: checking for $wx_func" >&5
43586 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
43587 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
43588   echo $ECHO_N "(cached) $ECHO_C" >&6
43589 else
43590
43591         cat >conftest.$ac_ext <<_ACEOF
43592
43593             /* confdefs.h.  */
43594 _ACEOF
43595 cat confdefs.h >>conftest.$ac_ext
43596 cat >>conftest.$ac_ext <<_ACEOF
43597 /* end confdefs.h.  */
43598
43599
43600                 $ac_includes_default
43601
43602 int
43603 main ()
43604 {
43605
43606                 #ifndef $wx_func
43607                   &$wx_func;
43608                 #endif
43609
43610
43611   ;
43612   return 0;
43613 }
43614
43615 _ACEOF
43616 rm -f conftest.$ac_objext conftest$ac_exeext
43617 if { (ac_try="$ac_link"
43618 case "(($ac_try" in
43619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43620   *) ac_try_echo=$ac_try;;
43621 esac
43622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43623   (eval "$ac_link") 2>conftest.er1
43624   ac_status=$?
43625   grep -v '^ *+' conftest.er1 >conftest.err
43626   rm -f conftest.er1
43627   cat conftest.err >&5
43628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43629   (exit $ac_status); } &&
43630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43631   { (case "(($ac_try" in
43632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43633   *) ac_try_echo=$ac_try;;
43634 esac
43635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43636   (eval "$ac_try") 2>&5
43637   ac_status=$?
43638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43639   (exit $ac_status); }; } &&
43640          { ac_try='test -s conftest$ac_exeext'
43641   { (case "(($ac_try" in
43642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43643   *) ac_try_echo=$ac_try;;
43644 esac
43645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43646   (eval "$ac_try") 2>&5
43647   ac_status=$?
43648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43649   (exit $ac_status); }; }; then
43650   eval wx_cv_func_$wx_func=yes
43651 else
43652   echo "$as_me: failed program was:" >&5
43653 sed 's/^/| /' conftest.$ac_ext >&5
43654
43655         eval wx_cv_func_$wx_func=no
43656 fi
43657
43658 rm -f core conftest.err conftest.$ac_objext \
43659       conftest$ac_exeext conftest.$ac_ext
43660
43661 fi
43662 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
43663                { echo "$as_me:$LINENO: result: $ac_res" >&5
43664 echo "${ECHO_T}$ac_res" >&6; }
43665
43666     if eval test \$wx_cv_func_$wx_func = yes
43667     then
43668       cat >>confdefs.h <<_ACEOF
43669 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
43670 _ACEOF
43671
43672
43673     else
43674       :
43675
43676     fi
43677   done
43678
43679 fi
43680
43681
43682   for wx_func in strtok_r
43683   do
43684     { echo "$as_me:$LINENO: checking for $wx_func" >&5
43685 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
43686 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
43687   echo $ECHO_N "(cached) $ECHO_C" >&6
43688 else
43689
43690         cat >conftest.$ac_ext <<_ACEOF
43691
43692             /* confdefs.h.  */
43693 _ACEOF
43694 cat confdefs.h >>conftest.$ac_ext
43695 cat >>conftest.$ac_ext <<_ACEOF
43696 /* end confdefs.h.  */
43697
43698                 #define _REENTRANT
43699                 $ac_includes_default
43700
43701 int
43702 main ()
43703 {
43704
43705                 #ifndef $wx_func
43706                   &$wx_func;
43707                 #endif
43708
43709
43710   ;
43711   return 0;
43712 }
43713
43714 _ACEOF
43715 rm -f conftest.$ac_objext conftest$ac_exeext
43716 if { (ac_try="$ac_link"
43717 case "(($ac_try" in
43718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43719   *) ac_try_echo=$ac_try;;
43720 esac
43721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43722   (eval "$ac_link") 2>conftest.er1
43723   ac_status=$?
43724   grep -v '^ *+' conftest.er1 >conftest.err
43725   rm -f conftest.er1
43726   cat conftest.err >&5
43727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43728   (exit $ac_status); } &&
43729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43730   { (case "(($ac_try" in
43731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43732   *) ac_try_echo=$ac_try;;
43733 esac
43734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43735   (eval "$ac_try") 2>&5
43736   ac_status=$?
43737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738   (exit $ac_status); }; } &&
43739          { ac_try='test -s conftest$ac_exeext'
43740   { (case "(($ac_try" in
43741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43742   *) ac_try_echo=$ac_try;;
43743 esac
43744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43745   (eval "$ac_try") 2>&5
43746   ac_status=$?
43747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43748   (exit $ac_status); }; }; then
43749   eval wx_cv_func_$wx_func=yes
43750 else
43751   echo "$as_me: failed program was:" >&5
43752 sed 's/^/| /' conftest.$ac_ext >&5
43753
43754         eval wx_cv_func_$wx_func=no
43755 fi
43756
43757 rm -f core conftest.err conftest.$ac_objext \
43758       conftest$ac_exeext conftest.$ac_ext
43759
43760 fi
43761 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
43762                { echo "$as_me:$LINENO: result: $ac_res" >&5
43763 echo "${ECHO_T}$ac_res" >&6; }
43764
43765     if eval test \$wx_cv_func_$wx_func = yes
43766     then
43767       cat >>confdefs.h <<_ACEOF
43768 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
43769 _ACEOF
43770
43771
43772     else
43773       :
43774
43775     fi
43776   done
43777
43778
43779 INET_LINK=
43780
43781 for ac_func in inet_addr
43782 do
43783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43787   echo $ECHO_N "(cached) $ECHO_C" >&6
43788 else
43789   cat >conftest.$ac_ext <<_ACEOF
43790 /* confdefs.h.  */
43791 _ACEOF
43792 cat confdefs.h >>conftest.$ac_ext
43793 cat >>conftest.$ac_ext <<_ACEOF
43794 /* end confdefs.h.  */
43795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43797 #define $ac_func innocuous_$ac_func
43798
43799 /* System header to define __stub macros and hopefully few prototypes,
43800     which can conflict with char $ac_func (); below.
43801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43802     <limits.h> exists even on freestanding compilers.  */
43803
43804 #ifdef __STDC__
43805 # include <limits.h>
43806 #else
43807 # include <assert.h>
43808 #endif
43809
43810 #undef $ac_func
43811
43812 /* Override any GCC internal prototype to avoid an error.
43813    Use char because int might match the return type of a GCC
43814    builtin and then its argument prototype would still apply.  */
43815 #ifdef __cplusplus
43816 extern "C"
43817 #endif
43818 char $ac_func ();
43819 /* The GNU C library defines this for functions which it implements
43820     to always fail with ENOSYS.  Some functions are actually named
43821     something starting with __ and the normal name is an alias.  */
43822 #if defined __stub_$ac_func || defined __stub___$ac_func
43823 choke me
43824 #endif
43825
43826 int
43827 main ()
43828 {
43829 return $ac_func ();
43830   ;
43831   return 0;
43832 }
43833 _ACEOF
43834 rm -f conftest.$ac_objext conftest$ac_exeext
43835 if { (ac_try="$ac_link"
43836 case "(($ac_try" in
43837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43838   *) ac_try_echo=$ac_try;;
43839 esac
43840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43841   (eval "$ac_link") 2>conftest.er1
43842   ac_status=$?
43843   grep -v '^ *+' conftest.er1 >conftest.err
43844   rm -f conftest.er1
43845   cat conftest.err >&5
43846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43847   (exit $ac_status); } &&
43848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43849   { (case "(($ac_try" in
43850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43851   *) ac_try_echo=$ac_try;;
43852 esac
43853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43854   (eval "$ac_try") 2>&5
43855   ac_status=$?
43856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43857   (exit $ac_status); }; } &&
43858          { ac_try='test -s conftest$ac_exeext'
43859   { (case "(($ac_try" in
43860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43861   *) ac_try_echo=$ac_try;;
43862 esac
43863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43864   (eval "$ac_try") 2>&5
43865   ac_status=$?
43866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43867   (exit $ac_status); }; }; then
43868   eval "$as_ac_var=yes"
43869 else
43870   echo "$as_me: failed program was:" >&5
43871 sed 's/^/| /' conftest.$ac_ext >&5
43872
43873         eval "$as_ac_var=no"
43874 fi
43875
43876 rm -f core conftest.err conftest.$ac_objext \
43877       conftest$ac_exeext conftest.$ac_ext
43878 fi
43879 ac_res=`eval echo '${'$as_ac_var'}'`
43880                { echo "$as_me:$LINENO: result: $ac_res" >&5
43881 echo "${ECHO_T}$ac_res" >&6; }
43882 if test `eval echo '${'$as_ac_var'}'` = yes; then
43883   cat >>confdefs.h <<_ACEOF
43884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43885 _ACEOF
43886  cat >>confdefs.h <<\_ACEOF
43887 #define HAVE_INET_ADDR 1
43888 _ACEOF
43889
43890 else
43891
43892         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
43893 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
43894 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
43895   echo $ECHO_N "(cached) $ECHO_C" >&6
43896 else
43897   ac_check_lib_save_LIBS=$LIBS
43898 LIBS="-lnsl  $LIBS"
43899 cat >conftest.$ac_ext <<_ACEOF
43900 /* confdefs.h.  */
43901 _ACEOF
43902 cat confdefs.h >>conftest.$ac_ext
43903 cat >>conftest.$ac_ext <<_ACEOF
43904 /* end confdefs.h.  */
43905
43906 /* Override any GCC internal prototype to avoid an error.
43907    Use char because int might match the return type of a GCC
43908    builtin and then its argument prototype would still apply.  */
43909 #ifdef __cplusplus
43910 extern "C"
43911 #endif
43912 char inet_addr ();
43913 int
43914 main ()
43915 {
43916 return inet_addr ();
43917   ;
43918   return 0;
43919 }
43920 _ACEOF
43921 rm -f conftest.$ac_objext conftest$ac_exeext
43922 if { (ac_try="$ac_link"
43923 case "(($ac_try" in
43924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43925   *) ac_try_echo=$ac_try;;
43926 esac
43927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43928   (eval "$ac_link") 2>conftest.er1
43929   ac_status=$?
43930   grep -v '^ *+' conftest.er1 >conftest.err
43931   rm -f conftest.er1
43932   cat conftest.err >&5
43933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43934   (exit $ac_status); } &&
43935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43936   { (case "(($ac_try" in
43937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43938   *) ac_try_echo=$ac_try;;
43939 esac
43940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43941   (eval "$ac_try") 2>&5
43942   ac_status=$?
43943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43944   (exit $ac_status); }; } &&
43945          { ac_try='test -s conftest$ac_exeext'
43946   { (case "(($ac_try" in
43947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43948   *) ac_try_echo=$ac_try;;
43949 esac
43950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43951   (eval "$ac_try") 2>&5
43952   ac_status=$?
43953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43954   (exit $ac_status); }; }; then
43955   ac_cv_lib_nsl_inet_addr=yes
43956 else
43957   echo "$as_me: failed program was:" >&5
43958 sed 's/^/| /' conftest.$ac_ext >&5
43959
43960         ac_cv_lib_nsl_inet_addr=no
43961 fi
43962
43963 rm -f core conftest.err conftest.$ac_objext \
43964       conftest$ac_exeext conftest.$ac_ext
43965 LIBS=$ac_check_lib_save_LIBS
43966 fi
43967 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
43968 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
43969 if test $ac_cv_lib_nsl_inet_addr = yes; then
43970   INET_LINK="nsl"
43971 else
43972
43973                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
43974 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
43975 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
43976   echo $ECHO_N "(cached) $ECHO_C" >&6
43977 else
43978   ac_check_lib_save_LIBS=$LIBS
43979 LIBS="-lresolv  $LIBS"
43980 cat >conftest.$ac_ext <<_ACEOF
43981 /* confdefs.h.  */
43982 _ACEOF
43983 cat confdefs.h >>conftest.$ac_ext
43984 cat >>conftest.$ac_ext <<_ACEOF
43985 /* end confdefs.h.  */
43986
43987 /* Override any GCC internal prototype to avoid an error.
43988    Use char because int might match the return type of a GCC
43989    builtin and then its argument prototype would still apply.  */
43990 #ifdef __cplusplus
43991 extern "C"
43992 #endif
43993 char inet_addr ();
43994 int
43995 main ()
43996 {
43997 return inet_addr ();
43998   ;
43999   return 0;
44000 }
44001 _ACEOF
44002 rm -f conftest.$ac_objext conftest$ac_exeext
44003 if { (ac_try="$ac_link"
44004 case "(($ac_try" in
44005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44006   *) ac_try_echo=$ac_try;;
44007 esac
44008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44009   (eval "$ac_link") 2>conftest.er1
44010   ac_status=$?
44011   grep -v '^ *+' conftest.er1 >conftest.err
44012   rm -f conftest.er1
44013   cat conftest.err >&5
44014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44015   (exit $ac_status); } &&
44016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44017   { (case "(($ac_try" in
44018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44019   *) ac_try_echo=$ac_try;;
44020 esac
44021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44022   (eval "$ac_try") 2>&5
44023   ac_status=$?
44024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44025   (exit $ac_status); }; } &&
44026          { ac_try='test -s conftest$ac_exeext'
44027   { (case "(($ac_try" in
44028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44029   *) ac_try_echo=$ac_try;;
44030 esac
44031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44032   (eval "$ac_try") 2>&5
44033   ac_status=$?
44034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44035   (exit $ac_status); }; }; then
44036   ac_cv_lib_resolv_inet_addr=yes
44037 else
44038   echo "$as_me: failed program was:" >&5
44039 sed 's/^/| /' conftest.$ac_ext >&5
44040
44041         ac_cv_lib_resolv_inet_addr=no
44042 fi
44043
44044 rm -f core conftest.err conftest.$ac_objext \
44045       conftest$ac_exeext conftest.$ac_ext
44046 LIBS=$ac_check_lib_save_LIBS
44047 fi
44048 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
44049 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
44050 if test $ac_cv_lib_resolv_inet_addr = yes; then
44051   INET_LINK="resolv"
44052 else
44053
44054                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
44055 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
44056 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
44057   echo $ECHO_N "(cached) $ECHO_C" >&6
44058 else
44059   ac_check_lib_save_LIBS=$LIBS
44060 LIBS="-lsocket  $LIBS"
44061 cat >conftest.$ac_ext <<_ACEOF
44062 /* confdefs.h.  */
44063 _ACEOF
44064 cat confdefs.h >>conftest.$ac_ext
44065 cat >>conftest.$ac_ext <<_ACEOF
44066 /* end confdefs.h.  */
44067
44068 /* Override any GCC internal prototype to avoid an error.
44069    Use char because int might match the return type of a GCC
44070    builtin and then its argument prototype would still apply.  */
44071 #ifdef __cplusplus
44072 extern "C"
44073 #endif
44074 char inet_addr ();
44075 int
44076 main ()
44077 {
44078 return inet_addr ();
44079   ;
44080   return 0;
44081 }
44082 _ACEOF
44083 rm -f conftest.$ac_objext conftest$ac_exeext
44084 if { (ac_try="$ac_link"
44085 case "(($ac_try" in
44086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44087   *) ac_try_echo=$ac_try;;
44088 esac
44089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44090   (eval "$ac_link") 2>conftest.er1
44091   ac_status=$?
44092   grep -v '^ *+' conftest.er1 >conftest.err
44093   rm -f conftest.er1
44094   cat conftest.err >&5
44095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44096   (exit $ac_status); } &&
44097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44098   { (case "(($ac_try" in
44099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44100   *) ac_try_echo=$ac_try;;
44101 esac
44102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44103   (eval "$ac_try") 2>&5
44104   ac_status=$?
44105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44106   (exit $ac_status); }; } &&
44107          { ac_try='test -s conftest$ac_exeext'
44108   { (case "(($ac_try" in
44109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44110   *) ac_try_echo=$ac_try;;
44111 esac
44112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44113   (eval "$ac_try") 2>&5
44114   ac_status=$?
44115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44116   (exit $ac_status); }; }; then
44117   ac_cv_lib_socket_inet_addr=yes
44118 else
44119   echo "$as_me: failed program was:" >&5
44120 sed 's/^/| /' conftest.$ac_ext >&5
44121
44122         ac_cv_lib_socket_inet_addr=no
44123 fi
44124
44125 rm -f core conftest.err conftest.$ac_objext \
44126       conftest$ac_exeext conftest.$ac_ext
44127 LIBS=$ac_check_lib_save_LIBS
44128 fi
44129 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
44130 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
44131 if test $ac_cv_lib_socket_inet_addr = yes; then
44132   INET_LINK="socket"
44133
44134 fi
44135
44136
44137
44138 fi
44139
44140
44141
44142 fi
44143
44144
44145
44146 fi
44147 done
44148
44149
44150
44151 for ac_func in inet_aton
44152 do
44153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44157   echo $ECHO_N "(cached) $ECHO_C" >&6
44158 else
44159   cat >conftest.$ac_ext <<_ACEOF
44160 /* confdefs.h.  */
44161 _ACEOF
44162 cat confdefs.h >>conftest.$ac_ext
44163 cat >>conftest.$ac_ext <<_ACEOF
44164 /* end confdefs.h.  */
44165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44167 #define $ac_func innocuous_$ac_func
44168
44169 /* System header to define __stub macros and hopefully few prototypes,
44170     which can conflict with char $ac_func (); below.
44171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44172     <limits.h> exists even on freestanding compilers.  */
44173
44174 #ifdef __STDC__
44175 # include <limits.h>
44176 #else
44177 # include <assert.h>
44178 #endif
44179
44180 #undef $ac_func
44181
44182 /* Override any GCC internal prototype to avoid an error.
44183    Use char because int might match the return type of a GCC
44184    builtin and then its argument prototype would still apply.  */
44185 #ifdef __cplusplus
44186 extern "C"
44187 #endif
44188 char $ac_func ();
44189 /* The GNU C library defines this for functions which it implements
44190     to always fail with ENOSYS.  Some functions are actually named
44191     something starting with __ and the normal name is an alias.  */
44192 #if defined __stub_$ac_func || defined __stub___$ac_func
44193 choke me
44194 #endif
44195
44196 int
44197 main ()
44198 {
44199 return $ac_func ();
44200   ;
44201   return 0;
44202 }
44203 _ACEOF
44204 rm -f conftest.$ac_objext conftest$ac_exeext
44205 if { (ac_try="$ac_link"
44206 case "(($ac_try" in
44207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44208   *) ac_try_echo=$ac_try;;
44209 esac
44210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44211   (eval "$ac_link") 2>conftest.er1
44212   ac_status=$?
44213   grep -v '^ *+' conftest.er1 >conftest.err
44214   rm -f conftest.er1
44215   cat conftest.err >&5
44216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44217   (exit $ac_status); } &&
44218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44219   { (case "(($ac_try" in
44220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44221   *) ac_try_echo=$ac_try;;
44222 esac
44223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44224   (eval "$ac_try") 2>&5
44225   ac_status=$?
44226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44227   (exit $ac_status); }; } &&
44228          { ac_try='test -s conftest$ac_exeext'
44229   { (case "(($ac_try" in
44230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44231   *) ac_try_echo=$ac_try;;
44232 esac
44233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44234   (eval "$ac_try") 2>&5
44235   ac_status=$?
44236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44237   (exit $ac_status); }; }; then
44238   eval "$as_ac_var=yes"
44239 else
44240   echo "$as_me: failed program was:" >&5
44241 sed 's/^/| /' conftest.$ac_ext >&5
44242
44243         eval "$as_ac_var=no"
44244 fi
44245
44246 rm -f core conftest.err conftest.$ac_objext \
44247       conftest$ac_exeext conftest.$ac_ext
44248 fi
44249 ac_res=`eval echo '${'$as_ac_var'}'`
44250                { echo "$as_me:$LINENO: result: $ac_res" >&5
44251 echo "${ECHO_T}$ac_res" >&6; }
44252 if test `eval echo '${'$as_ac_var'}'` = yes; then
44253   cat >>confdefs.h <<_ACEOF
44254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44255 _ACEOF
44256  cat >>confdefs.h <<\_ACEOF
44257 #define HAVE_INET_ATON 1
44258 _ACEOF
44259
44260 else
44261
44262                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
44263 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
44264 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
44265 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44266   echo $ECHO_N "(cached) $ECHO_C" >&6
44267 else
44268   ac_check_lib_save_LIBS=$LIBS
44269 LIBS="-l$INET_LINK  $LIBS"
44270 cat >conftest.$ac_ext <<_ACEOF
44271 /* confdefs.h.  */
44272 _ACEOF
44273 cat confdefs.h >>conftest.$ac_ext
44274 cat >>conftest.$ac_ext <<_ACEOF
44275 /* end confdefs.h.  */
44276
44277 /* Override any GCC internal prototype to avoid an error.
44278    Use char because int might match the return type of a GCC
44279    builtin and then its argument prototype would still apply.  */
44280 #ifdef __cplusplus
44281 extern "C"
44282 #endif
44283 char inet_aton ();
44284 int
44285 main ()
44286 {
44287 return inet_aton ();
44288   ;
44289   return 0;
44290 }
44291 _ACEOF
44292 rm -f conftest.$ac_objext conftest$ac_exeext
44293 if { (ac_try="$ac_link"
44294 case "(($ac_try" in
44295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44296   *) ac_try_echo=$ac_try;;
44297 esac
44298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44299   (eval "$ac_link") 2>conftest.er1
44300   ac_status=$?
44301   grep -v '^ *+' conftest.er1 >conftest.err
44302   rm -f conftest.er1
44303   cat conftest.err >&5
44304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44305   (exit $ac_status); } &&
44306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44307   { (case "(($ac_try" in
44308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44309   *) ac_try_echo=$ac_try;;
44310 esac
44311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44312   (eval "$ac_try") 2>&5
44313   ac_status=$?
44314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44315   (exit $ac_status); }; } &&
44316          { ac_try='test -s conftest$ac_exeext'
44317   { (case "(($ac_try" in
44318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44319   *) ac_try_echo=$ac_try;;
44320 esac
44321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44322   (eval "$ac_try") 2>&5
44323   ac_status=$?
44324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44325   (exit $ac_status); }; }; then
44326   eval "$as_ac_Lib=yes"
44327 else
44328   echo "$as_me: failed program was:" >&5
44329 sed 's/^/| /' conftest.$ac_ext >&5
44330
44331         eval "$as_ac_Lib=no"
44332 fi
44333
44334 rm -f core conftest.err conftest.$ac_objext \
44335       conftest$ac_exeext conftest.$ac_ext
44336 LIBS=$ac_check_lib_save_LIBS
44337 fi
44338 ac_res=`eval echo '${'$as_ac_Lib'}'`
44339                { echo "$as_me:$LINENO: result: $ac_res" >&5
44340 echo "${ECHO_T}$ac_res" >&6; }
44341 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44342   cat >>confdefs.h <<\_ACEOF
44343 #define HAVE_INET_ATON 1
44344 _ACEOF
44345
44346 fi
44347
44348
44349 fi
44350 done
44351
44352
44353 if test "x$INET_LINK" != "x"; then
44354     cat >>confdefs.h <<\_ACEOF
44355 #define HAVE_INET_ADDR 1
44356 _ACEOF
44357
44358     INET_LINK=" -l$INET_LINK"
44359 fi
44360
44361
44362   for wx_func in fdopen
44363   do
44364     { echo "$as_me:$LINENO: checking for $wx_func" >&5
44365 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
44366 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
44367   echo $ECHO_N "(cached) $ECHO_C" >&6
44368 else
44369
44370         cat >conftest.$ac_ext <<_ACEOF
44371
44372             /* confdefs.h.  */
44373 _ACEOF
44374 cat confdefs.h >>conftest.$ac_ext
44375 cat >>conftest.$ac_ext <<_ACEOF
44376 /* end confdefs.h.  */
44377
44378
44379                 $ac_includes_default
44380
44381 int
44382 main ()
44383 {
44384
44385                 #ifndef $wx_func
44386                   &$wx_func;
44387                 #endif
44388
44389
44390   ;
44391   return 0;
44392 }
44393
44394 _ACEOF
44395 rm -f conftest.$ac_objext conftest$ac_exeext
44396 if { (ac_try="$ac_link"
44397 case "(($ac_try" in
44398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44399   *) ac_try_echo=$ac_try;;
44400 esac
44401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44402   (eval "$ac_link") 2>conftest.er1
44403   ac_status=$?
44404   grep -v '^ *+' conftest.er1 >conftest.err
44405   rm -f conftest.er1
44406   cat conftest.err >&5
44407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44408   (exit $ac_status); } &&
44409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44410   { (case "(($ac_try" in
44411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44412   *) ac_try_echo=$ac_try;;
44413 esac
44414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44415   (eval "$ac_try") 2>&5
44416   ac_status=$?
44417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44418   (exit $ac_status); }; } &&
44419          { ac_try='test -s conftest$ac_exeext'
44420   { (case "(($ac_try" in
44421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44422   *) ac_try_echo=$ac_try;;
44423 esac
44424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44425   (eval "$ac_try") 2>&5
44426   ac_status=$?
44427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44428   (exit $ac_status); }; }; then
44429   eval wx_cv_func_$wx_func=yes
44430 else
44431   echo "$as_me: failed program was:" >&5
44432 sed 's/^/| /' conftest.$ac_ext >&5
44433
44434         eval wx_cv_func_$wx_func=no
44435 fi
44436
44437 rm -f core conftest.err conftest.$ac_objext \
44438       conftest$ac_exeext conftest.$ac_ext
44439
44440 fi
44441 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
44442                { echo "$as_me:$LINENO: result: $ac_res" >&5
44443 echo "${ECHO_T}$ac_res" >&6; }
44444
44445     if eval test \$wx_cv_func_$wx_func = yes
44446     then
44447       cat >>confdefs.h <<_ACEOF
44448 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
44449 _ACEOF
44450
44451
44452     else
44453       :
44454
44455     fi
44456   done
44457
44458
44459 fi
44460
44461
44462
44463
44464 EXTRALIBS_ESD=
44465 { echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
44466 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6; }
44467 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
44468   echo $ECHO_N "(cached) $ECHO_C" >&6
44469 else
44470   ac_check_lib_save_LIBS=$LIBS
44471 LIBS="-lesd  $LIBS"
44472 cat >conftest.$ac_ext <<_ACEOF
44473 /* confdefs.h.  */
44474 _ACEOF
44475 cat confdefs.h >>conftest.$ac_ext
44476 cat >>conftest.$ac_ext <<_ACEOF
44477 /* end confdefs.h.  */
44478
44479 /* Override any GCC internal prototype to avoid an error.
44480    Use char because int might match the return type of a GCC
44481    builtin and then its argument prototype would still apply.  */
44482 #ifdef __cplusplus
44483 extern "C"
44484 #endif
44485 char esd_close ();
44486 int
44487 main ()
44488 {
44489 return esd_close ();
44490   ;
44491   return 0;
44492 }
44493 _ACEOF
44494 rm -f conftest.$ac_objext conftest$ac_exeext
44495 if { (ac_try="$ac_link"
44496 case "(($ac_try" in
44497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44498   *) ac_try_echo=$ac_try;;
44499 esac
44500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44501   (eval "$ac_link") 2>conftest.er1
44502   ac_status=$?
44503   grep -v '^ *+' conftest.er1 >conftest.err
44504   rm -f conftest.er1
44505   cat conftest.err >&5
44506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44507   (exit $ac_status); } &&
44508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44509   { (case "(($ac_try" in
44510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44511   *) ac_try_echo=$ac_try;;
44512 esac
44513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44514   (eval "$ac_try") 2>&5
44515   ac_status=$?
44516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44517   (exit $ac_status); }; } &&
44518          { ac_try='test -s conftest$ac_exeext'
44519   { (case "(($ac_try" in
44520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44521   *) ac_try_echo=$ac_try;;
44522 esac
44523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44524   (eval "$ac_try") 2>&5
44525   ac_status=$?
44526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44527   (exit $ac_status); }; }; then
44528   ac_cv_lib_esd_esd_close=yes
44529 else
44530   echo "$as_me: failed program was:" >&5
44531 sed 's/^/| /' conftest.$ac_ext >&5
44532
44533         ac_cv_lib_esd_esd_close=no
44534 fi
44535
44536 rm -f core conftest.err conftest.$ac_objext \
44537       conftest$ac_exeext conftest.$ac_ext
44538 LIBS=$ac_check_lib_save_LIBS
44539 fi
44540 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
44541 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6; }
44542 if test $ac_cv_lib_esd_esd_close = yes; then
44543
44544
44545 for ac_header in esd.h
44546 do
44547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44549   { echo "$as_me:$LINENO: checking for $ac_header" >&5
44550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44552   echo $ECHO_N "(cached) $ECHO_C" >&6
44553 fi
44554 ac_res=`eval echo '${'$as_ac_Header'}'`
44555                { echo "$as_me:$LINENO: result: $ac_res" >&5
44556 echo "${ECHO_T}$ac_res" >&6; }
44557 else
44558   # Is the header compilable?
44559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
44560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
44561 cat >conftest.$ac_ext <<_ACEOF
44562 /* confdefs.h.  */
44563 _ACEOF
44564 cat confdefs.h >>conftest.$ac_ext
44565 cat >>conftest.$ac_ext <<_ACEOF
44566 /* end confdefs.h.  */
44567 $ac_includes_default
44568 #include <$ac_header>
44569 _ACEOF
44570 rm -f conftest.$ac_objext
44571 if { (ac_try="$ac_compile"
44572 case "(($ac_try" in
44573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44574   *) ac_try_echo=$ac_try;;
44575 esac
44576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44577   (eval "$ac_compile") 2>conftest.er1
44578   ac_status=$?
44579   grep -v '^ *+' conftest.er1 >conftest.err
44580   rm -f conftest.er1
44581   cat conftest.err >&5
44582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44583   (exit $ac_status); } &&
44584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44585   { (case "(($ac_try" in
44586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44587   *) ac_try_echo=$ac_try;;
44588 esac
44589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44590   (eval "$ac_try") 2>&5
44591   ac_status=$?
44592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44593   (exit $ac_status); }; } &&
44594          { ac_try='test -s conftest.$ac_objext'
44595   { (case "(($ac_try" in
44596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44597   *) ac_try_echo=$ac_try;;
44598 esac
44599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44600   (eval "$ac_try") 2>&5
44601   ac_status=$?
44602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44603   (exit $ac_status); }; }; then
44604   ac_header_compiler=yes
44605 else
44606   echo "$as_me: failed program was:" >&5
44607 sed 's/^/| /' conftest.$ac_ext >&5
44608
44609         ac_header_compiler=no
44610 fi
44611
44612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44614 echo "${ECHO_T}$ac_header_compiler" >&6; }
44615
44616 # Is the header present?
44617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44619 cat >conftest.$ac_ext <<_ACEOF
44620 /* confdefs.h.  */
44621 _ACEOF
44622 cat confdefs.h >>conftest.$ac_ext
44623 cat >>conftest.$ac_ext <<_ACEOF
44624 /* end confdefs.h.  */
44625 #include <$ac_header>
44626 _ACEOF
44627 if { (ac_try="$ac_cpp conftest.$ac_ext"
44628 case "(($ac_try" in
44629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44630   *) ac_try_echo=$ac_try;;
44631 esac
44632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44634   ac_status=$?
44635   grep -v '^ *+' conftest.er1 >conftest.err
44636   rm -f conftest.er1
44637   cat conftest.err >&5
44638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44639   (exit $ac_status); } >/dev/null; then
44640   if test -s conftest.err; then
44641     ac_cpp_err=$ac_c_preproc_warn_flag
44642     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44643   else
44644     ac_cpp_err=
44645   fi
44646 else
44647   ac_cpp_err=yes
44648 fi
44649 if test -z "$ac_cpp_err"; then
44650   ac_header_preproc=yes
44651 else
44652   echo "$as_me: failed program was:" >&5
44653 sed 's/^/| /' conftest.$ac_ext >&5
44654
44655   ac_header_preproc=no
44656 fi
44657
44658 rm -f conftest.err conftest.$ac_ext
44659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44660 echo "${ECHO_T}$ac_header_preproc" >&6; }
44661
44662 # So?  What about this header?
44663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44664   yes:no: )
44665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44669     ac_header_preproc=yes
44670     ;;
44671   no:yes:* )
44672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44674     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44675 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44676     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44678     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44679 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44682     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44684     ( cat <<\_ASBOX
44685 ## ----------------------------------------- ##
44686 ## Report this to wx-dev@lists.wxwidgets.org ##
44687 ## ----------------------------------------- ##
44688 _ASBOX
44689      ) | sed "s/^/$as_me: WARNING:     /" >&2
44690     ;;
44691 esac
44692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44695   echo $ECHO_N "(cached) $ECHO_C" >&6
44696 else
44697   eval "$as_ac_Header=\$ac_header_preproc"
44698 fi
44699 ac_res=`eval echo '${'$as_ac_Header'}'`
44700                { echo "$as_me:$LINENO: result: $ac_res" >&5
44701 echo "${ECHO_T}$ac_res" >&6; }
44702
44703 fi
44704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44705   cat >>confdefs.h <<_ACEOF
44706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44707 _ACEOF
44708
44709     EXTRALIBS_ESD="-lesd"
44710
44711 fi
44712
44713 done
44714
44715
44716 fi
44717
44718
44719
44720 { echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
44721 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6; }
44722 cat >conftest.$ac_ext <<_ACEOF
44723 /* confdefs.h.  */
44724 _ACEOF
44725 cat confdefs.h >>conftest.$ac_ext
44726 cat >>conftest.$ac_ext <<_ACEOF
44727 /* end confdefs.h.  */
44728 #ifdef __linux__
44729                 #include <linux/cdrom.h>
44730                 #else
44731                 /* For Solaris */
44732                 #include <sys/cdio.h>
44733                 #endif
44734
44735 int
44736 main ()
44737 {
44738 struct cdrom_tocentry entry, old_entry;
44739   ;
44740   return 0;
44741 }
44742 _ACEOF
44743 rm -f conftest.$ac_objext
44744 if { (ac_try="$ac_compile"
44745 case "(($ac_try" in
44746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44747   *) ac_try_echo=$ac_try;;
44748 esac
44749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44750   (eval "$ac_compile") 2>conftest.er1
44751   ac_status=$?
44752   grep -v '^ *+' conftest.er1 >conftest.err
44753   rm -f conftest.er1
44754   cat conftest.err >&5
44755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44756   (exit $ac_status); } &&
44757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44758   { (case "(($ac_try" in
44759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44760   *) ac_try_echo=$ac_try;;
44761 esac
44762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44763   (eval "$ac_try") 2>&5
44764   ac_status=$?
44765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44766   (exit $ac_status); }; } &&
44767          { ac_try='test -s conftest.$ac_objext'
44768   { (case "(($ac_try" in
44769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44770   *) ac_try_echo=$ac_try;;
44771 esac
44772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44773   (eval "$ac_try") 2>&5
44774   ac_status=$?
44775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44776   (exit $ac_status); }; }; then
44777   { echo "$as_me:$LINENO: result: yes" >&5
44778 echo "${ECHO_T}yes" >&6; }
44779                 cat >>confdefs.h <<\_ACEOF
44780 #define HAVE_KNOWN_CDROM_INTERFACE 1
44781 _ACEOF
44782
44783 else
44784   echo "$as_me: failed program was:" >&5
44785 sed 's/^/| /' conftest.$ac_ext >&5
44786
44787         { echo "$as_me:$LINENO: result: no" >&5
44788 echo "${ECHO_T}no" >&6; }
44789 fi
44790
44791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44792
44793
44794 cat >confcache <<\_ACEOF
44795 # This file is a shell script that caches the results of configure
44796 # tests run on this system so they can be shared between configure
44797 # scripts and configure runs, see configure's option --config-cache.
44798 # It is not useful on other systems.  If it contains results you don't
44799 # want to keep, you may remove or edit it.
44800 #
44801 # config.status only pays attention to the cache file if you give it
44802 # the --recheck option to rerun configure.
44803 #
44804 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44805 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44806 # following values.
44807
44808 _ACEOF
44809
44810 # The following way of writing the cache mishandles newlines in values,
44811 # but we know of no workaround that is simple, portable, and efficient.
44812 # So, we kill variables containing newlines.
44813 # Ultrix sh set writes to stderr and can't be redirected directly,
44814 # and sets the high bit in the cache file unless we assign to the vars.
44815 (
44816   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44817     eval ac_val=\$$ac_var
44818     case $ac_val in #(
44819     *${as_nl}*)
44820       case $ac_var in #(
44821       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44822 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44823       esac
44824       case $ac_var in #(
44825       _ | IFS | as_nl) ;; #(
44826       *) $as_unset $ac_var ;;
44827       esac ;;
44828     esac
44829   done
44830
44831   (set) 2>&1 |
44832     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44833     *${as_nl}ac_space=\ *)
44834       # `set' does not quote correctly, so add quotes (double-quote
44835       # substitution turns \\\\ into \\, and sed turns \\ into \).
44836       sed -n \
44837         "s/'/'\\\\''/g;
44838           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44839       ;; #(
44840     *)
44841       # `set' quotes correctly as required by POSIX, so do not add quotes.
44842       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44843       ;;
44844     esac |
44845     sort
44846 ) |
44847   sed '
44848      /^ac_cv_env_/b end
44849      t clear
44850      :clear
44851      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44852      t end
44853      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44854      :end' >>confcache
44855 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44856   if test -w "$cache_file"; then
44857     test "x$cache_file" != "x/dev/null" &&
44858       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44859 echo "$as_me: updating cache $cache_file" >&6;}
44860     cat confcache >$cache_file
44861   else
44862     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44863 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44864   fi
44865 fi
44866 rm -f confcache
44867
44868
44869 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
44870
44871
44872     THREADS_LINK=
44873     THREADS_CFLAGS=
44874
44875     if test "$wxUSE_THREADS" = "yes" ; then
44876         if test "$USE_BEOS" = 1; then
44877             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
44878 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
44879             wxUSE_THREADS="no"
44880         fi
44881     fi
44882
44883     if test "$wxUSE_THREADS" = "yes" ; then
44884
44885
44886                                 THREAD_OPTS="-pthread"
44887         case "${host}" in
44888           *-*-solaris2* | *-*-sunos4* )
44889                 if test "x$GCC" = "xyes"; then
44890                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
44891                 else
44892                     THREAD_OPTS="-mt $THREAD_OPTS"
44893                 fi
44894                 ;;
44895           *-*-freebsd*)
44896                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
44897                 ;;
44898           *-*-darwin* | *-*-cygwin* )
44899                                                 THREAD_OPTS=""
44900                 ;;
44901           *-*-aix*)
44902                                 THREAD_OPTS="pthreads"
44903                 ;;
44904           *-hp-hpux* )
44905                 if test "x$GCC" = "xyes"; then
44906                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
44907                         THREAD_OPTS=""
44908                 else
44909                                                             THREAD_OPTS="-mt"
44910                 fi
44911                 ;;
44912
44913           *-*-irix* )
44914                                                                 if test "x$GCC" = "xyes"; then
44915                     THREAD_OPTS=""
44916                 fi
44917                 ;;
44918
44919           *-*-*UnixWare*)
44920                                 if test "x$GCC" != "xyes"; then
44921                     THREAD_OPTS="-Ethread"
44922                 fi
44923                 ;;
44924         esac
44925
44926                                 THREAD_OPTS="$THREAD_OPTS pthread none"
44927
44928                 THREADS_OK=no
44929         for flag in $THREAD_OPTS; do
44930             case $flag in
44931                 none)
44932                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
44933 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
44934                     ;;
44935
44936                 -*)
44937                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
44938 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
44939                     THREADS_CFLAGS="$flag"
44940                     ;;
44941
44942                 *)
44943                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
44944 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
44945                     THREADS_LINK="-l$flag"
44946                     ;;
44947               esac
44948
44949               save_LIBS="$LIBS"
44950               save_CFLAGS="$CFLAGS"
44951               LIBS="$THREADS_LINK $LIBS"
44952               CFLAGS="$THREADS_CFLAGS $CFLAGS"
44953
44954               cat >conftest.$ac_ext <<_ACEOF
44955 /* confdefs.h.  */
44956 _ACEOF
44957 cat confdefs.h >>conftest.$ac_ext
44958 cat >>conftest.$ac_ext <<_ACEOF
44959 /* end confdefs.h.  */
44960 #include <pthread.h>
44961 int
44962 main ()
44963 {
44964 pthread_create(0,0,0,0);
44965   ;
44966   return 0;
44967 }
44968 _ACEOF
44969 rm -f conftest.$ac_objext conftest$ac_exeext
44970 if { (ac_try="$ac_link"
44971 case "(($ac_try" in
44972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44973   *) ac_try_echo=$ac_try;;
44974 esac
44975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44976   (eval "$ac_link") 2>conftest.er1
44977   ac_status=$?
44978   grep -v '^ *+' conftest.er1 >conftest.err
44979   rm -f conftest.er1
44980   cat conftest.err >&5
44981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44982   (exit $ac_status); } &&
44983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44984   { (case "(($ac_try" in
44985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44986   *) ac_try_echo=$ac_try;;
44987 esac
44988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44989   (eval "$ac_try") 2>&5
44990   ac_status=$?
44991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44992   (exit $ac_status); }; } &&
44993          { ac_try='test -s conftest$ac_exeext'
44994   { (case "(($ac_try" in
44995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44996   *) ac_try_echo=$ac_try;;
44997 esac
44998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44999   (eval "$ac_try") 2>&5
45000   ac_status=$?
45001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45002   (exit $ac_status); }; }; then
45003   THREADS_OK=yes
45004 else
45005   echo "$as_me: failed program was:" >&5
45006 sed 's/^/| /' conftest.$ac_ext >&5
45007
45008
45009 fi
45010
45011 rm -f core conftest.err conftest.$ac_objext \
45012       conftest$ac_exeext conftest.$ac_ext
45013
45014               LIBS="$save_LIBS"
45015               CFLAGS="$save_CFLAGS"
45016
45017               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
45018 echo "${ECHO_T}$THREADS_OK" >&6; }
45019               if test "x$THREADS_OK" = "xyes"; then
45020                       break;
45021               fi
45022
45023               THREADS_LINK=""
45024               THREADS_CFLAGS=""
45025       done
45026
45027       if test "x$THREADS_OK" != "xyes"; then
45028           wxUSE_THREADS=no
45029           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
45030 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
45031       else
45032                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
45033           LIBS="$THREADS_LINK $LIBS"
45034
45035           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
45036 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
45037           flag=no
45038           case "${host}" in
45039             *-aix*)
45040                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
45041                 flag="-D_THREAD_SAFE"
45042                 ;;
45043             *-freebsd*)
45044                 flag="-D_THREAD_SAFE"
45045                 ;;
45046             *-hp-hpux* )
45047                 flag="-D_REENTRANT"
45048                 if test "x$GCC" != "xyes"; then
45049                                         flag="$flag -D_RWSTD_MULTI_THREAD"
45050                 fi
45051                 ;;
45052             *solaris* | alpha*-osf*)
45053                 flag="-D_REENTRANT"
45054                 ;;
45055           esac
45056           { echo "$as_me:$LINENO: result: ${flag}" >&5
45057 echo "${ECHO_T}${flag}" >&6; }
45058           if test "x$flag" != xno; then
45059               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
45060           fi
45061
45062                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
45063       fi
45064     fi
45065
45066         if test "$wxUSE_THREADS" = "yes" ; then
45067
45068 for ac_func in thr_setconcurrency
45069 do
45070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45074   echo $ECHO_N "(cached) $ECHO_C" >&6
45075 else
45076   cat >conftest.$ac_ext <<_ACEOF
45077 /* confdefs.h.  */
45078 _ACEOF
45079 cat confdefs.h >>conftest.$ac_ext
45080 cat >>conftest.$ac_ext <<_ACEOF
45081 /* end confdefs.h.  */
45082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45084 #define $ac_func innocuous_$ac_func
45085
45086 /* System header to define __stub macros and hopefully few prototypes,
45087     which can conflict with char $ac_func (); below.
45088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45089     <limits.h> exists even on freestanding compilers.  */
45090
45091 #ifdef __STDC__
45092 # include <limits.h>
45093 #else
45094 # include <assert.h>
45095 #endif
45096
45097 #undef $ac_func
45098
45099 /* Override any GCC internal prototype to avoid an error.
45100    Use char because int might match the return type of a GCC
45101    builtin and then its argument prototype would still apply.  */
45102 #ifdef __cplusplus
45103 extern "C"
45104 #endif
45105 char $ac_func ();
45106 /* The GNU C library defines this for functions which it implements
45107     to always fail with ENOSYS.  Some functions are actually named
45108     something starting with __ and the normal name is an alias.  */
45109 #if defined __stub_$ac_func || defined __stub___$ac_func
45110 choke me
45111 #endif
45112
45113 int
45114 main ()
45115 {
45116 return $ac_func ();
45117   ;
45118   return 0;
45119 }
45120 _ACEOF
45121 rm -f conftest.$ac_objext conftest$ac_exeext
45122 if { (ac_try="$ac_link"
45123 case "(($ac_try" in
45124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45125   *) ac_try_echo=$ac_try;;
45126 esac
45127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45128   (eval "$ac_link") 2>conftest.er1
45129   ac_status=$?
45130   grep -v '^ *+' conftest.er1 >conftest.err
45131   rm -f conftest.er1
45132   cat conftest.err >&5
45133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45134   (exit $ac_status); } &&
45135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45136   { (case "(($ac_try" in
45137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45138   *) ac_try_echo=$ac_try;;
45139 esac
45140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45141   (eval "$ac_try") 2>&5
45142   ac_status=$?
45143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45144   (exit $ac_status); }; } &&
45145          { ac_try='test -s conftest$ac_exeext'
45146   { (case "(($ac_try" in
45147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45148   *) ac_try_echo=$ac_try;;
45149 esac
45150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45151   (eval "$ac_try") 2>&5
45152   ac_status=$?
45153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45154   (exit $ac_status); }; }; then
45155   eval "$as_ac_var=yes"
45156 else
45157   echo "$as_me: failed program was:" >&5
45158 sed 's/^/| /' conftest.$ac_ext >&5
45159
45160         eval "$as_ac_var=no"
45161 fi
45162
45163 rm -f core conftest.err conftest.$ac_objext \
45164       conftest$ac_exeext conftest.$ac_ext
45165 fi
45166 ac_res=`eval echo '${'$as_ac_var'}'`
45167                { echo "$as_me:$LINENO: result: $ac_res" >&5
45168 echo "${ECHO_T}$ac_res" >&6; }
45169 if test `eval echo '${'$as_ac_var'}'` = yes; then
45170   cat >>confdefs.h <<_ACEOF
45171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45172 _ACEOF
45173
45174 fi
45175 done
45176
45177
45178                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
45179 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
45180 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
45181   echo $ECHO_N "(cached) $ECHO_C" >&6
45182 else
45183
45184         cat >conftest.$ac_ext <<_ACEOF
45185 /* confdefs.h.  */
45186 _ACEOF
45187 cat confdefs.h >>conftest.$ac_ext
45188 cat >>conftest.$ac_ext <<_ACEOF
45189 /* end confdefs.h.  */
45190 #include <pthread.h>
45191                void ThreadCleanupFunc(void *p);
45192
45193 int
45194 main ()
45195 {
45196
45197                 void *p;
45198                 pthread_cleanup_push(ThreadCleanupFunc, p);
45199                 pthread_cleanup_pop(0);
45200
45201   ;
45202   return 0;
45203 }
45204 _ACEOF
45205 rm -f conftest.$ac_objext
45206 if { (ac_try="$ac_compile"
45207 case "(($ac_try" in
45208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45209   *) ac_try_echo=$ac_try;;
45210 esac
45211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45212   (eval "$ac_compile") 2>conftest.er1
45213   ac_status=$?
45214   grep -v '^ *+' conftest.er1 >conftest.err
45215   rm -f conftest.er1
45216   cat conftest.err >&5
45217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45218   (exit $ac_status); } &&
45219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45220   { (case "(($ac_try" in
45221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45222   *) ac_try_echo=$ac_try;;
45223 esac
45224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45225   (eval "$ac_try") 2>&5
45226   ac_status=$?
45227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45228   (exit $ac_status); }; } &&
45229          { ac_try='test -s conftest.$ac_objext'
45230   { (case "(($ac_try" in
45231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45232   *) ac_try_echo=$ac_try;;
45233 esac
45234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45235   (eval "$ac_try") 2>&5
45236   ac_status=$?
45237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45238   (exit $ac_status); }; }; then
45239
45240                wx_cv_func_pthread_cleanup=yes
45241
45242 else
45243   echo "$as_me: failed program was:" >&5
45244 sed 's/^/| /' conftest.$ac_ext >&5
45245
45246
45247                wx_cv_func_pthread_cleanup=no
45248
45249
45250 fi
45251
45252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45253
45254 fi
45255 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
45256 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
45257       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
45258         cat >>confdefs.h <<\_ACEOF
45259 #define wxHAVE_PTHREAD_CLEANUP 1
45260 _ACEOF
45261
45262       fi
45263
45264
45265 for ac_header in sched.h
45266 do
45267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45269   { echo "$as_me:$LINENO: checking for $ac_header" >&5
45270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45272   echo $ECHO_N "(cached) $ECHO_C" >&6
45273 fi
45274 ac_res=`eval echo '${'$as_ac_Header'}'`
45275                { echo "$as_me:$LINENO: result: $ac_res" >&5
45276 echo "${ECHO_T}$ac_res" >&6; }
45277 else
45278   # Is the header compilable?
45279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
45280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
45281 cat >conftest.$ac_ext <<_ACEOF
45282 /* confdefs.h.  */
45283 _ACEOF
45284 cat confdefs.h >>conftest.$ac_ext
45285 cat >>conftest.$ac_ext <<_ACEOF
45286 /* end confdefs.h.  */
45287 $ac_includes_default
45288 #include <$ac_header>
45289 _ACEOF
45290 rm -f conftest.$ac_objext
45291 if { (ac_try="$ac_compile"
45292 case "(($ac_try" in
45293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45294   *) ac_try_echo=$ac_try;;
45295 esac
45296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45297   (eval "$ac_compile") 2>conftest.er1
45298   ac_status=$?
45299   grep -v '^ *+' conftest.er1 >conftest.err
45300   rm -f conftest.er1
45301   cat conftest.err >&5
45302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45303   (exit $ac_status); } &&
45304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45305   { (case "(($ac_try" in
45306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45307   *) ac_try_echo=$ac_try;;
45308 esac
45309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45310   (eval "$ac_try") 2>&5
45311   ac_status=$?
45312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45313   (exit $ac_status); }; } &&
45314          { ac_try='test -s conftest.$ac_objext'
45315   { (case "(($ac_try" in
45316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45317   *) ac_try_echo=$ac_try;;
45318 esac
45319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45320   (eval "$ac_try") 2>&5
45321   ac_status=$?
45322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45323   (exit $ac_status); }; }; then
45324   ac_header_compiler=yes
45325 else
45326   echo "$as_me: failed program was:" >&5
45327 sed 's/^/| /' conftest.$ac_ext >&5
45328
45329         ac_header_compiler=no
45330 fi
45331
45332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45334 echo "${ECHO_T}$ac_header_compiler" >&6; }
45335
45336 # Is the header present?
45337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
45338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
45339 cat >conftest.$ac_ext <<_ACEOF
45340 /* confdefs.h.  */
45341 _ACEOF
45342 cat confdefs.h >>conftest.$ac_ext
45343 cat >>conftest.$ac_ext <<_ACEOF
45344 /* end confdefs.h.  */
45345 #include <$ac_header>
45346 _ACEOF
45347 if { (ac_try="$ac_cpp conftest.$ac_ext"
45348 case "(($ac_try" in
45349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45350   *) ac_try_echo=$ac_try;;
45351 esac
45352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45354   ac_status=$?
45355   grep -v '^ *+' conftest.er1 >conftest.err
45356   rm -f conftest.er1
45357   cat conftest.err >&5
45358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45359   (exit $ac_status); } >/dev/null; then
45360   if test -s conftest.err; then
45361     ac_cpp_err=$ac_c_preproc_warn_flag
45362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45363   else
45364     ac_cpp_err=
45365   fi
45366 else
45367   ac_cpp_err=yes
45368 fi
45369 if test -z "$ac_cpp_err"; then
45370   ac_header_preproc=yes
45371 else
45372   echo "$as_me: failed program was:" >&5
45373 sed 's/^/| /' conftest.$ac_ext >&5
45374
45375   ac_header_preproc=no
45376 fi
45377
45378 rm -f conftest.err conftest.$ac_ext
45379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45380 echo "${ECHO_T}$ac_header_preproc" >&6; }
45381
45382 # So?  What about this header?
45383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45384   yes:no: )
45385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45389     ac_header_preproc=yes
45390     ;;
45391   no:yes:* )
45392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45404     ( cat <<\_ASBOX
45405 ## ----------------------------------------- ##
45406 ## Report this to wx-dev@lists.wxwidgets.org ##
45407 ## ----------------------------------------- ##
45408 _ASBOX
45409      ) | sed "s/^/$as_me: WARNING:     /" >&2
45410     ;;
45411 esac
45412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45415   echo $ECHO_N "(cached) $ECHO_C" >&6
45416 else
45417   eval "$as_ac_Header=\$ac_header_preproc"
45418 fi
45419 ac_res=`eval echo '${'$as_ac_Header'}'`
45420                { echo "$as_me:$LINENO: result: $ac_res" >&5
45421 echo "${ECHO_T}$ac_res" >&6; }
45422
45423 fi
45424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45425   cat >>confdefs.h <<_ACEOF
45426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45427 _ACEOF
45428
45429 fi
45430
45431 done
45432
45433       if test "$ac_cv_header_sched_h" = "yes"; then
45434           { echo "$as_me:$LINENO: checking for sched_yield" >&5
45435 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
45436 if test "${ac_cv_func_sched_yield+set}" = set; then
45437   echo $ECHO_N "(cached) $ECHO_C" >&6
45438 else
45439   cat >conftest.$ac_ext <<_ACEOF
45440 /* confdefs.h.  */
45441 _ACEOF
45442 cat confdefs.h >>conftest.$ac_ext
45443 cat >>conftest.$ac_ext <<_ACEOF
45444 /* end confdefs.h.  */
45445 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
45446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45447 #define sched_yield innocuous_sched_yield
45448
45449 /* System header to define __stub macros and hopefully few prototypes,
45450     which can conflict with char sched_yield (); below.
45451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45452     <limits.h> exists even on freestanding compilers.  */
45453
45454 #ifdef __STDC__
45455 # include <limits.h>
45456 #else
45457 # include <assert.h>
45458 #endif
45459
45460 #undef sched_yield
45461
45462 /* Override any GCC internal prototype to avoid an error.
45463    Use char because int might match the return type of a GCC
45464    builtin and then its argument prototype would still apply.  */
45465 #ifdef __cplusplus
45466 extern "C"
45467 #endif
45468 char sched_yield ();
45469 /* The GNU C library defines this for functions which it implements
45470     to always fail with ENOSYS.  Some functions are actually named
45471     something starting with __ and the normal name is an alias.  */
45472 #if defined __stub_sched_yield || defined __stub___sched_yield
45473 choke me
45474 #endif
45475
45476 int
45477 main ()
45478 {
45479 return sched_yield ();
45480   ;
45481   return 0;
45482 }
45483 _ACEOF
45484 rm -f conftest.$ac_objext conftest$ac_exeext
45485 if { (ac_try="$ac_link"
45486 case "(($ac_try" in
45487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45488   *) ac_try_echo=$ac_try;;
45489 esac
45490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45491   (eval "$ac_link") 2>conftest.er1
45492   ac_status=$?
45493   grep -v '^ *+' conftest.er1 >conftest.err
45494   rm -f conftest.er1
45495   cat conftest.err >&5
45496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45497   (exit $ac_status); } &&
45498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45499   { (case "(($ac_try" in
45500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45501   *) ac_try_echo=$ac_try;;
45502 esac
45503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45504   (eval "$ac_try") 2>&5
45505   ac_status=$?
45506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45507   (exit $ac_status); }; } &&
45508          { ac_try='test -s conftest$ac_exeext'
45509   { (case "(($ac_try" in
45510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45511   *) ac_try_echo=$ac_try;;
45512 esac
45513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45514   (eval "$ac_try") 2>&5
45515   ac_status=$?
45516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45517   (exit $ac_status); }; }; then
45518   ac_cv_func_sched_yield=yes
45519 else
45520   echo "$as_me: failed program was:" >&5
45521 sed 's/^/| /' conftest.$ac_ext >&5
45522
45523         ac_cv_func_sched_yield=no
45524 fi
45525
45526 rm -f core conftest.err conftest.$ac_objext \
45527       conftest$ac_exeext conftest.$ac_ext
45528 fi
45529 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
45530 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
45531 if test $ac_cv_func_sched_yield = yes; then
45532   cat >>confdefs.h <<\_ACEOF
45533 #define HAVE_SCHED_YIELD 1
45534 _ACEOF
45535
45536 else
45537
45538                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
45539 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
45540 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
45541   echo $ECHO_N "(cached) $ECHO_C" >&6
45542 else
45543   ac_check_lib_save_LIBS=$LIBS
45544 LIBS="-lposix4  $LIBS"
45545 cat >conftest.$ac_ext <<_ACEOF
45546 /* confdefs.h.  */
45547 _ACEOF
45548 cat confdefs.h >>conftest.$ac_ext
45549 cat >>conftest.$ac_ext <<_ACEOF
45550 /* end confdefs.h.  */
45551
45552 /* Override any GCC internal prototype to avoid an error.
45553    Use char because int might match the return type of a GCC
45554    builtin and then its argument prototype would still apply.  */
45555 #ifdef __cplusplus
45556 extern "C"
45557 #endif
45558 char sched_yield ();
45559 int
45560 main ()
45561 {
45562 return sched_yield ();
45563   ;
45564   return 0;
45565 }
45566 _ACEOF
45567 rm -f conftest.$ac_objext conftest$ac_exeext
45568 if { (ac_try="$ac_link"
45569 case "(($ac_try" in
45570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45571   *) ac_try_echo=$ac_try;;
45572 esac
45573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45574   (eval "$ac_link") 2>conftest.er1
45575   ac_status=$?
45576   grep -v '^ *+' conftest.er1 >conftest.err
45577   rm -f conftest.er1
45578   cat conftest.err >&5
45579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45580   (exit $ac_status); } &&
45581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45582   { (case "(($ac_try" in
45583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45584   *) ac_try_echo=$ac_try;;
45585 esac
45586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45587   (eval "$ac_try") 2>&5
45588   ac_status=$?
45589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45590   (exit $ac_status); }; } &&
45591          { ac_try='test -s conftest$ac_exeext'
45592   { (case "(($ac_try" in
45593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45594   *) ac_try_echo=$ac_try;;
45595 esac
45596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45597   (eval "$ac_try") 2>&5
45598   ac_status=$?
45599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45600   (exit $ac_status); }; }; then
45601   ac_cv_lib_posix4_sched_yield=yes
45602 else
45603   echo "$as_me: failed program was:" >&5
45604 sed 's/^/| /' conftest.$ac_ext >&5
45605
45606         ac_cv_lib_posix4_sched_yield=no
45607 fi
45608
45609 rm -f core conftest.err conftest.$ac_objext \
45610       conftest$ac_exeext conftest.$ac_ext
45611 LIBS=$ac_check_lib_save_LIBS
45612 fi
45613 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
45614 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
45615 if test $ac_cv_lib_posix4_sched_yield = yes; then
45616   cat >>confdefs.h <<\_ACEOF
45617 #define HAVE_SCHED_YIELD 1
45618 _ACEOF
45619  POSIX4_LINK=" -lposix4"
45620 else
45621   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
45622 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
45623
45624 fi
45625
45626
45627
45628 fi
45629
45630       fi
45631
45632                                           HAVE_PRIOR_FUNCS=0
45633       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
45634 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
45635 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
45636   echo $ECHO_N "(cached) $ECHO_C" >&6
45637 else
45638   cat >conftest.$ac_ext <<_ACEOF
45639 /* confdefs.h.  */
45640 _ACEOF
45641 cat confdefs.h >>conftest.$ac_ext
45642 cat >>conftest.$ac_ext <<_ACEOF
45643 /* end confdefs.h.  */
45644 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
45645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45646 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
45647
45648 /* System header to define __stub macros and hopefully few prototypes,
45649     which can conflict with char pthread_attr_getschedpolicy (); below.
45650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45651     <limits.h> exists even on freestanding compilers.  */
45652
45653 #ifdef __STDC__
45654 # include <limits.h>
45655 #else
45656 # include <assert.h>
45657 #endif
45658
45659 #undef pthread_attr_getschedpolicy
45660
45661 /* Override any GCC internal prototype to avoid an error.
45662    Use char because int might match the return type of a GCC
45663    builtin and then its argument prototype would still apply.  */
45664 #ifdef __cplusplus
45665 extern "C"
45666 #endif
45667 char pthread_attr_getschedpolicy ();
45668 /* The GNU C library defines this for functions which it implements
45669     to always fail with ENOSYS.  Some functions are actually named
45670     something starting with __ and the normal name is an alias.  */
45671 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
45672 choke me
45673 #endif
45674
45675 int
45676 main ()
45677 {
45678 return pthread_attr_getschedpolicy ();
45679   ;
45680   return 0;
45681 }
45682 _ACEOF
45683 rm -f conftest.$ac_objext conftest$ac_exeext
45684 if { (ac_try="$ac_link"
45685 case "(($ac_try" in
45686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45687   *) ac_try_echo=$ac_try;;
45688 esac
45689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45690   (eval "$ac_link") 2>conftest.er1
45691   ac_status=$?
45692   grep -v '^ *+' conftest.er1 >conftest.err
45693   rm -f conftest.er1
45694   cat conftest.err >&5
45695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45696   (exit $ac_status); } &&
45697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45698   { (case "(($ac_try" in
45699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45700   *) ac_try_echo=$ac_try;;
45701 esac
45702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45703   (eval "$ac_try") 2>&5
45704   ac_status=$?
45705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45706   (exit $ac_status); }; } &&
45707          { ac_try='test -s conftest$ac_exeext'
45708   { (case "(($ac_try" in
45709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45710   *) ac_try_echo=$ac_try;;
45711 esac
45712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45713   (eval "$ac_try") 2>&5
45714   ac_status=$?
45715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45716   (exit $ac_status); }; }; then
45717   ac_cv_func_pthread_attr_getschedpolicy=yes
45718 else
45719   echo "$as_me: failed program was:" >&5
45720 sed 's/^/| /' conftest.$ac_ext >&5
45721
45722         ac_cv_func_pthread_attr_getschedpolicy=no
45723 fi
45724
45725 rm -f core conftest.err conftest.$ac_objext \
45726       conftest$ac_exeext conftest.$ac_ext
45727 fi
45728 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
45729 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
45730 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
45731   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
45732 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
45733 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
45734   echo $ECHO_N "(cached) $ECHO_C" >&6
45735 else
45736   cat >conftest.$ac_ext <<_ACEOF
45737 /* confdefs.h.  */
45738 _ACEOF
45739 cat confdefs.h >>conftest.$ac_ext
45740 cat >>conftest.$ac_ext <<_ACEOF
45741 /* end confdefs.h.  */
45742 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
45743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45744 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
45745
45746 /* System header to define __stub macros and hopefully few prototypes,
45747     which can conflict with char pthread_attr_setschedparam (); below.
45748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45749     <limits.h> exists even on freestanding compilers.  */
45750
45751 #ifdef __STDC__
45752 # include <limits.h>
45753 #else
45754 # include <assert.h>
45755 #endif
45756
45757 #undef pthread_attr_setschedparam
45758
45759 /* Override any GCC internal prototype to avoid an error.
45760    Use char because int might match the return type of a GCC
45761    builtin and then its argument prototype would still apply.  */
45762 #ifdef __cplusplus
45763 extern "C"
45764 #endif
45765 char pthread_attr_setschedparam ();
45766 /* The GNU C library defines this for functions which it implements
45767     to always fail with ENOSYS.  Some functions are actually named
45768     something starting with __ and the normal name is an alias.  */
45769 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
45770 choke me
45771 #endif
45772
45773 int
45774 main ()
45775 {
45776 return pthread_attr_setschedparam ();
45777   ;
45778   return 0;
45779 }
45780 _ACEOF
45781 rm -f conftest.$ac_objext conftest$ac_exeext
45782 if { (ac_try="$ac_link"
45783 case "(($ac_try" in
45784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45785   *) ac_try_echo=$ac_try;;
45786 esac
45787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45788   (eval "$ac_link") 2>conftest.er1
45789   ac_status=$?
45790   grep -v '^ *+' conftest.er1 >conftest.err
45791   rm -f conftest.er1
45792   cat conftest.err >&5
45793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45794   (exit $ac_status); } &&
45795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45796   { (case "(($ac_try" in
45797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45798   *) ac_try_echo=$ac_try;;
45799 esac
45800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45801   (eval "$ac_try") 2>&5
45802   ac_status=$?
45803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45804   (exit $ac_status); }; } &&
45805          { ac_try='test -s conftest$ac_exeext'
45806   { (case "(($ac_try" in
45807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45808   *) ac_try_echo=$ac_try;;
45809 esac
45810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45811   (eval "$ac_try") 2>&5
45812   ac_status=$?
45813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45814   (exit $ac_status); }; }; then
45815   ac_cv_func_pthread_attr_setschedparam=yes
45816 else
45817   echo "$as_me: failed program was:" >&5
45818 sed 's/^/| /' conftest.$ac_ext >&5
45819
45820         ac_cv_func_pthread_attr_setschedparam=no
45821 fi
45822
45823 rm -f core conftest.err conftest.$ac_objext \
45824       conftest$ac_exeext conftest.$ac_ext
45825 fi
45826 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
45827 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
45828 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
45829   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
45830 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
45831 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
45832   echo $ECHO_N "(cached) $ECHO_C" >&6
45833 else
45834   cat >conftest.$ac_ext <<_ACEOF
45835 /* confdefs.h.  */
45836 _ACEOF
45837 cat confdefs.h >>conftest.$ac_ext
45838 cat >>conftest.$ac_ext <<_ACEOF
45839 /* end confdefs.h.  */
45840 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
45841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45842 #define sched_get_priority_max innocuous_sched_get_priority_max
45843
45844 /* System header to define __stub macros and hopefully few prototypes,
45845     which can conflict with char sched_get_priority_max (); below.
45846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45847     <limits.h> exists even on freestanding compilers.  */
45848
45849 #ifdef __STDC__
45850 # include <limits.h>
45851 #else
45852 # include <assert.h>
45853 #endif
45854
45855 #undef sched_get_priority_max
45856
45857 /* Override any GCC internal prototype to avoid an error.
45858    Use char because int might match the return type of a GCC
45859    builtin and then its argument prototype would still apply.  */
45860 #ifdef __cplusplus
45861 extern "C"
45862 #endif
45863 char sched_get_priority_max ();
45864 /* The GNU C library defines this for functions which it implements
45865     to always fail with ENOSYS.  Some functions are actually named
45866     something starting with __ and the normal name is an alias.  */
45867 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
45868 choke me
45869 #endif
45870
45871 int
45872 main ()
45873 {
45874 return sched_get_priority_max ();
45875   ;
45876   return 0;
45877 }
45878 _ACEOF
45879 rm -f conftest.$ac_objext conftest$ac_exeext
45880 if { (ac_try="$ac_link"
45881 case "(($ac_try" in
45882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45883   *) ac_try_echo=$ac_try;;
45884 esac
45885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45886   (eval "$ac_link") 2>conftest.er1
45887   ac_status=$?
45888   grep -v '^ *+' conftest.er1 >conftest.err
45889   rm -f conftest.er1
45890   cat conftest.err >&5
45891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45892   (exit $ac_status); } &&
45893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45894   { (case "(($ac_try" in
45895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45896   *) ac_try_echo=$ac_try;;
45897 esac
45898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45899   (eval "$ac_try") 2>&5
45900   ac_status=$?
45901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45902   (exit $ac_status); }; } &&
45903          { ac_try='test -s conftest$ac_exeext'
45904   { (case "(($ac_try" in
45905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45906   *) ac_try_echo=$ac_try;;
45907 esac
45908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45909   (eval "$ac_try") 2>&5
45910   ac_status=$?
45911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45912   (exit $ac_status); }; }; then
45913   ac_cv_func_sched_get_priority_max=yes
45914 else
45915   echo "$as_me: failed program was:" >&5
45916 sed 's/^/| /' conftest.$ac_ext >&5
45917
45918         ac_cv_func_sched_get_priority_max=no
45919 fi
45920
45921 rm -f core conftest.err conftest.$ac_objext \
45922       conftest$ac_exeext conftest.$ac_ext
45923 fi
45924 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
45925 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
45926 if test $ac_cv_func_sched_get_priority_max = yes; then
45927   HAVE_PRIOR_FUNCS=1
45928 else
45929   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
45930 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
45931 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
45932   echo $ECHO_N "(cached) $ECHO_C" >&6
45933 else
45934   ac_check_lib_save_LIBS=$LIBS
45935 LIBS="-lposix4  $LIBS"
45936 cat >conftest.$ac_ext <<_ACEOF
45937 /* confdefs.h.  */
45938 _ACEOF
45939 cat confdefs.h >>conftest.$ac_ext
45940 cat >>conftest.$ac_ext <<_ACEOF
45941 /* end confdefs.h.  */
45942
45943 /* Override any GCC internal prototype to avoid an error.
45944    Use char because int might match the return type of a GCC
45945    builtin and then its argument prototype would still apply.  */
45946 #ifdef __cplusplus
45947 extern "C"
45948 #endif
45949 char sched_get_priority_max ();
45950 int
45951 main ()
45952 {
45953 return sched_get_priority_max ();
45954   ;
45955   return 0;
45956 }
45957 _ACEOF
45958 rm -f conftest.$ac_objext conftest$ac_exeext
45959 if { (ac_try="$ac_link"
45960 case "(($ac_try" in
45961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45962   *) ac_try_echo=$ac_try;;
45963 esac
45964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45965   (eval "$ac_link") 2>conftest.er1
45966   ac_status=$?
45967   grep -v '^ *+' conftest.er1 >conftest.err
45968   rm -f conftest.er1
45969   cat conftest.err >&5
45970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45971   (exit $ac_status); } &&
45972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45973   { (case "(($ac_try" in
45974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45975   *) ac_try_echo=$ac_try;;
45976 esac
45977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45978   (eval "$ac_try") 2>&5
45979   ac_status=$?
45980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45981   (exit $ac_status); }; } &&
45982          { ac_try='test -s conftest$ac_exeext'
45983   { (case "(($ac_try" in
45984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45985   *) ac_try_echo=$ac_try;;
45986 esac
45987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45988   (eval "$ac_try") 2>&5
45989   ac_status=$?
45990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45991   (exit $ac_status); }; }; then
45992   ac_cv_lib_posix4_sched_get_priority_max=yes
45993 else
45994   echo "$as_me: failed program was:" >&5
45995 sed 's/^/| /' conftest.$ac_ext >&5
45996
45997         ac_cv_lib_posix4_sched_get_priority_max=no
45998 fi
45999
46000 rm -f core conftest.err conftest.$ac_objext \
46001       conftest$ac_exeext conftest.$ac_ext
46002 LIBS=$ac_check_lib_save_LIBS
46003 fi
46004 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
46005 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
46006 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
46007
46008                                 HAVE_PRIOR_FUNCS=1
46009                                 POSIX4_LINK=" -lposix4"
46010
46011 fi
46012
46013
46014 fi
46015
46016
46017 fi
46018
46019
46020 fi
46021
46022
46023       if test "$HAVE_PRIOR_FUNCS" = 1; then
46024         cat >>confdefs.h <<\_ACEOF
46025 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
46026 _ACEOF
46027
46028       else
46029         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
46030 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
46031       fi
46032
46033       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
46034 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
46035 if test "${ac_cv_func_pthread_cancel+set}" = set; then
46036   echo $ECHO_N "(cached) $ECHO_C" >&6
46037 else
46038   cat >conftest.$ac_ext <<_ACEOF
46039 /* confdefs.h.  */
46040 _ACEOF
46041 cat confdefs.h >>conftest.$ac_ext
46042 cat >>conftest.$ac_ext <<_ACEOF
46043 /* end confdefs.h.  */
46044 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
46045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46046 #define pthread_cancel innocuous_pthread_cancel
46047
46048 /* System header to define __stub macros and hopefully few prototypes,
46049     which can conflict with char pthread_cancel (); below.
46050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46051     <limits.h> exists even on freestanding compilers.  */
46052
46053 #ifdef __STDC__
46054 # include <limits.h>
46055 #else
46056 # include <assert.h>
46057 #endif
46058
46059 #undef pthread_cancel
46060
46061 /* Override any GCC internal prototype to avoid an error.
46062    Use char because int might match the return type of a GCC
46063    builtin and then its argument prototype would still apply.  */
46064 #ifdef __cplusplus
46065 extern "C"
46066 #endif
46067 char pthread_cancel ();
46068 /* The GNU C library defines this for functions which it implements
46069     to always fail with ENOSYS.  Some functions are actually named
46070     something starting with __ and the normal name is an alias.  */
46071 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
46072 choke me
46073 #endif
46074
46075 int
46076 main ()
46077 {
46078 return pthread_cancel ();
46079   ;
46080   return 0;
46081 }
46082 _ACEOF
46083 rm -f conftest.$ac_objext conftest$ac_exeext
46084 if { (ac_try="$ac_link"
46085 case "(($ac_try" in
46086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46087   *) ac_try_echo=$ac_try;;
46088 esac
46089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46090   (eval "$ac_link") 2>conftest.er1
46091   ac_status=$?
46092   grep -v '^ *+' conftest.er1 >conftest.err
46093   rm -f conftest.er1
46094   cat conftest.err >&5
46095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46096   (exit $ac_status); } &&
46097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46098   { (case "(($ac_try" in
46099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46100   *) ac_try_echo=$ac_try;;
46101 esac
46102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46103   (eval "$ac_try") 2>&5
46104   ac_status=$?
46105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46106   (exit $ac_status); }; } &&
46107          { ac_try='test -s conftest$ac_exeext'
46108   { (case "(($ac_try" in
46109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46110   *) ac_try_echo=$ac_try;;
46111 esac
46112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46113   (eval "$ac_try") 2>&5
46114   ac_status=$?
46115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46116   (exit $ac_status); }; }; then
46117   ac_cv_func_pthread_cancel=yes
46118 else
46119   echo "$as_me: failed program was:" >&5
46120 sed 's/^/| /' conftest.$ac_ext >&5
46121
46122         ac_cv_func_pthread_cancel=no
46123 fi
46124
46125 rm -f core conftest.err conftest.$ac_objext \
46126       conftest$ac_exeext conftest.$ac_ext
46127 fi
46128 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
46129 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
46130 if test $ac_cv_func_pthread_cancel = yes; then
46131   cat >>confdefs.h <<\_ACEOF
46132 #define HAVE_PTHREAD_CANCEL 1
46133 _ACEOF
46134
46135 else
46136   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
46137 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
46138 fi
46139
46140
46141       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
46142 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
46143 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
46144   echo $ECHO_N "(cached) $ECHO_C" >&6
46145 else
46146   cat >conftest.$ac_ext <<_ACEOF
46147 /* confdefs.h.  */
46148 _ACEOF
46149 cat confdefs.h >>conftest.$ac_ext
46150 cat >>conftest.$ac_ext <<_ACEOF
46151 /* end confdefs.h.  */
46152 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
46153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46154 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
46155
46156 /* System header to define __stub macros and hopefully few prototypes,
46157     which can conflict with char pthread_attr_setstacksize (); below.
46158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46159     <limits.h> exists even on freestanding compilers.  */
46160
46161 #ifdef __STDC__
46162 # include <limits.h>
46163 #else
46164 # include <assert.h>
46165 #endif
46166
46167 #undef pthread_attr_setstacksize
46168
46169 /* Override any GCC internal prototype to avoid an error.
46170    Use char because int might match the return type of a GCC
46171    builtin and then its argument prototype would still apply.  */
46172 #ifdef __cplusplus
46173 extern "C"
46174 #endif
46175 char pthread_attr_setstacksize ();
46176 /* The GNU C library defines this for functions which it implements
46177     to always fail with ENOSYS.  Some functions are actually named
46178     something starting with __ and the normal name is an alias.  */
46179 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
46180 choke me
46181 #endif
46182
46183 int
46184 main ()
46185 {
46186 return pthread_attr_setstacksize ();
46187   ;
46188   return 0;
46189 }
46190 _ACEOF
46191 rm -f conftest.$ac_objext conftest$ac_exeext
46192 if { (ac_try="$ac_link"
46193 case "(($ac_try" in
46194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46195   *) ac_try_echo=$ac_try;;
46196 esac
46197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46198   (eval "$ac_link") 2>conftest.er1
46199   ac_status=$?
46200   grep -v '^ *+' conftest.er1 >conftest.err
46201   rm -f conftest.er1
46202   cat conftest.err >&5
46203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46204   (exit $ac_status); } &&
46205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46206   { (case "(($ac_try" in
46207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46208   *) ac_try_echo=$ac_try;;
46209 esac
46210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46211   (eval "$ac_try") 2>&5
46212   ac_status=$?
46213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46214   (exit $ac_status); }; } &&
46215          { ac_try='test -s conftest$ac_exeext'
46216   { (case "(($ac_try" in
46217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46218   *) ac_try_echo=$ac_try;;
46219 esac
46220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46221   (eval "$ac_try") 2>&5
46222   ac_status=$?
46223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46224   (exit $ac_status); }; }; then
46225   ac_cv_func_pthread_attr_setstacksize=yes
46226 else
46227   echo "$as_me: failed program was:" >&5
46228 sed 's/^/| /' conftest.$ac_ext >&5
46229
46230         ac_cv_func_pthread_attr_setstacksize=no
46231 fi
46232
46233 rm -f core conftest.err conftest.$ac_objext \
46234       conftest$ac_exeext conftest.$ac_ext
46235 fi
46236 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
46237 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
46238 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
46239   cat >>confdefs.h <<\_ACEOF
46240 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
46241 _ACEOF
46242
46243 fi
46244
46245
46246
46247       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
46248 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
46249 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
46250   echo $ECHO_N "(cached) $ECHO_C" >&6
46251 else
46252
46253         cat >conftest.$ac_ext <<_ACEOF
46254 /* confdefs.h.  */
46255 _ACEOF
46256 cat confdefs.h >>conftest.$ac_ext
46257 cat >>conftest.$ac_ext <<_ACEOF
46258 /* end confdefs.h.  */
46259 #include <pthread.h>
46260 int
46261 main ()
46262 {
46263
46264                pthread_mutexattr_t attr;
46265                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
46266
46267   ;
46268   return 0;
46269 }
46270 _ACEOF
46271 rm -f conftest.$ac_objext
46272 if { (ac_try="$ac_compile"
46273 case "(($ac_try" in
46274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46275   *) ac_try_echo=$ac_try;;
46276 esac
46277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46278   (eval "$ac_compile") 2>conftest.er1
46279   ac_status=$?
46280   grep -v '^ *+' conftest.er1 >conftest.err
46281   rm -f conftest.er1
46282   cat conftest.err >&5
46283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46284   (exit $ac_status); } &&
46285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46286   { (case "(($ac_try" in
46287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46288   *) ac_try_echo=$ac_try;;
46289 esac
46290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46291   (eval "$ac_try") 2>&5
46292   ac_status=$?
46293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46294   (exit $ac_status); }; } &&
46295          { ac_try='test -s conftest.$ac_objext'
46296   { (case "(($ac_try" in
46297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46298   *) ac_try_echo=$ac_try;;
46299 esac
46300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46301   (eval "$ac_try") 2>&5
46302   ac_status=$?
46303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46304   (exit $ac_status); }; }; then
46305   wx_cv_type_pthread_mutexattr_t=yes
46306 else
46307   echo "$as_me: failed program was:" >&5
46308 sed 's/^/| /' conftest.$ac_ext >&5
46309
46310         wx_cv_type_pthread_mutexattr_t=no
46311
46312 fi
46313
46314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46315
46316 fi
46317 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
46318 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
46319
46320       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
46321         cat >>confdefs.h <<\_ACEOF
46322 #define HAVE_PTHREAD_MUTEXATTR_T 1
46323 _ACEOF
46324
46325
46326                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
46327 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
46328 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
46329   echo $ECHO_N "(cached) $ECHO_C" >&6
46330 else
46331
46332                        cat >conftest.$ac_ext <<_ACEOF
46333 /* confdefs.h.  */
46334 _ACEOF
46335 cat confdefs.h >>conftest.$ac_ext
46336 cat >>conftest.$ac_ext <<_ACEOF
46337 /* end confdefs.h.  */
46338 #include <pthread.h>
46339 int
46340 main ()
46341 {
46342
46343                                pthread_mutexattr_t attr;
46344                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
46345
46346   ;
46347   return 0;
46348 }
46349 _ACEOF
46350 rm -f conftest.$ac_objext
46351 if { (ac_try="$ac_compile"
46352 case "(($ac_try" in
46353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46354   *) ac_try_echo=$ac_try;;
46355 esac
46356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46357   (eval "$ac_compile") 2>conftest.er1
46358   ac_status=$?
46359   grep -v '^ *+' conftest.er1 >conftest.err
46360   rm -f conftest.er1
46361   cat conftest.err >&5
46362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46363   (exit $ac_status); } &&
46364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46365   { (case "(($ac_try" in
46366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46367   *) ac_try_echo=$ac_try;;
46368 esac
46369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46370   (eval "$ac_try") 2>&5
46371   ac_status=$?
46372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46373   (exit $ac_status); }; } &&
46374          { ac_try='test -s conftest.$ac_objext'
46375   { (case "(($ac_try" in
46376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46377   *) ac_try_echo=$ac_try;;
46378 esac
46379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46380   (eval "$ac_try") 2>&5
46381   ac_status=$?
46382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46383   (exit $ac_status); }; }; then
46384   wx_cv_func_pthread_mutexattr_settype_decl=yes
46385 else
46386   echo "$as_me: failed program was:" >&5
46387 sed 's/^/| /' conftest.$ac_ext >&5
46388
46389         wx_cv_func_pthread_mutexattr_settype_decl=no
46390
46391 fi
46392
46393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46394
46395 fi
46396 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
46397 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
46398         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
46399             cat >>confdefs.h <<\_ACEOF
46400 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
46401 _ACEOF
46402
46403         fi
46404       else
46405                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
46406 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
46407 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
46408   echo $ECHO_N "(cached) $ECHO_C" >&6
46409 else
46410
46411             cat >conftest.$ac_ext <<_ACEOF
46412 /* confdefs.h.  */
46413 _ACEOF
46414 cat confdefs.h >>conftest.$ac_ext
46415 cat >>conftest.$ac_ext <<_ACEOF
46416 /* end confdefs.h.  */
46417 #include <pthread.h>
46418 int
46419 main ()
46420 {
46421
46422                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
46423
46424   ;
46425   return 0;
46426 }
46427 _ACEOF
46428 rm -f conftest.$ac_objext
46429 if { (ac_try="$ac_compile"
46430 case "(($ac_try" in
46431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46432   *) ac_try_echo=$ac_try;;
46433 esac
46434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46435   (eval "$ac_compile") 2>conftest.er1
46436   ac_status=$?
46437   grep -v '^ *+' conftest.er1 >conftest.err
46438   rm -f conftest.er1
46439   cat conftest.err >&5
46440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46441   (exit $ac_status); } &&
46442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46443   { (case "(($ac_try" in
46444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46445   *) ac_try_echo=$ac_try;;
46446 esac
46447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46448   (eval "$ac_try") 2>&5
46449   ac_status=$?
46450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46451   (exit $ac_status); }; } &&
46452          { ac_try='test -s conftest.$ac_objext'
46453   { (case "(($ac_try" in
46454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46455   *) ac_try_echo=$ac_try;;
46456 esac
46457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46458   (eval "$ac_try") 2>&5
46459   ac_status=$?
46460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46461   (exit $ac_status); }; }; then
46462
46463                     wx_cv_type_pthread_rec_mutex_init=yes
46464
46465 else
46466   echo "$as_me: failed program was:" >&5
46467 sed 's/^/| /' conftest.$ac_ext >&5
46468
46469
46470                     wx_cv_type_pthread_rec_mutex_init=no
46471
46472
46473 fi
46474
46475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46476
46477 fi
46478 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
46479 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
46480         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
46481           cat >>confdefs.h <<\_ACEOF
46482 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
46483 _ACEOF
46484
46485         else
46486                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
46487 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
46488         fi
46489       fi
46490     fi
46491
46492 else
46493     if test "$wxUSE_THREADS" = "yes" ; then
46494       case "${host}" in
46495         *-*-mingw32* )
46496                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
46497 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
46498 if test "${wx_cv_cflags_mthread+set}" = set; then
46499   echo $ECHO_N "(cached) $ECHO_C" >&6
46500 else
46501
46502                     CFLAGS_OLD="$CFLAGS"
46503                     CFLAGS="-mthreads $CFLAGS"
46504                     cat >conftest.$ac_ext <<_ACEOF
46505 /* confdefs.h.  */
46506 _ACEOF
46507 cat confdefs.h >>conftest.$ac_ext
46508 cat >>conftest.$ac_ext <<_ACEOF
46509 /* end confdefs.h.  */
46510
46511 int
46512 main ()
46513 {
46514
46515   ;
46516   return 0;
46517 }
46518 _ACEOF
46519 rm -f conftest.$ac_objext
46520 if { (ac_try="$ac_compile"
46521 case "(($ac_try" in
46522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46523   *) ac_try_echo=$ac_try;;
46524 esac
46525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46526   (eval "$ac_compile") 2>conftest.er1
46527   ac_status=$?
46528   grep -v '^ *+' conftest.er1 >conftest.err
46529   rm -f conftest.er1
46530   cat conftest.err >&5
46531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46532   (exit $ac_status); } &&
46533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46534   { (case "(($ac_try" in
46535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46536   *) ac_try_echo=$ac_try;;
46537 esac
46538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46539   (eval "$ac_try") 2>&5
46540   ac_status=$?
46541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46542   (exit $ac_status); }; } &&
46543          { ac_try='test -s conftest.$ac_objext'
46544   { (case "(($ac_try" in
46545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46546   *) ac_try_echo=$ac_try;;
46547 esac
46548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46549   (eval "$ac_try") 2>&5
46550   ac_status=$?
46551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46552   (exit $ac_status); }; }; then
46553   wx_cv_cflags_mthread=yes
46554 else
46555   echo "$as_me: failed program was:" >&5
46556 sed 's/^/| /' conftest.$ac_ext >&5
46557
46558         wx_cv_cflags_mthread=no
46559
46560 fi
46561
46562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46563
46564
46565 fi
46566 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
46567 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
46568
46569             if test "$wx_cv_cflags_mthread" = "yes"; then
46570                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
46571                 LDFLAGS="$LDFLAGS -mthreads"
46572             else
46573                                 CFLAGS="$CFLAGS_OLD"
46574             fi
46575         ;;
46576         *-pc-os2*emx )
46577             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
46578             LDFLAGS="$LDFLAGS -Zmt"
46579         ;;
46580       esac
46581     fi
46582 fi
46583
46584 { echo "$as_me:$LINENO: checking for localtime_r" >&5
46585 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
46586 if test "${ac_cv_func_localtime_r+set}" = set; then
46587   echo $ECHO_N "(cached) $ECHO_C" >&6
46588 else
46589   cat >conftest.$ac_ext <<_ACEOF
46590 /* confdefs.h.  */
46591 _ACEOF
46592 cat confdefs.h >>conftest.$ac_ext
46593 cat >>conftest.$ac_ext <<_ACEOF
46594 /* end confdefs.h.  */
46595 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
46596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46597 #define localtime_r innocuous_localtime_r
46598
46599 /* System header to define __stub macros and hopefully few prototypes,
46600     which can conflict with char localtime_r (); below.
46601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46602     <limits.h> exists even on freestanding compilers.  */
46603
46604 #ifdef __STDC__
46605 # include <limits.h>
46606 #else
46607 # include <assert.h>
46608 #endif
46609
46610 #undef localtime_r
46611
46612 /* Override any GCC internal prototype to avoid an error.
46613    Use char because int might match the return type of a GCC
46614    builtin and then its argument prototype would still apply.  */
46615 #ifdef __cplusplus
46616 extern "C"
46617 #endif
46618 char localtime_r ();
46619 /* The GNU C library defines this for functions which it implements
46620     to always fail with ENOSYS.  Some functions are actually named
46621     something starting with __ and the normal name is an alias.  */
46622 #if defined __stub_localtime_r || defined __stub___localtime_r
46623 choke me
46624 #endif
46625
46626 int
46627 main ()
46628 {
46629 return localtime_r ();
46630   ;
46631   return 0;
46632 }
46633 _ACEOF
46634 rm -f conftest.$ac_objext conftest$ac_exeext
46635 if { (ac_try="$ac_link"
46636 case "(($ac_try" in
46637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46638   *) ac_try_echo=$ac_try;;
46639 esac
46640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46641   (eval "$ac_link") 2>conftest.er1
46642   ac_status=$?
46643   grep -v '^ *+' conftest.er1 >conftest.err
46644   rm -f conftest.er1
46645   cat conftest.err >&5
46646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46647   (exit $ac_status); } &&
46648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46649   { (case "(($ac_try" in
46650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46651   *) ac_try_echo=$ac_try;;
46652 esac
46653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46654   (eval "$ac_try") 2>&5
46655   ac_status=$?
46656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46657   (exit $ac_status); }; } &&
46658          { ac_try='test -s conftest$ac_exeext'
46659   { (case "(($ac_try" in
46660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46661   *) ac_try_echo=$ac_try;;
46662 esac
46663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46664   (eval "$ac_try") 2>&5
46665   ac_status=$?
46666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46667   (exit $ac_status); }; }; then
46668   ac_cv_func_localtime_r=yes
46669 else
46670   echo "$as_me: failed program was:" >&5
46671 sed 's/^/| /' conftest.$ac_ext >&5
46672
46673         ac_cv_func_localtime_r=no
46674 fi
46675
46676 rm -f core conftest.err conftest.$ac_objext \
46677       conftest$ac_exeext conftest.$ac_ext
46678 fi
46679 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
46680 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
46681 if test $ac_cv_func_localtime_r = yes; then
46682    cat >>confdefs.h <<\_ACEOF
46683 #define HAVE_LOCALTIME_R 1
46684 _ACEOF
46685
46686 fi
46687
46688 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
46689 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
46690 if test "${ac_cv_func_gmtime_r+set}" = set; then
46691   echo $ECHO_N "(cached) $ECHO_C" >&6
46692 else
46693   cat >conftest.$ac_ext <<_ACEOF
46694 /* confdefs.h.  */
46695 _ACEOF
46696 cat confdefs.h >>conftest.$ac_ext
46697 cat >>conftest.$ac_ext <<_ACEOF
46698 /* end confdefs.h.  */
46699 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
46700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46701 #define gmtime_r innocuous_gmtime_r
46702
46703 /* System header to define __stub macros and hopefully few prototypes,
46704     which can conflict with char gmtime_r (); below.
46705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46706     <limits.h> exists even on freestanding compilers.  */
46707
46708 #ifdef __STDC__
46709 # include <limits.h>
46710 #else
46711 # include <assert.h>
46712 #endif
46713
46714 #undef gmtime_r
46715
46716 /* Override any GCC internal prototype to avoid an error.
46717    Use char because int might match the return type of a GCC
46718    builtin and then its argument prototype would still apply.  */
46719 #ifdef __cplusplus
46720 extern "C"
46721 #endif
46722 char gmtime_r ();
46723 /* The GNU C library defines this for functions which it implements
46724     to always fail with ENOSYS.  Some functions are actually named
46725     something starting with __ and the normal name is an alias.  */
46726 #if defined __stub_gmtime_r || defined __stub___gmtime_r
46727 choke me
46728 #endif
46729
46730 int
46731 main ()
46732 {
46733 return gmtime_r ();
46734   ;
46735   return 0;
46736 }
46737 _ACEOF
46738 rm -f conftest.$ac_objext conftest$ac_exeext
46739 if { (ac_try="$ac_link"
46740 case "(($ac_try" in
46741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46742   *) ac_try_echo=$ac_try;;
46743 esac
46744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46745   (eval "$ac_link") 2>conftest.er1
46746   ac_status=$?
46747   grep -v '^ *+' conftest.er1 >conftest.err
46748   rm -f conftest.er1
46749   cat conftest.err >&5
46750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46751   (exit $ac_status); } &&
46752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46753   { (case "(($ac_try" in
46754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46755   *) ac_try_echo=$ac_try;;
46756 esac
46757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46758   (eval "$ac_try") 2>&5
46759   ac_status=$?
46760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46761   (exit $ac_status); }; } &&
46762          { ac_try='test -s conftest$ac_exeext'
46763   { (case "(($ac_try" in
46764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46765   *) ac_try_echo=$ac_try;;
46766 esac
46767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46768   (eval "$ac_try") 2>&5
46769   ac_status=$?
46770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46771   (exit $ac_status); }; }; then
46772   ac_cv_func_gmtime_r=yes
46773 else
46774   echo "$as_me: failed program was:" >&5
46775 sed 's/^/| /' conftest.$ac_ext >&5
46776
46777         ac_cv_func_gmtime_r=no
46778 fi
46779
46780 rm -f core conftest.err conftest.$ac_objext \
46781       conftest$ac_exeext conftest.$ac_ext
46782 fi
46783 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
46784 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
46785 if test $ac_cv_func_gmtime_r = yes; then
46786    cat >>confdefs.h <<\_ACEOF
46787 #define HAVE_GMTIME_R 1
46788 _ACEOF
46789
46790 fi
46791
46792 { echo "$as_me:$LINENO: checking for readdir_r" >&5
46793 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
46794 if test "${ac_cv_func_readdir_r+set}" = set; then
46795   echo $ECHO_N "(cached) $ECHO_C" >&6
46796 else
46797   cat >conftest.$ac_ext <<_ACEOF
46798 /* confdefs.h.  */
46799 _ACEOF
46800 cat confdefs.h >>conftest.$ac_ext
46801 cat >>conftest.$ac_ext <<_ACEOF
46802 /* end confdefs.h.  */
46803 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
46804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46805 #define readdir_r innocuous_readdir_r
46806
46807 /* System header to define __stub macros and hopefully few prototypes,
46808     which can conflict with char readdir_r (); below.
46809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46810     <limits.h> exists even on freestanding compilers.  */
46811
46812 #ifdef __STDC__
46813 # include <limits.h>
46814 #else
46815 # include <assert.h>
46816 #endif
46817
46818 #undef readdir_r
46819
46820 /* Override any GCC internal prototype to avoid an error.
46821    Use char because int might match the return type of a GCC
46822    builtin and then its argument prototype would still apply.  */
46823 #ifdef __cplusplus
46824 extern "C"
46825 #endif
46826 char readdir_r ();
46827 /* The GNU C library defines this for functions which it implements
46828     to always fail with ENOSYS.  Some functions are actually named
46829     something starting with __ and the normal name is an alias.  */
46830 #if defined __stub_readdir_r || defined __stub___readdir_r
46831 choke me
46832 #endif
46833
46834 int
46835 main ()
46836 {
46837 return readdir_r ();
46838   ;
46839   return 0;
46840 }
46841 _ACEOF
46842 rm -f conftest.$ac_objext conftest$ac_exeext
46843 if { (ac_try="$ac_link"
46844 case "(($ac_try" in
46845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46846   *) ac_try_echo=$ac_try;;
46847 esac
46848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46849   (eval "$ac_link") 2>conftest.er1
46850   ac_status=$?
46851   grep -v '^ *+' conftest.er1 >conftest.err
46852   rm -f conftest.er1
46853   cat conftest.err >&5
46854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46855   (exit $ac_status); } &&
46856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46857   { (case "(($ac_try" in
46858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46859   *) ac_try_echo=$ac_try;;
46860 esac
46861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46862   (eval "$ac_try") 2>&5
46863   ac_status=$?
46864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46865   (exit $ac_status); }; } &&
46866          { ac_try='test -s conftest$ac_exeext'
46867   { (case "(($ac_try" in
46868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46869   *) ac_try_echo=$ac_try;;
46870 esac
46871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46872   (eval "$ac_try") 2>&5
46873   ac_status=$?
46874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46875   (exit $ac_status); }; }; then
46876   ac_cv_func_readdir_r=yes
46877 else
46878   echo "$as_me: failed program was:" >&5
46879 sed 's/^/| /' conftest.$ac_ext >&5
46880
46881         ac_cv_func_readdir_r=no
46882 fi
46883
46884 rm -f core conftest.err conftest.$ac_objext \
46885       conftest$ac_exeext conftest.$ac_ext
46886 fi
46887 { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
46888 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
46889 if test $ac_cv_func_readdir_r = yes; then
46890    cat >>confdefs.h <<\_ACEOF
46891 #define HAVE_READDIR_R 1
46892 _ACEOF
46893
46894 fi
46895
46896
46897
46898
46899     ac_ext=c
46900 ac_cpp='$CPP $CPPFLAGS'
46901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46904
46905     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
46906 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
46907
46908     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
46909   echo $ECHO_N "(cached) $ECHO_C" >&6
46910 else
46911
46912
46913 ################################################################
46914
46915 ac_cv_func_which_gethostbyname_r=unknown
46916
46917 #
46918 # ONE ARGUMENT (sanity check)
46919 #
46920
46921 # This should fail, as there is no variant of gethostbyname_r() that takes
46922 # a single argument. If it actually compiles, then we can assume that
46923 # netdb.h is not declaring the function, and the compiler is thereby
46924 # assuming an implicit prototype. In which case, we're out of luck.
46925 #
46926 cat >conftest.$ac_ext <<_ACEOF
46927 /* confdefs.h.  */
46928 _ACEOF
46929 cat confdefs.h >>conftest.$ac_ext
46930 cat >>conftest.$ac_ext <<_ACEOF
46931 /* end confdefs.h.  */
46932 #include <netdb.h>
46933 int
46934 main ()
46935 {
46936
46937             char *name = "www.gnu.org";
46938             (void)gethostbyname_r(name) /* ; */
46939
46940   ;
46941   return 0;
46942 }
46943 _ACEOF
46944 rm -f conftest.$ac_objext
46945 if { (ac_try="$ac_compile"
46946 case "(($ac_try" in
46947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46948   *) ac_try_echo=$ac_try;;
46949 esac
46950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46951   (eval "$ac_compile") 2>conftest.er1
46952   ac_status=$?
46953   grep -v '^ *+' conftest.er1 >conftest.err
46954   rm -f conftest.er1
46955   cat conftest.err >&5
46956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46957   (exit $ac_status); } &&
46958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46959   { (case "(($ac_try" in
46960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46961   *) ac_try_echo=$ac_try;;
46962 esac
46963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46964   (eval "$ac_try") 2>&5
46965   ac_status=$?
46966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46967   (exit $ac_status); }; } &&
46968          { ac_try='test -s conftest.$ac_objext'
46969   { (case "(($ac_try" in
46970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46971   *) ac_try_echo=$ac_try;;
46972 esac
46973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46974   (eval "$ac_try") 2>&5
46975   ac_status=$?
46976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46977   (exit $ac_status); }; }; then
46978   ac_cv_func_which_gethostbyname_r=no
46979 else
46980   echo "$as_me: failed program was:" >&5
46981 sed 's/^/| /' conftest.$ac_ext >&5
46982
46983
46984 fi
46985
46986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46987
46988 #
46989 # SIX ARGUMENTS
46990 # (e.g. Linux)
46991 #
46992
46993 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
46994
46995 cat >conftest.$ac_ext <<_ACEOF
46996 /* confdefs.h.  */
46997 _ACEOF
46998 cat confdefs.h >>conftest.$ac_ext
46999 cat >>conftest.$ac_ext <<_ACEOF
47000 /* end confdefs.h.  */
47001 #include <netdb.h>
47002 int
47003 main ()
47004 {
47005
47006             char *name = "www.gnu.org";
47007             struct hostent ret, *retp;
47008             char buf[1024];
47009             int buflen = 1024;
47010             int my_h_errno;
47011             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
47012
47013   ;
47014   return 0;
47015 }
47016 _ACEOF
47017 rm -f conftest.$ac_objext
47018 if { (ac_try="$ac_compile"
47019 case "(($ac_try" in
47020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47021   *) ac_try_echo=$ac_try;;
47022 esac
47023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47024   (eval "$ac_compile") 2>conftest.er1
47025   ac_status=$?
47026   grep -v '^ *+' conftest.er1 >conftest.err
47027   rm -f conftest.er1
47028   cat conftest.err >&5
47029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47030   (exit $ac_status); } &&
47031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47032   { (case "(($ac_try" in
47033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47034   *) ac_try_echo=$ac_try;;
47035 esac
47036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47037   (eval "$ac_try") 2>&5
47038   ac_status=$?
47039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47040   (exit $ac_status); }; } &&
47041          { ac_try='test -s conftest.$ac_objext'
47042   { (case "(($ac_try" in
47043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47044   *) ac_try_echo=$ac_try;;
47045 esac
47046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47047   (eval "$ac_try") 2>&5
47048   ac_status=$?
47049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47050   (exit $ac_status); }; }; then
47051   ac_cv_func_which_gethostbyname_r=six
47052 else
47053   echo "$as_me: failed program was:" >&5
47054 sed 's/^/| /' conftest.$ac_ext >&5
47055
47056
47057 fi
47058
47059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47060
47061 fi
47062
47063 #
47064 # FIVE ARGUMENTS
47065 # (e.g. Solaris)
47066 #
47067
47068 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
47069
47070 cat >conftest.$ac_ext <<_ACEOF
47071 /* confdefs.h.  */
47072 _ACEOF
47073 cat confdefs.h >>conftest.$ac_ext
47074 cat >>conftest.$ac_ext <<_ACEOF
47075 /* end confdefs.h.  */
47076 #include <netdb.h>
47077 int
47078 main ()
47079 {
47080
47081             char *name = "www.gnu.org";
47082             struct hostent ret;
47083             char buf[1024];
47084             int buflen = 1024;
47085             int my_h_errno;
47086             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
47087
47088   ;
47089   return 0;
47090 }
47091 _ACEOF
47092 rm -f conftest.$ac_objext
47093 if { (ac_try="$ac_compile"
47094 case "(($ac_try" in
47095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47096   *) ac_try_echo=$ac_try;;
47097 esac
47098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47099   (eval "$ac_compile") 2>conftest.er1
47100   ac_status=$?
47101   grep -v '^ *+' conftest.er1 >conftest.err
47102   rm -f conftest.er1
47103   cat conftest.err >&5
47104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47105   (exit $ac_status); } &&
47106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47107   { (case "(($ac_try" in
47108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47109   *) ac_try_echo=$ac_try;;
47110 esac
47111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47112   (eval "$ac_try") 2>&5
47113   ac_status=$?
47114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47115   (exit $ac_status); }; } &&
47116          { ac_try='test -s conftest.$ac_objext'
47117   { (case "(($ac_try" in
47118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47119   *) ac_try_echo=$ac_try;;
47120 esac
47121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47122   (eval "$ac_try") 2>&5
47123   ac_status=$?
47124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47125   (exit $ac_status); }; }; then
47126   ac_cv_func_which_gethostbyname_r=five
47127 else
47128   echo "$as_me: failed program was:" >&5
47129 sed 's/^/| /' conftest.$ac_ext >&5
47130
47131
47132 fi
47133
47134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47135
47136 fi
47137
47138 #
47139 # THREE ARGUMENTS
47140 # (e.g. AIX, HP-UX, Tru64)
47141 #
47142
47143 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
47144
47145 cat >conftest.$ac_ext <<_ACEOF
47146 /* confdefs.h.  */
47147 _ACEOF
47148 cat confdefs.h >>conftest.$ac_ext
47149 cat >>conftest.$ac_ext <<_ACEOF
47150 /* end confdefs.h.  */
47151 #include <netdb.h>
47152 int
47153 main ()
47154 {
47155
47156             char *name = "www.gnu.org";
47157             struct hostent ret;
47158             struct hostent_data data;
47159             (void)gethostbyname_r(name, &ret, &data) /* ; */
47160
47161   ;
47162   return 0;
47163 }
47164 _ACEOF
47165 rm -f conftest.$ac_objext
47166 if { (ac_try="$ac_compile"
47167 case "(($ac_try" in
47168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47169   *) ac_try_echo=$ac_try;;
47170 esac
47171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47172   (eval "$ac_compile") 2>conftest.er1
47173   ac_status=$?
47174   grep -v '^ *+' conftest.er1 >conftest.err
47175   rm -f conftest.er1
47176   cat conftest.err >&5
47177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47178   (exit $ac_status); } &&
47179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47180   { (case "(($ac_try" in
47181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47182   *) ac_try_echo=$ac_try;;
47183 esac
47184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47185   (eval "$ac_try") 2>&5
47186   ac_status=$?
47187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47188   (exit $ac_status); }; } &&
47189          { ac_try='test -s conftest.$ac_objext'
47190   { (case "(($ac_try" in
47191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47192   *) ac_try_echo=$ac_try;;
47193 esac
47194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47195   (eval "$ac_try") 2>&5
47196   ac_status=$?
47197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47198   (exit $ac_status); }; }; then
47199   ac_cv_func_which_gethostbyname_r=three
47200 else
47201   echo "$as_me: failed program was:" >&5
47202 sed 's/^/| /' conftest.$ac_ext >&5
47203
47204
47205 fi
47206
47207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47208
47209 fi
47210
47211 ################################################################
47212
47213
47214 fi
47215
47216 case "$ac_cv_func_which_gethostbyname_r" in
47217     three)
47218     { echo "$as_me:$LINENO: result: three" >&5
47219 echo "${ECHO_T}three" >&6; }
47220     cat >>confdefs.h <<\_ACEOF
47221 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
47222 _ACEOF
47223
47224     ;;
47225
47226     five)
47227     { echo "$as_me:$LINENO: result: five" >&5
47228 echo "${ECHO_T}five" >&6; }
47229     cat >>confdefs.h <<\_ACEOF
47230 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
47231 _ACEOF
47232
47233     ;;
47234
47235     six)
47236     { echo "$as_me:$LINENO: result: six" >&5
47237 echo "${ECHO_T}six" >&6; }
47238     cat >>confdefs.h <<\_ACEOF
47239 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
47240 _ACEOF
47241
47242     ;;
47243
47244     no)
47245     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
47246 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
47247     ;;
47248
47249     unknown)
47250     { echo "$as_me:$LINENO: result: can't tell" >&5
47251 echo "${ECHO_T}can't tell" >&6; }
47252     ;;
47253
47254     *)
47255     { { echo "$as_me:$LINENO: error: internal error" >&5
47256 echo "$as_me: error: internal error" >&2;}
47257    { (exit 1); exit 1; }; }
47258     ;;
47259 esac
47260
47261 ac_ext=c
47262 ac_cpp='$CPP $CPPFLAGS'
47263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47266
47267
47268
47269       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
47270               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
47271           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
47272 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
47273 if test "${ac_cv_func_gethostbyname+set}" = set; then
47274   echo $ECHO_N "(cached) $ECHO_C" >&6
47275 else
47276   cat >conftest.$ac_ext <<_ACEOF
47277 /* confdefs.h.  */
47278 _ACEOF
47279 cat confdefs.h >>conftest.$ac_ext
47280 cat >>conftest.$ac_ext <<_ACEOF
47281 /* end confdefs.h.  */
47282 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
47283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47284 #define gethostbyname innocuous_gethostbyname
47285
47286 /* System header to define __stub macros and hopefully few prototypes,
47287     which can conflict with char gethostbyname (); below.
47288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47289     <limits.h> exists even on freestanding compilers.  */
47290
47291 #ifdef __STDC__
47292 # include <limits.h>
47293 #else
47294 # include <assert.h>
47295 #endif
47296
47297 #undef gethostbyname
47298
47299 /* Override any GCC internal prototype to avoid an error.
47300    Use char because int might match the return type of a GCC
47301    builtin and then its argument prototype would still apply.  */
47302 #ifdef __cplusplus
47303 extern "C"
47304 #endif
47305 char gethostbyname ();
47306 /* The GNU C library defines this for functions which it implements
47307     to always fail with ENOSYS.  Some functions are actually named
47308     something starting with __ and the normal name is an alias.  */
47309 #if defined __stub_gethostbyname || defined __stub___gethostbyname
47310 choke me
47311 #endif
47312
47313 int
47314 main ()
47315 {
47316 return gethostbyname ();
47317   ;
47318   return 0;
47319 }
47320 _ACEOF
47321 rm -f conftest.$ac_objext conftest$ac_exeext
47322 if { (ac_try="$ac_link"
47323 case "(($ac_try" in
47324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47325   *) ac_try_echo=$ac_try;;
47326 esac
47327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47328   (eval "$ac_link") 2>conftest.er1
47329   ac_status=$?
47330   grep -v '^ *+' conftest.er1 >conftest.err
47331   rm -f conftest.er1
47332   cat conftest.err >&5
47333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47334   (exit $ac_status); } &&
47335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47336   { (case "(($ac_try" in
47337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47338   *) ac_try_echo=$ac_try;;
47339 esac
47340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47341   (eval "$ac_try") 2>&5
47342   ac_status=$?
47343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47344   (exit $ac_status); }; } &&
47345          { ac_try='test -s conftest$ac_exeext'
47346   { (case "(($ac_try" in
47347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47348   *) ac_try_echo=$ac_try;;
47349 esac
47350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47351   (eval "$ac_try") 2>&5
47352   ac_status=$?
47353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47354   (exit $ac_status); }; }; then
47355   ac_cv_func_gethostbyname=yes
47356 else
47357   echo "$as_me: failed program was:" >&5
47358 sed 's/^/| /' conftest.$ac_ext >&5
47359
47360         ac_cv_func_gethostbyname=no
47361 fi
47362
47363 rm -f core conftest.err conftest.$ac_objext \
47364       conftest$ac_exeext conftest.$ac_ext
47365 fi
47366 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
47367 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
47368 if test $ac_cv_func_gethostbyname = yes; then
47369    cat >>confdefs.h <<\_ACEOF
47370 #define HAVE_GETHOSTBYNAME 1
47371 _ACEOF
47372
47373 fi
47374
47375       fi
47376
47377 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
47378 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
47379 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
47380   echo $ECHO_N "(cached) $ECHO_C" >&6
47381 else
47382
47383                 ac_ext=cpp
47384 ac_cpp='$CXXCPP $CPPFLAGS'
47385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47388
47389
47390         cat >conftest.$ac_ext <<_ACEOF
47391 /* confdefs.h.  */
47392 _ACEOF
47393 cat confdefs.h >>conftest.$ac_ext
47394 cat >>conftest.$ac_ext <<_ACEOF
47395 /* end confdefs.h.  */
47396 #include <netdb.h>
47397 int
47398 main ()
47399 {
47400
47401                 char *name;
47402                 char *proto;
47403                 struct servent *se, *res;
47404                 char buffer[2048];
47405                 int buflen = 2048;
47406                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
47407
47408   ;
47409   return 0;
47410 }
47411 _ACEOF
47412 rm -f conftest.$ac_objext
47413 if { (ac_try="$ac_compile"
47414 case "(($ac_try" in
47415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47416   *) ac_try_echo=$ac_try;;
47417 esac
47418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47419   (eval "$ac_compile") 2>conftest.er1
47420   ac_status=$?
47421   grep -v '^ *+' conftest.er1 >conftest.err
47422   rm -f conftest.er1
47423   cat conftest.err >&5
47424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47425   (exit $ac_status); } &&
47426          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
47427   { (case "(($ac_try" in
47428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47429   *) ac_try_echo=$ac_try;;
47430 esac
47431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47432   (eval "$ac_try") 2>&5
47433   ac_status=$?
47434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47435   (exit $ac_status); }; } &&
47436          { ac_try='test -s conftest.$ac_objext'
47437   { (case "(($ac_try" in
47438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47439   *) ac_try_echo=$ac_try;;
47440 esac
47441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47442   (eval "$ac_try") 2>&5
47443   ac_status=$?
47444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47445   (exit $ac_status); }; }; then
47446   ac_cv_func_which_getservbyname_r=six
47447 else
47448   echo "$as_me: failed program was:" >&5
47449 sed 's/^/| /' conftest.$ac_ext >&5
47450
47451
47452                 cat >conftest.$ac_ext <<_ACEOF
47453 /* confdefs.h.  */
47454 _ACEOF
47455 cat confdefs.h >>conftest.$ac_ext
47456 cat >>conftest.$ac_ext <<_ACEOF
47457 /* end confdefs.h.  */
47458 #include <netdb.h>
47459 int
47460 main ()
47461 {
47462
47463                         char *name;
47464                         char *proto;
47465                         struct servent *se;
47466                         char buffer[2048];
47467                         int buflen = 2048;
47468                         (void) getservbyname_r(name, proto, se, buffer, buflen)
47469
47470   ;
47471   return 0;
47472 }
47473 _ACEOF
47474 rm -f conftest.$ac_objext
47475 if { (ac_try="$ac_compile"
47476 case "(($ac_try" in
47477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47478   *) ac_try_echo=$ac_try;;
47479 esac
47480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47481   (eval "$ac_compile") 2>conftest.er1
47482   ac_status=$?
47483   grep -v '^ *+' conftest.er1 >conftest.err
47484   rm -f conftest.er1
47485   cat conftest.err >&5
47486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47487   (exit $ac_status); } &&
47488          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
47489   { (case "(($ac_try" in
47490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47491   *) ac_try_echo=$ac_try;;
47492 esac
47493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47494   (eval "$ac_try") 2>&5
47495   ac_status=$?
47496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47497   (exit $ac_status); }; } &&
47498          { ac_try='test -s conftest.$ac_objext'
47499   { (case "(($ac_try" in
47500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47501   *) ac_try_echo=$ac_try;;
47502 esac
47503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47504   (eval "$ac_try") 2>&5
47505   ac_status=$?
47506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47507   (exit $ac_status); }; }; then
47508   ac_cv_func_which_getservbyname_r=five
47509 else
47510   echo "$as_me: failed program was:" >&5
47511 sed 's/^/| /' conftest.$ac_ext >&5
47512
47513
47514                         cat >conftest.$ac_ext <<_ACEOF
47515 /* confdefs.h.  */
47516 _ACEOF
47517 cat confdefs.h >>conftest.$ac_ext
47518 cat >>conftest.$ac_ext <<_ACEOF
47519 /* end confdefs.h.  */
47520 #include <netdb.h>
47521 int
47522 main ()
47523 {
47524
47525                                 char *name;
47526                                 char *proto;
47527                                 struct servent *se;
47528                                 struct servent_data data;
47529                                 (void) getservbyname_r(name, proto, se, &data);
47530
47531   ;
47532   return 0;
47533 }
47534 _ACEOF
47535 rm -f conftest.$ac_objext
47536 if { (ac_try="$ac_compile"
47537 case "(($ac_try" in
47538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47539   *) ac_try_echo=$ac_try;;
47540 esac
47541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47542   (eval "$ac_compile") 2>conftest.er1
47543   ac_status=$?
47544   grep -v '^ *+' conftest.er1 >conftest.err
47545   rm -f conftest.er1
47546   cat conftest.err >&5
47547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47548   (exit $ac_status); } &&
47549          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
47550   { (case "(($ac_try" in
47551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47552   *) ac_try_echo=$ac_try;;
47553 esac
47554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47555   (eval "$ac_try") 2>&5
47556   ac_status=$?
47557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47558   (exit $ac_status); }; } &&
47559          { ac_try='test -s conftest.$ac_objext'
47560   { (case "(($ac_try" in
47561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47562   *) ac_try_echo=$ac_try;;
47563 esac
47564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47565   (eval "$ac_try") 2>&5
47566   ac_status=$?
47567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47568   (exit $ac_status); }; }; then
47569   ac_cv_func_which_getservbyname_r=four
47570 else
47571   echo "$as_me: failed program was:" >&5
47572 sed 's/^/| /' conftest.$ac_ext >&5
47573
47574         ac_cv_func_which_getservbyname_r=no
47575
47576 fi
47577
47578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47579
47580
47581 fi
47582
47583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47584
47585
47586 fi
47587
47588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47589         ac_ext=c
47590 ac_cpp='$CPP $CPPFLAGS'
47591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47594
47595
47596
47597 fi
47598 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
47599 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
47600
47601 if test $ac_cv_func_which_getservbyname_r = six; then
47602   cat >>confdefs.h <<\_ACEOF
47603 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
47604 _ACEOF
47605
47606 elif test $ac_cv_func_which_getservbyname_r = five; then
47607   cat >>confdefs.h <<\_ACEOF
47608 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
47609 _ACEOF
47610
47611 elif test $ac_cv_func_which_getservbyname_r = four; then
47612   cat >>confdefs.h <<\_ACEOF
47613 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
47614 _ACEOF
47615
47616 fi
47617
47618
47619       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
47620               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
47621
47622 for ac_func in getservbyname
47623 do
47624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47625 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47628   echo $ECHO_N "(cached) $ECHO_C" >&6
47629 else
47630   cat >conftest.$ac_ext <<_ACEOF
47631 /* confdefs.h.  */
47632 _ACEOF
47633 cat confdefs.h >>conftest.$ac_ext
47634 cat >>conftest.$ac_ext <<_ACEOF
47635 /* end confdefs.h.  */
47636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47638 #define $ac_func innocuous_$ac_func
47639
47640 /* System header to define __stub macros and hopefully few prototypes,
47641     which can conflict with char $ac_func (); below.
47642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47643     <limits.h> exists even on freestanding compilers.  */
47644
47645 #ifdef __STDC__
47646 # include <limits.h>
47647 #else
47648 # include <assert.h>
47649 #endif
47650
47651 #undef $ac_func
47652
47653 /* Override any GCC internal prototype to avoid an error.
47654    Use char because int might match the return type of a GCC
47655    builtin and then its argument prototype would still apply.  */
47656 #ifdef __cplusplus
47657 extern "C"
47658 #endif
47659 char $ac_func ();
47660 /* The GNU C library defines this for functions which it implements
47661     to always fail with ENOSYS.  Some functions are actually named
47662     something starting with __ and the normal name is an alias.  */
47663 #if defined __stub_$ac_func || defined __stub___$ac_func
47664 choke me
47665 #endif
47666
47667 int
47668 main ()
47669 {
47670 return $ac_func ();
47671   ;
47672   return 0;
47673 }
47674 _ACEOF
47675 rm -f conftest.$ac_objext conftest$ac_exeext
47676 if { (ac_try="$ac_link"
47677 case "(($ac_try" in
47678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47679   *) ac_try_echo=$ac_try;;
47680 esac
47681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47682   (eval "$ac_link") 2>conftest.er1
47683   ac_status=$?
47684   grep -v '^ *+' conftest.er1 >conftest.err
47685   rm -f conftest.er1
47686   cat conftest.err >&5
47687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47688   (exit $ac_status); } &&
47689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47690   { (case "(($ac_try" in
47691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47692   *) ac_try_echo=$ac_try;;
47693 esac
47694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47695   (eval "$ac_try") 2>&5
47696   ac_status=$?
47697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47698   (exit $ac_status); }; } &&
47699          { ac_try='test -s conftest$ac_exeext'
47700   { (case "(($ac_try" in
47701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47702   *) ac_try_echo=$ac_try;;
47703 esac
47704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47705   (eval "$ac_try") 2>&5
47706   ac_status=$?
47707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47708   (exit $ac_status); }; }; then
47709   eval "$as_ac_var=yes"
47710 else
47711   echo "$as_me: failed program was:" >&5
47712 sed 's/^/| /' conftest.$ac_ext >&5
47713
47714         eval "$as_ac_var=no"
47715 fi
47716
47717 rm -f core conftest.err conftest.$ac_objext \
47718       conftest$ac_exeext conftest.$ac_ext
47719 fi
47720 ac_res=`eval echo '${'$as_ac_var'}'`
47721                { echo "$as_me:$LINENO: result: $ac_res" >&5
47722 echo "${ECHO_T}$ac_res" >&6; }
47723 if test `eval echo '${'$as_ac_var'}'` = yes; then
47724   cat >>confdefs.h <<_ACEOF
47725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47726 _ACEOF
47727   cat >>confdefs.h <<\_ACEOF
47728 #define HAVE_GETSERVBYNAME 1
47729 _ACEOF
47730
47731 fi
47732 done
47733
47734       fi
47735
47736 if test "$wxUSE_THREADS" = "yes"; then
47737   cat >>confdefs.h <<\_ACEOF
47738 #define wxUSE_THREADS 1
47739 _ACEOF
47740
47741
47742   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
47743 else
47744       if test "$wx_cv_func_strtok_r" = "yes"; then
47745     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
47746 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
47747     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
47748         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
47749         { echo "$as_me:$LINENO: result: yes" >&5
47750 echo "${ECHO_T}yes" >&6; }
47751     else
47752         { echo "$as_me:$LINENO: result: no" >&5
47753 echo "${ECHO_T}no" >&6; }
47754     fi
47755   fi
47756 fi
47757
47758 if test "$WXGTK20" = 1 ; then
47759   cat >>confdefs.h <<_ACEOF
47760 #define __WXGTK20__ $WXGTK20
47761 _ACEOF
47762
47763   WXGTK12=1
47764 fi
47765
47766 if test "$WXGTK12" = 1 ; then
47767   cat >>confdefs.h <<_ACEOF
47768 #define __WXGTK12__ $WXGTK12
47769 _ACEOF
47770
47771 fi
47772
47773 if test "$WXGTK127" = 1 ; then
47774   cat >>confdefs.h <<_ACEOF
47775 #define __WXGTK127__ $WXGTK127
47776 _ACEOF
47777
47778 fi
47779
47780 if test "$WXGPE" = 1 ; then
47781   cat >>confdefs.h <<_ACEOF
47782 #define __WXGPE__ $WXGPE
47783 _ACEOF
47784
47785 fi
47786
47787 DEBUG_CFLAGS=
47788 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
47789     DEBUG_CFLAGS="-g"
47790     wxUSE_OPTIMISE=no
47791 fi
47792
47793 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
47794     wxUSE_DEBUG_INFO=yes
47795     if test "$GCC" = yes; then
47796         DEBUG_CFLAGS="-ggdb"
47797     fi
47798 fi
47799
47800 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
47801     cat >>confdefs.h <<\_ACEOF
47802 #define WXDEBUG 1
47803 _ACEOF
47804
47805     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
47806 else
47807     if test "$wxUSE_GTK" = 1 ; then
47808         if test "x$wxGTK_VERSION" = "x1" ; then
47809             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
47810         fi
47811     fi
47812 fi
47813
47814 if test "$wxUSE_MEM_TRACING" = "yes" ; then
47815     cat >>confdefs.h <<\_ACEOF
47816 #define wxUSE_MEMORY_TRACING 1
47817 _ACEOF
47818
47819     cat >>confdefs.h <<\_ACEOF
47820 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47821 _ACEOF
47822
47823     cat >>confdefs.h <<\_ACEOF
47824 #define wxUSE_DEBUG_NEW_ALWAYS 1
47825 _ACEOF
47826
47827     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
47828 fi
47829
47830 if test "$wxUSE_DMALLOC" = "yes" ; then
47831     DMALLOC_LIBS="-ldmallocthcxx"
47832 fi
47833
47834 PROFILE_FLAGS=
47835 if test "$wxUSE_PROFILE" = "yes" ; then
47836     PROFILE_FLAGS=" -pg"
47837 fi
47838
47839 if test "$GCC" = "yes" ; then
47840     if test "$wxUSE_NO_RTTI" = "yes" ; then
47841         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
47842     fi
47843     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
47844         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
47845     fi
47846     if test "$wxUSE_PERMISSIVE" = "yes" ; then
47847         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
47848     fi
47849
47850                                                 case "${host}" in
47851       powerpc*-*-aix* )
47852         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
47853         ;;
47854       *-hppa* )
47855         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
47856         ;;
47857     esac
47858 fi
47859
47860 OPTIMISE_CFLAGS=
47861 if test "$wxUSE_OPTIMISE" = "no" ; then
47862     if test "$GCC" = yes ; then
47863                         OPTIMISE_CFLAGS="-O0"
47864     fi
47865 else
47866     if test "$GCC" = yes ; then
47867         case "${host}" in
47868             *-pc-os2_emx | *-pc-os2-emx )
47869                                                 OPTIMISE_CFLAGS="-O2"
47870             ;;
47871             *)
47872                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
47873             ;;
47874         esac
47875     else
47876         OPTIMISE_CFLAGS="-O"
47877     fi
47878 fi
47879
47880
47881 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
47882     cat >>confdefs.h <<\_ACEOF
47883 #define WXWIN_COMPATIBILITY_2_4 1
47884 _ACEOF
47885
47886
47887     WXWIN_COMPATIBILITY_2_6="yes"
47888 fi
47889
47890 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
47891     cat >>confdefs.h <<\_ACEOF
47892 #define WXWIN_COMPATIBILITY_2_6 1
47893 _ACEOF
47894
47895 fi
47896
47897
47898 if test "$wxUSE_GUI" = "yes"; then
47899     cat >>confdefs.h <<\_ACEOF
47900 #define wxUSE_GUI 1
47901 _ACEOF
47902
47903
47904                                             fi
47905
47906
47907 if test "$wxUSE_UNIX" = "yes"; then
47908   cat >>confdefs.h <<\_ACEOF
47909 #define wxUSE_UNIX 1
47910 _ACEOF
47911
47912 fi
47913
47914
47915 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
47916
47917     HAVE_DL_FUNCS=0
47918     HAVE_SHL_FUNCS=0
47919     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
47920         if test "$USE_DARWIN" = 1; then
47921                         HAVE_DL_FUNCS=1
47922         elif test "$USE_DOS" = 1; then
47923             HAVE_DL_FUNCS=0
47924         else
47925
47926 for ac_func in dlopen
47927 do
47928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47932   echo $ECHO_N "(cached) $ECHO_C" >&6
47933 else
47934   cat >conftest.$ac_ext <<_ACEOF
47935 /* confdefs.h.  */
47936 _ACEOF
47937 cat confdefs.h >>conftest.$ac_ext
47938 cat >>conftest.$ac_ext <<_ACEOF
47939 /* end confdefs.h.  */
47940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47942 #define $ac_func innocuous_$ac_func
47943
47944 /* System header to define __stub macros and hopefully few prototypes,
47945     which can conflict with char $ac_func (); below.
47946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47947     <limits.h> exists even on freestanding compilers.  */
47948
47949 #ifdef __STDC__
47950 # include <limits.h>
47951 #else
47952 # include <assert.h>
47953 #endif
47954
47955 #undef $ac_func
47956
47957 /* Override any GCC internal prototype to avoid an error.
47958    Use char because int might match the return type of a GCC
47959    builtin and then its argument prototype would still apply.  */
47960 #ifdef __cplusplus
47961 extern "C"
47962 #endif
47963 char $ac_func ();
47964 /* The GNU C library defines this for functions which it implements
47965     to always fail with ENOSYS.  Some functions are actually named
47966     something starting with __ and the normal name is an alias.  */
47967 #if defined __stub_$ac_func || defined __stub___$ac_func
47968 choke me
47969 #endif
47970
47971 int
47972 main ()
47973 {
47974 return $ac_func ();
47975   ;
47976   return 0;
47977 }
47978 _ACEOF
47979 rm -f conftest.$ac_objext conftest$ac_exeext
47980 if { (ac_try="$ac_link"
47981 case "(($ac_try" in
47982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47983   *) ac_try_echo=$ac_try;;
47984 esac
47985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47986   (eval "$ac_link") 2>conftest.er1
47987   ac_status=$?
47988   grep -v '^ *+' conftest.er1 >conftest.err
47989   rm -f conftest.er1
47990   cat conftest.err >&5
47991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47992   (exit $ac_status); } &&
47993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47994   { (case "(($ac_try" in
47995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47996   *) ac_try_echo=$ac_try;;
47997 esac
47998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47999   (eval "$ac_try") 2>&5
48000   ac_status=$?
48001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48002   (exit $ac_status); }; } &&
48003          { ac_try='test -s conftest$ac_exeext'
48004   { (case "(($ac_try" in
48005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48006   *) ac_try_echo=$ac_try;;
48007 esac
48008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48009   (eval "$ac_try") 2>&5
48010   ac_status=$?
48011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48012   (exit $ac_status); }; }; then
48013   eval "$as_ac_var=yes"
48014 else
48015   echo "$as_me: failed program was:" >&5
48016 sed 's/^/| /' conftest.$ac_ext >&5
48017
48018         eval "$as_ac_var=no"
48019 fi
48020
48021 rm -f core conftest.err conftest.$ac_objext \
48022       conftest$ac_exeext conftest.$ac_ext
48023 fi
48024 ac_res=`eval echo '${'$as_ac_var'}'`
48025                { echo "$as_me:$LINENO: result: $ac_res" >&5
48026 echo "${ECHO_T}$ac_res" >&6; }
48027 if test `eval echo '${'$as_ac_var'}'` = yes; then
48028   cat >>confdefs.h <<_ACEOF
48029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48030 _ACEOF
48031
48032                 cat >>confdefs.h <<\_ACEOF
48033 #define HAVE_DLOPEN 1
48034 _ACEOF
48035
48036                 HAVE_DL_FUNCS=1
48037
48038 else
48039
48040                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
48041 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
48042 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
48043   echo $ECHO_N "(cached) $ECHO_C" >&6
48044 else
48045   ac_check_lib_save_LIBS=$LIBS
48046 LIBS="-ldl  $LIBS"
48047 cat >conftest.$ac_ext <<_ACEOF
48048 /* confdefs.h.  */
48049 _ACEOF
48050 cat confdefs.h >>conftest.$ac_ext
48051 cat >>conftest.$ac_ext <<_ACEOF
48052 /* end confdefs.h.  */
48053
48054 /* Override any GCC internal prototype to avoid an error.
48055    Use char because int might match the return type of a GCC
48056    builtin and then its argument prototype would still apply.  */
48057 #ifdef __cplusplus
48058 extern "C"
48059 #endif
48060 char dlopen ();
48061 int
48062 main ()
48063 {
48064 return dlopen ();
48065   ;
48066   return 0;
48067 }
48068 _ACEOF
48069 rm -f conftest.$ac_objext conftest$ac_exeext
48070 if { (ac_try="$ac_link"
48071 case "(($ac_try" in
48072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48073   *) ac_try_echo=$ac_try;;
48074 esac
48075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48076   (eval "$ac_link") 2>conftest.er1
48077   ac_status=$?
48078   grep -v '^ *+' conftest.er1 >conftest.err
48079   rm -f conftest.er1
48080   cat conftest.err >&5
48081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48082   (exit $ac_status); } &&
48083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48084   { (case "(($ac_try" in
48085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48086   *) ac_try_echo=$ac_try;;
48087 esac
48088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48089   (eval "$ac_try") 2>&5
48090   ac_status=$?
48091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48092   (exit $ac_status); }; } &&
48093          { ac_try='test -s conftest$ac_exeext'
48094   { (case "(($ac_try" in
48095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48096   *) ac_try_echo=$ac_try;;
48097 esac
48098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48099   (eval "$ac_try") 2>&5
48100   ac_status=$?
48101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48102   (exit $ac_status); }; }; then
48103   ac_cv_lib_dl_dlopen=yes
48104 else
48105   echo "$as_me: failed program was:" >&5
48106 sed 's/^/| /' conftest.$ac_ext >&5
48107
48108         ac_cv_lib_dl_dlopen=no
48109 fi
48110
48111 rm -f core conftest.err conftest.$ac_objext \
48112       conftest$ac_exeext conftest.$ac_ext
48113 LIBS=$ac_check_lib_save_LIBS
48114 fi
48115 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
48116 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
48117 if test $ac_cv_lib_dl_dlopen = yes; then
48118
48119                                 cat >>confdefs.h <<\_ACEOF
48120 #define HAVE_DLOPEN 1
48121 _ACEOF
48122
48123                                 HAVE_DL_FUNCS=1
48124                                 DL_LINK=" -ldl$DL_LINK"
48125
48126 else
48127
48128
48129 for ac_func in shl_load
48130 do
48131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48135   echo $ECHO_N "(cached) $ECHO_C" >&6
48136 else
48137   cat >conftest.$ac_ext <<_ACEOF
48138 /* confdefs.h.  */
48139 _ACEOF
48140 cat confdefs.h >>conftest.$ac_ext
48141 cat >>conftest.$ac_ext <<_ACEOF
48142 /* end confdefs.h.  */
48143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48145 #define $ac_func innocuous_$ac_func
48146
48147 /* System header to define __stub macros and hopefully few prototypes,
48148     which can conflict with char $ac_func (); below.
48149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48150     <limits.h> exists even on freestanding compilers.  */
48151
48152 #ifdef __STDC__
48153 # include <limits.h>
48154 #else
48155 # include <assert.h>
48156 #endif
48157
48158 #undef $ac_func
48159
48160 /* Override any GCC internal prototype to avoid an error.
48161    Use char because int might match the return type of a GCC
48162    builtin and then its argument prototype would still apply.  */
48163 #ifdef __cplusplus
48164 extern "C"
48165 #endif
48166 char $ac_func ();
48167 /* The GNU C library defines this for functions which it implements
48168     to always fail with ENOSYS.  Some functions are actually named
48169     something starting with __ and the normal name is an alias.  */
48170 #if defined __stub_$ac_func || defined __stub___$ac_func
48171 choke me
48172 #endif
48173
48174 int
48175 main ()
48176 {
48177 return $ac_func ();
48178   ;
48179   return 0;
48180 }
48181 _ACEOF
48182 rm -f conftest.$ac_objext conftest$ac_exeext
48183 if { (ac_try="$ac_link"
48184 case "(($ac_try" in
48185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48186   *) ac_try_echo=$ac_try;;
48187 esac
48188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48189   (eval "$ac_link") 2>conftest.er1
48190   ac_status=$?
48191   grep -v '^ *+' conftest.er1 >conftest.err
48192   rm -f conftest.er1
48193   cat conftest.err >&5
48194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48195   (exit $ac_status); } &&
48196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48197   { (case "(($ac_try" in
48198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48199   *) ac_try_echo=$ac_try;;
48200 esac
48201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48202   (eval "$ac_try") 2>&5
48203   ac_status=$?
48204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48205   (exit $ac_status); }; } &&
48206          { ac_try='test -s conftest$ac_exeext'
48207   { (case "(($ac_try" in
48208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48209   *) ac_try_echo=$ac_try;;
48210 esac
48211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48212   (eval "$ac_try") 2>&5
48213   ac_status=$?
48214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48215   (exit $ac_status); }; }; then
48216   eval "$as_ac_var=yes"
48217 else
48218   echo "$as_me: failed program was:" >&5
48219 sed 's/^/| /' conftest.$ac_ext >&5
48220
48221         eval "$as_ac_var=no"
48222 fi
48223
48224 rm -f core conftest.err conftest.$ac_objext \
48225       conftest$ac_exeext conftest.$ac_ext
48226 fi
48227 ac_res=`eval echo '${'$as_ac_var'}'`
48228                { echo "$as_me:$LINENO: result: $ac_res" >&5
48229 echo "${ECHO_T}$ac_res" >&6; }
48230 if test `eval echo '${'$as_ac_var'}'` = yes; then
48231   cat >>confdefs.h <<_ACEOF
48232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48233 _ACEOF
48234
48235                                                 cat >>confdefs.h <<\_ACEOF
48236 #define HAVE_SHL_LOAD 1
48237 _ACEOF
48238
48239                                                 HAVE_SHL_FUNCS=1
48240
48241 else
48242
48243                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
48244 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
48245 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
48246   echo $ECHO_N "(cached) $ECHO_C" >&6
48247 else
48248   ac_check_lib_save_LIBS=$LIBS
48249 LIBS="-lshl_load  $LIBS"
48250 cat >conftest.$ac_ext <<_ACEOF
48251 /* confdefs.h.  */
48252 _ACEOF
48253 cat confdefs.h >>conftest.$ac_ext
48254 cat >>conftest.$ac_ext <<_ACEOF
48255 /* end confdefs.h.  */
48256
48257 /* Override any GCC internal prototype to avoid an error.
48258    Use char because int might match the return type of a GCC
48259    builtin and then its argument prototype would still apply.  */
48260 #ifdef __cplusplus
48261 extern "C"
48262 #endif
48263 char dld ();
48264 int
48265 main ()
48266 {
48267 return dld ();
48268   ;
48269   return 0;
48270 }
48271 _ACEOF
48272 rm -f conftest.$ac_objext conftest$ac_exeext
48273 if { (ac_try="$ac_link"
48274 case "(($ac_try" in
48275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48276   *) ac_try_echo=$ac_try;;
48277 esac
48278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48279   (eval "$ac_link") 2>conftest.er1
48280   ac_status=$?
48281   grep -v '^ *+' conftest.er1 >conftest.err
48282   rm -f conftest.er1
48283   cat conftest.err >&5
48284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48285   (exit $ac_status); } &&
48286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48287   { (case "(($ac_try" in
48288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48289   *) ac_try_echo=$ac_try;;
48290 esac
48291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48292   (eval "$ac_try") 2>&5
48293   ac_status=$?
48294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48295   (exit $ac_status); }; } &&
48296          { ac_try='test -s conftest$ac_exeext'
48297   { (case "(($ac_try" in
48298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48299   *) ac_try_echo=$ac_try;;
48300 esac
48301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48302   (eval "$ac_try") 2>&5
48303   ac_status=$?
48304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48305   (exit $ac_status); }; }; then
48306   ac_cv_lib_shl_load_dld=yes
48307 else
48308   echo "$as_me: failed program was:" >&5
48309 sed 's/^/| /' conftest.$ac_ext >&5
48310
48311         ac_cv_lib_shl_load_dld=no
48312 fi
48313
48314 rm -f core conftest.err conftest.$ac_objext \
48315       conftest$ac_exeext conftest.$ac_ext
48316 LIBS=$ac_check_lib_save_LIBS
48317 fi
48318 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
48319 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
48320 if test $ac_cv_lib_shl_load_dld = yes; then
48321
48322                                                                 HAVE_SHL_FUNCS=1
48323                                                                 DL_LINK=" -ldld$DL_LINK"
48324
48325 fi
48326
48327
48328 fi
48329 done
48330
48331
48332 fi
48333
48334
48335 fi
48336 done
48337
48338
48339                 if test "$HAVE_DL_FUNCS" = 1; then
48340
48341 for ac_func in dlerror
48342 do
48343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48347   echo $ECHO_N "(cached) $ECHO_C" >&6
48348 else
48349   cat >conftest.$ac_ext <<_ACEOF
48350 /* confdefs.h.  */
48351 _ACEOF
48352 cat confdefs.h >>conftest.$ac_ext
48353 cat >>conftest.$ac_ext <<_ACEOF
48354 /* end confdefs.h.  */
48355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48357 #define $ac_func innocuous_$ac_func
48358
48359 /* System header to define __stub macros and hopefully few prototypes,
48360     which can conflict with char $ac_func (); below.
48361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48362     <limits.h> exists even on freestanding compilers.  */
48363
48364 #ifdef __STDC__
48365 # include <limits.h>
48366 #else
48367 # include <assert.h>
48368 #endif
48369
48370 #undef $ac_func
48371
48372 /* Override any GCC internal prototype to avoid an error.
48373    Use char because int might match the return type of a GCC
48374    builtin and then its argument prototype would still apply.  */
48375 #ifdef __cplusplus
48376 extern "C"
48377 #endif
48378 char $ac_func ();
48379 /* The GNU C library defines this for functions which it implements
48380     to always fail with ENOSYS.  Some functions are actually named
48381     something starting with __ and the normal name is an alias.  */
48382 #if defined __stub_$ac_func || defined __stub___$ac_func
48383 choke me
48384 #endif
48385
48386 int
48387 main ()
48388 {
48389 return $ac_func ();
48390   ;
48391   return 0;
48392 }
48393 _ACEOF
48394 rm -f conftest.$ac_objext conftest$ac_exeext
48395 if { (ac_try="$ac_link"
48396 case "(($ac_try" in
48397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48398   *) ac_try_echo=$ac_try;;
48399 esac
48400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48401   (eval "$ac_link") 2>conftest.er1
48402   ac_status=$?
48403   grep -v '^ *+' conftest.er1 >conftest.err
48404   rm -f conftest.er1
48405   cat conftest.err >&5
48406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48407   (exit $ac_status); } &&
48408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48409   { (case "(($ac_try" in
48410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48411   *) ac_try_echo=$ac_try;;
48412 esac
48413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48414   (eval "$ac_try") 2>&5
48415   ac_status=$?
48416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48417   (exit $ac_status); }; } &&
48418          { ac_try='test -s conftest$ac_exeext'
48419   { (case "(($ac_try" in
48420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48421   *) ac_try_echo=$ac_try;;
48422 esac
48423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48424   (eval "$ac_try") 2>&5
48425   ac_status=$?
48426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48427   (exit $ac_status); }; }; then
48428   eval "$as_ac_var=yes"
48429 else
48430   echo "$as_me: failed program was:" >&5
48431 sed 's/^/| /' conftest.$ac_ext >&5
48432
48433         eval "$as_ac_var=no"
48434 fi
48435
48436 rm -f core conftest.err conftest.$ac_objext \
48437       conftest$ac_exeext conftest.$ac_ext
48438 fi
48439 ac_res=`eval echo '${'$as_ac_var'}'`
48440                { echo "$as_me:$LINENO: result: $ac_res" >&5
48441 echo "${ECHO_T}$ac_res" >&6; }
48442 if test `eval echo '${'$as_ac_var'}'` = yes; then
48443   cat >>confdefs.h <<_ACEOF
48444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48445 _ACEOF
48446  cat >>confdefs.h <<\_ACEOF
48447 #define HAVE_DLERROR 1
48448 _ACEOF
48449
48450 else
48451
48452                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
48453 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
48454 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
48455   echo $ECHO_N "(cached) $ECHO_C" >&6
48456 else
48457   ac_check_lib_save_LIBS=$LIBS
48458 LIBS="-ldl  $LIBS"
48459 cat >conftest.$ac_ext <<_ACEOF
48460 /* confdefs.h.  */
48461 _ACEOF
48462 cat confdefs.h >>conftest.$ac_ext
48463 cat >>conftest.$ac_ext <<_ACEOF
48464 /* end confdefs.h.  */
48465
48466 /* Override any GCC internal prototype to avoid an error.
48467    Use char because int might match the return type of a GCC
48468    builtin and then its argument prototype would still apply.  */
48469 #ifdef __cplusplus
48470 extern "C"
48471 #endif
48472 char dlerror ();
48473 int
48474 main ()
48475 {
48476 return dlerror ();
48477   ;
48478   return 0;
48479 }
48480 _ACEOF
48481 rm -f conftest.$ac_objext conftest$ac_exeext
48482 if { (ac_try="$ac_link"
48483 case "(($ac_try" in
48484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48485   *) ac_try_echo=$ac_try;;
48486 esac
48487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48488   (eval "$ac_link") 2>conftest.er1
48489   ac_status=$?
48490   grep -v '^ *+' conftest.er1 >conftest.err
48491   rm -f conftest.er1
48492   cat conftest.err >&5
48493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48494   (exit $ac_status); } &&
48495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48496   { (case "(($ac_try" in
48497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48498   *) ac_try_echo=$ac_try;;
48499 esac
48500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48501   (eval "$ac_try") 2>&5
48502   ac_status=$?
48503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48504   (exit $ac_status); }; } &&
48505          { ac_try='test -s conftest$ac_exeext'
48506   { (case "(($ac_try" in
48507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48508   *) ac_try_echo=$ac_try;;
48509 esac
48510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48511   (eval "$ac_try") 2>&5
48512   ac_status=$?
48513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48514   (exit $ac_status); }; }; then
48515   ac_cv_lib_dl_dlerror=yes
48516 else
48517   echo "$as_me: failed program was:" >&5
48518 sed 's/^/| /' conftest.$ac_ext >&5
48519
48520         ac_cv_lib_dl_dlerror=no
48521 fi
48522
48523 rm -f core conftest.err conftest.$ac_objext \
48524       conftest$ac_exeext conftest.$ac_ext
48525 LIBS=$ac_check_lib_save_LIBS
48526 fi
48527 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
48528 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
48529 if test $ac_cv_lib_dl_dlerror = yes; then
48530   cat >>confdefs.h <<\_ACEOF
48531 #define HAVE_DLERROR 1
48532 _ACEOF
48533
48534 fi
48535
48536
48537
48538 fi
48539 done
48540
48541         fi
48542         fi
48543
48544         if test "$HAVE_DL_FUNCS" = 0; then
48545             if test "$HAVE_SHL_FUNCS" = 0; then
48546               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
48547                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
48548 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
48549                   wxUSE_DYNAMIC_LOADER=no
48550                   wxUSE_DYNLIB_CLASS=no
48551               else
48552                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
48553 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
48554               fi
48555             fi
48556         fi
48557     fi
48558 fi
48559
48560 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
48561     cat >>confdefs.h <<\_ACEOF
48562 #define wxUSE_DYNAMIC_LOADER 1
48563 _ACEOF
48564
48565 fi
48566 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
48567     cat >>confdefs.h <<\_ACEOF
48568 #define wxUSE_DYNLIB_CLASS 1
48569 _ACEOF
48570
48571 fi
48572
48573
48574
48575 if test "$wxUSE_PLUGINS" = "yes" ; then
48576     if test "$wxUSE_SHARED" = "no" ; then
48577         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
48578 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
48579         wxUSE_PLUGINS=no
48580     fi
48581     if test "$wxUSE_MONOLITHIC" = "yes" ; then
48582         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
48583 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
48584         wxUSE_PLUGINS=no
48585     fi
48586     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
48587         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
48588 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
48589         wxUSE_PLUGINS=no
48590     fi
48591     if test "$wxUSE_PLUGINS" = "yes" ; then
48592         cat >>confdefs.h <<\_ACEOF
48593 #define wxUSE_PLUGINS 1
48594 _ACEOF
48595
48596     fi
48597 fi
48598
48599
48600 if test "$wxUSE_STL" = "yes"; then
48601   cat >>confdefs.h <<\_ACEOF
48602 #define wxUSE_STL 1
48603 _ACEOF
48604
48605 fi
48606
48607 if test "$wxUSE_APPLE_IEEE" = "yes"; then
48608   cat >>confdefs.h <<\_ACEOF
48609 #define wxUSE_APPLE_IEEE 1
48610 _ACEOF
48611
48612 fi
48613
48614 if test "$wxUSE_TIMER" = "yes"; then
48615   cat >>confdefs.h <<\_ACEOF
48616 #define wxUSE_TIMER 1
48617 _ACEOF
48618
48619 fi
48620
48621 if test "$USE_UNIX" = "1" ; then
48622         if test "$wxUSE_MGL" != 1; then
48623                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
48624 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
48625 if test "${ac_cv_header_sys_soundcard+set}" = set; then
48626   echo $ECHO_N "(cached) $ECHO_C" >&6
48627 else
48628
48629             cat >conftest.$ac_ext <<_ACEOF
48630 /* confdefs.h.  */
48631 _ACEOF
48632 cat confdefs.h >>conftest.$ac_ext
48633 cat >>conftest.$ac_ext <<_ACEOF
48634 /* end confdefs.h.  */
48635
48636                     #include <sys/ioctl.h>
48637                     #include <sys/soundcard.h>
48638
48639 int
48640 main ()
48641 {
48642
48643                     ioctl(0, SNDCTL_DSP_SPEED, 0);
48644
48645   ;
48646   return 0;
48647 }
48648 _ACEOF
48649 rm -f conftest.$ac_objext conftest$ac_exeext
48650 if { (ac_try="$ac_link"
48651 case "(($ac_try" in
48652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48653   *) ac_try_echo=$ac_try;;
48654 esac
48655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48656   (eval "$ac_link") 2>conftest.er1
48657   ac_status=$?
48658   grep -v '^ *+' conftest.er1 >conftest.err
48659   rm -f conftest.er1
48660   cat conftest.err >&5
48661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48662   (exit $ac_status); } &&
48663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48664   { (case "(($ac_try" in
48665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48666   *) ac_try_echo=$ac_try;;
48667 esac
48668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48669   (eval "$ac_try") 2>&5
48670   ac_status=$?
48671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48672   (exit $ac_status); }; } &&
48673          { ac_try='test -s conftest$ac_exeext'
48674   { (case "(($ac_try" in
48675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48676   *) ac_try_echo=$ac_try;;
48677 esac
48678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48679   (eval "$ac_try") 2>&5
48680   ac_status=$?
48681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48682   (exit $ac_status); }; }; then
48683   ac_cv_header_sys_soundcard=yes
48684 else
48685   echo "$as_me: failed program was:" >&5
48686 sed 's/^/| /' conftest.$ac_ext >&5
48687
48688
48689                     saveLibs="$LIBS"
48690                     LIBS="$saveLibs -lossaudio"
48691                     cat >conftest.$ac_ext <<_ACEOF
48692 /* confdefs.h.  */
48693 _ACEOF
48694 cat confdefs.h >>conftest.$ac_ext
48695 cat >>conftest.$ac_ext <<_ACEOF
48696 /* end confdefs.h.  */
48697
48698                             #include <sys/ioctl.h>
48699                             #include <sys/soundcard.h>
48700
48701 int
48702 main ()
48703 {
48704
48705                             ioctl(0, SNDCTL_DSP_SPEED, 0);
48706
48707   ;
48708   return 0;
48709 }
48710 _ACEOF
48711 rm -f conftest.$ac_objext conftest$ac_exeext
48712 if { (ac_try="$ac_link"
48713 case "(($ac_try" in
48714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48715   *) ac_try_echo=$ac_try;;
48716 esac
48717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48718   (eval "$ac_link") 2>conftest.er1
48719   ac_status=$?
48720   grep -v '^ *+' conftest.er1 >conftest.err
48721   rm -f conftest.er1
48722   cat conftest.err >&5
48723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48724   (exit $ac_status); } &&
48725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48726   { (case "(($ac_try" in
48727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48728   *) ac_try_echo=$ac_try;;
48729 esac
48730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48731   (eval "$ac_try") 2>&5
48732   ac_status=$?
48733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48734   (exit $ac_status); }; } &&
48735          { ac_try='test -s conftest$ac_exeext'
48736   { (case "(($ac_try" in
48737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48738   *) ac_try_echo=$ac_try;;
48739 esac
48740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48741   (eval "$ac_try") 2>&5
48742   ac_status=$?
48743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48744   (exit $ac_status); }; }; then
48745   ac_cv_header_sys_soundcard=yes
48746 else
48747   echo "$as_me: failed program was:" >&5
48748 sed 's/^/| /' conftest.$ac_ext >&5
48749
48750
48751                             LIBS="$saveLibs"
48752                             ac_cv_header_sys_soundcard=no
48753
48754
48755 fi
48756
48757 rm -f core conftest.err conftest.$ac_objext \
48758       conftest$ac_exeext conftest.$ac_ext
48759
48760
48761 fi
48762
48763 rm -f core conftest.err conftest.$ac_objext \
48764       conftest$ac_exeext conftest.$ac_ext
48765
48766 fi
48767 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
48768 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
48769     fi
48770
48771     if test "$ac_cv_header_sys_soundcard" = "yes"; then
48772         cat >>confdefs.h <<\_ACEOF
48773 #define HAVE_SYS_SOUNDCARD_H 1
48774 _ACEOF
48775
48776     else
48777         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
48778     fi
48779 fi
48780
48781 WITH_PLUGIN_SDL=0
48782 if test "$wxUSE_SOUND" = "yes"; then
48783   if test "$USE_UNIX" = "1" ; then
48784     if test "$wxUSE_LIBSDL" != "no"; then
48785
48786 # Check whether --with-sdl-prefix was given.
48787 if test "${with_sdl_prefix+set}" = set; then
48788   withval=$with_sdl_prefix; sdl_prefix="$withval"
48789 else
48790   sdl_prefix=""
48791 fi
48792
48793
48794 # Check whether --with-sdl-exec-prefix was given.
48795 if test "${with_sdl_exec_prefix+set}" = set; then
48796   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
48797 else
48798   sdl_exec_prefix=""
48799 fi
48800
48801 # Check whether --enable-sdltest was given.
48802 if test "${enable_sdltest+set}" = set; then
48803   enableval=$enable_sdltest;
48804 else
48805   enable_sdltest=yes
48806 fi
48807
48808
48809   if test x$sdl_exec_prefix != x ; then
48810     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
48811     if test x${SDL_CONFIG+set} != xset ; then
48812       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
48813     fi
48814   fi
48815   if test x$sdl_prefix != x ; then
48816     sdl_args="$sdl_args --prefix=$sdl_prefix"
48817     if test x${SDL_CONFIG+set} != xset ; then
48818       SDL_CONFIG=$sdl_prefix/bin/sdl-config
48819     fi
48820   fi
48821
48822   if test "x$prefix" != xNONE; then
48823     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
48824   fi
48825   # Extract the first word of "sdl-config", so it can be a program name with args.
48826 set dummy sdl-config; ac_word=$2
48827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48829 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
48830   echo $ECHO_N "(cached) $ECHO_C" >&6
48831 else
48832   case $SDL_CONFIG in
48833   [\\/]* | ?:[\\/]*)
48834   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
48835   ;;
48836   *)
48837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48838 for as_dir in $PATH
48839 do
48840   IFS=$as_save_IFS
48841   test -z "$as_dir" && as_dir=.
48842   for ac_exec_ext in '' $ac_executable_extensions; do
48843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
48844     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48846     break 2
48847   fi
48848 done
48849 done
48850 IFS=$as_save_IFS
48851
48852   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
48853   ;;
48854 esac
48855 fi
48856 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
48857 if test -n "$SDL_CONFIG"; then
48858   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
48859 echo "${ECHO_T}$SDL_CONFIG" >&6; }
48860 else
48861   { echo "$as_me:$LINENO: result: no" >&5
48862 echo "${ECHO_T}no" >&6; }
48863 fi
48864
48865
48866   min_sdl_version=1.2.0
48867   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
48868 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
48869   no_sdl=""
48870   if test "$SDL_CONFIG" = "no" ; then
48871     no_sdl=yes
48872   else
48873     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
48874     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
48875
48876     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
48877            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48878     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
48879            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48880     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
48881            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48882     if test "x$enable_sdltest" = "xyes" ; then
48883       ac_save_CFLAGS="$CFLAGS"
48884       ac_save_CXXFLAGS="$CXXFLAGS"
48885       ac_save_LIBS="$LIBS"
48886       CFLAGS="$CFLAGS $SDL_CFLAGS"
48887       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
48888       LIBS="$LIBS $SDL_LIBS"
48889       rm -f conf.sdltest
48890       if test "$cross_compiling" = yes; then
48891   echo $ac_n "cross compiling; assumed OK... $ac_c"
48892 else
48893   cat >conftest.$ac_ext <<_ACEOF
48894 /* confdefs.h.  */
48895 _ACEOF
48896 cat confdefs.h >>conftest.$ac_ext
48897 cat >>conftest.$ac_ext <<_ACEOF
48898 /* end confdefs.h.  */
48899
48900 #include <stdio.h>
48901 #include <stdlib.h>
48902 #include <string.h>
48903 #include "SDL.h"
48904
48905 char*
48906 my_strdup (char *str)
48907 {
48908   char *new_str;
48909
48910   if (str)
48911     {
48912       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
48913       strcpy (new_str, str);
48914     }
48915   else
48916     new_str = NULL;
48917
48918   return new_str;
48919 }
48920
48921 int main (int argc, char *argv[])
48922 {
48923   int major, minor, micro;
48924   char *tmp_version;
48925
48926   /* This hangs on some systems (?)
48927   system ("touch conf.sdltest");
48928   */
48929   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
48930
48931   /* HP/UX 9 (%@#!) writes to sscanf strings */
48932   tmp_version = my_strdup("$min_sdl_version");
48933   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
48934      printf("%s, bad version string\n", "$min_sdl_version");
48935      exit(1);
48936    }
48937
48938    if (($sdl_major_version > major) ||
48939       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
48940       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
48941     {
48942       return 0;
48943     }
48944   else
48945     {
48946       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
48947       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
48948       printf("*** best to upgrade to the required version.\n");
48949       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
48950       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
48951       printf("*** config.cache before re-running configure\n");
48952       return 1;
48953     }
48954 }
48955
48956
48957 _ACEOF
48958 rm -f conftest$ac_exeext
48959 if { (ac_try="$ac_link"
48960 case "(($ac_try" in
48961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48962   *) ac_try_echo=$ac_try;;
48963 esac
48964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48965   (eval "$ac_link") 2>&5
48966   ac_status=$?
48967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48969   { (case "(($ac_try" in
48970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48971   *) ac_try_echo=$ac_try;;
48972 esac
48973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48974   (eval "$ac_try") 2>&5
48975   ac_status=$?
48976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48977   (exit $ac_status); }; }; then
48978   :
48979 else
48980   echo "$as_me: program exited with status $ac_status" >&5
48981 echo "$as_me: failed program was:" >&5
48982 sed 's/^/| /' conftest.$ac_ext >&5
48983
48984 ( exit $ac_status )
48985 no_sdl=yes
48986 fi
48987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48988 fi
48989
48990
48991        CFLAGS="$ac_save_CFLAGS"
48992        CXXFLAGS="$ac_save_CXXFLAGS"
48993        LIBS="$ac_save_LIBS"
48994      fi
48995   fi
48996   if test "x$no_sdl" = x ; then
48997      { echo "$as_me:$LINENO: result: yes" >&5
48998 echo "${ECHO_T}yes" >&6; }
48999
49000                     EXTRALIBS_SDL="$SDL_LIBS"
49001                     CFLAGS="$SDL_CFLAGS $CFLAGS"
49002                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
49003                     cat >>confdefs.h <<\_ACEOF
49004 #define wxUSE_LIBSDL 1
49005 _ACEOF
49006
49007
49008   else
49009      { echo "$as_me:$LINENO: result: no" >&5
49010 echo "${ECHO_T}no" >&6; }
49011      if test "$SDL_CONFIG" = "no" ; then
49012        echo "*** The sdl-config script installed by SDL could not be found"
49013        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
49014        echo "*** your path, or set the SDL_CONFIG environment variable to the"
49015        echo "*** full path to sdl-config."
49016      else
49017        if test -f conf.sdltest ; then
49018         :
49019        else
49020           echo "*** Could not run SDL test program, checking why..."
49021           CFLAGS="$CFLAGS $SDL_CFLAGS"
49022           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
49023           LIBS="$LIBS $SDL_LIBS"
49024           cat >conftest.$ac_ext <<_ACEOF
49025 /* confdefs.h.  */
49026 _ACEOF
49027 cat confdefs.h >>conftest.$ac_ext
49028 cat >>conftest.$ac_ext <<_ACEOF
49029 /* end confdefs.h.  */
49030
49031 #include <stdio.h>
49032 #include "SDL.h"
49033
49034 int main(int argc, char *argv[])
49035 { return 0; }
49036 #undef  main
49037 #define main K_and_R_C_main
49038
49039 int
49040 main ()
49041 {
49042  return 0;
49043   ;
49044   return 0;
49045 }
49046 _ACEOF
49047 rm -f conftest.$ac_objext conftest$ac_exeext
49048 if { (ac_try="$ac_link"
49049 case "(($ac_try" in
49050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49051   *) ac_try_echo=$ac_try;;
49052 esac
49053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49054   (eval "$ac_link") 2>conftest.er1
49055   ac_status=$?
49056   grep -v '^ *+' conftest.er1 >conftest.err
49057   rm -f conftest.er1
49058   cat conftest.err >&5
49059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49060   (exit $ac_status); } &&
49061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49062   { (case "(($ac_try" in
49063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49064   *) ac_try_echo=$ac_try;;
49065 esac
49066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49067   (eval "$ac_try") 2>&5
49068   ac_status=$?
49069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49070   (exit $ac_status); }; } &&
49071          { ac_try='test -s conftest$ac_exeext'
49072   { (case "(($ac_try" in
49073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49074   *) ac_try_echo=$ac_try;;
49075 esac
49076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49077   (eval "$ac_try") 2>&5
49078   ac_status=$?
49079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49080   (exit $ac_status); }; }; then
49081    echo "*** The test program compiled, but did not run. This usually means"
49082           echo "*** that the run-time linker is not finding SDL or finding the wrong"
49083           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
49084           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
49085           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
49086           echo "*** is required on your system"
49087           echo "***"
49088           echo "*** If you have an old version installed, it is best to remove it, although"
49089           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
49090 else
49091   echo "$as_me: failed program was:" >&5
49092 sed 's/^/| /' conftest.$ac_ext >&5
49093
49094          echo "*** The test program failed to compile or link. See the file config.log for the"
49095           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
49096           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
49097           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
49098 fi
49099
49100 rm -f core conftest.err conftest.$ac_objext \
49101       conftest$ac_exeext conftest.$ac_ext
49102           CFLAGS="$ac_save_CFLAGS"
49103           CXXFLAGS="$ac_save_CXXFLAGS"
49104           LIBS="$ac_save_LIBS"
49105        fi
49106      fi
49107      SDL_CFLAGS=""
49108      SDL_LIBS=""
49109      wxUSE_LIBSDL="no"
49110   fi
49111
49112
49113   rm -f conf.sdltest
49114
49115       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
49116         WITH_PLUGIN_SDL=1
49117       fi
49118     fi
49119   else
49120         if test "$wxUSE_MGL" = 1; then
49121         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
49122 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
49123         wxUSE_SOUND="no"
49124     fi
49125   fi
49126 fi
49127
49128 if test "$wxUSE_SOUND" = "yes"; then
49129   cat >>confdefs.h <<\_ACEOF
49130 #define wxUSE_SOUND 1
49131 _ACEOF
49132
49133   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
49134 fi
49135
49136 if test "$WXGTK20" = 1; then
49137
49138
49139 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
49140         if test -n "$ac_tool_prefix"; then
49141   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
49142 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
49143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49145 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
49146   echo $ECHO_N "(cached) $ECHO_C" >&6
49147 else
49148   case $PKG_CONFIG in
49149   [\\/]* | ?:[\\/]*)
49150   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
49151   ;;
49152   *)
49153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49154 for as_dir in $PATH
49155 do
49156   IFS=$as_save_IFS
49157   test -z "$as_dir" && as_dir=.
49158   for ac_exec_ext in '' $ac_executable_extensions; do
49159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
49160     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49162     break 2
49163   fi
49164 done
49165 done
49166 IFS=$as_save_IFS
49167
49168   ;;
49169 esac
49170 fi
49171 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
49172 if test -n "$PKG_CONFIG"; then
49173   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
49174 echo "${ECHO_T}$PKG_CONFIG" >&6; }
49175 else
49176   { echo "$as_me:$LINENO: result: no" >&5
49177 echo "${ECHO_T}no" >&6; }
49178 fi
49179
49180
49181 fi
49182 if test -z "$ac_cv_path_PKG_CONFIG"; then
49183   ac_pt_PKG_CONFIG=$PKG_CONFIG
49184   # Extract the first word of "pkg-config", so it can be a program name with args.
49185 set dummy pkg-config; ac_word=$2
49186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49188 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
49189   echo $ECHO_N "(cached) $ECHO_C" >&6
49190 else
49191   case $ac_pt_PKG_CONFIG in
49192   [\\/]* | ?:[\\/]*)
49193   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
49194   ;;
49195   *)
49196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49197 for as_dir in $PATH
49198 do
49199   IFS=$as_save_IFS
49200   test -z "$as_dir" && as_dir=.
49201   for ac_exec_ext in '' $ac_executable_extensions; do
49202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
49203     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49205     break 2
49206   fi
49207 done
49208 done
49209 IFS=$as_save_IFS
49210
49211   ;;
49212 esac
49213 fi
49214 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
49215 if test -n "$ac_pt_PKG_CONFIG"; then
49216   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
49217 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
49218 else
49219   { echo "$as_me:$LINENO: result: no" >&5
49220 echo "${ECHO_T}no" >&6; }
49221 fi
49222
49223   if test "x$ac_pt_PKG_CONFIG" = x; then
49224     PKG_CONFIG=""
49225   else
49226     case $cross_compiling:$ac_tool_warned in
49227 yes:)
49228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49229 whose name does not start with the host triplet.  If you think this
49230 configuration is useful to you, please write to autoconf@gnu.org." >&5
49231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49232 whose name does not start with the host triplet.  If you think this
49233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49234 ac_tool_warned=yes ;;
49235 esac
49236     PKG_CONFIG=$ac_pt_PKG_CONFIG
49237   fi
49238 else
49239   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
49240 fi
49241
49242 fi
49243 if test -n "$PKG_CONFIG"; then
49244         _pkg_min_version=0.9.0
49245         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
49246 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
49247         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
49248                 { echo "$as_me:$LINENO: result: yes" >&5
49249 echo "${ECHO_T}yes" >&6; }
49250         else
49251                 { echo "$as_me:$LINENO: result: no" >&5
49252 echo "${ECHO_T}no" >&6; }
49253                 PKG_CONFIG=""
49254         fi
49255
49256 fi
49257
49258     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
49259         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49260
49261
49262 pkg_failed=no
49263 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
49264 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
49265
49266 if test -n "$PKG_CONFIG"; then
49267     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
49268         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
49269     else
49270         if test -n "$PKG_CONFIG" && \
49271     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
49272   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
49273   ac_status=$?
49274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49275   (exit $ac_status); }; then
49276   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
49277 else
49278   pkg_failed=yes
49279 fi
49280     fi
49281 else
49282         pkg_failed=untried
49283 fi
49284 if test -n "$PKG_CONFIG"; then
49285     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
49286         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
49287     else
49288         if test -n "$PKG_CONFIG" && \
49289     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
49290   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
49291   ac_status=$?
49292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49293   (exit $ac_status); }; then
49294   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
49295 else
49296   pkg_failed=yes
49297 fi
49298     fi
49299 else
49300         pkg_failed=untried
49301 fi
49302
49303
49304
49305 if test $pkg_failed = yes; then
49306
49307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49308         _pkg_short_errors_supported=yes
49309 else
49310         _pkg_short_errors_supported=no
49311 fi
49312         if test $_pkg_short_errors_supported = yes; then
49313                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
49314         else
49315                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
49316         fi
49317         # Put the nasty error message in config.log where it belongs
49318         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
49319
49320
49321                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
49322 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
49323                         wxUSE_LIBGNOMEPRINT="no"
49324
49325
49326 elif test $pkg_failed = untried; then
49327
49328                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
49329 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
49330                         wxUSE_LIBGNOMEPRINT="no"
49331
49332
49333 else
49334         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
49335         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
49336         { echo "$as_me:$LINENO: result: yes" >&5
49337 echo "${ECHO_T}yes" >&6; }
49338
49339                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
49340                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
49341                         cat >>confdefs.h <<\_ACEOF
49342 #define wxUSE_LIBGNOMEPRINT 1
49343 _ACEOF
49344
49345
49346 fi
49347         fi
49348     fi
49349
49350     if test "$wxUSE_MIMETYPE" = "yes" ; then
49351         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49352
49353
49354 pkg_failed=no
49355 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
49356 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
49357
49358 if test -n "$PKG_CONFIG"; then
49359     if test -n "$GNOMEVFS_CFLAGS"; then
49360         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
49361     else
49362         if test -n "$PKG_CONFIG" && \
49363     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
49364   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
49365   ac_status=$?
49366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49367   (exit $ac_status); }; then
49368   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
49369 else
49370   pkg_failed=yes
49371 fi
49372     fi
49373 else
49374         pkg_failed=untried
49375 fi
49376 if test -n "$PKG_CONFIG"; then
49377     if test -n "$GNOMEVFS_LIBS"; then
49378         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
49379     else
49380         if test -n "$PKG_CONFIG" && \
49381     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
49382   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
49383   ac_status=$?
49384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49385   (exit $ac_status); }; then
49386   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
49387 else
49388   pkg_failed=yes
49389 fi
49390     fi
49391 else
49392         pkg_failed=untried
49393 fi
49394
49395
49396
49397 if test $pkg_failed = yes; then
49398
49399 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49400         _pkg_short_errors_supported=yes
49401 else
49402         _pkg_short_errors_supported=no
49403 fi
49404         if test $_pkg_short_errors_supported = yes; then
49405                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
49406         else
49407                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
49408         fi
49409         # Put the nasty error message in config.log where it belongs
49410         echo "$GNOMEVFS_PKG_ERRORS" >&5
49411
49412
49413                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
49414 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
49415                         wxUSE_LIBGNOMEVFS="no"
49416
49417
49418 elif test $pkg_failed = untried; then
49419
49420                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
49421 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
49422                         wxUSE_LIBGNOMEVFS="no"
49423
49424
49425 else
49426         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
49427         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
49428         { echo "$as_me:$LINENO: result: yes" >&5
49429 echo "${ECHO_T}yes" >&6; }
49430
49431                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
49432                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
49433                         cat >>confdefs.h <<\_ACEOF
49434 #define wxUSE_LIBGNOMEVFS 1
49435 _ACEOF
49436
49437
49438 fi
49439         fi
49440     fi
49441
49442     if test "$wxUSE_LIBHILDON" = "yes" ; then
49443
49444 pkg_failed=no
49445 { echo "$as_me:$LINENO: checking for HILDON" >&5
49446 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
49447
49448 if test -n "$PKG_CONFIG"; then
49449     if test -n "$HILDON_CFLAGS"; then
49450         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
49451     else
49452         if test -n "$PKG_CONFIG" && \
49453     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
49454   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
49455   ac_status=$?
49456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49457   (exit $ac_status); }; then
49458   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
49459 else
49460   pkg_failed=yes
49461 fi
49462     fi
49463 else
49464         pkg_failed=untried
49465 fi
49466 if test -n "$PKG_CONFIG"; then
49467     if test -n "$HILDON_LIBS"; then
49468         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
49469     else
49470         if test -n "$PKG_CONFIG" && \
49471     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
49472   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
49473   ac_status=$?
49474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49475   (exit $ac_status); }; then
49476   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
49477 else
49478   pkg_failed=yes
49479 fi
49480     fi
49481 else
49482         pkg_failed=untried
49483 fi
49484
49485
49486
49487 if test $pkg_failed = yes; then
49488
49489 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49490         _pkg_short_errors_supported=yes
49491 else
49492         _pkg_short_errors_supported=no
49493 fi
49494         if test $_pkg_short_errors_supported = yes; then
49495                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
49496         else
49497                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
49498         fi
49499         # Put the nasty error message in config.log where it belongs
49500         echo "$HILDON_PKG_ERRORS" >&5
49501
49502
49503                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
49504 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
49505                         wxUSE_LIBHILDON="no"
49506
49507
49508 elif test $pkg_failed = untried; then
49509
49510                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
49511 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
49512                         wxUSE_LIBHILDON="no"
49513
49514
49515 else
49516         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
49517         HILDON_LIBS=$pkg_cv_HILDON_LIBS
49518         { echo "$as_me:$LINENO: result: yes" >&5
49519 echo "${ECHO_T}yes" >&6; }
49520
49521                 EXTRALIBS_HILDON="$HILDON_LIBS"
49522                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
49523                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
49524                 cat >>confdefs.h <<\_ACEOF
49525 #define wxUSE_LIBHILDON 1
49526 _ACEOF
49527
49528
49529 fi
49530     fi
49531 fi
49532
49533 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
49534   cat >>confdefs.h <<\_ACEOF
49535 #define wxUSE_CMDLINE_PARSER 1
49536 _ACEOF
49537
49538 fi
49539
49540 if test "$wxUSE_STOPWATCH" = "yes"; then
49541   cat >>confdefs.h <<\_ACEOF
49542 #define wxUSE_STOPWATCH 1
49543 _ACEOF
49544
49545 fi
49546
49547 if test "$wxUSE_DATETIME" = "yes"; then
49548   cat >>confdefs.h <<\_ACEOF
49549 #define wxUSE_DATETIME 1
49550 _ACEOF
49551
49552 fi
49553
49554 if test "$wxUSE_FILE" = "yes"; then
49555   cat >>confdefs.h <<\_ACEOF
49556 #define wxUSE_FILE 1
49557 _ACEOF
49558
49559 fi
49560
49561 if test "$wxUSE_FFILE" = "yes"; then
49562   cat >>confdefs.h <<\_ACEOF
49563 #define wxUSE_FFILE 1
49564 _ACEOF
49565
49566 fi
49567
49568 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
49569   if test "$wxUSE_STREAMS" != yes; then
49570     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
49571 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
49572     wxUSE_ARCHIVE_STREAMS=no
49573   else
49574     cat >>confdefs.h <<\_ACEOF
49575 #define wxUSE_ARCHIVE_STREAMS 1
49576 _ACEOF
49577
49578   fi
49579 fi
49580
49581 if test "$wxUSE_ZIPSTREAM" = "yes"; then
49582   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
49583     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
49584 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
49585   elif test "$wxUSE_ZLIB" = "no"; then
49586     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
49587 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
49588   else
49589     cat >>confdefs.h <<\_ACEOF
49590 #define wxUSE_ZIPSTREAM 1
49591 _ACEOF
49592
49593   fi
49594 fi
49595
49596 if test "$wxUSE_TARSTREAM" = "yes"; then
49597   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
49598     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
49599 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
49600   else
49601     cat >>confdefs.h <<\_ACEOF
49602 #define wxUSE_TARSTREAM 1
49603 _ACEOF
49604
49605   fi
49606 fi
49607
49608 if test "$wxUSE_FILESYSTEM" = "yes"; then
49609   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
49610     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
49611 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
49612     wxUSE_FILESYSTEM=no
49613   else
49614     cat >>confdefs.h <<\_ACEOF
49615 #define wxUSE_FILESYSTEM 1
49616 _ACEOF
49617
49618   fi
49619 fi
49620
49621 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
49622   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
49623     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
49624 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
49625   else
49626     cat >>confdefs.h <<\_ACEOF
49627 #define wxUSE_FS_ARCHIVE 1
49628 _ACEOF
49629
49630   fi
49631 fi
49632
49633 if test "$wxUSE_FS_ZIP" = "yes"; then
49634   if test "$wxUSE_FS_ARCHIVE" != yes; then
49635     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
49636 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
49637   else
49638     cat >>confdefs.h <<\_ACEOF
49639 #define wxUSE_FS_ZIP 1
49640 _ACEOF
49641
49642   fi
49643 fi
49644
49645 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
49646   if test "$USE_UNIX" != 1; then
49647     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
49648 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
49649     wxUSE_ON_FATAL_EXCEPTION=no
49650   else
49651     cat >>confdefs.h <<\_ACEOF
49652 #define wxUSE_ON_FATAL_EXCEPTION 1
49653 _ACEOF
49654
49655   fi
49656 fi
49657
49658 if test "$wxUSE_STACKWALKER" = "yes"; then
49659     cat >>confdefs.h <<\_ACEOF
49660 #define wxUSE_STACKWALKER 1
49661 _ACEOF
49662
49663 fi
49664
49665 if test "$wxUSE_DEBUGREPORT" = "yes"; then
49666     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
49667         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
49668 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
49669         wxUSE_DEBUGREPORT=no
49670     else
49671         cat >>confdefs.h <<\_ACEOF
49672 #define wxUSE_DEBUGREPORT 1
49673 _ACEOF
49674
49675         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
49676             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
49677         fi
49678     fi
49679 fi
49680
49681 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
49682   cat >>confdefs.h <<\_ACEOF
49683 #define wxUSE_SNGLINST_CHECKER 1
49684 _ACEOF
49685
49686 fi
49687
49688 if test "$wxUSE_BUSYINFO" = "yes"; then
49689   cat >>confdefs.h <<\_ACEOF
49690 #define wxUSE_BUSYINFO 1
49691 _ACEOF
49692
49693 fi
49694
49695 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
49696   cat >>confdefs.h <<\_ACEOF
49697 #define wxUSE_STD_IOSTREAM 1
49698 _ACEOF
49699
49700 fi
49701
49702 if test "$wxUSE_STD_STRING" = "yes"; then
49703   cat >>confdefs.h <<\_ACEOF
49704 #define wxUSE_STD_STRING 1
49705 _ACEOF
49706
49707 fi
49708
49709 if test "$wxUSE_STDPATHS" = "yes"; then
49710   cat >>confdefs.h <<\_ACEOF
49711 #define wxUSE_STDPATHS 1
49712 _ACEOF
49713
49714 fi
49715
49716 if test "$wxUSE_TEXTBUFFER" = "yes"; then
49717     cat >>confdefs.h <<\_ACEOF
49718 #define wxUSE_TEXTBUFFER 1
49719 _ACEOF
49720
49721 fi
49722
49723 if test "$wxUSE_TEXTFILE" = "yes"; then
49724   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
49725     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
49726 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
49727   else
49728     cat >>confdefs.h <<\_ACEOF
49729 #define wxUSE_TEXTFILE 1
49730 _ACEOF
49731
49732   fi
49733 fi
49734
49735 if test "$wxUSE_CONFIG" = "yes" ; then
49736   if test "$wxUSE_TEXTFILE" != "yes"; then
49737     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
49738 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
49739   else
49740     cat >>confdefs.h <<\_ACEOF
49741 #define wxUSE_CONFIG 1
49742 _ACEOF
49743
49744     cat >>confdefs.h <<\_ACEOF
49745 #define wxUSE_CONFIG_NATIVE 1
49746 _ACEOF
49747
49748     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
49749   fi
49750 fi
49751
49752 if test "$wxUSE_INTL" = "yes" ; then
49753   if test "$wxUSE_FILE" != "yes"; then
49754     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
49755 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
49756   else
49757     cat >>confdefs.h <<\_ACEOF
49758 #define wxUSE_INTL 1
49759 _ACEOF
49760
49761     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
49762     GUIDIST="$GUIDIST INTL_DIST"
49763   fi
49764 fi
49765
49766 if test "$wxUSE_LOG" = "yes"; then
49767   cat >>confdefs.h <<\_ACEOF
49768 #define wxUSE_LOG 1
49769 _ACEOF
49770
49771
49772     if test "$wxUSE_LOGGUI" = "yes"; then
49773       cat >>confdefs.h <<\_ACEOF
49774 #define wxUSE_LOGGUI 1
49775 _ACEOF
49776
49777     fi
49778
49779     if test "$wxUSE_LOGWINDOW" = "yes"; then
49780       cat >>confdefs.h <<\_ACEOF
49781 #define wxUSE_LOGWINDOW 1
49782 _ACEOF
49783
49784     fi
49785
49786     if test "$wxUSE_LOGDIALOG" = "yes"; then
49787       cat >>confdefs.h <<\_ACEOF
49788 #define wxUSE_LOG_DIALOG 1
49789 _ACEOF
49790
49791     fi
49792
49793         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
49794 fi
49795
49796 if test "$wxUSE_LONGLONG" = "yes"; then
49797   cat >>confdefs.h <<\_ACEOF
49798 #define wxUSE_LONGLONG 1
49799 _ACEOF
49800
49801 fi
49802
49803 if test "$wxUSE_GEOMETRY" = "yes"; then
49804   cat >>confdefs.h <<\_ACEOF
49805 #define wxUSE_GEOMETRY 1
49806 _ACEOF
49807
49808 fi
49809
49810 if test "$wxUSE_STREAMS" = "yes" ; then
49811   cat >>confdefs.h <<\_ACEOF
49812 #define wxUSE_STREAMS 1
49813 _ACEOF
49814
49815 fi
49816
49817 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
49818   cat >>confdefs.h <<\_ACEOF
49819 #define wxUSE_PRINTF_POS_PARAMS 1
49820 _ACEOF
49821
49822 fi
49823
49824
49825
49826 if test "$wxUSE_DATETIME" = "yes"; then
49827
49828 for ac_func in strptime
49829 do
49830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49834   echo $ECHO_N "(cached) $ECHO_C" >&6
49835 else
49836   cat >conftest.$ac_ext <<_ACEOF
49837 /* confdefs.h.  */
49838 _ACEOF
49839 cat confdefs.h >>conftest.$ac_ext
49840 cat >>conftest.$ac_ext <<_ACEOF
49841 /* end confdefs.h.  */
49842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49844 #define $ac_func innocuous_$ac_func
49845
49846 /* System header to define __stub macros and hopefully few prototypes,
49847     which can conflict with char $ac_func (); below.
49848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49849     <limits.h> exists even on freestanding compilers.  */
49850
49851 #ifdef __STDC__
49852 # include <limits.h>
49853 #else
49854 # include <assert.h>
49855 #endif
49856
49857 #undef $ac_func
49858
49859 /* Override any GCC internal prototype to avoid an error.
49860    Use char because int might match the return type of a GCC
49861    builtin and then its argument prototype would still apply.  */
49862 #ifdef __cplusplus
49863 extern "C"
49864 #endif
49865 char $ac_func ();
49866 /* The GNU C library defines this for functions which it implements
49867     to always fail with ENOSYS.  Some functions are actually named
49868     something starting with __ and the normal name is an alias.  */
49869 #if defined __stub_$ac_func || defined __stub___$ac_func
49870 choke me
49871 #endif
49872
49873 int
49874 main ()
49875 {
49876 return $ac_func ();
49877   ;
49878   return 0;
49879 }
49880 _ACEOF
49881 rm -f conftest.$ac_objext conftest$ac_exeext
49882 if { (ac_try="$ac_link"
49883 case "(($ac_try" in
49884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49885   *) ac_try_echo=$ac_try;;
49886 esac
49887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49888   (eval "$ac_link") 2>conftest.er1
49889   ac_status=$?
49890   grep -v '^ *+' conftest.er1 >conftest.err
49891   rm -f conftest.er1
49892   cat conftest.err >&5
49893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49894   (exit $ac_status); } &&
49895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49896   { (case "(($ac_try" in
49897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49898   *) ac_try_echo=$ac_try;;
49899 esac
49900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49901   (eval "$ac_try") 2>&5
49902   ac_status=$?
49903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49904   (exit $ac_status); }; } &&
49905          { ac_try='test -s conftest$ac_exeext'
49906   { (case "(($ac_try" in
49907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49908   *) ac_try_echo=$ac_try;;
49909 esac
49910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49911   (eval "$ac_try") 2>&5
49912   ac_status=$?
49913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49914   (exit $ac_status); }; }; then
49915   eval "$as_ac_var=yes"
49916 else
49917   echo "$as_me: failed program was:" >&5
49918 sed 's/^/| /' conftest.$ac_ext >&5
49919
49920         eval "$as_ac_var=no"
49921 fi
49922
49923 rm -f core conftest.err conftest.$ac_objext \
49924       conftest$ac_exeext conftest.$ac_ext
49925 fi
49926 ac_res=`eval echo '${'$as_ac_var'}'`
49927                { echo "$as_me:$LINENO: result: $ac_res" >&5
49928 echo "${ECHO_T}$ac_res" >&6; }
49929 if test `eval echo '${'$as_ac_var'}'` = yes; then
49930   cat >>confdefs.h <<_ACEOF
49931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49932 _ACEOF
49933
49934 fi
49935 done
49936
49937     if test "$ac_cv_func_strptime" = "yes"; then
49938         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
49939 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
49940 if test "${wx_cv_func_strptime_decl+set}" = set; then
49941   echo $ECHO_N "(cached) $ECHO_C" >&6
49942 else
49943
49944                 ac_ext=cpp
49945 ac_cpp='$CXXCPP $CPPFLAGS'
49946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49949
49950                 cat >conftest.$ac_ext <<_ACEOF
49951 /* confdefs.h.  */
49952 _ACEOF
49953 cat confdefs.h >>conftest.$ac_ext
49954 cat >>conftest.$ac_ext <<_ACEOF
49955 /* end confdefs.h.  */
49956
49957                         #include <time.h>
49958
49959 int
49960 main ()
49961 {
49962
49963                         struct tm t;
49964                         strptime("foo", "bar", &t);
49965
49966   ;
49967   return 0;
49968 }
49969 _ACEOF
49970 rm -f conftest.$ac_objext
49971 if { (ac_try="$ac_compile"
49972 case "(($ac_try" in
49973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49974   *) ac_try_echo=$ac_try;;
49975 esac
49976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49977   (eval "$ac_compile") 2>conftest.er1
49978   ac_status=$?
49979   grep -v '^ *+' conftest.er1 >conftest.err
49980   rm -f conftest.er1
49981   cat conftest.err >&5
49982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49983   (exit $ac_status); } &&
49984          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
49985   { (case "(($ac_try" in
49986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49987   *) ac_try_echo=$ac_try;;
49988 esac
49989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49990   (eval "$ac_try") 2>&5
49991   ac_status=$?
49992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49993   (exit $ac_status); }; } &&
49994          { ac_try='test -s conftest.$ac_objext'
49995   { (case "(($ac_try" in
49996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49997   *) ac_try_echo=$ac_try;;
49998 esac
49999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50000   (eval "$ac_try") 2>&5
50001   ac_status=$?
50002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50003   (exit $ac_status); }; }; then
50004   wx_cv_func_strptime_decl=yes
50005 else
50006   echo "$as_me: failed program was:" >&5
50007 sed 's/^/| /' conftest.$ac_ext >&5
50008
50009         wx_cv_func_strptime_decl=no
50010
50011 fi
50012
50013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50014                 ac_ext=c
50015 ac_cpp='$CPP $CPPFLAGS'
50016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50019
50020
50021
50022 fi
50023 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
50024 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
50025     fi
50026     if test "$wx_cv_func_strptime_decl" = "yes"; then
50027         cat >>confdefs.h <<\_ACEOF
50028 #define HAVE_STRPTIME_DECL 1
50029 _ACEOF
50030
50031     fi
50032
50033             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
50034 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
50035 if test "${wx_cv_var_timezone+set}" = set; then
50036   echo $ECHO_N "(cached) $ECHO_C" >&6
50037 else
50038
50039                         ac_ext=cpp
50040 ac_cpp='$CXXCPP $CPPFLAGS'
50041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50044
50045                         cat >conftest.$ac_ext <<_ACEOF
50046 /* confdefs.h.  */
50047 _ACEOF
50048 cat confdefs.h >>conftest.$ac_ext
50049 cat >>conftest.$ac_ext <<_ACEOF
50050 /* end confdefs.h.  */
50051
50052                                 #include <time.h>
50053
50054 int
50055 main ()
50056 {
50057
50058                                 int tz;
50059                                 tz = timezone;
50060
50061   ;
50062   return 0;
50063 }
50064 _ACEOF
50065 rm -f conftest.$ac_objext
50066 if { (ac_try="$ac_compile"
50067 case "(($ac_try" in
50068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50069   *) ac_try_echo=$ac_try;;
50070 esac
50071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50072   (eval "$ac_compile") 2>conftest.er1
50073   ac_status=$?
50074   grep -v '^ *+' conftest.er1 >conftest.err
50075   rm -f conftest.er1
50076   cat conftest.err >&5
50077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50078   (exit $ac_status); } &&
50079          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
50080   { (case "(($ac_try" in
50081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50082   *) ac_try_echo=$ac_try;;
50083 esac
50084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50085   (eval "$ac_try") 2>&5
50086   ac_status=$?
50087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50088   (exit $ac_status); }; } &&
50089          { ac_try='test -s conftest.$ac_objext'
50090   { (case "(($ac_try" in
50091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50092   *) ac_try_echo=$ac_try;;
50093 esac
50094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50095   (eval "$ac_try") 2>&5
50096   ac_status=$?
50097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50098   (exit $ac_status); }; }; then
50099
50100                                 wx_cv_var_timezone=timezone
50101
50102 else
50103   echo "$as_me: failed program was:" >&5
50104 sed 's/^/| /' conftest.$ac_ext >&5
50105
50106
50107                                 cat >conftest.$ac_ext <<_ACEOF
50108 /* confdefs.h.  */
50109 _ACEOF
50110 cat confdefs.h >>conftest.$ac_ext
50111 cat >>conftest.$ac_ext <<_ACEOF
50112 /* end confdefs.h.  */
50113
50114                                         #include <time.h>
50115
50116 int
50117 main ()
50118 {
50119
50120                                         int tz;
50121                                         tz = _timezone;
50122
50123   ;
50124   return 0;
50125 }
50126 _ACEOF
50127 rm -f conftest.$ac_objext
50128 if { (ac_try="$ac_compile"
50129 case "(($ac_try" in
50130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50131   *) ac_try_echo=$ac_try;;
50132 esac
50133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50134   (eval "$ac_compile") 2>conftest.er1
50135   ac_status=$?
50136   grep -v '^ *+' conftest.er1 >conftest.err
50137   rm -f conftest.er1
50138   cat conftest.err >&5
50139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50140   (exit $ac_status); } &&
50141          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
50142   { (case "(($ac_try" in
50143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50144   *) ac_try_echo=$ac_try;;
50145 esac
50146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50147   (eval "$ac_try") 2>&5
50148   ac_status=$?
50149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50150   (exit $ac_status); }; } &&
50151          { ac_try='test -s conftest.$ac_objext'
50152   { (case "(($ac_try" in
50153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50154   *) ac_try_echo=$ac_try;;
50155 esac
50156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50157   (eval "$ac_try") 2>&5
50158   ac_status=$?
50159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50160   (exit $ac_status); }; }; then
50161
50162                                         wx_cv_var_timezone=_timezone
50163
50164 else
50165   echo "$as_me: failed program was:" >&5
50166 sed 's/^/| /' conftest.$ac_ext >&5
50167
50168
50169                                         cat >conftest.$ac_ext <<_ACEOF
50170 /* confdefs.h.  */
50171 _ACEOF
50172 cat confdefs.h >>conftest.$ac_ext
50173 cat >>conftest.$ac_ext <<_ACEOF
50174 /* end confdefs.h.  */
50175
50176                                                 #include <time.h>
50177
50178 int
50179 main ()
50180 {
50181
50182                                                 int tz;
50183                                                 tz = __timezone;
50184
50185   ;
50186   return 0;
50187 }
50188 _ACEOF
50189 rm -f conftest.$ac_objext
50190 if { (ac_try="$ac_compile"
50191 case "(($ac_try" in
50192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50193   *) ac_try_echo=$ac_try;;
50194 esac
50195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50196   (eval "$ac_compile") 2>conftest.er1
50197   ac_status=$?
50198   grep -v '^ *+' conftest.er1 >conftest.err
50199   rm -f conftest.er1
50200   cat conftest.err >&5
50201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50202   (exit $ac_status); } &&
50203          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
50204   { (case "(($ac_try" in
50205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50206   *) ac_try_echo=$ac_try;;
50207 esac
50208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50209   (eval "$ac_try") 2>&5
50210   ac_status=$?
50211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50212   (exit $ac_status); }; } &&
50213          { ac_try='test -s conftest.$ac_objext'
50214   { (case "(($ac_try" in
50215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50216   *) ac_try_echo=$ac_try;;
50217 esac
50218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50219   (eval "$ac_try") 2>&5
50220   ac_status=$?
50221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50222   (exit $ac_status); }; }; then
50223
50224                                                 wx_cv_var_timezone=__timezone
50225
50226 else
50227   echo "$as_me: failed program was:" >&5
50228 sed 's/^/| /' conftest.$ac_ext >&5
50229
50230
50231                                                 if test "$USE_DOS" = 0 ; then
50232                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
50233 echo "$as_me: WARNING: no timezone variable" >&2;}
50234                                                 fi
50235
50236
50237 fi
50238
50239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50240
50241
50242 fi
50243
50244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50245
50246
50247 fi
50248
50249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50250                         ac_ext=c
50251 ac_cpp='$CPP $CPPFLAGS'
50252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50255
50256
50257
50258 fi
50259 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
50260 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
50261
50262         if test "x$wx_cv_var_timezone" != x ; then
50263         cat >>confdefs.h <<_ACEOF
50264 #define WX_TIMEZONE $wx_cv_var_timezone
50265 _ACEOF
50266
50267     fi
50268
50269
50270 for ac_func in localtime
50271 do
50272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50276   echo $ECHO_N "(cached) $ECHO_C" >&6
50277 else
50278   cat >conftest.$ac_ext <<_ACEOF
50279 /* confdefs.h.  */
50280 _ACEOF
50281 cat confdefs.h >>conftest.$ac_ext
50282 cat >>conftest.$ac_ext <<_ACEOF
50283 /* end confdefs.h.  */
50284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50286 #define $ac_func innocuous_$ac_func
50287
50288 /* System header to define __stub macros and hopefully few prototypes,
50289     which can conflict with char $ac_func (); below.
50290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50291     <limits.h> exists even on freestanding compilers.  */
50292
50293 #ifdef __STDC__
50294 # include <limits.h>
50295 #else
50296 # include <assert.h>
50297 #endif
50298
50299 #undef $ac_func
50300
50301 /* Override any GCC internal prototype to avoid an error.
50302    Use char because int might match the return type of a GCC
50303    builtin and then its argument prototype would still apply.  */
50304 #ifdef __cplusplus
50305 extern "C"
50306 #endif
50307 char $ac_func ();
50308 /* The GNU C library defines this for functions which it implements
50309     to always fail with ENOSYS.  Some functions are actually named
50310     something starting with __ and the normal name is an alias.  */
50311 #if defined __stub_$ac_func || defined __stub___$ac_func
50312 choke me
50313 #endif
50314
50315 int
50316 main ()
50317 {
50318 return $ac_func ();
50319   ;
50320   return 0;
50321 }
50322 _ACEOF
50323 rm -f conftest.$ac_objext conftest$ac_exeext
50324 if { (ac_try="$ac_link"
50325 case "(($ac_try" in
50326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50327   *) ac_try_echo=$ac_try;;
50328 esac
50329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50330   (eval "$ac_link") 2>conftest.er1
50331   ac_status=$?
50332   grep -v '^ *+' conftest.er1 >conftest.err
50333   rm -f conftest.er1
50334   cat conftest.err >&5
50335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50336   (exit $ac_status); } &&
50337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50338   { (case "(($ac_try" in
50339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50340   *) ac_try_echo=$ac_try;;
50341 esac
50342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50343   (eval "$ac_try") 2>&5
50344   ac_status=$?
50345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50346   (exit $ac_status); }; } &&
50347          { ac_try='test -s conftest$ac_exeext'
50348   { (case "(($ac_try" in
50349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50350   *) ac_try_echo=$ac_try;;
50351 esac
50352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50353   (eval "$ac_try") 2>&5
50354   ac_status=$?
50355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50356   (exit $ac_status); }; }; then
50357   eval "$as_ac_var=yes"
50358 else
50359   echo "$as_me: failed program was:" >&5
50360 sed 's/^/| /' conftest.$ac_ext >&5
50361
50362         eval "$as_ac_var=no"
50363 fi
50364
50365 rm -f core conftest.err conftest.$ac_objext \
50366       conftest$ac_exeext conftest.$ac_ext
50367 fi
50368 ac_res=`eval echo '${'$as_ac_var'}'`
50369                { echo "$as_me:$LINENO: result: $ac_res" >&5
50370 echo "${ECHO_T}$ac_res" >&6; }
50371 if test `eval echo '${'$as_ac_var'}'` = yes; then
50372   cat >>confdefs.h <<_ACEOF
50373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50374 _ACEOF
50375
50376 fi
50377 done
50378
50379
50380     if test "$ac_cv_func_localtime" = "yes"; then
50381         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
50382 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
50383 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
50384   echo $ECHO_N "(cached) $ECHO_C" >&6
50385 else
50386
50387             cat >conftest.$ac_ext <<_ACEOF
50388 /* confdefs.h.  */
50389 _ACEOF
50390 cat confdefs.h >>conftest.$ac_ext
50391 cat >>conftest.$ac_ext <<_ACEOF
50392 /* end confdefs.h.  */
50393
50394                     #include <time.h>
50395
50396 int
50397 main ()
50398 {
50399
50400                     struct tm tm;
50401                     tm.tm_gmtoff++;
50402
50403   ;
50404   return 0;
50405 }
50406 _ACEOF
50407 rm -f conftest.$ac_objext
50408 if { (ac_try="$ac_compile"
50409 case "(($ac_try" in
50410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50411   *) ac_try_echo=$ac_try;;
50412 esac
50413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50414   (eval "$ac_compile") 2>conftest.er1
50415   ac_status=$?
50416   grep -v '^ *+' conftest.er1 >conftest.err
50417   rm -f conftest.er1
50418   cat conftest.err >&5
50419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50420   (exit $ac_status); } &&
50421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50422   { (case "(($ac_try" in
50423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50424   *) ac_try_echo=$ac_try;;
50425 esac
50426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50427   (eval "$ac_try") 2>&5
50428   ac_status=$?
50429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50430   (exit $ac_status); }; } &&
50431          { ac_try='test -s conftest.$ac_objext'
50432   { (case "(($ac_try" in
50433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50434   *) ac_try_echo=$ac_try;;
50435 esac
50436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50437   (eval "$ac_try") 2>&5
50438   ac_status=$?
50439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50440   (exit $ac_status); }; }; then
50441
50442                     wx_cv_struct_tm_has_gmtoff=yes
50443
50444 else
50445   echo "$as_me: failed program was:" >&5
50446 sed 's/^/| /' conftest.$ac_ext >&5
50447
50448         wx_cv_struct_tm_has_gmtoff=no
50449
50450 fi
50451
50452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50453
50454 fi
50455 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
50456 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
50457     fi
50458
50459     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
50460         cat >>confdefs.h <<\_ACEOF
50461 #define WX_GMTOFF_IN_TM 1
50462 _ACEOF
50463
50464     fi
50465
50466
50467
50468 for ac_func in gettimeofday ftime
50469 do
50470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50474   echo $ECHO_N "(cached) $ECHO_C" >&6
50475 else
50476   cat >conftest.$ac_ext <<_ACEOF
50477 /* confdefs.h.  */
50478 _ACEOF
50479 cat confdefs.h >>conftest.$ac_ext
50480 cat >>conftest.$ac_ext <<_ACEOF
50481 /* end confdefs.h.  */
50482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50484 #define $ac_func innocuous_$ac_func
50485
50486 /* System header to define __stub macros and hopefully few prototypes,
50487     which can conflict with char $ac_func (); below.
50488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50489     <limits.h> exists even on freestanding compilers.  */
50490
50491 #ifdef __STDC__
50492 # include <limits.h>
50493 #else
50494 # include <assert.h>
50495 #endif
50496
50497 #undef $ac_func
50498
50499 /* Override any GCC internal prototype to avoid an error.
50500    Use char because int might match the return type of a GCC
50501    builtin and then its argument prototype would still apply.  */
50502 #ifdef __cplusplus
50503 extern "C"
50504 #endif
50505 char $ac_func ();
50506 /* The GNU C library defines this for functions which it implements
50507     to always fail with ENOSYS.  Some functions are actually named
50508     something starting with __ and the normal name is an alias.  */
50509 #if defined __stub_$ac_func || defined __stub___$ac_func
50510 choke me
50511 #endif
50512
50513 int
50514 main ()
50515 {
50516 return $ac_func ();
50517   ;
50518   return 0;
50519 }
50520 _ACEOF
50521 rm -f conftest.$ac_objext conftest$ac_exeext
50522 if { (ac_try="$ac_link"
50523 case "(($ac_try" in
50524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50525   *) ac_try_echo=$ac_try;;
50526 esac
50527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50528   (eval "$ac_link") 2>conftest.er1
50529   ac_status=$?
50530   grep -v '^ *+' conftest.er1 >conftest.err
50531   rm -f conftest.er1
50532   cat conftest.err >&5
50533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50534   (exit $ac_status); } &&
50535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50536   { (case "(($ac_try" in
50537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50538   *) ac_try_echo=$ac_try;;
50539 esac
50540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50541   (eval "$ac_try") 2>&5
50542   ac_status=$?
50543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50544   (exit $ac_status); }; } &&
50545          { ac_try='test -s conftest$ac_exeext'
50546   { (case "(($ac_try" in
50547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50548   *) ac_try_echo=$ac_try;;
50549 esac
50550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50551   (eval "$ac_try") 2>&5
50552   ac_status=$?
50553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50554   (exit $ac_status); }; }; then
50555   eval "$as_ac_var=yes"
50556 else
50557   echo "$as_me: failed program was:" >&5
50558 sed 's/^/| /' conftest.$ac_ext >&5
50559
50560         eval "$as_ac_var=no"
50561 fi
50562
50563 rm -f core conftest.err conftest.$ac_objext \
50564       conftest$ac_exeext conftest.$ac_ext
50565 fi
50566 ac_res=`eval echo '${'$as_ac_var'}'`
50567                { echo "$as_me:$LINENO: result: $ac_res" >&5
50568 echo "${ECHO_T}$ac_res" >&6; }
50569 if test `eval echo '${'$as_ac_var'}'` = yes; then
50570   cat >>confdefs.h <<_ACEOF
50571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50572 _ACEOF
50573  break
50574 fi
50575 done
50576
50577
50578     if test "$ac_cv_func_gettimeofday" = "yes"; then
50579         { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
50580 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
50581 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
50582   echo $ECHO_N "(cached) $ECHO_C" >&6
50583 else
50584
50585                         cat >conftest.$ac_ext <<_ACEOF
50586 /* confdefs.h.  */
50587 _ACEOF
50588 cat confdefs.h >>conftest.$ac_ext
50589 cat >>conftest.$ac_ext <<_ACEOF
50590 /* end confdefs.h.  */
50591
50592                     #include <sys/time.h>
50593                     #include <unistd.h>
50594
50595 int
50596 main ()
50597 {
50598
50599                     struct timeval tv;
50600                     gettimeofday(&tv, NULL);
50601
50602   ;
50603   return 0;
50604 }
50605 _ACEOF
50606 rm -f conftest.$ac_objext
50607 if { (ac_try="$ac_compile"
50608 case "(($ac_try" in
50609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50610   *) ac_try_echo=$ac_try;;
50611 esac
50612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50613   (eval "$ac_compile") 2>conftest.er1
50614   ac_status=$?
50615   grep -v '^ *+' conftest.er1 >conftest.err
50616   rm -f conftest.er1
50617   cat conftest.err >&5
50618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50619   (exit $ac_status); } &&
50620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50621   { (case "(($ac_try" in
50622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50623   *) ac_try_echo=$ac_try;;
50624 esac
50625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50626   (eval "$ac_try") 2>&5
50627   ac_status=$?
50628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50629   (exit $ac_status); }; } &&
50630          { ac_try='test -s conftest.$ac_objext'
50631   { (case "(($ac_try" in
50632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50633   *) ac_try_echo=$ac_try;;
50634 esac
50635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50636   (eval "$ac_try") 2>&5
50637   ac_status=$?
50638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50639   (exit $ac_status); }; }; then
50640   wx_cv_func_gettimeofday_has_2_args=yes
50641 else
50642   echo "$as_me: failed program was:" >&5
50643 sed 's/^/| /' conftest.$ac_ext >&5
50644
50645         cat >conftest.$ac_ext <<_ACEOF
50646 /* confdefs.h.  */
50647 _ACEOF
50648 cat confdefs.h >>conftest.$ac_ext
50649 cat >>conftest.$ac_ext <<_ACEOF
50650 /* end confdefs.h.  */
50651
50652                         #include <sys/time.h>
50653                         #include <unistd.h>
50654
50655 int
50656 main ()
50657 {
50658
50659                         struct timeval tv;
50660                         gettimeofday(&tv);
50661
50662   ;
50663   return 0;
50664 }
50665 _ACEOF
50666 rm -f conftest.$ac_objext
50667 if { (ac_try="$ac_compile"
50668 case "(($ac_try" in
50669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50670   *) ac_try_echo=$ac_try;;
50671 esac
50672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50673   (eval "$ac_compile") 2>conftest.er1
50674   ac_status=$?
50675   grep -v '^ *+' conftest.er1 >conftest.err
50676   rm -f conftest.er1
50677   cat conftest.err >&5
50678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50679   (exit $ac_status); } &&
50680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50681   { (case "(($ac_try" in
50682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50683   *) ac_try_echo=$ac_try;;
50684 esac
50685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50686   (eval "$ac_try") 2>&5
50687   ac_status=$?
50688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50689   (exit $ac_status); }; } &&
50690          { ac_try='test -s conftest.$ac_objext'
50691   { (case "(($ac_try" in
50692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50693   *) ac_try_echo=$ac_try;;
50694 esac
50695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50696   (eval "$ac_try") 2>&5
50697   ac_status=$?
50698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50699   (exit $ac_status); }; }; then
50700   wx_cv_func_gettimeofday_has_2_args=no
50701 else
50702   echo "$as_me: failed program was:" >&5
50703 sed 's/^/| /' conftest.$ac_ext >&5
50704
50705
50706                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
50707 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
50708                         wx_cv_func_gettimeofday_has_2_args=unknown
50709
50710
50711 fi
50712
50713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50714
50715 fi
50716
50717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50718
50719 fi
50720 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
50721 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
50722
50723         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
50724             cat >>confdefs.h <<\_ACEOF
50725 #define WX_GETTIMEOFDAY_NO_TZ 1
50726 _ACEOF
50727
50728         fi
50729     fi
50730
50731     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
50732 fi
50733
50734
50735 if test "$wxUSE_SOCKETS" = "yes"; then
50736     if test "$wxUSE_MGL" = "1"; then
50737         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
50738 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
50739         wxUSE_SOCKETS="no"
50740     fi
50741 fi
50742
50743 if test "$wxUSE_SOCKETS" = "yes"; then
50744         if test "$TOOLKIT" != "MSW"; then
50745                 { echo "$as_me:$LINENO: checking for socket" >&5
50746 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
50747 if test "${ac_cv_func_socket+set}" = set; then
50748   echo $ECHO_N "(cached) $ECHO_C" >&6
50749 else
50750   cat >conftest.$ac_ext <<_ACEOF
50751 /* confdefs.h.  */
50752 _ACEOF
50753 cat confdefs.h >>conftest.$ac_ext
50754 cat >>conftest.$ac_ext <<_ACEOF
50755 /* end confdefs.h.  */
50756 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
50757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50758 #define socket innocuous_socket
50759
50760 /* System header to define __stub macros and hopefully few prototypes,
50761     which can conflict with char socket (); below.
50762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50763     <limits.h> exists even on freestanding compilers.  */
50764
50765 #ifdef __STDC__
50766 # include <limits.h>
50767 #else
50768 # include <assert.h>
50769 #endif
50770
50771 #undef socket
50772
50773 /* Override any GCC internal prototype to avoid an error.
50774    Use char because int might match the return type of a GCC
50775    builtin and then its argument prototype would still apply.  */
50776 #ifdef __cplusplus
50777 extern "C"
50778 #endif
50779 char socket ();
50780 /* The GNU C library defines this for functions which it implements
50781     to always fail with ENOSYS.  Some functions are actually named
50782     something starting with __ and the normal name is an alias.  */
50783 #if defined __stub_socket || defined __stub___socket
50784 choke me
50785 #endif
50786
50787 int
50788 main ()
50789 {
50790 return socket ();
50791   ;
50792   return 0;
50793 }
50794 _ACEOF
50795 rm -f conftest.$ac_objext conftest$ac_exeext
50796 if { (ac_try="$ac_link"
50797 case "(($ac_try" in
50798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50799   *) ac_try_echo=$ac_try;;
50800 esac
50801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50802   (eval "$ac_link") 2>conftest.er1
50803   ac_status=$?
50804   grep -v '^ *+' conftest.er1 >conftest.err
50805   rm -f conftest.er1
50806   cat conftest.err >&5
50807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50808   (exit $ac_status); } &&
50809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50810   { (case "(($ac_try" in
50811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50812   *) ac_try_echo=$ac_try;;
50813 esac
50814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50815   (eval "$ac_try") 2>&5
50816   ac_status=$?
50817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50818   (exit $ac_status); }; } &&
50819          { ac_try='test -s conftest$ac_exeext'
50820   { (case "(($ac_try" in
50821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50822   *) ac_try_echo=$ac_try;;
50823 esac
50824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50825   (eval "$ac_try") 2>&5
50826   ac_status=$?
50827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50828   (exit $ac_status); }; }; then
50829   ac_cv_func_socket=yes
50830 else
50831   echo "$as_me: failed program was:" >&5
50832 sed 's/^/| /' conftest.$ac_ext >&5
50833
50834         ac_cv_func_socket=no
50835 fi
50836
50837 rm -f core conftest.err conftest.$ac_objext \
50838       conftest$ac_exeext conftest.$ac_ext
50839 fi
50840 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
50841 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
50842 if test $ac_cv_func_socket = yes; then
50843   :
50844 else
50845
50846                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
50847 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
50848 if test "${ac_cv_lib_socket_socket+set}" = set; then
50849   echo $ECHO_N "(cached) $ECHO_C" >&6
50850 else
50851   ac_check_lib_save_LIBS=$LIBS
50852 LIBS="-lsocket  $LIBS"
50853 cat >conftest.$ac_ext <<_ACEOF
50854 /* confdefs.h.  */
50855 _ACEOF
50856 cat confdefs.h >>conftest.$ac_ext
50857 cat >>conftest.$ac_ext <<_ACEOF
50858 /* end confdefs.h.  */
50859
50860 /* Override any GCC internal prototype to avoid an error.
50861    Use char because int might match the return type of a GCC
50862    builtin and then its argument prototype would still apply.  */
50863 #ifdef __cplusplus
50864 extern "C"
50865 #endif
50866 char socket ();
50867 int
50868 main ()
50869 {
50870 return socket ();
50871   ;
50872   return 0;
50873 }
50874 _ACEOF
50875 rm -f conftest.$ac_objext conftest$ac_exeext
50876 if { (ac_try="$ac_link"
50877 case "(($ac_try" in
50878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50879   *) ac_try_echo=$ac_try;;
50880 esac
50881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50882   (eval "$ac_link") 2>conftest.er1
50883   ac_status=$?
50884   grep -v '^ *+' conftest.er1 >conftest.err
50885   rm -f conftest.er1
50886   cat conftest.err >&5
50887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50888   (exit $ac_status); } &&
50889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50890   { (case "(($ac_try" in
50891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50892   *) ac_try_echo=$ac_try;;
50893 esac
50894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50895   (eval "$ac_try") 2>&5
50896   ac_status=$?
50897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50898   (exit $ac_status); }; } &&
50899          { ac_try='test -s conftest$ac_exeext'
50900   { (case "(($ac_try" in
50901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50902   *) ac_try_echo=$ac_try;;
50903 esac
50904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50905   (eval "$ac_try") 2>&5
50906   ac_status=$?
50907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50908   (exit $ac_status); }; }; then
50909   ac_cv_lib_socket_socket=yes
50910 else
50911   echo "$as_me: failed program was:" >&5
50912 sed 's/^/| /' conftest.$ac_ext >&5
50913
50914         ac_cv_lib_socket_socket=no
50915 fi
50916
50917 rm -f core conftest.err conftest.$ac_objext \
50918       conftest$ac_exeext conftest.$ac_ext
50919 LIBS=$ac_check_lib_save_LIBS
50920 fi
50921 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
50922 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
50923 if test $ac_cv_lib_socket_socket = yes; then
50924   if test "$INET_LINK" != " -lsocket"; then
50925                         INET_LINK="$INET_LINK -lsocket"
50926                     fi
50927 else
50928
50929                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
50930 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
50931                         wxUSE_SOCKETS=no
50932
50933
50934 fi
50935
50936
50937
50938 fi
50939
50940     fi
50941 fi
50942
50943 if test "$wxUSE_SOCKETS" = "yes" ; then
50944                 if test "$TOOLKIT" != "MSW"; then
50945                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
50946 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
50947 if test "${wx_cv_type_getsockname3+set}" = set; then
50948   echo $ECHO_N "(cached) $ECHO_C" >&6
50949 else
50950
50951                 ac_ext=cpp
50952 ac_cpp='$CXXCPP $CPPFLAGS'
50953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50956
50957                 cat >conftest.$ac_ext <<_ACEOF
50958 /* confdefs.h.  */
50959 _ACEOF
50960 cat confdefs.h >>conftest.$ac_ext
50961 cat >>conftest.$ac_ext <<_ACEOF
50962 /* end confdefs.h.  */
50963
50964                         #include <sys/types.h>
50965                         #include <sys/socket.h>
50966
50967 int
50968 main ()
50969 {
50970
50971                         socklen_t len;
50972                         getsockname(0, 0, &len);
50973
50974   ;
50975   return 0;
50976 }
50977 _ACEOF
50978 rm -f conftest.$ac_objext
50979 if { (ac_try="$ac_compile"
50980 case "(($ac_try" in
50981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50982   *) ac_try_echo=$ac_try;;
50983 esac
50984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50985   (eval "$ac_compile") 2>conftest.er1
50986   ac_status=$?
50987   grep -v '^ *+' conftest.er1 >conftest.err
50988   rm -f conftest.er1
50989   cat conftest.err >&5
50990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50991   (exit $ac_status); } &&
50992          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
50993   { (case "(($ac_try" in
50994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50995   *) ac_try_echo=$ac_try;;
50996 esac
50997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50998   (eval "$ac_try") 2>&5
50999   ac_status=$?
51000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51001   (exit $ac_status); }; } &&
51002          { ac_try='test -s conftest.$ac_objext'
51003   { (case "(($ac_try" in
51004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51005   *) ac_try_echo=$ac_try;;
51006 esac
51007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51008   (eval "$ac_try") 2>&5
51009   ac_status=$?
51010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51011   (exit $ac_status); }; }; then
51012   wx_cv_type_getsockname3=socklen_t
51013 else
51014   echo "$as_me: failed program was:" >&5
51015 sed 's/^/| /' conftest.$ac_ext >&5
51016
51017
51018                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
51019                         if test "$GCC" = yes ; then
51020                             CFLAGS="-Werror $CFLAGS"
51021                         fi
51022
51023                         cat >conftest.$ac_ext <<_ACEOF
51024 /* confdefs.h.  */
51025 _ACEOF
51026 cat confdefs.h >>conftest.$ac_ext
51027 cat >>conftest.$ac_ext <<_ACEOF
51028 /* end confdefs.h.  */
51029
51030                                 #include <sys/types.h>
51031                                 #include <sys/socket.h>
51032
51033 int
51034 main ()
51035 {
51036
51037                                 size_t len;
51038                                 getsockname(0, 0, &len);
51039
51040   ;
51041   return 0;
51042 }
51043 _ACEOF
51044 rm -f conftest.$ac_objext
51045 if { (ac_try="$ac_compile"
51046 case "(($ac_try" in
51047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51048   *) ac_try_echo=$ac_try;;
51049 esac
51050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51051   (eval "$ac_compile") 2>conftest.er1
51052   ac_status=$?
51053   grep -v '^ *+' conftest.er1 >conftest.err
51054   rm -f conftest.er1
51055   cat conftest.err >&5
51056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51057   (exit $ac_status); } &&
51058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51059   { (case "(($ac_try" in
51060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51061   *) ac_try_echo=$ac_try;;
51062 esac
51063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51064   (eval "$ac_try") 2>&5
51065   ac_status=$?
51066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51067   (exit $ac_status); }; } &&
51068          { ac_try='test -s conftest.$ac_objext'
51069   { (case "(($ac_try" in
51070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51071   *) ac_try_echo=$ac_try;;
51072 esac
51073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51074   (eval "$ac_try") 2>&5
51075   ac_status=$?
51076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51077   (exit $ac_status); }; }; then
51078   wx_cv_type_getsockname3=size_t
51079 else
51080   echo "$as_me: failed program was:" >&5
51081 sed 's/^/| /' conftest.$ac_ext >&5
51082
51083         cat >conftest.$ac_ext <<_ACEOF
51084 /* confdefs.h.  */
51085 _ACEOF
51086 cat confdefs.h >>conftest.$ac_ext
51087 cat >>conftest.$ac_ext <<_ACEOF
51088 /* end confdefs.h.  */
51089
51090                                     #include <sys/types.h>
51091                                     #include <sys/socket.h>
51092
51093 int
51094 main ()
51095 {
51096
51097                                     int len;
51098                                     getsockname(0, 0, &len);
51099
51100   ;
51101   return 0;
51102 }
51103 _ACEOF
51104 rm -f conftest.$ac_objext
51105 if { (ac_try="$ac_compile"
51106 case "(($ac_try" in
51107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51108   *) ac_try_echo=$ac_try;;
51109 esac
51110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51111   (eval "$ac_compile") 2>conftest.er1
51112   ac_status=$?
51113   grep -v '^ *+' conftest.er1 >conftest.err
51114   rm -f conftest.er1
51115   cat conftest.err >&5
51116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51117   (exit $ac_status); } &&
51118          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51119   { (case "(($ac_try" in
51120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51121   *) ac_try_echo=$ac_try;;
51122 esac
51123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51124   (eval "$ac_try") 2>&5
51125   ac_status=$?
51126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51127   (exit $ac_status); }; } &&
51128          { ac_try='test -s conftest.$ac_objext'
51129   { (case "(($ac_try" in
51130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51131   *) ac_try_echo=$ac_try;;
51132 esac
51133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51134   (eval "$ac_try") 2>&5
51135   ac_status=$?
51136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51137   (exit $ac_status); }; }; then
51138   wx_cv_type_getsockname3=int
51139 else
51140   echo "$as_me: failed program was:" >&5
51141 sed 's/^/| /' conftest.$ac_ext >&5
51142
51143         wx_cv_type_getsockname3=unknown
51144
51145 fi
51146
51147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51148
51149 fi
51150
51151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51152
51153                         CFLAGS="$CFLAGS_OLD"
51154
51155
51156 fi
51157
51158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51159                 ac_ext=c
51160 ac_cpp='$CPP $CPPFLAGS'
51161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51164
51165
51166 fi
51167 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
51168 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
51169
51170         if test "$wx_cv_type_getsockname3" = "unknown"; then
51171             wxUSE_SOCKETS=no
51172             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
51173 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
51174         else
51175             cat >>confdefs.h <<_ACEOF
51176 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
51177 _ACEOF
51178
51179         fi
51180                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
51181 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
51182 if test "${wx_cv_type_getsockopt5+set}" = set; then
51183   echo $ECHO_N "(cached) $ECHO_C" >&6
51184 else
51185
51186                 cat >conftest.$ac_ext <<_ACEOF
51187 /* confdefs.h.  */
51188 _ACEOF
51189 cat confdefs.h >>conftest.$ac_ext
51190 cat >>conftest.$ac_ext <<_ACEOF
51191 /* end confdefs.h.  */
51192
51193                         #include <sys/types.h>
51194                         #include <sys/socket.h>
51195
51196 int
51197 main ()
51198 {
51199
51200                         socklen_t len;
51201                         getsockopt(0, 0, 0, 0, &len);
51202
51203   ;
51204   return 0;
51205 }
51206 _ACEOF
51207 rm -f conftest.$ac_objext
51208 if { (ac_try="$ac_compile"
51209 case "(($ac_try" in
51210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51211   *) ac_try_echo=$ac_try;;
51212 esac
51213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51214   (eval "$ac_compile") 2>conftest.er1
51215   ac_status=$?
51216   grep -v '^ *+' conftest.er1 >conftest.err
51217   rm -f conftest.er1
51218   cat conftest.err >&5
51219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51220   (exit $ac_status); } &&
51221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51222   { (case "(($ac_try" in
51223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51224   *) ac_try_echo=$ac_try;;
51225 esac
51226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51227   (eval "$ac_try") 2>&5
51228   ac_status=$?
51229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51230   (exit $ac_status); }; } &&
51231          { ac_try='test -s conftest.$ac_objext'
51232   { (case "(($ac_try" in
51233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51234   *) ac_try_echo=$ac_try;;
51235 esac
51236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51237   (eval "$ac_try") 2>&5
51238   ac_status=$?
51239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51240   (exit $ac_status); }; }; then
51241   wx_cv_type_getsockopt5=socklen_t
51242 else
51243   echo "$as_me: failed program was:" >&5
51244 sed 's/^/| /' conftest.$ac_ext >&5
51245
51246
51247                                                                                                                                                 ac_ext=cpp
51248 ac_cpp='$CXXCPP $CPPFLAGS'
51249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51252
51253                         cat >conftest.$ac_ext <<_ACEOF
51254 /* confdefs.h.  */
51255 _ACEOF
51256 cat confdefs.h >>conftest.$ac_ext
51257 cat >>conftest.$ac_ext <<_ACEOF
51258 /* end confdefs.h.  */
51259
51260                                 #include <sys/types.h>
51261                                 #include <sys/socket.h>
51262
51263 int
51264 main ()
51265 {
51266
51267                                 size_t len;
51268                                 getsockopt(0, 0, 0, 0, &len);
51269
51270   ;
51271   return 0;
51272 }
51273 _ACEOF
51274 rm -f conftest.$ac_objext
51275 if { (ac_try="$ac_compile"
51276 case "(($ac_try" in
51277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51278   *) ac_try_echo=$ac_try;;
51279 esac
51280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51281   (eval "$ac_compile") 2>conftest.er1
51282   ac_status=$?
51283   grep -v '^ *+' conftest.er1 >conftest.err
51284   rm -f conftest.er1
51285   cat conftest.err >&5
51286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51287   (exit $ac_status); } &&
51288          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51289   { (case "(($ac_try" in
51290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51291   *) ac_try_echo=$ac_try;;
51292 esac
51293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51294   (eval "$ac_try") 2>&5
51295   ac_status=$?
51296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51297   (exit $ac_status); }; } &&
51298          { ac_try='test -s conftest.$ac_objext'
51299   { (case "(($ac_try" in
51300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51301   *) ac_try_echo=$ac_try;;
51302 esac
51303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51304   (eval "$ac_try") 2>&5
51305   ac_status=$?
51306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51307   (exit $ac_status); }; }; then
51308   wx_cv_type_getsockopt5=size_t
51309 else
51310   echo "$as_me: failed program was:" >&5
51311 sed 's/^/| /' conftest.$ac_ext >&5
51312
51313         cat >conftest.$ac_ext <<_ACEOF
51314 /* confdefs.h.  */
51315 _ACEOF
51316 cat confdefs.h >>conftest.$ac_ext
51317 cat >>conftest.$ac_ext <<_ACEOF
51318 /* end confdefs.h.  */
51319
51320                                     #include <sys/types.h>
51321                                     #include <sys/socket.h>
51322
51323 int
51324 main ()
51325 {
51326
51327                                     int len;
51328                                     getsockopt(0, 0, 0, 0, &len);
51329
51330   ;
51331   return 0;
51332 }
51333 _ACEOF
51334 rm -f conftest.$ac_objext
51335 if { (ac_try="$ac_compile"
51336 case "(($ac_try" in
51337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51338   *) ac_try_echo=$ac_try;;
51339 esac
51340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51341   (eval "$ac_compile") 2>conftest.er1
51342   ac_status=$?
51343   grep -v '^ *+' conftest.er1 >conftest.err
51344   rm -f conftest.er1
51345   cat conftest.err >&5
51346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51347   (exit $ac_status); } &&
51348          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51349   { (case "(($ac_try" in
51350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51351   *) ac_try_echo=$ac_try;;
51352 esac
51353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51354   (eval "$ac_try") 2>&5
51355   ac_status=$?
51356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51357   (exit $ac_status); }; } &&
51358          { ac_try='test -s conftest.$ac_objext'
51359   { (case "(($ac_try" in
51360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51361   *) ac_try_echo=$ac_try;;
51362 esac
51363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51364   (eval "$ac_try") 2>&5
51365   ac_status=$?
51366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51367   (exit $ac_status); }; }; then
51368   wx_cv_type_getsockopt5=int
51369 else
51370   echo "$as_me: failed program was:" >&5
51371 sed 's/^/| /' conftest.$ac_ext >&5
51372
51373         wx_cv_type_getsockopt5=unknown
51374
51375 fi
51376
51377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51378
51379 fi
51380
51381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51382                         ac_ext=c
51383 ac_cpp='$CPP $CPPFLAGS'
51384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51387
51388
51389
51390 fi
51391
51392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51393
51394 fi
51395 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
51396 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
51397
51398         if test "$wx_cv_type_getsockopt5" = "unknown"; then
51399             wxUSE_SOCKETS=no
51400             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
51401 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
51402         else
51403             cat >>confdefs.h <<_ACEOF
51404 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
51405 _ACEOF
51406
51407         fi
51408     fi
51409 fi
51410
51411 if test "$wxUSE_SOCKETS" = "yes" ; then
51412     cat >>confdefs.h <<\_ACEOF
51413 #define wxUSE_SOCKETS 1
51414 _ACEOF
51415
51416     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
51417 fi
51418
51419 if test "$wxUSE_PROTOCOL" = "yes"; then
51420     if test "$wxUSE_SOCKETS" != "yes"; then
51421         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
51422 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
51423         wxUSE_PROTOCOL=no
51424     fi
51425 fi
51426
51427 if test "$wxUSE_PROTOCOL" = "yes"; then
51428     cat >>confdefs.h <<\_ACEOF
51429 #define wxUSE_PROTOCOL 1
51430 _ACEOF
51431
51432
51433     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
51434         cat >>confdefs.h <<\_ACEOF
51435 #define wxUSE_PROTOCOL_HTTP 1
51436 _ACEOF
51437
51438     fi
51439     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
51440         cat >>confdefs.h <<\_ACEOF
51441 #define wxUSE_PROTOCOL_FTP 1
51442 _ACEOF
51443
51444     fi
51445     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
51446         cat >>confdefs.h <<\_ACEOF
51447 #define wxUSE_PROTOCOL_FILE 1
51448 _ACEOF
51449
51450     fi
51451 else
51452     if test "$wxUSE_FS_INET" = "yes"; then
51453         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
51454 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
51455         wxUSE_FS_INET="no"
51456     fi
51457 fi
51458
51459 if test "$wxUSE_URL" = "yes"; then
51460     if test "$wxUSE_PROTOCOL" != "yes"; then
51461         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
51462 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
51463         wxUSE_URL=no
51464     fi
51465     if test "$wxUSE_URL" = "yes"; then
51466         cat >>confdefs.h <<\_ACEOF
51467 #define wxUSE_URL 1
51468 _ACEOF
51469
51470     fi
51471 fi
51472
51473 if test "$wxUSE_VARIANT" = "yes"; then
51474     cat >>confdefs.h <<\_ACEOF
51475 #define wxUSE_VARIANT 1
51476 _ACEOF
51477
51478 fi
51479
51480 if test "$wxUSE_FS_INET" = "yes"; then
51481   cat >>confdefs.h <<\_ACEOF
51482 #define wxUSE_FS_INET 1
51483 _ACEOF
51484
51485 fi
51486
51487
51488 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
51489     wxUSE_JOYSTICK=no
51490
51491         if test "$TOOLKIT" = "MSW"; then
51492         wxUSE_JOYSTICK=yes
51493
51494         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
51495         if test "$USE_DARWIN" = 1; then
51496                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
51497 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
51498             ac_ext=cpp
51499 ac_cpp='$CXXCPP $CPPFLAGS'
51500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51503
51504             cat >conftest.$ac_ext <<_ACEOF
51505 /* confdefs.h.  */
51506 _ACEOF
51507 cat confdefs.h >>conftest.$ac_ext
51508 cat >>conftest.$ac_ext <<_ACEOF
51509 /* end confdefs.h.  */
51510  #include <IOKit/hid/IOHIDLib.h>
51511 int
51512 main ()
51513 {
51514  IOHIDQueueInterface *qi = NULL;
51515                               IOHIDCallbackFunction cb = NULL;
51516                               qi->setEventCallout(NULL, cb, NULL, NULL);
51517   ;
51518   return 0;
51519 }
51520 _ACEOF
51521 rm -f conftest.$ac_objext
51522 if { (ac_try="$ac_compile"
51523 case "(($ac_try" in
51524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51525   *) ac_try_echo=$ac_try;;
51526 esac
51527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51528   (eval "$ac_compile") 2>conftest.er1
51529   ac_status=$?
51530   grep -v '^ *+' conftest.er1 >conftest.err
51531   rm -f conftest.er1
51532   cat conftest.err >&5
51533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51534   (exit $ac_status); } &&
51535          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51536   { (case "(($ac_try" in
51537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51538   *) ac_try_echo=$ac_try;;
51539 esac
51540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51541   (eval "$ac_try") 2>&5
51542   ac_status=$?
51543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51544   (exit $ac_status); }; } &&
51545          { ac_try='test -s conftest.$ac_objext'
51546   { (case "(($ac_try" in
51547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51548   *) ac_try_echo=$ac_try;;
51549 esac
51550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51551   (eval "$ac_try") 2>&5
51552   ac_status=$?
51553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51554   (exit $ac_status); }; }; then
51555    wxUSE_JOYSTICK=yes
51556
51557 else
51558   echo "$as_me: failed program was:" >&5
51559 sed 's/^/| /' conftest.$ac_ext >&5
51560
51561
51562 fi
51563
51564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51565             ac_ext=c
51566 ac_cpp='$CPP $CPPFLAGS'
51567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51570
51571             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
51572 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
51573         fi
51574
51575         else
51576                 if test "$wxUSE_MGL" != "1"; then
51577                                                                                     { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
51578 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
51579 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
51580   echo $ECHO_N "(cached) $ECHO_C" >&6
51581 else
51582   cat >conftest.$ac_ext <<_ACEOF
51583 /* confdefs.h.  */
51584 _ACEOF
51585 cat confdefs.h >>conftest.$ac_ext
51586 cat >>conftest.$ac_ext <<_ACEOF
51587 /* end confdefs.h.  */
51588 #include <stdio.h>
51589
51590 #include <linux/joystick.h>
51591 _ACEOF
51592 rm -f conftest.$ac_objext
51593 if { (ac_try="$ac_compile"
51594 case "(($ac_try" in
51595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51596   *) ac_try_echo=$ac_try;;
51597 esac
51598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51599   (eval "$ac_compile") 2>conftest.er1
51600   ac_status=$?
51601   grep -v '^ *+' conftest.er1 >conftest.err
51602   rm -f conftest.er1
51603   cat conftest.err >&5
51604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51605   (exit $ac_status); } &&
51606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51607   { (case "(($ac_try" in
51608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51609   *) ac_try_echo=$ac_try;;
51610 esac
51611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51612   (eval "$ac_try") 2>&5
51613   ac_status=$?
51614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51615   (exit $ac_status); }; } &&
51616          { ac_try='test -s conftest.$ac_objext'
51617   { (case "(($ac_try" in
51618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51619   *) ac_try_echo=$ac_try;;
51620 esac
51621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51622   (eval "$ac_try") 2>&5
51623   ac_status=$?
51624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51625   (exit $ac_status); }; }; then
51626   ac_cv_header_linux_joystick_h=yes
51627 else
51628   echo "$as_me: failed program was:" >&5
51629 sed 's/^/| /' conftest.$ac_ext >&5
51630
51631         ac_cv_header_linux_joystick_h=no
51632 fi
51633
51634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51635 fi
51636 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
51637 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
51638 if test $ac_cv_header_linux_joystick_h = yes; then
51639   wxUSE_JOYSTICK=yes
51640 fi
51641
51642
51643         fi
51644     fi
51645
51646     if test "$wxUSE_JOYSTICK" = "yes"; then
51647         cat >>confdefs.h <<\_ACEOF
51648 #define wxUSE_JOYSTICK 1
51649 _ACEOF
51650
51651         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
51652     else
51653         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
51654 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
51655     fi
51656 fi
51657
51658
51659
51660 if test "$wxUSE_FONTMAP" = "yes" ; then
51661   cat >>confdefs.h <<\_ACEOF
51662 #define wxUSE_FONTMAP 1
51663 _ACEOF
51664
51665 fi
51666
51667 if test "$wxUSE_UNICODE" = "yes" ; then
51668   cat >>confdefs.h <<\_ACEOF
51669 #define wxUSE_UNICODE 1
51670 _ACEOF
51671
51672
51673   if test "$USE_WIN32" != 1; then
51674       wxUSE_UNICODE_MSLU=no
51675   fi
51676
51677   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
51678         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
51679 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
51680 if test "${ac_cv_lib_unicows_main+set}" = set; then
51681   echo $ECHO_N "(cached) $ECHO_C" >&6
51682 else
51683   ac_check_lib_save_LIBS=$LIBS
51684 LIBS="-lunicows  $LIBS"
51685 cat >conftest.$ac_ext <<_ACEOF
51686 /* confdefs.h.  */
51687 _ACEOF
51688 cat confdefs.h >>conftest.$ac_ext
51689 cat >>conftest.$ac_ext <<_ACEOF
51690 /* end confdefs.h.  */
51691
51692
51693 int
51694 main ()
51695 {
51696 return main ();
51697   ;
51698   return 0;
51699 }
51700 _ACEOF
51701 rm -f conftest.$ac_objext conftest$ac_exeext
51702 if { (ac_try="$ac_link"
51703 case "(($ac_try" in
51704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51705   *) ac_try_echo=$ac_try;;
51706 esac
51707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51708   (eval "$ac_link") 2>conftest.er1
51709   ac_status=$?
51710   grep -v '^ *+' conftest.er1 >conftest.err
51711   rm -f conftest.er1
51712   cat conftest.err >&5
51713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51714   (exit $ac_status); } &&
51715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51716   { (case "(($ac_try" in
51717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51718   *) ac_try_echo=$ac_try;;
51719 esac
51720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51721   (eval "$ac_try") 2>&5
51722   ac_status=$?
51723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51724   (exit $ac_status); }; } &&
51725          { ac_try='test -s conftest$ac_exeext'
51726   { (case "(($ac_try" in
51727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51728   *) ac_try_echo=$ac_try;;
51729 esac
51730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51731   (eval "$ac_try") 2>&5
51732   ac_status=$?
51733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51734   (exit $ac_status); }; }; then
51735   ac_cv_lib_unicows_main=yes
51736 else
51737   echo "$as_me: failed program was:" >&5
51738 sed 's/^/| /' conftest.$ac_ext >&5
51739
51740         ac_cv_lib_unicows_main=no
51741 fi
51742
51743 rm -f core conftest.err conftest.$ac_objext \
51744       conftest$ac_exeext conftest.$ac_ext
51745 LIBS=$ac_check_lib_save_LIBS
51746 fi
51747 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
51748 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
51749 if test $ac_cv_lib_unicows_main = yes; then
51750
51751                 cat >>confdefs.h <<\_ACEOF
51752 #define wxUSE_UNICODE_MSLU 1
51753 _ACEOF
51754
51755
51756 else
51757
51758                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
51759                              Applications will only run on Windows NT/2000/XP!" >&5
51760 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
51761                              Applications will only run on Windows NT/2000/XP!" >&2;}
51762                 wxUSE_UNICODE_MSLU=no
51763
51764 fi
51765
51766     fi
51767 fi
51768
51769 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
51770   cat >>confdefs.h <<\_ACEOF
51771 #define wxUSE_EXPERIMENTAL_PRINTF 1
51772 _ACEOF
51773
51774 fi
51775
51776
51777 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
51778   cat >>confdefs.h <<\_ACEOF
51779 #define wxUSE_POSTSCRIPT 1
51780 _ACEOF
51781
51782 fi
51783
51784 cat >>confdefs.h <<\_ACEOF
51785 #define wxUSE_AFM_FOR_POSTSCRIPT 1
51786 _ACEOF
51787
51788
51789 cat >>confdefs.h <<\_ACEOF
51790 #define wxUSE_NORMALIZED_PS_FONTS 1
51791 _ACEOF
51792
51793
51794
51795 if test "$wxUSE_CONSTRAINTS" = "yes"; then
51796     cat >>confdefs.h <<\_ACEOF
51797 #define wxUSE_CONSTRAINTS 1
51798 _ACEOF
51799
51800     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
51801 fi
51802
51803 if test "$wxUSE_MDI" = "yes"; then
51804     cat >>confdefs.h <<\_ACEOF
51805 #define wxUSE_MDI 1
51806 _ACEOF
51807
51808
51809     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
51810         cat >>confdefs.h <<\_ACEOF
51811 #define wxUSE_MDI_ARCHITECTURE 1
51812 _ACEOF
51813
51814         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
51815     fi
51816 fi
51817
51818 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
51819     cat >>confdefs.h <<\_ACEOF
51820 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
51821 _ACEOF
51822
51823     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
51824     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
51825         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
51826     fi
51827 fi
51828
51829 if test "$wxUSE_HELP" = "yes"; then
51830     cat >>confdefs.h <<\_ACEOF
51831 #define wxUSE_HELP 1
51832 _ACEOF
51833
51834     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
51835
51836     if test "$wxUSE_MSW" = 1; then
51837       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
51838         cat >>confdefs.h <<\_ACEOF
51839 #define wxUSE_MS_HTML_HELP 1
51840 _ACEOF
51841
51842       fi
51843     fi
51844
51845     if test "$wxUSE_WXHTML_HELP" = "yes"; then
51846       if test "$wxUSE_HTML" = "yes"; then
51847         cat >>confdefs.h <<\_ACEOF
51848 #define wxUSE_WXHTML_HELP 1
51849 _ACEOF
51850
51851       else
51852         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
51853 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
51854         wxUSE_WXHTML_HELP=no
51855       fi
51856     fi
51857 fi
51858
51859 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
51860     if test "$wxUSE_CONSTRAINTS" != "yes"; then
51861         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
51862 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
51863     else
51864         cat >>confdefs.h <<\_ACEOF
51865 #define wxUSE_PRINTING_ARCHITECTURE 1
51866 _ACEOF
51867
51868     fi
51869     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
51870 fi
51871
51872 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
51873     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
51874 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
51875    { (exit 1); exit 1; }; }
51876 fi
51877
51878
51879 if test "$wxUSE_METAFILE" = "yes"; then
51880     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
51881         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
51882 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
51883         wxUSE_METAFILE=no
51884     fi
51885 fi
51886
51887
51888 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
51889                           -o "$wxUSE_CLIPBOARD"     = "yes" \
51890                           -o "$wxUSE_OLE"     = "yes" \
51891                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
51892
51893 for ac_header in ole2.h
51894 do
51895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51897   { echo "$as_me:$LINENO: checking for $ac_header" >&5
51898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
51899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51900   echo $ECHO_N "(cached) $ECHO_C" >&6
51901 fi
51902 ac_res=`eval echo '${'$as_ac_Header'}'`
51903                { echo "$as_me:$LINENO: result: $ac_res" >&5
51904 echo "${ECHO_T}$ac_res" >&6; }
51905 else
51906   # Is the header compilable?
51907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
51908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
51909 cat >conftest.$ac_ext <<_ACEOF
51910 /* confdefs.h.  */
51911 _ACEOF
51912 cat confdefs.h >>conftest.$ac_ext
51913 cat >>conftest.$ac_ext <<_ACEOF
51914 /* end confdefs.h.  */
51915 $ac_includes_default
51916 #include <$ac_header>
51917 _ACEOF
51918 rm -f conftest.$ac_objext
51919 if { (ac_try="$ac_compile"
51920 case "(($ac_try" in
51921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51922   *) ac_try_echo=$ac_try;;
51923 esac
51924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51925   (eval "$ac_compile") 2>conftest.er1
51926   ac_status=$?
51927   grep -v '^ *+' conftest.er1 >conftest.err
51928   rm -f conftest.er1
51929   cat conftest.err >&5
51930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51931   (exit $ac_status); } &&
51932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51933   { (case "(($ac_try" in
51934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51935   *) ac_try_echo=$ac_try;;
51936 esac
51937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51938   (eval "$ac_try") 2>&5
51939   ac_status=$?
51940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51941   (exit $ac_status); }; } &&
51942          { ac_try='test -s conftest.$ac_objext'
51943   { (case "(($ac_try" in
51944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51945   *) ac_try_echo=$ac_try;;
51946 esac
51947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51948   (eval "$ac_try") 2>&5
51949   ac_status=$?
51950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51951   (exit $ac_status); }; }; then
51952   ac_header_compiler=yes
51953 else
51954   echo "$as_me: failed program was:" >&5
51955 sed 's/^/| /' conftest.$ac_ext >&5
51956
51957         ac_header_compiler=no
51958 fi
51959
51960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51962 echo "${ECHO_T}$ac_header_compiler" >&6; }
51963
51964 # Is the header present?
51965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
51966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
51967 cat >conftest.$ac_ext <<_ACEOF
51968 /* confdefs.h.  */
51969 _ACEOF
51970 cat confdefs.h >>conftest.$ac_ext
51971 cat >>conftest.$ac_ext <<_ACEOF
51972 /* end confdefs.h.  */
51973 #include <$ac_header>
51974 _ACEOF
51975 if { (ac_try="$ac_cpp conftest.$ac_ext"
51976 case "(($ac_try" in
51977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51978   *) ac_try_echo=$ac_try;;
51979 esac
51980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51981   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51982   ac_status=$?
51983   grep -v '^ *+' conftest.er1 >conftest.err
51984   rm -f conftest.er1
51985   cat conftest.err >&5
51986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51987   (exit $ac_status); } >/dev/null; then
51988   if test -s conftest.err; then
51989     ac_cpp_err=$ac_c_preproc_warn_flag
51990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51991   else
51992     ac_cpp_err=
51993   fi
51994 else
51995   ac_cpp_err=yes
51996 fi
51997 if test -z "$ac_cpp_err"; then
51998   ac_header_preproc=yes
51999 else
52000   echo "$as_me: failed program was:" >&5
52001 sed 's/^/| /' conftest.$ac_ext >&5
52002
52003   ac_header_preproc=no
52004 fi
52005
52006 rm -f conftest.err conftest.$ac_ext
52007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52008 echo "${ECHO_T}$ac_header_preproc" >&6; }
52009
52010 # So?  What about this header?
52011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52012   yes:no: )
52013     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52017     ac_header_preproc=yes
52018     ;;
52019   no:yes:* )
52020     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52022     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52023 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52024     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52026     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52027 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52030     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52032     ( cat <<\_ASBOX
52033 ## ----------------------------------------- ##
52034 ## Report this to wx-dev@lists.wxwidgets.org ##
52035 ## ----------------------------------------- ##
52036 _ASBOX
52037      ) | sed "s/^/$as_me: WARNING:     /" >&2
52038     ;;
52039 esac
52040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
52041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52043   echo $ECHO_N "(cached) $ECHO_C" >&6
52044 else
52045   eval "$as_ac_Header=\$ac_header_preproc"
52046 fi
52047 ac_res=`eval echo '${'$as_ac_Header'}'`
52048                { echo "$as_me:$LINENO: result: $ac_res" >&5
52049 echo "${ECHO_T}$ac_res" >&6; }
52050
52051 fi
52052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52053   cat >>confdefs.h <<_ACEOF
52054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52055 _ACEOF
52056
52057 fi
52058
52059 done
52060
52061
52062     if test "$ac_cv_header_ole2_h" = "yes" ; then
52063         if test "$GCC" = yes ; then
52064             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
52065 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
52066             cat >conftest.$ac_ext <<_ACEOF
52067 /* confdefs.h.  */
52068 _ACEOF
52069 cat confdefs.h >>conftest.$ac_ext
52070 cat >>conftest.$ac_ext <<_ACEOF
52071 /* end confdefs.h.  */
52072 #include <windows.h>
52073                             #include <ole2.h>
52074 int
52075 main ()
52076 {
52077
52078   ;
52079   return 0;
52080 }
52081 _ACEOF
52082 rm -f conftest.$ac_objext
52083 if { (ac_try="$ac_compile"
52084 case "(($ac_try" in
52085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52086   *) ac_try_echo=$ac_try;;
52087 esac
52088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52089   (eval "$ac_compile") 2>conftest.er1
52090   ac_status=$?
52091   grep -v '^ *+' conftest.er1 >conftest.err
52092   rm -f conftest.er1
52093   cat conftest.err >&5
52094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52095   (exit $ac_status); } &&
52096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52097   { (case "(($ac_try" in
52098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52099   *) ac_try_echo=$ac_try;;
52100 esac
52101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52102   (eval "$ac_try") 2>&5
52103   ac_status=$?
52104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52105   (exit $ac_status); }; } &&
52106          { ac_try='test -s conftest.$ac_objext'
52107   { (case "(($ac_try" in
52108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52109   *) ac_try_echo=$ac_try;;
52110 esac
52111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52112   (eval "$ac_try") 2>&5
52113   ac_status=$?
52114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52115   (exit $ac_status); }; }; then
52116   { echo "$as_me:$LINENO: result: no" >&5
52117 echo "${ECHO_T}no" >&6; }
52118 else
52119   echo "$as_me: failed program was:" >&5
52120 sed 's/^/| /' conftest.$ac_ext >&5
52121
52122         { echo "$as_me:$LINENO: result: yes" >&5
52123 echo "${ECHO_T}yes" >&6; }
52124                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
52125 fi
52126
52127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52128             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
52129             if test "$wxUSE_OLE" = "yes" ; then
52130                 cat >>confdefs.h <<\_ACEOF
52131 #define wxUSE_OLE 1
52132 _ACEOF
52133
52134                 cat >>confdefs.h <<\_ACEOF
52135 #define wxUSE_OLE_AUTOMATION 1
52136 _ACEOF
52137
52138                 cat >>confdefs.h <<\_ACEOF
52139 #define wxUSE_OLE_ACTIVEX 1
52140 _ACEOF
52141
52142                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
52143             fi
52144         fi
52145
52146                 if test "$wxUSE_DATAOBJ" = "yes" ; then
52147             cat >>confdefs.h <<\_ACEOF
52148 #define wxUSE_DATAOBJ 1
52149 _ACEOF
52150
52151         fi
52152     else
52153         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
52154 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
52155
52156         wxUSE_CLIPBOARD=no
52157         wxUSE_DRAG_AND_DROP=no
52158         wxUSE_DATAOBJ=no
52159         wxUSE_OLE=no
52160     fi
52161
52162     if test "$wxUSE_METAFILE" = "yes"; then
52163         cat >>confdefs.h <<\_ACEOF
52164 #define wxUSE_METAFILE 1
52165 _ACEOF
52166
52167
52168                 cat >>confdefs.h <<\_ACEOF
52169 #define wxUSE_ENH_METAFILE 1
52170 _ACEOF
52171
52172     fi
52173 fi
52174
52175 if test "$wxUSE_IPC" = "yes"; then
52176     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
52177         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
52178 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
52179         wxUSE_IPC=no
52180     fi
52181
52182     if test "$wxUSE_IPC" = "yes"; then
52183         cat >>confdefs.h <<\_ACEOF
52184 #define wxUSE_IPC 1
52185 _ACEOF
52186
52187         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
52188     fi
52189 fi
52190
52191 if test "$wxUSE_DATAOBJ" = "yes"; then
52192     if test "$wxUSE_MGL" = 1; then
52193         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
52194 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
52195         wxUSE_DATAOBJ=no
52196     else
52197         cat >>confdefs.h <<\_ACEOF
52198 #define wxUSE_DATAOBJ 1
52199 _ACEOF
52200
52201     fi
52202 else
52203     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
52204 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
52205     wxUSE_CLIPBOARD=no
52206     wxUSE_DRAG_AND_DROP=no
52207 fi
52208
52209 if test "$wxUSE_CLIPBOARD" = "yes"; then
52210     if test "$wxUSE_MGL" = 1; then
52211         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
52212 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
52213         wxUSE_CLIPBOARD=no
52214     fi
52215
52216     if test "$wxUSE_CLIPBOARD" = "yes"; then
52217         cat >>confdefs.h <<\_ACEOF
52218 #define wxUSE_CLIPBOARD 1
52219 _ACEOF
52220
52221     fi
52222 fi
52223
52224 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
52225     if test "$wxUSE_GTK" = 1; then
52226         if test "$WXGTK12" != 1; then
52227             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
52228 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
52229             wxUSE_DRAG_AND_DROP=no
52230         fi
52231     fi
52232
52233     if test "$wxUSE_MOTIF" = 1; then
52234         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
52235 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
52236         wxUSE_DRAG_AND_DROP=no
52237     fi
52238
52239     if test "$wxUSE_X11" = 1; then
52240         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
52241 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
52242         wxUSE_DRAG_AND_DROP=no
52243     fi
52244
52245     if test "$wxUSE_MGL" = 1; then
52246         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
52247 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
52248         wxUSE_DRAG_AND_DROP=no
52249     fi
52250
52251     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
52252         cat >>confdefs.h <<\_ACEOF
52253 #define wxUSE_DRAG_AND_DROP 1
52254 _ACEOF
52255
52256     fi
52257
52258 fi
52259
52260 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
52261     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
52262 fi
52263
52264 if test "$wxUSE_SPLINES" = "yes" ; then
52265   cat >>confdefs.h <<\_ACEOF
52266 #define wxUSE_SPLINES 1
52267 _ACEOF
52268
52269 fi
52270
52271 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
52272   cat >>confdefs.h <<\_ACEOF
52273 #define wxUSE_MOUSEWHEEL 1
52274 _ACEOF
52275
52276 fi
52277
52278
52279 USES_CONTROLS=0
52280 if test "$wxUSE_CONTROLS" = "yes"; then
52281   USES_CONTROLS=1
52282 fi
52283
52284 if test "$wxUSE_ACCEL" = "yes"; then
52285   cat >>confdefs.h <<\_ACEOF
52286 #define wxUSE_ACCEL 1
52287 _ACEOF
52288
52289   USES_CONTROLS=1
52290 fi
52291
52292 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
52293   cat >>confdefs.h <<\_ACEOF
52294 #define wxUSE_ANIMATIONCTRL 1
52295 _ACEOF
52296
52297   USES_CONTROLS=1
52298   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
52299 fi
52300
52301 if test "$wxUSE_BUTTON" = "yes"; then
52302   cat >>confdefs.h <<\_ACEOF
52303 #define wxUSE_BUTTON 1
52304 _ACEOF
52305
52306   USES_CONTROLS=1
52307 fi
52308
52309 if test "$wxUSE_BMPBUTTON" = "yes"; then
52310   cat >>confdefs.h <<\_ACEOF
52311 #define wxUSE_BMPBUTTON 1
52312 _ACEOF
52313
52314   USES_CONTROLS=1
52315 fi
52316
52317 if test "$wxUSE_CALCTRL" = "yes"; then
52318   cat >>confdefs.h <<\_ACEOF
52319 #define wxUSE_CALENDARCTRL 1
52320 _ACEOF
52321
52322   USES_CONTROLS=1
52323   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
52324 fi
52325
52326 if test "$wxUSE_CARET" = "yes"; then
52327   cat >>confdefs.h <<\_ACEOF
52328 #define wxUSE_CARET 1
52329 _ACEOF
52330
52331   USES_CONTROLS=1
52332   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
52333 fi
52334
52335 if test "$wxUSE_COLLPANE" = "yes"; then
52336     cat >>confdefs.h <<\_ACEOF
52337 #define wxUSE_COLLPANE 1
52338 _ACEOF
52339
52340     USES_CONTROLS=1
52341     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
52342 fi
52343
52344 if test "$wxUSE_COMBOBOX" = "yes"; then
52345   cat >>confdefs.h <<\_ACEOF
52346 #define wxUSE_COMBOBOX 1
52347 _ACEOF
52348
52349   USES_CONTROLS=1
52350 fi
52351
52352 if test "$wxUSE_COMBOCTRL" = "yes"; then
52353   cat >>confdefs.h <<\_ACEOF
52354 #define wxUSE_COMBOCTRL 1
52355 _ACEOF
52356
52357   USES_CONTROLS=1
52358 fi
52359
52360 if test "$wxUSE_CHOICE" = "yes"; then
52361   cat >>confdefs.h <<\_ACEOF
52362 #define wxUSE_CHOICE 1
52363 _ACEOF
52364
52365   USES_CONTROLS=1
52366 fi
52367
52368 if test "$wxUSE_CHOICEBOOK" = "yes"; then
52369     cat >>confdefs.h <<\_ACEOF
52370 #define wxUSE_CHOICEBOOK 1
52371 _ACEOF
52372
52373     USES_CONTROLS=1
52374 fi
52375
52376 if test "$wxUSE_CHECKBOX" = "yes"; then
52377   cat >>confdefs.h <<\_ACEOF
52378 #define wxUSE_CHECKBOX 1
52379 _ACEOF
52380
52381   USES_CONTROLS=1
52382 fi
52383
52384 if test "$wxUSE_CHECKLST" = "yes"; then
52385   cat >>confdefs.h <<\_ACEOF
52386 #define wxUSE_CHECKLISTBOX 1
52387 _ACEOF
52388
52389   USES_CONTROLS=1
52390   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
52391 fi
52392
52393 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
52394   cat >>confdefs.h <<\_ACEOF
52395 #define wxUSE_COLOURPICKERCTRL 1
52396 _ACEOF
52397
52398   USES_CONTROLS=1
52399 fi
52400
52401 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
52402   cat >>confdefs.h <<\_ACEOF
52403 #define wxUSE_DATEPICKCTRL 1
52404 _ACEOF
52405
52406   USES_CONTROLS=1
52407 fi
52408
52409 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
52410   cat >>confdefs.h <<\_ACEOF
52411 #define wxUSE_DIRPICKERCTRL 1
52412 _ACEOF
52413
52414   USES_CONTROLS=1
52415 fi
52416
52417 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
52418   cat >>confdefs.h <<\_ACEOF
52419 #define wxUSE_FILEPICKERCTRL 1
52420 _ACEOF
52421
52422   USES_CONTROLS=1
52423 fi
52424
52425 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
52426   cat >>confdefs.h <<\_ACEOF
52427 #define wxUSE_FONTPICKERCTRL 1
52428 _ACEOF
52429
52430   USES_CONTROLS=1
52431 fi
52432
52433 if test "$wxUSE_DISPLAY" = "yes"; then
52434     cat >>confdefs.h <<\_ACEOF
52435 #define wxUSE_DISPLAY 1
52436 _ACEOF
52437
52438     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
52439 fi
52440
52441 if test "$wxUSE_DETECT_SM" = "yes"; then
52442     cat >>confdefs.h <<\_ACEOF
52443 #define wxUSE_DETECT_SM 1
52444 _ACEOF
52445
52446 fi
52447
52448 if test "$wxUSE_GAUGE" = "yes"; then
52449   cat >>confdefs.h <<\_ACEOF
52450 #define wxUSE_GAUGE 1
52451 _ACEOF
52452
52453   USES_CONTROLS=1
52454 fi
52455
52456 if test "$wxUSE_GRID" = "yes"; then
52457   cat >>confdefs.h <<\_ACEOF
52458 #define wxUSE_GRID 1
52459 _ACEOF
52460
52461   USES_CONTROLS=1
52462   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
52463 fi
52464
52465 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
52466   cat >>confdefs.h <<\_ACEOF
52467 #define wxUSE_HYPERLINKCTRL 1
52468 _ACEOF
52469
52470   USES_CONTROLS=1
52471 fi
52472
52473 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
52474   cat >>confdefs.h <<\_ACEOF
52475 #define wxUSE_BITMAPCOMBOBOX 1
52476 _ACEOF
52477
52478   USES_CONTROLS=1
52479 fi
52480
52481 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
52482   cat >>confdefs.h <<\_ACEOF
52483 #define wxUSE_DATAVIEWCTRL 1
52484 _ACEOF
52485
52486   USES_CONTROLS=1
52487   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
52488 fi
52489
52490 if test "$wxUSE_IMAGLIST" = "yes"; then
52491     cat >>confdefs.h <<\_ACEOF
52492 #define wxUSE_IMAGLIST 1
52493 _ACEOF
52494
52495 fi
52496
52497 if test "$wxUSE_LISTBOOK" = "yes"; then
52498     cat >>confdefs.h <<\_ACEOF
52499 #define wxUSE_LISTBOOK 1
52500 _ACEOF
52501
52502     USES_CONTROLS=1
52503 fi
52504
52505 if test "$wxUSE_LISTBOX" = "yes"; then
52506     cat >>confdefs.h <<\_ACEOF
52507 #define wxUSE_LISTBOX 1
52508 _ACEOF
52509
52510     USES_CONTROLS=1
52511     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
52512 fi
52513
52514 if test "$wxUSE_LISTCTRL" = "yes"; then
52515     if test "$wxUSE_IMAGLIST" = "yes"; then
52516         cat >>confdefs.h <<\_ACEOF
52517 #define wxUSE_LISTCTRL 1
52518 _ACEOF
52519
52520         USES_CONTROLS=1
52521         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
52522     else
52523         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
52524 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
52525     fi
52526 fi
52527
52528 if test "$wxUSE_NOTEBOOK" = "yes"; then
52529     cat >>confdefs.h <<\_ACEOF
52530 #define wxUSE_NOTEBOOK 1
52531 _ACEOF
52532
52533     USES_CONTROLS=1
52534     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
52535 fi
52536
52537 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
52538   cat >>confdefs.h <<\_ACEOF
52539 #define wxUSE_ODCOMBOBOX 1
52540 _ACEOF
52541
52542   USES_CONTROLS=1
52543   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
52544 fi
52545
52546
52547 if test "$wxUSE_RADIOBOX" = "yes"; then
52548     cat >>confdefs.h <<\_ACEOF
52549 #define wxUSE_RADIOBOX 1
52550 _ACEOF
52551
52552     USES_CONTROLS=1
52553 fi
52554
52555 if test "$wxUSE_RADIOBTN" = "yes"; then
52556     cat >>confdefs.h <<\_ACEOF
52557 #define wxUSE_RADIOBTN 1
52558 _ACEOF
52559
52560     USES_CONTROLS=1
52561 fi
52562
52563 if test "$wxUSE_SASH" = "yes"; then
52564     cat >>confdefs.h <<\_ACEOF
52565 #define wxUSE_SASH 1
52566 _ACEOF
52567
52568     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
52569 fi
52570
52571 if test "$wxUSE_SCROLLBAR" = "yes"; then
52572     cat >>confdefs.h <<\_ACEOF
52573 #define wxUSE_SCROLLBAR 1
52574 _ACEOF
52575
52576     USES_CONTROLS=1
52577     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
52578 fi
52579
52580 if test "$wxUSE_SEARCHCTRL" = "yes"; then
52581     cat >>confdefs.h <<\_ACEOF
52582 #define wxUSE_SEARCHCTRL 1
52583 _ACEOF
52584
52585     USES_CONTROLS=1
52586 fi
52587
52588 if test "$wxUSE_SLIDER" = "yes"; then
52589     cat >>confdefs.h <<\_ACEOF
52590 #define wxUSE_SLIDER 1
52591 _ACEOF
52592
52593     USES_CONTROLS=1
52594 fi
52595
52596 if test "$wxUSE_SPINBTN" = "yes"; then
52597     cat >>confdefs.h <<\_ACEOF
52598 #define wxUSE_SPINBTN 1
52599 _ACEOF
52600
52601     USES_CONTROLS=1
52602 fi
52603
52604 if test "$wxUSE_SPINCTRL" = "yes"; then
52605     cat >>confdefs.h <<\_ACEOF
52606 #define wxUSE_SPINCTRL 1
52607 _ACEOF
52608
52609     USES_CONTROLS=1
52610 fi
52611
52612 if test "$wxUSE_SPLITTER" = "yes"; then
52613     cat >>confdefs.h <<\_ACEOF
52614 #define wxUSE_SPLITTER 1
52615 _ACEOF
52616
52617     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
52618 fi
52619
52620 if test "$wxUSE_STATBMP" = "yes"; then
52621     cat >>confdefs.h <<\_ACEOF
52622 #define wxUSE_STATBMP 1
52623 _ACEOF
52624
52625     USES_CONTROLS=1
52626 fi
52627
52628 if test "$wxUSE_STATBOX" = "yes"; then
52629     cat >>confdefs.h <<\_ACEOF
52630 #define wxUSE_STATBOX 1
52631 _ACEOF
52632
52633     USES_CONTROLS=1
52634 fi
52635
52636 if test "$wxUSE_STATTEXT" = "yes"; then
52637     cat >>confdefs.h <<\_ACEOF
52638 #define wxUSE_STATTEXT 1
52639 _ACEOF
52640
52641     USES_CONTROLS=1
52642 fi
52643
52644 if test "$wxUSE_STATLINE" = "yes"; then
52645     cat >>confdefs.h <<\_ACEOF
52646 #define wxUSE_STATLINE 1
52647 _ACEOF
52648
52649     USES_CONTROLS=1
52650 fi
52651
52652 if test "$wxUSE_STATUSBAR" = "yes"; then
52653         cat >>confdefs.h <<\_ACEOF
52654 #define wxUSE_NATIVE_STATUSBAR 1
52655 _ACEOF
52656
52657     cat >>confdefs.h <<\_ACEOF
52658 #define wxUSE_STATUSBAR 1
52659 _ACEOF
52660
52661     USES_CONTROLS=1
52662
52663     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
52664 fi
52665
52666 if test "$wxUSE_TAB_DIALOG" = "yes"; then
52667     cat >>confdefs.h <<\_ACEOF
52668 #define wxUSE_TAB_DIALOG 1
52669 _ACEOF
52670
52671 fi
52672
52673 if test "$wxUSE_TEXTCTRL" = "yes"; then
52674     cat >>confdefs.h <<\_ACEOF
52675 #define wxUSE_TEXTCTRL 1
52676 _ACEOF
52677
52678     USES_CONTROLS=1
52679     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
52680 fi
52681
52682 if test "$wxUSE_TOGGLEBTN" = "yes"; then
52683     if test "$wxUSE_COCOA" = 1 ; then
52684         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
52685 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
52686         wxUSE_TOGGLEBTN=no
52687     fi
52688
52689     if test "$wxUSE_TOGGLEBTN" = "yes"; then
52690         cat >>confdefs.h <<\_ACEOF
52691 #define wxUSE_TOGGLEBTN 1
52692 _ACEOF
52693
52694         USES_CONTROLS=1
52695     fi
52696 fi
52697
52698 if test "$wxUSE_TOOLBAR" = "yes"; then
52699     cat >>confdefs.h <<\_ACEOF
52700 #define wxUSE_TOOLBAR 1
52701 _ACEOF
52702
52703     USES_CONTROLS=1
52704
52705     if test "$wxUSE_UNIVERSAL" = "yes"; then
52706         wxUSE_TOOLBAR_NATIVE="no"
52707     else
52708         wxUSE_TOOLBAR_NATIVE="yes"
52709         cat >>confdefs.h <<\_ACEOF
52710 #define wxUSE_TOOLBAR_NATIVE 1
52711 _ACEOF
52712
52713     fi
52714
52715     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
52716 fi
52717
52718 if test "$wxUSE_TOOLTIPS" = "yes"; then
52719     if test "$wxUSE_MOTIF" = 1; then
52720         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
52721 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
52722     else
52723         if test "$wxUSE_UNIVERSAL" = "yes"; then
52724             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
52725 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
52726         else
52727             cat >>confdefs.h <<\_ACEOF
52728 #define wxUSE_TOOLTIPS 1
52729 _ACEOF
52730
52731         fi
52732     fi
52733 fi
52734
52735 if test "$wxUSE_TREEBOOK" = "yes"; then
52736     cat >>confdefs.h <<\_ACEOF
52737 #define wxUSE_TREEBOOK 1
52738 _ACEOF
52739
52740     USES_CONTROLS=1
52741 fi
52742
52743 if test "$wxUSE_TOOLBOOK" = "yes"; then
52744     cat >>confdefs.h <<\_ACEOF
52745 #define wxUSE_TOOLBOOK 1
52746 _ACEOF
52747
52748     USES_CONTROLS=1
52749 fi
52750
52751 if test "$wxUSE_TREECTRL" = "yes"; then
52752     if test "$wxUSE_IMAGLIST" = "yes"; then
52753         cat >>confdefs.h <<\_ACEOF
52754 #define wxUSE_TREECTRL 1
52755 _ACEOF
52756
52757         USES_CONTROLS=1
52758         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
52759     else
52760         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
52761 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
52762     fi
52763 fi
52764
52765 if test "$wxUSE_POPUPWIN" = "yes"; then
52766     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
52767         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
52768 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
52769     else
52770         if test "$wxUSE_PM" = 1; then
52771             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
52772 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
52773         else
52774             cat >>confdefs.h <<\_ACEOF
52775 #define wxUSE_POPUPWIN 1
52776 _ACEOF
52777
52778             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
52779
52780             USES_CONTROLS=1
52781         fi
52782     fi
52783 fi
52784
52785 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
52786     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
52787         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
52788 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
52789     else
52790         cat >>confdefs.h <<\_ACEOF
52791 #define wxUSE_DIALUP_MANAGER 1
52792 _ACEOF
52793
52794         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
52795     fi
52796 fi
52797
52798 if test "$wxUSE_TIPWINDOW" = "yes"; then
52799     if test "$wxUSE_PM" = 1; then
52800         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
52801 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
52802     else
52803         cat >>confdefs.h <<\_ACEOF
52804 #define wxUSE_TIPWINDOW 1
52805 _ACEOF
52806
52807     fi
52808 fi
52809
52810 if test "$USES_CONTROLS" = 1; then
52811     cat >>confdefs.h <<\_ACEOF
52812 #define wxUSE_CONTROLS 1
52813 _ACEOF
52814
52815 fi
52816
52817
52818 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
52819     cat >>confdefs.h <<\_ACEOF
52820 #define wxUSE_ACCESSIBILITY 1
52821 _ACEOF
52822
52823     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
52824 fi
52825
52826 if test "$wxUSE_DC_CACHEING" = "yes"; then
52827     cat >>confdefs.h <<\_ACEOF
52828 #define wxUSE_DC_CACHEING 1
52829 _ACEOF
52830
52831 fi
52832
52833 if test "$wxUSE_DRAGIMAGE" = "yes"; then
52834     cat >>confdefs.h <<\_ACEOF
52835 #define wxUSE_DRAGIMAGE 1
52836 _ACEOF
52837
52838     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
52839 fi
52840
52841 if test "$wxUSE_EXCEPTIONS" = "yes"; then
52842     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
52843         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
52844 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
52845     else
52846         cat >>confdefs.h <<\_ACEOF
52847 #define wxUSE_EXCEPTIONS 1
52848 _ACEOF
52849
52850         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
52851     fi
52852 fi
52853
52854 USE_HTML=0
52855 if test "$wxUSE_HTML" = "yes"; then
52856     cat >>confdefs.h <<\_ACEOF
52857 #define wxUSE_HTML 1
52858 _ACEOF
52859
52860     USE_HTML=1
52861     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
52862     if test "$wxUSE_MAC" = 1; then
52863         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
52864     fi
52865 fi
52866 if test "$wxUSE_WEBKIT" = "yes"; then
52867     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
52868         old_CPPFLAGS="$CPPFLAGS"
52869         CPPFLAGS="-x objective-c++ $CPPFLAGS"
52870         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
52871 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
52872 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
52873   echo $ECHO_N "(cached) $ECHO_C" >&6
52874 else
52875   cat >conftest.$ac_ext <<_ACEOF
52876 /* confdefs.h.  */
52877 _ACEOF
52878 cat confdefs.h >>conftest.$ac_ext
52879 cat >>conftest.$ac_ext <<_ACEOF
52880 /* end confdefs.h.  */
52881 #include <Carbon/Carbon.h>
52882
52883 #include <WebKit/HIWebView.h>
52884 _ACEOF
52885 rm -f conftest.$ac_objext
52886 if { (ac_try="$ac_compile"
52887 case "(($ac_try" in
52888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52889   *) ac_try_echo=$ac_try;;
52890 esac
52891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52892   (eval "$ac_compile") 2>conftest.er1
52893   ac_status=$?
52894   grep -v '^ *+' conftest.er1 >conftest.err
52895   rm -f conftest.er1
52896   cat conftest.err >&5
52897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52898   (exit $ac_status); } &&
52899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52900   { (case "(($ac_try" in
52901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52902   *) ac_try_echo=$ac_try;;
52903 esac
52904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52905   (eval "$ac_try") 2>&5
52906   ac_status=$?
52907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52908   (exit $ac_status); }; } &&
52909          { ac_try='test -s conftest.$ac_objext'
52910   { (case "(($ac_try" in
52911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52912   *) ac_try_echo=$ac_try;;
52913 esac
52914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52915   (eval "$ac_try") 2>&5
52916   ac_status=$?
52917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52918   (exit $ac_status); }; }; then
52919   ac_cv_header_WebKit_HIWebView_h=yes
52920 else
52921   echo "$as_me: failed program was:" >&5
52922 sed 's/^/| /' conftest.$ac_ext >&5
52923
52924         ac_cv_header_WebKit_HIWebView_h=no
52925 fi
52926
52927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52928 fi
52929 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
52930 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
52931 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
52932
52933                            cat >>confdefs.h <<\_ACEOF
52934 #define wxUSE_WEBKIT 1
52935 _ACEOF
52936
52937                            WEBKIT_LINK="-framework WebKit"
52938
52939 else
52940
52941                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
52942 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
52943                            wxUSE_WEBKIT=no
52944
52945 fi
52946
52947
52948         CPPFLAGS="$old_CPPFLAGS"
52949     elif test "$wxUSE_COCOA" = 1; then
52950         cat >>confdefs.h <<\_ACEOF
52951 #define wxUSE_WEBKIT 1
52952 _ACEOF
52953
52954     else
52955         wxUSE_WEBKIT=no
52956     fi
52957 fi
52958
52959 USE_XRC=0
52960 if test "$wxUSE_XRC" = "yes"; then
52961     if test "$wxUSE_XML" != "yes"; then
52962         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
52963 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
52964         wxUSE_XRC=no
52965     else
52966         cat >>confdefs.h <<\_ACEOF
52967 #define wxUSE_XRC 1
52968 _ACEOF
52969
52970         USE_XRC=1
52971         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
52972     fi
52973 fi
52974
52975 USE_AUI=0
52976 if test "$wxUSE_AUI" = "yes"; then
52977    cat >>confdefs.h <<\_ACEOF
52978 #define wxUSE_AUI 1
52979 _ACEOF
52980
52981    USE_AUI=1
52982    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
52983 fi
52984
52985 if test "$wxUSE_MENUS" = "yes"; then
52986     cat >>confdefs.h <<\_ACEOF
52987 #define wxUSE_MENUS 1
52988 _ACEOF
52989
52990     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
52991 fi
52992
52993 if test "$wxUSE_METAFILE" = "yes"; then
52994     cat >>confdefs.h <<\_ACEOF
52995 #define wxUSE_METAFILE 1
52996 _ACEOF
52997
52998 fi
52999
53000 if test "$wxUSE_MIMETYPE" = "yes"; then
53001     cat >>confdefs.h <<\_ACEOF
53002 #define wxUSE_MIMETYPE 1
53003 _ACEOF
53004
53005 fi
53006
53007 if test "$wxUSE_MINIFRAME" = "yes"; then
53008     cat >>confdefs.h <<\_ACEOF
53009 #define wxUSE_MINIFRAME 1
53010 _ACEOF
53011
53012     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
53013 fi
53014
53015 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
53016     cat >>confdefs.h <<\_ACEOF
53017 #define wxUSE_SYSTEM_OPTIONS 1
53018 _ACEOF
53019
53020     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
53021         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
53022         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
53023     fi
53024 fi
53025
53026
53027 if test "$wxUSE_VALIDATORS" = "yes"; then
53028     cat >>confdefs.h <<\_ACEOF
53029 #define wxUSE_VALIDATORS 1
53030 _ACEOF
53031
53032     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
53033 fi
53034
53035 if test "$wxUSE_PALETTE" = "yes" ; then
53036   cat >>confdefs.h <<\_ACEOF
53037 #define wxUSE_PALETTE 1
53038 _ACEOF
53039
53040 fi
53041
53042 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
53043     LIBS=" -lunicows $LIBS"
53044 fi
53045
53046 USE_RICHTEXT=0
53047 if test "$wxUSE_RICHTEXT" = "yes"; then
53048     cat >>confdefs.h <<\_ACEOF
53049 #define wxUSE_RICHTEXT 1
53050 _ACEOF
53051
53052     USE_RICHTEXT=1
53053     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
53054 fi
53055
53056
53057 if test "$wxUSE_IMAGE" = "yes" ; then
53058     cat >>confdefs.h <<\_ACEOF
53059 #define wxUSE_IMAGE 1
53060 _ACEOF
53061
53062
53063     if test "$wxUSE_GIF" = "yes" ; then
53064       cat >>confdefs.h <<\_ACEOF
53065 #define wxUSE_GIF 1
53066 _ACEOF
53067
53068     fi
53069
53070     if test "$wxUSE_PCX" = "yes" ; then
53071       cat >>confdefs.h <<\_ACEOF
53072 #define wxUSE_PCX 1
53073 _ACEOF
53074
53075     fi
53076
53077     if test "$wxUSE_TGA" = "yes" ; then
53078       cat >>confdefs.h <<\_ACEOF
53079 #define wxUSE_TGA 1
53080 _ACEOF
53081
53082     fi
53083
53084     if test "$wxUSE_IFF" = "yes" ; then
53085       cat >>confdefs.h <<\_ACEOF
53086 #define wxUSE_IFF 1
53087 _ACEOF
53088
53089     fi
53090
53091     if test "$wxUSE_PNM" = "yes" ; then
53092       cat >>confdefs.h <<\_ACEOF
53093 #define wxUSE_PNM 1
53094 _ACEOF
53095
53096     fi
53097
53098     if test "$wxUSE_XPM" = "yes" ; then
53099       cat >>confdefs.h <<\_ACEOF
53100 #define wxUSE_XPM 1
53101 _ACEOF
53102
53103     fi
53104
53105     if test "$wxUSE_ICO_CUR" = "yes" ; then
53106       cat >>confdefs.h <<\_ACEOF
53107 #define wxUSE_ICO_CUR 1
53108 _ACEOF
53109
53110     fi
53111 fi
53112
53113
53114 if test "$wxUSE_ABOUTDLG" = "yes"; then
53115     cat >>confdefs.h <<\_ACEOF
53116 #define wxUSE_ABOUTDLG 1
53117 _ACEOF
53118
53119 fi
53120
53121 if test "$wxUSE_CHOICEDLG" = "yes"; then
53122     cat >>confdefs.h <<\_ACEOF
53123 #define wxUSE_CHOICEDLG 1
53124 _ACEOF
53125
53126 fi
53127
53128 if test "$wxUSE_COLOURDLG" = "yes"; then
53129     cat >>confdefs.h <<\_ACEOF
53130 #define wxUSE_COLOURDLG 1
53131 _ACEOF
53132
53133 fi
53134
53135 if test "$wxUSE_FILEDLG" = "yes"; then
53136     cat >>confdefs.h <<\_ACEOF
53137 #define wxUSE_FILEDLG 1
53138 _ACEOF
53139
53140 fi
53141
53142 if test "$wxUSE_FINDREPLDLG" = "yes"; then
53143     cat >>confdefs.h <<\_ACEOF
53144 #define wxUSE_FINDREPLDLG 1
53145 _ACEOF
53146
53147 fi
53148
53149 if test "$wxUSE_FONTDLG" = "yes"; then
53150     cat >>confdefs.h <<\_ACEOF
53151 #define wxUSE_FONTDLG 1
53152 _ACEOF
53153
53154 fi
53155
53156 if test "$wxUSE_DIRDLG" = "yes"; then
53157     if test "$wxUSE_TREECTRL" != "yes"; then
53158         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
53159 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
53160     else
53161         cat >>confdefs.h <<\_ACEOF
53162 #define wxUSE_DIRDLG 1
53163 _ACEOF
53164
53165     fi
53166 fi
53167
53168 if test "$wxUSE_MSGDLG" = "yes"; then
53169     cat >>confdefs.h <<\_ACEOF
53170 #define wxUSE_MSGDLG 1
53171 _ACEOF
53172
53173 fi
53174
53175 if test "$wxUSE_NUMBERDLG" = "yes"; then
53176     cat >>confdefs.h <<\_ACEOF
53177 #define wxUSE_NUMBERDLG 1
53178 _ACEOF
53179
53180 fi
53181
53182 if test "$wxUSE_PROGRESSDLG" = "yes"; then
53183     if test "$wxUSE_CONSTRAINTS" != "yes"; then
53184        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
53185 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
53186     else
53187         cat >>confdefs.h <<\_ACEOF
53188 #define wxUSE_PROGRESSDLG 1
53189 _ACEOF
53190
53191     fi
53192 fi
53193
53194 if test "$wxUSE_SPLASH" = "yes"; then
53195     cat >>confdefs.h <<\_ACEOF
53196 #define wxUSE_SPLASH 1
53197 _ACEOF
53198
53199     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
53200 fi
53201
53202 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
53203     if test "$wxUSE_CONSTRAINTS" != "yes"; then
53204        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
53205 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
53206     else
53207         cat >>confdefs.h <<\_ACEOF
53208 #define wxUSE_STARTUP_TIPS 1
53209 _ACEOF
53210
53211     fi
53212 fi
53213
53214 if test "$wxUSE_TEXTDLG" = "yes"; then
53215     cat >>confdefs.h <<\_ACEOF
53216 #define wxUSE_TEXTDLG 1
53217 _ACEOF
53218
53219 fi
53220
53221 if test "$wxUSE_WIZARDDLG" = "yes"; then
53222     cat >>confdefs.h <<\_ACEOF
53223 #define wxUSE_WIZARDDLG 1
53224 _ACEOF
53225
53226     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
53227 fi
53228
53229
53230 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
53231    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
53232       cat >>confdefs.h <<\_ACEOF
53233 #define wxUSE_GRAPHICS_CONTEXT 1
53234 _ACEOF
53235
53236    elif test "$wxUSE_GTK" != 1; then
53237             cat >>confdefs.h <<\_ACEOF
53238 #define wxUSE_GRAPHICS_CONTEXT 1
53239 _ACEOF
53240
53241    else
53242
53243 pkg_failed=no
53244 { echo "$as_me:$LINENO: checking for CAIRO" >&5
53245 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
53246
53247 if test -n "$PKG_CONFIG"; then
53248     if test -n "$CAIRO_CFLAGS"; then
53249         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
53250     else
53251         if test -n "$PKG_CONFIG" && \
53252     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
53253   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
53254   ac_status=$?
53255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53256   (exit $ac_status); }; then
53257   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
53258 else
53259   pkg_failed=yes
53260 fi
53261     fi
53262 else
53263         pkg_failed=untried
53264 fi
53265 if test -n "$PKG_CONFIG"; then
53266     if test -n "$CAIRO_LIBS"; then
53267         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
53268     else
53269         if test -n "$PKG_CONFIG" && \
53270     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
53271   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
53272   ac_status=$?
53273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53274   (exit $ac_status); }; then
53275   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
53276 else
53277   pkg_failed=yes
53278 fi
53279     fi
53280 else
53281         pkg_failed=untried
53282 fi
53283
53284
53285
53286 if test $pkg_failed = yes; then
53287
53288 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53289         _pkg_short_errors_supported=yes
53290 else
53291         _pkg_short_errors_supported=no
53292 fi
53293         if test $_pkg_short_errors_supported = yes; then
53294                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
53295         else
53296                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
53297         fi
53298         # Put the nasty error message in config.log where it belongs
53299         echo "$CAIRO_PKG_ERRORS" >&5
53300
53301         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
53302 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
53303
53304 elif test $pkg_failed = untried; then
53305         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
53306 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
53307
53308 else
53309         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
53310         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
53311         { echo "$as_me:$LINENO: result: yes" >&5
53312 echo "${ECHO_T}yes" >&6; }
53313         cat >>confdefs.h <<\_ACEOF
53314 #define wxUSE_GRAPHICS_CONTEXT 1
53315 _ACEOF
53316
53317 fi
53318    fi
53319 fi
53320
53321
53322 USE_MEDIA=0
53323
53324 if test "$wxUSE_MEDIACTRL" = "yes"; then
53325     USE_MEDIA=1
53326
53327                 if test "$wxUSE_GTK" = 1; then
53328         wxUSE_GSTREAMER="no"
53329
53330                                                                 GST_VERSION_MAJOR=0
53331         GST_VERSION_MINOR=10
53332         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
53333
53334         if test "$wxUSE_GSTREAMER8" = "no"; then
53335
53336 pkg_failed=no
53337 { echo "$as_me:$LINENO: checking for GST" >&5
53338 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
53339
53340 if test -n "$PKG_CONFIG"; then
53341     if test -n "$GST_CFLAGS"; then
53342         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
53343     else
53344         if test -n "$PKG_CONFIG" && \
53345     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
53346   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
53347   ac_status=$?
53348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53349   (exit $ac_status); }; then
53350   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
53351 else
53352   pkg_failed=yes
53353 fi
53354     fi
53355 else
53356         pkg_failed=untried
53357 fi
53358 if test -n "$PKG_CONFIG"; then
53359     if test -n "$GST_LIBS"; then
53360         pkg_cv_GST_LIBS="$GST_LIBS"
53361     else
53362         if test -n "$PKG_CONFIG" && \
53363     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
53364   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
53365   ac_status=$?
53366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53367   (exit $ac_status); }; then
53368   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
53369 else
53370   pkg_failed=yes
53371 fi
53372     fi
53373 else
53374         pkg_failed=untried
53375 fi
53376
53377
53378
53379 if test $pkg_failed = yes; then
53380
53381 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53382         _pkg_short_errors_supported=yes
53383 else
53384         _pkg_short_errors_supported=no
53385 fi
53386         if test $_pkg_short_errors_supported = yes; then
53387                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
53388         else
53389                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
53390         fi
53391         # Put the nasty error message in config.log where it belongs
53392         echo "$GST_PKG_ERRORS" >&5
53393
53394
53395                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
53396 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
53397                     GST_VERSION_MINOR=8
53398
53399
53400 elif test $pkg_failed = untried; then
53401
53402                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
53403 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
53404                     GST_VERSION_MINOR=8
53405
53406
53407 else
53408         GST_CFLAGS=$pkg_cv_GST_CFLAGS
53409         GST_LIBS=$pkg_cv_GST_LIBS
53410         { echo "$as_me:$LINENO: result: yes" >&5
53411 echo "${ECHO_T}yes" >&6; }
53412
53413                     wxUSE_GSTREAMER="yes"
53414                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
53415
53416 fi
53417         else
53418                         GST_VERSION_MINOR=8
53419         fi
53420
53421         if test $GST_VERSION_MINOR = "8"; then
53422             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
53423
53424 pkg_failed=no
53425 { echo "$as_me:$LINENO: checking for GST" >&5
53426 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
53427
53428 if test -n "$PKG_CONFIG"; then
53429     if test -n "$GST_CFLAGS"; then
53430         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
53431     else
53432         if test -n "$PKG_CONFIG" && \
53433     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
53434   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
53435   ac_status=$?
53436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53437   (exit $ac_status); }; then
53438   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
53439 else
53440   pkg_failed=yes
53441 fi
53442     fi
53443 else
53444         pkg_failed=untried
53445 fi
53446 if test -n "$PKG_CONFIG"; then
53447     if test -n "$GST_LIBS"; then
53448         pkg_cv_GST_LIBS="$GST_LIBS"
53449     else
53450         if test -n "$PKG_CONFIG" && \
53451     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
53452   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
53453   ac_status=$?
53454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53455   (exit $ac_status); }; then
53456   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
53457 else
53458   pkg_failed=yes
53459 fi
53460     fi
53461 else
53462         pkg_failed=untried
53463 fi
53464
53465
53466
53467 if test $pkg_failed = yes; then
53468
53469 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53470         _pkg_short_errors_supported=yes
53471 else
53472         _pkg_short_errors_supported=no
53473 fi
53474         if test $_pkg_short_errors_supported = yes; then
53475                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
53476         else
53477                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
53478         fi
53479         # Put the nasty error message in config.log where it belongs
53480         echo "$GST_PKG_ERRORS" >&5
53481
53482
53483                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
53484 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
53485
53486 elif test $pkg_failed = untried; then
53487
53488                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
53489 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
53490
53491 else
53492         GST_CFLAGS=$pkg_cv_GST_CFLAGS
53493         GST_LIBS=$pkg_cv_GST_LIBS
53494         { echo "$as_me:$LINENO: result: yes" >&5
53495 echo "${ECHO_T}yes" >&6; }
53496         wxUSE_GSTREAMER="yes"
53497 fi
53498         fi
53499
53500
53501         if test "$wxUSE_GSTREAMER" = "yes"; then
53502                                     case "${host}" in
53503                 *-*-solaris2* )
53504                     if "$GCC" = yes; then
53505                         GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
53506                         GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
53507                     fi
53508             esac
53509
53510             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
53511             LIBS="$GST_LIBS $LIBS"
53512
53513             cat >>confdefs.h <<\_ACEOF
53514 #define wxUSE_GSTREAMER 1
53515 _ACEOF
53516
53517         else
53518             USE_MEDIA=0
53519         fi
53520     fi
53521
53522     if test $USE_MEDIA = 1; then
53523         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
53524         cat >>confdefs.h <<\_ACEOF
53525 #define wxUSE_MEDIACTRL 1
53526 _ACEOF
53527
53528     fi
53529 fi
53530
53531
53532 if test "$cross_compiling" = "yes"; then
53533         OSINFO="\"$host\""
53534 else
53535         OSINFO=`uname -s -r -m`
53536     OSINFO="\"$OSINFO\""
53537 fi
53538
53539 cat >>confdefs.h <<_ACEOF
53540 #define WXWIN_OS_DESCRIPTION $OSINFO
53541 _ACEOF
53542
53543
53544
53545 if test "x$prefix" != "xNONE"; then
53546     wxPREFIX=$prefix
53547 else
53548     wxPREFIX=$ac_default_prefix
53549 fi
53550
53551 cat >>confdefs.h <<_ACEOF
53552 #define wxINSTALL_PREFIX "$wxPREFIX"
53553 _ACEOF
53554
53555
53556
53557
53558 CORE_BASE_LIBS="net base"
53559 CORE_GUI_LIBS="adv core"
53560
53561 if test "$wxUSE_XML" = "yes" ; then
53562     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
53563 fi
53564 if test "$wxUSE_ODBC" != "no" ; then
53565     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
53566     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
53567 fi
53568 if test "$wxUSE_HTML" = "yes" ; then
53569     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
53570 fi
53571 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
53572     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
53573 fi
53574 if test "$wxUSE_XRC" = "yes" ; then
53575     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
53576 fi
53577 if test "$wxUSE_AUI" = "yes" ; then
53578     CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
53579 fi
53580
53581 if test "$wxUSE_GUI" != "yes"; then
53582     CORE_GUI_LIBS=""
53583 fi
53584
53585
53586
53587
53588
53589
53590 if test "$wxUSE_MAC" = 1 ; then
53591     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
53592         if test "$USE_DARWIN" = 1; then
53593             LDFLAGS="$LDFLAGS -framework QuickTime"
53594         else
53595             LDFLAGS="$LDFLAGS -lQuickTimeLib"
53596         fi
53597     fi
53598     if test "$USE_DARWIN" = 1; then
53599         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
53600     else
53601         LDFLAGS="$LDFLAGS -lCarbonLib"
53602     fi
53603 fi
53604 if test "$wxUSE_COCOA" = 1 ; then
53605     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
53606     if test "$wxUSE_MEDIACTRL" = "yes"; then
53607         LDFLAGS="$LDFLAGS -framework QuickTime"
53608     fi
53609 fi
53610 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
53611     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
53612 fi
53613
53614 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
53615
53616 if test "$wxUSE_GUI" = "yes"; then
53617
53618
53619         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
53620                      dynamic erase event exec font image minimal mobile \
53621                      mobile/wxedit mobile/styles propsize render \
53622                      rotate shaped vscroll widgets"
53623
53624     if test "$wxUSE_MONOLITHIC" != "yes"; then
53625         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
53626     fi
53627     if test "$TOOLKIT" = "MSW"; then
53628         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
53629         if test "$wxUSE_UNIVERSAL" != "yes"; then
53630             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
53631         fi
53632     fi
53633     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
53634         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
53635     fi
53636 else
53637     SAMPLES_SUBDIRS="console"
53638 fi
53639
53640
53641 if test "x$INTELCC" = "xyes" ; then
53642                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
53643 elif test "$GCC" = yes ; then
53644     CWARNINGS="-Wall -Wundef"
53645 fi
53646
53647 if test "x$INTELCXX" = "xyes" ; then
53648                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
53649 elif test "$GXX" = yes ; then
53650         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
53651 fi
53652
53653
53654 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
53655 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
53656
53657
53658 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
53659  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
53660  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
53661  $CPPFLAGS `
53662
53663 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
53664 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
53665 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
53666
53667 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
53668
53669
53670 if test "x$MWCC" = "xyes"; then
53671
53672             CC="$CC -cwd source -I-"
53673     CXX="$CXX -cwd source -I-"
53674 fi
53675
53676
53677 LIBS=`echo $LIBS`
53678 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
53679 EXTRALIBS_XML="$EXPAT_LINK"
53680 EXTRALIBS_HTML="$MSPACK_LINK"
53681 EXTRALIBS_ODBC="$ODBC_LINK"
53682 if test "$wxUSE_GUI" = "yes"; then
53683     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
53684 fi
53685 if test "$wxUSE_OPENGL" = "yes"; then
53686     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
53687 fi
53688
53689 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
53690
53691 WXCONFIG_LIBS="$LIBS"
53692
53693 if test "$wxUSE_REGEX" = "builtin" ; then
53694     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
53695 fi
53696 if test "$wxUSE_EXPAT" = "builtin" ; then
53697     wxconfig_3rdparty="expat $wxconfig_3rdparty"
53698 fi
53699 if test "$wxUSE_ODBC" = "builtin" ; then
53700     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
53701 fi
53702 if test "$wxUSE_LIBTIFF" = "builtin" ; then
53703     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
53704 fi
53705 if test "$wxUSE_LIBJPEG" = "builtin" ; then
53706     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
53707 fi
53708 if test "$wxUSE_LIBPNG" = "builtin" ; then
53709     wxconfig_3rdparty="png $wxconfig_3rdparty"
53710 fi
53711 if test "$wxUSE_ZLIB" = "builtin" ; then
53712     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
53713 fi
53714
53715 for i in $wxconfig_3rdparty ; do
53716     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
53717 done
53718
53719
53720 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
53721     WXUNIV=1
53722
53723     case "$wxUNIV_THEMES" in
53724         ''|all)
53725             cat >>confdefs.h <<\_ACEOF
53726 #define wxUSE_ALL_THEMES 1
53727 _ACEOF
53728
53729             ;;
53730
53731         *)
53732             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
53733                 cat >>confdefs.h <<_ACEOF
53734 #define wxUSE_THEME_$t 1
53735 _ACEOF
53736
53737             done
53738     esac
53739 else
53740     WXUNIV=0
53741 fi
53742
53743
53744
53745
53746
53747
53748
53749
53750
53751 if test $wxUSE_MONOLITHIC = "yes" ; then
53752     MONOLITHIC=1
53753 else
53754     MONOLITHIC=0
53755 fi
53756
53757 if test $wxUSE_PLUGINS = "yes" ; then
53758     USE_PLUGINS=1
53759 else
53760     USE_PLUGINS=0
53761 fi
53762
53763 if test $wxUSE_ODBC != "no" ; then
53764     USE_ODBC=1
53765 else
53766     USE_ODBC=0
53767 fi
53768
53769 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
53770     USE_QA=1
53771 else
53772     USE_QA=0
53773 fi
53774
53775 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
53776     OFFICIAL_BUILD=1
53777 else
53778     OFFICIAL_BUILD=0
53779 fi
53780
53781
53782
53783
53784
53785
53786
53787
53788
53789
53790
53791
53792
53793
53794
53795
53796
53797
53798
53799
53800
53801
53802
53803
53804
53805 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
53806
53807
53808
53809
53810
53811
53812
53813
53814 case "$TOOLKIT" in
53815     GTK)
53816         TOOLKIT_DESC="GTK+"
53817         if test "$WXGTK20" = 1; then
53818             TOOLKIT_DESC="$TOOLKIT_DESC 2"
53819             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
53820                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
53821             fi
53822             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
53823                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
53824             fi
53825             if test "$wxUSE_LIBHILDON" = "yes"; then
53826                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
53827             fi
53828
53829             if test "$TOOLKIT_EXTRA" != ""; then
53830                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
53831             fi
53832         fi
53833         ;;
53834
53835     ?*)
53836         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
53837         ;;
53838
53839     *)
53840         TOOLKIT_DESC="base only"
53841         ;;
53842 esac
53843
53844 if test "$wxUSE_WINE" = "yes"; then
53845     BAKEFILE_FORCE_PLATFORM=win32
53846 fi
53847
53848 if test "$wxUSE_MAC" = 1 ; then
53849     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
53850                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
53851             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
53852         else
53853                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
53854         fi
53855         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
53856         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
53857         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
53858         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
53859         bk_use_pch=no
53860     fi
53861     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
53862     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
53863 fi
53864
53865 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
53866 then
53867     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
53868 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
53869 if test "${wx_cv_gcc_pch_bug+set}" = set; then
53870   echo $ECHO_N "(cached) $ECHO_C" >&6
53871 else
53872
53873             echo '#include <stdio.h>
53874                   const wchar_t test_var[] = L"awidetest";' > conftest.h
53875
53876             echo '#include "conftest.h"
53877                   int main()
53878                   {
53879                      printf("%ls", test_var);
53880                      return 0;
53881                   }' > conftest.cpp
53882
53883             wx_cv_gcc_pch_bug="pch not supported"
53884
53885             if $CXX conftest.h >/dev/null 2>&1
53886             then
53887                 wx_cv_gcc_pch_bug=
53888
53889                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
53890                 then
53891                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
53892                         grep awidetest >/dev/null
53893                     then
53894                         wx_cv_gcc_pch_bug=no
53895                     else
53896                         wx_cv_gcc_pch_bug=yes
53897                     fi
53898                 fi
53899             fi
53900
53901             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
53902
53903 fi
53904 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
53905 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
53906
53907     if test "$wx_cv_gcc_pch_bug" = yes; then
53908                         bk_use_pch=no
53909     fi
53910 fi
53911
53912
53913
53914
53915     if test "x$BAKEFILE_HOST" = "x"; then
53916                if test "x${host}" = "x" ; then
53917                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
53918 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
53919    { (exit 1); exit 1; }; }
53920                fi
53921
53922         BAKEFILE_HOST="${host}"
53923     fi
53924
53925     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
53926
53927     if test -n "$ac_tool_prefix"; then
53928   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
53929 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
53930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53932 if test "${ac_cv_prog_RANLIB+set}" = set; then
53933   echo $ECHO_N "(cached) $ECHO_C" >&6
53934 else
53935   if test -n "$RANLIB"; then
53936   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
53937 else
53938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53939 for as_dir in $PATH
53940 do
53941   IFS=$as_save_IFS
53942   test -z "$as_dir" && as_dir=.
53943   for ac_exec_ext in '' $ac_executable_extensions; do
53944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
53945     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
53946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53947     break 2
53948   fi
53949 done
53950 done
53951 IFS=$as_save_IFS
53952
53953 fi
53954 fi
53955 RANLIB=$ac_cv_prog_RANLIB
53956 if test -n "$RANLIB"; then
53957   { echo "$as_me:$LINENO: result: $RANLIB" >&5
53958 echo "${ECHO_T}$RANLIB" >&6; }
53959 else
53960   { echo "$as_me:$LINENO: result: no" >&5
53961 echo "${ECHO_T}no" >&6; }
53962 fi
53963
53964
53965 fi
53966 if test -z "$ac_cv_prog_RANLIB"; then
53967   ac_ct_RANLIB=$RANLIB
53968   # Extract the first word of "ranlib", so it can be a program name with args.
53969 set dummy ranlib; ac_word=$2
53970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
53973   echo $ECHO_N "(cached) $ECHO_C" >&6
53974 else
53975   if test -n "$ac_ct_RANLIB"; then
53976   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
53977 else
53978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53979 for as_dir in $PATH
53980 do
53981   IFS=$as_save_IFS
53982   test -z "$as_dir" && as_dir=.
53983   for ac_exec_ext in '' $ac_executable_extensions; do
53984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
53985     ac_cv_prog_ac_ct_RANLIB="ranlib"
53986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53987     break 2
53988   fi
53989 done
53990 done
53991 IFS=$as_save_IFS
53992
53993 fi
53994 fi
53995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
53996 if test -n "$ac_ct_RANLIB"; then
53997   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
53998 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
53999 else
54000   { echo "$as_me:$LINENO: result: no" >&5
54001 echo "${ECHO_T}no" >&6; }
54002 fi
54003
54004   if test "x$ac_ct_RANLIB" = x; then
54005     RANLIB=":"
54006   else
54007     case $cross_compiling:$ac_tool_warned in
54008 yes:)
54009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54010 whose name does not start with the host triplet.  If you think this
54011 configuration is useful to you, please write to autoconf@gnu.org." >&5
54012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54013 whose name does not start with the host triplet.  If you think this
54014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54015 ac_tool_warned=yes ;;
54016 esac
54017     RANLIB=$ac_ct_RANLIB
54018   fi
54019 else
54020   RANLIB="$ac_cv_prog_RANLIB"
54021 fi
54022
54023     # Find a good install program.  We prefer a C program (faster),
54024 # so one script is as good as another.  But avoid the broken or
54025 # incompatible versions:
54026 # SysV /etc/install, /usr/sbin/install
54027 # SunOS /usr/etc/install
54028 # IRIX /sbin/install
54029 # AIX /bin/install
54030 # AmigaOS /C/install, which installs bootblocks on floppy discs
54031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
54032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
54033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
54034 # OS/2's system install, which has a completely different semantic
54035 # ./install, which can be erroneously created by make from ./install.sh.
54036 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
54037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
54038 if test -z "$INSTALL"; then
54039 if test "${ac_cv_path_install+set}" = set; then
54040   echo $ECHO_N "(cached) $ECHO_C" >&6
54041 else
54042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54043 for as_dir in $PATH
54044 do
54045   IFS=$as_save_IFS
54046   test -z "$as_dir" && as_dir=.
54047   # Account for people who put trailing slashes in PATH elements.
54048 case $as_dir/ in
54049   ./ | .// | /cC/* | \
54050   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
54051   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
54052   /usr/ucb/* ) ;;
54053   *)
54054     # OSF1 and SCO ODT 3.0 have their own names for install.
54055     # Don't use installbsd from OSF since it installs stuff as root
54056     # by default.
54057     for ac_prog in ginstall scoinst install; do
54058       for ac_exec_ext in '' $ac_executable_extensions; do
54059         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
54060           if test $ac_prog = install &&
54061             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
54062             # AIX install.  It has an incompatible calling convention.
54063             :
54064           elif test $ac_prog = install &&
54065             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
54066             # program-specific install script used by HP pwplus--don't use.
54067             :
54068           else
54069             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
54070             break 3
54071           fi
54072         fi
54073       done
54074     done
54075     ;;
54076 esac
54077 done
54078 IFS=$as_save_IFS
54079
54080
54081 fi
54082   if test "${ac_cv_path_install+set}" = set; then
54083     INSTALL=$ac_cv_path_install
54084   else
54085     # As a last resort, use the slow shell script.  Don't cache a
54086     # value for INSTALL within a source directory, because that will
54087     # break other packages using the cache if that directory is
54088     # removed, or if the value is a relative name.
54089     INSTALL=$ac_install_sh
54090   fi
54091 fi
54092 { echo "$as_me:$LINENO: result: $INSTALL" >&5
54093 echo "${ECHO_T}$INSTALL" >&6; }
54094
54095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
54096 # It thinks the first close brace ends the variable substitution.
54097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
54098
54099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
54100
54101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
54102
54103     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
54104 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
54105 LN_S=$as_ln_s
54106 if test "$LN_S" = "ln -s"; then
54107   { echo "$as_me:$LINENO: result: yes" >&5
54108 echo "${ECHO_T}yes" >&6; }
54109 else
54110   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
54111 echo "${ECHO_T}no, using $LN_S" >&6; }
54112 fi
54113
54114
54115     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
54116 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
54117 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
54118 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
54119   echo $ECHO_N "(cached) $ECHO_C" >&6
54120 else
54121   cat >conftest.make <<\_ACEOF
54122 SHELL = /bin/sh
54123 all:
54124         @echo '@@@%%%=$(MAKE)=@@@%%%'
54125 _ACEOF
54126 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
54127 case `${MAKE-make} -f conftest.make 2>/dev/null` in
54128   *@@@%%%=?*=@@@%%%*)
54129     eval ac_cv_prog_make_${ac_make}_set=yes;;
54130   *)
54131     eval ac_cv_prog_make_${ac_make}_set=no;;
54132 esac
54133 rm -f conftest.make
54134 fi
54135 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
54136   { echo "$as_me:$LINENO: result: yes" >&5
54137 echo "${ECHO_T}yes" >&6; }
54138   SET_MAKE=
54139 else
54140   { echo "$as_me:$LINENO: result: no" >&5
54141 echo "${ECHO_T}no" >&6; }
54142   SET_MAKE="MAKE=${MAKE-make}"
54143 fi
54144
54145
54146
54147     if test "x$SUNCXX" = "xyes"; then
54148                                 AR=${AR:-"$CXX"}
54149
54150         AROPTIONS=${AROPTIONS:-"-xar -o"}
54151     else
54152         if test -n "$ac_tool_prefix"; then
54153   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
54154 set dummy ${ac_tool_prefix}ar; ac_word=$2
54155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54157 if test "${ac_cv_prog_AR+set}" = set; then
54158   echo $ECHO_N "(cached) $ECHO_C" >&6
54159 else
54160   if test -n "$AR"; then
54161   ac_cv_prog_AR="$AR" # Let the user override the test.
54162 else
54163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54164 for as_dir in $PATH
54165 do
54166   IFS=$as_save_IFS
54167   test -z "$as_dir" && as_dir=.
54168   for ac_exec_ext in '' $ac_executable_extensions; do
54169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54170     ac_cv_prog_AR="${ac_tool_prefix}ar"
54171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54172     break 2
54173   fi
54174 done
54175 done
54176 IFS=$as_save_IFS
54177
54178 fi
54179 fi
54180 AR=$ac_cv_prog_AR
54181 if test -n "$AR"; then
54182   { echo "$as_me:$LINENO: result: $AR" >&5
54183 echo "${ECHO_T}$AR" >&6; }
54184 else
54185   { echo "$as_me:$LINENO: result: no" >&5
54186 echo "${ECHO_T}no" >&6; }
54187 fi
54188
54189
54190 fi
54191 if test -z "$ac_cv_prog_AR"; then
54192   ac_ct_AR=$AR
54193   # Extract the first word of "ar", so it can be a program name with args.
54194 set dummy ar; ac_word=$2
54195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54197 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
54198   echo $ECHO_N "(cached) $ECHO_C" >&6
54199 else
54200   if test -n "$ac_ct_AR"; then
54201   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
54202 else
54203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54204 for as_dir in $PATH
54205 do
54206   IFS=$as_save_IFS
54207   test -z "$as_dir" && as_dir=.
54208   for ac_exec_ext in '' $ac_executable_extensions; do
54209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54210     ac_cv_prog_ac_ct_AR="ar"
54211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54212     break 2
54213   fi
54214 done
54215 done
54216 IFS=$as_save_IFS
54217
54218 fi
54219 fi
54220 ac_ct_AR=$ac_cv_prog_ac_ct_AR
54221 if test -n "$ac_ct_AR"; then
54222   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
54223 echo "${ECHO_T}$ac_ct_AR" >&6; }
54224 else
54225   { echo "$as_me:$LINENO: result: no" >&5
54226 echo "${ECHO_T}no" >&6; }
54227 fi
54228
54229   if test "x$ac_ct_AR" = x; then
54230     AR="ar"
54231   else
54232     case $cross_compiling:$ac_tool_warned in
54233 yes:)
54234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54235 whose name does not start with the host triplet.  If you think this
54236 configuration is useful to you, please write to autoconf@gnu.org." >&5
54237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54238 whose name does not start with the host triplet.  If you think this
54239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54240 ac_tool_warned=yes ;;
54241 esac
54242     AR=$ac_ct_AR
54243   fi
54244 else
54245   AR="$ac_cv_prog_AR"
54246 fi
54247
54248         AROPTIONS=rcu
54249     fi
54250
54251
54252     if test -n "$ac_tool_prefix"; then
54253   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
54254 set dummy ${ac_tool_prefix}strip; ac_word=$2
54255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54257 if test "${ac_cv_prog_STRIP+set}" = set; then
54258   echo $ECHO_N "(cached) $ECHO_C" >&6
54259 else
54260   if test -n "$STRIP"; then
54261   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
54262 else
54263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54264 for as_dir in $PATH
54265 do
54266   IFS=$as_save_IFS
54267   test -z "$as_dir" && as_dir=.
54268   for ac_exec_ext in '' $ac_executable_extensions; do
54269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54270     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
54271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54272     break 2
54273   fi
54274 done
54275 done
54276 IFS=$as_save_IFS
54277
54278 fi
54279 fi
54280 STRIP=$ac_cv_prog_STRIP
54281 if test -n "$STRIP"; then
54282   { echo "$as_me:$LINENO: result: $STRIP" >&5
54283 echo "${ECHO_T}$STRIP" >&6; }
54284 else
54285   { echo "$as_me:$LINENO: result: no" >&5
54286 echo "${ECHO_T}no" >&6; }
54287 fi
54288
54289
54290 fi
54291 if test -z "$ac_cv_prog_STRIP"; then
54292   ac_ct_STRIP=$STRIP
54293   # Extract the first word of "strip", so it can be a program name with args.
54294 set dummy strip; ac_word=$2
54295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54297 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
54298   echo $ECHO_N "(cached) $ECHO_C" >&6
54299 else
54300   if test -n "$ac_ct_STRIP"; then
54301   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
54302 else
54303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54304 for as_dir in $PATH
54305 do
54306   IFS=$as_save_IFS
54307   test -z "$as_dir" && as_dir=.
54308   for ac_exec_ext in '' $ac_executable_extensions; do
54309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54310     ac_cv_prog_ac_ct_STRIP="strip"
54311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54312     break 2
54313   fi
54314 done
54315 done
54316 IFS=$as_save_IFS
54317
54318 fi
54319 fi
54320 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
54321 if test -n "$ac_ct_STRIP"; then
54322   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
54323 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
54324 else
54325   { echo "$as_me:$LINENO: result: no" >&5
54326 echo "${ECHO_T}no" >&6; }
54327 fi
54328
54329   if test "x$ac_ct_STRIP" = x; then
54330     STRIP=":"
54331   else
54332     case $cross_compiling:$ac_tool_warned in
54333 yes:)
54334 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54335 whose name does not start with the host triplet.  If you think this
54336 configuration is useful to you, please write to autoconf@gnu.org." >&5
54337 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54338 whose name does not start with the host triplet.  If you think this
54339 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54340 ac_tool_warned=yes ;;
54341 esac
54342     STRIP=$ac_ct_STRIP
54343   fi
54344 else
54345   STRIP="$ac_cv_prog_STRIP"
54346 fi
54347
54348     if test -n "$ac_tool_prefix"; then
54349   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
54350 set dummy ${ac_tool_prefix}nm; ac_word=$2
54351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54353 if test "${ac_cv_prog_NM+set}" = set; then
54354   echo $ECHO_N "(cached) $ECHO_C" >&6
54355 else
54356   if test -n "$NM"; then
54357   ac_cv_prog_NM="$NM" # Let the user override the test.
54358 else
54359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54360 for as_dir in $PATH
54361 do
54362   IFS=$as_save_IFS
54363   test -z "$as_dir" && as_dir=.
54364   for ac_exec_ext in '' $ac_executable_extensions; do
54365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54366     ac_cv_prog_NM="${ac_tool_prefix}nm"
54367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54368     break 2
54369   fi
54370 done
54371 done
54372 IFS=$as_save_IFS
54373
54374 fi
54375 fi
54376 NM=$ac_cv_prog_NM
54377 if test -n "$NM"; then
54378   { echo "$as_me:$LINENO: result: $NM" >&5
54379 echo "${ECHO_T}$NM" >&6; }
54380 else
54381   { echo "$as_me:$LINENO: result: no" >&5
54382 echo "${ECHO_T}no" >&6; }
54383 fi
54384
54385
54386 fi
54387 if test -z "$ac_cv_prog_NM"; then
54388   ac_ct_NM=$NM
54389   # Extract the first word of "nm", so it can be a program name with args.
54390 set dummy nm; ac_word=$2
54391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54393 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
54394   echo $ECHO_N "(cached) $ECHO_C" >&6
54395 else
54396   if test -n "$ac_ct_NM"; then
54397   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
54398 else
54399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54400 for as_dir in $PATH
54401 do
54402   IFS=$as_save_IFS
54403   test -z "$as_dir" && as_dir=.
54404   for ac_exec_ext in '' $ac_executable_extensions; do
54405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54406     ac_cv_prog_ac_ct_NM="nm"
54407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54408     break 2
54409   fi
54410 done
54411 done
54412 IFS=$as_save_IFS
54413
54414 fi
54415 fi
54416 ac_ct_NM=$ac_cv_prog_ac_ct_NM
54417 if test -n "$ac_ct_NM"; then
54418   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
54419 echo "${ECHO_T}$ac_ct_NM" >&6; }
54420 else
54421   { echo "$as_me:$LINENO: result: no" >&5
54422 echo "${ECHO_T}no" >&6; }
54423 fi
54424
54425   if test "x$ac_ct_NM" = x; then
54426     NM=":"
54427   else
54428     case $cross_compiling:$ac_tool_warned in
54429 yes:)
54430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54431 whose name does not start with the host triplet.  If you think this
54432 configuration is useful to you, please write to autoconf@gnu.org." >&5
54433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54434 whose name does not start with the host triplet.  If you think this
54435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54436 ac_tool_warned=yes ;;
54437 esac
54438     NM=$ac_ct_NM
54439   fi
54440 else
54441   NM="$ac_cv_prog_NM"
54442 fi
54443
54444
54445     case ${BAKEFILE_HOST} in
54446         *-hp-hpux* )
54447                                     INSTALL_DIR="mkdir -p"
54448             ;;
54449         * )
54450                                     INSTALL_DIR='$(INSTALL) -d'
54451             ;;
54452     esac
54453
54454
54455     LDFLAGS_GUI=
54456     case ${BAKEFILE_HOST} in
54457         *-*-cygwin* | *-*-mingw32* )
54458         LDFLAGS_GUI="-mwindows"
54459     esac
54460
54461
54462     fi
54463
54464         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
54465 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
54466 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
54467   echo $ECHO_N "(cached) $ECHO_C" >&6
54468 else
54469
54470         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
54471                 egrep -s GNU > /dev/null); then
54472             bakefile_cv_prog_makeisgnu="yes"
54473         else
54474             bakefile_cv_prog_makeisgnu="no"
54475         fi
54476
54477 fi
54478 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
54479 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
54480
54481     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
54482         IF_GNU_MAKE=""
54483     else
54484         IF_GNU_MAKE="#"
54485     fi
54486
54487
54488
54489     PLATFORM_UNIX=0
54490     PLATFORM_WIN32=0
54491     PLATFORM_MSDOS=0
54492     PLATFORM_MAC=0
54493     PLATFORM_MACOS=0
54494     PLATFORM_MACOSX=0
54495     PLATFORM_OS2=0
54496     PLATFORM_BEOS=0
54497
54498     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
54499         case "${BAKEFILE_HOST}" in
54500             *-*-mingw32* )
54501                 PLATFORM_WIN32=1
54502             ;;
54503             *-pc-msdosdjgpp )
54504                 PLATFORM_MSDOS=1
54505             ;;
54506             *-pc-os2_emx | *-pc-os2-emx )
54507                 PLATFORM_OS2=1
54508             ;;
54509             *-*-darwin* )
54510                 PLATFORM_MAC=1
54511                 PLATFORM_MACOSX=1
54512             ;;
54513             *-*-beos* )
54514                 PLATFORM_BEOS=1
54515             ;;
54516             powerpc-apple-macos* )
54517                 PLATFORM_MAC=1
54518                 PLATFORM_MACOS=1
54519             ;;
54520             * )
54521                 PLATFORM_UNIX=1
54522             ;;
54523         esac
54524     else
54525         case "$BAKEFILE_FORCE_PLATFORM" in
54526             win32 )
54527                 PLATFORM_WIN32=1
54528             ;;
54529             msdos )
54530                 PLATFORM_MSDOS=1
54531             ;;
54532             os2 )
54533                 PLATFORM_OS2=1
54534             ;;
54535             darwin )
54536                 PLATFORM_MAC=1
54537                 PLATFORM_MACOSX=1
54538             ;;
54539             unix )
54540                 PLATFORM_UNIX=1
54541             ;;
54542             beos )
54543                 PLATFORM_BEOS=1
54544             ;;
54545             * )
54546                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
54547 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
54548    { (exit 1); exit 1; }; }
54549             ;;
54550         esac
54551     fi
54552
54553
54554
54555
54556
54557
54558
54559
54560
54561
54562
54563     # Check whether --enable-omf was given.
54564 if test "${enable_omf+set}" = set; then
54565   enableval=$enable_omf; bk_os2_use_omf="$enableval"
54566 fi
54567
54568
54569     case "${BAKEFILE_HOST}" in
54570       *-*-darwin* )
54571                         if test "x$GCC" = "xyes"; then
54572             CFLAGS="$CFLAGS -fno-common"
54573             CXXFLAGS="$CXXFLAGS -fno-common"
54574         fi
54575         if test "x$XLCC" = "xyes"; then
54576             CFLAGS="$CFLAGS -qnocommon"
54577             CXXFLAGS="$CXXFLAGS -qnocommon"
54578         fi
54579         ;;
54580
54581       *-pc-os2_emx | *-pc-os2-emx )
54582         if test "x$bk_os2_use_omf" = "xyes" ; then
54583             AR=emxomfar
54584             RANLIB=:
54585             LDFLAGS="-Zomf $LDFLAGS"
54586             CFLAGS="-Zomf $CFLAGS"
54587             CXXFLAGS="-Zomf $CXXFLAGS"
54588             OS2_LIBEXT="lib"
54589         else
54590             OS2_LIBEXT="a"
54591         fi
54592         ;;
54593
54594       i*86-*-beos* )
54595         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
54596         ;;
54597     esac
54598
54599
54600     SO_SUFFIX="so"
54601     SO_SUFFIX_MODULE="so"
54602     EXEEXT=""
54603     LIBPREFIX="lib"
54604     LIBEXT=".a"
54605     DLLPREFIX="lib"
54606     DLLPREFIX_MODULE=""
54607     DLLIMP_SUFFIX=""
54608     dlldir="$libdir"
54609
54610     case "${BAKEFILE_HOST}" in
54611         *-hp-hpux* )
54612             SO_SUFFIX="sl"
54613             SO_SUFFIX_MODULE="sl"
54614         ;;
54615         *-*-aix* )
54616                                                                         SO_SUFFIX="a"
54617             SO_SUFFIX_MODULE="a"
54618         ;;
54619         *-*-cygwin* )
54620             SO_SUFFIX="dll"
54621             SO_SUFFIX_MODULE="dll"
54622             DLLIMP_SUFFIX="dll.a"
54623             EXEEXT=".exe"
54624             DLLPREFIX="cyg"
54625             dlldir="$bindir"
54626         ;;
54627         *-*-mingw32* )
54628             SO_SUFFIX="dll"
54629             SO_SUFFIX_MODULE="dll"
54630             DLLIMP_SUFFIX="dll.a"
54631             EXEEXT=".exe"
54632             DLLPREFIX=""
54633             dlldir="$bindir"
54634         ;;
54635         *-pc-msdosdjgpp )
54636             EXEEXT=".exe"
54637             DLLPREFIX=""
54638             dlldir="$bindir"
54639         ;;
54640         *-pc-os2_emx | *-pc-os2-emx )
54641             SO_SUFFIX="dll"
54642             SO_SUFFIX_MODULE="dll"
54643             DLLIMP_SUFFIX=$OS2_LIBEXT
54644             EXEEXT=".exe"
54645             DLLPREFIX=""
54646             LIBPREFIX=""
54647             LIBEXT=".$OS2_LIBEXT"
54648             dlldir="$bindir"
54649         ;;
54650         *-*-darwin* )
54651             SO_SUFFIX="dylib"
54652             SO_SUFFIX_MODULE="bundle"
54653         ;;
54654     esac
54655
54656     if test "x$DLLIMP_SUFFIX" = "x" ; then
54657         DLLIMP_SUFFIX="$SO_SUFFIX"
54658     fi
54659
54660
54661
54662
54663
54664
54665
54666
54667
54668
54669
54670
54671         PIC_FLAG=""
54672     if test "x$GCC" = "xyes"; then
54673                 PIC_FLAG="-fPIC"
54674     fi
54675
54676         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
54677     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
54678     WINDOWS_IMPLIB=0
54679
54680     case "${BAKEFILE_HOST}" in
54681       *-hp-hpux* )
54682                 if test "x$GCC" != "xyes"; then
54683                         LDFLAGS="$LDFLAGS -L/usr/lib"
54684
54685             SHARED_LD_CC="${CC} -b -o"
54686             SHARED_LD_CXX="${CXX} -b -o"
54687             PIC_FLAG="+Z"
54688         fi
54689       ;;
54690
54691       *-*-linux* )
54692         if test "x$GCC" != "xyes"; then
54693             { echo "$as_me:$LINENO: checking for Intel compiler" >&5
54694 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6; }
54695 if test "${bakefile_cv_prog_icc+set}" = set; then
54696   echo $ECHO_N "(cached) $ECHO_C" >&6
54697 else
54698
54699                 cat >conftest.$ac_ext <<_ACEOF
54700 /* confdefs.h.  */
54701 _ACEOF
54702 cat confdefs.h >>conftest.$ac_ext
54703 cat >>conftest.$ac_ext <<_ACEOF
54704 /* end confdefs.h.  */
54705
54706 int
54707 main ()
54708 {
54709
54710                         #ifndef __INTEL_COMPILER
54711                         This is not ICC
54712                         #endif
54713
54714   ;
54715   return 0;
54716 }
54717 _ACEOF
54718 rm -f conftest.$ac_objext
54719 if { (ac_try="$ac_compile"
54720 case "(($ac_try" in
54721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54722   *) ac_try_echo=$ac_try;;
54723 esac
54724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54725   (eval "$ac_compile") 2>conftest.er1
54726   ac_status=$?
54727   grep -v '^ *+' conftest.er1 >conftest.err
54728   rm -f conftest.er1
54729   cat conftest.err >&5
54730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54731   (exit $ac_status); } &&
54732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54733   { (case "(($ac_try" in
54734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54735   *) ac_try_echo=$ac_try;;
54736 esac
54737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54738   (eval "$ac_try") 2>&5
54739   ac_status=$?
54740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54741   (exit $ac_status); }; } &&
54742          { ac_try='test -s conftest.$ac_objext'
54743   { (case "(($ac_try" in
54744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54745   *) ac_try_echo=$ac_try;;
54746 esac
54747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54748   (eval "$ac_try") 2>&5
54749   ac_status=$?
54750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54751   (exit $ac_status); }; }; then
54752   bakefile_cv_prog_icc=yes
54753 else
54754   echo "$as_me: failed program was:" >&5
54755 sed 's/^/| /' conftest.$ac_ext >&5
54756
54757         bakefile_cv_prog_icc=no
54758
54759 fi
54760
54761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54762
54763 fi
54764 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
54765 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6; }
54766             if test "$bakefile_cv_prog_icc" = "yes"; then
54767                 PIC_FLAG="-KPIC"
54768             fi
54769         fi
54770       ;;
54771
54772       *-*-solaris2* )
54773         if test "x$GCC" != xyes ; then
54774             SHARED_LD_CC="${CC} -G -o"
54775             SHARED_LD_CXX="${CXX} -G -o"
54776             PIC_FLAG="-KPIC"
54777         fi
54778       ;;
54779
54780       *-*-darwin* )
54781
54782 D='$'
54783 cat <<EOF >shared-ld-sh
54784 #!/bin/sh
54785 #-----------------------------------------------------------------------------
54786 #-- Name:        distrib/mac/shared-ld-sh
54787 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
54788 #-- Author:      Gilles Depeyrot
54789 #-- Copyright:   (c) 2002 Gilles Depeyrot
54790 #-- Licence:     any use permitted
54791 #-----------------------------------------------------------------------------
54792
54793 verbose=0
54794 args=""
54795 objects=""
54796 linking_flag="-dynamiclib"
54797 ldargs="-r -keep_private_externs -nostdlib"
54798
54799 while test ${D}# -gt 0; do
54800     case ${D}1 in
54801
54802        -v)
54803         verbose=1
54804         ;;
54805
54806        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
54807         # collect these options and values
54808         args="${D}{args} ${D}1 ${D}2"
54809         shift
54810         ;;
54811
54812        -s|-Wl,*)
54813         # collect these load args
54814         ldargs="${D}{ldargs} ${D}1"
54815         ;;
54816
54817        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
54818         # collect these options
54819         args="${D}{args} ${D}1"
54820         ;;
54821
54822        -dynamiclib|-bundle)
54823         linking_flag="${D}1"
54824         ;;
54825
54826        -*)
54827         echo "shared-ld: unhandled option '${D}1'"
54828         exit 1
54829         ;;
54830
54831         *.o | *.a | *.dylib)
54832         # collect object files
54833         objects="${D}{objects} ${D}1"
54834         ;;
54835
54836         *)
54837         echo "shared-ld: unhandled argument '${D}1'"
54838         exit 1
54839         ;;
54840
54841     esac
54842     shift
54843 done
54844
54845 status=0
54846
54847 #
54848 # Link one module containing all the others
54849 #
54850 if test ${D}{verbose} = 1; then
54851     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
54852 fi
54853 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
54854 status=${D}?
54855
54856 #
54857 # Link the shared library from the single module created, but only if the
54858 # previous command didn't fail:
54859 #
54860 if test ${D}{status} = 0; then
54861     if test ${D}{verbose} = 1; then
54862         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
54863     fi
54864     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
54865     status=${D}?
54866 fi
54867
54868 #
54869 # Remove intermediate module
54870 #
54871 rm -f master.${D}${D}.o
54872
54873 exit ${D}status
54874 EOF
54875
54876         chmod +x shared-ld-sh
54877
54878         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
54879         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
54880
54881
54882                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
54883 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
54884 if test "${bakefile_cv_gcc31+set}" = set; then
54885   echo $ECHO_N "(cached) $ECHO_C" >&6
54886 else
54887
54888            cat >conftest.$ac_ext <<_ACEOF
54889 /* confdefs.h.  */
54890 _ACEOF
54891 cat confdefs.h >>conftest.$ac_ext
54892 cat >>conftest.$ac_ext <<_ACEOF
54893 /* end confdefs.h.  */
54894
54895 int
54896 main ()
54897 {
54898
54899                    #if (__GNUC__ < 3) || \
54900                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
54901                        This is old gcc
54902                    #endif
54903
54904   ;
54905   return 0;
54906 }
54907 _ACEOF
54908 rm -f conftest.$ac_objext
54909 if { (ac_try="$ac_compile"
54910 case "(($ac_try" in
54911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54912   *) ac_try_echo=$ac_try;;
54913 esac
54914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54915   (eval "$ac_compile") 2>conftest.er1
54916   ac_status=$?
54917   grep -v '^ *+' conftest.er1 >conftest.err
54918   rm -f conftest.er1
54919   cat conftest.err >&5
54920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54921   (exit $ac_status); } &&
54922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54923   { (case "(($ac_try" in
54924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54925   *) ac_try_echo=$ac_try;;
54926 esac
54927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54928   (eval "$ac_try") 2>&5
54929   ac_status=$?
54930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54931   (exit $ac_status); }; } &&
54932          { ac_try='test -s conftest.$ac_objext'
54933   { (case "(($ac_try" in
54934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54935   *) ac_try_echo=$ac_try;;
54936 esac
54937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54938   (eval "$ac_try") 2>&5
54939   ac_status=$?
54940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54941   (exit $ac_status); }; }; then
54942
54943                    bakefile_cv_gcc31=yes
54944
54945 else
54946   echo "$as_me: failed program was:" >&5
54947 sed 's/^/| /' conftest.$ac_ext >&5
54948
54949
54950                    bakefile_cv_gcc31=no
54951
54952
54953 fi
54954
54955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54956
54957 fi
54958 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
54959 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
54960         if test "$bakefile_cv_gcc31" = "no"; then
54961                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
54962             SHARED_LD_CXX="$SHARED_LD_CC"
54963         else
54964                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
54965             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
54966         fi
54967
54968         if test "x$GCC" == "xyes"; then
54969             PIC_FLAG="-dynamic -fPIC"
54970         fi
54971         if test "x$XLCC" = "xyes"; then
54972             PIC_FLAG="-dynamic -DPIC"
54973         fi
54974       ;;
54975
54976       *-*-aix* )
54977         if test "x$GCC" = "xyes"; then
54978                                                             PIC_FLAG=""
54979
54980                                                                                     case "${BAKEFILE_HOST}" in
54981                 *-*-aix5* )
54982                     LD_EXPFULL="-Wl,-bexpfull"
54983                     ;;
54984             esac
54985
54986             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
54987             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
54988         else
54989                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
54990 set dummy makeC++SharedLib; ac_word=$2
54991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54993 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
54994   echo $ECHO_N "(cached) $ECHO_C" >&6
54995 else
54996   if test -n "$AIX_CXX_LD"; then
54997   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
54998 else
54999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55000 for as_dir in $PATH
55001 do
55002   IFS=$as_save_IFS
55003   test -z "$as_dir" && as_dir=.
55004   for ac_exec_ext in '' $ac_executable_extensions; do
55005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
55006     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
55007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55008     break 2
55009   fi
55010 done
55011 done
55012 IFS=$as_save_IFS
55013
55014   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
55015 fi
55016 fi
55017 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
55018 if test -n "$AIX_CXX_LD"; then
55019   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
55020 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
55021 else
55022   { echo "$as_me:$LINENO: result: no" >&5
55023 echo "${ECHO_T}no" >&6; }
55024 fi
55025
55026
55027             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
55028             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
55029         fi
55030       ;;
55031
55032       *-*-beos* )
55033                         SHARED_LD_CC="${LD} -nostart -o"
55034         SHARED_LD_CXX="${LD} -nostart -o"
55035       ;;
55036
55037       *-*-irix* )
55038                 if test "x$GCC" != "xyes"; then
55039             PIC_FLAG="-KPIC"
55040         fi
55041       ;;
55042
55043       *-*-cygwin* | *-*-mingw32* )
55044         PIC_FLAG=""
55045         SHARED_LD_CC="\$(CC) -shared -o"
55046         SHARED_LD_CXX="\$(CXX) -shared -o"
55047         WINDOWS_IMPLIB=1
55048       ;;
55049
55050       *-pc-os2_emx | *-pc-os2-emx )
55051         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55052         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55053         PIC_FLAG=""
55054
55055 D='$'
55056 cat <<EOF >dllar.sh
55057 #!/bin/sh
55058 #
55059 # dllar - a tool to build both a .dll and an .a file
55060 # from a set of object (.o) files for EMX/OS2.
55061 #
55062 #  Written by Andrew Zabolotny, bit@freya.etu.ru
55063 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
55064 #
55065 #  This script will accept a set of files on the command line.
55066 #  All the public symbols from the .o files will be exported into
55067 #  a .DEF file, then linker will be run (through gcc) against them to
55068 #  build a shared library consisting of all given .o files. All libraries
55069 #  (.a) will be first decompressed into component .o files then act as
55070 #  described above. You can optionally give a description (-d "description")
55071 #  which will be put into .DLL. To see the list of accepted options (as well
55072 #  as command-line format) simply run this program without options. The .DLL
55073 #  is built to be imported by name (there is no guarantee that new versions
55074 #  of the library you build will have same ordinals for same symbols).
55075 #
55076 #  dllar is free software; you can redistribute it and/or modify
55077 #  it under the terms of the GNU General Public License as published by
55078 #  the Free Software Foundation; either version 2, or (at your option)
55079 #  any later version.
55080 #
55081 #  dllar is distributed in the hope that it will be useful,
55082 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
55083 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
55084 #  GNU General Public License for more details.
55085 #
55086 #  You should have received a copy of the GNU General Public License
55087 #  along with dllar; see the file COPYING.  If not, write to the Free
55088 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
55089 #  02111-1307, USA.
55090
55091 # To successfuly run this program you will need:
55092 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
55093 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
55094 #  - gcc
55095 #    (used to build the .dll)
55096 #  - emxexp
55097 #    (used to create .def file from .o files)
55098 #  - emximp
55099 #    (used to create .a file from .def file)
55100 #  - GNU text utilites (cat, sort, uniq)
55101 #    used to process emxexp output
55102 #  - GNU file utilities (mv, rm)
55103 #  - GNU sed
55104 #  - lxlite (optional, see flag below)
55105 #    (used for general .dll cleanup)
55106 #
55107
55108 flag_USE_LXLITE=1;
55109
55110 #
55111 # helper functions
55112 # basnam, variant of basename, which does _not_ remove the path, _iff_
55113 #                              second argument (suffix to remove) is given
55114 basnam(){
55115     case ${D}# in
55116     1)
55117         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
55118         ;;
55119     2)
55120         echo ${D}1 | sed 's/'${D}2'${D}//'
55121         ;;
55122     *)
55123         echo "error in basnam ${D}*"
55124         exit 8
55125         ;;
55126     esac
55127 }
55128
55129 # Cleanup temporary files and output
55130 CleanUp() {
55131     cd ${D}curDir
55132     for i in ${D}inputFiles ; do
55133         case ${D}i in
55134         *!)
55135             rm -rf \`basnam ${D}i !\`
55136             ;;
55137         *)
55138             ;;
55139         esac
55140     done
55141
55142     # Kill result in case of failure as there is just to many stupid make/nmake
55143     # things out there which doesn't do this.
55144     if [ ${D}# -eq 0 ]; then
55145         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
55146     fi
55147 }
55148
55149 # Print usage and exit script with rc=1.
55150 PrintHelp() {
55151  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
55152  echo '       [-name-mangler-script script.sh]'
55153  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
55154  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
55155  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
55156  echo '       [*.o] [*.a]'
55157  echo '*> "output_file" should have no extension.'
55158  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
55159  echo '   The import library name is derived from this and is set to "name".a,'
55160  echo '   unless overridden by -import'
55161  echo '*> "importlib_name" should have no extension.'
55162  echo '   If it has the .o, or .a extension, it is automatically removed.'
55163  echo '   This name is used as the import library name and may be longer and'
55164  echo '   more descriptive than the DLL name which has to follow the old '
55165  echo '   8.3 convention of FAT.'
55166  echo '*> "script.sh may be given to override the output_file name by a'
55167  echo '   different name. It is mainly useful if the regular make process'
55168  echo '   of some package does not take into account OS/2 restriction of'
55169  echo '   DLL name lengths. It takes the importlib name as input and is'
55170  echo '   supposed to procude a shorter name as output. The script should'
55171  echo '   expect to get importlib_name without extension and should produce'
55172  echo '   a (max.) 8 letter name without extension.'
55173  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
55174  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
55175  echo '   These flags will be put at the start of GCC command line.'
55176  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
55177  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
55178  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
55179  echo '   If the last character of a symbol is "*", all symbols beginning'
55180  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
55181  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
55182  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
55183  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
55184  echo '   C runtime DLLs.'
55185  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
55186  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
55187  echo '   unchanged to GCC at the end of command line.'
55188  echo '*> If you create a DLL from a library and you do not specify -o,'
55189  echo '   the basename for DLL and import library will be set to library name,'
55190  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
55191  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
55192  echo '   library will be renamed into gcc_s.a.'
55193  echo '--------'
55194  echo 'Example:'
55195  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
55196  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
55197  CleanUp
55198  exit 1
55199 }
55200
55201 # Execute a command.
55202 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
55203 # @Uses    Whatever CleanUp() uses.
55204 doCommand() {
55205     echo "${D}*"
55206     eval ${D}*
55207     rcCmd=${D}?
55208
55209     if [ ${D}rcCmd -ne 0 ]; then
55210         echo "command failed, exit code="${D}rcCmd
55211         CleanUp
55212         exit ${D}rcCmd
55213     fi
55214 }
55215
55216 # main routine
55217 # setup globals
55218 cmdLine=${D}*
55219 outFile=""
55220 outimpFile=""
55221 inputFiles=""
55222 renameScript=""
55223 description=""
55224 CC=gcc.exe
55225 CFLAGS="-s -Zcrtdll"
55226 EXTRA_CFLAGS=""
55227 EXPORT_BY_ORDINALS=0
55228 exclude_symbols=""
55229 library_flags=""
55230 curDir=\`pwd\`
55231 curDirS=curDir
55232 case ${D}curDirS in
55233 */)
55234   ;;
55235 *)
55236   curDirS=${D}{curDirS}"/"
55237   ;;
55238 esac
55239 # Parse commandline
55240 libsToLink=0
55241 omfLinking=0
55242 while [ ${D}1 ]; do
55243     case ${D}1 in
55244     -ord*)
55245         EXPORT_BY_ORDINALS=1;
55246         ;;
55247     -o*)
55248         shift
55249         outFile=${D}1
55250         ;;
55251     -i*)
55252         shift
55253         outimpFile=${D}1
55254         ;;
55255     -name-mangler-script)
55256         shift
55257         renameScript=${D}1
55258         ;;
55259     -d*)
55260         shift
55261         description=${D}1
55262         ;;
55263     -f*)
55264         shift
55265         CFLAGS=${D}1
55266         ;;
55267     -c*)
55268         shift
55269         CC=${D}1
55270         ;;
55271     -h*)
55272         PrintHelp
55273         ;;
55274     -ex*)
55275         shift
55276         exclude_symbols=${D}{exclude_symbols}${D}1" "
55277         ;;
55278     -libf*)
55279         shift
55280         library_flags=${D}{library_flags}${D}1" "
55281         ;;
55282     -nocrt*)
55283         CFLAGS="-s"
55284         ;;
55285     -nolxl*)
55286         flag_USE_LXLITE=0
55287         ;;
55288     -* | /*)
55289         case ${D}1 in
55290         -L* | -l*)
55291             libsToLink=1
55292             ;;
55293         -Zomf)
55294             omfLinking=1
55295             ;;
55296         *)
55297             ;;
55298         esac
55299         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
55300         ;;
55301     *.dll)
55302         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
55303         if [ ${D}omfLinking -eq 1 ]; then
55304             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
55305         else
55306             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
55307         fi
55308         ;;
55309     *)
55310         found=0;
55311         if [ ${D}libsToLink -ne 0 ]; then
55312             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
55313         else
55314             for file in ${D}1 ; do
55315                 if [ -f ${D}file ]; then
55316                     inputFiles="${D}{inputFiles} ${D}file"
55317                     found=1
55318                 fi
55319             done
55320             if [ ${D}found -eq 0 ]; then
55321                 echo "ERROR: No file(s) found: "${D}1
55322                 exit 8
55323             fi
55324         fi
55325       ;;
55326     esac
55327     shift
55328 done # iterate cmdline words
55329
55330 #
55331 if [ -z "${D}inputFiles" ]; then
55332     echo "dllar: no input files"
55333     PrintHelp
55334 fi
55335
55336 # Now extract all .o files from .a files
55337 newInputFiles=""
55338 for file in ${D}inputFiles ; do
55339     case ${D}file in
55340     *.a | *.lib)
55341         case ${D}file in
55342         *.a)
55343             suffix=".a"
55344             AR="ar"
55345             ;;
55346         *.lib)
55347             suffix=".lib"
55348             AR="emxomfar"
55349             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
55350             ;;
55351         *)
55352             ;;
55353         esac
55354         dirname=\`basnam ${D}file ${D}suffix\`"_%"
55355         mkdir ${D}dirname
55356         if [ ${D}? -ne 0 ]; then
55357             echo "Failed to create subdirectory ./${D}dirname"
55358             CleanUp
55359             exit 8;
55360         fi
55361         # Append '!' to indicate archive
55362         newInputFiles="${D}newInputFiles ${D}{dirname}!"
55363         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
55364         cd ${D}curDir
55365         found=0;
55366         for subfile in ${D}dirname/*.o* ; do
55367             if [ -f ${D}subfile ]; then
55368                 found=1
55369                 if [ -s ${D}subfile ]; then
55370                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
55371                     newInputFiles="${D}newInputFiles ${D}subfile"
55372                 fi
55373             fi
55374         done
55375         if [ ${D}found -eq 0 ]; then
55376             echo "WARNING: there are no files in archive \\'${D}file\\'"
55377         fi
55378         ;;
55379     *)
55380         newInputFiles="${D}{newInputFiles} ${D}file"
55381         ;;
55382     esac
55383 done
55384 inputFiles="${D}newInputFiles"
55385
55386 # Output filename(s).
55387 do_backup=0;
55388 if [ -z ${D}outFile ]; then
55389     do_backup=1;
55390     set outFile ${D}inputFiles; outFile=${D}2
55391 fi
55392
55393 # If it is an archive, remove the '!' and the '_%' suffixes
55394 case ${D}outFile in
55395 *_%!)
55396     outFile=\`basnam ${D}outFile _%!\`
55397     ;;
55398 *)
55399     ;;
55400 esac
55401 case ${D}outFile in
55402 *.dll)
55403     outFile=\`basnam ${D}outFile .dll\`
55404     ;;
55405 *.DLL)
55406     outFile=\`basnam ${D}outFile .DLL\`
55407     ;;
55408 *.o)
55409     outFile=\`basnam ${D}outFile .o\`
55410     ;;
55411 *.obj)
55412     outFile=\`basnam ${D}outFile .obj\`
55413     ;;
55414 *.a)
55415     outFile=\`basnam ${D}outFile .a\`
55416     ;;
55417 *.lib)
55418     outFile=\`basnam ${D}outFile .lib\`
55419     ;;
55420 *)
55421     ;;
55422 esac
55423 case ${D}outimpFile in
55424 *.a)
55425     outimpFile=\`basnam ${D}outimpFile .a\`
55426     ;;
55427 *.lib)
55428     outimpFile=\`basnam ${D}outimpFile .lib\`
55429     ;;
55430 *)
55431     ;;
55432 esac
55433 if [ -z ${D}outimpFile ]; then
55434     outimpFile=${D}outFile
55435 fi
55436 defFile="${D}{outFile}.def"
55437 arcFile="${D}{outimpFile}.a"
55438 arcFile2="${D}{outimpFile}.lib"
55439
55440 #create ${D}dllFile as something matching 8.3 restrictions,
55441 if [ -z ${D}renameScript ] ; then
55442     dllFile="${D}outFile"
55443 else
55444     dllFile=\`${D}renameScript ${D}outimpFile\`
55445 fi
55446
55447 if [ ${D}do_backup -ne 0 ] ; then
55448     if [ -f ${D}arcFile ] ; then
55449         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
55450     fi
55451     if [ -f ${D}arcFile2 ] ; then
55452         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
55453     fi
55454 fi
55455
55456 # Extract public symbols from all the object files.
55457 tmpdefFile=${D}{defFile}_%
55458 rm -f ${D}tmpdefFile
55459 for file in ${D}inputFiles ; do
55460     case ${D}file in
55461     *!)
55462         ;;
55463     *)
55464         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
55465         ;;
55466     esac
55467 done
55468
55469 # Create the def file.
55470 rm -f ${D}defFile
55471 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
55472 dllFile="${D}{dllFile}.dll"
55473 if [ ! -z ${D}description ]; then
55474     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
55475 fi
55476 echo "EXPORTS" >> ${D}defFile
55477
55478 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
55479 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
55480
55481 # Checks if the export is ok or not.
55482 for word in ${D}exclude_symbols; do
55483     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
55484     mv ${D}{tmpdefFile}% ${D}tmpdefFile
55485 done
55486
55487
55488 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
55489     sed "=" < ${D}tmpdefFile | \\
55490     sed '
55491       N
55492       : loop
55493       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
55494       t loop
55495     ' > ${D}{tmpdefFile}%
55496     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
55497 else
55498     rm -f ${D}{tmpdefFile}%
55499 fi
55500 cat ${D}tmpdefFile >> ${D}defFile
55501 rm -f ${D}tmpdefFile
55502
55503 # Do linking, create implib, and apply lxlite.
55504 gccCmdl="";
55505 for file in ${D}inputFiles ; do
55506     case ${D}file in
55507     *!)
55508         ;;
55509     *)
55510         gccCmdl="${D}gccCmdl ${D}file"
55511         ;;
55512     esac
55513 done
55514 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
55515 touch "${D}{outFile}.dll"
55516
55517 doCommand "emximp -o ${D}arcFile ${D}defFile"
55518 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
55519     add_flags="";
55520     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
55521         add_flags="-ynd"
55522     fi
55523     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
55524 fi
55525 doCommand "emxomf -s -l ${D}arcFile"
55526
55527 # Successful exit.
55528 CleanUp 1
55529 exit 0
55530 EOF
55531
55532         chmod +x dllar.sh
55533       ;;
55534
55535       powerpc-apple-macos* | \
55536       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
55537       *-*-mirbsd* | \
55538       *-*-sunos4* | \
55539       *-*-osf* | \
55540       *-*-dgux5* | \
55541       *-*-sysv5* | \
55542       *-pc-msdosdjgpp )
55543               ;;
55544
55545       *)
55546                     esac
55547
55548     if test "x$PIC_FLAG" != "x" ; then
55549         PIC_FLAG="$PIC_FLAG -DPIC"
55550     fi
55551
55552     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
55553         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
55554     fi
55555     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
55556         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
55557     fi
55558
55559
55560
55561
55562
55563
55564
55565
55566
55567     USE_SOVERSION=0
55568     USE_SOVERLINUX=0
55569     USE_SOVERSOLARIS=0
55570     USE_SOVERCYGWIN=0
55571     USE_SOSYMLINKS=0
55572     USE_MACVERSION=0
55573     SONAME_FLAG=
55574
55575     case "${BAKEFILE_HOST}" in
55576       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
55577         SONAME_FLAG="-Wl,-soname,"
55578         USE_SOVERSION=1
55579         USE_SOVERLINUX=1
55580         USE_SOSYMLINKS=1
55581       ;;
55582
55583       *-*-solaris2* )
55584         SONAME_FLAG="-h "
55585         USE_SOVERSION=1
55586         USE_SOVERSOLARIS=1
55587         USE_SOSYMLINKS=1
55588       ;;
55589
55590       *-*-darwin* )
55591         USE_MACVERSION=1
55592         USE_SOVERSION=1
55593         USE_SOSYMLINKS=1
55594       ;;
55595
55596       *-*-cygwin* )
55597         USE_SOVERSION=1
55598         USE_SOVERCYGWIN=1
55599       ;;
55600     esac
55601
55602
55603
55604
55605
55606
55607
55608
55609
55610
55611     # Check whether --enable-dependency-tracking was given.
55612 if test "${enable_dependency_tracking+set}" = set; then
55613   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
55614 fi
55615
55616
55617     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
55618 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
55619
55620     BK_DEPS=""
55621     if test "x$bk_use_trackdeps" = "xno" ; then
55622         DEPS_TRACKING=0
55623         { echo "$as_me:$LINENO: result: disabled" >&5
55624 echo "${ECHO_T}disabled" >&6; }
55625     else
55626         DEPS_TRACKING=1
55627
55628         if test "x$GCC" = "xyes"; then
55629             DEPSMODE=gcc
55630             case "${BAKEFILE_HOST}" in
55631                 *-*-darwin* )
55632                                                             DEPSFLAG="-no-cpp-precomp -MMD"
55633                 ;;
55634                 * )
55635                     DEPSFLAG="-MMD"
55636                 ;;
55637             esac
55638             { echo "$as_me:$LINENO: result: gcc" >&5
55639 echo "${ECHO_T}gcc" >&6; }
55640         elif test "x$MWCC" = "xyes"; then
55641             DEPSMODE=mwcc
55642             DEPSFLAG="-MM"
55643             { echo "$as_me:$LINENO: result: mwcc" >&5
55644 echo "${ECHO_T}mwcc" >&6; }
55645         elif test "x$SUNCC" = "xyes"; then
55646             DEPSMODE=unixcc
55647             DEPSFLAG="-xM1"
55648             { echo "$as_me:$LINENO: result: Sun cc" >&5
55649 echo "${ECHO_T}Sun cc" >&6; }
55650         elif test "x$SGICC" = "xyes"; then
55651             DEPSMODE=unixcc
55652             DEPSFLAG="-M"
55653             { echo "$as_me:$LINENO: result: SGI cc" >&5
55654 echo "${ECHO_T}SGI cc" >&6; }
55655         elif test "x$HPCC" = "xyes"; then
55656             DEPSMODE=unixcc
55657             DEPSFLAG="+make"
55658             { echo "$as_me:$LINENO: result: HP cc" >&5
55659 echo "${ECHO_T}HP cc" >&6; }
55660         elif test "x$COMPAQCC" = "xyes"; then
55661             DEPSMODE=gcc
55662             DEPSFLAG="-MD"
55663             { echo "$as_me:$LINENO: result: Compaq cc" >&5
55664 echo "${ECHO_T}Compaq cc" >&6; }
55665         else
55666             DEPS_TRACKING=0
55667             { echo "$as_me:$LINENO: result: none" >&5
55668 echo "${ECHO_T}none" >&6; }
55669         fi
55670
55671         if test $DEPS_TRACKING = 1 ; then
55672
55673 D='$'
55674 cat <<EOF >bk-deps
55675 #!/bin/sh
55676
55677 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
55678 # script. It is used to track C/C++ files dependencies in portable way.
55679 #
55680 # Permission is given to use this file in any way.
55681
55682 DEPSMODE=${DEPSMODE}
55683 DEPSDIR=.deps
55684 DEPSFLAG="${DEPSFLAG}"
55685
55686 mkdir -p ${D}DEPSDIR
55687
55688 if test ${D}DEPSMODE = gcc ; then
55689     ${D}* ${D}{DEPSFLAG}
55690     status=${D}?
55691     if test ${D}{status} != 0 ; then
55692         exit ${D}{status}
55693     fi
55694     # move created file to the location we want it in:
55695     while test ${D}# -gt 0; do
55696         case "${D}1" in
55697             -o )
55698                 shift
55699                 objfile=${D}1
55700             ;;
55701             -* )
55702             ;;
55703             * )
55704                 srcfile=${D}1
55705             ;;
55706         esac
55707         shift
55708     done
55709     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
55710     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
55711     if test -f ${D}depfile ; then
55712         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
55713         rm -f ${D}depfile
55714     else
55715         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
55716         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
55717         if test ! -f ${D}depfile ; then
55718             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
55719             depfile="${D}objfile.d"
55720         fi
55721         if test -f ${D}depfile ; then
55722             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
55723             rm -f ${D}depfile
55724         fi
55725     fi
55726     exit 0
55727 elif test ${D}DEPSMODE = mwcc ; then
55728     ${D}* || exit ${D}?
55729     # Run mwcc again with -MM and redirect into the dep file we want
55730     # NOTE: We can't use shift here because we need ${D}* to be valid
55731     prevarg=
55732     for arg in ${D}* ; do
55733         if test "${D}prevarg" = "-o"; then
55734             objfile=${D}arg
55735         else
55736             case "${D}arg" in
55737                 -* )
55738                 ;;
55739                 * )
55740                     srcfile=${D}arg
55741                 ;;
55742             esac
55743         fi
55744         prevarg="${D}arg"
55745     done
55746     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
55747     exit 0
55748 elif test ${D}DEPSMODE = unixcc; then
55749     ${D}* || exit ${D}?
55750     # Run compiler again with deps flag and redirect into the dep file.
55751     # It doesn't work if the '-o FILE' option is used, but without it the
55752     # dependency file will contain the wrong name for the object. So it is
55753     # removed from the command line, and the dep file is fixed with sed.
55754     cmd=""
55755     while test ${D}# -gt 0; do
55756         case "${D}1" in
55757             -o )
55758                 shift
55759                 objfile=${D}1
55760             ;;
55761             * )
55762                 eval arg${D}#=\\${D}1
55763                 cmd="${D}cmd \\${D}arg${D}#"
55764             ;;
55765         esac
55766         shift
55767     done
55768     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
55769     exit 0
55770 else
55771     ${D}*
55772     exit ${D}?
55773 fi
55774 EOF
55775
55776             chmod +x bk-deps
55777                                     BK_DEPS="`pwd`/bk-deps"
55778         fi
55779     fi
55780
55781
55782
55783
55784
55785     case ${BAKEFILE_HOST} in
55786         *-*-cygwin* | *-*-mingw32* )
55787                         if test -n "$ac_tool_prefix"; then
55788   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
55789 set dummy ${ac_tool_prefix}windres; ac_word=$2
55790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55792 if test "${ac_cv_prog_WINDRES+set}" = set; then
55793   echo $ECHO_N "(cached) $ECHO_C" >&6
55794 else
55795   if test -n "$WINDRES"; then
55796   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
55797 else
55798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55799 for as_dir in $PATH
55800 do
55801   IFS=$as_save_IFS
55802   test -z "$as_dir" && as_dir=.
55803   for ac_exec_ext in '' $ac_executable_extensions; do
55804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
55805     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
55806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55807     break 2
55808   fi
55809 done
55810 done
55811 IFS=$as_save_IFS
55812
55813 fi
55814 fi
55815 WINDRES=$ac_cv_prog_WINDRES
55816 if test -n "$WINDRES"; then
55817   { echo "$as_me:$LINENO: result: $WINDRES" >&5
55818 echo "${ECHO_T}$WINDRES" >&6; }
55819 else
55820   { echo "$as_me:$LINENO: result: no" >&5
55821 echo "${ECHO_T}no" >&6; }
55822 fi
55823
55824
55825 fi
55826 if test -z "$ac_cv_prog_WINDRES"; then
55827   ac_ct_WINDRES=$WINDRES
55828   # Extract the first word of "windres", so it can be a program name with args.
55829 set dummy windres; ac_word=$2
55830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55832 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
55833   echo $ECHO_N "(cached) $ECHO_C" >&6
55834 else
55835   if test -n "$ac_ct_WINDRES"; then
55836   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
55837 else
55838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55839 for as_dir in $PATH
55840 do
55841   IFS=$as_save_IFS
55842   test -z "$as_dir" && as_dir=.
55843   for ac_exec_ext in '' $ac_executable_extensions; do
55844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
55845     ac_cv_prog_ac_ct_WINDRES="windres"
55846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55847     break 2
55848   fi
55849 done
55850 done
55851 IFS=$as_save_IFS
55852
55853 fi
55854 fi
55855 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
55856 if test -n "$ac_ct_WINDRES"; then
55857   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
55858 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
55859 else
55860   { echo "$as_me:$LINENO: result: no" >&5
55861 echo "${ECHO_T}no" >&6; }
55862 fi
55863
55864   if test "x$ac_ct_WINDRES" = x; then
55865     WINDRES=""
55866   else
55867     case $cross_compiling:$ac_tool_warned in
55868 yes:)
55869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
55870 whose name does not start with the host triplet.  If you think this
55871 configuration is useful to you, please write to autoconf@gnu.org." >&5
55872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
55873 whose name does not start with the host triplet.  If you think this
55874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
55875 ac_tool_warned=yes ;;
55876 esac
55877     WINDRES=$ac_ct_WINDRES
55878   fi
55879 else
55880   WINDRES="$ac_cv_prog_WINDRES"
55881 fi
55882
55883          ;;
55884
55885       *-*-darwin* | powerpc-apple-macos* )
55886             # Extract the first word of "Rez", so it can be a program name with args.
55887 set dummy Rez; ac_word=$2
55888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55890 if test "${ac_cv_prog_REZ+set}" = set; then
55891   echo $ECHO_N "(cached) $ECHO_C" >&6
55892 else
55893   if test -n "$REZ"; then
55894   ac_cv_prog_REZ="$REZ" # Let the user override the test.
55895 else
55896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55897 for as_dir in $PATH
55898 do
55899   IFS=$as_save_IFS
55900   test -z "$as_dir" && as_dir=.
55901   for ac_exec_ext in '' $ac_executable_extensions; do
55902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
55903     ac_cv_prog_REZ="Rez"
55904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55905     break 2
55906   fi
55907 done
55908 done
55909 IFS=$as_save_IFS
55910
55911   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
55912 fi
55913 fi
55914 REZ=$ac_cv_prog_REZ
55915 if test -n "$REZ"; then
55916   { echo "$as_me:$LINENO: result: $REZ" >&5
55917 echo "${ECHO_T}$REZ" >&6; }
55918 else
55919   { echo "$as_me:$LINENO: result: no" >&5
55920 echo "${ECHO_T}no" >&6; }
55921 fi
55922
55923
55924             # Extract the first word of "SetFile", so it can be a program name with args.
55925 set dummy SetFile; ac_word=$2
55926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55928 if test "${ac_cv_prog_SETFILE+set}" = set; then
55929   echo $ECHO_N "(cached) $ECHO_C" >&6
55930 else
55931   if test -n "$SETFILE"; then
55932   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
55933 else
55934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55935 for as_dir in $PATH
55936 do
55937   IFS=$as_save_IFS
55938   test -z "$as_dir" && as_dir=.
55939   for ac_exec_ext in '' $ac_executable_extensions; do
55940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
55941     ac_cv_prog_SETFILE="SetFile"
55942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55943     break 2
55944   fi
55945 done
55946 done
55947 IFS=$as_save_IFS
55948
55949   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
55950 fi
55951 fi
55952 SETFILE=$ac_cv_prog_SETFILE
55953 if test -n "$SETFILE"; then
55954   { echo "$as_me:$LINENO: result: $SETFILE" >&5
55955 echo "${ECHO_T}$SETFILE" >&6; }
55956 else
55957   { echo "$as_me:$LINENO: result: no" >&5
55958 echo "${ECHO_T}no" >&6; }
55959 fi
55960
55961
55962         ;;
55963     esac
55964
55965
55966
55967
55968
55969
55970     BAKEFILE_BAKEFILE_M4_VERSION="0.2.1"
55971
55972
55973 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.1"
55974
55975
55976
55977     # Check whether --enable-precomp-headers was given.
55978 if test "${enable_precomp_headers+set}" = set; then
55979   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
55980 fi
55981
55982
55983     GCC_PCH=0
55984     ICC_PCH=0
55985     USE_PCH=0
55986     BK_MAKE_PCH=""
55987
55988     case ${BAKEFILE_HOST} in
55989         *-*-cygwin* )
55990                                                 bk_use_pch="no"
55991             ;;
55992     esac
55993
55994     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
55995         if test "x$GCC" = "xyes"; then
55996                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
55997 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
55998             cat >conftest.$ac_ext <<_ACEOF
55999 /* confdefs.h.  */
56000 _ACEOF
56001 cat confdefs.h >>conftest.$ac_ext
56002 cat >>conftest.$ac_ext <<_ACEOF
56003 /* end confdefs.h.  */
56004
56005 int
56006 main ()
56007 {
56008
56009                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
56010                         There is no PCH support
56011                     #endif
56012                     #if (__GNUC__ < 3)
56013                         There is no PCH support
56014                     #endif
56015                     #if (__GNUC__ == 3) && \
56016                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
56017                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
56018                        ( defined(__INTEL_COMPILER) )
56019                         There is no PCH support
56020                     #endif
56021
56022   ;
56023   return 0;
56024 }
56025 _ACEOF
56026 rm -f conftest.$ac_objext
56027 if { (ac_try="$ac_compile"
56028 case "(($ac_try" in
56029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56030   *) ac_try_echo=$ac_try;;
56031 esac
56032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56033   (eval "$ac_compile") 2>conftest.er1
56034   ac_status=$?
56035   grep -v '^ *+' conftest.er1 >conftest.err
56036   rm -f conftest.er1
56037   cat conftest.err >&5
56038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56039   (exit $ac_status); } &&
56040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56041   { (case "(($ac_try" in
56042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56043   *) ac_try_echo=$ac_try;;
56044 esac
56045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56046   (eval "$ac_try") 2>&5
56047   ac_status=$?
56048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56049   (exit $ac_status); }; } &&
56050          { ac_try='test -s conftest.$ac_objext'
56051   { (case "(($ac_try" in
56052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56053   *) ac_try_echo=$ac_try;;
56054 esac
56055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56056   (eval "$ac_try") 2>&5
56057   ac_status=$?
56058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56059   (exit $ac_status); }; }; then
56060
56061                     { echo "$as_me:$LINENO: result: yes" >&5
56062 echo "${ECHO_T}yes" >&6; }
56063                     GCC_PCH=1
56064
56065 else
56066   echo "$as_me: failed program was:" >&5
56067 sed 's/^/| /' conftest.$ac_ext >&5
56068
56069
56070                     cat >conftest.$ac_ext <<_ACEOF
56071 /* confdefs.h.  */
56072 _ACEOF
56073 cat confdefs.h >>conftest.$ac_ext
56074 cat >>conftest.$ac_ext <<_ACEOF
56075 /* end confdefs.h.  */
56076
56077 int
56078 main ()
56079 {
56080
56081                             #if !defined(__INTEL_COMPILER) || \
56082                                 (__INTEL_COMPILER < 800)
56083                                 There is no PCH support
56084                             #endif
56085
56086   ;
56087   return 0;
56088 }
56089 _ACEOF
56090 rm -f conftest.$ac_objext
56091 if { (ac_try="$ac_compile"
56092 case "(($ac_try" in
56093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56094   *) ac_try_echo=$ac_try;;
56095 esac
56096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56097   (eval "$ac_compile") 2>conftest.er1
56098   ac_status=$?
56099   grep -v '^ *+' conftest.er1 >conftest.err
56100   rm -f conftest.er1
56101   cat conftest.err >&5
56102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56103   (exit $ac_status); } &&
56104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56105   { (case "(($ac_try" in
56106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56107   *) ac_try_echo=$ac_try;;
56108 esac
56109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56110   (eval "$ac_try") 2>&5
56111   ac_status=$?
56112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56113   (exit $ac_status); }; } &&
56114          { ac_try='test -s conftest.$ac_objext'
56115   { (case "(($ac_try" in
56116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56117   *) ac_try_echo=$ac_try;;
56118 esac
56119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56120   (eval "$ac_try") 2>&5
56121   ac_status=$?
56122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56123   (exit $ac_status); }; }; then
56124
56125                             { echo "$as_me:$LINENO: result: yes" >&5
56126 echo "${ECHO_T}yes" >&6; }
56127                             ICC_PCH=1
56128
56129 else
56130   echo "$as_me: failed program was:" >&5
56131 sed 's/^/| /' conftest.$ac_ext >&5
56132
56133
56134                             { echo "$as_me:$LINENO: result: no" >&5
56135 echo "${ECHO_T}no" >&6; }
56136
56137 fi
56138
56139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56140
56141 fi
56142
56143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56144             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
56145                 USE_PCH=1
56146
56147 D='$'
56148 cat <<EOF >bk-make-pch
56149 #!/bin/sh
56150
56151 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
56152 # script. It is used to generated precompiled headers.
56153 #
56154 # Permission is given to use this file in any way.
56155
56156 outfile="${D}{1}"
56157 header="${D}{2}"
56158 shift
56159 shift
56160
56161 compiler=""
56162 headerfile=""
56163
56164 while test ${D}{#} -gt 0; do
56165     add_to_cmdline=1
56166     case "${D}{1}" in
56167         -I* )
56168             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
56169             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
56170                 headerfile="${D}{incdir}/${D}{header}"
56171             fi
56172         ;;
56173         -use-pch|-use_pch )
56174             shift
56175             add_to_cmdline=0
56176         ;;
56177     esac
56178     if test ${D}add_to_cmdline = 1 ; then
56179         compiler="${D}{compiler} ${D}{1}"
56180     fi
56181     shift
56182 done
56183
56184 if test "x${D}{headerfile}" = "x" ; then
56185     echo "error: can't find header ${D}{header} in include paths" >&2
56186 else
56187     if test -f ${D}{outfile} ; then
56188         rm -f ${D}{outfile}
56189     else
56190         mkdir -p \`dirname ${D}{outfile}\`
56191     fi
56192     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
56193     mkdir -p .deps
56194     if test "x${GCC_PCH}" = "x1" ; then
56195         # can do this because gcc is >= 3.4:
56196         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
56197     elif test "x${ICC_PCH}" = "x1" ; then
56198         filename=pch_gen-${D}${D}
56199         file=${D}{filename}.c
56200         dfile=${D}{filename}.d
56201         cat > ${D}file <<EOT
56202 #include "${D}header"
56203 EOT
56204         # using -MF icc complains about differing command lines in creation/use
56205         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
56206           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
56207           rm -f ${D}file ${D}dfile ${D}{filename}.o
56208     fi
56209     exit ${D}{?}
56210 fi
56211 EOF
56212
56213                 chmod +x bk-make-pch
56214                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
56215             fi
56216         fi
56217     fi
56218
56219
56220
56221
56222
56223     COND_BUILD_DEBUG="#"
56224     if test "x$BUILD" = "xdebug" ; then
56225         COND_BUILD_DEBUG=""
56226     fi
56227
56228     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
56229     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
56230         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
56231     fi
56232
56233     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
56234     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
56235         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
56236     fi
56237
56238     COND_BUILD_DEBUG_UNICODE_0="#"
56239     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
56240         COND_BUILD_DEBUG_UNICODE_0=""
56241     fi
56242
56243     COND_BUILD_DEBUG_UNICODE_1="#"
56244     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
56245         COND_BUILD_DEBUG_UNICODE_1=""
56246     fi
56247
56248     COND_BUILD_RELEASE="#"
56249     if test "x$BUILD" = "xrelease" ; then
56250         COND_BUILD_RELEASE=""
56251     fi
56252
56253     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
56254     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
56255         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
56256     fi
56257
56258     COND_BUILD_RELEASE_UNICODE_0="#"
56259     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
56260         COND_BUILD_RELEASE_UNICODE_0=""
56261     fi
56262
56263     COND_BUILD_RELEASE_UNICODE_1="#"
56264     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
56265         COND_BUILD_RELEASE_UNICODE_1=""
56266     fi
56267
56268     COND_DEBUG_FLAG_1="#"
56269     if test "x$DEBUG_FLAG" = "x1" ; then
56270         COND_DEBUG_FLAG_1=""
56271     fi
56272
56273     COND_DEBUG_INFO_0="#"
56274     if test "x$DEBUG_INFO" = "x0" ; then
56275         COND_DEBUG_INFO_0=""
56276     fi
56277
56278     COND_DEBUG_INFO_1="#"
56279     if test "x$DEBUG_INFO" = "x1" ; then
56280         COND_DEBUG_INFO_1=""
56281     fi
56282
56283     COND_DEPS_TRACKING_0="#"
56284     if test "x$DEPS_TRACKING" = "x0" ; then
56285         COND_DEPS_TRACKING_0=""
56286     fi
56287
56288     COND_DEPS_TRACKING_1="#"
56289     if test "x$DEPS_TRACKING" = "x1" ; then
56290         COND_DEPS_TRACKING_1=""
56291     fi
56292
56293     COND_GCC_PCH_1="#"
56294     if test "x$GCC_PCH" = "x1" ; then
56295         COND_GCC_PCH_1=""
56296     fi
56297
56298     COND_ICC_PCH_1="#"
56299     if test "x$ICC_PCH" = "x1" ; then
56300         COND_ICC_PCH_1=""
56301     fi
56302
56303     COND_MONOLITHIC_0="#"
56304     if test "x$MONOLITHIC" = "x0" ; then
56305         COND_MONOLITHIC_0=""
56306     fi
56307
56308     COND_MONOLITHIC_0_SHARED_0="#"
56309     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
56310         COND_MONOLITHIC_0_SHARED_0=""
56311     fi
56312
56313     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
56314     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
56315         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
56316     fi
56317
56318     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
56319     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
56320         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
56321     fi
56322
56323     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
56324     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
56325         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
56326     fi
56327
56328     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
56329     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
56330         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
56331     fi
56332
56333     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
56334     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
56335         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
56336     fi
56337
56338     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
56339     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
56340         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
56341     fi
56342
56343     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
56344     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
56345         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
56346     fi
56347
56348     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
56349     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
56350         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
56351     fi
56352
56353     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
56354     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
56355         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
56356     fi
56357
56358     COND_MONOLITHIC_0_SHARED_1="#"
56359     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
56360         COND_MONOLITHIC_0_SHARED_1=""
56361     fi
56362
56363     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
56364     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
56365         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
56366     fi
56367
56368     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
56369     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
56370         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
56371     fi
56372
56373     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
56374     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
56375         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
56376     fi
56377
56378     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
56379     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
56380         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
56381     fi
56382
56383     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
56384     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
56385         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
56386     fi
56387
56388     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
56389     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
56390         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
56391     fi
56392
56393     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
56394     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
56395         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
56396     fi
56397
56398     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
56399     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
56400         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
56401     fi
56402
56403     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
56404     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
56405         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
56406     fi
56407
56408     COND_MONOLITHIC_0_USE_MEDIA_1="#"
56409     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
56410         COND_MONOLITHIC_0_USE_MEDIA_1=""
56411     fi
56412
56413     COND_MONOLITHIC_0_USE_ODBC_1="#"
56414     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
56415         COND_MONOLITHIC_0_USE_ODBC_1=""
56416     fi
56417
56418     COND_MONOLITHIC_1="#"
56419     if test "x$MONOLITHIC" = "x1" ; then
56420         COND_MONOLITHIC_1=""
56421     fi
56422
56423     COND_MONOLITHIC_1_SHARED_0="#"
56424     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
56425         COND_MONOLITHIC_1_SHARED_0=""
56426     fi
56427
56428     COND_MONOLITHIC_1_SHARED_1="#"
56429     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
56430         COND_MONOLITHIC_1_SHARED_1=""
56431     fi
56432
56433     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
56434     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
56435         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
56436     fi
56437
56438     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
56439     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
56440         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
56441     fi
56442
56443     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
56444     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
56445         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
56446     fi
56447
56448     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
56449     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
56450         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
56451     fi
56452
56453     COND_PLATFORM_MACOSX_1="#"
56454     if test "x$PLATFORM_MACOSX" = "x1" ; then
56455         COND_PLATFORM_MACOSX_1=""
56456     fi
56457
56458     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
56459     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
56460         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
56461     fi
56462
56463     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
56464     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
56465         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
56466     fi
56467
56468     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
56469     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
56470         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
56471     fi
56472
56473     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
56474     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
56475         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
56476     fi
56477
56478     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
56479     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
56480         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
56481     fi
56482
56483     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
56484     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
56485         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
56486     fi
56487
56488     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
56489     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
56490         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
56491     fi
56492
56493     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
56494     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
56495         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
56496     fi
56497
56498     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
56499     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
56500         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
56501     fi
56502
56503     COND_PLATFORM_MACOS_1="#"
56504     if test "x$PLATFORM_MACOS" = "x1" ; then
56505         COND_PLATFORM_MACOS_1=""
56506     fi
56507
56508     COND_PLATFORM_MAC_1="#"
56509     if test "x$PLATFORM_MAC" = "x1" ; then
56510         COND_PLATFORM_MAC_1=""
56511     fi
56512
56513     COND_PLATFORM_MSDOS_0="#"
56514     if test "x$PLATFORM_MSDOS" = "x0" ; then
56515         COND_PLATFORM_MSDOS_0=""
56516     fi
56517
56518     COND_PLATFORM_MSDOS_1="#"
56519     if test "x$PLATFORM_MSDOS" = "x1" ; then
56520         COND_PLATFORM_MSDOS_1=""
56521     fi
56522
56523     COND_PLATFORM_OS2_1="#"
56524     if test "x$PLATFORM_OS2" = "x1" ; then
56525         COND_PLATFORM_OS2_1=""
56526     fi
56527
56528     COND_PLATFORM_UNIX_0="#"
56529     if test "x$PLATFORM_UNIX" = "x0" ; then
56530         COND_PLATFORM_UNIX_0=""
56531     fi
56532
56533     COND_PLATFORM_UNIX_1="#"
56534     if test "x$PLATFORM_UNIX" = "x1" ; then
56535         COND_PLATFORM_UNIX_1=""
56536     fi
56537
56538     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
56539     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
56540         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
56541     fi
56542
56543     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
56544     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
56545         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
56546     fi
56547
56548     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
56549     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
56550         COND_PLATFORM_UNIX_1_USE_GUI_1=""
56551     fi
56552
56553     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
56554     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
56555         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
56556     fi
56557
56558     COND_PLATFORM_WIN32_0="#"
56559     if test "x$PLATFORM_WIN32" = "x0" ; then
56560         COND_PLATFORM_WIN32_0=""
56561     fi
56562
56563     COND_PLATFORM_WIN32_1="#"
56564     if test "x$PLATFORM_WIN32" = "x1" ; then
56565         COND_PLATFORM_WIN32_1=""
56566     fi
56567
56568     COND_SHARED_0="#"
56569     if test "x$SHARED" = "x0" ; then
56570         COND_SHARED_0=""
56571     fi
56572
56573     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
56574     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
56575         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
56576     fi
56577
56578     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
56579     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
56580         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
56581     fi
56582
56583     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
56584     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
56585         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
56586     fi
56587
56588     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
56589     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
56590         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
56591     fi
56592
56593     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
56594     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
56595         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
56596     fi
56597
56598     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
56599     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
56600         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
56601     fi
56602
56603     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
56604     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
56605         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
56606     fi
56607
56608     COND_SHARED_0_USE_XRC_1="#"
56609     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
56610         COND_SHARED_0_USE_XRC_1=""
56611     fi
56612
56613     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
56614     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
56615         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
56616     fi
56617
56618     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
56619     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
56620         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
56621     fi
56622
56623     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
56624     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
56625         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
56626     fi
56627
56628     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
56629     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
56630         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
56631     fi
56632
56633     COND_SHARED_1="#"
56634     if test "x$SHARED" = "x1" ; then
56635         COND_SHARED_1=""
56636     fi
56637
56638     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
56639     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
56640         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
56641     fi
56642
56643     COND_SHARED_1_USE_XRC_1="#"
56644     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
56645         COND_SHARED_1_USE_XRC_1=""
56646     fi
56647
56648     COND_TOOLKIT_="#"
56649     if test "x$TOOLKIT" = "x" ; then
56650         COND_TOOLKIT_=""
56651     fi
56652
56653     COND_TOOLKIT_COCOA="#"
56654     if test "x$TOOLKIT" = "xCOCOA" ; then
56655         COND_TOOLKIT_COCOA=""
56656     fi
56657
56658     COND_TOOLKIT_COCOA_USE_GUI_1="#"
56659     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
56660         COND_TOOLKIT_COCOA_USE_GUI_1=""
56661     fi
56662
56663     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
56664     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56665         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
56666     fi
56667
56668     COND_TOOLKIT_DFB="#"
56669     if test "x$TOOLKIT" = "xDFB" ; then
56670         COND_TOOLKIT_DFB=""
56671     fi
56672
56673     COND_TOOLKIT_DFB_USE_GUI_1="#"
56674     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
56675         COND_TOOLKIT_DFB_USE_GUI_1=""
56676     fi
56677
56678     COND_TOOLKIT_GTK="#"
56679     if test "x$TOOLKIT" = "xGTK" ; then
56680         COND_TOOLKIT_GTK=""
56681     fi
56682
56683     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
56684     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
56685         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
56686     fi
56687
56688     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
56689     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
56690         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
56691     fi
56692
56693     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
56694     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
56695         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
56696     fi
56697
56698     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
56699     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56700         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
56701     fi
56702
56703     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
56704     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
56705         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
56706     fi
56707
56708     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
56709     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56710         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
56711     fi
56712
56713     COND_TOOLKIT_GTK_USE_GUI_1="#"
56714     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
56715         COND_TOOLKIT_GTK_USE_GUI_1=""
56716     fi
56717
56718     COND_TOOLKIT_MAC="#"
56719     if test "x$TOOLKIT" = "xMAC" ; then
56720         COND_TOOLKIT_MAC=""
56721     fi
56722
56723     COND_TOOLKIT_MAC_USE_GUI_1="#"
56724     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
56725         COND_TOOLKIT_MAC_USE_GUI_1=""
56726     fi
56727
56728     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
56729     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56730         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
56731     fi
56732
56733     COND_TOOLKIT_MGL="#"
56734     if test "x$TOOLKIT" = "xMGL" ; then
56735         COND_TOOLKIT_MGL=""
56736     fi
56737
56738     COND_TOOLKIT_MGL_USE_GUI_1="#"
56739     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
56740         COND_TOOLKIT_MGL_USE_GUI_1=""
56741     fi
56742
56743     COND_TOOLKIT_MOTIF="#"
56744     if test "x$TOOLKIT" = "xMOTIF" ; then
56745         COND_TOOLKIT_MOTIF=""
56746     fi
56747
56748     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
56749     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
56750         COND_TOOLKIT_MOTIF_USE_GUI_1=""
56751     fi
56752
56753     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
56754     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56755         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
56756     fi
56757
56758     COND_TOOLKIT_MSW="#"
56759     if test "x$TOOLKIT" = "xMSW" ; then
56760         COND_TOOLKIT_MSW=""
56761     fi
56762
56763     COND_TOOLKIT_MSW_USE_GUI_1="#"
56764     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
56765         COND_TOOLKIT_MSW_USE_GUI_1=""
56766     fi
56767
56768     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
56769     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56770         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
56771     fi
56772
56773     COND_TOOLKIT_MSW_WXUNIV_0="#"
56774     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
56775         COND_TOOLKIT_MSW_WXUNIV_0=""
56776     fi
56777
56778     COND_TOOLKIT_PM="#"
56779     if test "x$TOOLKIT" = "xPM" ; then
56780         COND_TOOLKIT_PM=""
56781     fi
56782
56783     COND_TOOLKIT_PM_USE_GUI_1="#"
56784     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
56785         COND_TOOLKIT_PM_USE_GUI_1=""
56786     fi
56787
56788     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
56789     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56790         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
56791     fi
56792
56793     COND_TOOLKIT_WINCE="#"
56794     if test "x$TOOLKIT" = "xWINCE" ; then
56795         COND_TOOLKIT_WINCE=""
56796     fi
56797
56798     COND_TOOLKIT_WINCE_USE_GUI_1="#"
56799     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
56800         COND_TOOLKIT_WINCE_USE_GUI_1=""
56801     fi
56802
56803     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
56804     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56805         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
56806     fi
56807
56808     COND_TOOLKIT_WINCE_WXUNIV_0="#"
56809     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
56810         COND_TOOLKIT_WINCE_WXUNIV_0=""
56811     fi
56812
56813     COND_TOOLKIT_X11="#"
56814     if test "x$TOOLKIT" = "xX11" ; then
56815         COND_TOOLKIT_X11=""
56816     fi
56817
56818     COND_TOOLKIT_X11_USE_GUI_1="#"
56819     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
56820         COND_TOOLKIT_X11_USE_GUI_1=""
56821     fi
56822
56823     COND_UNICODE_1="#"
56824     if test "x$UNICODE" = "x1" ; then
56825         COND_UNICODE_1=""
56826     fi
56827
56828     COND_USE_EXCEPTIONS_0="#"
56829     if test "x$USE_EXCEPTIONS" = "x0" ; then
56830         COND_USE_EXCEPTIONS_0=""
56831     fi
56832
56833     COND_USE_EXCEPTIONS_1="#"
56834     if test "x$USE_EXCEPTIONS" = "x1" ; then
56835         COND_USE_EXCEPTIONS_1=""
56836     fi
56837
56838     COND_USE_GUI_0="#"
56839     if test "x$USE_GUI" = "x0" ; then
56840         COND_USE_GUI_0=""
56841     fi
56842
56843     COND_USE_GUI_1="#"
56844     if test "x$USE_GUI" = "x1" ; then
56845         COND_USE_GUI_1=""
56846     fi
56847
56848     COND_USE_GUI_1_WXUNIV_0="#"
56849     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56850         COND_USE_GUI_1_WXUNIV_0=""
56851     fi
56852
56853     COND_USE_GUI_1_WXUNIV_1="#"
56854     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
56855         COND_USE_GUI_1_WXUNIV_1=""
56856     fi
56857
56858     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
56859     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
56860         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
56861     fi
56862
56863     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
56864     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
56865         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
56866     fi
56867
56868     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
56869     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
56870         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
56871     fi
56872
56873     COND_USE_ODBC_1="#"
56874     if test "x$USE_ODBC" = "x1" ; then
56875         COND_USE_ODBC_1=""
56876     fi
56877
56878     COND_USE_OPENGL_1="#"
56879     if test "x$USE_OPENGL" = "x1" ; then
56880         COND_USE_OPENGL_1=""
56881     fi
56882
56883     COND_USE_PCH_1="#"
56884     if test "x$USE_PCH" = "x1" ; then
56885         COND_USE_PCH_1=""
56886     fi
56887
56888     COND_USE_PLUGINS_0="#"
56889     if test "x$USE_PLUGINS" = "x0" ; then
56890         COND_USE_PLUGINS_0=""
56891     fi
56892
56893     COND_USE_RTTI_0="#"
56894     if test "x$USE_RTTI" = "x0" ; then
56895         COND_USE_RTTI_0=""
56896     fi
56897
56898     COND_USE_RTTI_1="#"
56899     if test "x$USE_RTTI" = "x1" ; then
56900         COND_USE_RTTI_1=""
56901     fi
56902
56903     COND_USE_SOSYMLINKS_1="#"
56904     if test "x$USE_SOSYMLINKS" = "x1" ; then
56905         COND_USE_SOSYMLINKS_1=""
56906     fi
56907
56908     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
56909     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
56910         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
56911     fi
56912
56913     COND_USE_SOVERLINUX_1="#"
56914     if test "x$USE_SOVERLINUX" = "x1" ; then
56915         COND_USE_SOVERLINUX_1=""
56916     fi
56917
56918     COND_USE_SOVERSION_0="#"
56919     if test "x$USE_SOVERSION" = "x0" ; then
56920         COND_USE_SOVERSION_0=""
56921     fi
56922
56923     COND_USE_SOVERSOLARIS_1="#"
56924     if test "x$USE_SOVERSOLARIS" = "x1" ; then
56925         COND_USE_SOVERSOLARIS_1=""
56926     fi
56927
56928     COND_USE_THREADS_0="#"
56929     if test "x$USE_THREADS" = "x0" ; then
56930         COND_USE_THREADS_0=""
56931     fi
56932
56933     COND_USE_THREADS_1="#"
56934     if test "x$USE_THREADS" = "x1" ; then
56935         COND_USE_THREADS_1=""
56936     fi
56937
56938     COND_USE_XRC_1="#"
56939     if test "x$USE_XRC" = "x1" ; then
56940         COND_USE_XRC_1=""
56941     fi
56942
56943     COND_WINDOWS_IMPLIB_1="#"
56944     if test "x$WINDOWS_IMPLIB" = "x1" ; then
56945         COND_WINDOWS_IMPLIB_1=""
56946     fi
56947
56948     COND_WITH_PLUGIN_SDL_1="#"
56949     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
56950         COND_WITH_PLUGIN_SDL_1=""
56951     fi
56952
56953     COND_WXUNIV_0="#"
56954     if test "x$WXUNIV" = "x0" ; then
56955         COND_WXUNIV_0=""
56956     fi
56957
56958     COND_WXUNIV_1="#"
56959     if test "x$WXUNIV" = "x1" ; then
56960         COND_WXUNIV_1=""
56961     fi
56962
56963     COND_WXUSE_EXPAT_BUILTIN="#"
56964     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
56965         COND_WXUSE_EXPAT_BUILTIN=""
56966     fi
56967
56968     COND_WXUSE_LIBJPEG_BUILTIN="#"
56969     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
56970         COND_WXUSE_LIBJPEG_BUILTIN=""
56971     fi
56972
56973     COND_WXUSE_LIBPNG_BUILTIN="#"
56974     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
56975         COND_WXUSE_LIBPNG_BUILTIN=""
56976     fi
56977
56978     COND_WXUSE_LIBTIFF_BUILTIN="#"
56979     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
56980         COND_WXUSE_LIBTIFF_BUILTIN=""
56981     fi
56982
56983     COND_WXUSE_ODBC_BUILTIN="#"
56984     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
56985         COND_WXUSE_ODBC_BUILTIN=""
56986     fi
56987
56988     COND_WXUSE_REGEX_BUILTIN="#"
56989     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
56990         COND_WXUSE_REGEX_BUILTIN=""
56991     fi
56992
56993     COND_WXUSE_ZLIB_BUILTIN="#"
56994     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
56995         COND_WXUSE_ZLIB_BUILTIN=""
56996     fi
56997
56998
56999
57000     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
57001         { { 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
57002 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;}
57003    { (exit 1); exit 1; }; }
57004     fi
57005
57006     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
57007         { { 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
57008 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;}
57009    { (exit 1); exit 1; }; }
57010     fi
57011
57012
57013 if test $GCC_PCH = 1
57014 then
57015     if test "$wx_cv_gcc_pch_bug" = yes; then
57016         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
57017 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
57018         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
57019 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
57020         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
57021 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
57022     fi
57023
57024     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
57025 fi
57026
57027
57028 if test "$wxUSE_MAC" = 1 ; then
57029     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
57030         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
57031         mv temp bk-deps
57032         chmod +x bk-deps
57033     fi
57034 fi
57035
57036 if test "$wxUSE_SHARED" = "yes"; then
57037
57038                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
57039     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
57040
57041                 case "${host}" in
57042       *-pc-os2_emx | *-pc-os2-emx )
57043         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
57044         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
57045         cp -p ${srcdir}/src/os2/dllnames.sh .
57046         cp -p ${srcdir}/src/os2/dllar.sh .
57047       ;;
57048     esac
57049 else
57050
57051         EXE_LINKER="$CXX -o"
57052
57053 fi
57054 if test "$wxUSE_OMF" = "yes"; then
57055     case "${host}" in
57056       *-pc-os2_emx | *-pc-os2-emx )
57057         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
57058         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
57059         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
57060       ;;
57061     esac
57062 fi
57063
57064 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
57065
57066 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
57067
57068
57069
57070
57071
57072
57073
57074
57075
57076
57077
57078
57079
57080
57081
57082
57083
57084
57085
57086
57087
57088
57089
57090
57091
57092
57093
57094
57095
57096
57097
57098
57099
57100
57101
57102
57103
57104
57105
57106
57107
57108
57109
57110
57111
57112
57113
57114
57115
57116
57117
57118
57119
57120
57121
57122
57123
57124
57125
57126
57127
57128 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
57129 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
57130 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
57131 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
57132   echo $ECHO_N "(cached) $ECHO_C" >&6
57133 else
57134   cat >conftest.make <<\_ACEOF
57135 SHELL = /bin/sh
57136 all:
57137         @echo '@@@%%%=$(MAKE)=@@@%%%'
57138 _ACEOF
57139 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
57140 case `${MAKE-make} -f conftest.make 2>/dev/null` in
57141   *@@@%%%=?*=@@@%%%*)
57142     eval ac_cv_prog_make_${ac_make}_set=yes;;
57143   *)
57144     eval ac_cv_prog_make_${ac_make}_set=no;;
57145 esac
57146 rm -f conftest.make
57147 fi
57148 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
57149   { echo "$as_me:$LINENO: result: yes" >&5
57150 echo "${ECHO_T}yes" >&6; }
57151   SET_MAKE=
57152 else
57153   { echo "$as_me:$LINENO: result: no" >&5
57154 echo "${ECHO_T}no" >&6; }
57155   SET_MAKE="MAKE=${MAKE-make}"
57156 fi
57157
57158
57159
57160 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
57161
57162
57163 if test "$USE_WIN32" = 1; then
57164     ac_config_commands="$ac_config_commands
57165             rcdefs.h
57166         "
57167
57168 fi
57169
57170 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
57171
57172
57173 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
57174
57175
57176 if test "$wx_cv_version_script" = "yes"; then
57177     ac_config_files="$ac_config_files version-script"
57178
57179 fi
57180 ac_config_files="$ac_config_files Makefile"
57181
57182
57183 ac_config_commands="$ac_config_commands wx-config"
57184
57185
57186
57187 if test "$wxWITH_SUBDIRS" != "no"; then
57188 if test "$wxUSE_GUI" = "yes"; then
57189     SUBDIRS="samples demos utils contrib"
57190 else         SUBDIRS="samples utils"
57191 fi
57192
57193
57194
57195 # Check whether --with-cppunit-prefix was given.
57196 if test "${with_cppunit_prefix+set}" = set; then
57197   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
57198 else
57199   cppunit_config_prefix=""
57200 fi
57201
57202
57203 # Check whether --with-cppunit-exec-prefix was given.
57204 if test "${with_cppunit_exec_prefix+set}" = set; then
57205   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
57206 else
57207   cppunit_config_exec_prefix=""
57208 fi
57209
57210
57211   if test x$cppunit_config_exec_prefix != x ; then
57212      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
57213      if test x${CPPUNIT_CONFIG+set} != xset ; then
57214         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
57215      fi
57216   fi
57217   if test x$cppunit_config_prefix != x ; then
57218      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
57219      if test x${CPPUNIT_CONFIG+set} != xset ; then
57220         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
57221      fi
57222   fi
57223
57224   # Extract the first word of "cppunit-config", so it can be a program name with args.
57225 set dummy cppunit-config; ac_word=$2
57226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
57227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57228 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
57229   echo $ECHO_N "(cached) $ECHO_C" >&6
57230 else
57231   case $CPPUNIT_CONFIG in
57232   [\\/]* | ?:[\\/]*)
57233   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
57234   ;;
57235   *)
57236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57237 for as_dir in $PATH
57238 do
57239   IFS=$as_save_IFS
57240   test -z "$as_dir" && as_dir=.
57241   for ac_exec_ext in '' $ac_executable_extensions; do
57242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
57243     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
57244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57245     break 2
57246   fi
57247 done
57248 done
57249 IFS=$as_save_IFS
57250
57251   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
57252   ;;
57253 esac
57254 fi
57255 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
57256 if test -n "$CPPUNIT_CONFIG"; then
57257   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
57258 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
57259 else
57260   { echo "$as_me:$LINENO: result: no" >&5
57261 echo "${ECHO_T}no" >&6; }
57262 fi
57263
57264
57265   cppunit_version_min=1.8.0
57266
57267   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
57268 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
57269   no_cppunit=""
57270   if test "$CPPUNIT_CONFIG" = "no" ; then
57271     { echo "$as_me:$LINENO: result: no" >&5
57272 echo "${ECHO_T}no" >&6; }
57273     no_cppunit=yes
57274   else
57275     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
57276     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
57277     cppunit_version=`$CPPUNIT_CONFIG --version`
57278
57279     cppunit_major_version=`echo $cppunit_version | \
57280            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
57281     cppunit_minor_version=`echo $cppunit_version | \
57282            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
57283     cppunit_micro_version=`echo $cppunit_version | \
57284            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
57285
57286     cppunit_major_min=`echo $cppunit_version_min | \
57287            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
57288     cppunit_minor_min=`echo $cppunit_version_min | \
57289            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
57290     cppunit_micro_min=`echo $cppunit_version_min | \
57291            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
57292
57293     cppunit_version_proper=`expr \
57294         $cppunit_major_version \> $cppunit_major_min \| \
57295         $cppunit_major_version \= $cppunit_major_min \& \
57296         $cppunit_minor_version \> $cppunit_minor_min \| \
57297         $cppunit_major_version \= $cppunit_major_min \& \
57298         $cppunit_minor_version \= $cppunit_minor_min \& \
57299         $cppunit_micro_version \>= $cppunit_micro_min `
57300
57301     if test "$cppunit_version_proper" = "1" ; then
57302       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
57303 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
57304     else
57305       { echo "$as_me:$LINENO: result: no" >&5
57306 echo "${ECHO_T}no" >&6; }
57307       no_cppunit=yes
57308     fi
57309   fi
57310
57311   if test "x$no_cppunit" = x ; then
57312      SUBDIRS="$SUBDIRS tests"
57313   else
57314      CPPUNIT_CFLAGS=""
57315      CPPUNIT_LIBS=""
57316      :
57317   fi
57318
57319
57320
57321
57322
57323 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
57324     DISABLED_CONTRIB="$DISABLED_CONTRIB net"
57325 fi
57326
57327 for subdir in `echo $SUBDIRS`; do
57328     if test -d ${srcdir}/${subdir} ; then
57329         if test "$wxUSE_GUI" = "yes"; then
57330             if test ${subdir} = "samples"; then
57331                                                 makefiles="samples/Makefile.in $makefiles"
57332                 for sample in `echo $SAMPLES_SUBDIRS`; do
57333                     if test -d $srcdir/samples/$sample; then
57334                         makefiles="samples/$sample/Makefile.in $makefiles"
57335                     fi
57336                 done
57337             else
57338                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
57339                 eval "disabled=\$$disabled_var"
57340                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
57341                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
57342             fi
57343         else                                     if test ${subdir} = "samples"; then
57344                 makefiles="samples/Makefile.in samples/console/Makefile.in"
57345             elif test ${subdir} = "utils"; then
57346                 makefiles=""
57347                 for util in HelpGen tex2rtf ; do
57348                     if test -d $srcdir/utils/$util ; then
57349                         makefiles="utils/$util/Makefile.in \
57350                                    utils/$util/src/Makefile.in \
57351                                    $makefiles"
57352                     fi
57353                 done
57354             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
57355             fi
57356         fi
57357
57358         for mkin in $makefiles ; do
57359             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
57360             ac_config_files="$ac_config_files $mk"
57361
57362         done
57363     fi
57364 done
57365 fi
57366 cat >confcache <<\_ACEOF
57367 # This file is a shell script that caches the results of configure
57368 # tests run on this system so they can be shared between configure
57369 # scripts and configure runs, see configure's option --config-cache.
57370 # It is not useful on other systems.  If it contains results you don't
57371 # want to keep, you may remove or edit it.
57372 #
57373 # config.status only pays attention to the cache file if you give it
57374 # the --recheck option to rerun configure.
57375 #
57376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
57377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
57378 # following values.
57379
57380 _ACEOF
57381
57382 # The following way of writing the cache mishandles newlines in values,
57383 # but we know of no workaround that is simple, portable, and efficient.
57384 # So, we kill variables containing newlines.
57385 # Ultrix sh set writes to stderr and can't be redirected directly,
57386 # and sets the high bit in the cache file unless we assign to the vars.
57387 (
57388   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
57389     eval ac_val=\$$ac_var
57390     case $ac_val in #(
57391     *${as_nl}*)
57392       case $ac_var in #(
57393       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
57394 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
57395       esac
57396       case $ac_var in #(
57397       _ | IFS | as_nl) ;; #(
57398       *) $as_unset $ac_var ;;
57399       esac ;;
57400     esac
57401   done
57402
57403   (set) 2>&1 |
57404     case $as_nl`(ac_space=' '; set) 2>&1` in #(
57405     *${as_nl}ac_space=\ *)
57406       # `set' does not quote correctly, so add quotes (double-quote
57407       # substitution turns \\\\ into \\, and sed turns \\ into \).
57408       sed -n \
57409         "s/'/'\\\\''/g;
57410           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
57411       ;; #(
57412     *)
57413       # `set' quotes correctly as required by POSIX, so do not add quotes.
57414       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
57415       ;;
57416     esac |
57417     sort
57418 ) |
57419   sed '
57420      /^ac_cv_env_/b end
57421      t clear
57422      :clear
57423      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
57424      t end
57425      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
57426      :end' >>confcache
57427 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
57428   if test -w "$cache_file"; then
57429     test "x$cache_file" != "x/dev/null" &&
57430       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
57431 echo "$as_me: updating cache $cache_file" >&6;}
57432     cat confcache >$cache_file
57433   else
57434     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
57435 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
57436   fi
57437 fi
57438 rm -f confcache
57439
57440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
57441 # Let make expand exec_prefix.
57442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
57443
57444 DEFS=-DHAVE_CONFIG_H
57445
57446 ac_libobjs=
57447 ac_ltlibobjs=
57448 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
57449   # 1. Remove the extension, and $U if already installed.
57450   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
57451   ac_i=`echo "$ac_i" | sed "$ac_script"`
57452   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
57453   #    will be set to the directory where LIBOBJS objects are built.
57454   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
57455   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
57456 done
57457 LIBOBJS=$ac_libobjs
57458
57459 LTLIBOBJS=$ac_ltlibobjs
57460
57461
57462
57463 : ${CONFIG_STATUS=./config.status}
57464 ac_clean_files_save=$ac_clean_files
57465 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
57466 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
57467 echo "$as_me: creating $CONFIG_STATUS" >&6;}
57468 cat >$CONFIG_STATUS <<_ACEOF
57469 #! $SHELL
57470 # Generated by $as_me.
57471 # Run this file to recreate the current configuration.
57472 # Compiler output produced by configure, useful for debugging
57473 # configure, is in config.log if it exists.
57474
57475 debug=false
57476 ac_cs_recheck=false
57477 ac_cs_silent=false
57478 SHELL=\${CONFIG_SHELL-$SHELL}
57479 _ACEOF
57480
57481 cat >>$CONFIG_STATUS <<\_ACEOF
57482 ## --------------------- ##
57483 ## M4sh Initialization.  ##
57484 ## --------------------- ##
57485
57486 # Be Bourne compatible
57487 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
57488   emulate sh
57489   NULLCMD=:
57490   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
57491   # is contrary to our usage.  Disable this feature.
57492   alias -g '${1+"$@"}'='"$@"'
57493   setopt NO_GLOB_SUBST
57494 else
57495   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
57496 fi
57497 BIN_SH=xpg4; export BIN_SH # for Tru64
57498 DUALCASE=1; export DUALCASE # for MKS sh
57499
57500
57501 # PATH needs CR
57502 # Avoid depending upon Character Ranges.
57503 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
57504 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
57505 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
57506 as_cr_digits='0123456789'
57507 as_cr_alnum=$as_cr_Letters$as_cr_digits
57508
57509 # The user is always right.
57510 if test "${PATH_SEPARATOR+set}" != set; then
57511   echo "#! /bin/sh" >conf$$.sh
57512   echo  "exit 0"   >>conf$$.sh
57513   chmod +x conf$$.sh
57514   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57515     PATH_SEPARATOR=';'
57516   else
57517     PATH_SEPARATOR=:
57518   fi
57519   rm -f conf$$.sh
57520 fi
57521
57522 # Support unset when possible.
57523 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57524   as_unset=unset
57525 else
57526   as_unset=false
57527 fi
57528
57529
57530 # IFS
57531 # We need space, tab and new line, in precisely that order.  Quoting is
57532 # there to prevent editors from complaining about space-tab.
57533 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
57534 # splitting by setting IFS to empty value.)
57535 as_nl='
57536 '
57537 IFS=" ""        $as_nl"
57538
57539 # Find who we are.  Look in the path if we contain no directory separator.
57540 case $0 in
57541   *[\\/]* ) as_myself=$0 ;;
57542   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57543 for as_dir in $PATH
57544 do
57545   IFS=$as_save_IFS
57546   test -z "$as_dir" && as_dir=.
57547   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
57548 done
57549 IFS=$as_save_IFS
57550
57551      ;;
57552 esac
57553 # We did not find ourselves, most probably we were run as `sh COMMAND'
57554 # in which case we are not to be found in the path.
57555 if test "x$as_myself" = x; then
57556   as_myself=$0
57557 fi
57558 if test ! -f "$as_myself"; then
57559   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57560   { (exit 1); exit 1; }
57561 fi
57562
57563 # Work around bugs in pre-3.0 UWIN ksh.
57564 for as_var in ENV MAIL MAILPATH
57565 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
57566 done
57567 PS1='$ '
57568 PS2='> '
57569 PS4='+ '
57570
57571 # NLS nuisances.
57572 for as_var in \
57573   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
57574   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
57575   LC_TELEPHONE LC_TIME
57576 do
57577   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
57578     eval $as_var=C; export $as_var
57579   else
57580     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
57581   fi
57582 done
57583
57584 # Required to use basename.
57585 if expr a : '\(a\)' >/dev/null 2>&1 &&
57586    test "X`expr 00001 : '.*\(...\)'`" = X001; then
57587   as_expr=expr
57588 else
57589   as_expr=false
57590 fi
57591
57592 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
57593   as_basename=basename
57594 else
57595   as_basename=false
57596 fi
57597
57598
57599 # Name of the executable.
57600 as_me=`$as_basename -- "$0" ||
57601 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
57602          X"$0" : 'X\(//\)$' \| \
57603          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
57604 echo X/"$0" |
57605     sed '/^.*\/\([^/][^/]*\)\/*$/{
57606             s//\1/
57607             q
57608           }
57609           /^X\/\(\/\/\)$/{
57610             s//\1/
57611             q
57612           }
57613           /^X\/\(\/\).*/{
57614             s//\1/
57615             q
57616           }
57617           s/.*/./; q'`
57618
57619 # CDPATH.
57620 $as_unset CDPATH
57621
57622
57623
57624   as_lineno_1=$LINENO
57625   as_lineno_2=$LINENO
57626   test "x$as_lineno_1" != "x$as_lineno_2" &&
57627   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
57628
57629   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
57630   # uniformly replaced by the line number.  The first 'sed' inserts a
57631   # line-number line after each line using $LINENO; the second 'sed'
57632   # does the real work.  The second script uses 'N' to pair each
57633   # line-number line with the line containing $LINENO, and appends
57634   # trailing '-' during substitution so that $LINENO is not a special
57635   # case at line end.
57636   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
57637   # scripts with optimization help from Paolo Bonzini.  Blame Lee
57638   # E. McMahon (1931-1989) for sed's syntax.  :-)
57639   sed -n '
57640     p
57641     /[$]LINENO/=
57642   ' <$as_myself |
57643     sed '
57644       s/[$]LINENO.*/&-/
57645       t lineno
57646       b
57647       :lineno
57648       N
57649       :loop
57650       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
57651       t loop
57652       s/-\n.*//
57653     ' >$as_me.lineno &&
57654   chmod +x "$as_me.lineno" ||
57655     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
57656    { (exit 1); exit 1; }; }
57657
57658   # Don't try to exec as it changes $[0], causing all sort of problems
57659   # (the dirname of $[0] is not the place where we might find the
57660   # original and so on.  Autoconf is especially sensitive to this).
57661   . "./$as_me.lineno"
57662   # Exit status is that of the last command.
57663   exit
57664 }
57665
57666
57667 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
57668   as_dirname=dirname
57669 else
57670   as_dirname=false
57671 fi
57672
57673 ECHO_C= ECHO_N= ECHO_T=
57674 case `echo -n x` in
57675 -n*)
57676   case `echo 'x\c'` in
57677   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
57678   *)   ECHO_C='\c';;
57679   esac;;
57680 *)
57681   ECHO_N='-n';;
57682 esac
57683
57684 if expr a : '\(a\)' >/dev/null 2>&1 &&
57685    test "X`expr 00001 : '.*\(...\)'`" = X001; then
57686   as_expr=expr
57687 else
57688   as_expr=false
57689 fi
57690
57691 rm -f conf$$ conf$$.exe conf$$.file
57692 if test -d conf$$.dir; then
57693   rm -f conf$$.dir/conf$$.file
57694 else
57695   rm -f conf$$.dir
57696   mkdir conf$$.dir
57697 fi
57698 echo >conf$$.file
57699 if ln -s conf$$.file conf$$ 2>/dev/null; then
57700   as_ln_s='ln -s'
57701   # ... but there are two gotchas:
57702   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
57703   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
57704   # In both cases, we have to default to `cp -p'.
57705   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
57706     as_ln_s='cp -p'
57707 elif ln conf$$.file conf$$ 2>/dev/null; then
57708   as_ln_s=ln
57709 else
57710   as_ln_s='cp -p'
57711 fi
57712 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
57713 rmdir conf$$.dir 2>/dev/null
57714
57715 if mkdir -p . 2>/dev/null; then
57716   as_mkdir_p=:
57717 else
57718   test -d ./-p && rmdir ./-p
57719   as_mkdir_p=false
57720 fi
57721
57722 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
57723 # systems may use methods other than mode bits to determine executability.
57724 cat >conf$$.file <<_ASEOF
57725 #! /bin/sh
57726 exit 0
57727 _ASEOF
57728 chmod +x conf$$.file
57729 if test -x conf$$.file >/dev/null 2>&1; then
57730   as_executable_p="test -x"
57731 else
57732   as_executable_p=:
57733 fi
57734 rm -f conf$$.file
57735
57736 # Sed expression to map a string onto a valid CPP name.
57737 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
57738
57739 # Sed expression to map a string onto a valid variable name.
57740 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
57741
57742
57743 exec 6>&1
57744
57745 # Save the log message, to keep $[0] and so on meaningful, and to
57746 # report actual input values of CONFIG_FILES etc. instead of their
57747 # values after options handling.
57748 ac_log="
57749 This file was extended by wxWidgets $as_me 2.8.0, which was
57750 generated by GNU Autoconf 2.60.  Invocation command line was
57751
57752   CONFIG_FILES    = $CONFIG_FILES
57753   CONFIG_HEADERS  = $CONFIG_HEADERS
57754   CONFIG_LINKS    = $CONFIG_LINKS
57755   CONFIG_COMMANDS = $CONFIG_COMMANDS
57756   $ $0 $@
57757
57758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
57759 "
57760
57761 _ACEOF
57762
57763 cat >>$CONFIG_STATUS <<_ACEOF
57764 # Files that config.status was made for.
57765 config_files="$ac_config_files"
57766 config_headers="$ac_config_headers"
57767 config_commands="$ac_config_commands"
57768
57769 _ACEOF
57770
57771 cat >>$CONFIG_STATUS <<\_ACEOF
57772 ac_cs_usage="\
57773 \`$as_me' instantiates files from templates according to the
57774 current configuration.
57775
57776 Usage: $0 [OPTIONS] [FILE]...
57777
57778   -h, --help       print this help, then exit
57779   -V, --version    print version number, then exit
57780   -q, --quiet      do not print progress messages
57781   -d, --debug      don't remove temporary files
57782       --recheck    update $as_me by reconfiguring in the same conditions
57783   --file=FILE[:TEMPLATE]
57784                    instantiate the configuration file FILE
57785   --header=FILE[:TEMPLATE]
57786                    instantiate the configuration header FILE
57787
57788 Configuration files:
57789 $config_files
57790
57791 Configuration headers:
57792 $config_headers
57793
57794 Configuration commands:
57795 $config_commands
57796
57797 Report bugs to <bug-autoconf@gnu.org>."
57798
57799 _ACEOF
57800 cat >>$CONFIG_STATUS <<_ACEOF
57801 ac_cs_version="\\
57802 wxWidgets config.status 2.8.0
57803 configured by $0, generated by GNU Autoconf 2.60,
57804   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
57805
57806 Copyright (C) 2006 Free Software Foundation, Inc.
57807 This config.status script is free software; the Free Software Foundation
57808 gives unlimited permission to copy, distribute and modify it."
57809
57810 ac_pwd='$ac_pwd'
57811 srcdir='$srcdir'
57812 INSTALL='$INSTALL'
57813 _ACEOF
57814
57815 cat >>$CONFIG_STATUS <<\_ACEOF
57816 # If no file are specified by the user, then we need to provide default
57817 # value.  By we need to know if files were specified by the user.
57818 ac_need_defaults=:
57819 while test $# != 0
57820 do
57821   case $1 in
57822   --*=*)
57823     ac_option=`expr "X$1" : 'X\([^=]*\)='`
57824     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
57825     ac_shift=:
57826     ;;
57827   *)
57828     ac_option=$1
57829     ac_optarg=$2
57830     ac_shift=shift
57831     ;;
57832   esac
57833
57834   case $ac_option in
57835   # Handling of the options.
57836   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
57837     ac_cs_recheck=: ;;
57838   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
57839     echo "$ac_cs_version"; exit ;;
57840   --debug | --debu | --deb | --de | --d | -d )
57841     debug=: ;;
57842   --file | --fil | --fi | --f )
57843     $ac_shift
57844     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
57845     ac_need_defaults=false;;
57846   --header | --heade | --head | --hea )
57847     $ac_shift
57848     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
57849     ac_need_defaults=false;;
57850   --he | --h)
57851     # Conflict between --help and --header
57852     { echo "$as_me: error: ambiguous option: $1
57853 Try \`$0 --help' for more information." >&2
57854    { (exit 1); exit 1; }; };;
57855   --help | --hel | -h )
57856     echo "$ac_cs_usage"; exit ;;
57857   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
57858   | -silent | --silent | --silen | --sile | --sil | --si | --s)
57859     ac_cs_silent=: ;;
57860
57861   # This is an error.
57862   -*) { echo "$as_me: error: unrecognized option: $1
57863 Try \`$0 --help' for more information." >&2
57864    { (exit 1); exit 1; }; } ;;
57865
57866   *) ac_config_targets="$ac_config_targets $1"
57867      ac_need_defaults=false ;;
57868
57869   esac
57870   shift
57871 done
57872
57873 ac_configure_extra_args=
57874
57875 if $ac_cs_silent; then
57876   exec 6>/dev/null
57877   ac_configure_extra_args="$ac_configure_extra_args --silent"
57878 fi
57879
57880 _ACEOF
57881 cat >>$CONFIG_STATUS <<_ACEOF
57882 if \$ac_cs_recheck; then
57883   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
57884   CONFIG_SHELL=$SHELL
57885   export CONFIG_SHELL
57886   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
57887 fi
57888
57889 _ACEOF
57890 cat >>$CONFIG_STATUS <<\_ACEOF
57891 exec 5>>config.log
57892 {
57893   echo
57894   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
57895 ## Running $as_me. ##
57896 _ASBOX
57897   echo "$ac_log"
57898 } >&5
57899
57900 _ACEOF
57901 cat >>$CONFIG_STATUS <<_ACEOF
57902 #
57903 # INIT-COMMANDS
57904 #
57905
57906             CPP="$CPP"
57907             infile="$srcdir/include/wx/msw/genrcdefs.h"
57908             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
57909
57910
57911  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
57912  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
57913  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
57914                      LN_S="${LN_S}"
57915
57916
57917 _ACEOF
57918
57919 cat >>$CONFIG_STATUS <<\_ACEOF
57920
57921 # Handling of arguments.
57922 for ac_config_target in $ac_config_targets
57923 do
57924   case $ac_config_target in
57925     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
57926     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
57927     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
57928     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
57929     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
57930     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
57931     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
57932     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
57933
57934   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
57935 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
57936    { (exit 1); exit 1; }; };;
57937   esac
57938 done
57939
57940
57941 # If the user did not use the arguments to specify the items to instantiate,
57942 # then the envvar interface is used.  Set only those that are not.
57943 # We use the long form for the default assignment because of an extremely
57944 # bizarre bug on SunOS 4.1.3.
57945 if $ac_need_defaults; then
57946   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
57947   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
57948   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
57949 fi
57950
57951 # Have a temporary directory for convenience.  Make it in the build tree
57952 # simply because there is no reason against having it here, and in addition,
57953 # creating and moving files from /tmp can sometimes cause problems.
57954 # Hook for its removal unless debugging.
57955 # Note that there is a small window in which the directory will not be cleaned:
57956 # after its creation but before its name has been assigned to `$tmp'.
57957 $debug ||
57958 {
57959   tmp=
57960   trap 'exit_status=$?
57961   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
57962 ' 0
57963   trap '{ (exit 1); exit 1; }' 1 2 13 15
57964 }
57965 # Create a (secure) tmp directory for tmp files.
57966
57967 {
57968   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
57969   test -n "$tmp" && test -d "$tmp"
57970 }  ||
57971 {
57972   tmp=./conf$$-$RANDOM
57973   (umask 077 && mkdir "$tmp")
57974 } ||
57975 {
57976    echo "$me: cannot create a temporary directory in ." >&2
57977    { (exit 1); exit 1; }
57978 }
57979
57980 #
57981 # Set up the sed scripts for CONFIG_FILES section.
57982 #
57983
57984 # No need to generate the scripts if there are no CONFIG_FILES.
57985 # This happens for instance when ./config.status config.h
57986 if test -n "$CONFIG_FILES"; then
57987
57988 _ACEOF
57989
57990
57991
57992 ac_delim='%!_!# '
57993 for ac_last_try in false false false false false :; do
57994   cat >conf$$subs.sed <<_ACEOF
57995 SHELL!$SHELL$ac_delim
57996 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
57997 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
57998 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
57999 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
58000 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
58001 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
58002 exec_prefix!$exec_prefix$ac_delim
58003 prefix!$prefix$ac_delim
58004 program_transform_name!$program_transform_name$ac_delim
58005 bindir!$bindir$ac_delim
58006 sbindir!$sbindir$ac_delim
58007 libexecdir!$libexecdir$ac_delim
58008 datarootdir!$datarootdir$ac_delim
58009 datadir!$datadir$ac_delim
58010 sysconfdir!$sysconfdir$ac_delim
58011 sharedstatedir!$sharedstatedir$ac_delim
58012 localstatedir!$localstatedir$ac_delim
58013 includedir!$includedir$ac_delim
58014 oldincludedir!$oldincludedir$ac_delim
58015 docdir!$docdir$ac_delim
58016 infodir!$infodir$ac_delim
58017 htmldir!$htmldir$ac_delim
58018 dvidir!$dvidir$ac_delim
58019 pdfdir!$pdfdir$ac_delim
58020 psdir!$psdir$ac_delim
58021 libdir!$libdir$ac_delim
58022 localedir!$localedir$ac_delim
58023 mandir!$mandir$ac_delim
58024 DEFS!$DEFS$ac_delim
58025 ECHO_C!$ECHO_C$ac_delim
58026 ECHO_N!$ECHO_N$ac_delim
58027 ECHO_T!$ECHO_T$ac_delim
58028 LIBS!$LIBS$ac_delim
58029 build_alias!$build_alias$ac_delim
58030 host_alias!$host_alias$ac_delim
58031 target_alias!$target_alias$ac_delim
58032 build!$build$ac_delim
58033 build_cpu!$build_cpu$ac_delim
58034 build_vendor!$build_vendor$ac_delim
58035 build_os!$build_os$ac_delim
58036 host!$host$ac_delim
58037 host_cpu!$host_cpu$ac_delim
58038 host_vendor!$host_vendor$ac_delim
58039 host_os!$host_os$ac_delim
58040 target!$target$ac_delim
58041 target_cpu!$target_cpu$ac_delim
58042 target_vendor!$target_vendor$ac_delim
58043 target_os!$target_os$ac_delim
58044 wx_top_builddir!$wx_top_builddir$ac_delim
58045 CC!$CC$ac_delim
58046 CFLAGS!$CFLAGS$ac_delim
58047 LDFLAGS!$LDFLAGS$ac_delim
58048 CPPFLAGS!$CPPFLAGS$ac_delim
58049 ac_ct_CC!$ac_ct_CC$ac_delim
58050 EXEEXT!$EXEEXT$ac_delim
58051 OBJEXT!$OBJEXT$ac_delim
58052 CPP!$CPP$ac_delim
58053 GREP!$GREP$ac_delim
58054 EGREP!$EGREP$ac_delim
58055 CXX!$CXX$ac_delim
58056 CXXFLAGS!$CXXFLAGS$ac_delim
58057 ac_ct_CXX!$ac_ct_CXX$ac_delim
58058 RANLIB!$RANLIB$ac_delim
58059 AR!$AR$ac_delim
58060 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
58061 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
58062 INSTALL_DATA!$INSTALL_DATA$ac_delim
58063 STRIP!$STRIP$ac_delim
58064 WINDRES!$WINDRES$ac_delim
58065 DLLTOOL!$DLLTOOL$ac_delim
58066 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
58067 LN_S!$LN_S$ac_delim
58068 CXXCPP!$CXXCPP$ac_delim
58069 subdirs!$subdirs$ac_delim
58070 PKG_CONFIG!$PKG_CONFIG$ac_delim
58071 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
58072 GTK_LIBS!$GTK_LIBS$ac_delim
58073 GTK_CONFIG!$GTK_CONFIG$ac_delim
58074 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
58075 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
58076 XMKMF!$XMKMF$ac_delim
58077 X_CFLAGS!$X_CFLAGS$ac_delim
58078 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
58079 X_LIBS!$X_LIBS$ac_delim
58080 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
58081 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
58082 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
58083 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
58084 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
58085 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
58086 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
58087 REZ!$REZ$ac_delim
58088 DEREZ!$DEREZ$ac_delim
58089 SETFILE!$SETFILE$ac_delim
58090 LIBICONV!$LIBICONV$ac_delim
58091 EXTRALIBS_ESD!$EXTRALIBS_ESD$ac_delim
58092 _ACEOF
58093
58094   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
58095     break
58096   elif $ac_last_try; then
58097     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
58098 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
58099    { (exit 1); exit 1; }; }
58100   else
58101     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
58102   fi
58103 done
58104
58105 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
58106 if test -n "$ac_eof"; then
58107   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
58108   ac_eof=`expr $ac_eof + 1`
58109 fi
58110
58111 cat >>$CONFIG_STATUS <<_ACEOF
58112 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
58113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
58114 _ACEOF
58115 sed '
58116 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
58117 s/^/s,@/; s/!/@,|#_!!_#|/
58118 :n
58119 t n
58120 s/'"$ac_delim"'$/,g/; t
58121 s/$/\\/; p
58122 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
58123 ' >>$CONFIG_STATUS <conf$$subs.sed
58124 rm -f conf$$subs.sed
58125 cat >>$CONFIG_STATUS <<_ACEOF
58126 CEOF$ac_eof
58127 _ACEOF
58128
58129
58130 ac_delim='%!_!# '
58131 for ac_last_try in false false false false false :; do
58132   cat >conf$$subs.sed <<_ACEOF
58133 SDL_CONFIG!$SDL_CONFIG$ac_delim
58134 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
58135 SDL_LIBS!$SDL_LIBS$ac_delim
58136 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
58137 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
58138 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
58139 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
58140 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
58141 HILDON_LIBS!$HILDON_LIBS$ac_delim
58142 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
58143 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
58144 GST_CFLAGS!$GST_CFLAGS$ac_delim
58145 GST_LIBS!$GST_LIBS$ac_delim
58146 CORE_BASE_LIBS!$CORE_BASE_LIBS$ac_delim
58147 CORE_GUI_LIBS!$CORE_GUI_LIBS$ac_delim
58148 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
58149 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
58150 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
58151 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
58152 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
58153 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
58154 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
58155 VENDOR!$VENDOR$ac_delim
58156 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
58157 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
58158 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
58159 WXUNIV!$WXUNIV$ac_delim
58160 MONOLITHIC!$MONOLITHIC$ac_delim
58161 USE_PLUGINS!$USE_PLUGINS$ac_delim
58162 EXTRALIBS!$EXTRALIBS$ac_delim
58163 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
58164 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
58165 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
58166 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
58167 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
58168 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
58169 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
58170 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
58171 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
58172 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
58173 UNICODE!$UNICODE$ac_delim
58174 BUILD!$BUILD$ac_delim
58175 DEBUG_INFO!$DEBUG_INFO$ac_delim
58176 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
58177 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
58178 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
58179 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
58180 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
58181 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
58182 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
58183 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
58184 SET_MAKE!$SET_MAKE$ac_delim
58185 MAKE_SET!$MAKE_SET$ac_delim
58186 AROPTIONS!$AROPTIONS$ac_delim
58187 NM!$NM$ac_delim
58188 INSTALL_DIR!$INSTALL_DIR$ac_delim
58189 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
58190 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
58191 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
58192 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
58193 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
58194 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
58195 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
58196 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
58197 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
58198 SO_SUFFIX!$SO_SUFFIX$ac_delim
58199 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
58200 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
58201 LIBPREFIX!$LIBPREFIX$ac_delim
58202 LIBEXT!$LIBEXT$ac_delim
58203 DLLPREFIX!$DLLPREFIX$ac_delim
58204 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
58205 dlldir!$dlldir$ac_delim
58206 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
58207 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
58208 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
58209 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
58210 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
58211 PIC_FLAG!$PIC_FLAG$ac_delim
58212 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
58213 USE_SOVERSION!$USE_SOVERSION$ac_delim
58214 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
58215 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
58216 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
58217 USE_MACVERSION!$USE_MACVERSION$ac_delim
58218 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
58219 SONAME_FLAG!$SONAME_FLAG$ac_delim
58220 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
58221 BK_DEPS!$BK_DEPS$ac_delim
58222 GCC_PCH!$GCC_PCH$ac_delim
58223 ICC_PCH!$ICC_PCH$ac_delim
58224 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
58225 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
58226 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
58227 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
58228 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
58229 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
58230 _ACEOF
58231
58232   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
58233     break
58234   elif $ac_last_try; then
58235     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
58236 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
58237    { (exit 1); exit 1; }; }
58238   else
58239     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
58240   fi
58241 done
58242
58243 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
58244 if test -n "$ac_eof"; then
58245   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
58246   ac_eof=`expr $ac_eof + 1`
58247 fi
58248
58249 cat >>$CONFIG_STATUS <<_ACEOF
58250 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
58251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
58252 _ACEOF
58253 sed '
58254 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
58255 s/^/s,@/; s/!/@,|#_!!_#|/
58256 :n
58257 t n
58258 s/'"$ac_delim"'$/,g/; t
58259 s/$/\\/; p
58260 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
58261 ' >>$CONFIG_STATUS <conf$$subs.sed
58262 rm -f conf$$subs.sed
58263 cat >>$CONFIG_STATUS <<_ACEOF
58264 CEOF$ac_eof
58265 _ACEOF
58266
58267
58268 ac_delim='%!_!# '
58269 for ac_last_try in false false false false false :; do
58270   cat >conf$$subs.sed <<_ACEOF
58271 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
58272 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
58273 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
58274 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
58275 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
58276 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
58277 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
58278 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
58279 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
58280 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
58281 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
58282 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
58283 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
58284 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
58285 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
58286 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
58287 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
58288 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
58289 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
58290 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
58291 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
58292 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
58293 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
58294 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
58295 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
58296 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
58297 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
58298 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
58299 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
58300 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
58301 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
58302 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
58303 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
58304 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
58305 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
58306 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
58307 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
58308 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
58309 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
58310 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
58311 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
58312 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
58313 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
58314 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
58315 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
58316 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
58317 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
58318 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
58319 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
58320 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
58321 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
58322 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
58323 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
58324 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
58325 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
58326 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
58327 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
58328 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
58329 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
58330 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
58331 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
58332 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
58333 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
58334 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
58335 COND_SHARED_0!$COND_SHARED_0$ac_delim
58336 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
58337 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
58338 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
58339 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
58340 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
58341 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
58342 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
58343 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
58344 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
58345 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
58346 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
58347 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
58348 COND_SHARED_1!$COND_SHARED_1$ac_delim
58349 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
58350 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
58351 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
58352 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
58353 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
58354 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
58355 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
58356 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
58357 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
58358 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
58359 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
58360 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
58361 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
58362 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
58363 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
58364 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
58365 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
58366 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
58367 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
58368 _ACEOF
58369
58370   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
58371     break
58372   elif $ac_last_try; then
58373     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
58374 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
58375    { (exit 1); exit 1; }; }
58376   else
58377     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
58378   fi
58379 done
58380
58381 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
58382 if test -n "$ac_eof"; then
58383   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
58384   ac_eof=`expr $ac_eof + 1`
58385 fi
58386
58387 cat >>$CONFIG_STATUS <<_ACEOF
58388 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
58389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
58390 _ACEOF
58391 sed '
58392 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
58393 s/^/s,@/; s/!/@,|#_!!_#|/
58394 :n
58395 t n
58396 s/'"$ac_delim"'$/,g/; t
58397 s/$/\\/; p
58398 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
58399 ' >>$CONFIG_STATUS <conf$$subs.sed
58400 rm -f conf$$subs.sed
58401 cat >>$CONFIG_STATUS <<_ACEOF
58402 CEOF$ac_eof
58403 _ACEOF
58404
58405
58406 ac_delim='%!_!# '
58407 for ac_last_try in false false false false false :; do
58408   cat >conf$$subs.sed <<_ACEOF
58409 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
58410 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
58411 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
58412 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
58413 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
58414 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
58415 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
58416 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
58417 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
58418 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
58419 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
58420 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
58421 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
58422 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
58423 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
58424 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
58425 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
58426 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
58427 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
58428 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
58429 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
58430 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
58431 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
58432 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
58433 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
58434 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
58435 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
58436 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
58437 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
58438 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
58439 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
58440 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
58441 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
58442 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
58443 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
58444 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
58445 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
58446 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
58447 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
58448 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
58449 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
58450 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
58451 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
58452 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
58453 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
58454 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
58455 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
58456 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
58457 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
58458 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
58459 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
58460 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
58461 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
58462 SHARED!$SHARED$ac_delim
58463 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
58464 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
58465 USE_GUI!$USE_GUI$ac_delim
58466 AFMINSTALL!$AFMINSTALL$ac_delim
58467 WIN32INSTALL!$WIN32INSTALL$ac_delim
58468 TOOLKIT!$TOOLKIT$ac_delim
58469 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
58470 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
58471 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
58472 cross_compiling!$cross_compiling$ac_delim
58473 WIDGET_SET!$WIDGET_SET$ac_delim
58474 WX_RELEASE!$WX_RELEASE$ac_delim
58475 WX_VERSION!$WX_VERSION$ac_delim
58476 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
58477 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
58478 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
58479 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
58480 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
58481 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
58482 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
58483 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
58484 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
58485 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
58486 EXE_LINKER!$EXE_LINKER$ac_delim
58487 GUIDIST!$GUIDIST$ac_delim
58488 DISTDIR!$DISTDIR$ac_delim
58489 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
58490 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
58491 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
58492 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
58493 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
58494 RESCOMP!$RESCOMP$ac_delim
58495 RESFLAGS!$RESFLAGS$ac_delim
58496 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
58497 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
58498 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
58499 LIBWXMACRES!$LIBWXMACRES$ac_delim
58500 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
58501 MACSETFILE!$MACSETFILE$ac_delim
58502 GCC!$GCC$ac_delim
58503 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
58504 LIBOBJS!$LIBOBJS$ac_delim
58505 LTLIBOBJS!$LTLIBOBJS$ac_delim
58506 _ACEOF
58507
58508   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
58509     break
58510   elif $ac_last_try; then
58511     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
58512 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
58513    { (exit 1); exit 1; }; }
58514   else
58515     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
58516   fi
58517 done
58518
58519 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
58520 if test -n "$ac_eof"; then
58521   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
58522   ac_eof=`expr $ac_eof + 1`
58523 fi
58524
58525 cat >>$CONFIG_STATUS <<_ACEOF
58526 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
58527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
58528 _ACEOF
58529 sed '
58530 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
58531 s/^/s,@/; s/!/@,|#_!!_#|/
58532 :n
58533 t n
58534 s/'"$ac_delim"'$/,g/; t
58535 s/$/\\/; p
58536 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
58537 ' >>$CONFIG_STATUS <conf$$subs.sed
58538 rm -f conf$$subs.sed
58539 cat >>$CONFIG_STATUS <<_ACEOF
58540 CEOF$ac_eof
58541 _ACEOF
58542
58543
58544 # VPATH may cause trouble with some makes, so we remove $(srcdir),
58545 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
58546 # trailing colons and then remove the whole line if VPATH becomes empty
58547 # (actually we leave an empty line to preserve line numbers).
58548 if test "x$srcdir" = x.; then
58549   ac_vpsub='/^[  ]*VPATH[        ]*=/{
58550 s/:*\$(srcdir):*/:/
58551 s/:*\${srcdir}:*/:/
58552 s/:*@srcdir@:*/:/
58553 s/^\([^=]*=[     ]*\):*/\1/
58554 s/:*$//
58555 s/^[^=]*=[       ]*$//
58556 }'
58557 fi
58558
58559 cat >>$CONFIG_STATUS <<\_ACEOF
58560 fi # test -n "$CONFIG_FILES"
58561
58562
58563 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
58564 do
58565   case $ac_tag in
58566   :[FHLC]) ac_mode=$ac_tag; continue;;
58567   esac
58568   case $ac_mode$ac_tag in
58569   :[FHL]*:*);;
58570   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
58571 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
58572    { (exit 1); exit 1; }; };;
58573   :[FH]-) ac_tag=-:-;;
58574   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
58575   esac
58576   ac_save_IFS=$IFS
58577   IFS=:
58578   set x $ac_tag
58579   IFS=$ac_save_IFS
58580   shift
58581   ac_file=$1
58582   shift
58583
58584   case $ac_mode in
58585   :L) ac_source=$1;;
58586   :[FH])
58587     ac_file_inputs=
58588     for ac_f
58589     do
58590       case $ac_f in
58591       -) ac_f="$tmp/stdin";;
58592       *) # Look for the file first in the build tree, then in the source tree
58593          # (if the path is not absolute).  The absolute path cannot be DOS-style,
58594          # because $ac_f cannot contain `:'.
58595          test -f "$ac_f" ||
58596            case $ac_f in
58597            [\\/$]*) false;;
58598            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
58599            esac ||
58600            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
58601 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
58602    { (exit 1); exit 1; }; };;
58603       esac
58604       ac_file_inputs="$ac_file_inputs $ac_f"
58605     done
58606
58607     # Let's still pretend it is `configure' which instantiates (i.e., don't
58608     # use $as_me), people would be surprised to read:
58609     #    /* config.h.  Generated by config.status.  */
58610     configure_input="Generated from "`IFS=:
58611           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
58612     if test x"$ac_file" != x-; then
58613       configure_input="$ac_file.  $configure_input"
58614       { echo "$as_me:$LINENO: creating $ac_file" >&5
58615 echo "$as_me: creating $ac_file" >&6;}
58616     fi
58617
58618     case $ac_tag in
58619     *:-:* | *:-) cat >"$tmp/stdin";;
58620     esac
58621     ;;
58622   esac
58623
58624   ac_dir=`$as_dirname -- "$ac_file" ||
58625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
58626          X"$ac_file" : 'X\(//\)[^/]' \| \
58627          X"$ac_file" : 'X\(//\)$' \| \
58628          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
58629 echo X"$ac_file" |
58630     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
58631             s//\1/
58632             q
58633           }
58634           /^X\(\/\/\)[^/].*/{
58635             s//\1/
58636             q
58637           }
58638           /^X\(\/\/\)$/{
58639             s//\1/
58640             q
58641           }
58642           /^X\(\/\).*/{
58643             s//\1/
58644             q
58645           }
58646           s/.*/./; q'`
58647   { as_dir="$ac_dir"
58648   case $as_dir in #(
58649   -*) as_dir=./$as_dir;;
58650   esac
58651   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
58652     as_dirs=
58653     while :; do
58654       case $as_dir in #(
58655       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
58656       *) as_qdir=$as_dir;;
58657       esac
58658       as_dirs="'$as_qdir' $as_dirs"
58659       as_dir=`$as_dirname -- "$as_dir" ||
58660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
58661          X"$as_dir" : 'X\(//\)[^/]' \| \
58662          X"$as_dir" : 'X\(//\)$' \| \
58663          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
58664 echo X"$as_dir" |
58665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
58666             s//\1/
58667             q
58668           }
58669           /^X\(\/\/\)[^/].*/{
58670             s//\1/
58671             q
58672           }
58673           /^X\(\/\/\)$/{
58674             s//\1/
58675             q
58676           }
58677           /^X\(\/\).*/{
58678             s//\1/
58679             q
58680           }
58681           s/.*/./; q'`
58682       test -d "$as_dir" && break
58683     done
58684     test -z "$as_dirs" || eval "mkdir $as_dirs"
58685   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
58686 echo "$as_me: error: cannot create directory $as_dir" >&2;}
58687    { (exit 1); exit 1; }; }; }
58688   ac_builddir=.
58689
58690 case "$ac_dir" in
58691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
58692 *)
58693   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
58694   # A ".." for each directory in $ac_dir_suffix.
58695   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
58696   case $ac_top_builddir_sub in
58697   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
58698   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
58699   esac ;;
58700 esac
58701 ac_abs_top_builddir=$ac_pwd
58702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
58703 # for backward compatibility:
58704 ac_top_builddir=$ac_top_build_prefix
58705
58706 case $srcdir in
58707   .)  # We are building in place.
58708     ac_srcdir=.
58709     ac_top_srcdir=$ac_top_builddir_sub
58710     ac_abs_top_srcdir=$ac_pwd ;;
58711   [\\/]* | ?:[\\/]* )  # Absolute name.
58712     ac_srcdir=$srcdir$ac_dir_suffix;
58713     ac_top_srcdir=$srcdir
58714     ac_abs_top_srcdir=$srcdir ;;
58715   *) # Relative name.
58716     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
58717     ac_top_srcdir=$ac_top_build_prefix$srcdir
58718     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
58719 esac
58720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
58721
58722
58723   case $ac_mode in
58724   :F)
58725   #
58726   # CONFIG_FILE
58727   #
58728
58729   case $INSTALL in
58730   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
58731   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
58732   esac
58733 _ACEOF
58734
58735 cat >>$CONFIG_STATUS <<\_ACEOF
58736 # If the template does not know about datarootdir, expand it.
58737 # FIXME: This hack should be removed a few years after 2.60.
58738 ac_datarootdir_hack=; ac_datarootdir_seen=
58739
58740 case `sed -n '/datarootdir/ {
58741   p
58742   q
58743 }
58744 /@datadir@/p
58745 /@docdir@/p
58746 /@infodir@/p
58747 /@localedir@/p
58748 /@mandir@/p
58749 ' $ac_file_inputs` in
58750 *datarootdir*) ac_datarootdir_seen=yes;;
58751 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
58752   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
58753 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
58754 _ACEOF
58755 cat >>$CONFIG_STATUS <<_ACEOF
58756   ac_datarootdir_hack='
58757   s&@datadir@&$datadir&g
58758   s&@docdir@&$docdir&g
58759   s&@infodir@&$infodir&g
58760   s&@localedir@&$localedir&g
58761   s&@mandir@&$mandir&g
58762     s&\\\${datarootdir}&$datarootdir&g' ;;
58763 esac
58764 _ACEOF
58765
58766 # Neutralize VPATH when `$srcdir' = `.'.
58767 # Shell code in configure.ac might set extrasub.
58768 # FIXME: do we really want to maintain this feature?
58769 cat >>$CONFIG_STATUS <<_ACEOF
58770   sed "$ac_vpsub
58771 $extrasub
58772 _ACEOF
58773 cat >>$CONFIG_STATUS <<\_ACEOF
58774 :t
58775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
58776 s&@configure_input@&$configure_input&;t t
58777 s&@top_builddir@&$ac_top_builddir_sub&;t t
58778 s&@srcdir@&$ac_srcdir&;t t
58779 s&@abs_srcdir@&$ac_abs_srcdir&;t t
58780 s&@top_srcdir@&$ac_top_srcdir&;t t
58781 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
58782 s&@builddir@&$ac_builddir&;t t
58783 s&@abs_builddir@&$ac_abs_builddir&;t t
58784 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
58785 s&@INSTALL@&$ac_INSTALL&;t t
58786 $ac_datarootdir_hack
58787 " $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 's/|#_!!_#|//g' >$tmp/out
58788
58789 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
58790   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
58791   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
58792   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
58793 which seems to be undefined.  Please make sure it is defined." >&5
58794 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
58795 which seems to be undefined.  Please make sure it is defined." >&2;}
58796
58797   rm -f "$tmp/stdin"
58798   case $ac_file in
58799   -) cat "$tmp/out"; rm -f "$tmp/out";;
58800   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
58801   esac
58802  ;;
58803   :H)
58804   #
58805   # CONFIG_HEADER
58806   #
58807 _ACEOF
58808
58809 # Transform confdefs.h into a sed script `conftest.defines', that
58810 # substitutes the proper values into config.h.in to produce config.h.
58811 rm -f conftest.defines conftest.tail
58812 # First, append a space to every undef/define line, to ease matching.
58813 echo 's/$/ /' >conftest.defines
58814 # Then, protect against being on the right side of a sed subst, or in
58815 # an unquoted here document, in config.status.  If some macros were
58816 # called several times there might be several #defines for the same
58817 # symbol, which is useless.  But do not sort them, since the last
58818 # AC_DEFINE must be honored.
58819 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
58820 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
58821 # NAME is the cpp macro being defined, VALUE is the value it is being given.
58822 # PARAMS is the parameter list in the macro definition--in most cases, it's
58823 # just an empty string.
58824 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
58825 ac_dB='\\)[      (].*,\\1define\\2'
58826 ac_dC=' '
58827 ac_dD=' ,'
58828
58829 uniq confdefs.h |
58830   sed -n '
58831         t rset
58832         :rset
58833         s/^[     ]*#[    ]*define[       ][      ]*//
58834         t ok
58835         d
58836         :ok
58837         s/[\\&,]/\\&/g
58838         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
58839         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
58840   ' >>conftest.defines
58841
58842 # Remove the space that was appended to ease matching.
58843 # Then replace #undef with comments.  This is necessary, for
58844 # example, in the case of _POSIX_SOURCE, which is predefined and required
58845 # on some systems where configure will not decide to define it.
58846 # (The regexp can be short, since the line contains either #define or #undef.)
58847 echo 's/ $//
58848 s,^[     #]*u.*,/* & */,' >>conftest.defines
58849
58850 # Break up conftest.defines:
58851 ac_max_sed_lines=50
58852
58853 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
58854 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
58855 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
58856 # et cetera.
58857 ac_in='$ac_file_inputs'
58858 ac_out='"$tmp/out1"'
58859 ac_nxt='"$tmp/out2"'
58860
58861 while :
58862 do
58863   # Write a here document:
58864     cat >>$CONFIG_STATUS <<_ACEOF
58865     # First, check the format of the line:
58866     cat >"\$tmp/defines.sed" <<\\CEOF
58867 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
58868 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
58869 b
58870 :def
58871 _ACEOF
58872   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
58873   echo 'CEOF
58874     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
58875   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
58876   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
58877   grep . conftest.tail >/dev/null || break
58878   rm -f conftest.defines
58879   mv conftest.tail conftest.defines
58880 done
58881 rm -f conftest.defines conftest.tail
58882
58883 echo "ac_result=$ac_in" >>$CONFIG_STATUS
58884 cat >>$CONFIG_STATUS <<\_ACEOF
58885   if test x"$ac_file" != x-; then
58886     echo "/* $configure_input  */" >"$tmp/config.h"
58887     cat "$ac_result" >>"$tmp/config.h"
58888     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
58889       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
58890 echo "$as_me: $ac_file is unchanged" >&6;}
58891     else
58892       rm -f $ac_file
58893       mv "$tmp/config.h" $ac_file
58894     fi
58895   else
58896     echo "/* $configure_input  */"
58897     cat "$ac_result"
58898   fi
58899   rm -f "$tmp/out12"
58900  ;;
58901
58902   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
58903 echo "$as_me: executing $ac_file commands" >&6;}
58904  ;;
58905   esac
58906
58907
58908   case $ac_file$ac_mode in
58909     "rcdefs.h":C)
58910             mkdir -p $outdir &&
58911             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
58912          ;;
58913     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
58914     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
58915     "wx-config":C)  rm -f wx-config
58916                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
58917                     ;;
58918
58919   esac
58920 done # for ac_tag
58921
58922
58923 { (exit 0); exit 0; }
58924 _ACEOF
58925 chmod +x $CONFIG_STATUS
58926 ac_clean_files=$ac_clean_files_save
58927
58928
58929 # configure is writing to config.log, and then calls config.status.
58930 # config.status does its own redirection, appending to config.log.
58931 # Unfortunately, on DOS this fails, as config.log is still kept open
58932 # by configure, so config.status won't be able to write to it; its
58933 # output is simply discarded.  So we exec the FD to /dev/null,
58934 # effectively closing config.log, so it can be properly (re)opened and
58935 # appended to by config.status.  When coming back to configure, we
58936 # need to make the FD available again.
58937 if test "$no_create" != yes; then
58938   ac_cs_success=:
58939   ac_config_status_args=
58940   test "$silent" = yes &&
58941     ac_config_status_args="$ac_config_status_args --quiet"
58942   exec 5>/dev/null
58943   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
58944   exec 5>>config.log
58945   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
58946   # would make configure fail if this is the last instruction.
58947   $ac_cs_success || { (exit 1); exit 1; }
58948 fi
58949
58950 #
58951 # CONFIG_SUBDIRS section.
58952 #
58953 if test "$no_recursion" != yes; then
58954
58955   # Remove --cache-file and --srcdir arguments so they do not pile up.
58956   ac_sub_configure_args=
58957   ac_prev=
58958   eval "set x $ac_configure_args"
58959   shift
58960   for ac_arg
58961   do
58962     if test -n "$ac_prev"; then
58963       ac_prev=
58964       continue
58965     fi
58966     case $ac_arg in
58967     -cache-file | --cache-file | --cache-fil | --cache-fi \
58968     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
58969       ac_prev=cache_file ;;
58970     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
58971     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
58972     | --c=*)
58973       ;;
58974     --config-cache | -C)
58975       ;;
58976     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
58977       ac_prev=srcdir ;;
58978     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
58979       ;;
58980     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
58981       ac_prev=prefix ;;
58982     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
58983       ;;
58984     *)
58985       case $ac_arg in
58986       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
58987       esac
58988       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
58989     esac
58990   done
58991
58992   # Always prepend --prefix to ensure using the same prefix
58993   # in subdir configurations.
58994   ac_arg="--prefix=$prefix"
58995   case $ac_arg in
58996   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
58997   esac
58998   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
58999
59000   ac_popdir=`pwd`
59001   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
59002
59003     # Do not complain, so a configure script can configure whichever
59004     # parts of a large source tree are present.
59005     test -d "$srcdir/$ac_dir" || continue
59006
59007     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
59008     echo "$as_me:$LINENO: $ac_msg" >&5
59009     echo "$ac_msg" >&6
59010     { as_dir="$ac_dir"
59011   case $as_dir in #(
59012   -*) as_dir=./$as_dir;;
59013   esac
59014   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
59015     as_dirs=
59016     while :; do
59017       case $as_dir in #(
59018       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
59019       *) as_qdir=$as_dir;;
59020       esac
59021       as_dirs="'$as_qdir' $as_dirs"
59022       as_dir=`$as_dirname -- "$as_dir" ||
59023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59024          X"$as_dir" : 'X\(//\)[^/]' \| \
59025          X"$as_dir" : 'X\(//\)$' \| \
59026          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
59027 echo X"$as_dir" |
59028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
59029             s//\1/
59030             q
59031           }
59032           /^X\(\/\/\)[^/].*/{
59033             s//\1/
59034             q
59035           }
59036           /^X\(\/\/\)$/{
59037             s//\1/
59038             q
59039           }
59040           /^X\(\/\).*/{
59041             s//\1/
59042             q
59043           }
59044           s/.*/./; q'`
59045       test -d "$as_dir" && break
59046     done
59047     test -z "$as_dirs" || eval "mkdir $as_dirs"
59048   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
59049 echo "$as_me: error: cannot create directory $as_dir" >&2;}
59050    { (exit 1); exit 1; }; }; }
59051     ac_builddir=.
59052
59053 case "$ac_dir" in
59054 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
59055 *)
59056   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
59057   # A ".." for each directory in $ac_dir_suffix.
59058   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
59059   case $ac_top_builddir_sub in
59060   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
59061   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
59062   esac ;;
59063 esac
59064 ac_abs_top_builddir=$ac_pwd
59065 ac_abs_builddir=$ac_pwd$ac_dir_suffix
59066 # for backward compatibility:
59067 ac_top_builddir=$ac_top_build_prefix
59068
59069 case $srcdir in
59070   .)  # We are building in place.
59071     ac_srcdir=.
59072     ac_top_srcdir=$ac_top_builddir_sub
59073     ac_abs_top_srcdir=$ac_pwd ;;
59074   [\\/]* | ?:[\\/]* )  # Absolute name.
59075     ac_srcdir=$srcdir$ac_dir_suffix;
59076     ac_top_srcdir=$srcdir
59077     ac_abs_top_srcdir=$srcdir ;;
59078   *) # Relative name.
59079     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
59080     ac_top_srcdir=$ac_top_build_prefix$srcdir
59081     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
59082 esac
59083 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
59084
59085
59086     cd "$ac_dir"
59087
59088     # Check for guested configure; otherwise get Cygnus style configure.
59089     if test -f "$ac_srcdir/configure.gnu"; then
59090       ac_sub_configure=$ac_srcdir/configure.gnu
59091     elif test -f "$ac_srcdir/configure"; then
59092       ac_sub_configure=$ac_srcdir/configure
59093     elif test -f "$ac_srcdir/configure.in"; then
59094       # This should be Cygnus configure.
59095       ac_sub_configure=$ac_aux_dir/configure
59096     else
59097       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
59098 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
59099       ac_sub_configure=
59100     fi
59101
59102     # The recursion is here.
59103     if test -n "$ac_sub_configure"; then
59104       # Make the cache file name correct relative to the subdirectory.
59105       case $cache_file in
59106       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
59107       *) # Relative name.
59108         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
59109       esac
59110
59111       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
59112 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
59113       # The eval makes quoting arguments work.
59114       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
59115            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
59116         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
59117 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
59118    { (exit 1); exit 1; }; }
59119     fi
59120
59121     cd "$ac_popdir"
59122   done
59123 fi
59124
59125
59126 echo
59127 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
59128 echo ""
59129 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
59130 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
59131
59132 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
59133 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
59134 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
59135
59136 echo "  What level of wxWidgets compatibility should be enabled?"
59137 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
59138 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
59139
59140 echo "  Which libraries should wxWidgets use?"
59141 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
59142 echo "                                       png                ${wxUSE_LIBPNG-none}"
59143 echo "                                       regex              ${wxUSE_REGEX}"
59144 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
59145 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
59146 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
59147 fi
59148 echo "                                       zlib               ${wxUSE_ZLIB}"
59149 echo "                                       odbc               ${wxUSE_ODBC}"
59150 echo "                                       expat              ${wxUSE_EXPAT}"
59151 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
59152 echo "                                       sdl                ${wxUSE_LIBSDL}"
59153
59154 echo ""
59155