remove sole makefile.dmc in tree
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 46702 2007-06-26 11:58:21Z VS .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.0'
579 PACKAGE_STRING='wxWidgets 2.9.0'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 target
665 target_cpu
666 target_vendor
667 target_os
668 wx_top_builddir
669 CC
670 CFLAGS
671 LDFLAGS
672 CPPFLAGS
673 ac_ct_CC
674 EXEEXT
675 OBJEXT
676 CPP
677 GREP
678 EGREP
679 CXX
680 CXXFLAGS
681 ac_ct_CXX
682 RANLIB
683 AR
684 INSTALL_PROGRAM
685 INSTALL_SCRIPT
686 INSTALL_DATA
687 STRIP
688 WINDRES
689 DLLTOOL
690 IF_GNU_MAKE
691 LN_S
692 subdirs
693 PKG_CONFIG
694 GTK_CFLAGS
695 GTK_LIBS
696 GTK_CONFIG
697 DIRECTFB_CFLAGS
698 DIRECTFB_LIBS
699 XMKMF
700 X_CFLAGS
701 X_PRE_LIBS
702 X_LIBS
703 X_EXTRA_LIBS
704 PANGOX_CFLAGS
705 PANGOX_LIBS
706 PANGOFT2_CFLAGS
707 PANGOFT2_LIBS
708 PANGOXFT_CFLAGS
709 PANGOXFT_LIBS
710 REZ
711 DEREZ
712 SETFILE
713 LIBICONV
714 SDL_CONFIG
715 SDL_CFLAGS
716 SDL_LIBS
717 LIBGNOMEPRINTUI_CFLAGS
718 LIBGNOMEPRINTUI_LIBS
719 GNOMEVFS_CFLAGS
720 GNOMEVFS_LIBS
721 HILDON_CFLAGS
722 HILDON_LIBS
723 CAIRO_CFLAGS
724 CAIRO_LIBS
725 GST_CFLAGS
726 GST_LIBS
727 CORE_BASE_LIBS
728 CORE_GUI_LIBS
729 wxUSE_ZLIB
730 wxUSE_REGEX
731 wxUSE_EXPAT
732 wxUSE_ODBC
733 wxUSE_LIBJPEG
734 wxUSE_LIBPNG
735 wxUSE_LIBTIFF
736 VENDOR
737 OFFICIAL_BUILD
738 WX_FLAVOUR
739 WX_LIB_FLAVOUR
740 WXUNIV
741 MONOLITHIC
742 USE_PLUGINS
743 CXXWARNINGS
744 EXTRALIBS
745 EXTRALIBS_XML
746 EXTRALIBS_HTML
747 EXTRALIBS_ODBC
748 EXTRALIBS_GUI
749 EXTRALIBS_OPENGL
750 EXTRALIBS_SDL
751 WITH_PLUGIN_SDL
752 EXTRALIBS_GNOMEPRINT
753 EXTRALIBS_GNOMEVFS
754 EXTRALIBS_HILDON
755 UNICODE
756 BUILD
757 DEBUG_INFO
758 DEBUG_FLAG
759 TOOLKIT_LOWERCASE
760 TOOLKIT_VERSION
761 SAMPLES_RPATH_FLAG
762 SAMPLES_RPATH_POSTLINK
763 HOST_SUFFIX
764 CPPUNIT_CFLAGS
765 CPPUNIT_LIBS
766 SET_MAKE
767 MAKE_SET
768 AROPTIONS
769 NM
770 INSTALL_DIR
771 LDFLAGS_GUI
772 PLATFORM_UNIX
773 PLATFORM_WIN32
774 PLATFORM_MSDOS
775 PLATFORM_MAC
776 PLATFORM_MACOS
777 PLATFORM_MACOSX
778 PLATFORM_OS2
779 PLATFORM_BEOS
780 SO_SUFFIX
781 SO_SUFFIX_MODULE
782 DLLIMP_SUFFIX
783 LIBPREFIX
784 LIBEXT
785 DLLPREFIX
786 DLLPREFIX_MODULE
787 dlldir
788 AIX_CXX_LD
789 SHARED_LD_CC
790 SHARED_LD_CXX
791 SHARED_LD_MODULE_CC
792 SHARED_LD_MODULE_CXX
793 PIC_FLAG
794 WINDOWS_IMPLIB
795 USE_SOVERSION
796 USE_SOVERLINUX
797 USE_SOVERSOLARIS
798 USE_SOVERCYGWIN
799 USE_MACVERSION
800 USE_SOSYMLINKS
801 SONAME_FLAG
802 DEPS_TRACKING
803 BK_DEPS
804 GCC_PCH
805 ICC_PCH
806 BK_MAKE_PCH
807 COND_BUILD_DEBUG
808 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
809 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
810 COND_BUILD_DEBUG_UNICODE_0
811 COND_BUILD_DEBUG_UNICODE_1
812 COND_BUILD_RELEASE
813 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
814 COND_BUILD_RELEASE_UNICODE_0
815 COND_BUILD_RELEASE_UNICODE_1
816 COND_DEBUG_FLAG_1
817 COND_DEBUG_INFO_0
818 COND_DEBUG_INFO_1
819 COND_DEPS_TRACKING_0
820 COND_DEPS_TRACKING_1
821 COND_GCC_PCH_1
822 COND_ICC_PCH_1
823 COND_MONOLITHIC_0
824 COND_MONOLITHIC_0_SHARED_0
825 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
826 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
827 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
828 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
829 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1
830 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
831 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1
832 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
833 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
834 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
835 COND_MONOLITHIC_0_SHARED_1
836 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
837 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
838 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
839 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
840 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
842 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1
843 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
844 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
845 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
846 COND_MONOLITHIC_0_USE_AUI_1
847 COND_MONOLITHIC_0_USE_GUI_1
848 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
849 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1
850 COND_MONOLITHIC_0_USE_HTML_1
851 COND_MONOLITHIC_0_USE_MEDIA_1
852 COND_MONOLITHIC_0_USE_ODBC_1
853 COND_MONOLITHIC_0_USE_QA_1
854 COND_MONOLITHIC_0_USE_RICHTEXT_1
855 COND_MONOLITHIC_0_USE_STC_1
856 COND_MONOLITHIC_0_USE_XRC_1
857 COND_MONOLITHIC_1
858 COND_MONOLITHIC_1_SHARED_0
859 COND_MONOLITHIC_1_SHARED_1
860 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
861 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
862 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
863 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
864 COND_PLATFORM_MACOSX_1
865 COND_PLATFORM_MACOSX_1_TOOLKIT_
866 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
867 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
868 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
869 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
870 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
871 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
872 COND_PLATFORM_MACOSX_1_USE_GUI_1
873 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
874 COND_PLATFORM_MACOS_1
875 COND_PLATFORM_MAC_1
876 COND_PLATFORM_MSDOS_0
877 COND_PLATFORM_MSDOS_1
878 COND_PLATFORM_OS2_1
879 COND_PLATFORM_UNIX_0
880 COND_PLATFORM_UNIX_1
881 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
882 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
883 COND_PLATFORM_UNIX_1_USE_GUI_1
884 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
885 COND_PLATFORM_WIN32_0
886 COND_PLATFORM_WIN32_1
887 COND_SHARED_0
888 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
889 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
890 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
891 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
892 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
893 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
894 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
895 COND_SHARED_0_USE_STC_1
896 COND_SHARED_0_USE_XRC_1
897 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
898 COND_SHARED_0_WXUSE_ODBC_BUILTIN
899 COND_SHARED_0_WXUSE_REGEX_BUILTIN
900 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
901 COND_SHARED_1
902 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
903 COND_SHARED_1_USE_XRC_1
904 COND_TOOLKIT_
905 COND_TOOLKIT_COCOA
906 COND_TOOLKIT_COCOA_USE_GUI_1
907 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
908 COND_TOOLKIT_DFB
909 COND_TOOLKIT_DFB_USE_GUI_1
910 COND_TOOLKIT_GTK
911 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
912 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
913 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
914 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
915 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
916 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
917 COND_TOOLKIT_GTK_USE_GUI_1
918 COND_TOOLKIT_MAC
919 COND_TOOLKIT_MAC_USE_GUI_1
920 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
921 COND_TOOLKIT_MGL
922 COND_TOOLKIT_MGL_USE_GUI_1
923 COND_TOOLKIT_MOTIF
924 COND_TOOLKIT_MOTIF_USE_GUI_1
925 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
926 COND_TOOLKIT_MSW
927 COND_TOOLKIT_MSW_USE_GUI_1
928 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
929 COND_TOOLKIT_MSW_WXUNIV_0
930 COND_TOOLKIT_PM
931 COND_TOOLKIT_PM_USE_GUI_1
932 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
933 COND_TOOLKIT_WINCE
934 COND_TOOLKIT_WINCE_USE_GUI_1
935 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
936 COND_TOOLKIT_WINCE_WXUNIV_0
937 COND_TOOLKIT_X11
938 COND_TOOLKIT_X11_USE_GUI_1
939 COND_UNICODE_1
940 COND_USE_EXCEPTIONS_0
941 COND_USE_EXCEPTIONS_1
942 COND_USE_GUI_0
943 COND_USE_GUI_1
944 COND_USE_GUI_1_USE_OPENGL_1
945 COND_USE_GUI_1_WXUNIV_0
946 COND_USE_GUI_1_WXUNIV_1
947 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
948 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
949 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
950 COND_USE_ODBC_1
951 COND_USE_OPENGL_1
952 COND_USE_PCH_1
953 COND_USE_PLUGINS_0
954 COND_USE_RTTI_0
955 COND_USE_RTTI_1
956 COND_USE_SOSYMLINKS_1
957 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
958 COND_USE_SOVERLINUX_1
959 COND_USE_SOVERSION_0
960 COND_USE_SOVERSOLARIS_1
961 COND_USE_STC_1
962 COND_USE_THREADS_0
963 COND_USE_THREADS_1
964 COND_USE_XRC_1
965 COND_WINDOWS_IMPLIB_1
966 COND_WITH_PLUGIN_SDL_1
967 COND_WXUNIV_0
968 COND_WXUNIV_1
969 COND_WXUSE_EXPAT_BUILTIN
970 COND_WXUSE_LIBJPEG_BUILTIN
971 COND_WXUSE_LIBPNG_BUILTIN
972 COND_WXUSE_LIBTIFF_BUILTIN
973 COND_WXUSE_ODBC_BUILTIN
974 COND_WXUSE_REGEX_BUILTIN
975 COND_WXUSE_ZLIB_BUILTIN
976 SHARED
977 WX_LIBRARY_BASENAME_NOGUI
978 WX_LIBRARY_BASENAME_GUI
979 USE_GUI
980 AFMINSTALL
981 WIN32INSTALL
982 TOOLKIT
983 TOOLKIT_DIR
984 TOOLCHAIN_NAME
985 TOOLCHAIN_FULLNAME
986 cross_compiling
987 WIDGET_SET
988 WX_RELEASE
989 WX_VERSION
990 WX_SUBVERSION
991 WX_CHARTYPE
992 WX_DEBUGTYPE
993 WXCONFIG_CPPFLAGS
994 WXCONFIG_CFLAGS
995 WXCONFIG_CXXFLAGS
996 WXCONFIG_LIBS
997 WXCONFIG_RPATH
998 WXCONFIG_LDFLAGS_GUI
999 WXCONFIG_RESFLAGS
1000 EXE_LINKER
1001 GUIDIST
1002 DISTDIR
1003 SAMPLES_SUBDIRS
1004 LDFLAGS_GL
1005 OPENGL_LIBS
1006 DMALLOC_LIBS
1007 WX_VERSION_TAG
1008 RESCOMP
1009 RESFLAGS
1010 RESPROGRAMOBJ
1011 WX_RESOURCES_MACOSX_ASCII
1012 WX_RESOURCES_MACOSX_DATA
1013 LIBWXMACRES
1014 POSTLINK_COMMAND
1015 MACSETFILE
1016 GCC
1017 CPPUNIT_CONFIG
1018 LIBOBJS
1019 LTLIBOBJS'
1020 ac_subst_files=''
1021       ac_precious_vars='build_alias
1022 host_alias
1023 target_alias
1024 CC
1025 CFLAGS
1026 LDFLAGS
1027 LIBS
1028 CPPFLAGS
1029 CPP
1030 CXX
1031 CXXFLAGS
1032 CCC
1033 PKG_CONFIG
1034 DIRECTFB_CFLAGS
1035 DIRECTFB_LIBS
1036 XMKMF
1037 PANGOX_CFLAGS
1038 PANGOX_LIBS
1039 PANGOFT2_CFLAGS
1040 PANGOFT2_LIBS
1041 PANGOXFT_CFLAGS
1042 PANGOXFT_LIBS
1043 LIBGNOMEPRINTUI_CFLAGS
1044 LIBGNOMEPRINTUI_LIBS
1045 GNOMEVFS_CFLAGS
1046 GNOMEVFS_LIBS
1047 HILDON_CFLAGS
1048 HILDON_LIBS
1049 CAIRO_CFLAGS
1050 CAIRO_LIBS
1051 GST_CFLAGS
1052 GST_LIBS'
1053 ac_subdirs_all='src/expat'
1054
1055 # Initialize some variables set by options.
1056 ac_init_help=
1057 ac_init_version=false
1058 # The variables have the same names as the options, with
1059 # dashes changed to underlines.
1060 cache_file=/dev/null
1061 exec_prefix=NONE
1062 no_create=
1063 no_recursion=
1064 prefix=NONE
1065 program_prefix=NONE
1066 program_suffix=NONE
1067 program_transform_name=s,x,x,
1068 silent=
1069 site=
1070 srcdir=
1071 verbose=
1072 x_includes=NONE
1073 x_libraries=NONE
1074
1075 # Installation directory options.
1076 # These are left unexpanded so users can "make install exec_prefix=/foo"
1077 # and all the variables that are supposed to be based on exec_prefix
1078 # by default will actually change.
1079 # Use braces instead of parens because sh, perl, etc. also accept them.
1080 # (The list follows the same order as the GNU Coding Standards.)
1081 bindir='${exec_prefix}/bin'
1082 sbindir='${exec_prefix}/sbin'
1083 libexecdir='${exec_prefix}/libexec'
1084 datarootdir='${prefix}/share'
1085 datadir='${datarootdir}'
1086 sysconfdir='${prefix}/etc'
1087 sharedstatedir='${prefix}/com'
1088 localstatedir='${prefix}/var'
1089 includedir='${prefix}/include'
1090 oldincludedir='/usr/include'
1091 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1092 infodir='${datarootdir}/info'
1093 htmldir='${docdir}'
1094 dvidir='${docdir}'
1095 pdfdir='${docdir}'
1096 psdir='${docdir}'
1097 libdir='${exec_prefix}/lib'
1098 localedir='${datarootdir}/locale'
1099 mandir='${datarootdir}/man'
1100
1101 ac_prev=
1102 ac_dashdash=
1103 for ac_option
1104 do
1105   # If the previous option needs an argument, assign it.
1106   if test -n "$ac_prev"; then
1107     eval $ac_prev=\$ac_option
1108     ac_prev=
1109     continue
1110   fi
1111
1112   case $ac_option in
1113   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1114   *)    ac_optarg=yes ;;
1115   esac
1116
1117   # Accept the important Cygnus configure options, so we can diagnose typos.
1118
1119   case $ac_dashdash$ac_option in
1120   --)
1121     ac_dashdash=yes ;;
1122
1123   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1124     ac_prev=bindir ;;
1125   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1126     bindir=$ac_optarg ;;
1127
1128   -build | --build | --buil | --bui | --bu)
1129     ac_prev=build_alias ;;
1130   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1131     build_alias=$ac_optarg ;;
1132
1133   -cache-file | --cache-file | --cache-fil | --cache-fi \
1134   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1135     ac_prev=cache_file ;;
1136   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1137   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1138     cache_file=$ac_optarg ;;
1139
1140   --config-cache | -C)
1141     cache_file=config.cache ;;
1142
1143   -datadir | --datadir | --datadi | --datad)
1144     ac_prev=datadir ;;
1145   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1146     datadir=$ac_optarg ;;
1147
1148   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1149   | --dataroo | --dataro | --datar)
1150     ac_prev=datarootdir ;;
1151   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1152   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1153     datarootdir=$ac_optarg ;;
1154
1155   -disable-* | --disable-*)
1156     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1160    { (exit 1); exit 1; }; }
1161     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1162     eval enable_$ac_feature=no ;;
1163
1164   -docdir | --docdir | --docdi | --doc | --do)
1165     ac_prev=docdir ;;
1166   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1167     docdir=$ac_optarg ;;
1168
1169   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1170     ac_prev=dvidir ;;
1171   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1172     dvidir=$ac_optarg ;;
1173
1174   -enable-* | --enable-*)
1175     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1179    { (exit 1); exit 1; }; }
1180     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1181     eval enable_$ac_feature=\$ac_optarg ;;
1182
1183   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1184   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1185   | --exec | --exe | --ex)
1186     ac_prev=exec_prefix ;;
1187   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1188   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1189   | --exec=* | --exe=* | --ex=*)
1190     exec_prefix=$ac_optarg ;;
1191
1192   -gas | --gas | --ga | --g)
1193     # Obsolete; use --with-gas.
1194     with_gas=yes ;;
1195
1196   -help | --help | --hel | --he | -h)
1197     ac_init_help=long ;;
1198   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1199     ac_init_help=recursive ;;
1200   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1201     ac_init_help=short ;;
1202
1203   -host | --host | --hos | --ho)
1204     ac_prev=host_alias ;;
1205   -host=* | --host=* | --hos=* | --ho=*)
1206     host_alias=$ac_optarg ;;
1207
1208   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1209     ac_prev=htmldir ;;
1210   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1211   | --ht=*)
1212     htmldir=$ac_optarg ;;
1213
1214   -includedir | --includedir | --includedi | --included | --include \
1215   | --includ | --inclu | --incl | --inc)
1216     ac_prev=includedir ;;
1217   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1218   | --includ=* | --inclu=* | --incl=* | --inc=*)
1219     includedir=$ac_optarg ;;
1220
1221   -infodir | --infodir | --infodi | --infod | --info | --inf)
1222     ac_prev=infodir ;;
1223   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1224     infodir=$ac_optarg ;;
1225
1226   -libdir | --libdir | --libdi | --libd)
1227     ac_prev=libdir ;;
1228   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1229     libdir=$ac_optarg ;;
1230
1231   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1232   | --libexe | --libex | --libe)
1233     ac_prev=libexecdir ;;
1234   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1235   | --libexe=* | --libex=* | --libe=*)
1236     libexecdir=$ac_optarg ;;
1237
1238   -localedir | --localedir | --localedi | --localed | --locale)
1239     ac_prev=localedir ;;
1240   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1241     localedir=$ac_optarg ;;
1242
1243   -localstatedir | --localstatedir | --localstatedi | --localstated \
1244   | --localstate | --localstat | --localsta | --localst | --locals)
1245     ac_prev=localstatedir ;;
1246   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1247   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1248     localstatedir=$ac_optarg ;;
1249
1250   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1251     ac_prev=mandir ;;
1252   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1253     mandir=$ac_optarg ;;
1254
1255   -nfp | --nfp | --nf)
1256     # Obsolete; use --without-fp.
1257     with_fp=no ;;
1258
1259   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1260   | --no-cr | --no-c | -n)
1261     no_create=yes ;;
1262
1263   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1264   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1265     no_recursion=yes ;;
1266
1267   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1268   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1269   | --oldin | --oldi | --old | --ol | --o)
1270     ac_prev=oldincludedir ;;
1271   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1272   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1273   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1274     oldincludedir=$ac_optarg ;;
1275
1276   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1277     ac_prev=prefix ;;
1278   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1279     prefix=$ac_optarg ;;
1280
1281   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1282   | --program-pre | --program-pr | --program-p)
1283     ac_prev=program_prefix ;;
1284   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1285   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1286     program_prefix=$ac_optarg ;;
1287
1288   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1289   | --program-suf | --program-su | --program-s)
1290     ac_prev=program_suffix ;;
1291   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1292   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1293     program_suffix=$ac_optarg ;;
1294
1295   -program-transform-name | --program-transform-name \
1296   | --program-transform-nam | --program-transform-na \
1297   | --program-transform-n | --program-transform- \
1298   | --program-transform | --program-transfor \
1299   | --program-transfo | --program-transf \
1300   | --program-trans | --program-tran \
1301   | --progr-tra | --program-tr | --program-t)
1302     ac_prev=program_transform_name ;;
1303   -program-transform-name=* | --program-transform-name=* \
1304   | --program-transform-nam=* | --program-transform-na=* \
1305   | --program-transform-n=* | --program-transform-=* \
1306   | --program-transform=* | --program-transfor=* \
1307   | --program-transfo=* | --program-transf=* \
1308   | --program-trans=* | --program-tran=* \
1309   | --progr-tra=* | --program-tr=* | --program-t=*)
1310     program_transform_name=$ac_optarg ;;
1311
1312   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1313     ac_prev=pdfdir ;;
1314   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1315     pdfdir=$ac_optarg ;;
1316
1317   -psdir | --psdir | --psdi | --psd | --ps)
1318     ac_prev=psdir ;;
1319   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1320     psdir=$ac_optarg ;;
1321
1322   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323   | -silent | --silent | --silen | --sile | --sil)
1324     silent=yes ;;
1325
1326   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1327     ac_prev=sbindir ;;
1328   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1329   | --sbi=* | --sb=*)
1330     sbindir=$ac_optarg ;;
1331
1332   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1333   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1334   | --sharedst | --shareds | --shared | --share | --shar \
1335   | --sha | --sh)
1336     ac_prev=sharedstatedir ;;
1337   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1338   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1339   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1340   | --sha=* | --sh=*)
1341     sharedstatedir=$ac_optarg ;;
1342
1343   -site | --site | --sit)
1344     ac_prev=site ;;
1345   -site=* | --site=* | --sit=*)
1346     site=$ac_optarg ;;
1347
1348   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1349     ac_prev=srcdir ;;
1350   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1351     srcdir=$ac_optarg ;;
1352
1353   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1354   | --syscon | --sysco | --sysc | --sys | --sy)
1355     ac_prev=sysconfdir ;;
1356   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1357   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1358     sysconfdir=$ac_optarg ;;
1359
1360   -target | --target | --targe | --targ | --tar | --ta | --t)
1361     ac_prev=target_alias ;;
1362   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1363     target_alias=$ac_optarg ;;
1364
1365   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1366     verbose=yes ;;
1367
1368   -version | --version | --versio | --versi | --vers | -V)
1369     ac_init_version=: ;;
1370
1371   -with-* | --with-*)
1372     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1373     # Reject names that are not valid shell variable names.
1374     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1375       { echo "$as_me: error: invalid package name: $ac_package" >&2
1376    { (exit 1); exit 1; }; }
1377     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1378     eval with_$ac_package=\$ac_optarg ;;
1379
1380   -without-* | --without-*)
1381     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       { echo "$as_me: error: invalid package name: $ac_package" >&2
1385    { (exit 1); exit 1; }; }
1386     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387     eval with_$ac_package=no ;;
1388
1389   --x)
1390     # Obsolete; use --with-x.
1391     with_x=yes ;;
1392
1393   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1394   | --x-incl | --x-inc | --x-in | --x-i)
1395     ac_prev=x_includes ;;
1396   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1397   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1398     x_includes=$ac_optarg ;;
1399
1400   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1401   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1402     ac_prev=x_libraries ;;
1403   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1404   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1405     x_libraries=$ac_optarg ;;
1406
1407   -*) { echo "$as_me: error: unrecognized option: $ac_option
1408 Try \`$0 --help' for more information." >&2
1409    { (exit 1); exit 1; }; }
1410     ;;
1411
1412   *=*)
1413     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1414     # Reject names that are not valid shell variable names.
1415     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1416       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1417    { (exit 1); exit 1; }; }
1418     eval $ac_envvar=\$ac_optarg
1419     export $ac_envvar ;;
1420
1421   *)
1422     # FIXME: should be removed in autoconf 3.0.
1423     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1424     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1425       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1426     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1427     ;;
1428
1429   esac
1430 done
1431
1432 if test -n "$ac_prev"; then
1433   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1434   { echo "$as_me: error: missing argument to $ac_option" >&2
1435    { (exit 1); exit 1; }; }
1436 fi
1437
1438 # Be sure to have absolute directory names.
1439 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1440                 datadir sysconfdir sharedstatedir localstatedir includedir \
1441                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1442                 libdir localedir mandir
1443 do
1444   eval ac_val=\$$ac_var
1445   case $ac_val in
1446     [\\/$]* | ?:[\\/]* )  continue;;
1447     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1448   esac
1449   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1450    { (exit 1); exit 1; }; }
1451 done
1452
1453 # There might be people who depend on the old broken behavior: `$host'
1454 # used to hold the argument of --host etc.
1455 # FIXME: To remove some day.
1456 build=$build_alias
1457 host=$host_alias
1458 target=$target_alias
1459
1460 # FIXME: To remove some day.
1461 if test "x$host_alias" != x; then
1462   if test "x$build_alias" = x; then
1463     cross_compiling=maybe
1464     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1465     If a cross compiler is detected then cross compile mode will be used." >&2
1466   elif test "x$build_alias" != "x$host_alias"; then
1467     cross_compiling=yes
1468   fi
1469 fi
1470
1471 ac_tool_prefix=
1472 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1473
1474 test "$silent" = yes && exec 6>/dev/null
1475
1476
1477 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di=`ls -di .` &&
1479 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480   { echo "$as_me: error: Working directory cannot be determined" >&2
1481    { (exit 1); exit 1; }; }
1482 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1483   { echo "$as_me: error: pwd does not report name of working directory" >&2
1484    { (exit 1); exit 1; }; }
1485
1486
1487 # Find the source files, if location was not specified.
1488 if test -z "$srcdir"; then
1489   ac_srcdir_defaulted=yes
1490   # Try the directory containing this script, then the parent directory.
1491   ac_confdir=`$as_dirname -- "$0" ||
1492 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1493          X"$0" : 'X\(//\)[^/]' \| \
1494          X"$0" : 'X\(//\)$' \| \
1495          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1496 echo X"$0" |
1497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1498             s//\1/
1499             q
1500           }
1501           /^X\(\/\/\)[^/].*/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\/\)$/{
1506             s//\1/
1507             q
1508           }
1509           /^X\(\/\).*/{
1510             s//\1/
1511             q
1512           }
1513           s/.*/./; q'`
1514   srcdir=$ac_confdir
1515   if test ! -r "$srcdir/$ac_unique_file"; then
1516     srcdir=..
1517   fi
1518 else
1519   ac_srcdir_defaulted=no
1520 fi
1521 if test ! -r "$srcdir/$ac_unique_file"; then
1522   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1523   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1524    { (exit 1); exit 1; }; }
1525 fi
1526 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1527 ac_abs_confdir=`(
1528         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1529    { (exit 1); exit 1; }; }
1530         pwd)`
1531 # When building in place, set srcdir=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1533   srcdir=.
1534 fi
1535 # Remove unnecessary trailing slashes from srcdir.
1536 # Double slashes in file names in object file debugging info
1537 # mess up M-x gdb in Emacs.
1538 case $srcdir in
1539 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1540 esac
1541 for ac_var in $ac_precious_vars; do
1542   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543   eval ac_env_${ac_var}_value=\$${ac_var}
1544   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1546 done
1547
1548 #
1549 # Report the --help message.
1550 #
1551 if test "$ac_init_help" = "long"; then
1552   # Omit some internal or obsolete options to make the list less imposing.
1553   # This message is too long to be a string in the A/UX 3.1 sh.
1554   cat <<_ACEOF
1555 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1556
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1558
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE.  See below for descriptions of some of the useful variables.
1561
1562 Defaults for the options are specified in brackets.
1563
1564 Configuration:
1565   -h, --help              display this help and exit
1566       --help=short        display options specific to this package
1567       --help=recursive    display the short help of all the included packages
1568   -V, --version           display version information and exit
1569   -q, --quiet, --silent   do not print \`checking...' messages
1570       --cache-file=FILE   cache test results in FILE [disabled]
1571   -C, --config-cache      alias for \`--cache-file=config.cache'
1572   -n, --no-create         do not create output files
1573       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1574
1575 Installation directories:
1576   --prefix=PREFIX         install architecture-independent files in PREFIX
1577                           [$ac_default_prefix]
1578   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1579                           [PREFIX]
1580
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1585
1586 For better control, use the options below.
1587
1588 Fine tuning of the installation directories:
1589   --bindir=DIR           user executables [EPREFIX/bin]
1590   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1591   --libexecdir=DIR       program executables [EPREFIX/libexec]
1592   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1593   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1594   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1595   --libdir=DIR           object code libraries [EPREFIX/lib]
1596   --includedir=DIR       C header files [PREFIX/include]
1597   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1598   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1599   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1600   --infodir=DIR          info documentation [DATAROOTDIR/info]
1601   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1602   --mandir=DIR           man documentation [DATAROOTDIR/man]
1603   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1604   --htmldir=DIR          html documentation [DOCDIR]
1605   --dvidir=DIR           dvi documentation [DOCDIR]
1606   --pdfdir=DIR           pdf documentation [DOCDIR]
1607   --psdir=DIR            ps documentation [DOCDIR]
1608 _ACEOF
1609
1610   cat <<\_ACEOF
1611
1612 X features:
1613   --x-includes=DIR    X include files are in DIR
1614   --x-libraries=DIR   X library files are in DIR
1615
1616 System types:
1617   --build=BUILD     configure for building on BUILD [guessed]
1618   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1619   --target=TARGET   configure for building compilers for TARGET [HOST]
1620 _ACEOF
1621 fi
1622
1623 if test -n "$ac_init_help"; then
1624   case $ac_init_help in
1625      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1626    esac
1627   cat <<\_ACEOF
1628
1629 Optional Features:
1630   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1631   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1632   --enable-gui            use GUI classes
1633   --enable-monolithic     build wxWidgets as single library
1634   --enable-plugins        build parts of wxWidgets as loadable components
1635   --enable-universal      use wxWidgets GUI controls instead of native ones
1636   --enable-nanox          use NanoX
1637   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1638   --enable-gpe            use GNOME PDA Environment features if possible
1639   --enable-shared         create shared library code
1640   --enable-optimise       create optimised code
1641   --enable-debug          same as debug_flag and debug_info
1642   --enable-stl            use STL for containers
1643   --enable-extended_rtti  use extended RTTI (XTI)
1644   --enable-omf            use OMF object format
1645   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1646   --enable-debug_info     create code with debugging information
1647   --enable-debug_gdb      create code with extra GDB debugging information
1648   --enable-debug_cntxt    use wxDebugContext
1649   --enable-mem_tracing    create code with memory tracing
1650   --enable-profile        create code with profiling information
1651   --enable-no_rtti        create code without RTTI information
1652   --enable-no_exceptions  create code without C++ exceptions handling
1653   --enable-permissive     compile code disregarding strict ANSI
1654   --enable-no_deps        create code without dependency information
1655   --disable-vararg_macros don't use vararg macros, even if they are supported
1656   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
1657   --enable-compat26       enable wxWidgets 2.6 compatibility
1658   --disable-compat28      disable wxWidgets 2.8 compatibility
1659   --disable-rpath         disable use of rpath for uninstalled builds
1660   --enable-objc_uniquifying enable Objective-C class name uniquifying
1661   --enable-intl           use internationalization system
1662   --enable-config         use wxConfig (and derived) classes
1663   --enable-protocols      use wxProtocol and derived classes
1664   --enable-ftp            use wxFTP (requires wxProtocol
1665   --enable-http           use wxHTTP (requires wxProtocol
1666   --enable-fileproto      use wxFileProto class (requires wxProtocol
1667   --enable-sockets        use socket/network classes
1668   --enable-ole            use OLE classes (Win32 only)
1669   --enable-dataobj        use data object classes
1670   --enable-ipc            use interprocess communication (wxSocket etc.)
1671   --enable-apple_ieee     use the Apple IEEE codec
1672   --enable-arcstream      use wxArchive streams
1673   --enable-backtrace      use wxStackWalker class for getting backtraces
1674   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1675   --enable-cmdline        use wxCmdLineParser class
1676   --enable-datetime       use wxDateTime class
1677   --enable-debugreport    use wxDebugReport class
1678   --enable-dialupman      use dialup network classes
1679   --enable-dynlib         use wxLibrary class for DLL loading
1680   --enable-dynamicloader  use (new) wxDynamicLibrary class
1681   --enable-exceptions     build exception-safe library
1682   --enable-ffile          use wxFFile class
1683   --enable-file           use wxFile class
1684   --enable-filesystem     use virtual file systems classes
1685   --enable-fontmap        use font encodings conversion classes
1686   --enable-fs_archive     use virtual archive filesystems
1687   --enable-fs_inet        use virtual HTTP/FTP filesystems
1688   --enable-fs_zip         now replaced by fs_archive
1689   --enable-geometry       use geometry class
1690   --enable-log            use logging system
1691   --enable-longlong       use wxLongLong class
1692   --enable-mimetype       use wxMimeTypesManager
1693   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1694   --enable-utf8           use UTF-8 representation for strings (Unix only)
1695   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1696   --enable-snglinst       use wxSingleInstanceChecker class
1697   --enable-std_iostreams  use standard C++ stream classes
1698   --enable-std_string     use standard C++ string classes
1699   --enable-stdpaths       use wxStandardPaths class
1700   --enable-stopwatch      use wxStopWatch class
1701   --enable-streams        use wxStream etc classes
1702   --enable-sysoptions     use wxSystemOptions
1703   --enable-tarstream      use wxTar streams
1704   --enable-textbuf        use wxTextBuffer class
1705   --enable-textfile       use wxTextFile class
1706   --enable-timer          use wxTimer class
1707   --enable-unicode       compile without Unicode support
1708   --enable-sound          use wxSound class
1709   --enable-mediactrl      use wxMediaCtrl class
1710   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1711   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1712   --enable-zipstream      use wxZip streams
1713   --enable-url            use wxURL class
1714   --enable-variant        use wxVariant class
1715   --enable-protocol       use wxProtocol class
1716   --enable-protocol-http  HTTP support in wxProtocol
1717   --enable-protocol-ftp   FTP support in wxProtocol
1718   --enable-protocol-file  FILE support in wxProtocol
1719   --enable-threads        use threads
1720   --enable-docview        use document view architecture
1721   --enable-help           use help subsystem
1722   --enable-mshtmlhelp     use MS HTML Help (win32)
1723   --enable-html           use wxHTML sub-library
1724   --enable-htmlhelp       use wxHTML-based help
1725   --enable-xrc            use XRC resources sub-library
1726   --enable-aui            use AUI docking library
1727   --enable-stc            use wxStyledTextCtrl library
1728   --enable-constraints    use layout-constraints system
1729   --enable-printarch      use printing architecture
1730   --enable-mdi            use multiple document interface architecture
1731   --enable-mdidoc         use docview architecture with MDI
1732   --enable-loggui         use standard GUI logger
1733   --enable-logwin         use wxLogWindow
1734   --enable-logdialog      use wxLogDialog
1735   --enable-webkit         use wxWebKitCtrl (Mac)
1736   --enable-richtext       use wxRichTextCtrl
1737   --enable-graphics_ctx   use graphics context 2D drawing API
1738   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1739   --enable-clipboard      use wxClipboard class
1740   --enable-dnd            use Drag'n'Drop classes
1741   --enable-metafile       use win32 metafiles
1742   --enable-controls       use all usual controls
1743   --enable-accel          use accelerators
1744   --enable-animatectrl    use wxAnimationCtrl class
1745   --enable-button         use wxButton class
1746   --enable-bmpbutton      use wxBitmapButton class
1747   --enable-bmpcombobox    use wxBitmapComboBox class
1748   --enable-calendar       use wxCalendarCtrl class
1749   --enable-caret          use wxCaret class
1750   --enable-checkbox       use wxCheckBox class
1751   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1752   --enable-choice         use wxChoice class
1753   --enable-choicebook     use wxChoicebook class
1754   --enable-collpane       use wxCollapsiblePane class
1755   --enable-colourpicker   use wxColourPickerCtrl class
1756   --enable-combobox       use wxComboBox class
1757   --enable-comboctrl      use wxComboCtrl class
1758   --enable-datepick       use wxDatePickerCtrl class
1759   --enable-dirpicker      use wxDirPickerCtrl class
1760   --enable-display        use wxDisplay class
1761   --enable-detect_sm      use code to detect X11 session manager
1762   --enable-editablebox    use wxEditableListBox class
1763   --enable-filepicker     use wxFilePickerCtrl class
1764   --enable-fontpicker     use wxFontPickerCtrl class
1765   --enable-gauge          use wxGauge class
1766   --enable-grid           use wxGrid class
1767   --enable-dataviewctrl   use wxDataViewCtrl class
1768   --enable-hyperlink      use wxHyperlinkCtrl class
1769   --enable-imaglist       use wxImageList class
1770   --enable-listbook       use wxListbook class
1771   --enable-listbox        use wxListBox class
1772   --enable-listctrl       use wxListCtrl class
1773   --enable-notebook       use wxNotebook class
1774   --enable-odcombobox     use wxOwnerDrawnComboBox class
1775   --enable-radiobox       use wxRadioBox class
1776   --enable-radiobtn       use wxRadioButton class
1777   --enable-sash           use wxSashWindow class
1778   --enable-scrollbar      use wxScrollBar class and scrollable windows
1779   --enable-searchctrl     use wxSearchCtrl class
1780   --enable-slider         use wxSlider class
1781   --enable-spinbtn        use wxSpinButton class
1782   --enable-spinctrl       use wxSpinCtrl class
1783   --enable-splitter       use wxSplitterWindow class
1784   --enable-statbmp        use wxStaticBitmap class
1785   --enable-statbox        use wxStaticBox class
1786   --enable-statline       use wxStaticLine class
1787   --enable-stattext       use wxStaticText class
1788   --enable-statusbar      use wxStatusBar class
1789   --enable-tabdialog      use wxTabControl class
1790   --enable-textctrl       use wxTextCtrl class
1791   --enable-togglebtn      use wxToggleButton class
1792   --enable-toolbar        use wxToolBar class
1793   --enable-tbarnative     use native wxToolBar class
1794   --enable-treebook       use wxTreebook class
1795   --enable-toolbook       use wxToolbook class
1796   --enable-treectrl       use wxTreeCtrl class
1797   --enable-tipwindow      use wxTipWindow class
1798   --enable-popupwin       use wxPopUpWindow class
1799   --enable-commondlg      use all common dialogs
1800   --enable-aboutdlg       use wxAboutBox
1801   --enable-choicedlg      use wxChoiceDialog
1802   --enable-coldlg         use wxColourDialog
1803   --enable-filedlg        use wxFileDialog
1804   --enable-finddlg        use wxFindReplaceDialog
1805   --enable-fontdlg        use wxFontDialog
1806   --enable-dirdlg         use wxDirDialog
1807   --enable-msgdlg         use wxMessageDialog
1808   --enable-numberdlg      use wxNumberEntryDialog
1809   --enable-splash         use wxSplashScreen
1810   --enable-textdlg        use wxTextDialog
1811   --enable-tipdlg         use startup tips
1812   --enable-progressdlg    use wxProgressDialog
1813   --enable-wizarddlg      use wxWizard
1814   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1815   --enable-miniframe      use wxMiniFrame class
1816   --enable-tooltips       use wxToolTip class
1817   --enable-splines        use spline drawing code
1818   --enable-mousewheel     use mousewheel
1819   --enable-validators     use wxValidator and derived classes
1820   --enable-busyinfo       use wxBusyInfo
1821   --enable-joystick       use wxJoystick
1822   --enable-metafiles      use wxMetaFile (Win32 only)
1823   --enable-dragimage      use wxDragImage
1824   --enable-accessibility  enable accessibility support
1825   --enable-dccache        cache temporary wxDC objects (Win32 only)
1826   --enable-palette        use wxPalette class
1827   --enable-image          use wxImage class
1828   --enable-gif            use gif images (GIF file format)
1829   --enable-pcx            use pcx images (PCX file format)
1830   --enable-tga            use tga images (TGA file format)
1831   --enable-iff            use iff images (IFF file format)
1832   --enable-pnm            use pnm images (PNM file format)
1833   --enable-xpm            use xpm images (XPM file format)
1834   --enable-icocur         use Windows ICO and CUR formats
1835   --enable-official_build official build of wxWidgets (win32 DLL only)
1836   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1837   --disable-largefile     omit support for large files
1838   --disable-gtktest       do not try to compile and run a test GTK+ program
1839   --disable-gtktest       Do not try to compile and run a test GTK program
1840   --disable-sdltest       Do not try to compile and run a test SDL program
1841   --enable-omf            use OMF object format (OS/2)
1842   --disable-dependency-tracking
1843                           don't use dependency tracking even if the compiler
1844                           can
1845   --disable-precomp-headers
1846                           don't use precompiled headers even if compiler can
1847
1848 Optional Packages:
1849   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1850   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1851   --without-subdirs       don't generate makefiles for samples/demos/...
1852   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1853   --with-motif            use Motif/Lesstif
1854   --with-mac              use Mac OS X
1855   --with-cocoa            use Cocoa
1856   --with-wine             use Wine
1857   --with-msw              use MS-Windows
1858   --with-pm               use OS/2 Presentation Manager
1859   --with-mgl              use SciTech MGL
1860   --with-directfb         use DirectFB
1861   --with-microwin         use MicroWindows
1862   --with-x11              use X11
1863   --with-libpng           use libpng (PNG image format)
1864   --with-libjpeg          use libjpeg (JPEG file format)
1865   --with-libtiff          use libtiff (TIFF file format)
1866   --with-libxpm           use libxpm (XPM file format)
1867   --with-libmspack        use libmspack (CHM help files loading)
1868   --with-sdl              use SDL for audio on Unix
1869   --with-gnomeprint       use GNOME print for printing under GNOME
1870   --with-gnomevfs         use GNOME VFS for associating MIME types
1871   --with-hildon           use Hildon framework for Nokia 770
1872   --with-opengl           use OpenGL (or Mesa)
1873   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1874   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1875   --with-regex            enable support for wxRegEx class
1876   --with-zlib             use zlib for LZW compression
1877   --with-odbc             use the IODBC and wxODBC classes
1878   --with-expat            enable XML support using expat parser
1879   --with-flavour=NAME     specify a name to identify this build
1880   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1881   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1882   --with-x                use the X Window System
1883   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1884   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1885   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1886   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1887   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1888
1889 Some influential environment variables:
1890   CC          C compiler command
1891   CFLAGS      C compiler flags
1892   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1893               nonstandard directory <lib dir>
1894   LIBS        libraries to pass to the linker, e.g. -l<library>
1895   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1896               you have headers in a nonstandard directory <include dir>
1897   CPP         C preprocessor
1898   CXX         C++ compiler command
1899   CXXFLAGS    C++ compiler flags
1900   PKG_CONFIG  path to pkg-config utility
1901   DIRECTFB_CFLAGS
1902               C compiler flags for DIRECTFB, overriding pkg-config
1903   DIRECTFB_LIBS
1904               linker flags for DIRECTFB, overriding pkg-config
1905   XMKMF       Path to xmkmf, Makefile generator for X Window System
1906   PANGOX_CFLAGS
1907               C compiler flags for PANGOX, overriding pkg-config
1908   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1909   PANGOFT2_CFLAGS
1910               C compiler flags for PANGOFT2, overriding pkg-config
1911   PANGOFT2_LIBS
1912               linker flags for PANGOFT2, overriding pkg-config
1913   PANGOXFT_CFLAGS
1914               C compiler flags for PANGOXFT, overriding pkg-config
1915   PANGOXFT_LIBS
1916               linker flags for PANGOXFT, overriding pkg-config
1917   LIBGNOMEPRINTUI_CFLAGS
1918               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1919   LIBGNOMEPRINTUI_LIBS
1920               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1921   GNOMEVFS_CFLAGS
1922               C compiler flags for GNOMEVFS, overriding pkg-config
1923   GNOMEVFS_LIBS
1924               linker flags for GNOMEVFS, overriding pkg-config
1925   HILDON_CFLAGS
1926               C compiler flags for HILDON, overriding pkg-config
1927   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1928   CAIRO_CFLAGS
1929               C compiler flags for CAIRO, overriding pkg-config
1930   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1931   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1932   GST_LIBS    linker flags for GST, overriding pkg-config
1933
1934 Use these variables to override the choices made by `configure' or to help
1935 it to find libraries and programs with nonstandard names/locations.
1936
1937 Report bugs to <wx-dev@lists.wxwidgets.org>.
1938 _ACEOF
1939 ac_status=$?
1940 fi
1941
1942 if test "$ac_init_help" = "recursive"; then
1943   # If there are subdirs, report their specific --help.
1944   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1945     test -d "$ac_dir" || continue
1946     ac_builddir=.
1947
1948 case "$ac_dir" in
1949 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1950 *)
1951   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1952   # A ".." for each directory in $ac_dir_suffix.
1953   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1954   case $ac_top_builddir_sub in
1955   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1956   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1957   esac ;;
1958 esac
1959 ac_abs_top_builddir=$ac_pwd
1960 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1961 # for backward compatibility:
1962 ac_top_builddir=$ac_top_build_prefix
1963
1964 case $srcdir in
1965   .)  # We are building in place.
1966     ac_srcdir=.
1967     ac_top_srcdir=$ac_top_builddir_sub
1968     ac_abs_top_srcdir=$ac_pwd ;;
1969   [\\/]* | ?:[\\/]* )  # Absolute name.
1970     ac_srcdir=$srcdir$ac_dir_suffix;
1971     ac_top_srcdir=$srcdir
1972     ac_abs_top_srcdir=$srcdir ;;
1973   *) # Relative name.
1974     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1975     ac_top_srcdir=$ac_top_build_prefix$srcdir
1976     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1977 esac
1978 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1979
1980     cd "$ac_dir" || { ac_status=$?; continue; }
1981     # Check for guested configure.
1982     if test -f "$ac_srcdir/configure.gnu"; then
1983       echo &&
1984       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1985     elif test -f "$ac_srcdir/configure"; then
1986       echo &&
1987       $SHELL "$ac_srcdir/configure" --help=recursive
1988     else
1989       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1990     fi || ac_status=$?
1991     cd "$ac_pwd" || { ac_status=$?; break; }
1992   done
1993 fi
1994
1995 test -n "$ac_init_help" && exit $ac_status
1996 if $ac_init_version; then
1997   cat <<\_ACEOF
1998 wxWidgets configure 2.9.0
1999 generated by GNU Autoconf 2.61
2000
2001 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2003 This configure script is free software; the Free Software Foundation
2004 gives unlimited permission to copy, distribute and modify it.
2005 _ACEOF
2006   exit
2007 fi
2008 cat >config.log <<_ACEOF
2009 This file contains any messages produced by compilers while
2010 running configure, to aid debugging if configure makes a mistake.
2011
2012 It was created by wxWidgets $as_me 2.9.0, which was
2013 generated by GNU Autoconf 2.61.  Invocation command line was
2014
2015   $ $0 $@
2016
2017 _ACEOF
2018 exec 5>>config.log
2019 {
2020 cat <<_ASUNAME
2021 ## --------- ##
2022 ## Platform. ##
2023 ## --------- ##
2024
2025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2030
2031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2032 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2033
2034 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2035 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2037 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2038 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2039 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2040 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2041
2042 _ASUNAME
2043
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047   IFS=$as_save_IFS
2048   test -z "$as_dir" && as_dir=.
2049   echo "PATH: $as_dir"
2050 done
2051 IFS=$as_save_IFS
2052
2053 } >&5
2054
2055 cat >&5 <<_ACEOF
2056
2057
2058 ## ----------- ##
2059 ## Core tests. ##
2060 ## ----------- ##
2061
2062 _ACEOF
2063
2064
2065 # Keep a trace of the command line.
2066 # Strip out --no-create and --no-recursion so they do not pile up.
2067 # Strip out --silent because we don't want to record it for future runs.
2068 # Also quote any args containing shell meta-characters.
2069 # Make two passes to allow for proper duplicate-argument suppression.
2070 ac_configure_args=
2071 ac_configure_args0=
2072 ac_configure_args1=
2073 ac_must_keep_next=false
2074 for ac_pass in 1 2
2075 do
2076   for ac_arg
2077   do
2078     case $ac_arg in
2079     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2080     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2081     | -silent | --silent | --silen | --sile | --sil)
2082       continue ;;
2083     *\'*)
2084       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2085     esac
2086     case $ac_pass in
2087     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2088     2)
2089       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2090       if test $ac_must_keep_next = true; then
2091         ac_must_keep_next=false # Got value, back to normal.
2092       else
2093         case $ac_arg in
2094           *=* | --config-cache | -C | -disable-* | --disable-* \
2095           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2096           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2097           | -with-* | --with-* | -without-* | --without-* | --x)
2098             case "$ac_configure_args0 " in
2099               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2100             esac
2101             ;;
2102           -* ) ac_must_keep_next=true ;;
2103         esac
2104       fi
2105       ac_configure_args="$ac_configure_args '$ac_arg'"
2106       ;;
2107     esac
2108   done
2109 done
2110 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2111 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2112
2113 # When interrupted or exit'd, cleanup temporary files, and complete
2114 # config.log.  We remove comments because anyway the quotes in there
2115 # would cause problems or look ugly.
2116 # WARNING: Use '\'' to represent an apostrophe within the trap.
2117 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2118 trap 'exit_status=$?
2119   # Save into config.log some information that might help in debugging.
2120   {
2121     echo
2122
2123     cat <<\_ASBOX
2124 ## ---------------- ##
2125 ## Cache variables. ##
2126 ## ---------------- ##
2127 _ASBOX
2128     echo
2129     # The following way of writing the cache mishandles newlines in values,
2130 (
2131   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2132     eval ac_val=\$$ac_var
2133     case $ac_val in #(
2134     *${as_nl}*)
2135       case $ac_var in #(
2136       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2137 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2138       esac
2139       case $ac_var in #(
2140       _ | IFS | as_nl) ;; #(
2141       *) $as_unset $ac_var ;;
2142       esac ;;
2143     esac
2144   done
2145   (set) 2>&1 |
2146     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2147     *${as_nl}ac_space=\ *)
2148       sed -n \
2149         "s/'\''/'\''\\\\'\'''\''/g;
2150           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2151       ;; #(
2152     *)
2153       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2154       ;;
2155     esac |
2156     sort
2157 )
2158     echo
2159
2160     cat <<\_ASBOX
2161 ## ----------------- ##
2162 ## Output variables. ##
2163 ## ----------------- ##
2164 _ASBOX
2165     echo
2166     for ac_var in $ac_subst_vars
2167     do
2168       eval ac_val=\$$ac_var
2169       case $ac_val in
2170       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171       esac
2172       echo "$ac_var='\''$ac_val'\''"
2173     done | sort
2174     echo
2175
2176     if test -n "$ac_subst_files"; then
2177       cat <<\_ASBOX
2178 ## ------------------- ##
2179 ## File substitutions. ##
2180 ## ------------------- ##
2181 _ASBOX
2182       echo
2183       for ac_var in $ac_subst_files
2184       do
2185         eval ac_val=\$$ac_var
2186         case $ac_val in
2187         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188         esac
2189         echo "$ac_var='\''$ac_val'\''"
2190       done | sort
2191       echo
2192     fi
2193
2194     if test -s confdefs.h; then
2195       cat <<\_ASBOX
2196 ## ----------- ##
2197 ## confdefs.h. ##
2198 ## ----------- ##
2199 _ASBOX
2200       echo
2201       cat confdefs.h
2202       echo
2203     fi
2204     test "$ac_signal" != 0 &&
2205       echo "$as_me: caught signal $ac_signal"
2206     echo "$as_me: exit $exit_status"
2207   } >&5
2208   rm -f core *.core core.conftest.* &&
2209     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2210     exit $exit_status
2211 ' 0
2212 for ac_signal in 1 2 13 15; do
2213   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2214 done
2215 ac_signal=0
2216
2217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2218 rm -f -r conftest* confdefs.h
2219
2220 # Predefined preprocessor variables.
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_NAME "$PACKAGE_NAME"
2224 _ACEOF
2225
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229 _ACEOF
2230
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2234 _ACEOF
2235
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_STRING "$PACKAGE_STRING"
2239 _ACEOF
2240
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244 _ACEOF
2245
2246
2247 # Let the site file select an alternate cache file if it wants to.
2248 # Prefer explicitly selected file to automatically selected ones.
2249 if test -n "$CONFIG_SITE"; then
2250   set x "$CONFIG_SITE"
2251 elif test "x$prefix" != xNONE; then
2252   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2253 else
2254   set x "$ac_default_prefix/share/config.site" \
2255         "$ac_default_prefix/etc/config.site"
2256 fi
2257 shift
2258 for ac_site_file
2259 do
2260   if test -r "$ac_site_file"; then
2261     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2262 echo "$as_me: loading site script $ac_site_file" >&6;}
2263     sed 's/^/| /' "$ac_site_file" >&5
2264     . "$ac_site_file"
2265   fi
2266 done
2267
2268 if test -r "$cache_file"; then
2269   # Some versions of bash will fail to source /dev/null (special
2270   # files actually), so we avoid doing that.
2271   if test -f "$cache_file"; then
2272     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2273 echo "$as_me: loading cache $cache_file" >&6;}
2274     case $cache_file in
2275       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2276       *)                      . "./$cache_file";;
2277     esac
2278   fi
2279 else
2280   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2281 echo "$as_me: creating cache $cache_file" >&6;}
2282   >$cache_file
2283 fi
2284
2285 # Check that the precious variables saved in the cache have kept the same
2286 # value.
2287 ac_cache_corrupted=false
2288 for ac_var in $ac_precious_vars; do
2289   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2290   eval ac_new_set=\$ac_env_${ac_var}_set
2291   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2292   eval ac_new_val=\$ac_env_${ac_var}_value
2293   case $ac_old_set,$ac_new_set in
2294     set,)
2295       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2296 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2297       ac_cache_corrupted=: ;;
2298     ,set)
2299       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2300 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2301       ac_cache_corrupted=: ;;
2302     ,);;
2303     *)
2304       if test "x$ac_old_val" != "x$ac_new_val"; then
2305         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2306 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2307         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2308 echo "$as_me:   former value:  $ac_old_val" >&2;}
2309         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2310 echo "$as_me:   current value: $ac_new_val" >&2;}
2311         ac_cache_corrupted=:
2312       fi;;
2313   esac
2314   # Pass precious variables to config.status.
2315   if test "$ac_new_set" = set; then
2316     case $ac_new_val in
2317     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2318     *) ac_arg=$ac_var=$ac_new_val ;;
2319     esac
2320     case " $ac_configure_args " in
2321       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2322       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2323     esac
2324   fi
2325 done
2326 if $ac_cache_corrupted; then
2327   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2328 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2329   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2330 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2331    { (exit 1); exit 1; }; }
2332 fi
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358 ac_ext=c
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363
2364
2365
2366
2367
2368 ac_aux_dir=
2369 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2370   if test -f "$ac_dir/install-sh"; then
2371     ac_aux_dir=$ac_dir
2372     ac_install_sh="$ac_aux_dir/install-sh -c"
2373     break
2374   elif test -f "$ac_dir/install.sh"; then
2375     ac_aux_dir=$ac_dir
2376     ac_install_sh="$ac_aux_dir/install.sh -c"
2377     break
2378   elif test -f "$ac_dir/shtool"; then
2379     ac_aux_dir=$ac_dir
2380     ac_install_sh="$ac_aux_dir/shtool install -c"
2381     break
2382   fi
2383 done
2384 if test -z "$ac_aux_dir"; then
2385   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2386 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2387    { (exit 1); exit 1; }; }
2388 fi
2389
2390 # These three variables are undocumented and unsupported,
2391 # and are intended to be withdrawn in a future Autoconf release.
2392 # They can cause serious problems if a builder's source tree is in a directory
2393 # whose full name contains unusual characters.
2394 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2395 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2396 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2397
2398
2399 # Make sure we can run config.sub.
2400 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2401   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2402 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2403    { (exit 1); exit 1; }; }
2404
2405 { echo "$as_me:$LINENO: checking build system type" >&5
2406 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2407 if test "${ac_cv_build+set}" = set; then
2408   echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410   ac_build_alias=$build_alias
2411 test "x$ac_build_alias" = x &&
2412   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2413 test "x$ac_build_alias" = x &&
2414   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2415 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2416    { (exit 1); exit 1; }; }
2417 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2418   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2419 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2420    { (exit 1); exit 1; }; }
2421
2422 fi
2423 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2424 echo "${ECHO_T}$ac_cv_build" >&6; }
2425 case $ac_cv_build in
2426 *-*-*) ;;
2427 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2428 echo "$as_me: error: invalid value of canonical build" >&2;}
2429    { (exit 1); exit 1; }; };;
2430 esac
2431 build=$ac_cv_build
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_build
2434 shift
2435 build_cpu=$1
2436 build_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 build_os=$*
2441 IFS=$ac_save_IFS
2442 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2443
2444
2445 { echo "$as_me:$LINENO: checking host system type" >&5
2446 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2447 if test "${ac_cv_host+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   if test "x$host_alias" = x; then
2451   ac_cv_host=$ac_cv_build
2452 else
2453   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2454     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2455 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2456    { (exit 1); exit 1; }; }
2457 fi
2458
2459 fi
2460 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2461 echo "${ECHO_T}$ac_cv_host" >&6; }
2462 case $ac_cv_host in
2463 *-*-*) ;;
2464 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2465 echo "$as_me: error: invalid value of canonical host" >&2;}
2466    { (exit 1); exit 1; }; };;
2467 esac
2468 host=$ac_cv_host
2469 ac_save_IFS=$IFS; IFS='-'
2470 set x $ac_cv_host
2471 shift
2472 host_cpu=$1
2473 host_vendor=$2
2474 shift; shift
2475 # Remember, the first character of IFS is used to create $*,
2476 # except with old shells:
2477 host_os=$*
2478 IFS=$ac_save_IFS
2479 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2480
2481
2482 { echo "$as_me:$LINENO: checking target system type" >&5
2483 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2484 if test "${ac_cv_target+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test "x$target_alias" = x; then
2488   ac_cv_target=$ac_cv_host
2489 else
2490   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2491     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2492 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2493    { (exit 1); exit 1; }; }
2494 fi
2495
2496 fi
2497 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2498 echo "${ECHO_T}$ac_cv_target" >&6; }
2499 case $ac_cv_target in
2500 *-*-*) ;;
2501 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2502 echo "$as_me: error: invalid value of canonical target" >&2;}
2503    { (exit 1); exit 1; }; };;
2504 esac
2505 target=$ac_cv_target
2506 ac_save_IFS=$IFS; IFS='-'
2507 set x $ac_cv_target
2508 shift
2509 target_cpu=$1
2510 target_vendor=$2
2511 shift; shift
2512 # Remember, the first character of IFS is used to create $*,
2513 # except with old shells:
2514 target_os=$*
2515 IFS=$ac_save_IFS
2516 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2517
2518
2519 # The aliases save the names the user supplied, while $host etc.
2520 # will get canonicalized.
2521 test -n "$target_alias" &&
2522   test "$program_prefix$program_suffix$program_transform_name" = \
2523     NONENONEs,x,x, &&
2524   program_prefix=${target_alias}-
2525
2526
2527
2528 wx_major_version_number=2
2529 wx_minor_version_number=9
2530 wx_release_number=0
2531 wx_subrelease_number=0
2532
2533 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2534 WX_VERSION=$WX_RELEASE.$wx_release_number
2535 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2536
2537 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2538
2539
2540 wx_top_builddir="`pwd`"
2541
2542
2543
2544
2545 USE_UNIX=1
2546 USE_OS2=0
2547 USE_WIN32=0
2548 USE_DOS=0
2549 USE_BEOS=0
2550 USE_MAC=0
2551
2552 USE_AIX=
2553 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2554 USE_GNU=                            USE_HPUX=
2555 USE_LINUX=
2556 USE_NETBSD=
2557 USE_OPENBSD=
2558 USE_OSF=                            USE_SGI=
2559 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2560 USE_ULTRIX=
2561 USE_UNIXWARE=
2562
2563 USE_ALPHA=
2564
2565 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2566
2567 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2568
2569 DEFAULT_wxUSE_COCOA=0
2570 DEFAULT_wxUSE_GTK=0
2571 DEFAULT_wxUSE_MAC=0
2572 DEFAULT_wxUSE_MGL=0
2573 DEFAULT_wxUSE_MICROWIN=0
2574 DEFAULT_wxUSE_MOTIF=0
2575 DEFAULT_wxUSE_MSW=0
2576 DEFAULT_wxUSE_PM=0
2577 DEFAULT_wxUSE_X11=0
2578 DEFAULT_wxUSE_DFB=0
2579
2580 DEFAULT_DEFAULT_wxUSE_COCOA=0
2581 DEFAULT_DEFAULT_wxUSE_GTK=0
2582 DEFAULT_DEFAULT_wxUSE_MAC=0
2583 DEFAULT_DEFAULT_wxUSE_MGL=0
2584 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2585 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2586 DEFAULT_DEFAULT_wxUSE_MSW=0
2587 DEFAULT_DEFAULT_wxUSE_PM=0
2588 DEFAULT_DEFAULT_wxUSE_X11=0
2589 DEFAULT_DEFAULT_wxUSE_DFB=0
2590
2591 PROGRAM_EXT=
2592 SO_SUFFIX=so
2593 SAMPLES_RPATH_FLAG=
2594 SAMPLES_RPATH_POSTLINK=
2595
2596 DEFAULT_STD_FLAG=yes
2597
2598 case "${host}" in
2599   *-hp-hpux* )
2600     USE_HPUX=1
2601     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2602     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2603     SO_SUFFIX=sl
2604     cat >>confdefs.h <<\_ACEOF
2605 #define __HPUX__ 1
2606 _ACEOF
2607
2608
2609             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2610   ;;
2611   *-*-linux* )
2612     USE_LINUX=1
2613     cat >>confdefs.h <<\_ACEOF
2614 #define __LINUX__ 1
2615 _ACEOF
2616
2617     TMP=`uname -m`
2618     if test "x$TMP" = "xalpha"; then
2619       USE_ALPHA=1
2620       cat >>confdefs.h <<\_ACEOF
2621 #define __ALPHA__ 1
2622 _ACEOF
2623
2624     fi
2625     DEFAULT_DEFAULT_wxUSE_GTK=1
2626   ;;
2627   *-*-gnu* | *-*-k*bsd*-gnu )
2628     USE_GNU=1
2629     TMP=`uname -m`
2630     if test "x$TMP" = "xalpha"; then
2631       USE_ALPHA=1
2632       cat >>confdefs.h <<\_ACEOF
2633 #define __ALPHA__ 1
2634 _ACEOF
2635
2636     fi
2637     DEFAULT_DEFAULT_wxUSE_GTK=1
2638   ;;
2639   *-*-irix5* | *-*-irix6* )
2640     USE_SGI=1
2641     USE_SVR4=1
2642     cat >>confdefs.h <<\_ACEOF
2643 #define __SGI__ 1
2644 _ACEOF
2645
2646     cat >>confdefs.h <<\_ACEOF
2647 #define __SVR4__ 1
2648 _ACEOF
2649
2650     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2651   ;;
2652   *-*-solaris2* )
2653     USE_SUN=1
2654     USE_SOLARIS=1
2655     USE_SVR4=1
2656     cat >>confdefs.h <<\_ACEOF
2657 #define __SUN__ 1
2658 _ACEOF
2659
2660     cat >>confdefs.h <<\_ACEOF
2661 #define __SOLARIS__ 1
2662 _ACEOF
2663
2664     cat >>confdefs.h <<\_ACEOF
2665 #define __SVR4__ 1
2666 _ACEOF
2667
2668     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2669     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2670   ;;
2671   *-*-sunos4* )
2672     USE_SUN=1
2673     USE_SUNOS=1
2674     USE_BSD=1
2675     cat >>confdefs.h <<\_ACEOF
2676 #define __SUN__ 1
2677 _ACEOF
2678
2679     cat >>confdefs.h <<\_ACEOF
2680 #define __SUNOS__ 1
2681 _ACEOF
2682
2683     cat >>confdefs.h <<\_ACEOF
2684 #define __BSD__ 1
2685 _ACEOF
2686
2687     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2688   ;;
2689   *-*-freebsd*)
2690     USE_BSD=1
2691     USE_FREEBSD=1
2692     cat >>confdefs.h <<\_ACEOF
2693 #define __FREEBSD__ 1
2694 _ACEOF
2695
2696     cat >>confdefs.h <<\_ACEOF
2697 #define __BSD__ 1
2698 _ACEOF
2699
2700     DEFAULT_DEFAULT_wxUSE_GTK=1
2701   ;;
2702   *-*-openbsd*|*-*-mirbsd*)
2703     USE_BSD=1
2704     USE_OPENBSD=1
2705     cat >>confdefs.h <<\_ACEOF
2706 #define __OPENBSD__ 1
2707 _ACEOF
2708
2709     cat >>confdefs.h <<\_ACEOF
2710 #define __BSD__ 1
2711 _ACEOF
2712
2713     DEFAULT_DEFAULT_wxUSE_GTK=1
2714   ;;
2715   *-*-netbsd*)
2716     USE_BSD=1
2717     USE_NETBSD=1
2718     cat >>confdefs.h <<\_ACEOF
2719 #define __NETBSD__ 1
2720 _ACEOF
2721
2722     cat >>confdefs.h <<\_ACEOF
2723 #define __BSD__ 1
2724 _ACEOF
2725
2726     DEFAULT_DEFAULT_wxUSE_GTK=1
2727     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2728
2729             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2730   ;;
2731   *-*-osf* )
2732     USE_ALPHA=1
2733     USE_OSF=1
2734     cat >>confdefs.h <<\_ACEOF
2735 #define __ALPHA__ 1
2736 _ACEOF
2737
2738     cat >>confdefs.h <<\_ACEOF
2739 #define __OSF__ 1
2740 _ACEOF
2741
2742     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2743     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2744   ;;
2745   *-*-dgux5* )
2746     USE_ALPHA=1
2747     USE_SVR4=1
2748     cat >>confdefs.h <<\_ACEOF
2749 #define __ALPHA__ 1
2750 _ACEOF
2751
2752     cat >>confdefs.h <<\_ACEOF
2753 #define __SVR4__ 1
2754 _ACEOF
2755
2756     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2757   ;;
2758   *-*-sysv5* )
2759     USE_SYSV=1
2760     USE_SVR4=1
2761     cat >>confdefs.h <<\_ACEOF
2762 #define __SYSV__ 1
2763 _ACEOF
2764
2765     cat >>confdefs.h <<\_ACEOF
2766 #define __SVR4__ 1
2767 _ACEOF
2768
2769     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2770   ;;
2771   *-*-aix* )
2772     USE_AIX=1
2773     USE_SYSV=1
2774     USE_SVR4=1
2775                         SO_SUFFIX=a
2776     cat >>confdefs.h <<\_ACEOF
2777 #define __AIX__ 1
2778 _ACEOF
2779
2780     cat >>confdefs.h <<\_ACEOF
2781 #define __SYSV__ 1
2782 _ACEOF
2783
2784     cat >>confdefs.h <<\_ACEOF
2785 #define __SVR4__ 1
2786 _ACEOF
2787
2788     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2789   ;;
2790
2791   *-*-*UnixWare*)
2792     USE_SYSV=1
2793     USE_SVR4=1
2794     USE_UNIXWARE=1
2795     cat >>confdefs.h <<\_ACEOF
2796 #define __UNIXWARE__ 1
2797 _ACEOF
2798
2799   ;;
2800
2801   *-*-cygwin* | *-*-mingw32* )
2802                 SO_SUFFIX=dll
2803     PROGRAM_EXT=".exe"
2804     DEFAULT_DEFAULT_wxUSE_MSW=1
2805   ;;
2806
2807   *-pc-msdosdjgpp )
2808     USE_UNIX=0
2809     USE_DOS=1
2810     cat >>confdefs.h <<\_ACEOF
2811 #define __DOS__ 1
2812 _ACEOF
2813
2814     PROGRAM_EXT=".exe"
2815     DEFAULT_DEFAULT_wxUSE_MGL=1
2816   ;;
2817
2818   *-pc-os2_emx | *-pc-os2-emx )
2819     cat >>confdefs.h <<\_ACEOF
2820 #define __EMX__ 1
2821 _ACEOF
2822
2823     USE_OS2=1
2824     cat >>confdefs.h <<\_ACEOF
2825 #define __OS2__ 1
2826 _ACEOF
2827
2828     PROGRAM_EXT=".exe"
2829     DEFAULT_DEFAULT_wxUSE_PM=1
2830         CXX=gcc
2831     LDFLAGS="$LDFLAGS -Zcrtdll"
2832                         ac_executable_extensions=".exe"
2833     export ac_executable_extensions
2834             ac_save_IFS="$IFS"
2835     IFS='\\'
2836     ac_TEMP_PATH=
2837     for ac_dir in $PATH; do
2838       IFS=$ac_save_IFS
2839       if test -z "$ac_TEMP_PATH"; then
2840         ac_TEMP_PATH="$ac_dir"
2841       else
2842         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2843       fi
2844     done
2845     export PATH="$ac_TEMP_PATH"
2846     unset ac_TEMP_PATH
2847     DEFAULT_STD_FLAG=no
2848   ;;
2849
2850   *-*-darwin* )
2851         USE_BSD=1
2852     USE_DARWIN=1
2853     SO_SUFFIX=dylib
2854     cat >>confdefs.h <<\_ACEOF
2855 #define __BSD__ 1
2856 _ACEOF
2857
2858     cat >>confdefs.h <<\_ACEOF
2859 #define __DARWIN__ 1
2860 _ACEOF
2861
2862     cat >>confdefs.h <<\_ACEOF
2863 #define TARGET_CARBON 1
2864 _ACEOF
2865
2866     DEFAULT_DEFAULT_wxUSE_MAC=1
2867     DEFAULT_STD_FLAG=no
2868   ;;
2869   powerpc-apple-macos* )
2870         USE_UNIX=0
2871             ac_cv_c_bigendian=yes
2872     SO_SUFFIX=shlib
2873             DEFAULT_DEFAULT_wxUSE_MAC=1
2874     DEFAULT_STD_FLAG=no
2875   ;;
2876
2877   *-*-beos* )
2878         USE_BEOS=1
2879     cat >>confdefs.h <<\_ACEOF
2880 #define __BEOS__ 1
2881 _ACEOF
2882
2883   ;;
2884
2885   *)
2886     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2887 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2888     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2889 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2890
2891     DEFAULT_DEFAULT_wxUSE_X11=1
2892     DEFAULT_wxUSE_SHARED=no
2893 esac
2894
2895
2896
2897
2898           wx_arg_cache_file="configarg.cache"
2899           echo "loading argument cache $wx_arg_cache_file"
2900           rm -f ${wx_arg_cache_file}.tmp
2901           touch ${wx_arg_cache_file}.tmp
2902           touch ${wx_arg_cache_file}
2903
2904
2905 DEBUG_CONFIGURE=0
2906 if test $DEBUG_CONFIGURE = 1; then
2907   DEFAULT_wxUSE_UNIVERSAL=no
2908   DEFAULT_wxUSE_STL=no
2909   DEFAULT_wxUSE_EXTENDED_RTTI=no
2910
2911   DEFAULT_wxUSE_NANOX=no
2912
2913   DEFAULT_wxUSE_THREADS=yes
2914
2915   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2916   DEFAULT_wxUSE_OPTIMISE=no
2917   DEFAULT_wxUSE_PROFILE=no
2918   DEFAULT_wxUSE_NO_DEPS=no
2919   DEFAULT_wxUSE_VARARG_MACROS=no
2920   DEFAULT_wxUSE_NO_RTTI=no
2921   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2922   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2923   DEFAULT_wxUSE_RPATH=yes
2924   DEFAULT_wxUSE_PERMISSIVE=no
2925   DEFAULT_wxUSE_DEBUG_FLAG=yes
2926   DEFAULT_wxUSE_DEBUG_INFO=yes
2927   DEFAULT_wxUSE_DEBUG_GDB=yes
2928   DEFAULT_wxUSE_MEM_TRACING=no
2929   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2930   DEFAULT_wxUSE_DMALLOC=no
2931   DEFAULT_wxUSE_APPLE_IEEE=no
2932
2933   DEFAULT_wxUSE_EXCEPTIONS=no
2934   DEFAULT_wxUSE_LOG=yes
2935   DEFAULT_wxUSE_LOGWINDOW=no
2936   DEFAULT_wxUSE_LOGGUI=no
2937   DEFAULT_wxUSE_LOGDIALOG=no
2938
2939   DEFAULT_wxUSE_GUI=yes
2940   DEFAULT_wxUSE_CONTROLS=no
2941
2942   DEFAULT_wxUSE_REGEX=no
2943   DEFAULT_wxUSE_XML=no
2944   DEFAULT_wxUSE_EXPAT=no
2945   DEFAULT_wxUSE_ZLIB=no
2946   DEFAULT_wxUSE_LIBPNG=no
2947   DEFAULT_wxUSE_LIBJPEG=no
2948   DEFAULT_wxUSE_LIBTIFF=no
2949   DEFAULT_wxUSE_LIBXPM=no
2950   DEFAULT_wxUSE_LIBMSPACK=no
2951   DEFAULT_wxUSE_LIBSDL=no
2952   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2953   DEFAULT_wxUSE_LIBGNOMEVFS=no
2954   DEFAULT_wxUSE_LIBHILDON=no
2955   DEFAULT_wxUSE_ODBC=no
2956   DEFAULT_wxUSE_OPENGL=no
2957
2958   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2959   DEFAULT_wxUSE_STACKWALKER=no
2960   DEFAULT_wxUSE_DEBUGREPORT=no
2961   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2962   DEFAULT_wxUSE_STD_IOSTREAM=no
2963   DEFAULT_wxUSE_STD_STRING=no
2964   DEFAULT_wxUSE_CMDLINE_PARSER=no
2965   DEFAULT_wxUSE_DATETIME=no
2966   DEFAULT_wxUSE_TIMER=no
2967   DEFAULT_wxUSE_STOPWATCH=no
2968   DEFAULT_wxUSE_FILE=no
2969   DEFAULT_wxUSE_FFILE=no
2970   DEFAULT_wxUSE_STDPATHS=no
2971   DEFAULT_wxUSE_TEXTBUFFER=no
2972   DEFAULT_wxUSE_TEXTFILE=no
2973   DEFAULT_wxUSE_SOUND=no
2974   DEFAULT_wxUSE_MEDIACTRL=no
2975   DEFAULT_wxUSE_GSTREAMER8=no
2976   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2977   DEFAULT_wxUSE_INTL=no
2978   DEFAULT_wxUSE_CONFIG=no
2979   DEFAULT_wxUSE_FONTMAP=no
2980   DEFAULT_wxUSE_STREAMS=no
2981   DEFAULT_wxUSE_SOCKETS=no
2982   DEFAULT_wxUSE_OLE=no
2983   DEFAULT_wxUSE_DATAOBJ=no
2984   DEFAULT_wxUSE_DIALUP_MANAGER=no
2985   DEFAULT_wxUSE_JOYSTICK=no
2986   DEFAULT_wxUSE_DYNLIB_CLASS=no
2987   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2988   DEFAULT_wxUSE_LONGLONG=no
2989   DEFAULT_wxUSE_GEOMETRY=no
2990
2991   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2992   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2993   DEFAULT_wxUSE_POSTSCRIPT=no
2994
2995   DEFAULT_wxUSE_CLIPBOARD=no
2996   DEFAULT_wxUSE_TOOLTIPS=no
2997   DEFAULT_wxUSE_DRAG_AND_DROP=no
2998   DEFAULT_wxUSE_DRAGIMAGE=no
2999   DEFAULT_wxUSE_SPLINES=no
3000   DEFAULT_wxUSE_MOUSEWHEEL=no
3001
3002   DEFAULT_wxUSE_MDI=no
3003   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
3004   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
3005   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
3006
3007   DEFAULT_wxUSE_CONSTRAINTS=no
3008   DEFAULT_wxUSE_IPC=no
3009   DEFAULT_wxUSE_HELP=no
3010   DEFAULT_wxUSE_MS_HTML_HELP=no
3011   DEFAULT_wxUSE_WXHTML_HELP=no
3012   DEFAULT_wxUSE_TREELAYOUT=no
3013   DEFAULT_wxUSE_METAFILE=no
3014   DEFAULT_wxUSE_MIMETYPE=no
3015   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
3016   DEFAULT_wxUSE_PROTOCOL=no
3017   DEFAULT_wxUSE_PROTOCOL_HTTP=no
3018   DEFAULT_wxUSE_PROTOCOL_FTP=no
3019   DEFAULT_wxUSE_PROTOCOL_FILE=no
3020   DEFAULT_wxUSE_URL=no
3021   DEFAULT_wxUSE_VARIANT=no
3022
3023   DEFAULT_wxUSE_ABOUTDLG=no
3024   DEFAULT_wxUSE_COMMONDLGS=no
3025   DEFAULT_wxUSE_CHOICEDLG=no
3026   DEFAULT_wxUSE_COLOURDLG=no
3027   DEFAULT_wxUSE_DIRDLG=no
3028   DEFAULT_wxUSE_FILEDLG=no
3029   DEFAULT_wxUSE_FINDREPLDLG=no
3030   DEFAULT_wxUSE_FONTDLG=no
3031   DEFAULT_wxUSE_MSGDLG=no
3032   DEFAULT_wxUSE_NUMBERDLG=no
3033   DEFAULT_wxUSE_TEXTDLG=no
3034   DEFAULT_wxUSE_SPLASH=no
3035   DEFAULT_wxUSE_STARTUP_TIPS=no
3036   DEFAULT_wxUSE_PROGRESSDLG=no
3037   DEFAULT_wxUSE_WIZARDDLG=no
3038
3039   DEFAULT_wxUSE_MENUS=no
3040   DEFAULT_wxUSE_MINIFRAME=no
3041   DEFAULT_wxUSE_HTML=no
3042   DEFAULT_wxUSE_RICHTEXT=no
3043   DEFAULT_wxUSE_XRC=no
3044   DEFAULT_wxUSE_AUI=no
3045   DEFAULT_wxUSE_STC=no
3046   DEFAULT_wxUSE_WEBKIT=no
3047   DEFAULT_wxUSE_FILESYSTEM=no
3048   DEFAULT_wxUSE_FS_INET=no
3049   DEFAULT_wxUSE_FS_ZIP=no
3050   DEFAULT_wxUSE_FS_ARCHIVE=no
3051   DEFAULT_wxUSE_BUSYINFO=no
3052   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
3053   DEFAULT_wxUSE_ZIPSTREAM=no
3054   DEFAULT_wxUSE_TARSTREAM=no
3055   DEFAULT_wxUSE_VALIDATORS=no
3056
3057   DEFAULT_wxUSE_ACCEL=no
3058   DEFAULT_wxUSE_ANIMATIONCTRL=no
3059   DEFAULT_wxUSE_BUTTON=no
3060   DEFAULT_wxUSE_BMPBUTTON=no
3061   DEFAULT_wxUSE_BITMAPCOMBOBOX=no
3062   DEFAULT_wxUSE_CALCTRL=no
3063   DEFAULT_wxUSE_CARET=no
3064   DEFAULT_wxUSE_CHECKBOX=no
3065   DEFAULT_wxUSE_CHECKLST=no
3066   DEFAULT_wxUSE_CHOICE=no
3067   DEFAULT_wxUSE_CHOICEBOOK=no
3068   DEFAULT_wxUSE_COLLPANE=no
3069   DEFAULT_wxUSE_COLOURPICKERCTRL=no
3070   DEFAULT_wxUSE_COMBOBOX=no
3071   DEFAULT_wxUSE_COMBOCTRL=no
3072   DEFAULT_wxUSE_DATEPICKCTRL=no
3073   DEFAULT_wxUSE_DISPLAY=no
3074   DEFAULT_wxUSE_DETECT_SM=no
3075   DEFAULT_wxUSE_DIRPICKERCTRL=no
3076   DEFAULT_wxUSE_EDITABLELISTBOX=no
3077   DEFAULT_wxUSE_FILEPICKERCTRL=no
3078   DEFAULT_wxUSE_FONTPICKERCTRL=no
3079   DEFAULT_wxUSE_GAUGE=no
3080   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
3081   DEFAULT_wxUSE_GRID=no
3082   DEFAULT_wxUSE_HYPERLINKCTRL=no
3083   DEFAULT_wxUSE_DATAVIEWCTRL=no
3084   DEFAULT_wxUSE_IMAGLIST=no
3085   DEFAULT_wxUSE_LISTBOOK=no
3086   DEFAULT_wxUSE_LISTBOX=no
3087   DEFAULT_wxUSE_LISTCTRL=no
3088   DEFAULT_wxUSE_NOTEBOOK=no
3089   DEFAULT_wxUSE_ODCOMBOBOX=no
3090   DEFAULT_wxUSE_RADIOBOX=no
3091   DEFAULT_wxUSE_RADIOBTN=no
3092   DEFAULT_wxUSE_SASH=no
3093   DEFAULT_wxUSE_SCROLLBAR=no
3094   DEFAULT_wxUSE_SEARCHCTRL=no
3095   DEFAULT_wxUSE_SLIDER=no
3096   DEFAULT_wxUSE_SPINBTN=no
3097   DEFAULT_wxUSE_SPINCTRL=no
3098   DEFAULT_wxUSE_SPLITTER=no
3099   DEFAULT_wxUSE_STATBMP=no
3100   DEFAULT_wxUSE_STATBOX=no
3101   DEFAULT_wxUSE_STATLINE=no
3102   DEFAULT_wxUSE_STATTEXT=no
3103   DEFAULT_wxUSE_STATUSBAR=yes
3104   DEFAULT_wxUSE_TAB_DIALOG=no
3105   DEFAULT_wxUSE_TEXTCTRL=no
3106   DEFAULT_wxUSE_TOGGLEBTN=no
3107   DEFAULT_wxUSE_TOOLBAR=no
3108   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3109   DEFAULT_wxUSE_TREEBOOK=no
3110   DEFAULT_wxUSE_TOOLBOOK=no
3111   DEFAULT_wxUSE_TREECTRL=no
3112   DEFAULT_wxUSE_POPUPWIN=no
3113   DEFAULT_wxUSE_TIPWINDOW=no
3114
3115   DEFAULT_wxUSE_UNICODE=yes
3116   DEFAULT_wxUSE_UNICODE_MSLU=no
3117   DEFAULT_wxUSE_UNICODE_UTF8=auto
3118   DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
3119   DEFAULT_wxUSE_WCSRTOMBS=no
3120
3121   DEFAULT_wxUSE_PALETTE=no
3122   DEFAULT_wxUSE_IMAGE=no
3123   DEFAULT_wxUSE_GIF=no
3124   DEFAULT_wxUSE_PCX=no
3125   DEFAULT_wxUSE_TGA=no
3126   DEFAULT_wxUSE_PNM=no
3127   DEFAULT_wxUSE_IFF=no
3128   DEFAULT_wxUSE_XPM=no
3129   DEFAULT_wxUSE_ICO_CUR=no
3130   DEFAULT_wxUSE_ACCESSIBILITY=no
3131
3132   DEFAULT_wxUSE_MONOLITHIC=no
3133   DEFAULT_wxUSE_PLUGINS=no
3134   DEFAULT_wxUSE_OFFICIAL_BUILD=no
3135 else
3136   DEFAULT_wxUSE_UNIVERSAL=no
3137   DEFAULT_wxUSE_STL=no
3138   DEFAULT_wxUSE_EXTENDED_RTTI=no
3139
3140   DEFAULT_wxUSE_NANOX=no
3141
3142   DEFAULT_wxUSE_THREADS=yes
3143
3144   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
3145   DEFAULT_wxUSE_OPTIMISE=yes
3146   DEFAULT_wxUSE_PROFILE=no
3147   DEFAULT_wxUSE_NO_DEPS=no
3148   DEFAULT_wxUSE_VARARG_MACROS=yes
3149   DEFAULT_wxUSE_NO_RTTI=no
3150   DEFAULT_wxUSE_NO_EXCEPTIONS=no
3151   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3152   DEFAULT_wxUSE_RPATH=yes
3153   DEFAULT_wxUSE_PERMISSIVE=no
3154   DEFAULT_wxUSE_DEBUG_FLAG=no
3155   DEFAULT_wxUSE_DEBUG_INFO=no
3156   DEFAULT_wxUSE_DEBUG_GDB=no
3157   DEFAULT_wxUSE_MEM_TRACING=no
3158   DEFAULT_wxUSE_DEBUG_CONTEXT=no
3159   DEFAULT_wxUSE_DMALLOC=no
3160   DEFAULT_wxUSE_APPLE_IEEE=yes
3161
3162   DEFAULT_wxUSE_EXCEPTIONS=yes
3163   DEFAULT_wxUSE_LOG=yes
3164   DEFAULT_wxUSE_LOGWINDOW=yes
3165   DEFAULT_wxUSE_LOGGUI=yes
3166   DEFAULT_wxUSE_LOGDIALOG=yes
3167
3168   DEFAULT_wxUSE_GUI=yes
3169
3170   DEFAULT_wxUSE_REGEX=yes
3171   DEFAULT_wxUSE_XML=yes
3172   DEFAULT_wxUSE_EXPAT=yes
3173   DEFAULT_wxUSE_ZLIB=yes
3174   DEFAULT_wxUSE_LIBPNG=yes
3175   DEFAULT_wxUSE_LIBJPEG=yes
3176   DEFAULT_wxUSE_LIBTIFF=yes
3177   DEFAULT_wxUSE_LIBXPM=yes
3178   DEFAULT_wxUSE_LIBMSPACK=yes
3179   DEFAULT_wxUSE_LIBSDL=no
3180   DEFAULT_wxUSE_LIBGNOMEPRINT=yes
3181   DEFAULT_wxUSE_LIBGNOMEVFS=no
3182   DEFAULT_wxUSE_LIBHILDON=no
3183   DEFAULT_wxUSE_ODBC=no
3184   DEFAULT_wxUSE_OPENGL=no
3185
3186   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
3187   DEFAULT_wxUSE_STACKWALKER=yes
3188   DEFAULT_wxUSE_DEBUGREPORT=yes
3189   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
3190   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
3191   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
3192   DEFAULT_wxUSE_CMDLINE_PARSER=yes
3193   DEFAULT_wxUSE_DATETIME=yes
3194   DEFAULT_wxUSE_TIMER=yes
3195   DEFAULT_wxUSE_STOPWATCH=yes
3196   DEFAULT_wxUSE_FILE=yes
3197   DEFAULT_wxUSE_FFILE=yes
3198   DEFAULT_wxUSE_STDPATHS=yes
3199   DEFAULT_wxUSE_TEXTBUFFER=yes
3200   DEFAULT_wxUSE_TEXTFILE=yes
3201   DEFAULT_wxUSE_SOUND=yes
3202   DEFAULT_wxUSE_MEDIACTRL=no
3203   DEFAULT_wxUSE_GSTREAMER8=no
3204   DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
3205   DEFAULT_wxUSE_INTL=yes
3206   DEFAULT_wxUSE_CONFIG=yes
3207   DEFAULT_wxUSE_FONTMAP=yes
3208   DEFAULT_wxUSE_STREAMS=yes
3209   DEFAULT_wxUSE_SOCKETS=yes
3210   DEFAULT_wxUSE_OLE=yes
3211   DEFAULT_wxUSE_DATAOBJ=yes
3212   DEFAULT_wxUSE_DIALUP_MANAGER=yes
3213   DEFAULT_wxUSE_JOYSTICK=yes
3214   DEFAULT_wxUSE_DYNLIB_CLASS=yes
3215   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
3216   DEFAULT_wxUSE_LONGLONG=yes
3217   DEFAULT_wxUSE_GEOMETRY=yes
3218
3219   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
3220   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
3221   DEFAULT_wxUSE_POSTSCRIPT=yes
3222
3223   DEFAULT_wxUSE_CLIPBOARD=yes
3224   DEFAULT_wxUSE_TOOLTIPS=yes
3225   DEFAULT_wxUSE_DRAG_AND_DROP=yes
3226   DEFAULT_wxUSE_DRAGIMAGE=yes
3227   DEFAULT_wxUSE_SPLINES=yes
3228   DEFAULT_wxUSE_MOUSEWHEEL=yes
3229
3230   DEFAULT_wxUSE_MDI=yes
3231   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
3232   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
3233   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
3234
3235   DEFAULT_wxUSE_CONSTRAINTS=yes
3236   DEFAULT_wxUSE_IPC=yes
3237   DEFAULT_wxUSE_HELP=yes
3238   DEFAULT_wxUSE_MS_HTML_HELP=yes
3239   DEFAULT_wxUSE_WXHTML_HELP=yes
3240   DEFAULT_wxUSE_TREELAYOUT=yes
3241   DEFAULT_wxUSE_METAFILE=yes
3242   DEFAULT_wxUSE_MIMETYPE=yes
3243   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
3244   DEFAULT_wxUSE_PROTOCOL=yes
3245   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
3246   DEFAULT_wxUSE_PROTOCOL_FTP=yes
3247   DEFAULT_wxUSE_PROTOCOL_FILE=yes
3248   DEFAULT_wxUSE_URL=yes
3249   DEFAULT_wxUSE_VARIANT=yes
3250
3251   DEFAULT_wxUSE_ABOUTDLG=yes
3252   DEFAULT_wxUSE_COMMONDLGS=yes
3253   DEFAULT_wxUSE_CHOICEDLG=yes
3254   DEFAULT_wxUSE_COLOURDLG=yes
3255   DEFAULT_wxUSE_DIRDLG=yes
3256   DEFAULT_wxUSE_FILEDLG=yes
3257   DEFAULT_wxUSE_FINDREPLDLG=yes
3258   DEFAULT_wxUSE_FONTDLG=yes
3259   DEFAULT_wxUSE_MSGDLG=yes
3260   DEFAULT_wxUSE_NUMBERDLG=yes
3261   DEFAULT_wxUSE_TEXTDLG=yes
3262   DEFAULT_wxUSE_SPLASH=yes
3263   DEFAULT_wxUSE_STARTUP_TIPS=yes
3264   DEFAULT_wxUSE_PROGRESSDLG=yes
3265   DEFAULT_wxUSE_WIZARDDLG=yes
3266
3267   DEFAULT_wxUSE_MENUS=yes
3268   DEFAULT_wxUSE_MINIFRAME=yes
3269   DEFAULT_wxUSE_HTML=yes
3270   DEFAULT_wxUSE_RICHTEXT=yes
3271   DEFAULT_wxUSE_XRC=yes
3272   DEFAULT_wxUSE_AUI=yes
3273   DEFAULT_wxUSE_STC=yes
3274   DEFAULT_wxUSE_WEBKIT=yes
3275   DEFAULT_wxUSE_FILESYSTEM=yes
3276   DEFAULT_wxUSE_FS_INET=yes
3277   DEFAULT_wxUSE_FS_ZIP=yes
3278   DEFAULT_wxUSE_FS_ARCHIVE=yes
3279   DEFAULT_wxUSE_BUSYINFO=yes
3280   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
3281   DEFAULT_wxUSE_ZIPSTREAM=yes
3282   DEFAULT_wxUSE_TARSTREAM=yes
3283   DEFAULT_wxUSE_VALIDATORS=yes
3284
3285   DEFAULT_wxUSE_ACCEL=yes
3286   DEFAULT_wxUSE_ANIMATIONCTRL=yes
3287   DEFAULT_wxUSE_BUTTON=yes
3288   DEFAULT_wxUSE_BMPBUTTON=yes
3289   DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
3290   DEFAULT_wxUSE_CALCTRL=yes
3291   DEFAULT_wxUSE_CARET=yes
3292   DEFAULT_wxUSE_CHECKBOX=yes
3293   DEFAULT_wxUSE_CHECKLST=yes
3294   DEFAULT_wxUSE_CHOICE=yes
3295   DEFAULT_wxUSE_CHOICEBOOK=yes
3296   DEFAULT_wxUSE_COLLPANE=yes
3297   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
3298   DEFAULT_wxUSE_COMBOBOX=yes
3299   DEFAULT_wxUSE_COMBOCTRL=yes
3300   DEFAULT_wxUSE_DATEPICKCTRL=yes
3301   DEFAULT_wxUSE_DISPLAY=yes
3302   DEFAULT_wxUSE_DETECT_SM=yes
3303   DEFAULT_wxUSE_DIRPICKERCTRL=yes
3304   DEFAULT_wxUSE_EDITABLELISTBOX=yes
3305   DEFAULT_wxUSE_FILEPICKERCTRL=yes
3306   DEFAULT_wxUSE_FONTPICKERCTRL=yes
3307   DEFAULT_wxUSE_GAUGE=yes
3308   DEFAULT_wxUSE_GRID=yes
3309   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
3310   DEFAULT_wxUSE_HYPERLINKCTRL=yes
3311   DEFAULT_wxUSE_DATAVIEWCTRL=no
3312   DEFAULT_wxUSE_IMAGLIST=yes
3313   DEFAULT_wxUSE_LISTBOOK=yes
3314   DEFAULT_wxUSE_LISTBOX=yes
3315   DEFAULT_wxUSE_LISTCTRL=yes
3316   DEFAULT_wxUSE_NOTEBOOK=yes
3317   DEFAULT_wxUSE_ODCOMBOBOX=yes
3318   DEFAULT_wxUSE_RADIOBOX=yes
3319   DEFAULT_wxUSE_RADIOBTN=yes
3320   DEFAULT_wxUSE_SASH=yes
3321   DEFAULT_wxUSE_SCROLLBAR=yes
3322   DEFAULT_wxUSE_SEARCHCTRL=yes
3323   DEFAULT_wxUSE_SLIDER=yes
3324   DEFAULT_wxUSE_SPINBTN=yes
3325   DEFAULT_wxUSE_SPINCTRL=yes
3326   DEFAULT_wxUSE_SPLITTER=yes
3327   DEFAULT_wxUSE_STATBMP=yes
3328   DEFAULT_wxUSE_STATBOX=yes
3329   DEFAULT_wxUSE_STATLINE=yes
3330   DEFAULT_wxUSE_STATTEXT=yes
3331   DEFAULT_wxUSE_STATUSBAR=yes
3332   DEFAULT_wxUSE_TAB_DIALOG=no
3333   DEFAULT_wxUSE_TEXTCTRL=yes
3334   DEFAULT_wxUSE_TOGGLEBTN=yes
3335   DEFAULT_wxUSE_TOOLBAR=yes
3336   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3337   DEFAULT_wxUSE_TREEBOOK=yes
3338   DEFAULT_wxUSE_TOOLBOOK=yes
3339   DEFAULT_wxUSE_TREECTRL=yes
3340   DEFAULT_wxUSE_POPUPWIN=yes
3341   DEFAULT_wxUSE_TIPWINDOW=yes
3342
3343   DEFAULT_wxUSE_UNICODE=yes
3344   DEFAULT_wxUSE_UNICODE_MSLU=yes
3345   DEFAULT_wxUSE_UNICODE_UTF8=auto
3346   DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
3347   DEFAULT_wxUSE_WCSRTOMBS=no
3348
3349   DEFAULT_wxUSE_PALETTE=yes
3350   DEFAULT_wxUSE_IMAGE=yes
3351   DEFAULT_wxUSE_GIF=yes
3352   DEFAULT_wxUSE_PCX=yes
3353   DEFAULT_wxUSE_TGA=yes
3354   DEFAULT_wxUSE_IFF=no    DEFAULT_wxUSE_PNM=yes
3355   DEFAULT_wxUSE_XPM=yes
3356   DEFAULT_wxUSE_ICO_CUR=yes
3357   DEFAULT_wxUSE_ACCESSIBILITY=no
3358
3359   DEFAULT_wxUSE_MONOLITHIC=no
3360   DEFAULT_wxUSE_PLUGINS=no
3361   DEFAULT_wxUSE_OFFICIAL_BUILD=no
3362
3363     DEFAULT_wxUSE_GTK2=yes
3364 fi
3365
3366 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3367
3368
3369
3370
3371 for toolkit in `echo $ALL_TOOLKITS`; do
3372   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
3373   if test "x$LINE" != "x" ; then
3374     has_toolkit_in_cache=1
3375     eval "DEFAULT_$LINE"
3376     eval "CACHE_$toolkit=1"
3377
3378     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
3379     if test "x$LINE" != "x" ; then
3380         eval "DEFAULT_$LINE"
3381     fi
3382   fi
3383 done
3384
3385
3386
3387           enablestring=
3388           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3389 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3390           no_cache=0
3391           # Check whether --enable-gui was given.
3392 if test "${enable_gui+set}" = set; then
3393   enableval=$enable_gui;
3394                           if test "$enableval" = yes; then
3395                             ac_cv_use_gui='wxUSE_GUI=yes'
3396                           else
3397                             ac_cv_use_gui='wxUSE_GUI=no'
3398                           fi
3399
3400 else
3401
3402                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
3403                           if test "x$LINE" != x ; then
3404                             eval "DEFAULT_$LINE"
3405                           else
3406                             no_cache=1
3407                           fi
3408
3409                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
3410
3411 fi
3412
3413
3414           eval "$ac_cv_use_gui"
3415           if test "$no_cache" != 1; then
3416             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
3417           fi
3418
3419           if test "$wxUSE_GUI" = yes; then
3420             { echo "$as_me:$LINENO: result: yes" >&5
3421 echo "${ECHO_T}yes" >&6; }
3422           else
3423             { echo "$as_me:$LINENO: result: no" >&5
3424 echo "${ECHO_T}no" >&6; }
3425           fi
3426
3427
3428           enablestring=
3429           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3430 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3431           no_cache=0
3432           # Check whether --enable-monolithic was given.
3433 if test "${enable_monolithic+set}" = set; then
3434   enableval=$enable_monolithic;
3435                           if test "$enableval" = yes; then
3436                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3437                           else
3438                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3439                           fi
3440
3441 else
3442
3443                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
3444                           if test "x$LINE" != x ; then
3445                             eval "DEFAULT_$LINE"
3446                           else
3447                             no_cache=1
3448                           fi
3449
3450                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
3451
3452 fi
3453
3454
3455           eval "$ac_cv_use_monolithic"
3456           if test "$no_cache" != 1; then
3457             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
3458           fi
3459
3460           if test "$wxUSE_MONOLITHIC" = yes; then
3461             { echo "$as_me:$LINENO: result: yes" >&5
3462 echo "${ECHO_T}yes" >&6; }
3463           else
3464             { echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6; }
3466           fi
3467
3468
3469           enablestring=
3470           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3471 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3472           no_cache=0
3473           # Check whether --enable-plugins was given.
3474 if test "${enable_plugins+set}" = set; then
3475   enableval=$enable_plugins;
3476                           if test "$enableval" = yes; then
3477                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
3478                           else
3479                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
3480                           fi
3481
3482 else
3483
3484                           LINE=`grep "^wxUSE_PLUGINS=" ${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_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
3492
3493 fi
3494
3495
3496           eval "$ac_cv_use_plugins"
3497           if test "$no_cache" != 1; then
3498             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
3499           fi
3500
3501           if test "$wxUSE_PLUGINS" = 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           withstring=without
3511           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3512 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3513           no_cache=0
3514
3515 # Check whether --with-subdirs was given.
3516 if test "${with_subdirs+set}" = set; then
3517   withval=$with_subdirs;
3518                         if test "$withval" = yes; then
3519                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3520                         else
3521                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
3522                         fi
3523
3524 else
3525
3526                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
3527                         if test "x$LINE" != x ; then
3528                           eval "DEFAULT_$LINE"
3529                         else
3530                           no_cache=1
3531                         fi
3532
3533                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
3534
3535 fi
3536
3537
3538           eval "$ac_cv_use_subdirs"
3539           if test "$no_cache" != 1; then
3540             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
3541           fi
3542
3543           if test "$wxWITH_SUBDIRS" = yes; then
3544             { echo "$as_me:$LINENO: result: yes" >&5
3545 echo "${ECHO_T}yes" >&6; }
3546           else
3547             { echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6; }
3549           fi
3550
3551
3552 if test "$wxUSE_GUI" = "yes"; then
3553
3554
3555           enablestring=
3556           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3557 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3558           no_cache=0
3559           # Check whether --enable-universal was given.
3560 if test "${enable_universal+set}" = set; then
3561   enableval=$enable_universal;
3562                           if test "$enableval" = yes; then
3563                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
3564                           else
3565                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
3566                           fi
3567
3568 else
3569
3570                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
3571                           if test "x$LINE" != x ; then
3572                             eval "DEFAULT_$LINE"
3573                           else
3574                             no_cache=1
3575                           fi
3576
3577                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
3578
3579 fi
3580
3581
3582           eval "$ac_cv_use_universal"
3583           if test "$no_cache" != 1; then
3584             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
3585           fi
3586
3587           if test "$wxUSE_UNIVERSAL" = yes; then
3588             { echo "$as_me:$LINENO: result: yes" >&5
3589 echo "${ECHO_T}yes" >&6; }
3590           else
3591             { echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6; }
3593           fi
3594
3595
3596 # Check whether --with-gtk was given.
3597 if test "${with_gtk+set}" = set; then
3598   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3599 fi
3600
3601
3602 # Check whether --with-motif was given.
3603 if test "${with_motif+set}" = set; then
3604   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3605 fi
3606
3607
3608 # Check whether --with-mac was given.
3609 if test "${with_mac+set}" = set; then
3610   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3611 fi
3612
3613
3614 # Check whether --with-cocoa was given.
3615 if test "${with_cocoa+set}" = set; then
3616   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3617 fi
3618
3619
3620 # Check whether --with-wine was given.
3621 if test "${with_wine+set}" = set; then
3622   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3623 fi
3624
3625
3626 # Check whether --with-msw was given.
3627 if test "${with_msw+set}" = set; then
3628   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3629 fi
3630
3631
3632 # Check whether --with-pm was given.
3633 if test "${with_pm+set}" = set; then
3634   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3635 fi
3636
3637
3638 # Check whether --with-mgl was given.
3639 if test "${with_mgl+set}" = set; then
3640   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3641 fi
3642
3643
3644 # Check whether --with-directfb was given.
3645 if test "${with_directfb+set}" = set; then
3646   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3647 fi
3648
3649
3650 # Check whether --with-microwin was given.
3651 if test "${with_microwin+set}" = set; then
3652   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3653 fi
3654
3655
3656 # Check whether --with-x11 was given.
3657 if test "${with_x11+set}" = set; then
3658   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3659 fi
3660
3661
3662           enablestring=
3663           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3664 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3665           no_cache=0
3666           # Check whether --enable-nanox was given.
3667 if test "${enable_nanox+set}" = set; then
3668   enableval=$enable_nanox;
3669                           if test "$enableval" = yes; then
3670                             ac_cv_use_nanox='wxUSE_NANOX=yes'
3671                           else
3672                             ac_cv_use_nanox='wxUSE_NANOX=no'
3673                           fi
3674
3675 else
3676
3677                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
3678                           if test "x$LINE" != x ; then
3679                             eval "DEFAULT_$LINE"
3680                           else
3681                             no_cache=1
3682                           fi
3683
3684                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
3685
3686 fi
3687
3688
3689           eval "$ac_cv_use_nanox"
3690           if test "$no_cache" != 1; then
3691             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
3692           fi
3693
3694           if test "$wxUSE_NANOX" = yes; then
3695             { echo "$as_me:$LINENO: result: yes" >&5
3696 echo "${ECHO_T}yes" >&6; }
3697           else
3698             { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3700           fi
3701
3702
3703 # Check whether --enable-gtk2 was given.
3704 if test "${enable_gtk2+set}" = set; then
3705   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3706 fi
3707
3708
3709           enablestring=
3710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3711 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3712           no_cache=0
3713           # Check whether --enable-gpe was given.
3714 if test "${enable_gpe+set}" = set; then
3715   enableval=$enable_gpe;
3716                           if test "$enableval" = yes; then
3717                             ac_cv_use_gpe='wxUSE_GPE=yes'
3718                           else
3719                             ac_cv_use_gpe='wxUSE_GPE=no'
3720                           fi
3721
3722 else
3723
3724                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
3725                           if test "x$LINE" != x ; then
3726                             eval "DEFAULT_$LINE"
3727                           else
3728                             no_cache=1
3729                           fi
3730
3731                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
3732
3733 fi
3734
3735
3736           eval "$ac_cv_use_gpe"
3737           if test "$no_cache" != 1; then
3738             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
3739           fi
3740
3741           if test "$wxUSE_GPE" = yes; then
3742             { echo "$as_me:$LINENO: result: yes" >&5
3743 echo "${ECHO_T}yes" >&6; }
3744           else
3745             { echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6; }
3747           fi
3748
3749
3750
3751           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3752 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3753           no_cache=0
3754
3755 # Check whether --with-libpng was given.
3756 if test "${with_libpng+set}" = set; then
3757   withval=$with_libpng;
3758                         if test "$withval" = yes; then
3759                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3760                         elif test "$withval" = no; then
3761                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
3762                         elif test "$withval" = sys; then
3763                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3764                         elif test "$withval" = builtin; then
3765                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3766                         else
3767                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3768 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3769    { (exit 1); exit 1; }; }
3770                         fi
3771
3772 else
3773
3774                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
3775                         if test "x$LINE" != x ; then
3776                           eval "DEFAULT_$LINE"
3777                         else
3778                           no_cache=1
3779                         fi
3780
3781                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3782
3783 fi
3784
3785
3786           eval "$ac_cv_use_libpng"
3787           if test "$no_cache" != 1; then
3788             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3789           fi
3790
3791           if test "$wxUSE_LIBPNG" = yes; then
3792             { echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6; }
3794           elif test "$wxUSE_LIBPNG" = no; then
3795             { echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6; }
3797           elif test "$wxUSE_LIBPNG" = sys; then
3798             { echo "$as_me:$LINENO: result: system version" >&5
3799 echo "${ECHO_T}system version" >&6; }
3800           elif test "$wxUSE_LIBPNG" = builtin; then
3801             { echo "$as_me:$LINENO: result: builtin version" >&5
3802 echo "${ECHO_T}builtin version" >&6; }
3803           else
3804             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3805 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3806    { (exit 1); exit 1; }; }
3807           fi
3808
3809
3810           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3811 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3812           no_cache=0
3813
3814 # Check whether --with-libjpeg was given.
3815 if test "${with_libjpeg+set}" = set; then
3816   withval=$with_libjpeg;
3817                         if test "$withval" = yes; then
3818                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3819                         elif test "$withval" = no; then
3820                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3821                         elif test "$withval" = sys; then
3822                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3823                         elif test "$withval" = builtin; then
3824                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3825                         else
3826                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3827 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3828    { (exit 1); exit 1; }; }
3829                         fi
3830
3831 else
3832
3833                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
3834                         if test "x$LINE" != x ; then
3835                           eval "DEFAULT_$LINE"
3836                         else
3837                           no_cache=1
3838                         fi
3839
3840                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3841
3842 fi
3843
3844
3845           eval "$ac_cv_use_libjpeg"
3846           if test "$no_cache" != 1; then
3847             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3848           fi
3849
3850           if test "$wxUSE_LIBJPEG" = yes; then
3851             { echo "$as_me:$LINENO: result: yes" >&5
3852 echo "${ECHO_T}yes" >&6; }
3853           elif test "$wxUSE_LIBJPEG" = no; then
3854             { echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6; }
3856           elif test "$wxUSE_LIBJPEG" = sys; then
3857             { echo "$as_me:$LINENO: result: system version" >&5
3858 echo "${ECHO_T}system version" >&6; }
3859           elif test "$wxUSE_LIBJPEG" = builtin; then
3860             { echo "$as_me:$LINENO: result: builtin version" >&5
3861 echo "${ECHO_T}builtin version" >&6; }
3862           else
3863             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3864 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3865    { (exit 1); exit 1; }; }
3866           fi
3867
3868
3869           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3870 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3871           no_cache=0
3872
3873 # Check whether --with-libtiff was given.
3874 if test "${with_libtiff+set}" = set; then
3875   withval=$with_libtiff;
3876                         if test "$withval" = yes; then
3877                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3878                         elif test "$withval" = no; then
3879                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3880                         elif test "$withval" = sys; then
3881                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3882                         elif test "$withval" = builtin; then
3883                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3884                         else
3885                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3886 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3887    { (exit 1); exit 1; }; }
3888                         fi
3889
3890 else
3891
3892                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
3893                         if test "x$LINE" != x ; then
3894                           eval "DEFAULT_$LINE"
3895                         else
3896                           no_cache=1
3897                         fi
3898
3899                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3900
3901 fi
3902
3903
3904           eval "$ac_cv_use_libtiff"
3905           if test "$no_cache" != 1; then
3906             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3907           fi
3908
3909           if test "$wxUSE_LIBTIFF" = yes; then
3910             { echo "$as_me:$LINENO: result: yes" >&5
3911 echo "${ECHO_T}yes" >&6; }
3912           elif test "$wxUSE_LIBTIFF" = no; then
3913             { echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6; }
3915           elif test "$wxUSE_LIBTIFF" = sys; then
3916             { echo "$as_me:$LINENO: result: system version" >&5
3917 echo "${ECHO_T}system version" >&6; }
3918           elif test "$wxUSE_LIBTIFF" = builtin; then
3919             { echo "$as_me:$LINENO: result: builtin version" >&5
3920 echo "${ECHO_T}builtin version" >&6; }
3921           else
3922             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3923 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3924    { (exit 1); exit 1; }; }
3925           fi
3926
3927
3928           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3929 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3930           no_cache=0
3931
3932 # Check whether --with-libxpm was given.
3933 if test "${with_libxpm+set}" = set; then
3934   withval=$with_libxpm;
3935                         if test "$withval" = yes; then
3936                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3937                         elif test "$withval" = no; then
3938                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3939                         elif test "$withval" = sys; then
3940                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3941                         elif test "$withval" = builtin; then
3942                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3943                         else
3944                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3945 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3946    { (exit 1); exit 1; }; }
3947                         fi
3948
3949 else
3950
3951                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3952                         if test "x$LINE" != x ; then
3953                           eval "DEFAULT_$LINE"
3954                         else
3955                           no_cache=1
3956                         fi
3957
3958                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3959
3960 fi
3961
3962
3963           eval "$ac_cv_use_libxpm"
3964           if test "$no_cache" != 1; then
3965             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3966           fi
3967
3968           if test "$wxUSE_LIBXPM" = yes; then
3969             { echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6; }
3971           elif test "$wxUSE_LIBXPM" = no; then
3972             { echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6; }
3974           elif test "$wxUSE_LIBXPM" = sys; then
3975             { echo "$as_me:$LINENO: result: system version" >&5
3976 echo "${ECHO_T}system version" >&6; }
3977           elif test "$wxUSE_LIBXPM" = builtin; then
3978             { echo "$as_me:$LINENO: result: builtin version" >&5
3979 echo "${ECHO_T}builtin version" >&6; }
3980           else
3981             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3982 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3983    { (exit 1); exit 1; }; }
3984           fi
3985
3986
3987           withstring=
3988           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3989 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3990           no_cache=0
3991
3992 # Check whether --with-libmspack was given.
3993 if test "${with_libmspack+set}" = set; then
3994   withval=$with_libmspack;
3995                         if test "$withval" = yes; then
3996                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3997                         else
3998                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3999                         fi
4000
4001 else
4002
4003                         LINE=`grep "^wxUSE_LIBMSPACK=" ${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_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
4011
4012 fi
4013
4014
4015           eval "$ac_cv_use_libmspack"
4016           if test "$no_cache" != 1; then
4017             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
4018           fi
4019
4020           if test "$wxUSE_LIBMSPACK" = 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}-sdl" >&5
4031 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4032           no_cache=0
4033
4034 # Check whether --with-sdl was given.
4035 if test "${with_sdl+set}" = set; then
4036   withval=$with_sdl;
4037                         if test "$withval" = yes; then
4038                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
4039                         else
4040                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
4041                         fi
4042
4043 else
4044
4045                         LINE=`grep "^wxUSE_LIBSDL=" ${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_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
4053
4054 fi
4055
4056
4057           eval "$ac_cv_use_sdl"
4058           if test "$no_cache" != 1; then
4059             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
4060           fi
4061
4062           if test "$wxUSE_LIBSDL" = 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}-gnomeprint" >&5
4073 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
4074           no_cache=0
4075
4076 # Check whether --with-gnomeprint was given.
4077 if test "${with_gnomeprint+set}" = set; then
4078   withval=$with_gnomeprint;
4079                         if test "$withval" = yes; then
4080                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4081                         else
4082                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4083                         fi
4084
4085 else
4086
4087                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${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_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
4095
4096 fi
4097
4098
4099           eval "$ac_cv_use_gnomeprint"
4100           if test "$no_cache" != 1; then
4101             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
4102           fi
4103
4104           if test "$wxUSE_LIBGNOMEPRINT" = 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}-gnomevfs" >&5
4115 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4116           no_cache=0
4117
4118 # Check whether --with-gnomevfs was given.
4119 if test "${with_gnomevfs+set}" = set; then
4120   withval=$with_gnomevfs;
4121                         if test "$withval" = yes; then
4122                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4123                         else
4124                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4125                         fi
4126
4127 else
4128
4129                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${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_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
4137
4138 fi
4139
4140
4141           eval "$ac_cv_use_gnomevfs"
4142           if test "$no_cache" != 1; then
4143             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
4144           fi
4145
4146           if test "$wxUSE_LIBGNOMEVFS" = 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}-hildon" >&5
4157 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4158           no_cache=0
4159
4160 # Check whether --with-hildon was given.
4161 if test "${with_hildon+set}" = set; then
4162   withval=$with_hildon;
4163                         if test "$withval" = yes; then
4164                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
4165                         else
4166                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
4167                         fi
4168
4169 else
4170
4171                         LINE=`grep "^wxUSE_LIBHILDON=" ${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_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
4179
4180 fi
4181
4182
4183           eval "$ac_cv_use_hildon"
4184           if test "$no_cache" != 1; then
4185             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
4186           fi
4187
4188           if test "$wxUSE_LIBHILDON" = 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           withstring=
4198           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4199 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4200           no_cache=0
4201
4202 # Check whether --with-opengl was given.
4203 if test "${with_opengl+set}" = set; then
4204   withval=$with_opengl;
4205                         if test "$withval" = yes; then
4206                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
4207                         else
4208                           ac_cv_use_opengl='wxUSE_OPENGL=no'
4209                         fi
4210
4211 else
4212
4213                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
4214                         if test "x$LINE" != x ; then
4215                           eval "DEFAULT_$LINE"
4216                         else
4217                           no_cache=1
4218                         fi
4219
4220                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
4221
4222 fi
4223
4224
4225           eval "$ac_cv_use_opengl"
4226           if test "$no_cache" != 1; then
4227             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
4228           fi
4229
4230           if test "$wxUSE_OPENGL" = yes; then
4231             { echo "$as_me:$LINENO: result: yes" >&5
4232 echo "${ECHO_T}yes" >&6; }
4233           else
4234             { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4236           fi
4237
4238
4239 if test "$wxUSE_UNIVERSAL" = "yes"; then
4240
4241 # Check whether --with-themes was given.
4242 if test "${with_themes+set}" = set; then
4243   withval=$with_themes; wxUNIV_THEMES="$withval"
4244 fi
4245
4246 fi
4247
4248 fi
4249
4250
4251           withstring=
4252           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4253 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4254           no_cache=0
4255
4256 # Check whether --with-dmalloc was given.
4257 if test "${with_dmalloc+set}" = set; then
4258   withval=$with_dmalloc;
4259                         if test "$withval" = yes; then
4260                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4261                         else
4262                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
4263                         fi
4264
4265 else
4266
4267                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
4268                         if test "x$LINE" != x ; then
4269                           eval "DEFAULT_$LINE"
4270                         else
4271                           no_cache=1
4272                         fi
4273
4274                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
4275
4276 fi
4277
4278
4279           eval "$ac_cv_use_dmalloc"
4280           if test "$no_cache" != 1; then
4281             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
4282           fi
4283
4284           if test "$wxUSE_DMALLOC" = yes; then
4285             { echo "$as_me:$LINENO: result: yes" >&5
4286 echo "${ECHO_T}yes" >&6; }
4287           else
4288             { echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6; }
4290           fi
4291
4292
4293           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4294 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4295           no_cache=0
4296
4297 # Check whether --with-regex was given.
4298 if test "${with_regex+set}" = set; then
4299   withval=$with_regex;
4300                         if test "$withval" = yes; then
4301                           ac_cv_use_regex='wxUSE_REGEX=yes'
4302                         elif test "$withval" = no; then
4303                           ac_cv_use_regex='wxUSE_REGEX=no'
4304                         elif test "$withval" = sys; then
4305                           ac_cv_use_regex='wxUSE_REGEX=sys'
4306                         elif test "$withval" = builtin; then
4307                           ac_cv_use_regex='wxUSE_REGEX=builtin'
4308                         else
4309                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4310 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4311    { (exit 1); exit 1; }; }
4312                         fi
4313
4314 else
4315
4316                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
4317                         if test "x$LINE" != x ; then
4318                           eval "DEFAULT_$LINE"
4319                         else
4320                           no_cache=1
4321                         fi
4322
4323                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
4324
4325 fi
4326
4327
4328           eval "$ac_cv_use_regex"
4329           if test "$no_cache" != 1; then
4330             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
4331           fi
4332
4333           if test "$wxUSE_REGEX" = yes; then
4334             { echo "$as_me:$LINENO: result: yes" >&5
4335 echo "${ECHO_T}yes" >&6; }
4336           elif test "$wxUSE_REGEX" = no; then
4337             { echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6; }
4339           elif test "$wxUSE_REGEX" = sys; then
4340             { echo "$as_me:$LINENO: result: system version" >&5
4341 echo "${ECHO_T}system version" >&6; }
4342           elif test "$wxUSE_REGEX" = builtin; then
4343             { echo "$as_me:$LINENO: result: builtin version" >&5
4344 echo "${ECHO_T}builtin version" >&6; }
4345           else
4346             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4347 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4348    { (exit 1); exit 1; }; }
4349           fi
4350
4351
4352           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4353 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4354           no_cache=0
4355
4356 # Check whether --with-zlib was given.
4357 if test "${with_zlib+set}" = set; then
4358   withval=$with_zlib;
4359                         if test "$withval" = yes; then
4360                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
4361                         elif test "$withval" = no; then
4362                           ac_cv_use_zlib='wxUSE_ZLIB=no'
4363                         elif test "$withval" = sys; then
4364                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
4365                         elif test "$withval" = builtin; then
4366                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
4367                         else
4368                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4369 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4370    { (exit 1); exit 1; }; }
4371                         fi
4372
4373 else
4374
4375                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
4376                         if test "x$LINE" != x ; then
4377                           eval "DEFAULT_$LINE"
4378                         else
4379                           no_cache=1
4380                         fi
4381
4382                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
4383
4384 fi
4385
4386
4387           eval "$ac_cv_use_zlib"
4388           if test "$no_cache" != 1; then
4389             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
4390           fi
4391
4392           if test "$wxUSE_ZLIB" = yes; then
4393             { echo "$as_me:$LINENO: result: yes" >&5
4394 echo "${ECHO_T}yes" >&6; }
4395           elif test "$wxUSE_ZLIB" = no; then
4396             { echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6; }
4398           elif test "$wxUSE_ZLIB" = sys; then
4399             { echo "$as_me:$LINENO: result: system version" >&5
4400 echo "${ECHO_T}system version" >&6; }
4401           elif test "$wxUSE_ZLIB" = builtin; then
4402             { echo "$as_me:$LINENO: result: builtin version" >&5
4403 echo "${ECHO_T}builtin version" >&6; }
4404           else
4405             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4406 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4407    { (exit 1); exit 1; }; }
4408           fi
4409
4410
4411           { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4412 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
4413           no_cache=0
4414
4415 # Check whether --with-odbc was given.
4416 if test "${with_odbc+set}" = set; then
4417   withval=$with_odbc;
4418                         if test "$withval" = yes; then
4419                           ac_cv_use_odbc='wxUSE_ODBC=yes'
4420                         elif test "$withval" = no; then
4421                           ac_cv_use_odbc='wxUSE_ODBC=no'
4422                         elif test "$withval" = sys; then
4423                           ac_cv_use_odbc='wxUSE_ODBC=sys'
4424                         elif test "$withval" = builtin; then
4425                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
4426                         else
4427                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4428 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4429    { (exit 1); exit 1; }; }
4430                         fi
4431
4432 else
4433
4434                         LINE=`grep "^wxUSE_ODBC=" ${wx_arg_cache_file}`
4435                         if test "x$LINE" != x ; then
4436                           eval "DEFAULT_$LINE"
4437                         else
4438                           no_cache=1
4439                         fi
4440
4441                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
4442
4443 fi
4444
4445
4446           eval "$ac_cv_use_odbc"
4447           if test "$no_cache" != 1; then
4448             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
4449           fi
4450
4451           if test "$wxUSE_ODBC" = yes; then
4452             { echo "$as_me:$LINENO: result: yes" >&5
4453 echo "${ECHO_T}yes" >&6; }
4454           elif test "$wxUSE_ODBC" = no; then
4455             { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4457           elif test "$wxUSE_ODBC" = sys; then
4458             { echo "$as_me:$LINENO: result: system version" >&5
4459 echo "${ECHO_T}system version" >&6; }
4460           elif test "$wxUSE_ODBC" = builtin; then
4461             { echo "$as_me:$LINENO: result: builtin version" >&5
4462 echo "${ECHO_T}builtin version" >&6; }
4463           else
4464             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4465 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4466    { (exit 1); exit 1; }; }
4467           fi
4468
4469
4470           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4471 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4472           no_cache=0
4473
4474 # Check whether --with-expat was given.
4475 if test "${with_expat+set}" = set; then
4476   withval=$with_expat;
4477                         if test "$withval" = yes; then
4478                           ac_cv_use_expat='wxUSE_EXPAT=yes'
4479                         elif test "$withval" = no; then
4480                           ac_cv_use_expat='wxUSE_EXPAT=no'
4481                         elif test "$withval" = sys; then
4482                           ac_cv_use_expat='wxUSE_EXPAT=sys'
4483                         elif test "$withval" = builtin; then
4484                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
4485                         else
4486                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4487 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4488    { (exit 1); exit 1; }; }
4489                         fi
4490
4491 else
4492
4493                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
4494                         if test "x$LINE" != x ; then
4495                           eval "DEFAULT_$LINE"
4496                         else
4497                           no_cache=1
4498                         fi
4499
4500                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
4501
4502 fi
4503
4504
4505           eval "$ac_cv_use_expat"
4506           if test "$no_cache" != 1; then
4507             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
4508           fi
4509
4510           if test "$wxUSE_EXPAT" = yes; then
4511             { echo "$as_me:$LINENO: result: yes" >&5
4512 echo "${ECHO_T}yes" >&6; }
4513           elif test "$wxUSE_EXPAT" = no; then
4514             { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4516           elif test "$wxUSE_EXPAT" = sys; then
4517             { echo "$as_me:$LINENO: result: system version" >&5
4518 echo "${ECHO_T}system version" >&6; }
4519           elif test "$wxUSE_EXPAT" = builtin; then
4520             { echo "$as_me:$LINENO: result: builtin version" >&5
4521 echo "${ECHO_T}builtin version" >&6; }
4522           else
4523             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4524 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4525    { (exit 1); exit 1; }; }
4526           fi
4527
4528
4529
4530
4531           enablestring=
4532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4533 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4534           no_cache=0
4535           # Check whether --enable-shared was given.
4536 if test "${enable_shared+set}" = set; then
4537   enableval=$enable_shared;
4538                           if test "$enableval" = yes; then
4539                             ac_cv_use_shared='wxUSE_SHARED=yes'
4540                           else
4541                             ac_cv_use_shared='wxUSE_SHARED=no'
4542                           fi
4543
4544 else
4545
4546                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
4547                           if test "x$LINE" != x ; then
4548                             eval "DEFAULT_$LINE"
4549                           else
4550                             no_cache=1
4551                           fi
4552
4553                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
4554
4555 fi
4556
4557
4558           eval "$ac_cv_use_shared"
4559           if test "$no_cache" != 1; then
4560             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
4561           fi
4562
4563           if test "$wxUSE_SHARED" = yes; then
4564             { echo "$as_me:$LINENO: result: yes" >&5
4565 echo "${ECHO_T}yes" >&6; }
4566           else
4567             { echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6; }
4569           fi
4570
4571
4572           enablestring=
4573           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4574 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4575           no_cache=0
4576           # Check whether --enable-optimise was given.
4577 if test "${enable_optimise+set}" = set; then
4578   enableval=$enable_optimise;
4579                           if test "$enableval" = yes; then
4580                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
4581                           else
4582                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
4583                           fi
4584
4585 else
4586
4587                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
4588                           if test "x$LINE" != x ; then
4589                             eval "DEFAULT_$LINE"
4590                           else
4591                             no_cache=1
4592                           fi
4593
4594                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
4595
4596 fi
4597
4598
4599           eval "$ac_cv_use_optimise"
4600           if test "$no_cache" != 1; then
4601             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
4602           fi
4603
4604           if test "$wxUSE_OPTIMISE" = yes; then
4605             { echo "$as_me:$LINENO: result: yes" >&5
4606 echo "${ECHO_T}yes" >&6; }
4607           else
4608             { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4610           fi
4611
4612
4613           enablestring=
4614           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4615 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4616           no_cache=0
4617           # Check whether --enable-debug was given.
4618 if test "${enable_debug+set}" = set; then
4619   enableval=$enable_debug;
4620                           if test "$enableval" = yes; then
4621                             ac_cv_use_debug='wxUSE_DEBUG=yes'
4622                           else
4623                             ac_cv_use_debug='wxUSE_DEBUG=no'
4624                           fi
4625
4626 else
4627
4628                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
4629                           if test "x$LINE" != x ; then
4630                             eval "DEFAULT_$LINE"
4631                           else
4632                             no_cache=1
4633                           fi
4634
4635                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
4636
4637 fi
4638
4639
4640           eval "$ac_cv_use_debug"
4641           if test "$no_cache" != 1; then
4642             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
4643           fi
4644
4645           if test "$wxUSE_DEBUG" = yes; then
4646             { echo "$as_me:$LINENO: result: yes" >&5
4647 echo "${ECHO_T}yes" >&6; }
4648           else
4649             { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4651           fi
4652
4653
4654           enablestring=
4655           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4656 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4657           no_cache=0
4658           # Check whether --enable-stl was given.
4659 if test "${enable_stl+set}" = set; then
4660   enableval=$enable_stl;
4661                           if test "$enableval" = yes; then
4662                             ac_cv_use_stl='wxUSE_STL=yes'
4663                           else
4664                             ac_cv_use_stl='wxUSE_STL=no'
4665                           fi
4666
4667 else
4668
4669                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
4670                           if test "x$LINE" != x ; then
4671                             eval "DEFAULT_$LINE"
4672                           else
4673                             no_cache=1
4674                           fi
4675
4676                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
4677
4678 fi
4679
4680
4681           eval "$ac_cv_use_stl"
4682           if test "$no_cache" != 1; then
4683             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
4684           fi
4685
4686           if test "$wxUSE_STL" = yes; then
4687             { echo "$as_me:$LINENO: result: yes" >&5
4688 echo "${ECHO_T}yes" >&6; }
4689           else
4690             { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4692           fi
4693
4694
4695           enablestring=
4696           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4697 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4698           no_cache=0
4699           # Check whether --enable-extended_rtti was given.
4700 if test "${enable_extended_rtti+set}" = set; then
4701   enableval=$enable_extended_rtti;
4702                           if test "$enableval" = yes; then
4703                             ac_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4704                           else
4705                             ac_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4706                           fi
4707
4708 else
4709
4710                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
4711                           if test "x$LINE" != x ; then
4712                             eval "DEFAULT_$LINE"
4713                           else
4714                             no_cache=1
4715                           fi
4716
4717                           ac_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI='$DEFAULT_wxUSE_EXTENDED_RTTI
4718
4719 fi
4720
4721
4722           eval "$ac_cv_use_extended_rtti"
4723           if test "$no_cache" != 1; then
4724             echo $ac_cv_use_extended_rtti >> ${wx_arg_cache_file}.tmp
4725           fi
4726
4727           if test "$wxUSE_EXTENDED_RTTI" = yes; then
4728             { echo "$as_me:$LINENO: result: yes" >&5
4729 echo "${ECHO_T}yes" >&6; }
4730           else
4731             { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4733           fi
4734
4735 if test "$USE_OS2" = "1"; then
4736     DEFAULT_wxUSE_OMF=no
4737
4738           enablestring=
4739           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4740 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4741           no_cache=0
4742           # Check whether --enable-omf was given.
4743 if test "${enable_omf+set}" = set; then
4744   enableval=$enable_omf;
4745                           if test "$enableval" = yes; then
4746                             ac_cv_use_omf='wxUSE_OMF=yes'
4747                           else
4748                             ac_cv_use_omf='wxUSE_OMF=no'
4749                           fi
4750
4751 else
4752
4753                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
4754                           if test "x$LINE" != x ; then
4755                             eval "DEFAULT_$LINE"
4756                           else
4757                             no_cache=1
4758                           fi
4759
4760                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
4761
4762 fi
4763
4764
4765           eval "$ac_cv_use_omf"
4766           if test "$no_cache" != 1; then
4767             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
4768           fi
4769
4770           if test "$wxUSE_OMF" = yes; then
4771             { echo "$as_me:$LINENO: result: yes" >&5
4772 echo "${ECHO_T}yes" >&6; }
4773           else
4774             { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4776           fi
4777
4778 fi
4779
4780 if test "$wxUSE_DEBUG" = "yes"; then
4781   DEFAULT_wxUSE_DEBUG_FLAG=yes
4782   DEFAULT_wxUSE_DEBUG_INFO=yes
4783   BUILD=debug
4784 elif test "$wxUSE_DEBUG" = "no"; then
4785   DEFAULT_wxUSE_DEBUG_FLAG=no
4786   DEFAULT_wxUSE_DEBUG_INFO=no
4787   BUILD=release
4788 fi
4789
4790
4791           enablestring=
4792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4793 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4794           no_cache=0
4795           # Check whether --enable-debug_flag was given.
4796 if test "${enable_debug_flag+set}" = set; then
4797   enableval=$enable_debug_flag;
4798                           if test "$enableval" = yes; then
4799                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4800                           else
4801                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4802                           fi
4803
4804 else
4805
4806                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
4807                           if test "x$LINE" != x ; then
4808                             eval "DEFAULT_$LINE"
4809                           else
4810                             no_cache=1
4811                           fi
4812
4813                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4814
4815 fi
4816
4817
4818           eval "$ac_cv_use_debug_flag"
4819           if test "$no_cache" != 1; then
4820             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4821           fi
4822
4823           if test "$wxUSE_DEBUG_FLAG" = yes; then
4824             { echo "$as_me:$LINENO: result: yes" >&5
4825 echo "${ECHO_T}yes" >&6; }
4826           else
4827             { echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6; }
4829           fi
4830
4831
4832           enablestring=
4833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4834 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4835           no_cache=0
4836           # Check whether --enable-debug_info was given.
4837 if test "${enable_debug_info+set}" = set; then
4838   enableval=$enable_debug_info;
4839                           if test "$enableval" = yes; then
4840                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4841                           else
4842                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4843                           fi
4844
4845 else
4846
4847                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
4848                           if test "x$LINE" != x ; then
4849                             eval "DEFAULT_$LINE"
4850                           else
4851                             no_cache=1
4852                           fi
4853
4854                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4855
4856 fi
4857
4858
4859           eval "$ac_cv_use_debug_info"
4860           if test "$no_cache" != 1; then
4861             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4862           fi
4863
4864           if test "$wxUSE_DEBUG_INFO" = yes; then
4865             { echo "$as_me:$LINENO: result: yes" >&5
4866 echo "${ECHO_T}yes" >&6; }
4867           else
4868             { echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6; }
4870           fi
4871
4872
4873           enablestring=
4874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4875 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4876           no_cache=0
4877           # Check whether --enable-debug_gdb was given.
4878 if test "${enable_debug_gdb+set}" = set; then
4879   enableval=$enable_debug_gdb;
4880                           if test "$enableval" = yes; then
4881                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4882                           else
4883                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4884                           fi
4885
4886 else
4887
4888                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
4889                           if test "x$LINE" != x ; then
4890                             eval "DEFAULT_$LINE"
4891                           else
4892                             no_cache=1
4893                           fi
4894
4895                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4896
4897 fi
4898
4899
4900           eval "$ac_cv_use_debug_gdb"
4901           if test "$no_cache" != 1; then
4902             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4903           fi
4904
4905           if test "$wxUSE_DEBUG_GDB" = yes; then
4906             { echo "$as_me:$LINENO: result: yes" >&5
4907 echo "${ECHO_T}yes" >&6; }
4908           else
4909             { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4911           fi
4912
4913
4914           enablestring=
4915           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4916 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4917           no_cache=0
4918           # Check whether --enable-debug_cntxt was given.
4919 if test "${enable_debug_cntxt+set}" = set; then
4920   enableval=$enable_debug_cntxt;
4921                           if test "$enableval" = yes; then
4922                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4923                           else
4924                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4925                           fi
4926
4927 else
4928
4929                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
4930                           if test "x$LINE" != x ; then
4931                             eval "DEFAULT_$LINE"
4932                           else
4933                             no_cache=1
4934                           fi
4935
4936                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4937
4938 fi
4939
4940
4941           eval "$ac_cv_use_debug_cntxt"
4942           if test "$no_cache" != 1; then
4943             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4944           fi
4945
4946           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4947             { echo "$as_me:$LINENO: result: yes" >&5
4948 echo "${ECHO_T}yes" >&6; }
4949           else
4950             { echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6; }
4952           fi
4953
4954
4955           enablestring=
4956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4957 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4958           no_cache=0
4959           # Check whether --enable-mem_tracing was given.
4960 if test "${enable_mem_tracing+set}" = set; then
4961   enableval=$enable_mem_tracing;
4962                           if test "$enableval" = yes; then
4963                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4964                           else
4965                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4966                           fi
4967
4968 else
4969
4970                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
4971                           if test "x$LINE" != x ; then
4972                             eval "DEFAULT_$LINE"
4973                           else
4974                             no_cache=1
4975                           fi
4976
4977                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4978
4979 fi
4980
4981
4982           eval "$ac_cv_use_mem_tracing"
4983           if test "$no_cache" != 1; then
4984             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4985           fi
4986
4987           if test "$wxUSE_MEM_TRACING" = yes; then
4988             { echo "$as_me:$LINENO: result: yes" >&5
4989 echo "${ECHO_T}yes" >&6; }
4990           else
4991             { echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6; }
4993           fi
4994
4995
4996           enablestring=
4997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4998 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
4999           no_cache=0
5000           # Check whether --enable-profile was given.
5001 if test "${enable_profile+set}" = set; then
5002   enableval=$enable_profile;
5003                           if test "$enableval" = yes; then
5004                             ac_cv_use_profile='wxUSE_PROFILE=yes'
5005                           else
5006                             ac_cv_use_profile='wxUSE_PROFILE=no'
5007                           fi
5008
5009 else
5010
5011                           LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
5012                           if test "x$LINE" != x ; then
5013                             eval "DEFAULT_$LINE"
5014                           else
5015                             no_cache=1
5016                           fi
5017
5018                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
5019
5020 fi
5021
5022
5023           eval "$ac_cv_use_profile"
5024           if test "$no_cache" != 1; then
5025             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
5026           fi
5027
5028           if test "$wxUSE_PROFILE" = yes; then
5029             { echo "$as_me:$LINENO: result: yes" >&5
5030 echo "${ECHO_T}yes" >&6; }
5031           else
5032             { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5034           fi
5035
5036
5037           enablestring=
5038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5039 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5040           no_cache=0
5041           # Check whether --enable-no_rtti was given.
5042 if test "${enable_no_rtti+set}" = set; then
5043   enableval=$enable_no_rtti;
5044                           if test "$enableval" = yes; then
5045                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5046                           else
5047                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5048                           fi
5049
5050 else
5051
5052                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
5053                           if test "x$LINE" != x ; then
5054                             eval "DEFAULT_$LINE"
5055                           else
5056                             no_cache=1
5057                           fi
5058
5059                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
5060
5061 fi
5062
5063
5064           eval "$ac_cv_use_no_rtti"
5065           if test "$no_cache" != 1; then
5066             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
5067           fi
5068
5069           if test "$wxUSE_NO_RTTI" = yes; then
5070             { echo "$as_me:$LINENO: result: yes" >&5
5071 echo "${ECHO_T}yes" >&6; }
5072           else
5073             { echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6; }
5075           fi
5076
5077
5078           enablestring=
5079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5080 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5081           no_cache=0
5082           # Check whether --enable-no_exceptions was given.
5083 if test "${enable_no_exceptions+set}" = set; then
5084   enableval=$enable_no_exceptions;
5085                           if test "$enableval" = yes; then
5086                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5087                           else
5088                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5089                           fi
5090
5091 else
5092
5093                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
5094                           if test "x$LINE" != x ; then
5095                             eval "DEFAULT_$LINE"
5096                           else
5097                             no_cache=1
5098                           fi
5099
5100                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
5101
5102 fi
5103
5104
5105           eval "$ac_cv_use_no_exceptions"
5106           if test "$no_cache" != 1; then
5107             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
5108           fi
5109
5110           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
5111             { echo "$as_me:$LINENO: result: yes" >&5
5112 echo "${ECHO_T}yes" >&6; }
5113           else
5114             { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5116           fi
5117
5118
5119           enablestring=
5120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5121 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5122           no_cache=0
5123           # Check whether --enable-permissive was given.
5124 if test "${enable_permissive+set}" = set; then
5125   enableval=$enable_permissive;
5126                           if test "$enableval" = yes; then
5127                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5128                           else
5129                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
5130                           fi
5131
5132 else
5133
5134                           LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
5135                           if test "x$LINE" != x ; then
5136                             eval "DEFAULT_$LINE"
5137                           else
5138                             no_cache=1
5139                           fi
5140
5141                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
5142
5143 fi
5144
5145
5146           eval "$ac_cv_use_permissive"
5147           if test "$no_cache" != 1; then
5148             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
5149           fi
5150
5151           if test "$wxUSE_PERMISSIVE" = yes; then
5152             { echo "$as_me:$LINENO: result: yes" >&5
5153 echo "${ECHO_T}yes" >&6; }
5154           else
5155             { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5157           fi
5158
5159
5160           enablestring=
5161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5162 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5163           no_cache=0
5164           # Check whether --enable-no_deps was given.
5165 if test "${enable_no_deps+set}" = set; then
5166   enableval=$enable_no_deps;
5167                           if test "$enableval" = yes; then
5168                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5169                           else
5170                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
5171                           fi
5172
5173 else
5174
5175                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
5176                           if test "x$LINE" != x ; then
5177                             eval "DEFAULT_$LINE"
5178                           else
5179                             no_cache=1
5180                           fi
5181
5182                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
5183
5184 fi
5185
5186
5187           eval "$ac_cv_use_no_deps"
5188           if test "$no_cache" != 1; then
5189             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
5190           fi
5191
5192           if test "$wxUSE_NO_DEPS" = yes; then
5193             { echo "$as_me:$LINENO: result: yes" >&5
5194 echo "${ECHO_T}yes" >&6; }
5195           else
5196             { echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6; }
5198           fi
5199
5200
5201           enablestring=
5202           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5203 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5204           no_cache=0
5205           # Check whether --enable-vararg_macros was given.
5206 if test "${enable_vararg_macros+set}" = set; then
5207   enableval=$enable_vararg_macros;
5208                           if test "$enableval" = yes; then
5209                             ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5210                           else
5211                             ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5212                           fi
5213
5214 else
5215
5216                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
5217                           if test "x$LINE" != x ; then
5218                             eval "DEFAULT_$LINE"
5219                           else
5220                             no_cache=1
5221                           fi
5222
5223                           ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS='$DEFAULT_wxUSE_VARARG_MACROS
5224
5225 fi
5226
5227
5228           eval "$ac_cv_use_vararg_macros"
5229           if test "$no_cache" != 1; then
5230             echo $ac_cv_use_vararg_macros >> ${wx_arg_cache_file}.tmp
5231           fi
5232
5233           if test "$wxUSE_VARARG_MACROS" = yes; then
5234             { echo "$as_me:$LINENO: result: yes" >&5
5235 echo "${ECHO_T}yes" >&6; }
5236           else
5237             { echo "$as_me:$LINENO: result: no" >&5
5238 echo "${ECHO_T}no" >&6; }
5239           fi
5240
5241
5242           enablestring=
5243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5244 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5245           no_cache=0
5246           # Check whether --enable-universal_binary was given.
5247 if test "${enable_universal_binary+set}" = set; then
5248   enableval=$enable_universal_binary;
5249                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5250
5251 else
5252
5253                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
5254                           if test "x$LINE" != x ; then
5255                             eval "DEFAULT_$LINE"
5256                           else
5257                             no_cache=1
5258                           fi
5259
5260                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5261
5262 fi
5263
5264
5265           eval "$wx_cv_use_universal_binary"
5266           if test "$no_cache" != 1; then
5267             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
5268           fi
5269
5270           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5271 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5272
5273
5274
5275           enablestring=enable
5276           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5277 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5278           no_cache=0
5279           # Check whether --enable-compat26 was given.
5280 if test "${enable_compat26+set}" = set; then
5281   enableval=$enable_compat26;
5282                           if test "$enableval" = yes; then
5283                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5284                           else
5285                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5286                           fi
5287
5288 else
5289
5290                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${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_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
5298
5299 fi
5300
5301
5302           eval "$ac_cv_use_compat26"
5303           if test "$no_cache" != 1; then
5304             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
5305           fi
5306
5307           if test "$WXWIN_COMPATIBILITY_2_6" = 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           enablestring=disable
5317           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5318 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5319           no_cache=0
5320           # Check whether --enable-compat28 was given.
5321 if test "${enable_compat28+set}" = set; then
5322   enableval=$enable_compat28;
5323                           if test "$enableval" = yes; then
5324                             ac_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5325                           else
5326                             ac_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5327                           fi
5328
5329 else
5330
5331                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
5332                           if test "x$LINE" != x ; then
5333                             eval "DEFAULT_$LINE"
5334                           else
5335                             no_cache=1
5336                           fi
5337
5338                           ac_cv_use_compat28='WXWIN_COMPATIBILITY_2_8='$DEFAULT_WXWIN_COMPATIBILITY_2_8
5339
5340 fi
5341
5342
5343           eval "$ac_cv_use_compat28"
5344           if test "$no_cache" != 1; then
5345             echo $ac_cv_use_compat28 >> ${wx_arg_cache_file}.tmp
5346           fi
5347
5348           if test "$WXWIN_COMPATIBILITY_2_8" = yes; then
5349             { echo "$as_me:$LINENO: result: yes" >&5
5350 echo "${ECHO_T}yes" >&6; }
5351           else
5352             { echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6; }
5354           fi
5355
5356
5357
5358           enablestring=
5359           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5360 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5361           no_cache=0
5362           # Check whether --enable-rpath was given.
5363 if test "${enable_rpath+set}" = set; then
5364   enableval=$enable_rpath;
5365                           if test "$enableval" = yes; then
5366                             ac_cv_use_rpath='wxUSE_RPATH=yes'
5367                           else
5368                             ac_cv_use_rpath='wxUSE_RPATH=no'
5369                           fi
5370
5371 else
5372
5373                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
5374                           if test "x$LINE" != x ; then
5375                             eval "DEFAULT_$LINE"
5376                           else
5377                             no_cache=1
5378                           fi
5379
5380                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
5381
5382 fi
5383
5384
5385           eval "$ac_cv_use_rpath"
5386           if test "$no_cache" != 1; then
5387             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
5388           fi
5389
5390           if test "$wxUSE_RPATH" = yes; then
5391             { echo "$as_me:$LINENO: result: yes" >&5
5392 echo "${ECHO_T}yes" >&6; }
5393           else
5394             { echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6; }
5396           fi
5397
5398
5399
5400           enablestring=
5401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5402 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5403           no_cache=0
5404           # Check whether --enable-objc_uniquifying was given.
5405 if test "${enable_objc_uniquifying+set}" = set; then
5406   enableval=$enable_objc_uniquifying;
5407                           if test "$enableval" = yes; then
5408                             ac_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5409                           else
5410                             ac_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5411                           fi
5412
5413 else
5414
5415                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
5416                           if test "x$LINE" != x ; then
5417                             eval "DEFAULT_$LINE"
5418                           else
5419                             no_cache=1
5420                           fi
5421
5422                           ac_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING='$DEFAULT_wxUSE_OBJC_UNIQUIFYING
5423
5424 fi
5425
5426
5427           eval "$ac_cv_use_objc_uniquifying"
5428           if test "$no_cache" != 1; then
5429             echo $ac_cv_use_objc_uniquifying >> ${wx_arg_cache_file}.tmp
5430           fi
5431
5432           if test "$wxUSE_OBJC_UNIQUIFYING" = yes; then
5433             { echo "$as_me:$LINENO: result: yes" >&5
5434 echo "${ECHO_T}yes" >&6; }
5435           else
5436             { echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6; }
5438           fi
5439
5440
5441
5442
5443           enablestring=
5444           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5445 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5446           no_cache=0
5447           # Check whether --enable-intl was given.
5448 if test "${enable_intl+set}" = set; then
5449   enableval=$enable_intl;
5450                           if test "$enableval" = yes; then
5451                             ac_cv_use_intl='wxUSE_INTL=yes'
5452                           else
5453                             ac_cv_use_intl='wxUSE_INTL=no'
5454                           fi
5455
5456 else
5457
5458                           LINE=`grep "^wxUSE_INTL=" ${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_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
5466
5467 fi
5468
5469
5470           eval "$ac_cv_use_intl"
5471           if test "$no_cache" != 1; then
5472             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
5473           fi
5474
5475           if test "$wxUSE_INTL" = 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}-config" >&5
5486 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5487           no_cache=0
5488           # Check whether --enable-config was given.
5489 if test "${enable_config+set}" = set; then
5490   enableval=$enable_config;
5491                           if test "$enableval" = yes; then
5492                             ac_cv_use_config='wxUSE_CONFIG=yes'
5493                           else
5494                             ac_cv_use_config='wxUSE_CONFIG=no'
5495                           fi
5496
5497 else
5498
5499                           LINE=`grep "^wxUSE_CONFIG=" ${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_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
5507
5508 fi
5509
5510
5511           eval "$ac_cv_use_config"
5512           if test "$no_cache" != 1; then
5513             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
5514           fi
5515
5516           if test "$wxUSE_CONFIG" = 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
5526           enablestring=
5527           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5528 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5529           no_cache=0
5530           # Check whether --enable-protocols was given.
5531 if test "${enable_protocols+set}" = set; then
5532   enableval=$enable_protocols;
5533                           if test "$enableval" = yes; then
5534                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
5535                           else
5536                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
5537                           fi
5538
5539 else
5540
5541                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
5542                           if test "x$LINE" != x ; then
5543                             eval "DEFAULT_$LINE"
5544                           else
5545                             no_cache=1
5546                           fi
5547
5548                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5549
5550 fi
5551
5552
5553           eval "$ac_cv_use_protocols"
5554           if test "$no_cache" != 1; then
5555             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
5556           fi
5557
5558           if test "$wxUSE_PROTOCOL" = yes; then
5559             { echo "$as_me:$LINENO: result: yes" >&5
5560 echo "${ECHO_T}yes" >&6; }
5561           else
5562             { echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6; }
5564           fi
5565
5566
5567           enablestring=
5568           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5569 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5570           no_cache=0
5571           # Check whether --enable-ftp was given.
5572 if test "${enable_ftp+set}" = set; then
5573   enableval=$enable_ftp;
5574                           if test "$enableval" = yes; then
5575                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5576                           else
5577                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5578                           fi
5579
5580 else
5581
5582                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
5583                           if test "x$LINE" != x ; then
5584                             eval "DEFAULT_$LINE"
5585                           else
5586                             no_cache=1
5587                           fi
5588
5589                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5590
5591 fi
5592
5593
5594           eval "$ac_cv_use_ftp"
5595           if test "$no_cache" != 1; then
5596             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
5597           fi
5598
5599           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5600             { echo "$as_me:$LINENO: result: yes" >&5
5601 echo "${ECHO_T}yes" >&6; }
5602           else
5603             { echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6; }
5605           fi
5606
5607
5608           enablestring=
5609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5610 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5611           no_cache=0
5612           # Check whether --enable-http was given.
5613 if test "${enable_http+set}" = set; then
5614   enableval=$enable_http;
5615                           if test "$enableval" = yes; then
5616                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5617                           else
5618                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5619                           fi
5620
5621 else
5622
5623                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
5624                           if test "x$LINE" != x ; then
5625                             eval "DEFAULT_$LINE"
5626                           else
5627                             no_cache=1
5628                           fi
5629
5630                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5631
5632 fi
5633
5634
5635           eval "$ac_cv_use_http"
5636           if test "$no_cache" != 1; then
5637             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
5638           fi
5639
5640           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5641             { echo "$as_me:$LINENO: result: yes" >&5
5642 echo "${ECHO_T}yes" >&6; }
5643           else
5644             { echo "$as_me:$LINENO: result: no" >&5
5645 echo "${ECHO_T}no" >&6; }
5646           fi
5647
5648
5649           enablestring=
5650           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5651 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5652           no_cache=0
5653           # Check whether --enable-fileproto was given.
5654 if test "${enable_fileproto+set}" = set; then
5655   enableval=$enable_fileproto;
5656                           if test "$enableval" = yes; then
5657                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5658                           else
5659                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5660                           fi
5661
5662 else
5663
5664                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
5665                           if test "x$LINE" != x ; then
5666                             eval "DEFAULT_$LINE"
5667                           else
5668                             no_cache=1
5669                           fi
5670
5671                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5672
5673 fi
5674
5675
5676           eval "$ac_cv_use_fileproto"
5677           if test "$no_cache" != 1; then
5678             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
5679           fi
5680
5681           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5682             { echo "$as_me:$LINENO: result: yes" >&5
5683 echo "${ECHO_T}yes" >&6; }
5684           else
5685             { echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6; }
5687           fi
5688
5689
5690           enablestring=
5691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5692 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5693           no_cache=0
5694           # Check whether --enable-sockets was given.
5695 if test "${enable_sockets+set}" = set; then
5696   enableval=$enable_sockets;
5697                           if test "$enableval" = yes; then
5698                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
5699                           else
5700                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
5701                           fi
5702
5703 else
5704
5705                           LINE=`grep "^wxUSE_SOCKETS=" ${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_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
5713
5714 fi
5715
5716
5717           eval "$ac_cv_use_sockets"
5718           if test "$no_cache" != 1; then
5719             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
5720           fi
5721
5722           if test "$wxUSE_SOCKETS" = 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           enablestring=
5732           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5733 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
5734           no_cache=0
5735           # Check whether --enable-ole was given.
5736 if test "${enable_ole+set}" = set; then
5737   enableval=$enable_ole;
5738                           if test "$enableval" = yes; then
5739                             ac_cv_use_ole='wxUSE_OLE=yes'
5740                           else
5741                             ac_cv_use_ole='wxUSE_OLE=no'
5742                           fi
5743
5744 else
5745
5746                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
5747                           if test "x$LINE" != x ; then
5748                             eval "DEFAULT_$LINE"
5749                           else
5750                             no_cache=1
5751                           fi
5752
5753                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
5754
5755 fi
5756
5757
5758           eval "$ac_cv_use_ole"
5759           if test "$no_cache" != 1; then
5760             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
5761           fi
5762
5763           if test "$wxUSE_OLE" = yes; then
5764             { echo "$as_me:$LINENO: result: yes" >&5
5765 echo "${ECHO_T}yes" >&6; }
5766           else
5767             { echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6; }
5769           fi
5770
5771
5772           enablestring=
5773           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
5774 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
5775           no_cache=0
5776           # Check whether --enable-dataobj was given.
5777 if test "${enable_dataobj+set}" = set; then
5778   enableval=$enable_dataobj;
5779                           if test "$enableval" = yes; then
5780                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
5781                           else
5782                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
5783                           fi
5784
5785 else
5786
5787                           LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
5788                           if test "x$LINE" != x ; then
5789                             eval "DEFAULT_$LINE"
5790                           else
5791                             no_cache=1
5792                           fi
5793
5794                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
5795
5796 fi
5797
5798
5799           eval "$ac_cv_use_dataobj"
5800           if test "$no_cache" != 1; then
5801             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
5802           fi
5803
5804           if test "$wxUSE_DATAOBJ" = yes; then
5805             { echo "$as_me:$LINENO: result: yes" >&5
5806 echo "${ECHO_T}yes" >&6; }
5807           else
5808             { echo "$as_me:$LINENO: result: no" >&5
5809 echo "${ECHO_T}no" >&6; }
5810           fi
5811
5812
5813
5814           enablestring=
5815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
5816 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
5817           no_cache=0
5818           # Check whether --enable-ipc was given.
5819 if test "${enable_ipc+set}" = set; then
5820   enableval=$enable_ipc;
5821                           if test "$enableval" = yes; then
5822                             ac_cv_use_ipc='wxUSE_IPC=yes'
5823                           else
5824                             ac_cv_use_ipc='wxUSE_IPC=no'
5825                           fi
5826
5827 else
5828
5829                           LINE=`grep "^wxUSE_IPC=" ${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_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5837
5838 fi
5839
5840
5841           eval "$ac_cv_use_ipc"
5842           if test "$no_cache" != 1; then
5843             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
5844           fi
5845
5846           if test "$wxUSE_IPC" = 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
5856           enablestring=
5857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
5858 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
5859           no_cache=0
5860           # Check whether --enable-apple_ieee was given.
5861 if test "${enable_apple_ieee+set}" = set; then
5862   enableval=$enable_apple_ieee;
5863                           if test "$enableval" = yes; then
5864                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5865                           else
5866                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5867                           fi
5868
5869 else
5870
5871                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
5872                           if test "x$LINE" != x ; then
5873                             eval "DEFAULT_$LINE"
5874                           else
5875                             no_cache=1
5876                           fi
5877
5878                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5879
5880 fi
5881
5882
5883           eval "$ac_cv_use_apple_ieee"
5884           if test "$no_cache" != 1; then
5885             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5886           fi
5887
5888           if test "$wxUSE_APPLE_IEEE" = yes; then
5889             { echo "$as_me:$LINENO: result: yes" >&5
5890 echo "${ECHO_T}yes" >&6; }
5891           else
5892             { echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6; }
5894           fi
5895
5896
5897           enablestring=
5898           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5899 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
5900           no_cache=0
5901           # Check whether --enable-arcstream was given.
5902 if test "${enable_arcstream+set}" = set; then
5903   enableval=$enable_arcstream;
5904                           if test "$enableval" = yes; then
5905                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
5906                           else
5907                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
5908                           fi
5909
5910 else
5911
5912                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
5913                           if test "x$LINE" != x ; then
5914                             eval "DEFAULT_$LINE"
5915                           else
5916                             no_cache=1
5917                           fi
5918
5919                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
5920
5921 fi
5922
5923
5924           eval "$ac_cv_use_arcstream"
5925           if test "$no_cache" != 1; then
5926             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5927           fi
5928
5929           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
5930             { echo "$as_me:$LINENO: result: yes" >&5
5931 echo "${ECHO_T}yes" >&6; }
5932           else
5933             { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5935           fi
5936
5937
5938           enablestring=
5939           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5940 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
5941           no_cache=0
5942           # Check whether --enable-backtrace was given.
5943 if test "${enable_backtrace+set}" = set; then
5944   enableval=$enable_backtrace;
5945                           if test "$enableval" = yes; then
5946                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5947                           else
5948                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
5949                           fi
5950
5951 else
5952
5953                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
5954                           if test "x$LINE" != x ; then
5955                             eval "DEFAULT_$LINE"
5956                           else
5957                             no_cache=1
5958                           fi
5959
5960                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
5961
5962 fi
5963
5964
5965           eval "$ac_cv_use_backtrace"
5966           if test "$no_cache" != 1; then
5967             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5968           fi
5969
5970           if test "$wxUSE_STACKWALKER" = yes; then
5971             { echo "$as_me:$LINENO: result: yes" >&5
5972 echo "${ECHO_T}yes" >&6; }
5973           else
5974             { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5976           fi
5977
5978
5979           enablestring=
5980           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5981 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
5982           no_cache=0
5983           # Check whether --enable-catch_segvs was given.
5984 if test "${enable_catch_segvs+set}" = set; then
5985   enableval=$enable_catch_segvs;
5986                           if test "$enableval" = yes; then
5987                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5988                           else
5989                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5990                           fi
5991
5992 else
5993
5994                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
5995                           if test "x$LINE" != x ; then
5996                             eval "DEFAULT_$LINE"
5997                           else
5998                             no_cache=1
5999                           fi
6000
6001                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
6002
6003 fi
6004
6005
6006           eval "$ac_cv_use_catch_segvs"
6007           if test "$no_cache" != 1; then
6008             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
6009           fi
6010
6011           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
6012             { echo "$as_me:$LINENO: result: yes" >&5
6013 echo "${ECHO_T}yes" >&6; }
6014           else
6015             { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6017           fi
6018
6019
6020           enablestring=
6021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6022 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6023           no_cache=0
6024           # Check whether --enable-cmdline was given.
6025 if test "${enable_cmdline+set}" = set; then
6026   enableval=$enable_cmdline;
6027                           if test "$enableval" = yes; then
6028                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6029                           else
6030                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6031                           fi
6032
6033 else
6034
6035                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
6036                           if test "x$LINE" != x ; then
6037                             eval "DEFAULT_$LINE"
6038                           else
6039                             no_cache=1
6040                           fi
6041
6042                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
6043
6044 fi
6045
6046
6047           eval "$ac_cv_use_cmdline"
6048           if test "$no_cache" != 1; then
6049             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
6050           fi
6051
6052           if test "$wxUSE_CMDLINE_PARSER" = yes; then
6053             { echo "$as_me:$LINENO: result: yes" >&5
6054 echo "${ECHO_T}yes" >&6; }
6055           else
6056             { echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6; }
6058           fi
6059
6060
6061           enablestring=
6062           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6063 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6064           no_cache=0
6065           # Check whether --enable-datetime was given.
6066 if test "${enable_datetime+set}" = set; then
6067   enableval=$enable_datetime;
6068                           if test "$enableval" = yes; then
6069                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
6070                           else
6071                             ac_cv_use_datetime='wxUSE_DATETIME=no'
6072                           fi
6073
6074 else
6075
6076                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
6077                           if test "x$LINE" != x ; then
6078                             eval "DEFAULT_$LINE"
6079                           else
6080                             no_cache=1
6081                           fi
6082
6083                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
6084
6085 fi
6086
6087
6088           eval "$ac_cv_use_datetime"
6089           if test "$no_cache" != 1; then
6090             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
6091           fi
6092
6093           if test "$wxUSE_DATETIME" = yes; then
6094             { echo "$as_me:$LINENO: result: yes" >&5
6095 echo "${ECHO_T}yes" >&6; }
6096           else
6097             { echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6; }
6099           fi
6100
6101
6102           enablestring=
6103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6104 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6105           no_cache=0
6106           # Check whether --enable-debugreport was given.
6107 if test "${enable_debugreport+set}" = set; then
6108   enableval=$enable_debugreport;
6109                           if test "$enableval" = yes; then
6110                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6111                           else
6112                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6113                           fi
6114
6115 else
6116
6117                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
6118                           if test "x$LINE" != x ; then
6119                             eval "DEFAULT_$LINE"
6120                           else
6121                             no_cache=1
6122                           fi
6123
6124                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
6125
6126 fi
6127
6128
6129           eval "$ac_cv_use_debugreport"
6130           if test "$no_cache" != 1; then
6131             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
6132           fi
6133
6134           if test "$wxUSE_DEBUGREPORT" = yes; then
6135             { echo "$as_me:$LINENO: result: yes" >&5
6136 echo "${ECHO_T}yes" >&6; }
6137           else
6138             { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6140           fi
6141
6142
6143           enablestring=
6144           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6145 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6146           no_cache=0
6147           # Check whether --enable-dialupman was given.
6148 if test "${enable_dialupman+set}" = set; then
6149   enableval=$enable_dialupman;
6150                           if test "$enableval" = yes; then
6151                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6152                           else
6153                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6154                           fi
6155
6156 else
6157
6158                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
6159                           if test "x$LINE" != x ; then
6160                             eval "DEFAULT_$LINE"
6161                           else
6162                             no_cache=1
6163                           fi
6164
6165                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
6166
6167 fi
6168
6169
6170           eval "$ac_cv_use_dialupman"
6171           if test "$no_cache" != 1; then
6172             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
6173           fi
6174
6175           if test "$wxUSE_DIALUP_MANAGER" = yes; then
6176             { echo "$as_me:$LINENO: result: yes" >&5
6177 echo "${ECHO_T}yes" >&6; }
6178           else
6179             { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6181           fi
6182
6183
6184           enablestring=
6185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6186 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6187           no_cache=0
6188           # Check whether --enable-dynlib was given.
6189 if test "${enable_dynlib+set}" = set; then
6190   enableval=$enable_dynlib;
6191                           if test "$enableval" = yes; then
6192                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6193                           else
6194                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6195                           fi
6196
6197 else
6198
6199                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
6200                           if test "x$LINE" != x ; then
6201                             eval "DEFAULT_$LINE"
6202                           else
6203                             no_cache=1
6204                           fi
6205
6206                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
6207
6208 fi
6209
6210
6211           eval "$ac_cv_use_dynlib"
6212           if test "$no_cache" != 1; then
6213             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
6214           fi
6215
6216           if test "$wxUSE_DYNLIB_CLASS" = yes; then
6217             { echo "$as_me:$LINENO: result: yes" >&5
6218 echo "${ECHO_T}yes" >&6; }
6219           else
6220             { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6222           fi
6223
6224
6225           enablestring=
6226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6227 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6228           no_cache=0
6229           # Check whether --enable-dynamicloader was given.
6230 if test "${enable_dynamicloader+set}" = set; then
6231   enableval=$enable_dynamicloader;
6232                           if test "$enableval" = yes; then
6233                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6234                           else
6235                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6236                           fi
6237
6238 else
6239
6240                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
6241                           if test "x$LINE" != x ; then
6242                             eval "DEFAULT_$LINE"
6243                           else
6244                             no_cache=1
6245                           fi
6246
6247                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
6248
6249 fi
6250
6251
6252           eval "$ac_cv_use_dynamicloader"
6253           if test "$no_cache" != 1; then
6254             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
6255           fi
6256
6257           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
6258             { echo "$as_me:$LINENO: result: yes" >&5
6259 echo "${ECHO_T}yes" >&6; }
6260           else
6261             { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6263           fi
6264
6265
6266           enablestring=
6267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6268 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6269           no_cache=0
6270           # Check whether --enable-exceptions was given.
6271 if test "${enable_exceptions+set}" = set; then
6272   enableval=$enable_exceptions;
6273                           if test "$enableval" = yes; then
6274                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6275                           else
6276                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6277                           fi
6278
6279 else
6280
6281                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
6282                           if test "x$LINE" != x ; then
6283                             eval "DEFAULT_$LINE"
6284                           else
6285                             no_cache=1
6286                           fi
6287
6288                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
6289
6290 fi
6291
6292
6293           eval "$ac_cv_use_exceptions"
6294           if test "$no_cache" != 1; then
6295             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
6296           fi
6297
6298           if test "$wxUSE_EXCEPTIONS" = yes; then
6299             { echo "$as_me:$LINENO: result: yes" >&5
6300 echo "${ECHO_T}yes" >&6; }
6301           else
6302             { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6304           fi
6305
6306
6307           enablestring=
6308           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6309 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6310           no_cache=0
6311           # Check whether --enable-ffile was given.
6312 if test "${enable_ffile+set}" = set; then
6313   enableval=$enable_ffile;
6314                           if test "$enableval" = yes; then
6315                             ac_cv_use_ffile='wxUSE_FFILE=yes'
6316                           else
6317                             ac_cv_use_ffile='wxUSE_FFILE=no'
6318                           fi
6319
6320 else
6321
6322                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
6323                           if test "x$LINE" != x ; then
6324                             eval "DEFAULT_$LINE"
6325                           else
6326                             no_cache=1
6327                           fi
6328
6329                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
6330
6331 fi
6332
6333
6334           eval "$ac_cv_use_ffile"
6335           if test "$no_cache" != 1; then
6336             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
6337           fi
6338
6339           if test "$wxUSE_FFILE" = yes; then
6340             { echo "$as_me:$LINENO: result: yes" >&5
6341 echo "${ECHO_T}yes" >&6; }
6342           else
6343             { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6345           fi
6346
6347
6348           enablestring=
6349           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6350 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6351           no_cache=0
6352           # Check whether --enable-file was given.
6353 if test "${enable_file+set}" = set; then
6354   enableval=$enable_file;
6355                           if test "$enableval" = yes; then
6356                             ac_cv_use_file='wxUSE_FILE=yes'
6357                           else
6358                             ac_cv_use_file='wxUSE_FILE=no'
6359                           fi
6360
6361 else
6362
6363                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
6364                           if test "x$LINE" != x ; then
6365                             eval "DEFAULT_$LINE"
6366                           else
6367                             no_cache=1
6368                           fi
6369
6370                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
6371
6372 fi
6373
6374
6375           eval "$ac_cv_use_file"
6376           if test "$no_cache" != 1; then
6377             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
6378           fi
6379
6380           if test "$wxUSE_FILE" = yes; then
6381             { echo "$as_me:$LINENO: result: yes" >&5
6382 echo "${ECHO_T}yes" >&6; }
6383           else
6384             { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6386           fi
6387
6388
6389           enablestring=
6390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6391 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6392           no_cache=0
6393           # Check whether --enable-filesystem was given.
6394 if test "${enable_filesystem+set}" = set; then
6395   enableval=$enable_filesystem;
6396                           if test "$enableval" = yes; then
6397                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6398                           else
6399                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6400                           fi
6401
6402 else
6403
6404                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
6405                           if test "x$LINE" != x ; then
6406                             eval "DEFAULT_$LINE"
6407                           else
6408                             no_cache=1
6409                           fi
6410
6411                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
6412
6413 fi
6414
6415
6416           eval "$ac_cv_use_filesystem"
6417           if test "$no_cache" != 1; then
6418             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
6419           fi
6420
6421           if test "$wxUSE_FILESYSTEM" = yes; then
6422             { echo "$as_me:$LINENO: result: yes" >&5
6423 echo "${ECHO_T}yes" >&6; }
6424           else
6425             { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6427           fi
6428
6429
6430           enablestring=
6431           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6432 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6433           no_cache=0
6434           # Check whether --enable-fontmap was given.
6435 if test "${enable_fontmap+set}" = set; then
6436   enableval=$enable_fontmap;
6437                           if test "$enableval" = yes; then
6438                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
6439                           else
6440                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
6441                           fi
6442
6443 else
6444
6445                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
6446                           if test "x$LINE" != x ; then
6447                             eval "DEFAULT_$LINE"
6448                           else
6449                             no_cache=1
6450                           fi
6451
6452                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
6453
6454 fi
6455
6456
6457           eval "$ac_cv_use_fontmap"
6458           if test "$no_cache" != 1; then
6459             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
6460           fi
6461
6462           if test "$wxUSE_FONTMAP" = yes; then
6463             { echo "$as_me:$LINENO: result: yes" >&5
6464 echo "${ECHO_T}yes" >&6; }
6465           else
6466             { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6468           fi
6469
6470
6471           enablestring=
6472           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
6473 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
6474           no_cache=0
6475           # Check whether --enable-fs_archive was given.
6476 if test "${enable_fs_archive+set}" = set; then
6477   enableval=$enable_fs_archive;
6478                           if test "$enableval" = yes; then
6479                             ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
6480                           else
6481                             ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
6482                           fi
6483
6484 else
6485
6486                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
6487                           if test "x$LINE" != x ; then
6488                             eval "DEFAULT_$LINE"
6489                           else
6490                             no_cache=1
6491                           fi
6492
6493                           ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
6494
6495 fi
6496
6497
6498           eval "$ac_cv_use_fs_archive"
6499           if test "$no_cache" != 1; then
6500             echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
6501           fi
6502
6503           if test "$wxUSE_FS_ARCHIVE" = yes; then
6504             { echo "$as_me:$LINENO: result: yes" >&5
6505 echo "${ECHO_T}yes" >&6; }
6506           else
6507             { echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6; }
6509           fi
6510
6511
6512           enablestring=
6513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
6514 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
6515           no_cache=0
6516           # Check whether --enable-fs_inet was given.
6517 if test "${enable_fs_inet+set}" = set; then
6518   enableval=$enable_fs_inet;
6519                           if test "$enableval" = yes; then
6520                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
6521                           else
6522                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
6523                           fi
6524
6525 else
6526
6527                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
6528                           if test "x$LINE" != x ; then
6529                             eval "DEFAULT_$LINE"
6530                           else
6531                             no_cache=1
6532                           fi
6533
6534                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
6535
6536 fi
6537
6538
6539           eval "$ac_cv_use_fs_inet"
6540           if test "$no_cache" != 1; then
6541             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
6542           fi
6543
6544           if test "$wxUSE_FS_INET" = yes; then
6545             { echo "$as_me:$LINENO: result: yes" >&5
6546 echo "${ECHO_T}yes" >&6; }
6547           else
6548             { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6550           fi
6551
6552
6553           enablestring=
6554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
6555 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
6556           no_cache=0
6557           # Check whether --enable-fs_zip was given.
6558 if test "${enable_fs_zip+set}" = set; then
6559   enableval=$enable_fs_zip;
6560                           if test "$enableval" = yes; then
6561                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
6562                           else
6563                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
6564                           fi
6565
6566 else
6567
6568                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
6569                           if test "x$LINE" != x ; then
6570                             eval "DEFAULT_$LINE"
6571                           else
6572                             no_cache=1
6573                           fi
6574
6575                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
6576
6577 fi
6578
6579
6580           eval "$ac_cv_use_fs_zip"
6581           if test "$no_cache" != 1; then
6582             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
6583           fi
6584
6585           if test "$wxUSE_FS_ZIP" = yes; then
6586             { echo "$as_me:$LINENO: result: yes" >&5
6587 echo "${ECHO_T}yes" >&6; }
6588           else
6589             { echo "$as_me:$LINENO: result: no" >&5
6590 echo "${ECHO_T}no" >&6; }
6591           fi
6592
6593
6594           enablestring=
6595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
6596 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
6597           no_cache=0
6598           # Check whether --enable-geometry was given.
6599 if test "${enable_geometry+set}" = set; then
6600   enableval=$enable_geometry;
6601                           if test "$enableval" = yes; then
6602                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
6603                           else
6604                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
6605                           fi
6606
6607 else
6608
6609                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
6610                           if test "x$LINE" != x ; then
6611                             eval "DEFAULT_$LINE"
6612                           else
6613                             no_cache=1
6614                           fi
6615
6616                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
6617
6618 fi
6619
6620
6621           eval "$ac_cv_use_geometry"
6622           if test "$no_cache" != 1; then
6623             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
6624           fi
6625
6626           if test "$wxUSE_GEOMETRY" = yes; then
6627             { echo "$as_me:$LINENO: result: yes" >&5
6628 echo "${ECHO_T}yes" >&6; }
6629           else
6630             { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6632           fi
6633
6634
6635           enablestring=
6636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
6637 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
6638           no_cache=0
6639           # Check whether --enable-log was given.
6640 if test "${enable_log+set}" = set; then
6641   enableval=$enable_log;
6642                           if test "$enableval" = yes; then
6643                             ac_cv_use_log='wxUSE_LOG=yes'
6644                           else
6645                             ac_cv_use_log='wxUSE_LOG=no'
6646                           fi
6647
6648 else
6649
6650                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
6651                           if test "x$LINE" != x ; then
6652                             eval "DEFAULT_$LINE"
6653                           else
6654                             no_cache=1
6655                           fi
6656
6657                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
6658
6659 fi
6660
6661
6662           eval "$ac_cv_use_log"
6663           if test "$no_cache" != 1; then
6664             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
6665           fi
6666
6667           if test "$wxUSE_LOG" = yes; then
6668             { echo "$as_me:$LINENO: result: yes" >&5
6669 echo "${ECHO_T}yes" >&6; }
6670           else
6671             { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6673           fi
6674
6675
6676           enablestring=
6677           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
6678 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
6679           no_cache=0
6680           # Check whether --enable-longlong was given.
6681 if test "${enable_longlong+set}" = set; then
6682   enableval=$enable_longlong;
6683                           if test "$enableval" = yes; then
6684                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
6685                           else
6686                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
6687                           fi
6688
6689 else
6690
6691                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
6692                           if test "x$LINE" != x ; then
6693                             eval "DEFAULT_$LINE"
6694                           else
6695                             no_cache=1
6696                           fi
6697
6698                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
6699
6700 fi
6701
6702
6703           eval "$ac_cv_use_longlong"
6704           if test "$no_cache" != 1; then
6705             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
6706           fi
6707
6708           if test "$wxUSE_LONGLONG" = yes; then
6709             { echo "$as_me:$LINENO: result: yes" >&5
6710 echo "${ECHO_T}yes" >&6; }
6711           else
6712             { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6714           fi
6715
6716
6717           enablestring=
6718           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
6719 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
6720           no_cache=0
6721           # Check whether --enable-mimetype was given.
6722 if test "${enable_mimetype+set}" = set; then
6723   enableval=$enable_mimetype;
6724                           if test "$enableval" = yes; then
6725                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
6726                           else
6727                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
6728                           fi
6729
6730 else
6731
6732                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
6733                           if test "x$LINE" != x ; then
6734                             eval "DEFAULT_$LINE"
6735                           else
6736                             no_cache=1
6737                           fi
6738
6739                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
6740
6741 fi
6742
6743
6744           eval "$ac_cv_use_mimetype"
6745           if test "$no_cache" != 1; then
6746             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
6747           fi
6748
6749           if test "$wxUSE_MIMETYPE" = yes; then
6750             { echo "$as_me:$LINENO: result: yes" >&5
6751 echo "${ECHO_T}yes" >&6; }
6752           else
6753             { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6755           fi
6756
6757
6758           enablestring=
6759           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
6760 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
6761           no_cache=0
6762           # Check whether --enable-mslu was given.
6763 if test "${enable_mslu+set}" = set; then
6764   enableval=$enable_mslu;
6765                           if test "$enableval" = yes; then
6766                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
6767                           else
6768                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
6769                           fi
6770
6771 else
6772
6773                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
6774                           if test "x$LINE" != x ; then
6775                             eval "DEFAULT_$LINE"
6776                           else
6777                             no_cache=1
6778                           fi
6779
6780                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
6781
6782 fi
6783
6784
6785           eval "$ac_cv_use_mslu"
6786           if test "$no_cache" != 1; then
6787             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
6788           fi
6789
6790           if test "$wxUSE_UNICODE_MSLU" = yes; then
6791             { echo "$as_me:$LINENO: result: yes" >&5
6792 echo "${ECHO_T}yes" >&6; }
6793           else
6794             { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6796           fi
6797
6798
6799           enablestring=
6800           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
6801 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
6802           no_cache=0
6803           # Check whether --enable-utf8 was given.
6804 if test "${enable_utf8+set}" = set; then
6805   enableval=$enable_utf8;
6806                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
6807
6808 else
6809
6810                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
6811                           if test "x$LINE" != x ; then
6812                             eval "DEFAULT_$LINE"
6813                           else
6814                             no_cache=1
6815                           fi
6816
6817                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
6818
6819 fi
6820
6821
6822           eval "$wx_cv_use_utf8"
6823           if test "$no_cache" != 1; then
6824             echo $wx_cv_use_utf8 >> ${wx_arg_cache_file}.tmp
6825           fi
6826
6827           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
6828 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
6829
6830
6831           enablestring=
6832           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
6833 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
6834           no_cache=0
6835           # Check whether --enable-utf8only was given.
6836 if test "${enable_utf8only+set}" = set; then
6837   enableval=$enable_utf8only;
6838                           if test "$enableval" = yes; then
6839                             ac_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
6840                           else
6841                             ac_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
6842                           fi
6843
6844 else
6845
6846                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
6847                           if test "x$LINE" != x ; then
6848                             eval "DEFAULT_$LINE"
6849                           else
6850                             no_cache=1
6851                           fi
6852
6853                           ac_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE='$DEFAULT_wxUSE_UNICODE_UTF8_LOCALE
6854
6855 fi
6856
6857
6858           eval "$ac_cv_use_utf8only"
6859           if test "$no_cache" != 1; then
6860             echo $ac_cv_use_utf8only >> ${wx_arg_cache_file}.tmp
6861           fi
6862
6863           if test "$wxUSE_UNICODE_UTF8_LOCALE" = yes; then
6864             { echo "$as_me:$LINENO: result: yes" >&5
6865 echo "${ECHO_T}yes" >&6; }
6866           else
6867             { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6869           fi
6870
6871
6872           enablestring=
6873           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
6874 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
6875           no_cache=0
6876           # Check whether --enable-snglinst was given.
6877 if test "${enable_snglinst+set}" = set; then
6878   enableval=$enable_snglinst;
6879                           if test "$enableval" = yes; then
6880                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
6881                           else
6882                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
6883                           fi
6884
6885 else
6886
6887                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
6888                           if test "x$LINE" != x ; then
6889                             eval "DEFAULT_$LINE"
6890                           else
6891                             no_cache=1
6892                           fi
6893
6894                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
6895
6896 fi
6897
6898
6899           eval "$ac_cv_use_snglinst"
6900           if test "$no_cache" != 1; then
6901             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
6902           fi
6903
6904           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
6905             { echo "$as_me:$LINENO: result: yes" >&5
6906 echo "${ECHO_T}yes" >&6; }
6907           else
6908             { echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6; }
6910           fi
6911
6912
6913           enablestring=
6914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
6915 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
6916           no_cache=0
6917           # Check whether --enable-std_iostreams was given.
6918 if test "${enable_std_iostreams+set}" = set; then
6919   enableval=$enable_std_iostreams;
6920                           if test "$enableval" = yes; then
6921                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
6922                           else
6923                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
6924                           fi
6925
6926 else
6927
6928                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
6929                           if test "x$LINE" != x ; then
6930                             eval "DEFAULT_$LINE"
6931                           else
6932                             no_cache=1
6933                           fi
6934
6935                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
6936
6937 fi
6938
6939
6940           eval "$ac_cv_use_std_iostreams"
6941           if test "$no_cache" != 1; then
6942             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
6943           fi
6944
6945           if test "$wxUSE_STD_IOSTREAM" = yes; then
6946             { echo "$as_me:$LINENO: result: yes" >&5
6947 echo "${ECHO_T}yes" >&6; }
6948           else
6949             { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6951           fi
6952
6953
6954           enablestring=
6955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6956 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
6957           no_cache=0
6958           # Check whether --enable-std_string was given.
6959 if test "${enable_std_string+set}" = set; then
6960   enableval=$enable_std_string;
6961                           if test "$enableval" = yes; then
6962                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6963                           else
6964                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
6965                           fi
6966
6967 else
6968
6969                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
6970                           if test "x$LINE" != x ; then
6971                             eval "DEFAULT_$LINE"
6972                           else
6973                             no_cache=1
6974                           fi
6975
6976                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6977
6978 fi
6979
6980
6981           eval "$ac_cv_use_std_string"
6982           if test "$no_cache" != 1; then
6983             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6984           fi
6985
6986           if test "$wxUSE_STD_STRING" = yes; then
6987             { echo "$as_me:$LINENO: result: yes" >&5
6988 echo "${ECHO_T}yes" >&6; }
6989           else
6990             { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6992           fi
6993
6994
6995           enablestring=
6996           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6997 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
6998           no_cache=0
6999           # Check whether --enable-stdpaths was given.
7000 if test "${enable_stdpaths+set}" = set; then
7001   enableval=$enable_stdpaths;
7002                           if test "$enableval" = yes; then
7003                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7004                           else
7005                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
7006                           fi
7007
7008 else
7009
7010                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
7011                           if test "x$LINE" != x ; then
7012                             eval "DEFAULT_$LINE"
7013                           else
7014                             no_cache=1
7015                           fi
7016
7017                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
7018
7019 fi
7020
7021
7022           eval "$ac_cv_use_stdpaths"
7023           if test "$no_cache" != 1; then
7024             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
7025           fi
7026
7027           if test "$wxUSE_STDPATHS" = yes; then
7028             { echo "$as_me:$LINENO: result: yes" >&5
7029 echo "${ECHO_T}yes" >&6; }
7030           else
7031             { echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6; }
7033           fi
7034
7035
7036           enablestring=
7037           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7038 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7039           no_cache=0
7040           # Check whether --enable-stopwatch was given.
7041 if test "${enable_stopwatch+set}" = set; then
7042   enableval=$enable_stopwatch;
7043                           if test "$enableval" = yes; then
7044                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7045                           else
7046                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7047                           fi
7048
7049 else
7050
7051                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
7052                           if test "x$LINE" != x ; then
7053                             eval "DEFAULT_$LINE"
7054                           else
7055                             no_cache=1
7056                           fi
7057
7058                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
7059
7060 fi
7061
7062
7063           eval "$ac_cv_use_stopwatch"
7064           if test "$no_cache" != 1; then
7065             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
7066           fi
7067
7068           if test "$wxUSE_STOPWATCH" = yes; then
7069             { echo "$as_me:$LINENO: result: yes" >&5
7070 echo "${ECHO_T}yes" >&6; }
7071           else
7072             { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7074           fi
7075
7076
7077           enablestring=
7078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7079 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7080           no_cache=0
7081           # Check whether --enable-streams was given.
7082 if test "${enable_streams+set}" = set; then
7083   enableval=$enable_streams;
7084                           if test "$enableval" = yes; then
7085                             ac_cv_use_streams='wxUSE_STREAMS=yes'
7086                           else
7087                             ac_cv_use_streams='wxUSE_STREAMS=no'
7088                           fi
7089
7090 else
7091
7092                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
7093                           if test "x$LINE" != x ; then
7094                             eval "DEFAULT_$LINE"
7095                           else
7096                             no_cache=1
7097                           fi
7098
7099                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
7100
7101 fi
7102
7103
7104           eval "$ac_cv_use_streams"
7105           if test "$no_cache" != 1; then
7106             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
7107           fi
7108
7109           if test "$wxUSE_STREAMS" = yes; then
7110             { echo "$as_me:$LINENO: result: yes" >&5
7111 echo "${ECHO_T}yes" >&6; }
7112           else
7113             { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115           fi
7116
7117
7118           enablestring=
7119           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7120 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7121           no_cache=0
7122           # Check whether --enable-system_options was given.
7123 if test "${enable_system_options+set}" = set; then
7124   enableval=$enable_system_options;
7125                           if test "$enableval" = yes; then
7126                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7127                           else
7128                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7129                           fi
7130
7131 else
7132
7133                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
7134                           if test "x$LINE" != x ; then
7135                             eval "DEFAULT_$LINE"
7136                           else
7137                             no_cache=1
7138                           fi
7139
7140                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
7141
7142 fi
7143
7144
7145           eval "$ac_cv_use_system_options"
7146           if test "$no_cache" != 1; then
7147             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
7148           fi
7149
7150           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
7151             { echo "$as_me:$LINENO: result: yes" >&5
7152 echo "${ECHO_T}yes" >&6; }
7153           else
7154             { echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6; }
7156           fi
7157
7158
7159           enablestring=
7160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7161 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7162           no_cache=0
7163           # Check whether --enable-tarstream was given.
7164 if test "${enable_tarstream+set}" = set; then
7165   enableval=$enable_tarstream;
7166                           if test "$enableval" = yes; then
7167                             ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7168                           else
7169                             ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
7170                           fi
7171
7172 else
7173
7174                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
7175                           if test "x$LINE" != x ; then
7176                             eval "DEFAULT_$LINE"
7177                           else
7178                             no_cache=1
7179                           fi
7180
7181                           ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
7182
7183 fi
7184
7185
7186           eval "$ac_cv_use_tarstream"
7187           if test "$no_cache" != 1; then
7188             echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
7189           fi
7190
7191           if test "$wxUSE_TARSTREAM" = yes; then
7192             { echo "$as_me:$LINENO: result: yes" >&5
7193 echo "${ECHO_T}yes" >&6; }
7194           else
7195             { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7197           fi
7198
7199
7200           enablestring=
7201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7202 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7203           no_cache=0
7204           # Check whether --enable-textbuf was given.
7205 if test "${enable_textbuf+set}" = set; then
7206   enableval=$enable_textbuf;
7207                           if test "$enableval" = yes; then
7208                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7209                           else
7210                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7211                           fi
7212
7213 else
7214
7215                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
7216                           if test "x$LINE" != x ; then
7217                             eval "DEFAULT_$LINE"
7218                           else
7219                             no_cache=1
7220                           fi
7221
7222                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
7223
7224 fi
7225
7226
7227           eval "$ac_cv_use_textbuf"
7228           if test "$no_cache" != 1; then
7229             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
7230           fi
7231
7232           if test "$wxUSE_TEXTBUFFER" = yes; then
7233             { echo "$as_me:$LINENO: result: yes" >&5
7234 echo "${ECHO_T}yes" >&6; }
7235           else
7236             { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7238           fi
7239
7240
7241           enablestring=
7242           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7243 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7244           no_cache=0
7245           # Check whether --enable-textfile was given.
7246 if test "${enable_textfile+set}" = set; then
7247   enableval=$enable_textfile;
7248                           if test "$enableval" = yes; then
7249                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
7250                           else
7251                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
7252                           fi
7253
7254 else
7255
7256                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
7257                           if test "x$LINE" != x ; then
7258                             eval "DEFAULT_$LINE"
7259                           else
7260                             no_cache=1
7261                           fi
7262
7263                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
7264
7265 fi
7266
7267
7268           eval "$ac_cv_use_textfile"
7269           if test "$no_cache" != 1; then
7270             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
7271           fi
7272
7273           if test "$wxUSE_TEXTFILE" = yes; then
7274             { echo "$as_me:$LINENO: result: yes" >&5
7275 echo "${ECHO_T}yes" >&6; }
7276           else
7277             { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7279           fi
7280
7281
7282           enablestring=
7283           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7284 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7285           no_cache=0
7286           # Check whether --enable-timer was given.
7287 if test "${enable_timer+set}" = set; then
7288   enableval=$enable_timer;
7289                           if test "$enableval" = yes; then
7290                             ac_cv_use_timer='wxUSE_TIMER=yes'
7291                           else
7292                             ac_cv_use_timer='wxUSE_TIMER=no'
7293                           fi
7294
7295 else
7296
7297                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
7298                           if test "x$LINE" != x ; then
7299                             eval "DEFAULT_$LINE"
7300                           else
7301                             no_cache=1
7302                           fi
7303
7304                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
7305
7306 fi
7307
7308
7309           eval "$ac_cv_use_timer"
7310           if test "$no_cache" != 1; then
7311             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
7312           fi
7313
7314           if test "$wxUSE_TIMER" = yes; then
7315             { echo "$as_me:$LINENO: result: yes" >&5
7316 echo "${ECHO_T}yes" >&6; }
7317           else
7318             { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7320           fi
7321
7322
7323           enablestring=
7324           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
7325 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
7326           no_cache=0
7327           # Check whether --enable-unicode was given.
7328 if test "${enable_unicode+set}" = set; then
7329   enableval=$enable_unicode;
7330                           if test "$enableval" = yes; then
7331                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
7332                           else
7333                             ac_cv_use_unicode='wxUSE_UNICODE=no'
7334                           fi
7335
7336 else
7337
7338                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
7339                           if test "x$LINE" != x ; then
7340                             eval "DEFAULT_$LINE"
7341                           else
7342                             no_cache=1
7343                           fi
7344
7345                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
7346
7347 fi
7348
7349
7350           eval "$ac_cv_use_unicode"
7351           if test "$no_cache" != 1; then
7352             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
7353           fi
7354
7355           if test "$wxUSE_UNICODE" = yes; then
7356             { echo "$as_me:$LINENO: result: yes" >&5
7357 echo "${ECHO_T}yes" >&6; }
7358           else
7359             { echo "$as_me:$LINENO: result: no" >&5
7360 echo "${ECHO_T}no" >&6; }
7361           fi
7362
7363
7364           enablestring=
7365           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7366 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7367           no_cache=0
7368           # Check whether --enable-sound was given.
7369 if test "${enable_sound+set}" = set; then
7370   enableval=$enable_sound;
7371                           if test "$enableval" = yes; then
7372                             ac_cv_use_sound='wxUSE_SOUND=yes'
7373                           else
7374                             ac_cv_use_sound='wxUSE_SOUND=no'
7375                           fi
7376
7377 else
7378
7379                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
7380                           if test "x$LINE" != x ; then
7381                             eval "DEFAULT_$LINE"
7382                           else
7383                             no_cache=1
7384                           fi
7385
7386                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
7387
7388 fi
7389
7390
7391           eval "$ac_cv_use_sound"
7392           if test "$no_cache" != 1; then
7393             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
7394           fi
7395
7396           if test "$wxUSE_SOUND" = yes; then
7397             { echo "$as_me:$LINENO: result: yes" >&5
7398 echo "${ECHO_T}yes" >&6; }
7399           else
7400             { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7402           fi
7403
7404
7405           enablestring=
7406           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
7407 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
7408           no_cache=0
7409           # Check whether --enable-mediactrl was given.
7410 if test "${enable_mediactrl+set}" = set; then
7411   enableval=$enable_mediactrl;
7412                           if test "$enableval" = yes; then
7413                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
7414                           else
7415                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
7416                           fi
7417
7418 else
7419
7420                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
7421                           if test "x$LINE" != x ; then
7422                             eval "DEFAULT_$LINE"
7423                           else
7424                             no_cache=1
7425                           fi
7426
7427                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
7428
7429 fi
7430
7431
7432           eval "$ac_cv_use_mediactrl"
7433           if test "$no_cache" != 1; then
7434             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
7435           fi
7436
7437           if test "$wxUSE_MEDIACTRL" = yes; then
7438             { echo "$as_me:$LINENO: result: yes" >&5
7439 echo "${ECHO_T}yes" >&6; }
7440           else
7441             { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7443           fi
7444
7445
7446           enablestring=
7447           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
7448 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
7449           no_cache=0
7450           # Check whether --enable-gstreamer8 was given.
7451 if test "${enable_gstreamer8+set}" = set; then
7452   enableval=$enable_gstreamer8;
7453                           if test "$enableval" = yes; then
7454                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
7455                           else
7456                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
7457                           fi
7458
7459 else
7460
7461                           LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
7462                           if test "x$LINE" != x ; then
7463                             eval "DEFAULT_$LINE"
7464                           else
7465                             no_cache=1
7466                           fi
7467
7468                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
7469
7470 fi
7471
7472
7473           eval "$ac_cv_use_gstreamer8"
7474           if test "$no_cache" != 1; then
7475             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
7476           fi
7477
7478           if test "$wxUSE_GSTREAMER8" = yes; then
7479             { echo "$as_me:$LINENO: result: yes" >&5
7480 echo "${ECHO_T}yes" >&6; }
7481           else
7482             { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7484           fi
7485
7486
7487           enablestring=
7488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7489 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7490           no_cache=0
7491           # Check whether --enable-printfposparam was given.
7492 if test "${enable_printfposparam+set}" = set; then
7493   enableval=$enable_printfposparam;
7494                           if test "$enableval" = yes; then
7495                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7496                           else
7497                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7498                           fi
7499
7500 else
7501
7502                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
7503                           if test "x$LINE" != x ; then
7504                             eval "DEFAULT_$LINE"
7505                           else
7506                             no_cache=1
7507                           fi
7508
7509                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
7510
7511 fi
7512
7513
7514           eval "$ac_cv_use_printfposparam"
7515           if test "$no_cache" != 1; then
7516             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
7517           fi
7518
7519           if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
7520             { echo "$as_me:$LINENO: result: yes" >&5
7521 echo "${ECHO_T}yes" >&6; }
7522           else
7523             { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7525           fi
7526
7527
7528           enablestring=
7529           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7530 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7531           no_cache=0
7532           # Check whether --enable-zipstream was given.
7533 if test "${enable_zipstream+set}" = set; then
7534   enableval=$enable_zipstream;
7535                           if test "$enableval" = yes; then
7536                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7537                           else
7538                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7539                           fi
7540
7541 else
7542
7543                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
7544                           if test "x$LINE" != x ; then
7545                             eval "DEFAULT_$LINE"
7546                           else
7547                             no_cache=1
7548                           fi
7549
7550                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
7551
7552 fi
7553
7554
7555           eval "$ac_cv_use_zipstream"
7556           if test "$no_cache" != 1; then
7557             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
7558           fi
7559
7560           if test "$wxUSE_ZIPSTREAM" = yes; then
7561             { echo "$as_me:$LINENO: result: yes" >&5
7562 echo "${ECHO_T}yes" >&6; }
7563           else
7564             { echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6; }
7566           fi
7567
7568
7569
7570           enablestring=
7571           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7572 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7573           no_cache=0
7574           # Check whether --enable-url was given.
7575 if test "${enable_url+set}" = set; then
7576   enableval=$enable_url;
7577                           if test "$enableval" = yes; then
7578                             ac_cv_use_url='wxUSE_URL=yes'
7579                           else
7580                             ac_cv_use_url='wxUSE_URL=no'
7581                           fi
7582
7583 else
7584
7585                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
7586                           if test "x$LINE" != x ; then
7587                             eval "DEFAULT_$LINE"
7588                           else
7589                             no_cache=1
7590                           fi
7591
7592                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
7593
7594 fi
7595
7596
7597           eval "$ac_cv_use_url"
7598           if test "$no_cache" != 1; then
7599             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
7600           fi
7601
7602           if test "$wxUSE_URL" = yes; then
7603             { echo "$as_me:$LINENO: result: yes" >&5
7604 echo "${ECHO_T}yes" >&6; }
7605           else
7606             { echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6; }
7608           fi
7609
7610
7611           enablestring=
7612           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7613 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7614           no_cache=0
7615           # Check whether --enable-variant was given.
7616 if test "${enable_variant+set}" = set; then
7617   enableval=$enable_variant;
7618                           if test "$enableval" = yes; then
7619                             ac_cv_use_variant='wxUSE_VARIANT=yes'
7620                           else
7621                             ac_cv_use_variant='wxUSE_VARIANT=no'
7622                           fi
7623
7624 else
7625
7626                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
7627                           if test "x$LINE" != x ; then
7628                             eval "DEFAULT_$LINE"
7629                           else
7630                             no_cache=1
7631                           fi
7632
7633                           ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
7634
7635 fi
7636
7637
7638           eval "$ac_cv_use_variant"
7639           if test "$no_cache" != 1; then
7640             echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
7641           fi
7642
7643           if test "$wxUSE_VARIANT" = yes; then
7644             { echo "$as_me:$LINENO: result: yes" >&5
7645 echo "${ECHO_T}yes" >&6; }
7646           else
7647             { echo "$as_me:$LINENO: result: no" >&5
7648 echo "${ECHO_T}no" >&6; }
7649           fi
7650
7651
7652           enablestring=
7653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7654 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7655           no_cache=0
7656           # Check whether --enable-protocol was given.
7657 if test "${enable_protocol+set}" = set; then
7658   enableval=$enable_protocol;
7659                           if test "$enableval" = yes; then
7660                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
7661                           else
7662                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
7663                           fi
7664
7665 else
7666
7667                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
7668                           if test "x$LINE" != x ; then
7669                             eval "DEFAULT_$LINE"
7670                           else
7671                             no_cache=1
7672                           fi
7673
7674                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
7675
7676 fi
7677
7678
7679           eval "$ac_cv_use_protocol"
7680           if test "$no_cache" != 1; then
7681             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
7682           fi
7683
7684           if test "$wxUSE_PROTOCOL" = yes; then
7685             { echo "$as_me:$LINENO: result: yes" >&5
7686 echo "${ECHO_T}yes" >&6; }
7687           else
7688             { echo "$as_me:$LINENO: result: no" >&5
7689 echo "${ECHO_T}no" >&6; }
7690           fi
7691
7692
7693           enablestring=
7694           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7695 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7696           no_cache=0
7697           # Check whether --enable-protocol_http was given.
7698 if test "${enable_protocol_http+set}" = set; then
7699   enableval=$enable_protocol_http;
7700                           if test "$enableval" = yes; then
7701                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7702                           else
7703                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7704                           fi
7705
7706 else
7707
7708                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
7709                           if test "x$LINE" != x ; then
7710                             eval "DEFAULT_$LINE"
7711                           else
7712                             no_cache=1
7713                           fi
7714
7715                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
7716
7717 fi
7718
7719
7720           eval "$ac_cv_use_protocol_http"
7721           if test "$no_cache" != 1; then
7722             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
7723           fi
7724
7725           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
7726             { echo "$as_me:$LINENO: result: yes" >&5
7727 echo "${ECHO_T}yes" >&6; }
7728           else
7729             { echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6; }
7731           fi
7732
7733
7734           enablestring=
7735           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
7736 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
7737           no_cache=0
7738           # Check whether --enable-protocol_ftp was given.
7739 if test "${enable_protocol_ftp+set}" = set; then
7740   enableval=$enable_protocol_ftp;
7741                           if test "$enableval" = yes; then
7742                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
7743                           else
7744                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
7745                           fi
7746
7747 else
7748
7749                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
7750                           if test "x$LINE" != x ; then
7751                             eval "DEFAULT_$LINE"
7752                           else
7753                             no_cache=1
7754                           fi
7755
7756                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
7757
7758 fi
7759
7760
7761           eval "$ac_cv_use_protocol_ftp"
7762           if test "$no_cache" != 1; then
7763             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
7764           fi
7765
7766           if test "$wxUSE_PROTOCOL_FTP" = yes; then
7767             { echo "$as_me:$LINENO: result: yes" >&5
7768 echo "${ECHO_T}yes" >&6; }
7769           else
7770             { echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6; }
7772           fi
7773
7774
7775           enablestring=
7776           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
7777 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
7778           no_cache=0
7779           # Check whether --enable-protocol_file was given.
7780 if test "${enable_protocol_file+set}" = set; then
7781   enableval=$enable_protocol_file;
7782                           if test "$enableval" = yes; then
7783                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
7784                           else
7785                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
7786                           fi
7787
7788 else
7789
7790                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
7791                           if test "x$LINE" != x ; then
7792                             eval "DEFAULT_$LINE"
7793                           else
7794                             no_cache=1
7795                           fi
7796
7797                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
7798
7799 fi
7800
7801
7802           eval "$ac_cv_use_protocol_file"
7803           if test "$no_cache" != 1; then
7804             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
7805           fi
7806
7807           if test "$wxUSE_PROTOCOL_FILE" = yes; then
7808             { echo "$as_me:$LINENO: result: yes" >&5
7809 echo "${ECHO_T}yes" >&6; }
7810           else
7811             { echo "$as_me:$LINENO: result: no" >&5
7812 echo "${ECHO_T}no" >&6; }
7813           fi
7814
7815
7816
7817
7818
7819           enablestring=
7820           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
7821 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
7822           no_cache=0
7823           # Check whether --enable-threads was given.
7824 if test "${enable_threads+set}" = set; then
7825   enableval=$enable_threads;
7826                           if test "$enableval" = yes; then
7827                             ac_cv_use_threads='wxUSE_THREADS=yes'
7828                           else
7829                             ac_cv_use_threads='wxUSE_THREADS=no'
7830                           fi
7831
7832 else
7833
7834                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
7835                           if test "x$LINE" != x ; then
7836                             eval "DEFAULT_$LINE"
7837                           else
7838                             no_cache=1
7839                           fi
7840
7841                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
7842
7843 fi
7844
7845
7846           eval "$ac_cv_use_threads"
7847           if test "$no_cache" != 1; then
7848             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
7849           fi
7850
7851           if test "$wxUSE_THREADS" = yes; then
7852             { echo "$as_me:$LINENO: result: yes" >&5
7853 echo "${ECHO_T}yes" >&6; }
7854           else
7855             { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7857           fi
7858
7859
7860 if test "$wxUSE_GUI" = "yes"; then
7861
7862
7863
7864           enablestring=
7865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
7866 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
7867           no_cache=0
7868           # Check whether --enable-docview was given.
7869 if test "${enable_docview+set}" = set; then
7870   enableval=$enable_docview;
7871                           if test "$enableval" = yes; then
7872                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
7873                           else
7874                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
7875                           fi
7876
7877 else
7878
7879                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
7880                           if test "x$LINE" != x ; then
7881                             eval "DEFAULT_$LINE"
7882                           else
7883                             no_cache=1
7884                           fi
7885
7886                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
7887
7888 fi
7889
7890
7891           eval "$ac_cv_use_docview"
7892           if test "$no_cache" != 1; then
7893             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
7894           fi
7895
7896           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
7897             { echo "$as_me:$LINENO: result: yes" >&5
7898 echo "${ECHO_T}yes" >&6; }
7899           else
7900             { echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6; }
7902           fi
7903
7904
7905           enablestring=
7906           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
7907 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
7908           no_cache=0
7909           # Check whether --enable-help was given.
7910 if test "${enable_help+set}" = set; then
7911   enableval=$enable_help;
7912                           if test "$enableval" = yes; then
7913                             ac_cv_use_help='wxUSE_HELP=yes'
7914                           else
7915                             ac_cv_use_help='wxUSE_HELP=no'
7916                           fi
7917
7918 else
7919
7920                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
7921                           if test "x$LINE" != x ; then
7922                             eval "DEFAULT_$LINE"
7923                           else
7924                             no_cache=1
7925                           fi
7926
7927                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
7928
7929 fi
7930
7931
7932           eval "$ac_cv_use_help"
7933           if test "$no_cache" != 1; then
7934             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
7935           fi
7936
7937           if test "$wxUSE_HELP" = yes; then
7938             { echo "$as_me:$LINENO: result: yes" >&5
7939 echo "${ECHO_T}yes" >&6; }
7940           else
7941             { echo "$as_me:$LINENO: result: no" >&5
7942 echo "${ECHO_T}no" >&6; }
7943           fi
7944
7945
7946           enablestring=
7947           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7948 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
7949           no_cache=0
7950           # Check whether --enable-mshtmlhelp was given.
7951 if test "${enable_mshtmlhelp+set}" = set; then
7952   enableval=$enable_mshtmlhelp;
7953                           if test "$enableval" = yes; then
7954                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7955                           else
7956                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7957                           fi
7958
7959 else
7960
7961                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
7962                           if test "x$LINE" != x ; then
7963                             eval "DEFAULT_$LINE"
7964                           else
7965                             no_cache=1
7966                           fi
7967
7968                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7969
7970 fi
7971
7972
7973           eval "$ac_cv_use_mshtmlhelp"
7974           if test "$no_cache" != 1; then
7975             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7976           fi
7977
7978           if test "$wxUSE_MS_HTML_HELP" = yes; then
7979             { echo "$as_me:$LINENO: result: yes" >&5
7980 echo "${ECHO_T}yes" >&6; }
7981           else
7982             { echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6; }
7984           fi
7985
7986
7987           enablestring=
7988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7989 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
7990           no_cache=0
7991           # Check whether --enable-html was given.
7992 if test "${enable_html+set}" = set; then
7993   enableval=$enable_html;
7994                           if test "$enableval" = yes; then
7995                             ac_cv_use_html='wxUSE_HTML=yes'
7996                           else
7997                             ac_cv_use_html='wxUSE_HTML=no'
7998                           fi
7999
8000 else
8001
8002                           LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
8003                           if test "x$LINE" != x ; then
8004                             eval "DEFAULT_$LINE"
8005                           else
8006                             no_cache=1
8007                           fi
8008
8009                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
8010
8011 fi
8012
8013
8014           eval "$ac_cv_use_html"
8015           if test "$no_cache" != 1; then
8016             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
8017           fi
8018
8019           if test "$wxUSE_HTML" = yes; then
8020             { echo "$as_me:$LINENO: result: yes" >&5
8021 echo "${ECHO_T}yes" >&6; }
8022           else
8023             { echo "$as_me:$LINENO: result: no" >&5
8024 echo "${ECHO_T}no" >&6; }
8025           fi
8026
8027
8028           enablestring=
8029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8030 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8031           no_cache=0
8032           # Check whether --enable-htmlhelp was given.
8033 if test "${enable_htmlhelp+set}" = set; then
8034   enableval=$enable_htmlhelp;
8035                           if test "$enableval" = yes; then
8036                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8037                           else
8038                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8039                           fi
8040
8041 else
8042
8043                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
8044                           if test "x$LINE" != x ; then
8045                             eval "DEFAULT_$LINE"
8046                           else
8047                             no_cache=1
8048                           fi
8049
8050                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
8051
8052 fi
8053
8054
8055           eval "$ac_cv_use_htmlhelp"
8056           if test "$no_cache" != 1; then
8057             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
8058           fi
8059
8060           if test "$wxUSE_WXHTML_HELP" = yes; then
8061             { echo "$as_me:$LINENO: result: yes" >&5
8062 echo "${ECHO_T}yes" >&6; }
8063           else
8064             { echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6; }
8066           fi
8067
8068
8069           enablestring=
8070           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8071 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8072           no_cache=0
8073           # Check whether --enable-xrc was given.
8074 if test "${enable_xrc+set}" = set; then
8075   enableval=$enable_xrc;
8076                           if test "$enableval" = yes; then
8077                             ac_cv_use_xrc='wxUSE_XRC=yes'
8078                           else
8079                             ac_cv_use_xrc='wxUSE_XRC=no'
8080                           fi
8081
8082 else
8083
8084                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
8085                           if test "x$LINE" != x ; then
8086                             eval "DEFAULT_$LINE"
8087                           else
8088                             no_cache=1
8089                           fi
8090
8091                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
8092
8093 fi
8094
8095
8096           eval "$ac_cv_use_xrc"
8097           if test "$no_cache" != 1; then
8098             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
8099           fi
8100
8101           if test "$wxUSE_XRC" = yes; then
8102             { echo "$as_me:$LINENO: result: yes" >&5
8103 echo "${ECHO_T}yes" >&6; }
8104           else
8105             { echo "$as_me:$LINENO: result: no" >&5
8106 echo "${ECHO_T}no" >&6; }
8107           fi
8108
8109
8110           enablestring=
8111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8112 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8113           no_cache=0
8114           # Check whether --enable-aui was given.
8115 if test "${enable_aui+set}" = set; then
8116   enableval=$enable_aui;
8117                           if test "$enableval" = yes; then
8118                             ac_cv_use_aui='wxUSE_AUI=yes'
8119                           else
8120                             ac_cv_use_aui='wxUSE_AUI=no'
8121                           fi
8122
8123 else
8124
8125                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
8126                           if test "x$LINE" != x ; then
8127                             eval "DEFAULT_$LINE"
8128                           else
8129                             no_cache=1
8130                           fi
8131
8132                           ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
8133
8134 fi
8135
8136
8137           eval "$ac_cv_use_aui"
8138           if test "$no_cache" != 1; then
8139             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
8140           fi
8141
8142           if test "$wxUSE_AUI" = yes; then
8143             { echo "$as_me:$LINENO: result: yes" >&5
8144 echo "${ECHO_T}yes" >&6; }
8145           else
8146             { echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6; }
8148           fi
8149
8150
8151           enablestring=
8152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8153 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8154           no_cache=0
8155           # Check whether --enable-stc was given.
8156 if test "${enable_stc+set}" = set; then
8157   enableval=$enable_stc;
8158                           if test "$enableval" = yes; then
8159                             ac_cv_use_stc='wxUSE_STC=yes'
8160                           else
8161                             ac_cv_use_stc='wxUSE_STC=no'
8162                           fi
8163
8164 else
8165
8166                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
8167                           if test "x$LINE" != x ; then
8168                             eval "DEFAULT_$LINE"
8169                           else
8170                             no_cache=1
8171                           fi
8172
8173                           ac_cv_use_stc='wxUSE_STC='$DEFAULT_wxUSE_STC
8174
8175 fi
8176
8177
8178           eval "$ac_cv_use_stc"
8179           if test "$no_cache" != 1; then
8180             echo $ac_cv_use_stc >> ${wx_arg_cache_file}.tmp
8181           fi
8182
8183           if test "$wxUSE_STC" = yes; then
8184             { echo "$as_me:$LINENO: result: yes" >&5
8185 echo "${ECHO_T}yes" >&6; }
8186           else
8187             { echo "$as_me:$LINENO: result: no" >&5
8188 echo "${ECHO_T}no" >&6; }
8189           fi
8190
8191
8192           enablestring=
8193           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8194 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8195           no_cache=0
8196           # Check whether --enable-constraints was given.
8197 if test "${enable_constraints+set}" = set; then
8198   enableval=$enable_constraints;
8199                           if test "$enableval" = yes; then
8200                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8201                           else
8202                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8203                           fi
8204
8205 else
8206
8207                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
8208                           if test "x$LINE" != x ; then
8209                             eval "DEFAULT_$LINE"
8210                           else
8211                             no_cache=1
8212                           fi
8213
8214                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
8215
8216 fi
8217
8218
8219           eval "$ac_cv_use_constraints"
8220           if test "$no_cache" != 1; then
8221             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
8222           fi
8223
8224           if test "$wxUSE_CONSTRAINTS" = yes; then
8225             { echo "$as_me:$LINENO: result: yes" >&5
8226 echo "${ECHO_T}yes" >&6; }
8227           else
8228             { echo "$as_me:$LINENO: result: no" >&5
8229 echo "${ECHO_T}no" >&6; }
8230           fi
8231
8232
8233           enablestring=
8234           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
8235 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
8236           no_cache=0
8237           # Check whether --enable-printarch was given.
8238 if test "${enable_printarch+set}" = set; then
8239   enableval=$enable_printarch;
8240                           if test "$enableval" = yes; then
8241                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
8242                           else
8243                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
8244                           fi
8245
8246 else
8247
8248                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
8249                           if test "x$LINE" != x ; then
8250                             eval "DEFAULT_$LINE"
8251                           else
8252                             no_cache=1
8253                           fi
8254
8255                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
8256
8257 fi
8258
8259
8260           eval "$ac_cv_use_printarch"
8261           if test "$no_cache" != 1; then
8262             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
8263           fi
8264
8265           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
8266             { echo "$as_me:$LINENO: result: yes" >&5
8267 echo "${ECHO_T}yes" >&6; }
8268           else
8269             { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8271           fi
8272
8273
8274           enablestring=
8275           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8276 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8277           no_cache=0
8278           # Check whether --enable-mdi was given.
8279 if test "${enable_mdi+set}" = set; then
8280   enableval=$enable_mdi;
8281                           if test "$enableval" = yes; then
8282                             ac_cv_use_mdi='wxUSE_MDI=yes'
8283                           else
8284                             ac_cv_use_mdi='wxUSE_MDI=no'
8285                           fi
8286
8287 else
8288
8289                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
8290                           if test "x$LINE" != x ; then
8291                             eval "DEFAULT_$LINE"
8292                           else
8293                             no_cache=1
8294                           fi
8295
8296                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
8297
8298 fi
8299
8300
8301           eval "$ac_cv_use_mdi"
8302           if test "$no_cache" != 1; then
8303             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
8304           fi
8305
8306           if test "$wxUSE_MDI" = yes; then
8307             { echo "$as_me:$LINENO: result: yes" >&5
8308 echo "${ECHO_T}yes" >&6; }
8309           else
8310             { echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6; }
8312           fi
8313
8314
8315           enablestring=
8316           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8317 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8318           no_cache=0
8319           # Check whether --enable-mdidoc was given.
8320 if test "${enable_mdidoc+set}" = set; then
8321   enableval=$enable_mdidoc;
8322                           if test "$enableval" = yes; then
8323                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8324                           else
8325                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8326                           fi
8327
8328 else
8329
8330                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
8331                           if test "x$LINE" != x ; then
8332                             eval "DEFAULT_$LINE"
8333                           else
8334                             no_cache=1
8335                           fi
8336
8337                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
8338
8339 fi
8340
8341
8342           eval "$ac_cv_use_mdidoc"
8343           if test "$no_cache" != 1; then
8344             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
8345           fi
8346
8347           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
8348             { echo "$as_me:$LINENO: result: yes" >&5
8349 echo "${ECHO_T}yes" >&6; }
8350           else
8351             { echo "$as_me:$LINENO: result: no" >&5
8352 echo "${ECHO_T}no" >&6; }
8353           fi
8354
8355
8356           enablestring=
8357           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8358 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8359           no_cache=0
8360           # Check whether --enable-loggui was given.
8361 if test "${enable_loggui+set}" = set; then
8362   enableval=$enable_loggui;
8363                           if test "$enableval" = yes; then
8364                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
8365                           else
8366                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
8367                           fi
8368
8369 else
8370
8371                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
8372                           if test "x$LINE" != x ; then
8373                             eval "DEFAULT_$LINE"
8374                           else
8375                             no_cache=1
8376                           fi
8377
8378                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
8379
8380 fi
8381
8382
8383           eval "$ac_cv_use_loggui"
8384           if test "$no_cache" != 1; then
8385             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
8386           fi
8387
8388           if test "$wxUSE_LOGGUI" = yes; then
8389             { echo "$as_me:$LINENO: result: yes" >&5
8390 echo "${ECHO_T}yes" >&6; }
8391           else
8392             { echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6; }
8394           fi
8395
8396
8397           enablestring=
8398           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8399 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8400           no_cache=0
8401           # Check whether --enable-logwin was given.
8402 if test "${enable_logwin+set}" = set; then
8403   enableval=$enable_logwin;
8404                           if test "$enableval" = yes; then
8405                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8406                           else
8407                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
8408                           fi
8409
8410 else
8411
8412                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
8413                           if test "x$LINE" != x ; then
8414                             eval "DEFAULT_$LINE"
8415                           else
8416                             no_cache=1
8417                           fi
8418
8419                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
8420
8421 fi
8422
8423
8424           eval "$ac_cv_use_logwin"
8425           if test "$no_cache" != 1; then
8426             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
8427           fi
8428
8429           if test "$wxUSE_LOGWINDOW" = yes; then
8430             { echo "$as_me:$LINENO: result: yes" >&5
8431 echo "${ECHO_T}yes" >&6; }
8432           else
8433             { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8435           fi
8436
8437
8438           enablestring=
8439           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8440 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8441           no_cache=0
8442           # Check whether --enable-logdialog was given.
8443 if test "${enable_logdialog+set}" = set; then
8444   enableval=$enable_logdialog;
8445                           if test "$enableval" = yes; then
8446                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8447                           else
8448                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8449                           fi
8450
8451 else
8452
8453                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
8454                           if test "x$LINE" != x ; then
8455                             eval "DEFAULT_$LINE"
8456                           else
8457                             no_cache=1
8458                           fi
8459
8460                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
8461
8462 fi
8463
8464
8465           eval "$ac_cv_use_logdialog"
8466           if test "$no_cache" != 1; then
8467             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
8468           fi
8469
8470           if test "$wxUSE_LOGDIALOG" = yes; then
8471             { echo "$as_me:$LINENO: result: yes" >&5
8472 echo "${ECHO_T}yes" >&6; }
8473           else
8474             { echo "$as_me:$LINENO: result: no" >&5
8475 echo "${ECHO_T}no" >&6; }
8476           fi
8477
8478
8479           enablestring=
8480           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
8481 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
8482           no_cache=0
8483           # Check whether --enable-webkit was given.
8484 if test "${enable_webkit+set}" = set; then
8485   enableval=$enable_webkit;
8486                           if test "$enableval" = yes; then
8487                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
8488                           else
8489                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
8490                           fi
8491
8492 else
8493
8494                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
8495                           if test "x$LINE" != x ; then
8496                             eval "DEFAULT_$LINE"
8497                           else
8498                             no_cache=1
8499                           fi
8500
8501                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
8502
8503 fi
8504
8505
8506           eval "$ac_cv_use_webkit"
8507           if test "$no_cache" != 1; then
8508             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
8509           fi
8510
8511           if test "$wxUSE_WEBKIT" = yes; then
8512             { echo "$as_me:$LINENO: result: yes" >&5
8513 echo "${ECHO_T}yes" >&6; }
8514           else
8515             { echo "$as_me:$LINENO: result: no" >&5
8516 echo "${ECHO_T}no" >&6; }
8517           fi
8518
8519
8520           enablestring=
8521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
8522 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
8523           no_cache=0
8524           # Check whether --enable-richtext was given.
8525 if test "${enable_richtext+set}" = set; then
8526   enableval=$enable_richtext;
8527                           if test "$enableval" = yes; then
8528                             ac_cv_use_richtext='wxUSE_RICHTEXT=yes'
8529                           else
8530                             ac_cv_use_richtext='wxUSE_RICHTEXT=no'
8531                           fi
8532
8533 else
8534
8535                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
8536                           if test "x$LINE" != x ; then
8537                             eval "DEFAULT_$LINE"
8538                           else
8539                             no_cache=1
8540                           fi
8541
8542                           ac_cv_use_richtext='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
8543
8544 fi
8545
8546
8547           eval "$ac_cv_use_richtext"
8548           if test "$no_cache" != 1; then
8549             echo $ac_cv_use_richtext >> ${wx_arg_cache_file}.tmp
8550           fi
8551
8552           if test "$wxUSE_RICHTEXT" = yes; then
8553             { echo "$as_me:$LINENO: result: yes" >&5
8554 echo "${ECHO_T}yes" >&6; }
8555           else
8556             { echo "$as_me:$LINENO: result: no" >&5
8557 echo "${ECHO_T}no" >&6; }
8558           fi
8559
8560
8561           enablestring=
8562           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
8563 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
8564           no_cache=0
8565           # Check whether --enable-graphics_ctx was given.
8566 if test "${enable_graphics_ctx+set}" = set; then
8567   enableval=$enable_graphics_ctx;
8568                           if test "$enableval" = yes; then
8569                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
8570                           else
8571                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
8572                           fi
8573
8574 else
8575
8576                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
8577                           if test "x$LINE" != x ; then
8578                             eval "DEFAULT_$LINE"
8579                           else
8580                             no_cache=1
8581                           fi
8582
8583                           ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
8584
8585 fi
8586
8587
8588           eval "$ac_cv_use_graphics_ctx"
8589           if test "$no_cache" != 1; then
8590             echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
8591           fi
8592
8593           if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
8594             { echo "$as_me:$LINENO: result: yes" >&5
8595 echo "${ECHO_T}yes" >&6; }
8596           else
8597             { echo "$as_me:$LINENO: result: no" >&5
8598 echo "${ECHO_T}no" >&6; }
8599           fi
8600
8601
8602
8603           enablestring=
8604           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
8605 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
8606           no_cache=0
8607           # Check whether --enable-postscript was given.
8608 if test "${enable_postscript+set}" = set; then
8609   enableval=$enable_postscript;
8610                           if test "$enableval" = yes; then
8611                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
8612                           else
8613                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
8614                           fi
8615
8616 else
8617
8618                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
8619                           if test "x$LINE" != x ; then
8620                             eval "DEFAULT_$LINE"
8621                           else
8622                             no_cache=1
8623                           fi
8624
8625                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
8626
8627 fi
8628
8629
8630           eval "$ac_cv_use_postscript"
8631           if test "$no_cache" != 1; then
8632             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
8633           fi
8634
8635           if test "$wxUSE_POSTSCRIPT" = yes; then
8636             { echo "$as_me:$LINENO: result: yes" >&5
8637 echo "${ECHO_T}yes" >&6; }
8638           else
8639             { echo "$as_me:$LINENO: result: no" >&5
8640 echo "${ECHO_T}no" >&6; }
8641           fi
8642
8643
8644
8645
8646
8647           enablestring=
8648           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
8649 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
8650           no_cache=0
8651           # Check whether --enable-clipboard was given.
8652 if test "${enable_clipboard+set}" = set; then
8653   enableval=$enable_clipboard;
8654                           if test "$enableval" = yes; then
8655                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
8656                           else
8657                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
8658                           fi
8659
8660 else
8661
8662                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
8663                           if test "x$LINE" != x ; then
8664                             eval "DEFAULT_$LINE"
8665                           else
8666                             no_cache=1
8667                           fi
8668
8669                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
8670
8671 fi
8672
8673
8674           eval "$ac_cv_use_clipboard"
8675           if test "$no_cache" != 1; then
8676             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
8677           fi
8678
8679           if test "$wxUSE_CLIPBOARD" = yes; then
8680             { echo "$as_me:$LINENO: result: yes" >&5
8681 echo "${ECHO_T}yes" >&6; }
8682           else
8683             { echo "$as_me:$LINENO: result: no" >&5
8684 echo "${ECHO_T}no" >&6; }
8685           fi
8686
8687
8688           enablestring=
8689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
8690 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
8691           no_cache=0
8692           # Check whether --enable-dnd was given.
8693 if test "${enable_dnd+set}" = set; then
8694   enableval=$enable_dnd;
8695                           if test "$enableval" = yes; then
8696                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
8697                           else
8698                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
8699                           fi
8700
8701 else
8702
8703                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
8704                           if test "x$LINE" != x ; then
8705                             eval "DEFAULT_$LINE"
8706                           else
8707                             no_cache=1
8708                           fi
8709
8710                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
8711
8712 fi
8713
8714
8715           eval "$ac_cv_use_dnd"
8716           if test "$no_cache" != 1; then
8717             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
8718           fi
8719
8720           if test "$wxUSE_DRAG_AND_DROP" = yes; then
8721             { echo "$as_me:$LINENO: result: yes" >&5
8722 echo "${ECHO_T}yes" >&6; }
8723           else
8724             { echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6; }
8726           fi
8727
8728
8729           enablestring=
8730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8731 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
8732           no_cache=0
8733           # Check whether --enable-metafile was given.
8734 if test "${enable_metafile+set}" = set; then
8735   enableval=$enable_metafile;
8736                           if test "$enableval" = yes; then
8737                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8738                           else
8739                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8740                           fi
8741
8742 else
8743
8744                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
8745                           if test "x$LINE" != x ; then
8746                             eval "DEFAULT_$LINE"
8747                           else
8748                             no_cache=1
8749                           fi
8750
8751                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8752
8753 fi
8754
8755
8756           eval "$ac_cv_use_metafile"
8757           if test "$no_cache" != 1; then
8758             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8759           fi
8760
8761           if test "$wxUSE_METAFILE" = yes; then
8762             { echo "$as_me:$LINENO: result: yes" >&5
8763 echo "${ECHO_T}yes" >&6; }
8764           else
8765             { echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6; }
8767           fi
8768
8769
8770
8771
8772
8773           enablestring=
8774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
8775 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
8776           no_cache=0
8777           # Check whether --enable-controls was given.
8778 if test "${enable_controls+set}" = set; then
8779   enableval=$enable_controls;
8780                           if test "$enableval" = yes; then
8781                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
8782                           else
8783                             ac_cv_use_controls='wxUSE_CONTROLS=no'
8784                           fi
8785
8786 else
8787
8788                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
8789                           if test "x$LINE" != x ; then
8790                             eval "DEFAULT_$LINE"
8791                           else
8792                             no_cache=1
8793                           fi
8794
8795                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
8796
8797 fi
8798
8799
8800           eval "$ac_cv_use_controls"
8801           if test "$no_cache" != 1; then
8802             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
8803           fi
8804
8805           if test "$wxUSE_CONTROLS" = yes; then
8806             { echo "$as_me:$LINENO: result: yes" >&5
8807 echo "${ECHO_T}yes" >&6; }
8808           else
8809             { echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6; }
8811           fi
8812
8813
8814 if test "$wxUSE_CONTROLS" = "yes"; then
8815   DEFAULT_wxUSE_ACCEL=yes
8816   DEFAULT_wxUSE_ANIMATIONCTRL=yes
8817   DEFAULT_wxUSE_BMPBUTTON=yes
8818   DEFAULT_wxUSE_BUTTON=yes
8819   DEFAULT_wxUSE_CALCTRL=yes
8820   DEFAULT_wxUSE_CARET=yes
8821   DEFAULT_wxUSE_COMBOBOX=yes
8822   DEFAULT_wxUSE_CHECKBOX=yes
8823   DEFAULT_wxUSE_CHECKLISTBOX=yes
8824   DEFAULT_wxUSE_CHOICE=yes
8825   DEFAULT_wxUSE_CHOICEBOOK=yes
8826   DEFAULT_wxUSE_COLLPANE=yes
8827   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
8828   DEFAULT_wxUSE_COMBOBOX=yes
8829   DEFAULT_wxUSE_DATEPICKCTRL=yes
8830   DEFAULT_wxUSE_DISPLAY=yes
8831   DEFAULT_wxUSE_DETECT_SM=yes
8832   DEFAULT_wxUSE_DIRPICKERCTRL=yes
8833   DEFAULT_wxUSE_FILEPICKERCTRL=yes
8834   DEFAULT_wxUSE_FONTPICKERCTRL=yes
8835   DEFAULT_wxUSE_GAUGE=yes
8836   DEFAULT_wxUSE_GRID=yes
8837   DEFAULT_wxUSE_HYPERLINKCTRL=yes
8838   DEFAULT_wxUSE_DATAVIEWCTRL=no
8839   DEFAULT_wxUSE_IMAGLIST=yes
8840   DEFAULT_wxUSE_LISTBOOK=yes
8841   DEFAULT_wxUSE_LISTBOX=yes
8842   DEFAULT_wxUSE_LISTCTRL=yes
8843   DEFAULT_wxUSE_NOTEBOOK=yes
8844   DEFAULT_wxUSE_RADIOBOX=yes
8845   DEFAULT_wxUSE_RADIOBTN=yes
8846   DEFAULT_wxUSE_SASH=yes
8847   DEFAULT_wxUSE_SCROLLBAR=yes
8848   DEFAULT_wxUSE_SEARCHCTRL=yes
8849   DEFAULT_wxUSE_SLIDER=yes
8850   DEFAULT_wxUSE_SPINBTN=yes
8851   DEFAULT_wxUSE_SPINCTRL=yes
8852   DEFAULT_wxUSE_SPLITTER=yes
8853   DEFAULT_wxUSE_STATBMP=yes
8854   DEFAULT_wxUSE_STATBOX=yes
8855   DEFAULT_wxUSE_STATLINE=yes
8856   DEFAULT_wxUSE_STATUSBAR=yes
8857   DEFAULT_wxUSE_TAB_DIALOG=yes
8858   DEFAULT_wxUSE_TOGGLEBTN=yes
8859   DEFAULT_wxUSE_TOOLBAR=yes
8860   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
8861   DEFAULT_wxUSE_TOOLTIPS=yes
8862   DEFAULT_wxUSE_TREEBOOK=yes
8863   DEFAULT_wxUSE_TOOLBOOK=yes
8864   DEFAULT_wxUSE_TREECTRL=yes
8865   DEFAULT_wxUSE_POPUPWIN=yes
8866   DEFAULT_wxUSE_TIPWINDOW=yes
8867 elif test "$wxUSE_CONTROLS" = "no"; then
8868   DEFAULT_wxUSE_ACCEL=no
8869   DEFAULT_wxUSE_ANIMATIONCTRL=no
8870   DEFAULT_wxUSE_BMPBUTTON=no
8871   DEFAULT_wxUSE_BUTTON=no
8872   DEFAULT_wxUSE_CALCTRL=no
8873   DEFAULT_wxUSE_CARET=no
8874   DEFAULT_wxUSE_COLLPANE=no
8875   DEFAULT_wxUSE_COMBOBOX=no
8876   DEFAULT_wxUSE_CHECKBOX=no
8877   DEFAULT_wxUSE_CHECKLISTBOX=no
8878   DEFAULT_wxUSE_CHOICE=no
8879   DEFAULT_wxUSE_CHOICEBOOK=no
8880   DEFAULT_wxUSE_COLOURPICKERCTRL=no
8881   DEFAULT_wxUSE_COMBOBOX=no
8882   DEFAULT_wxUSE_DATEPICKCTRL=no
8883   DEFAULT_wxUSE_DISPLAY=no
8884   DEFAULT_wxUSE_DETECT_SM=no
8885   DEFAULT_wxUSE_DIRPICKERCTRL=no
8886   DEFAULT_wxUSE_FILEPICKERCTRL=no
8887   DEFAULT_wxUSE_FONTPICKERCTRL=no
8888   DEFAULT_wxUSE_GAUGE=no
8889   DEFAULT_wxUSE_GRID=no
8890   DEFAULT_wxUSE_HYPERLINKCTRL=no
8891   DEFAULT_wxUSE_DATAVIEWCTRL=no
8892   DEFAULT_wxUSE_IMAGLIST=no
8893   DEFAULT_wxUSE_LISTBOOK=no
8894   DEFAULT_wxUSE_LISTBOX=no
8895   DEFAULT_wxUSE_LISTCTRL=no
8896   DEFAULT_wxUSE_NOTEBOOK=no
8897   DEFAULT_wxUSE_RADIOBOX=no
8898   DEFAULT_wxUSE_RADIOBTN=no
8899   DEFAULT_wxUSE_SASH=no
8900   DEFAULT_wxUSE_SCROLLBAR=no
8901   DEFAULT_wxUSE_SEARCHCTRL=no
8902   DEFAULT_wxUSE_SLIDER=no
8903   DEFAULT_wxUSE_SPINBTN=no
8904   DEFAULT_wxUSE_SPINCTRL=no
8905   DEFAULT_wxUSE_SPLITTER=no
8906   DEFAULT_wxUSE_STATBMP=no
8907   DEFAULT_wxUSE_STATBOX=no
8908   DEFAULT_wxUSE_STATLINE=no
8909   DEFAULT_wxUSE_STATUSBAR=no
8910   DEFAULT_wxUSE_TAB_DIALOG=no
8911   DEFAULT_wxUSE_TOGGLEBTN=no
8912   DEFAULT_wxUSE_TOOLBAR=no
8913   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
8914   DEFAULT_wxUSE_TOOLTIPS=no
8915   DEFAULT_wxUSE_TREEBOOK=no
8916   DEFAULT_wxUSE_TOOLBOOK=no
8917   DEFAULT_wxUSE_TREECTRL=no
8918   DEFAULT_wxUSE_POPUPWIN=no
8919   DEFAULT_wxUSE_TIPWINDOW=no
8920 fi
8921
8922
8923           enablestring=
8924           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8925 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
8926           no_cache=0
8927           # Check whether --enable-accel was given.
8928 if test "${enable_accel+set}" = set; then
8929   enableval=$enable_accel;
8930                           if test "$enableval" = yes; then
8931                             ac_cv_use_accel='wxUSE_ACCEL=yes'
8932                           else
8933                             ac_cv_use_accel='wxUSE_ACCEL=no'
8934                           fi
8935
8936 else
8937
8938                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
8939                           if test "x$LINE" != x ; then
8940                             eval "DEFAULT_$LINE"
8941                           else
8942                             no_cache=1
8943                           fi
8944
8945                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8946
8947 fi
8948
8949
8950           eval "$ac_cv_use_accel"
8951           if test "$no_cache" != 1; then
8952             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8953           fi
8954
8955           if test "$wxUSE_ACCEL" = yes; then
8956             { echo "$as_me:$LINENO: result: yes" >&5
8957 echo "${ECHO_T}yes" >&6; }
8958           else
8959             { echo "$as_me:$LINENO: result: no" >&5
8960 echo "${ECHO_T}no" >&6; }
8961           fi
8962
8963
8964           enablestring=
8965           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8966 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
8967           no_cache=0
8968           # Check whether --enable-animatectrl was given.
8969 if test "${enable_animatectrl+set}" = set; then
8970   enableval=$enable_animatectrl;
8971                           if test "$enableval" = yes; then
8972                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8973                           else
8974                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8975                           fi
8976
8977 else
8978
8979                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
8980                           if test "x$LINE" != x ; then
8981                             eval "DEFAULT_$LINE"
8982                           else
8983                             no_cache=1
8984                           fi
8985
8986                           ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8987
8988 fi
8989
8990
8991           eval "$ac_cv_use_animatectrl"
8992           if test "$no_cache" != 1; then
8993             echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8994           fi
8995
8996           if test "$wxUSE_ANIMATIONCTRL" = yes; then
8997             { echo "$as_me:$LINENO: result: yes" >&5
8998 echo "${ECHO_T}yes" >&6; }
8999           else
9000             { echo "$as_me:$LINENO: result: no" >&5
9001 echo "${ECHO_T}no" >&6; }
9002           fi
9003
9004
9005           enablestring=
9006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9007 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9008           no_cache=0
9009           # Check whether --enable-button was given.
9010 if test "${enable_button+set}" = set; then
9011   enableval=$enable_button;
9012                           if test "$enableval" = yes; then
9013                             ac_cv_use_button='wxUSE_BUTTON=yes'
9014                           else
9015                             ac_cv_use_button='wxUSE_BUTTON=no'
9016                           fi
9017
9018 else
9019
9020                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
9021                           if test "x$LINE" != x ; then
9022                             eval "DEFAULT_$LINE"
9023                           else
9024                             no_cache=1
9025                           fi
9026
9027                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
9028
9029 fi
9030
9031
9032           eval "$ac_cv_use_button"
9033           if test "$no_cache" != 1; then
9034             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
9035           fi
9036
9037           if test "$wxUSE_BUTTON" = yes; then
9038             { echo "$as_me:$LINENO: result: yes" >&5
9039 echo "${ECHO_T}yes" >&6; }
9040           else
9041             { echo "$as_me:$LINENO: result: no" >&5
9042 echo "${ECHO_T}no" >&6; }
9043           fi
9044
9045
9046           enablestring=
9047           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9048 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9049           no_cache=0
9050           # Check whether --enable-bmpbutton was given.
9051 if test "${enable_bmpbutton+set}" = set; then
9052   enableval=$enable_bmpbutton;
9053                           if test "$enableval" = yes; then
9054                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9055                           else
9056                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9057                           fi
9058
9059 else
9060
9061                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
9062                           if test "x$LINE" != x ; then
9063                             eval "DEFAULT_$LINE"
9064                           else
9065                             no_cache=1
9066                           fi
9067
9068                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
9069
9070 fi
9071
9072
9073           eval "$ac_cv_use_bmpbutton"
9074           if test "$no_cache" != 1; then
9075             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
9076           fi
9077
9078           if test "$wxUSE_BMPBUTTON" = yes; then
9079             { echo "$as_me:$LINENO: result: yes" >&5
9080 echo "${ECHO_T}yes" >&6; }
9081           else
9082             { echo "$as_me:$LINENO: result: no" >&5
9083 echo "${ECHO_T}no" >&6; }
9084           fi
9085
9086
9087           enablestring=
9088           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9089 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9090           no_cache=0
9091           # Check whether --enable-bmpcombobox was given.
9092 if test "${enable_bmpcombobox+set}" = set; then
9093   enableval=$enable_bmpcombobox;
9094                           if test "$enableval" = yes; then
9095                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9096                           else
9097                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9098                           fi
9099
9100 else
9101
9102                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
9103                           if test "x$LINE" != x ; then
9104                             eval "DEFAULT_$LINE"
9105                           else
9106                             no_cache=1
9107                           fi
9108
9109                           ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
9110
9111 fi
9112
9113
9114           eval "$ac_cv_use_bmpcombobox"
9115           if test "$no_cache" != 1; then
9116             echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
9117           fi
9118
9119           if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
9120             { echo "$as_me:$LINENO: result: yes" >&5
9121 echo "${ECHO_T}yes" >&6; }
9122           else
9123             { echo "$as_me:$LINENO: result: no" >&5
9124 echo "${ECHO_T}no" >&6; }
9125           fi
9126
9127
9128           enablestring=
9129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9130 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9131           no_cache=0
9132           # Check whether --enable-calendar was given.
9133 if test "${enable_calendar+set}" = set; then
9134   enableval=$enable_calendar;
9135                           if test "$enableval" = yes; then
9136                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
9137                           else
9138                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
9139                           fi
9140
9141 else
9142
9143                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
9144                           if test "x$LINE" != x ; then
9145                             eval "DEFAULT_$LINE"
9146                           else
9147                             no_cache=1
9148                           fi
9149
9150                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
9151
9152 fi
9153
9154
9155           eval "$ac_cv_use_calendar"
9156           if test "$no_cache" != 1; then
9157             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
9158           fi
9159
9160           if test "$wxUSE_CALCTRL" = yes; then
9161             { echo "$as_me:$LINENO: result: yes" >&5
9162 echo "${ECHO_T}yes" >&6; }
9163           else
9164             { echo "$as_me:$LINENO: result: no" >&5
9165 echo "${ECHO_T}no" >&6; }
9166           fi
9167
9168
9169           enablestring=
9170           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9171 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9172           no_cache=0
9173           # Check whether --enable-caret was given.
9174 if test "${enable_caret+set}" = set; then
9175   enableval=$enable_caret;
9176                           if test "$enableval" = yes; then
9177                             ac_cv_use_caret='wxUSE_CARET=yes'
9178                           else
9179                             ac_cv_use_caret='wxUSE_CARET=no'
9180                           fi
9181
9182 else
9183
9184                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
9185                           if test "x$LINE" != x ; then
9186                             eval "DEFAULT_$LINE"
9187                           else
9188                             no_cache=1
9189                           fi
9190
9191                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
9192
9193 fi
9194
9195
9196           eval "$ac_cv_use_caret"
9197           if test "$no_cache" != 1; then
9198             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
9199           fi
9200
9201           if test "$wxUSE_CARET" = yes; then
9202             { echo "$as_me:$LINENO: result: yes" >&5
9203 echo "${ECHO_T}yes" >&6; }
9204           else
9205             { echo "$as_me:$LINENO: result: no" >&5
9206 echo "${ECHO_T}no" >&6; }
9207           fi
9208
9209
9210           enablestring=
9211           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9212 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9213           no_cache=0
9214           # Check whether --enable-checkbox was given.
9215 if test "${enable_checkbox+set}" = set; then
9216   enableval=$enable_checkbox;
9217                           if test "$enableval" = yes; then
9218                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9219                           else
9220                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
9221                           fi
9222
9223 else
9224
9225                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
9226                           if test "x$LINE" != x ; then
9227                             eval "DEFAULT_$LINE"
9228                           else
9229                             no_cache=1
9230                           fi
9231
9232                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
9233
9234 fi
9235
9236
9237           eval "$ac_cv_use_checkbox"
9238           if test "$no_cache" != 1; then
9239             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
9240           fi
9241
9242           if test "$wxUSE_CHECKBOX" = yes; then
9243             { echo "$as_me:$LINENO: result: yes" >&5
9244 echo "${ECHO_T}yes" >&6; }
9245           else
9246             { echo "$as_me:$LINENO: result: no" >&5
9247 echo "${ECHO_T}no" >&6; }
9248           fi
9249
9250
9251           enablestring=
9252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9253 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9254           no_cache=0
9255           # Check whether --enable-checklst was given.
9256 if test "${enable_checklst+set}" = set; then
9257   enableval=$enable_checklst;
9258                           if test "$enableval" = yes; then
9259                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
9260                           else
9261                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
9262                           fi
9263
9264 else
9265
9266                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
9267                           if test "x$LINE" != x ; then
9268                             eval "DEFAULT_$LINE"
9269                           else
9270                             no_cache=1
9271                           fi
9272
9273                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
9274
9275 fi
9276
9277
9278           eval "$ac_cv_use_checklst"
9279           if test "$no_cache" != 1; then
9280             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
9281           fi
9282
9283           if test "$wxUSE_CHECKLST" = yes; then
9284             { echo "$as_me:$LINENO: result: yes" >&5
9285 echo "${ECHO_T}yes" >&6; }
9286           else
9287             { echo "$as_me:$LINENO: result: no" >&5
9288 echo "${ECHO_T}no" >&6; }
9289           fi
9290
9291
9292           enablestring=
9293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9294 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9295           no_cache=0
9296           # Check whether --enable-choice was given.
9297 if test "${enable_choice+set}" = set; then
9298   enableval=$enable_choice;
9299                           if test "$enableval" = yes; then
9300                             ac_cv_use_choice='wxUSE_CHOICE=yes'
9301                           else
9302                             ac_cv_use_choice='wxUSE_CHOICE=no'
9303                           fi
9304
9305 else
9306
9307                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
9308                           if test "x$LINE" != x ; then
9309                             eval "DEFAULT_$LINE"
9310                           else
9311                             no_cache=1
9312                           fi
9313
9314                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
9315
9316 fi
9317
9318
9319           eval "$ac_cv_use_choice"
9320           if test "$no_cache" != 1; then
9321             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
9322           fi
9323
9324           if test "$wxUSE_CHOICE" = yes; then
9325             { echo "$as_me:$LINENO: result: yes" >&5
9326 echo "${ECHO_T}yes" >&6; }
9327           else
9328             { echo "$as_me:$LINENO: result: no" >&5
9329 echo "${ECHO_T}no" >&6; }
9330           fi
9331
9332
9333           enablestring=
9334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9335 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9336           no_cache=0
9337           # Check whether --enable-choicebook was given.
9338 if test "${enable_choicebook+set}" = set; then
9339   enableval=$enable_choicebook;
9340                           if test "$enableval" = yes; then
9341                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9342                           else
9343                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9344                           fi
9345
9346 else
9347
9348                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
9349                           if test "x$LINE" != x ; then
9350                             eval "DEFAULT_$LINE"
9351                           else
9352                             no_cache=1
9353                           fi
9354
9355                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
9356
9357 fi
9358
9359
9360           eval "$ac_cv_use_choicebook"
9361           if test "$no_cache" != 1; then
9362             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
9363           fi
9364
9365           if test "$wxUSE_CHOICEBOOK" = yes; then
9366             { echo "$as_me:$LINENO: result: yes" >&5
9367 echo "${ECHO_T}yes" >&6; }
9368           else
9369             { echo "$as_me:$LINENO: result: no" >&5
9370 echo "${ECHO_T}no" >&6; }
9371           fi
9372
9373
9374           enablestring=
9375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9376 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9377           no_cache=0
9378           # Check whether --enable-collpane was given.
9379 if test "${enable_collpane+set}" = set; then
9380   enableval=$enable_collpane;
9381                           if test "$enableval" = yes; then
9382                             ac_cv_use_collpane='wxUSE_COLLPANE=yes'
9383                           else
9384                             ac_cv_use_collpane='wxUSE_COLLPANE=no'
9385                           fi
9386
9387 else
9388
9389                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
9390                           if test "x$LINE" != x ; then
9391                             eval "DEFAULT_$LINE"
9392                           else
9393                             no_cache=1
9394                           fi
9395
9396                           ac_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE
9397
9398 fi
9399
9400
9401           eval "$ac_cv_use_collpane"
9402           if test "$no_cache" != 1; then
9403             echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp
9404           fi
9405
9406           if test "$wxUSE_COLLPANE" = yes; then
9407             { echo "$as_me:$LINENO: result: yes" >&5
9408 echo "${ECHO_T}yes" >&6; }
9409           else
9410             { echo "$as_me:$LINENO: result: no" >&5
9411 echo "${ECHO_T}no" >&6; }
9412           fi
9413
9414
9415           enablestring=
9416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
9417 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
9418           no_cache=0
9419           # Check whether --enable-colourpicker was given.
9420 if test "${enable_colourpicker+set}" = set; then
9421   enableval=$enable_colourpicker;
9422                           if test "$enableval" = yes; then
9423                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
9424                           else
9425                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
9426                           fi
9427
9428 else
9429
9430                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
9431                           if test "x$LINE" != x ; then
9432                             eval "DEFAULT_$LINE"
9433                           else
9434                             no_cache=1
9435                           fi
9436
9437                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
9438
9439 fi
9440
9441
9442           eval "$ac_cv_use_colourpicker"
9443           if test "$no_cache" != 1; then
9444             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
9445           fi
9446
9447           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
9448             { echo "$as_me:$LINENO: result: yes" >&5
9449 echo "${ECHO_T}yes" >&6; }
9450           else
9451             { echo "$as_me:$LINENO: result: no" >&5
9452 echo "${ECHO_T}no" >&6; }
9453           fi
9454
9455
9456           enablestring=
9457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
9458 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
9459           no_cache=0
9460           # Check whether --enable-combobox was given.
9461 if test "${enable_combobox+set}" = set; then
9462   enableval=$enable_combobox;
9463                           if test "$enableval" = yes; then
9464                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
9465                           else
9466                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
9467                           fi
9468
9469 else
9470
9471                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
9472                           if test "x$LINE" != x ; then
9473                             eval "DEFAULT_$LINE"
9474                           else
9475                             no_cache=1
9476                           fi
9477
9478                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
9479
9480 fi
9481
9482
9483           eval "$ac_cv_use_combobox"
9484           if test "$no_cache" != 1; then
9485             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
9486           fi
9487
9488           if test "$wxUSE_COMBOBOX" = yes; then
9489             { echo "$as_me:$LINENO: result: yes" >&5
9490 echo "${ECHO_T}yes" >&6; }
9491           else
9492             { echo "$as_me:$LINENO: result: no" >&5
9493 echo "${ECHO_T}no" >&6; }
9494           fi
9495
9496
9497           enablestring=
9498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
9499 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
9500           no_cache=0
9501           # Check whether --enable-comboctrl was given.
9502 if test "${enable_comboctrl+set}" = set; then
9503   enableval=$enable_comboctrl;
9504                           if test "$enableval" = yes; then
9505                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
9506                           else
9507                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
9508                           fi
9509
9510 else
9511
9512                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
9513                           if test "x$LINE" != x ; then
9514                             eval "DEFAULT_$LINE"
9515                           else
9516                             no_cache=1
9517                           fi
9518
9519                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
9520
9521 fi
9522
9523
9524           eval "$ac_cv_use_comboctrl"
9525           if test "$no_cache" != 1; then
9526             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
9527           fi
9528
9529           if test "$wxUSE_COMBOCTRL" = yes; then
9530             { echo "$as_me:$LINENO: result: yes" >&5
9531 echo "${ECHO_T}yes" >&6; }
9532           else
9533             { echo "$as_me:$LINENO: result: no" >&5
9534 echo "${ECHO_T}no" >&6; }
9535           fi
9536
9537
9538           enablestring=
9539           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
9540 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
9541           no_cache=0
9542           # Check whether --enable-datepick was given.
9543 if test "${enable_datepick+set}" = set; then
9544   enableval=$enable_datepick;
9545                           if test "$enableval" = yes; then
9546                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
9547                           else
9548                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
9549                           fi
9550
9551 else
9552
9553                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
9554                           if test "x$LINE" != x ; then
9555                             eval "DEFAULT_$LINE"
9556                           else
9557                             no_cache=1
9558                           fi
9559
9560                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
9561
9562 fi
9563
9564
9565           eval "$ac_cv_use_datepick"
9566           if test "$no_cache" != 1; then
9567             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
9568           fi
9569
9570           if test "$wxUSE_DATEPICKCTRL" = yes; then
9571             { echo "$as_me:$LINENO: result: yes" >&5
9572 echo "${ECHO_T}yes" >&6; }
9573           else
9574             { echo "$as_me:$LINENO: result: no" >&5
9575 echo "${ECHO_T}no" >&6; }
9576           fi
9577
9578
9579           enablestring=
9580           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
9581 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
9582           no_cache=0
9583           # Check whether --enable-dirpicker was given.
9584 if test "${enable_dirpicker+set}" = set; then
9585   enableval=$enable_dirpicker;
9586                           if test "$enableval" = yes; then
9587                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
9588                           else
9589                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
9590                           fi
9591
9592 else
9593
9594                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
9595                           if test "x$LINE" != x ; then
9596                             eval "DEFAULT_$LINE"
9597                           else
9598                             no_cache=1
9599                           fi
9600
9601                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
9602
9603 fi
9604
9605
9606           eval "$ac_cv_use_dirpicker"
9607           if test "$no_cache" != 1; then
9608             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
9609           fi
9610
9611           if test "$wxUSE_DIRPICKERCTRL" = yes; then
9612             { echo "$as_me:$LINENO: result: yes" >&5
9613 echo "${ECHO_T}yes" >&6; }
9614           else
9615             { echo "$as_me:$LINENO: result: no" >&5
9616 echo "${ECHO_T}no" >&6; }
9617           fi
9618
9619
9620           enablestring=
9621           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
9622 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
9623           no_cache=0
9624           # Check whether --enable-display was given.
9625 if test "${enable_display+set}" = set; then
9626   enableval=$enable_display;
9627                           if test "$enableval" = yes; then
9628                             ac_cv_use_display='wxUSE_DISPLAY=yes'
9629                           else
9630                             ac_cv_use_display='wxUSE_DISPLAY=no'
9631                           fi
9632
9633 else
9634
9635                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
9636                           if test "x$LINE" != x ; then
9637                             eval "DEFAULT_$LINE"
9638                           else
9639                             no_cache=1
9640                           fi
9641
9642                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
9643
9644 fi
9645
9646
9647           eval "$ac_cv_use_display"
9648           if test "$no_cache" != 1; then
9649             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
9650           fi
9651
9652           if test "$wxUSE_DISPLAY" = yes; then
9653             { echo "$as_me:$LINENO: result: yes" >&5
9654 echo "${ECHO_T}yes" >&6; }
9655           else
9656             { echo "$as_me:$LINENO: result: no" >&5
9657 echo "${ECHO_T}no" >&6; }
9658           fi
9659
9660
9661           enablestring=
9662           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
9663 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
9664           no_cache=0
9665           # Check whether --enable-detect_sm was given.
9666 if test "${enable_detect_sm+set}" = set; then
9667   enableval=$enable_detect_sm;
9668                           if test "$enableval" = yes; then
9669                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
9670                           else
9671                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
9672                           fi
9673
9674 else
9675
9676                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
9677                           if test "x$LINE" != x ; then
9678                             eval "DEFAULT_$LINE"
9679                           else
9680                             no_cache=1
9681                           fi
9682
9683                           ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
9684
9685 fi
9686
9687
9688           eval "$ac_cv_use_detect_sm"
9689           if test "$no_cache" != 1; then
9690             echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
9691           fi
9692
9693           if test "$wxUSE_DETECT_SM" = yes; then
9694             { echo "$as_me:$LINENO: result: yes" >&5
9695 echo "${ECHO_T}yes" >&6; }
9696           else
9697             { echo "$as_me:$LINENO: result: no" >&5
9698 echo "${ECHO_T}no" >&6; }
9699           fi
9700
9701
9702           enablestring=
9703           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
9704 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
9705           no_cache=0
9706           # Check whether --enable-editablebox was given.
9707 if test "${enable_editablebox+set}" = set; then
9708   enableval=$enable_editablebox;
9709                           if test "$enableval" = yes; then
9710                             ac_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
9711                           else
9712                             ac_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
9713                           fi
9714
9715 else
9716
9717                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
9718                           if test "x$LINE" != x ; then
9719                             eval "DEFAULT_$LINE"
9720                           else
9721                             no_cache=1
9722                           fi
9723
9724                           ac_cv_use_editablebox='wxUSE_EDITABLELISTBOX='$DEFAULT_wxUSE_EDITABLELISTBOX
9725
9726 fi
9727
9728
9729           eval "$ac_cv_use_editablebox"
9730           if test "$no_cache" != 1; then
9731             echo $ac_cv_use_editablebox >> ${wx_arg_cache_file}.tmp
9732           fi
9733
9734           if test "$wxUSE_EDITABLELISTBOX" = yes; then
9735             { echo "$as_me:$LINENO: result: yes" >&5
9736 echo "${ECHO_T}yes" >&6; }
9737           else
9738             { echo "$as_me:$LINENO: result: no" >&5
9739 echo "${ECHO_T}no" >&6; }
9740           fi
9741
9742
9743           enablestring=
9744           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
9745 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
9746           no_cache=0
9747           # Check whether --enable-filepicker was given.
9748 if test "${enable_filepicker+set}" = set; then
9749   enableval=$enable_filepicker;
9750                           if test "$enableval" = yes; then
9751                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
9752                           else
9753                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
9754                           fi
9755
9756 else
9757
9758                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
9759                           if test "x$LINE" != x ; then
9760                             eval "DEFAULT_$LINE"
9761                           else
9762                             no_cache=1
9763                           fi
9764
9765                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
9766
9767 fi
9768
9769
9770           eval "$ac_cv_use_filepicker"
9771           if test "$no_cache" != 1; then
9772             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
9773           fi
9774
9775           if test "$wxUSE_FILEPICKERCTRL" = yes; then
9776             { echo "$as_me:$LINENO: result: yes" >&5
9777 echo "${ECHO_T}yes" >&6; }
9778           else
9779             { echo "$as_me:$LINENO: result: no" >&5
9780 echo "${ECHO_T}no" >&6; }
9781           fi
9782
9783
9784           enablestring=
9785           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
9786 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
9787           no_cache=0
9788           # Check whether --enable-fontpicker was given.
9789 if test "${enable_fontpicker+set}" = set; then
9790   enableval=$enable_fontpicker;
9791                           if test "$enableval" = yes; then
9792                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
9793                           else
9794                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
9795                           fi
9796
9797 else
9798
9799                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
9800                           if test "x$LINE" != x ; then
9801                             eval "DEFAULT_$LINE"
9802                           else
9803                             no_cache=1
9804                           fi
9805
9806                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
9807
9808 fi
9809
9810
9811           eval "$ac_cv_use_fontpicker"
9812           if test "$no_cache" != 1; then
9813             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
9814           fi
9815
9816           if test "$wxUSE_FONTPICKERCTRL" = yes; then
9817             { echo "$as_me:$LINENO: result: yes" >&5
9818 echo "${ECHO_T}yes" >&6; }
9819           else
9820             { echo "$as_me:$LINENO: result: no" >&5
9821 echo "${ECHO_T}no" >&6; }
9822           fi
9823
9824
9825           enablestring=
9826           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
9827 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
9828           no_cache=0
9829           # Check whether --enable-gauge was given.
9830 if test "${enable_gauge+set}" = set; then
9831   enableval=$enable_gauge;
9832                           if test "$enableval" = yes; then
9833                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
9834                           else
9835                             ac_cv_use_gauge='wxUSE_GAUGE=no'
9836                           fi
9837
9838 else
9839
9840                           LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
9841                           if test "x$LINE" != x ; then
9842                             eval "DEFAULT_$LINE"
9843                           else
9844                             no_cache=1
9845                           fi
9846
9847                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
9848
9849 fi
9850
9851
9852           eval "$ac_cv_use_gauge"
9853           if test "$no_cache" != 1; then
9854             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
9855           fi
9856
9857           if test "$wxUSE_GAUGE" = yes; then
9858             { echo "$as_me:$LINENO: result: yes" >&5
9859 echo "${ECHO_T}yes" >&6; }
9860           else
9861             { echo "$as_me:$LINENO: result: no" >&5
9862 echo "${ECHO_T}no" >&6; }
9863           fi
9864
9865
9866           enablestring=
9867           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
9868 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
9869           no_cache=0
9870           # Check whether --enable-grid was given.
9871 if test "${enable_grid+set}" = set; then
9872   enableval=$enable_grid;
9873                           if test "$enableval" = yes; then
9874                             ac_cv_use_grid='wxUSE_GRID=yes'
9875                           else
9876                             ac_cv_use_grid='wxUSE_GRID=no'
9877                           fi
9878
9879 else
9880
9881                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
9882                           if test "x$LINE" != x ; then
9883                             eval "DEFAULT_$LINE"
9884                           else
9885                             no_cache=1
9886                           fi
9887
9888                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
9889
9890 fi
9891
9892
9893           eval "$ac_cv_use_grid"
9894           if test "$no_cache" != 1; then
9895             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
9896           fi
9897
9898           if test "$wxUSE_GRID" = yes; then
9899             { echo "$as_me:$LINENO: result: yes" >&5
9900 echo "${ECHO_T}yes" >&6; }
9901           else
9902             { echo "$as_me:$LINENO: result: no" >&5
9903 echo "${ECHO_T}no" >&6; }
9904           fi
9905
9906
9907           enablestring=
9908           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
9909 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
9910           no_cache=0
9911           # Check whether --enable-dataviewctrl was given.
9912 if test "${enable_dataviewctrl+set}" = set; then
9913   enableval=$enable_dataviewctrl;
9914                           if test "$enableval" = yes; then
9915                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
9916                           else
9917                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
9918                           fi
9919
9920 else
9921
9922                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
9923                           if test "x$LINE" != x ; then
9924                             eval "DEFAULT_$LINE"
9925                           else
9926                             no_cache=1
9927                           fi
9928
9929                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
9930
9931 fi
9932
9933
9934           eval "$ac_cv_use_dataviewctrl"
9935           if test "$no_cache" != 1; then
9936             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
9937           fi
9938
9939           if test "$wxUSE_DATAVIEWCTRL" = yes; then
9940             { echo "$as_me:$LINENO: result: yes" >&5
9941 echo "${ECHO_T}yes" >&6; }
9942           else
9943             { echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6; }
9945           fi
9946
9947
9948           enablestring=
9949           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9950 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
9951           no_cache=0
9952           # Check whether --enable-hyperlink was given.
9953 if test "${enable_hyperlink+set}" = set; then
9954   enableval=$enable_hyperlink;
9955                           if test "$enableval" = yes; then
9956                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9957                           else
9958                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9959                           fi
9960
9961 else
9962
9963                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
9964                           if test "x$LINE" != x ; then
9965                             eval "DEFAULT_$LINE"
9966                           else
9967                             no_cache=1
9968                           fi
9969
9970                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9971
9972 fi
9973
9974
9975           eval "$ac_cv_use_hyperlink"
9976           if test "$no_cache" != 1; then
9977             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9978           fi
9979
9980           if test "$wxUSE_HYPERLINKCTRL" = yes; then
9981             { echo "$as_me:$LINENO: result: yes" >&5
9982 echo "${ECHO_T}yes" >&6; }
9983           else
9984             { echo "$as_me:$LINENO: result: no" >&5
9985 echo "${ECHO_T}no" >&6; }
9986           fi
9987
9988
9989           enablestring=
9990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9991 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
9992           no_cache=0
9993           # Check whether --enable-imaglist was given.
9994 if test "${enable_imaglist+set}" = set; then
9995   enableval=$enable_imaglist;
9996                           if test "$enableval" = yes; then
9997                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9998                           else
9999                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
10000                           fi
10001
10002 else
10003
10004                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
10005                           if test "x$LINE" != x ; then
10006                             eval "DEFAULT_$LINE"
10007                           else
10008                             no_cache=1
10009                           fi
10010
10011                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10012
10013 fi
10014
10015
10016           eval "$ac_cv_use_imaglist"
10017           if test "$no_cache" != 1; then
10018             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
10019           fi
10020
10021           if test "$wxUSE_IMAGLIST" = yes; then
10022             { echo "$as_me:$LINENO: result: yes" >&5
10023 echo "${ECHO_T}yes" >&6; }
10024           else
10025             { echo "$as_me:$LINENO: result: no" >&5
10026 echo "${ECHO_T}no" >&6; }
10027           fi
10028
10029
10030           enablestring=
10031           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10032 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10033           no_cache=0
10034           # Check whether --enable-listbook was given.
10035 if test "${enable_listbook+set}" = set; then
10036   enableval=$enable_listbook;
10037                           if test "$enableval" = yes; then
10038                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
10039                           else
10040                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
10041                           fi
10042
10043 else
10044
10045                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
10046                           if test "x$LINE" != x ; then
10047                             eval "DEFAULT_$LINE"
10048                           else
10049                             no_cache=1
10050                           fi
10051
10052                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
10053
10054 fi
10055
10056
10057           eval "$ac_cv_use_listbook"
10058           if test "$no_cache" != 1; then
10059             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
10060           fi
10061
10062           if test "$wxUSE_LISTBOOK" = yes; then
10063             { echo "$as_me:$LINENO: result: yes" >&5
10064 echo "${ECHO_T}yes" >&6; }
10065           else
10066             { echo "$as_me:$LINENO: result: no" >&5
10067 echo "${ECHO_T}no" >&6; }
10068           fi
10069
10070
10071           enablestring=
10072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10073 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10074           no_cache=0
10075           # Check whether --enable-listbox was given.
10076 if test "${enable_listbox+set}" = set; then
10077   enableval=$enable_listbox;
10078                           if test "$enableval" = yes; then
10079                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
10080                           else
10081                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
10082                           fi
10083
10084 else
10085
10086                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
10087                           if test "x$LINE" != x ; then
10088                             eval "DEFAULT_$LINE"
10089                           else
10090                             no_cache=1
10091                           fi
10092
10093                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10094
10095 fi
10096
10097
10098           eval "$ac_cv_use_listbox"
10099           if test "$no_cache" != 1; then
10100             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
10101           fi
10102
10103           if test "$wxUSE_LISTBOX" = yes; then
10104             { echo "$as_me:$LINENO: result: yes" >&5
10105 echo "${ECHO_T}yes" >&6; }
10106           else
10107             { echo "$as_me:$LINENO: result: no" >&5
10108 echo "${ECHO_T}no" >&6; }
10109           fi
10110
10111
10112           enablestring=
10113           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10114 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10115           no_cache=0
10116           # Check whether --enable-listctrl was given.
10117 if test "${enable_listctrl+set}" = set; then
10118   enableval=$enable_listctrl;
10119                           if test "$enableval" = yes; then
10120                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10121                           else
10122                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
10123                           fi
10124
10125 else
10126
10127                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
10128                           if test "x$LINE" != x ; then
10129                             eval "DEFAULT_$LINE"
10130                           else
10131                             no_cache=1
10132                           fi
10133
10134                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10135
10136 fi
10137
10138
10139           eval "$ac_cv_use_listctrl"
10140           if test "$no_cache" != 1; then
10141             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
10142           fi
10143
10144           if test "$wxUSE_LISTCTRL" = yes; then
10145             { echo "$as_me:$LINENO: result: yes" >&5
10146 echo "${ECHO_T}yes" >&6; }
10147           else
10148             { echo "$as_me:$LINENO: result: no" >&5
10149 echo "${ECHO_T}no" >&6; }
10150           fi
10151
10152
10153           enablestring=
10154           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10155 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10156           no_cache=0
10157           # Check whether --enable-notebook was given.
10158 if test "${enable_notebook+set}" = set; then
10159   enableval=$enable_notebook;
10160                           if test "$enableval" = yes; then
10161                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10162                           else
10163                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
10164                           fi
10165
10166 else
10167
10168                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
10169                           if test "x$LINE" != x ; then
10170                             eval "DEFAULT_$LINE"
10171                           else
10172                             no_cache=1
10173                           fi
10174
10175                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10176
10177 fi
10178
10179
10180           eval "$ac_cv_use_notebook"
10181           if test "$no_cache" != 1; then
10182             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
10183           fi
10184
10185           if test "$wxUSE_NOTEBOOK" = yes; then
10186             { echo "$as_me:$LINENO: result: yes" >&5
10187 echo "${ECHO_T}yes" >&6; }
10188           else
10189             { echo "$as_me:$LINENO: result: no" >&5
10190 echo "${ECHO_T}no" >&6; }
10191           fi
10192
10193
10194           enablestring=
10195           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
10196 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
10197           no_cache=0
10198           # Check whether --enable-odcombobox was given.
10199 if test "${enable_odcombobox+set}" = set; then
10200   enableval=$enable_odcombobox;
10201                           if test "$enableval" = yes; then
10202                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
10203                           else
10204                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
10205                           fi
10206
10207 else
10208
10209                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
10210                           if test "x$LINE" != x ; then
10211                             eval "DEFAULT_$LINE"
10212                           else
10213                             no_cache=1
10214                           fi
10215
10216                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
10217
10218 fi
10219
10220
10221           eval "$ac_cv_use_odcombobox"
10222           if test "$no_cache" != 1; then
10223             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
10224           fi
10225
10226           if test "$wxUSE_ODCOMBOBOX" = yes; then
10227             { echo "$as_me:$LINENO: result: yes" >&5
10228 echo "${ECHO_T}yes" >&6; }
10229           else
10230             { echo "$as_me:$LINENO: result: no" >&5
10231 echo "${ECHO_T}no" >&6; }
10232           fi
10233
10234
10235           enablestring=
10236           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
10237 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
10238           no_cache=0
10239           # Check whether --enable-radiobox was given.
10240 if test "${enable_radiobox+set}" = set; then
10241   enableval=$enable_radiobox;
10242                           if test "$enableval" = yes; then
10243                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
10244                           else
10245                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
10246                           fi
10247
10248 else
10249
10250                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
10251                           if test "x$LINE" != x ; then
10252                             eval "DEFAULT_$LINE"
10253                           else
10254                             no_cache=1
10255                           fi
10256
10257                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10258
10259 fi
10260
10261
10262           eval "$ac_cv_use_radiobox"
10263           if test "$no_cache" != 1; then
10264             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
10265           fi
10266
10267           if test "$wxUSE_RADIOBOX" = yes; then
10268             { echo "$as_me:$LINENO: result: yes" >&5
10269 echo "${ECHO_T}yes" >&6; }
10270           else
10271             { echo "$as_me:$LINENO: result: no" >&5
10272 echo "${ECHO_T}no" >&6; }
10273           fi
10274
10275
10276           enablestring=
10277           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
10278 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
10279           no_cache=0
10280           # Check whether --enable-radiobtn was given.
10281 if test "${enable_radiobtn+set}" = set; then
10282   enableval=$enable_radiobtn;
10283                           if test "$enableval" = yes; then
10284                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
10285                           else
10286                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
10287                           fi
10288
10289 else
10290
10291                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
10292                           if test "x$LINE" != x ; then
10293                             eval "DEFAULT_$LINE"
10294                           else
10295                             no_cache=1
10296                           fi
10297
10298                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10299
10300 fi
10301
10302
10303           eval "$ac_cv_use_radiobtn"
10304           if test "$no_cache" != 1; then
10305             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
10306           fi
10307
10308           if test "$wxUSE_RADIOBTN" = yes; then
10309             { echo "$as_me:$LINENO: result: yes" >&5
10310 echo "${ECHO_T}yes" >&6; }
10311           else
10312             { echo "$as_me:$LINENO: result: no" >&5
10313 echo "${ECHO_T}no" >&6; }
10314           fi
10315
10316
10317           enablestring=
10318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
10319 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
10320           no_cache=0
10321           # Check whether --enable-sash was given.
10322 if test "${enable_sash+set}" = set; then
10323   enableval=$enable_sash;
10324                           if test "$enableval" = yes; then
10325                             ac_cv_use_sash='wxUSE_SASH=yes'
10326                           else
10327                             ac_cv_use_sash='wxUSE_SASH=no'
10328                           fi
10329
10330 else
10331
10332                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
10333                           if test "x$LINE" != x ; then
10334                             eval "DEFAULT_$LINE"
10335                           else
10336                             no_cache=1
10337                           fi
10338
10339                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10340
10341 fi
10342
10343
10344           eval "$ac_cv_use_sash"
10345           if test "$no_cache" != 1; then
10346             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
10347           fi
10348
10349           if test "$wxUSE_SASH" = yes; then
10350             { echo "$as_me:$LINENO: result: yes" >&5
10351 echo "${ECHO_T}yes" >&6; }
10352           else
10353             { echo "$as_me:$LINENO: result: no" >&5
10354 echo "${ECHO_T}no" >&6; }
10355           fi
10356
10357
10358           enablestring=
10359           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
10360 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
10361           no_cache=0
10362           # Check whether --enable-scrollbar was given.
10363 if test "${enable_scrollbar+set}" = set; then
10364   enableval=$enable_scrollbar;
10365                           if test "$enableval" = yes; then
10366                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
10367                           else
10368                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
10369                           fi
10370
10371 else
10372
10373                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
10374                           if test "x$LINE" != x ; then
10375                             eval "DEFAULT_$LINE"
10376                           else
10377                             no_cache=1
10378                           fi
10379
10380                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10381
10382 fi
10383
10384
10385           eval "$ac_cv_use_scrollbar"
10386           if test "$no_cache" != 1; then
10387             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
10388           fi
10389
10390           if test "$wxUSE_SCROLLBAR" = yes; then
10391             { echo "$as_me:$LINENO: result: yes" >&5
10392 echo "${ECHO_T}yes" >&6; }
10393           else
10394             { echo "$as_me:$LINENO: result: no" >&5
10395 echo "${ECHO_T}no" >&6; }
10396           fi
10397
10398
10399           enablestring=
10400           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
10401 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
10402           no_cache=0
10403           # Check whether --enable-searchctrl was given.
10404 if test "${enable_searchctrl+set}" = set; then
10405   enableval=$enable_searchctrl;
10406                           if test "$enableval" = yes; then
10407                             ac_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
10408                           else
10409                             ac_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
10410                           fi
10411
10412 else
10413
10414                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
10415                           if test "x$LINE" != x ; then
10416                             eval "DEFAULT_$LINE"
10417                           else
10418                             no_cache=1
10419                           fi
10420
10421                           ac_cv_use_searchctrl='wxUSE_SEARCHCTRL='$DEFAULT_wxUSE_SEARCHCTRL
10422
10423 fi
10424
10425
10426           eval "$ac_cv_use_searchctrl"
10427           if test "$no_cache" != 1; then
10428             echo $ac_cv_use_searchctrl >> ${wx_arg_cache_file}.tmp
10429           fi
10430
10431           if test "$wxUSE_SEARCHCTRL" = yes; then
10432             { echo "$as_me:$LINENO: result: yes" >&5
10433 echo "${ECHO_T}yes" >&6; }
10434           else
10435             { echo "$as_me:$LINENO: result: no" >&5
10436 echo "${ECHO_T}no" >&6; }
10437           fi
10438
10439
10440           enablestring=
10441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
10442 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
10443           no_cache=0
10444           # Check whether --enable-slider was given.
10445 if test "${enable_slider+set}" = set; then
10446   enableval=$enable_slider;
10447                           if test "$enableval" = yes; then
10448                             ac_cv_use_slider='wxUSE_SLIDER=yes'
10449                           else
10450                             ac_cv_use_slider='wxUSE_SLIDER=no'
10451                           fi
10452
10453 else
10454
10455                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
10456                           if test "x$LINE" != x ; then
10457                             eval "DEFAULT_$LINE"
10458                           else
10459                             no_cache=1
10460                           fi
10461
10462                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10463
10464 fi
10465
10466
10467           eval "$ac_cv_use_slider"
10468           if test "$no_cache" != 1; then
10469             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
10470           fi
10471
10472           if test "$wxUSE_SLIDER" = yes; then
10473             { echo "$as_me:$LINENO: result: yes" >&5
10474 echo "${ECHO_T}yes" >&6; }
10475           else
10476             { echo "$as_me:$LINENO: result: no" >&5
10477 echo "${ECHO_T}no" >&6; }
10478           fi
10479
10480
10481           enablestring=
10482           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
10483 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
10484           no_cache=0
10485           # Check whether --enable-spinbtn was given.
10486 if test "${enable_spinbtn+set}" = set; then
10487   enableval=$enable_spinbtn;
10488                           if test "$enableval" = yes; then
10489                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
10490                           else
10491                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
10492                           fi
10493
10494 else
10495
10496                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
10497                           if test "x$LINE" != x ; then
10498                             eval "DEFAULT_$LINE"
10499                           else
10500                             no_cache=1
10501                           fi
10502
10503                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10504
10505 fi
10506
10507
10508           eval "$ac_cv_use_spinbtn"
10509           if test "$no_cache" != 1; then
10510             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
10511           fi
10512
10513           if test "$wxUSE_SPINBTN" = yes; then
10514             { echo "$as_me:$LINENO: result: yes" >&5
10515 echo "${ECHO_T}yes" >&6; }
10516           else
10517             { echo "$as_me:$LINENO: result: no" >&5
10518 echo "${ECHO_T}no" >&6; }
10519           fi
10520
10521
10522           enablestring=
10523           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
10524 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
10525           no_cache=0
10526           # Check whether --enable-spinctrl was given.
10527 if test "${enable_spinctrl+set}" = set; then
10528   enableval=$enable_spinctrl;
10529                           if test "$enableval" = yes; then
10530                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
10531                           else
10532                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
10533                           fi
10534
10535 else
10536
10537                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
10538                           if test "x$LINE" != x ; then
10539                             eval "DEFAULT_$LINE"
10540                           else
10541                             no_cache=1
10542                           fi
10543
10544                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
10545
10546 fi
10547
10548
10549           eval "$ac_cv_use_spinctrl"
10550           if test "$no_cache" != 1; then
10551             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
10552           fi
10553
10554           if test "$wxUSE_SPINCTRL" = yes; then
10555             { echo "$as_me:$LINENO: result: yes" >&5
10556 echo "${ECHO_T}yes" >&6; }
10557           else
10558             { echo "$as_me:$LINENO: result: no" >&5
10559 echo "${ECHO_T}no" >&6; }
10560           fi
10561
10562
10563           enablestring=
10564           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
10565 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
10566           no_cache=0
10567           # Check whether --enable-splitter was given.
10568 if test "${enable_splitter+set}" = set; then
10569   enableval=$enable_splitter;
10570                           if test "$enableval" = yes; then
10571                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
10572                           else
10573                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
10574                           fi
10575
10576 else
10577
10578                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
10579                           if test "x$LINE" != x ; then
10580                             eval "DEFAULT_$LINE"
10581                           else
10582                             no_cache=1
10583                           fi
10584
10585                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10586
10587 fi
10588
10589
10590           eval "$ac_cv_use_splitter"
10591           if test "$no_cache" != 1; then
10592             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
10593           fi
10594
10595           if test "$wxUSE_SPLITTER" = yes; then
10596             { echo "$as_me:$LINENO: result: yes" >&5
10597 echo "${ECHO_T}yes" >&6; }
10598           else
10599             { echo "$as_me:$LINENO: result: no" >&5
10600 echo "${ECHO_T}no" >&6; }
10601           fi
10602
10603
10604           enablestring=
10605           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
10606 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
10607           no_cache=0
10608           # Check whether --enable-statbmp was given.
10609 if test "${enable_statbmp+set}" = set; then
10610   enableval=$enable_statbmp;
10611                           if test "$enableval" = yes; then
10612                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
10613                           else
10614                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
10615                           fi
10616
10617 else
10618
10619                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
10620                           if test "x$LINE" != x ; then
10621                             eval "DEFAULT_$LINE"
10622                           else
10623                             no_cache=1
10624                           fi
10625
10626                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10627
10628 fi
10629
10630
10631           eval "$ac_cv_use_statbmp"
10632           if test "$no_cache" != 1; then
10633             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
10634           fi
10635
10636           if test "$wxUSE_STATBMP" = yes; then
10637             { echo "$as_me:$LINENO: result: yes" >&5
10638 echo "${ECHO_T}yes" >&6; }
10639           else
10640             { echo "$as_me:$LINENO: result: no" >&5
10641 echo "${ECHO_T}no" >&6; }
10642           fi
10643
10644
10645           enablestring=
10646           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
10647 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
10648           no_cache=0
10649           # Check whether --enable-statbox was given.
10650 if test "${enable_statbox+set}" = set; then
10651   enableval=$enable_statbox;
10652                           if test "$enableval" = yes; then
10653                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
10654                           else
10655                             ac_cv_use_statbox='wxUSE_STATBOX=no'
10656                           fi
10657
10658 else
10659
10660                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
10661                           if test "x$LINE" != x ; then
10662                             eval "DEFAULT_$LINE"
10663                           else
10664                             no_cache=1
10665                           fi
10666
10667                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10668
10669 fi
10670
10671
10672           eval "$ac_cv_use_statbox"
10673           if test "$no_cache" != 1; then
10674             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
10675           fi
10676
10677           if test "$wxUSE_STATBOX" = yes; then
10678             { echo "$as_me:$LINENO: result: yes" >&5
10679 echo "${ECHO_T}yes" >&6; }
10680           else
10681             { echo "$as_me:$LINENO: result: no" >&5
10682 echo "${ECHO_T}no" >&6; }
10683           fi
10684
10685
10686           enablestring=
10687           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
10688 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
10689           no_cache=0
10690           # Check whether --enable-statline was given.
10691 if test "${enable_statline+set}" = set; then
10692   enableval=$enable_statline;
10693                           if test "$enableval" = yes; then
10694                             ac_cv_use_statline='wxUSE_STATLINE=yes'
10695                           else
10696                             ac_cv_use_statline='wxUSE_STATLINE=no'
10697                           fi
10698
10699 else
10700
10701                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
10702                           if test "x$LINE" != x ; then
10703                             eval "DEFAULT_$LINE"
10704                           else
10705                             no_cache=1
10706                           fi
10707
10708                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10709
10710 fi
10711
10712
10713           eval "$ac_cv_use_statline"
10714           if test "$no_cache" != 1; then
10715             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
10716           fi
10717
10718           if test "$wxUSE_STATLINE" = yes; then
10719             { echo "$as_me:$LINENO: result: yes" >&5
10720 echo "${ECHO_T}yes" >&6; }
10721           else
10722             { echo "$as_me:$LINENO: result: no" >&5
10723 echo "${ECHO_T}no" >&6; }
10724           fi
10725
10726
10727           enablestring=
10728           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
10729 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
10730           no_cache=0
10731           # Check whether --enable-stattext was given.
10732 if test "${enable_stattext+set}" = set; then
10733   enableval=$enable_stattext;
10734                           if test "$enableval" = yes; then
10735                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
10736                           else
10737                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
10738                           fi
10739
10740 else
10741
10742                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
10743                           if test "x$LINE" != x ; then
10744                             eval "DEFAULT_$LINE"
10745                           else
10746                             no_cache=1
10747                           fi
10748
10749                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
10750
10751 fi
10752
10753
10754           eval "$ac_cv_use_stattext"
10755           if test "$no_cache" != 1; then
10756             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
10757           fi
10758
10759           if test "$wxUSE_STATTEXT" = yes; then
10760             { echo "$as_me:$LINENO: result: yes" >&5
10761 echo "${ECHO_T}yes" >&6; }
10762           else
10763             { echo "$as_me:$LINENO: result: no" >&5
10764 echo "${ECHO_T}no" >&6; }
10765           fi
10766
10767
10768           enablestring=
10769           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
10770 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
10771           no_cache=0
10772           # Check whether --enable-statusbar was given.
10773 if test "${enable_statusbar+set}" = set; then
10774   enableval=$enable_statusbar;
10775                           if test "$enableval" = yes; then
10776                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
10777                           else
10778                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
10779                           fi
10780
10781 else
10782
10783                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
10784                           if test "x$LINE" != x ; then
10785                             eval "DEFAULT_$LINE"
10786                           else
10787                             no_cache=1
10788                           fi
10789
10790                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10791
10792 fi
10793
10794
10795           eval "$ac_cv_use_statusbar"
10796           if test "$no_cache" != 1; then
10797             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
10798           fi
10799
10800           if test "$wxUSE_STATUSBAR" = yes; then
10801             { echo "$as_me:$LINENO: result: yes" >&5
10802 echo "${ECHO_T}yes" >&6; }
10803           else
10804             { echo "$as_me:$LINENO: result: no" >&5
10805 echo "${ECHO_T}no" >&6; }
10806           fi
10807
10808
10809           enablestring=
10810           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
10811 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
10812           no_cache=0
10813           # Check whether --enable-tabdialog was given.
10814 if test "${enable_tabdialog+set}" = set; then
10815   enableval=$enable_tabdialog;
10816                           if test "$enableval" = yes; then
10817                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
10818                           else
10819                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
10820                           fi
10821
10822 else
10823
10824                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
10825                           if test "x$LINE" != x ; then
10826                             eval "DEFAULT_$LINE"
10827                           else
10828                             no_cache=1
10829                           fi
10830
10831                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
10832
10833 fi
10834
10835
10836           eval "$ac_cv_use_tabdialog"
10837           if test "$no_cache" != 1; then
10838             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
10839           fi
10840
10841           if test "$wxUSE_TAB_DIALOG" = yes; then
10842             { echo "$as_me:$LINENO: result: yes" >&5
10843 echo "${ECHO_T}yes" >&6; }
10844           else
10845             { echo "$as_me:$LINENO: result: no" >&5
10846 echo "${ECHO_T}no" >&6; }
10847           fi
10848
10849
10850           enablestring=
10851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
10852 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
10853           no_cache=0
10854           # Check whether --enable-textctrl was given.
10855 if test "${enable_textctrl+set}" = set; then
10856   enableval=$enable_textctrl;
10857                           if test "$enableval" = yes; then
10858                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
10859                           else
10860                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
10861                           fi
10862
10863 else
10864
10865                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
10866                           if test "x$LINE" != x ; then
10867                             eval "DEFAULT_$LINE"
10868                           else
10869                             no_cache=1
10870                           fi
10871
10872                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
10873
10874 fi
10875
10876
10877           eval "$ac_cv_use_textctrl"
10878           if test "$no_cache" != 1; then
10879             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
10880           fi
10881
10882           if test "$wxUSE_TEXTCTRL" = yes; then
10883             { echo "$as_me:$LINENO: result: yes" >&5
10884 echo "${ECHO_T}yes" >&6; }
10885           else
10886             { echo "$as_me:$LINENO: result: no" >&5
10887 echo "${ECHO_T}no" >&6; }
10888           fi
10889
10890
10891           enablestring=
10892           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
10893 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
10894           no_cache=0
10895           # Check whether --enable-togglebtn was given.
10896 if test "${enable_togglebtn+set}" = set; then
10897   enableval=$enable_togglebtn;
10898                           if test "$enableval" = yes; then
10899                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
10900                           else
10901                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
10902                           fi
10903
10904 else
10905
10906                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
10907                           if test "x$LINE" != x ; then
10908                             eval "DEFAULT_$LINE"
10909                           else
10910                             no_cache=1
10911                           fi
10912
10913                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
10914
10915 fi
10916
10917
10918           eval "$ac_cv_use_togglebtn"
10919           if test "$no_cache" != 1; then
10920             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
10921           fi
10922
10923           if test "$wxUSE_TOGGLEBTN" = yes; then
10924             { echo "$as_me:$LINENO: result: yes" >&5
10925 echo "${ECHO_T}yes" >&6; }
10926           else
10927             { echo "$as_me:$LINENO: result: no" >&5
10928 echo "${ECHO_T}no" >&6; }
10929           fi
10930
10931
10932           enablestring=
10933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
10934 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
10935           no_cache=0
10936           # Check whether --enable-toolbar was given.
10937 if test "${enable_toolbar+set}" = set; then
10938   enableval=$enable_toolbar;
10939                           if test "$enableval" = yes; then
10940                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
10941                           else
10942                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
10943                           fi
10944
10945 else
10946
10947                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
10948                           if test "x$LINE" != x ; then
10949                             eval "DEFAULT_$LINE"
10950                           else
10951                             no_cache=1
10952                           fi
10953
10954                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10955
10956 fi
10957
10958
10959           eval "$ac_cv_use_toolbar"
10960           if test "$no_cache" != 1; then
10961             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
10962           fi
10963
10964           if test "$wxUSE_TOOLBAR" = yes; then
10965             { echo "$as_me:$LINENO: result: yes" >&5
10966 echo "${ECHO_T}yes" >&6; }
10967           else
10968             { echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6; }
10970           fi
10971
10972
10973           enablestring=
10974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
10975 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
10976           no_cache=0
10977           # Check whether --enable-tbarnative was given.
10978 if test "${enable_tbarnative+set}" = set; then
10979   enableval=$enable_tbarnative;
10980                           if test "$enableval" = yes; then
10981                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10982                           else
10983                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10984                           fi
10985
10986 else
10987
10988                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
10989                           if test "x$LINE" != x ; then
10990                             eval "DEFAULT_$LINE"
10991                           else
10992                             no_cache=1
10993                           fi
10994
10995                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10996
10997 fi
10998
10999
11000           eval "$ac_cv_use_tbarnative"
11001           if test "$no_cache" != 1; then
11002             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
11003           fi
11004
11005           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
11006             { echo "$as_me:$LINENO: result: yes" >&5
11007 echo "${ECHO_T}yes" >&6; }
11008           else
11009             { echo "$as_me:$LINENO: result: no" >&5
11010 echo "${ECHO_T}no" >&6; }
11011           fi
11012
11013
11014           enablestring=
11015           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
11016 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
11017           no_cache=0
11018           # Check whether --enable-treebook was given.
11019 if test "${enable_treebook+set}" = set; then
11020   enableval=$enable_treebook;
11021                           if test "$enableval" = yes; then
11022                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
11023                           else
11024                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
11025                           fi
11026
11027 else
11028
11029                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
11030                           if test "x$LINE" != x ; then
11031                             eval "DEFAULT_$LINE"
11032                           else
11033                             no_cache=1
11034                           fi
11035
11036                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
11037
11038 fi
11039
11040
11041           eval "$ac_cv_use_treebook"
11042           if test "$no_cache" != 1; then
11043             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
11044           fi
11045
11046           if test "$wxUSE_TREEBOOK" = yes; then
11047             { echo "$as_me:$LINENO: result: yes" >&5
11048 echo "${ECHO_T}yes" >&6; }
11049           else
11050             { echo "$as_me:$LINENO: result: no" >&5
11051 echo "${ECHO_T}no" >&6; }
11052           fi
11053
11054
11055           enablestring=
11056           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
11057 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
11058           no_cache=0
11059           # Check whether --enable-toolbook was given.
11060 if test "${enable_toolbook+set}" = set; then
11061   enableval=$enable_toolbook;
11062                           if test "$enableval" = yes; then
11063                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
11064                           else
11065                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
11066                           fi
11067
11068 else
11069
11070                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
11071                           if test "x$LINE" != x ; then
11072                             eval "DEFAULT_$LINE"
11073                           else
11074                             no_cache=1
11075                           fi
11076
11077                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
11078
11079 fi
11080
11081
11082           eval "$ac_cv_use_toolbook"
11083           if test "$no_cache" != 1; then
11084             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
11085           fi
11086
11087           if test "$wxUSE_TOOLBOOK" = yes; then
11088             { echo "$as_me:$LINENO: result: yes" >&5
11089 echo "${ECHO_T}yes" >&6; }
11090           else
11091             { echo "$as_me:$LINENO: result: no" >&5
11092 echo "${ECHO_T}no" >&6; }
11093           fi
11094
11095
11096           enablestring=
11097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
11098 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
11099           no_cache=0
11100           # Check whether --enable-treectrl was given.
11101 if test "${enable_treectrl+set}" = set; then
11102   enableval=$enable_treectrl;
11103                           if test "$enableval" = yes; then
11104                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
11105                           else
11106                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
11107                           fi
11108
11109 else
11110
11111                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
11112                           if test "x$LINE" != x ; then
11113                             eval "DEFAULT_$LINE"
11114                           else
11115                             no_cache=1
11116                           fi
11117
11118                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
11119
11120 fi
11121
11122
11123           eval "$ac_cv_use_treectrl"
11124           if test "$no_cache" != 1; then
11125             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
11126           fi
11127
11128           if test "$wxUSE_TREECTRL" = yes; then
11129             { echo "$as_me:$LINENO: result: yes" >&5
11130 echo "${ECHO_T}yes" >&6; }
11131           else
11132             { echo "$as_me:$LINENO: result: no" >&5
11133 echo "${ECHO_T}no" >&6; }
11134           fi
11135
11136
11137           enablestring=
11138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
11139 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
11140           no_cache=0
11141           # Check whether --enable-tipwindow was given.
11142 if test "${enable_tipwindow+set}" = set; then
11143   enableval=$enable_tipwindow;
11144                           if test "$enableval" = yes; then
11145                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
11146                           else
11147                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
11148                           fi
11149
11150 else
11151
11152                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
11153                           if test "x$LINE" != x ; then
11154                             eval "DEFAULT_$LINE"
11155                           else
11156                             no_cache=1
11157                           fi
11158
11159                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
11160
11161 fi
11162
11163
11164           eval "$ac_cv_use_tipwindow"
11165           if test "$no_cache" != 1; then
11166             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
11167           fi
11168
11169           if test "$wxUSE_TIPWINDOW" = yes; then
11170             { echo "$as_me:$LINENO: result: yes" >&5
11171 echo "${ECHO_T}yes" >&6; }
11172           else
11173             { echo "$as_me:$LINENO: result: no" >&5
11174 echo "${ECHO_T}no" >&6; }
11175           fi
11176
11177
11178           enablestring=
11179           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11180 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11181           no_cache=0
11182           # Check whether --enable-popupwin was given.
11183 if test "${enable_popupwin+set}" = set; then
11184   enableval=$enable_popupwin;
11185                           if test "$enableval" = yes; then
11186                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11187                           else
11188                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
11189                           fi
11190
11191 else
11192
11193                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
11194                           if test "x$LINE" != x ; then
11195                             eval "DEFAULT_$LINE"
11196                           else
11197                             no_cache=1
11198                           fi
11199
11200                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
11201
11202 fi
11203
11204
11205           eval "$ac_cv_use_popupwin"
11206           if test "$no_cache" != 1; then
11207             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
11208           fi
11209
11210           if test "$wxUSE_POPUPWIN" = yes; then
11211             { echo "$as_me:$LINENO: result: yes" >&5
11212 echo "${ECHO_T}yes" >&6; }
11213           else
11214             { echo "$as_me:$LINENO: result: no" >&5
11215 echo "${ECHO_T}no" >&6; }
11216           fi
11217
11218
11219
11220
11221           enablestring=
11222           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
11223 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
11224           no_cache=0
11225           # Check whether --enable-commondlg was given.
11226 if test "${enable_commondlg+set}" = set; then
11227   enableval=$enable_commondlg;
11228                           if test "$enableval" = yes; then
11229                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
11230                           else
11231                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
11232                           fi
11233
11234 else
11235
11236                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
11237                           if test "x$LINE" != x ; then
11238                             eval "DEFAULT_$LINE"
11239                           else
11240                             no_cache=1
11241                           fi
11242
11243                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
11244
11245 fi
11246
11247
11248           eval "$ac_cv_use_commondlg"
11249           if test "$no_cache" != 1; then
11250             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
11251           fi
11252
11253           if test "$wxUSE_COMMONDLGS" = yes; then
11254             { echo "$as_me:$LINENO: result: yes" >&5
11255 echo "${ECHO_T}yes" >&6; }
11256           else
11257             { echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6; }
11259           fi
11260
11261
11262           enablestring=
11263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
11264 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
11265           no_cache=0
11266           # Check whether --enable-aboutdlg was given.
11267 if test "${enable_aboutdlg+set}" = set; then
11268   enableval=$enable_aboutdlg;
11269                           if test "$enableval" = yes; then
11270                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
11271                           else
11272                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
11273                           fi
11274
11275 else
11276
11277                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
11278                           if test "x$LINE" != x ; then
11279                             eval "DEFAULT_$LINE"
11280                           else
11281                             no_cache=1
11282                           fi
11283
11284                           ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
11285
11286 fi
11287
11288
11289           eval "$ac_cv_use_aboutdlg"
11290           if test "$no_cache" != 1; then
11291             echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
11292           fi
11293
11294           if test "$wxUSE_ABOUTDLG" = yes; then
11295             { echo "$as_me:$LINENO: result: yes" >&5
11296 echo "${ECHO_T}yes" >&6; }
11297           else
11298             { echo "$as_me:$LINENO: result: no" >&5
11299 echo "${ECHO_T}no" >&6; }
11300           fi
11301
11302
11303           enablestring=
11304           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
11305 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
11306           no_cache=0
11307           # Check whether --enable-choicedlg was given.
11308 if test "${enable_choicedlg+set}" = set; then
11309   enableval=$enable_choicedlg;
11310                           if test "$enableval" = yes; then
11311                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
11312                           else
11313                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
11314                           fi
11315
11316 else
11317
11318                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
11319                           if test "x$LINE" != x ; then
11320                             eval "DEFAULT_$LINE"
11321                           else
11322                             no_cache=1
11323                           fi
11324
11325                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
11326
11327 fi
11328
11329
11330           eval "$ac_cv_use_choicedlg"
11331           if test "$no_cache" != 1; then
11332             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
11333           fi
11334
11335           if test "$wxUSE_CHOICEDLG" = yes; then
11336             { echo "$as_me:$LINENO: result: yes" >&5
11337 echo "${ECHO_T}yes" >&6; }
11338           else
11339             { echo "$as_me:$LINENO: result: no" >&5
11340 echo "${ECHO_T}no" >&6; }
11341           fi
11342
11343
11344           enablestring=
11345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
11346 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
11347           no_cache=0
11348           # Check whether --enable-coldlg was given.
11349 if test "${enable_coldlg+set}" = set; then
11350   enableval=$enable_coldlg;
11351                           if test "$enableval" = yes; then
11352                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
11353                           else
11354                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
11355                           fi
11356
11357 else
11358
11359                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
11360                           if test "x$LINE" != x ; then
11361                             eval "DEFAULT_$LINE"
11362                           else
11363                             no_cache=1
11364                           fi
11365
11366                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
11367
11368 fi
11369
11370
11371           eval "$ac_cv_use_coldlg"
11372           if test "$no_cache" != 1; then
11373             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
11374           fi
11375
11376           if test "$wxUSE_COLOURDLG" = yes; then
11377             { echo "$as_me:$LINENO: result: yes" >&5
11378 echo "${ECHO_T}yes" >&6; }
11379           else
11380             { echo "$as_me:$LINENO: result: no" >&5
11381 echo "${ECHO_T}no" >&6; }
11382           fi
11383
11384
11385           enablestring=
11386           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
11387 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
11388           no_cache=0
11389           # Check whether --enable-filedlg was given.
11390 if test "${enable_filedlg+set}" = set; then
11391   enableval=$enable_filedlg;
11392                           if test "$enableval" = yes; then
11393                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
11394                           else
11395                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
11396                           fi
11397
11398 else
11399
11400                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
11401                           if test "x$LINE" != x ; then
11402                             eval "DEFAULT_$LINE"
11403                           else
11404                             no_cache=1
11405                           fi
11406
11407                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
11408
11409 fi
11410
11411
11412           eval "$ac_cv_use_filedlg"
11413           if test "$no_cache" != 1; then
11414             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
11415           fi
11416
11417           if test "$wxUSE_FILEDLG" = yes; then
11418             { echo "$as_me:$LINENO: result: yes" >&5
11419 echo "${ECHO_T}yes" >&6; }
11420           else
11421             { echo "$as_me:$LINENO: result: no" >&5
11422 echo "${ECHO_T}no" >&6; }
11423           fi
11424
11425
11426           enablestring=
11427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
11428 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
11429           no_cache=0
11430           # Check whether --enable-finddlg was given.
11431 if test "${enable_finddlg+set}" = set; then
11432   enableval=$enable_finddlg;
11433                           if test "$enableval" = yes; then
11434                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
11435                           else
11436                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
11437                           fi
11438
11439 else
11440
11441                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
11442                           if test "x$LINE" != x ; then
11443                             eval "DEFAULT_$LINE"
11444                           else
11445                             no_cache=1
11446                           fi
11447
11448                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
11449
11450 fi
11451
11452
11453           eval "$ac_cv_use_finddlg"
11454           if test "$no_cache" != 1; then
11455             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
11456           fi
11457
11458           if test "$wxUSE_FINDREPLDLG" = yes; then
11459             { echo "$as_me:$LINENO: result: yes" >&5
11460 echo "${ECHO_T}yes" >&6; }
11461           else
11462             { echo "$as_me:$LINENO: result: no" >&5
11463 echo "${ECHO_T}no" >&6; }
11464           fi
11465
11466
11467           enablestring=
11468           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
11469 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
11470           no_cache=0
11471           # Check whether --enable-fontdlg was given.
11472 if test "${enable_fontdlg+set}" = set; then
11473   enableval=$enable_fontdlg;
11474                           if test "$enableval" = yes; then
11475                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
11476                           else
11477                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
11478                           fi
11479
11480 else
11481
11482                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
11483                           if test "x$LINE" != x ; then
11484                             eval "DEFAULT_$LINE"
11485                           else
11486                             no_cache=1
11487                           fi
11488
11489                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
11490
11491 fi
11492
11493
11494           eval "$ac_cv_use_fontdlg"
11495           if test "$no_cache" != 1; then
11496             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
11497           fi
11498
11499           if test "$wxUSE_FONTDLG" = yes; then
11500             { echo "$as_me:$LINENO: result: yes" >&5
11501 echo "${ECHO_T}yes" >&6; }
11502           else
11503             { echo "$as_me:$LINENO: result: no" >&5
11504 echo "${ECHO_T}no" >&6; }
11505           fi
11506
11507
11508           enablestring=
11509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
11510 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
11511           no_cache=0
11512           # Check whether --enable-dirdlg was given.
11513 if test "${enable_dirdlg+set}" = set; then
11514   enableval=$enable_dirdlg;
11515                           if test "$enableval" = yes; then
11516                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
11517                           else
11518                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
11519                           fi
11520
11521 else
11522
11523                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
11524                           if test "x$LINE" != x ; then
11525                             eval "DEFAULT_$LINE"
11526                           else
11527                             no_cache=1
11528                           fi
11529
11530                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
11531
11532 fi
11533
11534
11535           eval "$ac_cv_use_dirdlg"
11536           if test "$no_cache" != 1; then
11537             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
11538           fi
11539
11540           if test "$wxUSE_DIRDLG" = yes; then
11541             { echo "$as_me:$LINENO: result: yes" >&5
11542 echo "${ECHO_T}yes" >&6; }
11543           else
11544             { echo "$as_me:$LINENO: result: no" >&5
11545 echo "${ECHO_T}no" >&6; }
11546           fi
11547
11548
11549           enablestring=
11550           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
11551 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
11552           no_cache=0
11553           # Check whether --enable-msgdlg was given.
11554 if test "${enable_msgdlg+set}" = set; then
11555   enableval=$enable_msgdlg;
11556                           if test "$enableval" = yes; then
11557                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
11558                           else
11559                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
11560                           fi
11561
11562 else
11563
11564                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
11565                           if test "x$LINE" != x ; then
11566                             eval "DEFAULT_$LINE"
11567                           else
11568                             no_cache=1
11569                           fi
11570
11571                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
11572
11573 fi
11574
11575
11576           eval "$ac_cv_use_msgdlg"
11577           if test "$no_cache" != 1; then
11578             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
11579           fi
11580
11581           if test "$wxUSE_MSGDLG" = yes; then
11582             { echo "$as_me:$LINENO: result: yes" >&5
11583 echo "${ECHO_T}yes" >&6; }
11584           else
11585             { echo "$as_me:$LINENO: result: no" >&5
11586 echo "${ECHO_T}no" >&6; }
11587           fi
11588
11589
11590           enablestring=
11591           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
11592 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
11593           no_cache=0
11594           # Check whether --enable-numberdlg was given.
11595 if test "${enable_numberdlg+set}" = set; then
11596   enableval=$enable_numberdlg;
11597                           if test "$enableval" = yes; then
11598                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
11599                           else
11600                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
11601                           fi
11602
11603 else
11604
11605                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
11606                           if test "x$LINE" != x ; then
11607                             eval "DEFAULT_$LINE"
11608                           else
11609                             no_cache=1
11610                           fi
11611
11612                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
11613
11614 fi
11615
11616
11617           eval "$ac_cv_use_numberdlg"
11618           if test "$no_cache" != 1; then
11619             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
11620           fi
11621
11622           if test "$wxUSE_NUMBERDLG" = yes; then
11623             { echo "$as_me:$LINENO: result: yes" >&5
11624 echo "${ECHO_T}yes" >&6; }
11625           else
11626             { echo "$as_me:$LINENO: result: no" >&5
11627 echo "${ECHO_T}no" >&6; }
11628           fi
11629
11630
11631           enablestring=
11632           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
11633 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
11634           no_cache=0
11635           # Check whether --enable-splash was given.
11636 if test "${enable_splash+set}" = set; then
11637   enableval=$enable_splash;
11638                           if test "$enableval" = yes; then
11639                             ac_cv_use_splash='wxUSE_SPLASH=yes'
11640                           else
11641                             ac_cv_use_splash='wxUSE_SPLASH=no'
11642                           fi
11643
11644 else
11645
11646                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
11647                           if test "x$LINE" != x ; then
11648                             eval "DEFAULT_$LINE"
11649                           else
11650                             no_cache=1
11651                           fi
11652
11653                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
11654
11655 fi
11656
11657
11658           eval "$ac_cv_use_splash"
11659           if test "$no_cache" != 1; then
11660             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
11661           fi
11662
11663           if test "$wxUSE_SPLASH" = yes; then
11664             { echo "$as_me:$LINENO: result: yes" >&5
11665 echo "${ECHO_T}yes" >&6; }
11666           else
11667             { echo "$as_me:$LINENO: result: no" >&5
11668 echo "${ECHO_T}no" >&6; }
11669           fi
11670
11671
11672           enablestring=
11673           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
11674 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
11675           no_cache=0
11676           # Check whether --enable-textdlg was given.
11677 if test "${enable_textdlg+set}" = set; then
11678   enableval=$enable_textdlg;
11679                           if test "$enableval" = yes; then
11680                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
11681                           else
11682                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
11683                           fi
11684
11685 else
11686
11687                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
11688                           if test "x$LINE" != x ; then
11689                             eval "DEFAULT_$LINE"
11690                           else
11691                             no_cache=1
11692                           fi
11693
11694                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
11695
11696 fi
11697
11698
11699           eval "$ac_cv_use_textdlg"
11700           if test "$no_cache" != 1; then
11701             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
11702           fi
11703
11704           if test "$wxUSE_TEXTDLG" = yes; then
11705             { echo "$as_me:$LINENO: result: yes" >&5
11706 echo "${ECHO_T}yes" >&6; }
11707           else
11708             { echo "$as_me:$LINENO: result: no" >&5
11709 echo "${ECHO_T}no" >&6; }
11710           fi
11711
11712
11713           enablestring=
11714           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
11715 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
11716           no_cache=0
11717           # Check whether --enable-tipdlg was given.
11718 if test "${enable_tipdlg+set}" = set; then
11719   enableval=$enable_tipdlg;
11720                           if test "$enableval" = yes; then
11721                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
11722                           else
11723                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
11724                           fi
11725
11726 else
11727
11728                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
11729                           if test "x$LINE" != x ; then
11730                             eval "DEFAULT_$LINE"
11731                           else
11732                             no_cache=1
11733                           fi
11734
11735                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
11736
11737 fi
11738
11739
11740           eval "$ac_cv_use_tipdlg"
11741           if test "$no_cache" != 1; then
11742             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
11743           fi
11744
11745           if test "$wxUSE_STARTUP_TIPS" = yes; then
11746             { echo "$as_me:$LINENO: result: yes" >&5
11747 echo "${ECHO_T}yes" >&6; }
11748           else
11749             { echo "$as_me:$LINENO: result: no" >&5
11750 echo "${ECHO_T}no" >&6; }
11751           fi
11752
11753
11754           enablestring=
11755           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
11756 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
11757           no_cache=0
11758           # Check whether --enable-progressdlg was given.
11759 if test "${enable_progressdlg+set}" = set; then
11760   enableval=$enable_progressdlg;
11761                           if test "$enableval" = yes; then
11762                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
11763                           else
11764                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
11765                           fi
11766
11767 else
11768
11769                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
11770                           if test "x$LINE" != x ; then
11771                             eval "DEFAULT_$LINE"
11772                           else
11773                             no_cache=1
11774                           fi
11775
11776                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
11777
11778 fi
11779
11780
11781           eval "$ac_cv_use_progressdlg"
11782           if test "$no_cache" != 1; then
11783             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
11784           fi
11785
11786           if test "$wxUSE_PROGRESSDLG" = yes; then
11787             { echo "$as_me:$LINENO: result: yes" >&5
11788 echo "${ECHO_T}yes" >&6; }
11789           else
11790             { echo "$as_me:$LINENO: result: no" >&5
11791 echo "${ECHO_T}no" >&6; }
11792           fi
11793
11794
11795           enablestring=
11796           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
11797 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
11798           no_cache=0
11799           # Check whether --enable-wizarddlg was given.
11800 if test "${enable_wizarddlg+set}" = set; then
11801   enableval=$enable_wizarddlg;
11802                           if test "$enableval" = yes; then
11803                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
11804                           else
11805                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
11806                           fi
11807
11808 else
11809
11810                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
11811                           if test "x$LINE" != x ; then
11812                             eval "DEFAULT_$LINE"
11813                           else
11814                             no_cache=1
11815                           fi
11816
11817                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
11818
11819 fi
11820
11821
11822           eval "$ac_cv_use_wizarddlg"
11823           if test "$no_cache" != 1; then
11824             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
11825           fi
11826
11827           if test "$wxUSE_WIZARDDLG" = yes; then
11828             { echo "$as_me:$LINENO: result: yes" >&5
11829 echo "${ECHO_T}yes" >&6; }
11830           else
11831             { echo "$as_me:$LINENO: result: no" >&5
11832 echo "${ECHO_T}no" >&6; }
11833           fi
11834
11835
11836
11837
11838           enablestring=
11839           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
11840 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
11841           no_cache=0
11842           # Check whether --enable-menus was given.
11843 if test "${enable_menus+set}" = set; then
11844   enableval=$enable_menus;
11845                           if test "$enableval" = yes; then
11846                             ac_cv_use_menus='wxUSE_MENUS=yes'
11847                           else
11848                             ac_cv_use_menus='wxUSE_MENUS=no'
11849                           fi
11850
11851 else
11852
11853                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
11854                           if test "x$LINE" != x ; then
11855                             eval "DEFAULT_$LINE"
11856                           else
11857                             no_cache=1
11858                           fi
11859
11860                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
11861
11862 fi
11863
11864
11865           eval "$ac_cv_use_menus"
11866           if test "$no_cache" != 1; then
11867             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
11868           fi
11869
11870           if test "$wxUSE_MENUS" = yes; then
11871             { echo "$as_me:$LINENO: result: yes" >&5
11872 echo "${ECHO_T}yes" >&6; }
11873           else
11874             { echo "$as_me:$LINENO: result: no" >&5
11875 echo "${ECHO_T}no" >&6; }
11876           fi
11877
11878
11879           enablestring=
11880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
11881 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
11882           no_cache=0
11883           # Check whether --enable-miniframe was given.
11884 if test "${enable_miniframe+set}" = set; then
11885   enableval=$enable_miniframe;
11886                           if test "$enableval" = yes; then
11887                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
11888                           else
11889                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
11890                           fi
11891
11892 else
11893
11894                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
11895                           if test "x$LINE" != x ; then
11896                             eval "DEFAULT_$LINE"
11897                           else
11898                             no_cache=1
11899                           fi
11900
11901                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
11902
11903 fi
11904
11905
11906           eval "$ac_cv_use_miniframe"
11907           if test "$no_cache" != 1; then
11908             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
11909           fi
11910
11911           if test "$wxUSE_MINIFRAME" = yes; then
11912             { echo "$as_me:$LINENO: result: yes" >&5
11913 echo "${ECHO_T}yes" >&6; }
11914           else
11915             { echo "$as_me:$LINENO: result: no" >&5
11916 echo "${ECHO_T}no" >&6; }
11917           fi
11918
11919
11920           enablestring=
11921           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
11922 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
11923           no_cache=0
11924           # Check whether --enable-tooltips was given.
11925 if test "${enable_tooltips+set}" = set; then
11926   enableval=$enable_tooltips;
11927                           if test "$enableval" = yes; then
11928                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
11929                           else
11930                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
11931                           fi
11932
11933 else
11934
11935                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
11936                           if test "x$LINE" != x ; then
11937                             eval "DEFAULT_$LINE"
11938                           else
11939                             no_cache=1
11940                           fi
11941
11942                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
11943
11944 fi
11945
11946
11947           eval "$ac_cv_use_tooltips"
11948           if test "$no_cache" != 1; then
11949             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
11950           fi
11951
11952           if test "$wxUSE_TOOLTIPS" = yes; then
11953             { echo "$as_me:$LINENO: result: yes" >&5
11954 echo "${ECHO_T}yes" >&6; }
11955           else
11956             { echo "$as_me:$LINENO: result: no" >&5
11957 echo "${ECHO_T}no" >&6; }
11958           fi
11959
11960
11961           enablestring=
11962           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
11963 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
11964           no_cache=0
11965           # Check whether --enable-splines was given.
11966 if test "${enable_splines+set}" = set; then
11967   enableval=$enable_splines;
11968                           if test "$enableval" = yes; then
11969                             ac_cv_use_splines='wxUSE_SPLINES=yes'
11970                           else
11971                             ac_cv_use_splines='wxUSE_SPLINES=no'
11972                           fi
11973
11974 else
11975
11976                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
11977                           if test "x$LINE" != x ; then
11978                             eval "DEFAULT_$LINE"
11979                           else
11980                             no_cache=1
11981                           fi
11982
11983                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11984
11985 fi
11986
11987
11988           eval "$ac_cv_use_splines"
11989           if test "$no_cache" != 1; then
11990             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
11991           fi
11992
11993           if test "$wxUSE_SPLINES" = yes; then
11994             { echo "$as_me:$LINENO: result: yes" >&5
11995 echo "${ECHO_T}yes" >&6; }
11996           else
11997             { echo "$as_me:$LINENO: result: no" >&5
11998 echo "${ECHO_T}no" >&6; }
11999           fi
12000
12001
12002           enablestring=
12003           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
12004 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
12005           no_cache=0
12006           # Check whether --enable-mousewheel was given.
12007 if test "${enable_mousewheel+set}" = set; then
12008   enableval=$enable_mousewheel;
12009                           if test "$enableval" = yes; then
12010                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
12011                           else
12012                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
12013                           fi
12014
12015 else
12016
12017                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
12018                           if test "x$LINE" != x ; then
12019                             eval "DEFAULT_$LINE"
12020                           else
12021                             no_cache=1
12022                           fi
12023
12024                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
12025
12026 fi
12027
12028
12029           eval "$ac_cv_use_mousewheel"
12030           if test "$no_cache" != 1; then
12031             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
12032           fi
12033
12034           if test "$wxUSE_MOUSEWHEEL" = yes; then
12035             { echo "$as_me:$LINENO: result: yes" >&5
12036 echo "${ECHO_T}yes" >&6; }
12037           else
12038             { echo "$as_me:$LINENO: result: no" >&5
12039 echo "${ECHO_T}no" >&6; }
12040           fi
12041
12042
12043           enablestring=
12044           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
12045 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
12046           no_cache=0
12047           # Check whether --enable-validators was given.
12048 if test "${enable_validators+set}" = set; then
12049   enableval=$enable_validators;
12050                           if test "$enableval" = yes; then
12051                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
12052                           else
12053                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
12054                           fi
12055
12056 else
12057
12058                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
12059                           if test "x$LINE" != x ; then
12060                             eval "DEFAULT_$LINE"
12061                           else
12062                             no_cache=1
12063                           fi
12064
12065                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
12066
12067 fi
12068
12069
12070           eval "$ac_cv_use_validators"
12071           if test "$no_cache" != 1; then
12072             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
12073           fi
12074
12075           if test "$wxUSE_VALIDATORS" = yes; then
12076             { echo "$as_me:$LINENO: result: yes" >&5
12077 echo "${ECHO_T}yes" >&6; }
12078           else
12079             { echo "$as_me:$LINENO: result: no" >&5
12080 echo "${ECHO_T}no" >&6; }
12081           fi
12082
12083
12084           enablestring=
12085           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
12086 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
12087           no_cache=0
12088           # Check whether --enable-busyinfo was given.
12089 if test "${enable_busyinfo+set}" = set; then
12090   enableval=$enable_busyinfo;
12091                           if test "$enableval" = yes; then
12092                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
12093                           else
12094                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
12095                           fi
12096
12097 else
12098
12099                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
12100                           if test "x$LINE" != x ; then
12101                             eval "DEFAULT_$LINE"
12102                           else
12103                             no_cache=1
12104                           fi
12105
12106                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
12107
12108 fi
12109
12110
12111           eval "$ac_cv_use_busyinfo"
12112           if test "$no_cache" != 1; then
12113             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
12114           fi
12115
12116           if test "$wxUSE_BUSYINFO" = yes; then
12117             { echo "$as_me:$LINENO: result: yes" >&5
12118 echo "${ECHO_T}yes" >&6; }
12119           else
12120             { echo "$as_me:$LINENO: result: no" >&5
12121 echo "${ECHO_T}no" >&6; }
12122           fi
12123
12124
12125           enablestring=
12126           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
12127 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
12128           no_cache=0
12129           # Check whether --enable-joystick was given.
12130 if test "${enable_joystick+set}" = set; then
12131   enableval=$enable_joystick;
12132                           if test "$enableval" = yes; then
12133                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
12134                           else
12135                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
12136                           fi
12137
12138 else
12139
12140                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
12141                           if test "x$LINE" != x ; then
12142                             eval "DEFAULT_$LINE"
12143                           else
12144                             no_cache=1
12145                           fi
12146
12147                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
12148
12149 fi
12150
12151
12152           eval "$ac_cv_use_joystick"
12153           if test "$no_cache" != 1; then
12154             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
12155           fi
12156
12157           if test "$wxUSE_JOYSTICK" = yes; then
12158             { echo "$as_me:$LINENO: result: yes" >&5
12159 echo "${ECHO_T}yes" >&6; }
12160           else
12161             { echo "$as_me:$LINENO: result: no" >&5
12162 echo "${ECHO_T}no" >&6; }
12163           fi
12164
12165
12166           enablestring=
12167           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
12168 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
12169           no_cache=0
12170           # Check whether --enable-metafile was given.
12171 if test "${enable_metafile+set}" = set; then
12172   enableval=$enable_metafile;
12173                           if test "$enableval" = yes; then
12174                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
12175                           else
12176                             ac_cv_use_metafile='wxUSE_METAFILE=no'
12177                           fi
12178
12179 else
12180
12181                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
12182                           if test "x$LINE" != x ; then
12183                             eval "DEFAULT_$LINE"
12184                           else
12185                             no_cache=1
12186                           fi
12187
12188                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
12189
12190 fi
12191
12192
12193           eval "$ac_cv_use_metafile"
12194           if test "$no_cache" != 1; then
12195             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
12196           fi
12197
12198           if test "$wxUSE_METAFILE" = yes; then
12199             { echo "$as_me:$LINENO: result: yes" >&5
12200 echo "${ECHO_T}yes" >&6; }
12201           else
12202             { echo "$as_me:$LINENO: result: no" >&5
12203 echo "${ECHO_T}no" >&6; }
12204           fi
12205
12206
12207           enablestring=
12208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
12209 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
12210           no_cache=0
12211           # Check whether --enable-dragimage was given.
12212 if test "${enable_dragimage+set}" = set; then
12213   enableval=$enable_dragimage;
12214                           if test "$enableval" = yes; then
12215                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
12216                           else
12217                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
12218                           fi
12219
12220 else
12221
12222                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
12223                           if test "x$LINE" != x ; then
12224                             eval "DEFAULT_$LINE"
12225                           else
12226                             no_cache=1
12227                           fi
12228
12229                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
12230
12231 fi
12232
12233
12234           eval "$ac_cv_use_dragimage"
12235           if test "$no_cache" != 1; then
12236             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
12237           fi
12238
12239           if test "$wxUSE_DRAGIMAGE" = yes; then
12240             { echo "$as_me:$LINENO: result: yes" >&5
12241 echo "${ECHO_T}yes" >&6; }
12242           else
12243             { echo "$as_me:$LINENO: result: no" >&5
12244 echo "${ECHO_T}no" >&6; }
12245           fi
12246
12247
12248           enablestring=
12249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
12250 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
12251           no_cache=0
12252           # Check whether --enable-accessibility was given.
12253 if test "${enable_accessibility+set}" = set; then
12254   enableval=$enable_accessibility;
12255                           if test "$enableval" = yes; then
12256                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
12257                           else
12258                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
12259                           fi
12260
12261 else
12262
12263                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
12264                           if test "x$LINE" != x ; then
12265                             eval "DEFAULT_$LINE"
12266                           else
12267                             no_cache=1
12268                           fi
12269
12270                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
12271
12272 fi
12273
12274
12275           eval "$ac_cv_use_accessibility"
12276           if test "$no_cache" != 1; then
12277             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
12278           fi
12279
12280           if test "$wxUSE_ACCESSIBILITY" = yes; then
12281             { echo "$as_me:$LINENO: result: yes" >&5
12282 echo "${ECHO_T}yes" >&6; }
12283           else
12284             { echo "$as_me:$LINENO: result: no" >&5
12285 echo "${ECHO_T}no" >&6; }
12286           fi
12287
12288
12289 if test "$wxUSE_MSW" = "1"; then
12290
12291           enablestring=
12292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
12293 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
12294           no_cache=0
12295           # Check whether --enable-dccache was given.
12296 if test "${enable_dccache+set}" = set; then
12297   enableval=$enable_dccache;
12298                           if test "$enableval" = yes; then
12299                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
12300                           else
12301                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
12302                           fi
12303
12304 else
12305
12306                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
12307                           if test "x$LINE" != x ; then
12308                             eval "DEFAULT_$LINE"
12309                           else
12310                             no_cache=1
12311                           fi
12312
12313                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
12314
12315 fi
12316
12317
12318           eval "$ac_cv_use_dccache"
12319           if test "$no_cache" != 1; then
12320             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
12321           fi
12322
12323           if test "$wxUSE_DC_CACHEING" = yes; then
12324             { echo "$as_me:$LINENO: result: yes" >&5
12325 echo "${ECHO_T}yes" >&6; }
12326           else
12327             { echo "$as_me:$LINENO: result: no" >&5
12328 echo "${ECHO_T}no" >&6; }
12329           fi
12330
12331 fi
12332
12333
12334
12335           enablestring=
12336           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
12337 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
12338           no_cache=0
12339           # Check whether --enable-palette was given.
12340 if test "${enable_palette+set}" = set; then
12341   enableval=$enable_palette;
12342                           if test "$enableval" = yes; then
12343                             ac_cv_use_palette='wxUSE_PALETTE=yes'
12344                           else
12345                             ac_cv_use_palette='wxUSE_PALETTE=no'
12346                           fi
12347
12348 else
12349
12350                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
12351                           if test "x$LINE" != x ; then
12352                             eval "DEFAULT_$LINE"
12353                           else
12354                             no_cache=1
12355                           fi
12356
12357                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
12358
12359 fi
12360
12361
12362           eval "$ac_cv_use_palette"
12363           if test "$no_cache" != 1; then
12364             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
12365           fi
12366
12367           if test "$wxUSE_PALETTE" = yes; then
12368             { echo "$as_me:$LINENO: result: yes" >&5
12369 echo "${ECHO_T}yes" >&6; }
12370           else
12371             { echo "$as_me:$LINENO: result: no" >&5
12372 echo "${ECHO_T}no" >&6; }
12373           fi
12374
12375
12376           enablestring=
12377           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
12378 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
12379           no_cache=0
12380           # Check whether --enable-image was given.
12381 if test "${enable_image+set}" = set; then
12382   enableval=$enable_image;
12383                           if test "$enableval" = yes; then
12384                             ac_cv_use_image='wxUSE_IMAGE=yes'
12385                           else
12386                             ac_cv_use_image='wxUSE_IMAGE=no'
12387                           fi
12388
12389 else
12390
12391                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
12392                           if test "x$LINE" != x ; then
12393                             eval "DEFAULT_$LINE"
12394                           else
12395                             no_cache=1
12396                           fi
12397
12398                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
12399
12400 fi
12401
12402
12403           eval "$ac_cv_use_image"
12404           if test "$no_cache" != 1; then
12405             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
12406           fi
12407
12408           if test "$wxUSE_IMAGE" = yes; then
12409             { echo "$as_me:$LINENO: result: yes" >&5
12410 echo "${ECHO_T}yes" >&6; }
12411           else
12412             { echo "$as_me:$LINENO: result: no" >&5
12413 echo "${ECHO_T}no" >&6; }
12414           fi
12415
12416
12417           enablestring=
12418           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
12419 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
12420           no_cache=0
12421           # Check whether --enable-gif was given.
12422 if test "${enable_gif+set}" = set; then
12423   enableval=$enable_gif;
12424                           if test "$enableval" = yes; then
12425                             ac_cv_use_gif='wxUSE_GIF=yes'
12426                           else
12427                             ac_cv_use_gif='wxUSE_GIF=no'
12428                           fi
12429
12430 else
12431
12432                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
12433                           if test "x$LINE" != x ; then
12434                             eval "DEFAULT_$LINE"
12435                           else
12436                             no_cache=1
12437                           fi
12438
12439                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
12440
12441 fi
12442
12443
12444           eval "$ac_cv_use_gif"
12445           if test "$no_cache" != 1; then
12446             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
12447           fi
12448
12449           if test "$wxUSE_GIF" = yes; then
12450             { echo "$as_me:$LINENO: result: yes" >&5
12451 echo "${ECHO_T}yes" >&6; }
12452           else
12453             { echo "$as_me:$LINENO: result: no" >&5
12454 echo "${ECHO_T}no" >&6; }
12455           fi
12456
12457
12458           enablestring=
12459           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
12460 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
12461           no_cache=0
12462           # Check whether --enable-pcx was given.
12463 if test "${enable_pcx+set}" = set; then
12464   enableval=$enable_pcx;
12465                           if test "$enableval" = yes; then
12466                             ac_cv_use_pcx='wxUSE_PCX=yes'
12467                           else
12468                             ac_cv_use_pcx='wxUSE_PCX=no'
12469                           fi
12470
12471 else
12472
12473                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
12474                           if test "x$LINE" != x ; then
12475                             eval "DEFAULT_$LINE"
12476                           else
12477                             no_cache=1
12478                           fi
12479
12480                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
12481
12482 fi
12483
12484
12485           eval "$ac_cv_use_pcx"
12486           if test "$no_cache" != 1; then
12487             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
12488           fi
12489
12490           if test "$wxUSE_PCX" = yes; then
12491             { echo "$as_me:$LINENO: result: yes" >&5
12492 echo "${ECHO_T}yes" >&6; }
12493           else
12494             { echo "$as_me:$LINENO: result: no" >&5
12495 echo "${ECHO_T}no" >&6; }
12496           fi
12497
12498
12499           enablestring=
12500           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
12501 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
12502           no_cache=0
12503           # Check whether --enable-tga was given.
12504 if test "${enable_tga+set}" = set; then
12505   enableval=$enable_tga;
12506                           if test "$enableval" = yes; then
12507                             ac_cv_use_tga='wxUSE_TGA=yes'
12508                           else
12509                             ac_cv_use_tga='wxUSE_TGA=no'
12510                           fi
12511
12512 else
12513
12514                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
12515                           if test "x$LINE" != x ; then
12516                             eval "DEFAULT_$LINE"
12517                           else
12518                             no_cache=1
12519                           fi
12520
12521                           ac_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA
12522
12523 fi
12524
12525
12526           eval "$ac_cv_use_tga"
12527           if test "$no_cache" != 1; then
12528             echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp
12529           fi
12530
12531           if test "$wxUSE_TGA" = yes; then
12532             { echo "$as_me:$LINENO: result: yes" >&5
12533 echo "${ECHO_T}yes" >&6; }
12534           else
12535             { echo "$as_me:$LINENO: result: no" >&5
12536 echo "${ECHO_T}no" >&6; }
12537           fi
12538
12539
12540           enablestring=
12541           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
12542 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
12543           no_cache=0
12544           # Check whether --enable-iff was given.
12545 if test "${enable_iff+set}" = set; then
12546   enableval=$enable_iff;
12547                           if test "$enableval" = yes; then
12548                             ac_cv_use_iff='wxUSE_IFF=yes'
12549                           else
12550                             ac_cv_use_iff='wxUSE_IFF=no'
12551                           fi
12552
12553 else
12554
12555                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
12556                           if test "x$LINE" != x ; then
12557                             eval "DEFAULT_$LINE"
12558                           else
12559                             no_cache=1
12560                           fi
12561
12562                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
12563
12564 fi
12565
12566
12567           eval "$ac_cv_use_iff"
12568           if test "$no_cache" != 1; then
12569             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
12570           fi
12571
12572           if test "$wxUSE_IFF" = yes; then
12573             { echo "$as_me:$LINENO: result: yes" >&5
12574 echo "${ECHO_T}yes" >&6; }
12575           else
12576             { echo "$as_me:$LINENO: result: no" >&5
12577 echo "${ECHO_T}no" >&6; }
12578           fi
12579
12580
12581           enablestring=
12582           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
12583 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
12584           no_cache=0
12585           # Check whether --enable-pnm was given.
12586 if test "${enable_pnm+set}" = set; then
12587   enableval=$enable_pnm;
12588                           if test "$enableval" = yes; then
12589                             ac_cv_use_pnm='wxUSE_PNM=yes'
12590                           else
12591                             ac_cv_use_pnm='wxUSE_PNM=no'
12592                           fi
12593
12594 else
12595
12596                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
12597                           if test "x$LINE" != x ; then
12598                             eval "DEFAULT_$LINE"
12599                           else
12600                             no_cache=1
12601                           fi
12602
12603                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
12604
12605 fi
12606
12607
12608           eval "$ac_cv_use_pnm"
12609           if test "$no_cache" != 1; then
12610             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
12611           fi
12612
12613           if test "$wxUSE_PNM" = yes; then
12614             { echo "$as_me:$LINENO: result: yes" >&5
12615 echo "${ECHO_T}yes" >&6; }
12616           else
12617             { echo "$as_me:$LINENO: result: no" >&5
12618 echo "${ECHO_T}no" >&6; }
12619           fi
12620
12621
12622           enablestring=
12623           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
12624 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
12625           no_cache=0
12626           # Check whether --enable-xpm was given.
12627 if test "${enable_xpm+set}" = set; then
12628   enableval=$enable_xpm;
12629                           if test "$enableval" = yes; then
12630                             ac_cv_use_xpm='wxUSE_XPM=yes'
12631                           else
12632                             ac_cv_use_xpm='wxUSE_XPM=no'
12633                           fi
12634
12635 else
12636
12637                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
12638                           if test "x$LINE" != x ; then
12639                             eval "DEFAULT_$LINE"
12640                           else
12641                             no_cache=1
12642                           fi
12643
12644                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
12645
12646 fi
12647
12648
12649           eval "$ac_cv_use_xpm"
12650           if test "$no_cache" != 1; then
12651             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
12652           fi
12653
12654           if test "$wxUSE_XPM" = yes; then
12655             { echo "$as_me:$LINENO: result: yes" >&5
12656 echo "${ECHO_T}yes" >&6; }
12657           else
12658             { echo "$as_me:$LINENO: result: no" >&5
12659 echo "${ECHO_T}no" >&6; }
12660           fi
12661
12662
12663           enablestring=
12664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
12665 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
12666           no_cache=0
12667           # Check whether --enable-ico_cur was given.
12668 if test "${enable_ico_cur+set}" = set; then
12669   enableval=$enable_ico_cur;
12670                           if test "$enableval" = yes; then
12671                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
12672                           else
12673                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
12674                           fi
12675
12676 else
12677
12678                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
12679                           if test "x$LINE" != x ; then
12680                             eval "DEFAULT_$LINE"
12681                           else
12682                             no_cache=1
12683                           fi
12684
12685                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
12686
12687 fi
12688
12689
12690           eval "$ac_cv_use_ico_cur"
12691           if test "$no_cache" != 1; then
12692             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
12693           fi
12694
12695           if test "$wxUSE_ICO_CUR" = yes; then
12696             { echo "$as_me:$LINENO: result: yes" >&5
12697 echo "${ECHO_T}yes" >&6; }
12698           else
12699             { echo "$as_me:$LINENO: result: no" >&5
12700 echo "${ECHO_T}no" >&6; }
12701           fi
12702
12703
12704 fi
12705
12706
12707
12708 # Check whether --with-flavour was given.
12709 if test "${with_flavour+set}" = set; then
12710   withval=$with_flavour; WX_FLAVOUR="$withval"
12711 fi
12712
12713
12714
12715
12716           enablestring=
12717           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
12718 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
12719           no_cache=0
12720           # Check whether --enable-official_build was given.
12721 if test "${enable_official_build+set}" = set; then
12722   enableval=$enable_official_build;
12723                           if test "$enableval" = yes; then
12724                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
12725                           else
12726                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
12727                           fi
12728
12729 else
12730
12731                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
12732                           if test "x$LINE" != x ; then
12733                             eval "DEFAULT_$LINE"
12734                           else
12735                             no_cache=1
12736                           fi
12737
12738                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
12739
12740 fi
12741
12742
12743           eval "$ac_cv_use_official_build"
12744           if test "$no_cache" != 1; then
12745             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
12746           fi
12747
12748           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
12749             { echo "$as_me:$LINENO: result: yes" >&5
12750 echo "${ECHO_T}yes" >&6; }
12751           else
12752             { echo "$as_me:$LINENO: result: no" >&5
12753 echo "${ECHO_T}no" >&6; }
12754           fi
12755
12756 # Check whether --enable-vendor was given.
12757 if test "${enable_vendor+set}" = set; then
12758   enableval=$enable_vendor; VENDOR="$enableval"
12759 fi
12760
12761 if test "x$VENDOR" = "x"; then
12762     VENDOR="custom"
12763 fi
12764
12765
12766
12767
12768           echo "saving argument cache $wx_arg_cache_file"
12769           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
12770
12771
12772
12773 { echo "$as_me:$LINENO: checking for toolkit" >&5
12774 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
12775
12776 # In Wine, we need to default to MSW, not GTK or MOTIF
12777 if test "$wxUSE_WINE" = "yes"; then
12778     DEFAULT_DEFAULT_wxUSE_GTK=0
12779     DEFAULT_DEFAULT_wxUSE_MOTIF=0
12780     DEFAULT_DEFAULT_wxUSE_MSW=1
12781     wxUSE_SHARED=no
12782     CC=${CC:-winegcc}
12783     CXX=${CXX:-wineg++}
12784 fi
12785
12786
12787 if test "$wxUSE_GUI" = "yes"; then
12788
12789     if test "$USE_BEOS" = 1; then
12790         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
12791 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
12792    { (exit 1); exit 1; }; }
12793     fi
12794
12795     if test "$TOOLKIT_GIVEN" = 1; then
12796             for toolkit in `echo $ALL_TOOLKITS`; do
12797         var=wxUSE_$toolkit
12798         eval "value=\$${var}"
12799         if test "x$value" = "xno"; then
12800           eval "$var=0"
12801         elif test "x$value" != "x"; then
12802           eval "$var=1"
12803         fi
12804
12805         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
12806           eval "wx${toolkit}_VERSION=$value"
12807         fi
12808       done
12809     else
12810             for toolkit in `echo $ALL_TOOLKITS`; do
12811         if test "$has_toolkit_in_cache" != 1; then
12812           var=DEFAULT_DEFAULT_wxUSE_$toolkit
12813         else
12814           var=DEFAULT_wxUSE_$toolkit
12815
12816           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
12817           if test "x$version" != "x"; then
12818             eval "wx${toolkit}_VERSION=$version"
12819           fi
12820         fi
12821         eval "wxUSE_$toolkit=\$${var}"
12822       done
12823     fi
12824
12825             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
12826                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
12827                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
12828
12829         case "${host}" in
12830       *-pc-os2_emx | *-pc-os2-emx )
12831         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
12832     esac
12833
12834     case "$NUM_TOOLKITS" in
12835       1)
12836       ;;
12837       0)
12838         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
12839 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
12840    { (exit 1); exit 1; }; }
12841       ;;
12842       *)
12843         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
12844 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
12845    { (exit 1); exit 1; }; }
12846     esac
12847
12848     # to be removed when --disable-gtk2 isn't needed
12849     if test "x$wxUSE_GTK2" = "xyes"; then
12850         wxGTK_VERSION=2
12851     elif test "x$wxUSE_GTK2" = "xno"; then
12852         wxGTK_VERSION=1
12853     fi
12854
12855         for toolkit in `echo $ALL_TOOLKITS`; do
12856       var=wxUSE_$toolkit
12857       eval "value=\$${var}"
12858       if test "x$value" != x; then
12859         cache_var=CACHE_$toolkit
12860         eval "cache=\$${cache_var}"
12861         if test "$cache" = 1; then
12862           echo "$var=$value" >> ${wx_arg_cache_file}
12863           eval "version=\$wx${toolkit}_VERSION"
12864           if test "x$version" != "x"; then
12865             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
12866           fi
12867         fi
12868         if test "$value" = 1; then
12869           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
12870           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
12871 echo "${ECHO_T}$toolkit_echo" >&6; }
12872         fi
12873       fi
12874     done
12875 else
12876     if test "x$host_alias" != "x"; then
12877         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
12878 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
12879     else
12880         { echo "$as_me:$LINENO: result: base only" >&5
12881 echo "${ECHO_T}base only" >&6; }
12882     fi
12883 fi
12884
12885
12886 cat >confcache <<\_ACEOF
12887 # This file is a shell script that caches the results of configure
12888 # tests run on this system so they can be shared between configure
12889 # scripts and configure runs, see configure's option --config-cache.
12890 # It is not useful on other systems.  If it contains results you don't
12891 # want to keep, you may remove or edit it.
12892 #
12893 # config.status only pays attention to the cache file if you give it
12894 # the --recheck option to rerun configure.
12895 #
12896 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12897 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12898 # following values.
12899
12900 _ACEOF
12901
12902 # The following way of writing the cache mishandles newlines in values,
12903 # but we know of no workaround that is simple, portable, and efficient.
12904 # So, we kill variables containing newlines.
12905 # Ultrix sh set writes to stderr and can't be redirected directly,
12906 # and sets the high bit in the cache file unless we assign to the vars.
12907 (
12908   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12909     eval ac_val=\$$ac_var
12910     case $ac_val in #(
12911     *${as_nl}*)
12912       case $ac_var in #(
12913       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12914 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12915       esac
12916       case $ac_var in #(
12917       _ | IFS | as_nl) ;; #(
12918       *) $as_unset $ac_var ;;
12919       esac ;;
12920     esac
12921   done
12922
12923   (set) 2>&1 |
12924     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12925     *${as_nl}ac_space=\ *)
12926       # `set' does not quote correctly, so add quotes (double-quote
12927       # substitution turns \\\\ into \\, and sed turns \\ into \).
12928       sed -n \
12929         "s/'/'\\\\''/g;
12930           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12931       ;; #(
12932     *)
12933       # `set' quotes correctly as required by POSIX, so do not add quotes.
12934       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12935       ;;
12936     esac |
12937     sort
12938 ) |
12939   sed '
12940      /^ac_cv_env_/b end
12941      t clear
12942      :clear
12943      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12944      t end
12945      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12946      :end' >>confcache
12947 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12948   if test -w "$cache_file"; then
12949     test "x$cache_file" != "x/dev/null" &&
12950       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12951 echo "$as_me: updating cache $cache_file" >&6;}
12952     cat confcache >$cache_file
12953   else
12954     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12955 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12956   fi
12957 fi
12958 rm -f confcache
12959
12960 CFLAGS=${CFLAGS:=}
12961
12962
12963
12964     ac_ext=c
12965 ac_cpp='$CPP $CPPFLAGS'
12966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12969 if test -n "$ac_tool_prefix"; then
12970   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12971 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12974 if test "${ac_cv_prog_CC+set}" = set; then
12975   echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977   if test -n "$CC"; then
12978   ac_cv_prog_CC="$CC" # Let the user override the test.
12979 else
12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $PATH
12982 do
12983   IFS=$as_save_IFS
12984   test -z "$as_dir" && as_dir=.
12985   for ac_exec_ext in '' $ac_executable_extensions; do
12986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12987     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12989     break 2
12990   fi
12991 done
12992 done
12993 IFS=$as_save_IFS
12994
12995 fi
12996 fi
12997 CC=$ac_cv_prog_CC
12998 if test -n "$CC"; then
12999   { echo "$as_me:$LINENO: result: $CC" >&5
13000 echo "${ECHO_T}$CC" >&6; }
13001 else
13002   { echo "$as_me:$LINENO: result: no" >&5
13003 echo "${ECHO_T}no" >&6; }
13004 fi
13005
13006
13007 fi
13008 if test -z "$ac_cv_prog_CC"; then
13009   ac_ct_CC=$CC
13010   # Extract the first word of "gcc", so it can be a program name with args.
13011 set dummy gcc; ac_word=$2
13012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13015   echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017   if test -n "$ac_ct_CC"; then
13018   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13019 else
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13022 do
13023   IFS=$as_save_IFS
13024   test -z "$as_dir" && as_dir=.
13025   for ac_exec_ext in '' $ac_executable_extensions; do
13026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13027     ac_cv_prog_ac_ct_CC="gcc"
13028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13029     break 2
13030   fi
13031 done
13032 done
13033 IFS=$as_save_IFS
13034
13035 fi
13036 fi
13037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13038 if test -n "$ac_ct_CC"; then
13039   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13040 echo "${ECHO_T}$ac_ct_CC" >&6; }
13041 else
13042   { echo "$as_me:$LINENO: result: no" >&5
13043 echo "${ECHO_T}no" >&6; }
13044 fi
13045
13046   if test "x$ac_ct_CC" = x; then
13047     CC=""
13048   else
13049     case $cross_compiling:$ac_tool_warned in
13050 yes:)
13051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13052 whose name does not start with the host triplet.  If you think this
13053 configuration is useful to you, please write to autoconf@gnu.org." >&5
13054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13055 whose name does not start with the host triplet.  If you think this
13056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13057 ac_tool_warned=yes ;;
13058 esac
13059     CC=$ac_ct_CC
13060   fi
13061 else
13062   CC="$ac_cv_prog_CC"
13063 fi
13064
13065 if test -z "$CC"; then
13066           if test -n "$ac_tool_prefix"; then
13067     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13068 set dummy ${ac_tool_prefix}cc; ac_word=$2
13069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13071 if test "${ac_cv_prog_CC+set}" = set; then
13072   echo $ECHO_N "(cached) $ECHO_C" >&6
13073 else
13074   if test -n "$CC"; then
13075   ac_cv_prog_CC="$CC" # Let the user override the test.
13076 else
13077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078 for as_dir in $PATH
13079 do
13080   IFS=$as_save_IFS
13081   test -z "$as_dir" && as_dir=.
13082   for ac_exec_ext in '' $ac_executable_extensions; do
13083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13084     ac_cv_prog_CC="${ac_tool_prefix}cc"
13085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13086     break 2
13087   fi
13088 done
13089 done
13090 IFS=$as_save_IFS
13091
13092 fi
13093 fi
13094 CC=$ac_cv_prog_CC
13095 if test -n "$CC"; then
13096   { echo "$as_me:$LINENO: result: $CC" >&5
13097 echo "${ECHO_T}$CC" >&6; }
13098 else
13099   { echo "$as_me:$LINENO: result: no" >&5
13100 echo "${ECHO_T}no" >&6; }
13101 fi
13102
13103
13104   fi
13105 fi
13106 if test -z "$CC"; then
13107   # Extract the first word of "cc", so it can be a program name with args.
13108 set dummy cc; ac_word=$2
13109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13111 if test "${ac_cv_prog_CC+set}" = set; then
13112   echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114   if test -n "$CC"; then
13115   ac_cv_prog_CC="$CC" # Let the user override the test.
13116 else
13117   ac_prog_rejected=no
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13120 do
13121   IFS=$as_save_IFS
13122   test -z "$as_dir" && as_dir=.
13123   for ac_exec_ext in '' $ac_executable_extensions; do
13124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13125     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13126        ac_prog_rejected=yes
13127        continue
13128      fi
13129     ac_cv_prog_CC="cc"
13130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13131     break 2
13132   fi
13133 done
13134 done
13135 IFS=$as_save_IFS
13136
13137 if test $ac_prog_rejected = yes; then
13138   # We found a bogon in the path, so make sure we never use it.
13139   set dummy $ac_cv_prog_CC
13140   shift
13141   if test $# != 0; then
13142     # We chose a different compiler from the bogus one.
13143     # However, it has the same basename, so the bogon will be chosen
13144     # first if we set CC to just the basename; use the full file name.
13145     shift
13146     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13147   fi
13148 fi
13149 fi
13150 fi
13151 CC=$ac_cv_prog_CC
13152 if test -n "$CC"; then
13153   { echo "$as_me:$LINENO: result: $CC" >&5
13154 echo "${ECHO_T}$CC" >&6; }
13155 else
13156   { echo "$as_me:$LINENO: result: no" >&5
13157 echo "${ECHO_T}no" >&6; }
13158 fi
13159
13160
13161 fi
13162 if test -z "$CC"; then
13163   if test -n "$ac_tool_prefix"; then
13164   for ac_prog in cl.exe
13165   do
13166     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13170 if test "${ac_cv_prog_CC+set}" = set; then
13171   echo $ECHO_N "(cached) $ECHO_C" >&6
13172 else
13173   if test -n "$CC"; then
13174   ac_cv_prog_CC="$CC" # Let the user override the test.
13175 else
13176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $PATH
13178 do
13179   IFS=$as_save_IFS
13180   test -z "$as_dir" && as_dir=.
13181   for ac_exec_ext in '' $ac_executable_extensions; do
13182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13183     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13185     break 2
13186   fi
13187 done
13188 done
13189 IFS=$as_save_IFS
13190
13191 fi
13192 fi
13193 CC=$ac_cv_prog_CC
13194 if test -n "$CC"; then
13195   { echo "$as_me:$LINENO: result: $CC" >&5
13196 echo "${ECHO_T}$CC" >&6; }
13197 else
13198   { echo "$as_me:$LINENO: result: no" >&5
13199 echo "${ECHO_T}no" >&6; }
13200 fi
13201
13202
13203     test -n "$CC" && break
13204   done
13205 fi
13206 if test -z "$CC"; then
13207   ac_ct_CC=$CC
13208   for ac_prog in cl.exe
13209 do
13210   # Extract the first word of "$ac_prog", so it can be a program name with args.
13211 set dummy $ac_prog; ac_word=$2
13212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217   if test -n "$ac_ct_CC"; then
13218   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13219 else
13220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $PATH
13222 do
13223   IFS=$as_save_IFS
13224   test -z "$as_dir" && as_dir=.
13225   for ac_exec_ext in '' $ac_executable_extensions; do
13226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13227     ac_cv_prog_ac_ct_CC="$ac_prog"
13228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13229     break 2
13230   fi
13231 done
13232 done
13233 IFS=$as_save_IFS
13234
13235 fi
13236 fi
13237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13238 if test -n "$ac_ct_CC"; then
13239   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13240 echo "${ECHO_T}$ac_ct_CC" >&6; }
13241 else
13242   { echo "$as_me:$LINENO: result: no" >&5
13243 echo "${ECHO_T}no" >&6; }
13244 fi
13245
13246
13247   test -n "$ac_ct_CC" && break
13248 done
13249
13250   if test "x$ac_ct_CC" = x; then
13251     CC=""
13252   else
13253     case $cross_compiling:$ac_tool_warned in
13254 yes:)
13255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13256 whose name does not start with the host triplet.  If you think this
13257 configuration is useful to you, please write to autoconf@gnu.org." >&5
13258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13259 whose name does not start with the host triplet.  If you think this
13260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13261 ac_tool_warned=yes ;;
13262 esac
13263     CC=$ac_ct_CC
13264   fi
13265 fi
13266
13267 fi
13268
13269
13270 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13271 See \`config.log' for more details." >&5
13272 echo "$as_me: error: no acceptable C compiler found in \$PATH
13273 See \`config.log' for more details." >&2;}
13274    { (exit 1); exit 1; }; }
13275
13276 # Provide some information about the compiler.
13277 echo "$as_me:$LINENO: checking for C compiler version" >&5
13278 ac_compiler=`set X $ac_compile; echo $2`
13279 { (ac_try="$ac_compiler --version >&5"
13280 case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_compiler --version >&5") 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }
13289 { (ac_try="$ac_compiler -v >&5"
13290 case "(($ac_try" in
13291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292   *) ac_try_echo=$ac_try;;
13293 esac
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295   (eval "$ac_compiler -v >&5") 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); }
13299 { (ac_try="$ac_compiler -V >&5"
13300 case "(($ac_try" in
13301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302   *) ac_try_echo=$ac_try;;
13303 esac
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305   (eval "$ac_compiler -V >&5") 2>&5
13306   ac_status=$?
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); }
13309
13310 cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h.  */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h.  */
13316
13317 int
13318 main ()
13319 {
13320
13321   ;
13322   return 0;
13323 }
13324 _ACEOF
13325 ac_clean_files_save=$ac_clean_files
13326 ac_clean_files="$ac_clean_files a.out a.exe b.out"
13327 # Try to create an executable without -o first, disregard a.out.
13328 # It will help us diagnose broken compilers, and finding out an intuition
13329 # of exeext.
13330 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
13331 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
13332 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
13333 #
13334 # List of possible output files, starting from the most likely.
13335 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
13336 # only as a last resort.  b.out is created by i960 compilers.
13337 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
13338 #
13339 # The IRIX 6 linker writes into existing files which may not be
13340 # executable, retaining their permissions.  Remove them first so a
13341 # subsequent execution test works.
13342 ac_rmfiles=
13343 for ac_file in $ac_files
13344 do
13345   case $ac_file in
13346     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
13347     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
13348   esac
13349 done
13350 rm -f $ac_rmfiles
13351
13352 if { (ac_try="$ac_link_default"
13353 case "(($ac_try" in
13354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355   *) ac_try_echo=$ac_try;;
13356 esac
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358   (eval "$ac_link_default") 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }; then
13362   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
13363 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
13364 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
13365 # so that the user can short-circuit this test for compilers unknown to
13366 # Autoconf.
13367 for ac_file in $ac_files ''
13368 do
13369   test -f "$ac_file" || continue
13370   case $ac_file in
13371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
13372         ;;
13373     [ab].out )
13374         # We found the default executable, but exeext='' is most
13375         # certainly right.
13376         break;;
13377     *.* )
13378         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
13379         then :; else
13380            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
13381         fi
13382         # We set ac_cv_exeext here because the later test for it is not
13383         # safe: cross compilers may not add the suffix if given an `-o'
13384         # argument, so we may need to know it at that point already.
13385         # Even if this section looks crufty: it has the advantage of
13386         # actually working.
13387         break;;
13388     * )
13389         break;;
13390   esac
13391 done
13392 test "$ac_cv_exeext" = no && ac_cv_exeext=
13393
13394 else
13395   ac_file=''
13396 fi
13397
13398 { echo "$as_me:$LINENO: result: $ac_file" >&5
13399 echo "${ECHO_T}$ac_file" >&6; }
13400 if test -z "$ac_file"; then
13401   echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13403
13404 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
13405 See \`config.log' for more details." >&5
13406 echo "$as_me: error: C compiler cannot create executables
13407 See \`config.log' for more details." >&2;}
13408    { (exit 77); exit 77; }; }
13409 fi
13410
13411 ac_exeext=$ac_cv_exeext
13412
13413 # Check that the compiler produces executables we can run.  If not, either
13414 # the compiler is broken, or we cross compile.
13415 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
13416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
13417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
13418 # If not cross compiling, check that we can run a simple program.
13419 if test "$cross_compiling" != yes; then
13420   if { ac_try='./$ac_file'
13421   { (case "(($ac_try" in
13422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423   *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426   (eval "$ac_try") 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; }; then
13430     cross_compiling=no
13431   else
13432     if test "$cross_compiling" = maybe; then
13433         cross_compiling=yes
13434     else
13435         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
13436 If you meant to cross compile, use \`--host'.
13437 See \`config.log' for more details." >&5
13438 echo "$as_me: error: cannot run C compiled programs.
13439 If you meant to cross compile, use \`--host'.
13440 See \`config.log' for more details." >&2;}
13441    { (exit 1); exit 1; }; }
13442     fi
13443   fi
13444 fi
13445 { echo "$as_me:$LINENO: result: yes" >&5
13446 echo "${ECHO_T}yes" >&6; }
13447
13448 rm -f a.out a.exe conftest$ac_cv_exeext b.out
13449 ac_clean_files=$ac_clean_files_save
13450 # Check that the compiler produces executables we can run.  If not, either
13451 # the compiler is broken, or we cross compile.
13452 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
13453 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
13454 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
13455 echo "${ECHO_T}$cross_compiling" >&6; }
13456
13457 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
13458 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
13459 if { (ac_try="$ac_link"
13460 case "(($ac_try" in
13461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462   *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465   (eval "$ac_link") 2>&5
13466   ac_status=$?
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); }; then
13469   # If both `conftest.exe' and `conftest' are `present' (well, observable)
13470 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
13471 # work properly (i.e., refer to `conftest.exe'), while it won't with
13472 # `rm'.
13473 for ac_file in conftest.exe conftest conftest.*; do
13474   test -f "$ac_file" || continue
13475   case $ac_file in
13476     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
13477     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
13478           break;;
13479     * ) break;;
13480   esac
13481 done
13482 else
13483   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
13484 See \`config.log' for more details." >&5
13485 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
13486 See \`config.log' for more details." >&2;}
13487    { (exit 1); exit 1; }; }
13488 fi
13489
13490 rm -f conftest$ac_cv_exeext
13491 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
13492 echo "${ECHO_T}$ac_cv_exeext" >&6; }
13493
13494 rm -f conftest.$ac_ext
13495 EXEEXT=$ac_cv_exeext
13496 ac_exeext=$EXEEXT
13497 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
13498 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
13499 if test "${ac_cv_objext+set}" = set; then
13500   echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502   cat >conftest.$ac_ext <<_ACEOF
13503 /* confdefs.h.  */
13504 _ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h.  */
13508
13509 int
13510 main ()
13511 {
13512
13513   ;
13514   return 0;
13515 }
13516 _ACEOF
13517 rm -f conftest.o conftest.obj
13518 if { (ac_try="$ac_compile"
13519 case "(($ac_try" in
13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521   *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524   (eval "$ac_compile") 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; then
13528   for ac_file in conftest.o conftest.obj conftest.*; do
13529   test -f "$ac_file" || continue;
13530   case $ac_file in
13531     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
13532     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
13533        break;;
13534   esac
13535 done
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
13541 See \`config.log' for more details." >&5
13542 echo "$as_me: error: cannot compute suffix of object files: cannot compile
13543 See \`config.log' for more details." >&2;}
13544    { (exit 1); exit 1; }; }
13545 fi
13546
13547 rm -f conftest.$ac_cv_objext conftest.$ac_ext
13548 fi
13549 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
13550 echo "${ECHO_T}$ac_cv_objext" >&6; }
13551 OBJEXT=$ac_cv_objext
13552 ac_objext=$OBJEXT
13553 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13554 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13555 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13556   echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558   cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h.  */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h.  */
13564
13565 int
13566 main ()
13567 {
13568 #ifndef __GNUC__
13569        choke me
13570 #endif
13571
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 rm -f conftest.$ac_objext
13577 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13584   ac_status=$?
13585   grep -v '^ *+' conftest.er1 >conftest.err
13586   rm -f conftest.er1
13587   cat conftest.err >&5
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } && {
13590          test -z "$ac_c_werror_flag" ||
13591          test ! -s conftest.err
13592        } && test -s conftest.$ac_objext; then
13593   ac_compiler_gnu=yes
13594 else
13595   echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13597
13598         ac_compiler_gnu=no
13599 fi
13600
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13603
13604 fi
13605 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13606 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13607 GCC=`test $ac_compiler_gnu = yes && echo yes`
13608 ac_test_CFLAGS=${CFLAGS+set}
13609 ac_save_CFLAGS=$CFLAGS
13610 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13611 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13612 if test "${ac_cv_prog_cc_g+set}" = set; then
13613   echo $ECHO_N "(cached) $ECHO_C" >&6
13614 else
13615   ac_save_c_werror_flag=$ac_c_werror_flag
13616    ac_c_werror_flag=yes
13617    ac_cv_prog_cc_g=no
13618    CFLAGS="-g"
13619    cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h.  */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h.  */
13625
13626 int
13627 main ()
13628 {
13629
13630   ;
13631   return 0;
13632 }
13633 _ACEOF
13634 rm -f conftest.$ac_objext
13635 if { (ac_try="$ac_compile"
13636 case "(($ac_try" in
13637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638   *) ac_try_echo=$ac_try;;
13639 esac
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641   (eval "$ac_compile") 2>conftest.er1
13642   ac_status=$?
13643   grep -v '^ *+' conftest.er1 >conftest.err
13644   rm -f conftest.er1
13645   cat conftest.err >&5
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); } && {
13648          test -z "$ac_c_werror_flag" ||
13649          test ! -s conftest.err
13650        } && test -s conftest.$ac_objext; then
13651   ac_cv_prog_cc_g=yes
13652 else
13653   echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13655
13656         CFLAGS=""
13657       cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663
13664 int
13665 main ()
13666 {
13667
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 rm -f conftest.$ac_objext
13673 if { (ac_try="$ac_compile"
13674 case "(($ac_try" in
13675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676   *) ac_try_echo=$ac_try;;
13677 esac
13678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679   (eval "$ac_compile") 2>conftest.er1
13680   ac_status=$?
13681   grep -v '^ *+' conftest.er1 >conftest.err
13682   rm -f conftest.er1
13683   cat conftest.err >&5
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); } && {
13686          test -z "$ac_c_werror_flag" ||
13687          test ! -s conftest.err
13688        } && test -s conftest.$ac_objext; then
13689   :
13690 else
13691   echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694         ac_c_werror_flag=$ac_save_c_werror_flag
13695          CFLAGS="-g"
13696          cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h.  */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h.  */
13702
13703 int
13704 main ()
13705 {
13706
13707   ;
13708   return 0;
13709 }
13710 _ACEOF
13711 rm -f conftest.$ac_objext
13712 if { (ac_try="$ac_compile"
13713 case "(($ac_try" in
13714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715   *) ac_try_echo=$ac_try;;
13716 esac
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718   (eval "$ac_compile") 2>conftest.er1
13719   ac_status=$?
13720   grep -v '^ *+' conftest.er1 >conftest.err
13721   rm -f conftest.er1
13722   cat conftest.err >&5
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } && {
13725          test -z "$ac_c_werror_flag" ||
13726          test ! -s conftest.err
13727        } && test -s conftest.$ac_objext; then
13728   ac_cv_prog_cc_g=yes
13729 else
13730   echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13732
13733
13734 fi
13735
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 fi
13738
13739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740 fi
13741
13742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743    ac_c_werror_flag=$ac_save_c_werror_flag
13744 fi
13745 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13746 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13747 if test "$ac_test_CFLAGS" = set; then
13748   CFLAGS=$ac_save_CFLAGS
13749 elif test $ac_cv_prog_cc_g = yes; then
13750   if test "$GCC" = yes; then
13751     CFLAGS="-g -O2"
13752   else
13753     CFLAGS="-g"
13754   fi
13755 else
13756   if test "$GCC" = yes; then
13757     CFLAGS="-O2"
13758   else
13759     CFLAGS=
13760   fi
13761 fi
13762 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13763 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13764 if test "${ac_cv_prog_cc_c89+set}" = set; then
13765   echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767   ac_cv_prog_cc_c89=no
13768 ac_save_CC=$CC
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775 #include <stdarg.h>
13776 #include <stdio.h>
13777 #include <sys/types.h>
13778 #include <sys/stat.h>
13779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13780 struct buf { int x; };
13781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13782 static char *e (p, i)
13783      char **p;
13784      int i;
13785 {
13786   return p[i];
13787 }
13788 static char *f (char * (*g) (char **, int), char **p, ...)
13789 {
13790   char *s;
13791   va_list v;
13792   va_start (v,p);
13793   s = g (p, va_arg (v,int));
13794   va_end (v);
13795   return s;
13796 }
13797
13798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13799    function prototypes and stuff, but not '\xHH' hex character constants.
13800    These don't provoke an error unfortunately, instead are silently treated
13801    as 'x'.  The following induces an error, until -std is added to get
13802    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13803    array size at least.  It's necessary to write '\x00'==0 to get something
13804    that's true only with -std.  */
13805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13806
13807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13808    inside strings and character constants.  */
13809 #define FOO(x) 'x'
13810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13811
13812 int test (int i, double x);
13813 struct s1 {int (*f) (int a);};
13814 struct s2 {int (*f) (double a);};
13815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13816 int argc;
13817 char **argv;
13818 int
13819 main ()
13820 {
13821 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13822   ;
13823   return 0;
13824 }
13825 _ACEOF
13826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13827         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13828 do
13829   CC="$ac_save_CC $ac_arg"
13830   rm -f conftest.$ac_objext
13831 if { (ac_try="$ac_compile"
13832 case "(($ac_try" in
13833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834   *) ac_try_echo=$ac_try;;
13835 esac
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837   (eval "$ac_compile") 2>conftest.er1
13838   ac_status=$?
13839   grep -v '^ *+' conftest.er1 >conftest.err
13840   rm -f conftest.er1
13841   cat conftest.err >&5
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); } && {
13844          test -z "$ac_c_werror_flag" ||
13845          test ! -s conftest.err
13846        } && test -s conftest.$ac_objext; then
13847   ac_cv_prog_cc_c89=$ac_arg
13848 else
13849   echo "$as_me: failed program was:" >&5
13850 sed 's/^/| /' conftest.$ac_ext >&5
13851
13852
13853 fi
13854
13855 rm -f core conftest.err conftest.$ac_objext
13856   test "x$ac_cv_prog_cc_c89" != "xno" && break
13857 done
13858 rm -f conftest.$ac_ext
13859 CC=$ac_save_CC
13860
13861 fi
13862 # AC_CACHE_VAL
13863 case "x$ac_cv_prog_cc_c89" in
13864   x)
13865     { echo "$as_me:$LINENO: result: none needed" >&5
13866 echo "${ECHO_T}none needed" >&6; } ;;
13867   xno)
13868     { echo "$as_me:$LINENO: result: unsupported" >&5
13869 echo "${ECHO_T}unsupported" >&6; } ;;
13870   *)
13871     CC="$CC $ac_cv_prog_cc_c89"
13872     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13873 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13874 esac
13875
13876
13877 ac_ext=c
13878 ac_cpp='$CPP $CPPFLAGS'
13879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13882
13883
13884
13885
13886     ac_ext=c
13887 ac_cpp='$CPP $CPPFLAGS'
13888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13891
13892     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
13893 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
13894 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
13895   echo $ECHO_N "(cached) $ECHO_C" >&6
13896 else
13897   cat >conftest.$ac_ext <<_ACEOF
13898 /* confdefs.h.  */
13899 _ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h.  */
13903
13904 int
13905 main ()
13906 {
13907
13908              #ifndef __INTEL_COMPILER
13909                 choke me
13910              #endif
13911
13912   ;
13913   return 0;
13914 }
13915 _ACEOF
13916 rm -f conftest.$ac_objext
13917 if { (ac_try="$ac_compile"
13918 case "(($ac_try" in
13919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920   *) ac_try_echo=$ac_try;;
13921 esac
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923   (eval "$ac_compile") 2>conftest.er1
13924   ac_status=$?
13925   grep -v '^ *+' conftest.er1 >conftest.err
13926   rm -f conftest.er1
13927   cat conftest.err >&5
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); } && {
13930          test -z "$ac_c_werror_flag" ||
13931          test ! -s conftest.err
13932        } && test -s conftest.$ac_objext; then
13933   bakefile_cv_c_compiler___INTEL_COMPILER=yes
13934 else
13935   echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13937
13938         bakefile_cv_c_compiler___INTEL_COMPILER=no
13939
13940 fi
13941
13942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13943
13944
13945 fi
13946 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
13947 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
13948     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
13949         :; INTELCC=yes
13950     else
13951         :;
13952     fi
13953     ac_ext=c
13954 ac_cpp='$CPP $CPPFLAGS'
13955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13958
13959
13960
13961
13962         if test "x$GCC" != "xyes"; then
13963         if test "xCC" = "xC"; then
13964             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
13965 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
13966 if test "${bakefile_cv_c_exto+set}" = set; then
13967   echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969   cat >conftest.$ac_ext <<_ACEOF
13970 /* confdefs.h.  */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h.  */
13975
13976 int
13977 main ()
13978 {
13979
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 rm -f conftest.$ac_objext conftest.$ac_ext.o
13985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13986   (eval $ac_compile) 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); }; then
13990   for ac_file in `(ls conftest.* 2>/dev/null)`; do
13991     case $ac_file in
13992         conftest.$ac_ext.o)
13993             bakefile_cv_c_exto="-ext o"
13994             ;;
13995         *)
13996             ;;
13997     esac
13998 done
13999 else
14000   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14001 See \`config.log' for more details." >&5
14002 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14003 See \`config.log' for more details." >&2;}
14004    { (exit 1); exit 1; }; }
14005
14006 fi
14007
14008 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14009
14010 fi
14011 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
14012 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
14013 if test "x$bakefile_cv_c_exto" '!=' "x"; then
14014     if test "c" = "c"; then
14015         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
14016     fi
14017     if test "c" = "cxx"; then
14018         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
14019     fi
14020 fi
14021
14022             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14023                 unset ac_cv_prog_cc_g
14024                 ac_test_CFLAGS=${CFLAGS+set}
14025 ac_save_CFLAGS=$CFLAGS
14026 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14028 if test "${ac_cv_prog_cc_g+set}" = set; then
14029   echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031   ac_save_c_werror_flag=$ac_c_werror_flag
14032    ac_c_werror_flag=yes
14033    ac_cv_prog_cc_g=no
14034    CFLAGS="-g"
14035    cat >conftest.$ac_ext <<_ACEOF
14036 /* confdefs.h.  */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h.  */
14041
14042 int
14043 main ()
14044 {
14045
14046   ;
14047   return 0;
14048 }
14049 _ACEOF
14050 rm -f conftest.$ac_objext
14051 if { (ac_try="$ac_compile"
14052 case "(($ac_try" in
14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054   *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057   (eval "$ac_compile") 2>conftest.er1
14058   ac_status=$?
14059   grep -v '^ *+' conftest.er1 >conftest.err
14060   rm -f conftest.er1
14061   cat conftest.err >&5
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); } && {
14064          test -z "$ac_c_werror_flag" ||
14065          test ! -s conftest.err
14066        } && test -s conftest.$ac_objext; then
14067   ac_cv_prog_cc_g=yes
14068 else
14069   echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072         CFLAGS=""
14073       cat >conftest.$ac_ext <<_ACEOF
14074 /* confdefs.h.  */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h.  */
14079
14080 int
14081 main ()
14082 {
14083
14084   ;
14085   return 0;
14086 }
14087 _ACEOF
14088 rm -f conftest.$ac_objext
14089 if { (ac_try="$ac_compile"
14090 case "(($ac_try" in
14091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092   *) ac_try_echo=$ac_try;;
14093 esac
14094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095   (eval "$ac_compile") 2>conftest.er1
14096   ac_status=$?
14097   grep -v '^ *+' conftest.er1 >conftest.err
14098   rm -f conftest.er1
14099   cat conftest.err >&5
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); } && {
14102          test -z "$ac_c_werror_flag" ||
14103          test ! -s conftest.err
14104        } && test -s conftest.$ac_objext; then
14105   :
14106 else
14107   echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110         ac_c_werror_flag=$ac_save_c_werror_flag
14111          CFLAGS="-g"
14112          cat >conftest.$ac_ext <<_ACEOF
14113 /* confdefs.h.  */
14114 _ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h.  */
14118
14119 int
14120 main ()
14121 {
14122
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 rm -f conftest.$ac_objext
14128 if { (ac_try="$ac_compile"
14129 case "(($ac_try" in
14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131   *) ac_try_echo=$ac_try;;
14132 esac
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134   (eval "$ac_compile") 2>conftest.er1
14135   ac_status=$?
14136   grep -v '^ *+' conftest.er1 >conftest.err
14137   rm -f conftest.er1
14138   cat conftest.err >&5
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } && {
14141          test -z "$ac_c_werror_flag" ||
14142          test ! -s conftest.err
14143        } && test -s conftest.$ac_objext; then
14144   ac_cv_prog_cc_g=yes
14145 else
14146   echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14148
14149
14150 fi
14151
14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14153 fi
14154
14155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14156 fi
14157
14158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159    ac_c_werror_flag=$ac_save_c_werror_flag
14160 fi
14161 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14162 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14163 if test "$ac_test_CFLAGS" = set; then
14164   CFLAGS=$ac_save_CFLAGS
14165 elif test $ac_cv_prog_cc_g = yes; then
14166   if test "$GCC" = yes; then
14167     CFLAGS="-g -O2"
14168   else
14169     CFLAGS="-g"
14170   fi
14171 else
14172   if test "$GCC" = yes; then
14173     CFLAGS="-O2"
14174   else
14175     CFLAGS=
14176   fi
14177 fi
14178             fi
14179         fi
14180
14181                         case `uname -s` in
14182             AIX*)
14183
14184
14185     ac_ext=c
14186 ac_cpp='$CPP $CPPFLAGS'
14187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14190
14191     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
14192 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
14193 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
14194   echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196   cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h.  */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h.  */
14202
14203 int
14204 main ()
14205 {
14206
14207              #ifndef __xlC__
14208                 choke me
14209              #endif
14210
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 rm -f conftest.$ac_objext
14216 if { (ac_try="$ac_compile"
14217 case "(($ac_try" in
14218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219   *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222   (eval "$ac_compile") 2>conftest.er1
14223   ac_status=$?
14224   grep -v '^ *+' conftest.er1 >conftest.err
14225   rm -f conftest.er1
14226   cat conftest.err >&5
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } && {
14229          test -z "$ac_c_werror_flag" ||
14230          test ! -s conftest.err
14231        } && test -s conftest.$ac_objext; then
14232   bakefile_cv_c_compiler___xlC__=yes
14233 else
14234   echo "$as_me: failed program was:" >&5
14235 sed 's/^/| /' conftest.$ac_ext >&5
14236
14237         bakefile_cv_c_compiler___xlC__=no
14238
14239 fi
14240
14241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14242
14243
14244 fi
14245 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
14246 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
14247     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
14248         :; XLCC=yes
14249     else
14250         :;
14251     fi
14252     ac_ext=c
14253 ac_cpp='$CPP $CPPFLAGS'
14254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14257
14258
14259
14260                 ;;
14261
14262             Darwin)
14263
14264
14265     ac_ext=c
14266 ac_cpp='$CPP $CPPFLAGS'
14267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14270
14271     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
14272 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
14273 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h.  */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h.  */
14282
14283 int
14284 main ()
14285 {
14286
14287              #ifndef __MWERKS__
14288                 choke me
14289              #endif
14290
14291   ;
14292   return 0;
14293 }
14294 _ACEOF
14295 rm -f conftest.$ac_objext
14296 if { (ac_try="$ac_compile"
14297 case "(($ac_try" in
14298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299   *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302   (eval "$ac_compile") 2>conftest.er1
14303   ac_status=$?
14304   grep -v '^ *+' conftest.er1 >conftest.err
14305   rm -f conftest.er1
14306   cat conftest.err >&5
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); } && {
14309          test -z "$ac_c_werror_flag" ||
14310          test ! -s conftest.err
14311        } && test -s conftest.$ac_objext; then
14312   bakefile_cv_c_compiler___MWERKS__=yes
14313 else
14314   echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14316
14317         bakefile_cv_c_compiler___MWERKS__=no
14318
14319 fi
14320
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322
14323
14324 fi
14325 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
14326 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
14327     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
14328         :; MWCC=yes
14329     else
14330         :;
14331     fi
14332     ac_ext=c
14333 ac_cpp='$CPP $CPPFLAGS'
14334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14337
14338
14339
14340
14341
14342     ac_ext=c
14343 ac_cpp='$CPP $CPPFLAGS'
14344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14347
14348     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
14349 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
14350 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
14351   echo $ECHO_N "(cached) $ECHO_C" >&6
14352 else
14353   cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h.  */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h.  */
14359
14360 int
14361 main ()
14362 {
14363
14364              #ifndef __xlC__
14365                 choke me
14366              #endif
14367
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 rm -f conftest.$ac_objext
14373 if { (ac_try="$ac_compile"
14374 case "(($ac_try" in
14375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376   *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379   (eval "$ac_compile") 2>conftest.er1
14380   ac_status=$?
14381   grep -v '^ *+' conftest.er1 >conftest.err
14382   rm -f conftest.er1
14383   cat conftest.err >&5
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); } && {
14386          test -z "$ac_c_werror_flag" ||
14387          test ! -s conftest.err
14388        } && test -s conftest.$ac_objext; then
14389   bakefile_cv_c_compiler___xlC__=yes
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394         bakefile_cv_c_compiler___xlC__=no
14395
14396 fi
14397
14398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399
14400
14401 fi
14402 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
14403 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
14404     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
14405         :; XLCC=yes
14406     else
14407         :;
14408     fi
14409     ac_ext=c
14410 ac_cpp='$CPP $CPPFLAGS'
14411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14414
14415
14416
14417                 ;;
14418
14419             IRIX*)
14420
14421
14422     ac_ext=c
14423 ac_cpp='$CPP $CPPFLAGS'
14424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14427
14428     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
14429 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
14430 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
14431   echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433   cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h.  */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h.  */
14439
14440 int
14441 main ()
14442 {
14443
14444              #ifndef _SGI_COMPILER_VERSION
14445                 choke me
14446              #endif
14447
14448   ;
14449   return 0;
14450 }
14451 _ACEOF
14452 rm -f conftest.$ac_objext
14453 if { (ac_try="$ac_compile"
14454 case "(($ac_try" in
14455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456   *) ac_try_echo=$ac_try;;
14457 esac
14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459   (eval "$ac_compile") 2>conftest.er1
14460   ac_status=$?
14461   grep -v '^ *+' conftest.er1 >conftest.err
14462   rm -f conftest.er1
14463   cat conftest.err >&5
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); } && {
14466          test -z "$ac_c_werror_flag" ||
14467          test ! -s conftest.err
14468        } && test -s conftest.$ac_objext; then
14469   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
14470 else
14471   echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14473
14474         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
14475
14476 fi
14477
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479
14480
14481 fi
14482 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
14483 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
14484     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14485         :; SGICC=yes
14486     else
14487         :;
14488     fi
14489     ac_ext=c
14490 ac_cpp='$CPP $CPPFLAGS'
14491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14494
14495
14496
14497                 ;;
14498
14499             Linux*)
14500
14501
14502     ac_ext=c
14503 ac_cpp='$CPP $CPPFLAGS'
14504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14507
14508     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
14509 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
14510 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
14511   echo $ECHO_N "(cached) $ECHO_C" >&6
14512 else
14513   cat >conftest.$ac_ext <<_ACEOF
14514 /* confdefs.h.  */
14515 _ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h.  */
14519
14520 int
14521 main ()
14522 {
14523
14524              #ifndef __SUNPRO_C
14525                 choke me
14526              #endif
14527
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext
14533 if { (ac_try="$ac_compile"
14534 case "(($ac_try" in
14535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536   *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539   (eval "$ac_compile") 2>conftest.er1
14540   ac_status=$?
14541   grep -v '^ *+' conftest.er1 >conftest.err
14542   rm -f conftest.er1
14543   cat conftest.err >&5
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } && {
14546          test -z "$ac_c_werror_flag" ||
14547          test ! -s conftest.err
14548        } && test -s conftest.$ac_objext; then
14549   bakefile_cv_c_compiler___SUNPRO_C=yes
14550 else
14551   echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14553
14554         bakefile_cv_c_compiler___SUNPRO_C=no
14555
14556 fi
14557
14558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14559
14560
14561 fi
14562 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
14563 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
14564     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
14565         :; SUNCC=yes
14566     else
14567         :;
14568     fi
14569     ac_ext=c
14570 ac_cpp='$CPP $CPPFLAGS'
14571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14574
14575
14576
14577                 ;;
14578
14579             HP-UX*)
14580
14581
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     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
14589 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
14590 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
14591   echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593   cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599
14600 int
14601 main ()
14602 {
14603
14604              #ifndef __HP_cc
14605                 choke me
14606              #endif
14607
14608   ;
14609   return 0;
14610 }
14611 _ACEOF
14612 rm -f conftest.$ac_objext
14613 if { (ac_try="$ac_compile"
14614 case "(($ac_try" in
14615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616   *) ac_try_echo=$ac_try;;
14617 esac
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619   (eval "$ac_compile") 2>conftest.er1
14620   ac_status=$?
14621   grep -v '^ *+' conftest.er1 >conftest.err
14622   rm -f conftest.er1
14623   cat conftest.err >&5
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); } && {
14626          test -z "$ac_c_werror_flag" ||
14627          test ! -s conftest.err
14628        } && test -s conftest.$ac_objext; then
14629   bakefile_cv_c_compiler___HP_cc=yes
14630 else
14631   echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634         bakefile_cv_c_compiler___HP_cc=no
14635
14636 fi
14637
14638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639
14640
14641 fi
14642 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
14643 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
14644     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
14645         :; HPCC=yes
14646     else
14647         :;
14648     fi
14649     ac_ext=c
14650 ac_cpp='$CPP $CPPFLAGS'
14651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14654
14655
14656
14657                 ;;
14658
14659             OSF1)
14660
14661
14662     ac_ext=c
14663 ac_cpp='$CPP $CPPFLAGS'
14664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14667
14668     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
14669 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
14670 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
14671   echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673   cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h.  */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h.  */
14679
14680 int
14681 main ()
14682 {
14683
14684              #ifndef __DECC
14685                 choke me
14686              #endif
14687
14688   ;
14689   return 0;
14690 }
14691 _ACEOF
14692 rm -f conftest.$ac_objext
14693 if { (ac_try="$ac_compile"
14694 case "(($ac_try" in
14695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696   *) ac_try_echo=$ac_try;;
14697 esac
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699   (eval "$ac_compile") 2>conftest.er1
14700   ac_status=$?
14701   grep -v '^ *+' conftest.er1 >conftest.err
14702   rm -f conftest.er1
14703   cat conftest.err >&5
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); } && {
14706          test -z "$ac_c_werror_flag" ||
14707          test ! -s conftest.err
14708        } && test -s conftest.$ac_objext; then
14709   bakefile_cv_c_compiler___DECC=yes
14710 else
14711   echo "$as_me: failed program was:" >&5
14712 sed 's/^/| /' conftest.$ac_ext >&5
14713
14714         bakefile_cv_c_compiler___DECC=no
14715
14716 fi
14717
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719
14720
14721 fi
14722 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
14723 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
14724     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
14725         :; COMPAQCC=yes
14726     else
14727         :;
14728     fi
14729     ac_ext=c
14730 ac_cpp='$CPP $CPPFLAGS'
14731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14734
14735
14736
14737                 ;;
14738
14739             SunOS)
14740
14741
14742     ac_ext=c
14743 ac_cpp='$CPP $CPPFLAGS'
14744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14747
14748     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
14749 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
14750 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
14751   echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753   cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h.  */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h.  */
14759
14760 int
14761 main ()
14762 {
14763
14764              #ifndef __SUNPRO_C
14765                 choke me
14766              #endif
14767
14768   ;
14769   return 0;
14770 }
14771 _ACEOF
14772 rm -f conftest.$ac_objext
14773 if { (ac_try="$ac_compile"
14774 case "(($ac_try" in
14775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776   *) ac_try_echo=$ac_try;;
14777 esac
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779   (eval "$ac_compile") 2>conftest.er1
14780   ac_status=$?
14781   grep -v '^ *+' conftest.er1 >conftest.err
14782   rm -f conftest.er1
14783   cat conftest.err >&5
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); } && {
14786          test -z "$ac_c_werror_flag" ||
14787          test ! -s conftest.err
14788        } && test -s conftest.$ac_objext; then
14789   bakefile_cv_c_compiler___SUNPRO_C=yes
14790 else
14791   echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14793
14794         bakefile_cv_c_compiler___SUNPRO_C=no
14795
14796 fi
14797
14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799
14800
14801 fi
14802 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
14803 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
14804     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
14805         :; SUNCC=yes
14806     else
14807         :;
14808     fi
14809     ac_ext=c
14810 ac_cpp='$CPP $CPPFLAGS'
14811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14814
14815
14816
14817                 ;;
14818         esac
14819     fi
14820
14821
14822
14823 ac_ext=c
14824 ac_cpp='$CPP $CPPFLAGS'
14825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14828 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14829 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
14830 # On Suns, sometimes $CPP names a directory.
14831 if test -n "$CPP" && test -d "$CPP"; then
14832   CPP=
14833 fi
14834 if test -z "$CPP"; then
14835   if test "${ac_cv_prog_CPP+set}" = set; then
14836   echo $ECHO_N "(cached) $ECHO_C" >&6
14837 else
14838       # Double quotes because CPP needs to be expanded
14839     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14840     do
14841       ac_preproc_ok=false
14842 for ac_c_preproc_warn_flag in '' yes
14843 do
14844   # Use a header file that comes with gcc, so configuring glibc
14845   # with a fresh cross-compiler works.
14846   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14847   # <limits.h> exists even on freestanding compilers.
14848   # On the NeXT, cc -E runs the code through the compiler's parser,
14849   # not just through cpp. "Syntax error" is here to catch this case.
14850   cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856 #ifdef __STDC__
14857 # include <limits.h>
14858 #else
14859 # include <assert.h>
14860 #endif
14861                      Syntax error
14862 _ACEOF
14863 if { (ac_try="$ac_cpp conftest.$ac_ext"
14864 case "(($ac_try" in
14865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866   *) ac_try_echo=$ac_try;;
14867 esac
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14870   ac_status=$?
14871   grep -v '^ *+' conftest.er1 >conftest.err
14872   rm -f conftest.er1
14873   cat conftest.err >&5
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); } >/dev/null && {
14876          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14877          test ! -s conftest.err
14878        }; then
14879   :
14880 else
14881   echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884   # Broken: fails on valid input.
14885 continue
14886 fi
14887
14888 rm -f conftest.err conftest.$ac_ext
14889
14890   # OK, works on sane cases.  Now check whether nonexistent headers
14891   # can be detected and how.
14892   cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h.  */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h.  */
14898 #include <ac_nonexistent.h>
14899 _ACEOF
14900 if { (ac_try="$ac_cpp conftest.$ac_ext"
14901 case "(($ac_try" in
14902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903   *) ac_try_echo=$ac_try;;
14904 esac
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14907   ac_status=$?
14908   grep -v '^ *+' conftest.er1 >conftest.err
14909   rm -f conftest.er1
14910   cat conftest.err >&5
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); } >/dev/null && {
14913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14914          test ! -s conftest.err
14915        }; then
14916   # Broken: success on invalid input.
14917 continue
14918 else
14919   echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14921
14922   # Passes both tests.
14923 ac_preproc_ok=:
14924 break
14925 fi
14926
14927 rm -f conftest.err conftest.$ac_ext
14928
14929 done
14930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14931 rm -f conftest.err conftest.$ac_ext
14932 if $ac_preproc_ok; then
14933   break
14934 fi
14935
14936     done
14937     ac_cv_prog_CPP=$CPP
14938
14939 fi
14940   CPP=$ac_cv_prog_CPP
14941 else
14942   ac_cv_prog_CPP=$CPP
14943 fi
14944 { echo "$as_me:$LINENO: result: $CPP" >&5
14945 echo "${ECHO_T}$CPP" >&6; }
14946 ac_preproc_ok=false
14947 for ac_c_preproc_warn_flag in '' yes
14948 do
14949   # Use a header file that comes with gcc, so configuring glibc
14950   # with a fresh cross-compiler works.
14951   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14952   # <limits.h> exists even on freestanding compilers.
14953   # On the NeXT, cc -E runs the code through the compiler's parser,
14954   # not just through cpp. "Syntax error" is here to catch this case.
14955   cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h.  */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h.  */
14961 #ifdef __STDC__
14962 # include <limits.h>
14963 #else
14964 # include <assert.h>
14965 #endif
14966                      Syntax error
14967 _ACEOF
14968 if { (ac_try="$ac_cpp conftest.$ac_ext"
14969 case "(($ac_try" in
14970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971   *) ac_try_echo=$ac_try;;
14972 esac
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14975   ac_status=$?
14976   grep -v '^ *+' conftest.er1 >conftest.err
14977   rm -f conftest.er1
14978   cat conftest.err >&5
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); } >/dev/null && {
14981          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14982          test ! -s conftest.err
14983        }; then
14984   :
14985 else
14986   echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989   # Broken: fails on valid input.
14990 continue
14991 fi
14992
14993 rm -f conftest.err conftest.$ac_ext
14994
14995   # OK, works on sane cases.  Now check whether nonexistent headers
14996   # can be detected and how.
14997   cat >conftest.$ac_ext <<_ACEOF
14998 /* confdefs.h.  */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h.  */
15003 #include <ac_nonexistent.h>
15004 _ACEOF
15005 if { (ac_try="$ac_cpp conftest.$ac_ext"
15006 case "(($ac_try" in
15007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008   *) ac_try_echo=$ac_try;;
15009 esac
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15012   ac_status=$?
15013   grep -v '^ *+' conftest.er1 >conftest.err
15014   rm -f conftest.er1
15015   cat conftest.err >&5
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); } >/dev/null && {
15018          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15019          test ! -s conftest.err
15020        }; then
15021   # Broken: success on invalid input.
15022 continue
15023 else
15024   echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15026
15027   # Passes both tests.
15028 ac_preproc_ok=:
15029 break
15030 fi
15031
15032 rm -f conftest.err conftest.$ac_ext
15033
15034 done
15035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15036 rm -f conftest.err conftest.$ac_ext
15037 if $ac_preproc_ok; then
15038   :
15039 else
15040   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
15041 See \`config.log' for more details." >&5
15042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
15043 See \`config.log' for more details." >&2;}
15044    { (exit 1); exit 1; }; }
15045 fi
15046
15047 ac_ext=c
15048 ac_cpp='$CPP $CPPFLAGS'
15049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15052
15053
15054 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
15055 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
15056 if test "${ac_cv_path_GREP+set}" = set; then
15057   echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059   # Extract the first word of "grep ggrep" to use in msg output
15060 if test -z "$GREP"; then
15061 set dummy grep ggrep; ac_prog_name=$2
15062 if test "${ac_cv_path_GREP+set}" = set; then
15063   echo $ECHO_N "(cached) $ECHO_C" >&6
15064 else
15065   ac_path_GREP_found=false
15066 # Loop through the user's path and test for each of PROGNAME-LIST
15067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15069 do
15070   IFS=$as_save_IFS
15071   test -z "$as_dir" && as_dir=.
15072   for ac_prog in grep ggrep; do
15073   for ac_exec_ext in '' $ac_executable_extensions; do
15074     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
15075     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
15076     # Check for GNU ac_path_GREP and select it if it is found.
15077   # Check for GNU $ac_path_GREP
15078 case `"$ac_path_GREP" --version 2>&1` in
15079 *GNU*)
15080   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
15081 *)
15082   ac_count=0
15083   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
15084   while :
15085   do
15086     cat "conftest.in" "conftest.in" >"conftest.tmp"
15087     mv "conftest.tmp" "conftest.in"
15088     cp "conftest.in" "conftest.nl"
15089     echo 'GREP' >> "conftest.nl"
15090     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15091     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15092     ac_count=`expr $ac_count + 1`
15093     if test $ac_count -gt ${ac_path_GREP_max-0}; then
15094       # Best one so far, save it but keep looking for a better one
15095       ac_cv_path_GREP="$ac_path_GREP"
15096       ac_path_GREP_max=$ac_count
15097     fi
15098     # 10*(2^10) chars as input seems more than enough
15099     test $ac_count -gt 10 && break
15100   done
15101   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15102 esac
15103
15104
15105     $ac_path_GREP_found && break 3
15106   done
15107 done
15108
15109 done
15110 IFS=$as_save_IFS
15111
15112
15113 fi
15114
15115 GREP="$ac_cv_path_GREP"
15116 if test -z "$GREP"; then
15117   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
15118 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
15119    { (exit 1); exit 1; }; }
15120 fi
15121
15122 else
15123   ac_cv_path_GREP=$GREP
15124 fi
15125
15126
15127 fi
15128 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
15129 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
15130  GREP="$ac_cv_path_GREP"
15131
15132
15133 { echo "$as_me:$LINENO: checking for egrep" >&5
15134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
15135 if test "${ac_cv_path_EGREP+set}" = set; then
15136   echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
15139    then ac_cv_path_EGREP="$GREP -E"
15140    else
15141      # Extract the first word of "egrep" to use in msg output
15142 if test -z "$EGREP"; then
15143 set dummy egrep; ac_prog_name=$2
15144 if test "${ac_cv_path_EGREP+set}" = set; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147   ac_path_EGREP_found=false
15148 # Loop through the user's path and test for each of PROGNAME-LIST
15149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15151 do
15152   IFS=$as_save_IFS
15153   test -z "$as_dir" && as_dir=.
15154   for ac_prog in egrep; do
15155   for ac_exec_ext in '' $ac_executable_extensions; do
15156     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
15157     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
15158     # Check for GNU ac_path_EGREP and select it if it is found.
15159   # Check for GNU $ac_path_EGREP
15160 case `"$ac_path_EGREP" --version 2>&1` in
15161 *GNU*)
15162   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
15163 *)
15164   ac_count=0
15165   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
15166   while :
15167   do
15168     cat "conftest.in" "conftest.in" >"conftest.tmp"
15169     mv "conftest.tmp" "conftest.in"
15170     cp "conftest.in" "conftest.nl"
15171     echo 'EGREP' >> "conftest.nl"
15172     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15173     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15174     ac_count=`expr $ac_count + 1`
15175     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
15176       # Best one so far, save it but keep looking for a better one
15177       ac_cv_path_EGREP="$ac_path_EGREP"
15178       ac_path_EGREP_max=$ac_count
15179     fi
15180     # 10*(2^10) chars as input seems more than enough
15181     test $ac_count -gt 10 && break
15182   done
15183   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15184 esac
15185
15186
15187     $ac_path_EGREP_found && break 3
15188   done
15189 done
15190
15191 done
15192 IFS=$as_save_IFS
15193
15194
15195 fi
15196
15197 EGREP="$ac_cv_path_EGREP"
15198 if test -z "$EGREP"; then
15199   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
15200 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
15201    { (exit 1); exit 1; }; }
15202 fi
15203
15204 else
15205   ac_cv_path_EGREP=$EGREP
15206 fi
15207
15208
15209    fi
15210 fi
15211 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
15212 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
15213  EGREP="$ac_cv_path_EGREP"
15214
15215
15216 if test $ac_cv_c_compiler_gnu = yes; then
15217     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
15218 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
15219 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
15220   echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222     ac_pattern="Autoconf.*'x'"
15223   cat >conftest.$ac_ext <<_ACEOF
15224 /* confdefs.h.  */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h.  */
15229 #include <sgtty.h>
15230 Autoconf TIOCGETP
15231 _ACEOF
15232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15233   $EGREP "$ac_pattern" >/dev/null 2>&1; then
15234   ac_cv_prog_gcc_traditional=yes
15235 else
15236   ac_cv_prog_gcc_traditional=no
15237 fi
15238 rm -f conftest*
15239
15240
15241   if test $ac_cv_prog_gcc_traditional = no; then
15242     cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 #include <termio.h>
15249 Autoconf TCGETA
15250 _ACEOF
15251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15252   $EGREP "$ac_pattern" >/dev/null 2>&1; then
15253   ac_cv_prog_gcc_traditional=yes
15254 fi
15255 rm -f conftest*
15256
15257   fi
15258 fi
15259 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
15260 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
15261   if test $ac_cv_prog_gcc_traditional = yes; then
15262     CC="$CC -traditional"
15263   fi
15264 fi
15265
15266
15267 CXXFLAGS=${CXXFLAGS:=}
15268
15269
15270
15271     ac_ext=cpp
15272 ac_cpp='$CXXCPP $CPPFLAGS'
15273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15276 if test -z "$CXX"; then
15277   if test -n "$CCC"; then
15278     CXX=$CCC
15279   else
15280     if test -n "$ac_tool_prefix"; then
15281   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15282   do
15283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15287 if test "${ac_cv_prog_CXX+set}" = set; then
15288   echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290   if test -n "$CXX"; then
15291   ac_cv_prog_CXX="$CXX" # Let the user override the test.
15292 else
15293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15294 for as_dir in $PATH
15295 do
15296   IFS=$as_save_IFS
15297   test -z "$as_dir" && as_dir=.
15298   for ac_exec_ext in '' $ac_executable_extensions; do
15299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15300     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15302     break 2
15303   fi
15304 done
15305 done
15306 IFS=$as_save_IFS
15307
15308 fi
15309 fi
15310 CXX=$ac_cv_prog_CXX
15311 if test -n "$CXX"; then
15312   { echo "$as_me:$LINENO: result: $CXX" >&5
15313 echo "${ECHO_T}$CXX" >&6; }
15314 else
15315   { echo "$as_me:$LINENO: result: no" >&5
15316 echo "${ECHO_T}no" >&6; }
15317 fi
15318
15319
15320     test -n "$CXX" && break
15321   done
15322 fi
15323 if test -z "$CXX"; then
15324   ac_ct_CXX=$CXX
15325   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15326 do
15327   # Extract the first word of "$ac_prog", so it can be a program name with args.
15328 set dummy $ac_prog; ac_word=$2
15329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15331 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15332   echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334   if test -n "$ac_ct_CXX"; then
15335   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15336 else
15337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15338 for as_dir in $PATH
15339 do
15340   IFS=$as_save_IFS
15341   test -z "$as_dir" && as_dir=.
15342   for ac_exec_ext in '' $ac_executable_extensions; do
15343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15344     ac_cv_prog_ac_ct_CXX="$ac_prog"
15345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15346     break 2
15347   fi
15348 done
15349 done
15350 IFS=$as_save_IFS
15351
15352 fi
15353 fi
15354 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15355 if test -n "$ac_ct_CXX"; then
15356   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15357 echo "${ECHO_T}$ac_ct_CXX" >&6; }
15358 else
15359   { echo "$as_me:$LINENO: result: no" >&5
15360 echo "${ECHO_T}no" >&6; }
15361 fi
15362
15363
15364   test -n "$ac_ct_CXX" && break
15365 done
15366
15367   if test "x$ac_ct_CXX" = x; then
15368     CXX="g++"
15369   else
15370     case $cross_compiling:$ac_tool_warned in
15371 yes:)
15372 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15373 whose name does not start with the host triplet.  If you think this
15374 configuration is useful to you, please write to autoconf@gnu.org." >&5
15375 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15376 whose name does not start with the host triplet.  If you think this
15377 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15378 ac_tool_warned=yes ;;
15379 esac
15380     CXX=$ac_ct_CXX
15381   fi
15382 fi
15383
15384   fi
15385 fi
15386 # Provide some information about the compiler.
15387 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
15388 ac_compiler=`set X $ac_compile; echo $2`
15389 { (ac_try="$ac_compiler --version >&5"
15390 case "(($ac_try" in
15391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392   *) ac_try_echo=$ac_try;;
15393 esac
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395   (eval "$ac_compiler --version >&5") 2>&5
15396   ac_status=$?
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); }
15399 { (ac_try="$ac_compiler -v >&5"
15400 case "(($ac_try" in
15401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402   *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405   (eval "$ac_compiler -v >&5") 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); }
15409 { (ac_try="$ac_compiler -V >&5"
15410 case "(($ac_try" in
15411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412   *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415   (eval "$ac_compiler -V >&5") 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); }
15419
15420 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15421 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
15422 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15423   echo $ECHO_N "(cached) $ECHO_C" >&6
15424 else
15425   cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h.  */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h.  */
15431
15432 int
15433 main ()
15434 {
15435 #ifndef __GNUC__
15436        choke me
15437 #endif
15438
15439   ;
15440   return 0;
15441 }
15442 _ACEOF
15443 rm -f conftest.$ac_objext
15444 if { (ac_try="$ac_compile"
15445 case "(($ac_try" in
15446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447   *) ac_try_echo=$ac_try;;
15448 esac
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450   (eval "$ac_compile") 2>conftest.er1
15451   ac_status=$?
15452   grep -v '^ *+' conftest.er1 >conftest.err
15453   rm -f conftest.er1
15454   cat conftest.err >&5
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } && {
15457          test -z "$ac_cxx_werror_flag" ||
15458          test ! -s conftest.err
15459        } && test -s conftest.$ac_objext; then
15460   ac_compiler_gnu=yes
15461 else
15462   echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15464
15465         ac_compiler_gnu=no
15466 fi
15467
15468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15470
15471 fi
15472 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15473 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
15474 GXX=`test $ac_compiler_gnu = yes && echo yes`
15475 ac_test_CXXFLAGS=${CXXFLAGS+set}
15476 ac_save_CXXFLAGS=$CXXFLAGS
15477 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15478 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
15479 if test "${ac_cv_prog_cxx_g+set}" = set; then
15480   echo $ECHO_N "(cached) $ECHO_C" >&6
15481 else
15482   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15483    ac_cxx_werror_flag=yes
15484    ac_cv_prog_cxx_g=no
15485    CXXFLAGS="-g"
15486    cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h.  */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h.  */
15492
15493 int
15494 main ()
15495 {
15496
15497   ;
15498   return 0;
15499 }
15500 _ACEOF
15501 rm -f conftest.$ac_objext
15502 if { (ac_try="$ac_compile"
15503 case "(($ac_try" in
15504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505   *) ac_try_echo=$ac_try;;
15506 esac
15507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508   (eval "$ac_compile") 2>conftest.er1
15509   ac_status=$?
15510   grep -v '^ *+' conftest.er1 >conftest.err
15511   rm -f conftest.er1
15512   cat conftest.err >&5
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); } && {
15515          test -z "$ac_cxx_werror_flag" ||
15516          test ! -s conftest.err
15517        } && test -s conftest.$ac_objext; then
15518   ac_cv_prog_cxx_g=yes
15519 else
15520   echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523         CXXFLAGS=""
15524       cat >conftest.$ac_ext <<_ACEOF
15525 /* confdefs.h.  */
15526 _ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h.  */
15530
15531 int
15532 main ()
15533 {
15534
15535   ;
15536   return 0;
15537 }
15538 _ACEOF
15539 rm -f conftest.$ac_objext
15540 if { (ac_try="$ac_compile"
15541 case "(($ac_try" in
15542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543   *) ac_try_echo=$ac_try;;
15544 esac
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546   (eval "$ac_compile") 2>conftest.er1
15547   ac_status=$?
15548   grep -v '^ *+' conftest.er1 >conftest.err
15549   rm -f conftest.er1
15550   cat conftest.err >&5
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); } && {
15553          test -z "$ac_cxx_werror_flag" ||
15554          test ! -s conftest.err
15555        } && test -s conftest.$ac_objext; then
15556   :
15557 else
15558   echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15560
15561         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15562          CXXFLAGS="-g"
15563          cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h.  */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h.  */
15569
15570 int
15571 main ()
15572 {
15573
15574   ;
15575   return 0;
15576 }
15577 _ACEOF
15578 rm -f conftest.$ac_objext
15579 if { (ac_try="$ac_compile"
15580 case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_compile") 2>conftest.er1
15586   ac_status=$?
15587   grep -v '^ *+' conftest.er1 >conftest.err
15588   rm -f conftest.er1
15589   cat conftest.err >&5
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); } && {
15592          test -z "$ac_cxx_werror_flag" ||
15593          test ! -s conftest.err
15594        } && test -s conftest.$ac_objext; then
15595   ac_cv_prog_cxx_g=yes
15596 else
15597   echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600
15601 fi
15602
15603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604 fi
15605
15606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607 fi
15608
15609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15610    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15611 fi
15612 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15613 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
15614 if test "$ac_test_CXXFLAGS" = set; then
15615   CXXFLAGS=$ac_save_CXXFLAGS
15616 elif test $ac_cv_prog_cxx_g = yes; then
15617   if test "$GXX" = yes; then
15618     CXXFLAGS="-g -O2"
15619   else
15620     CXXFLAGS="-g"
15621   fi
15622 else
15623   if test "$GXX" = yes; then
15624     CXXFLAGS="-O2"
15625   else
15626     CXXFLAGS=
15627   fi
15628 fi
15629 ac_ext=c
15630 ac_cpp='$CPP $CPPFLAGS'
15631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15634
15635
15636
15637
15638     ac_ext=cpp
15639 ac_cpp='$CXXCPP $CPPFLAGS'
15640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15643
15644     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
15645 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
15646 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
15647   echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649   cat >conftest.$ac_ext <<_ACEOF
15650 /* confdefs.h.  */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h.  */
15655
15656 int
15657 main ()
15658 {
15659
15660              #ifndef __INTEL_COMPILER
15661                 choke me
15662              #endif
15663
15664   ;
15665   return 0;
15666 }
15667 _ACEOF
15668 rm -f conftest.$ac_objext
15669 if { (ac_try="$ac_compile"
15670 case "(($ac_try" in
15671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672   *) ac_try_echo=$ac_try;;
15673 esac
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675   (eval "$ac_compile") 2>conftest.er1
15676   ac_status=$?
15677   grep -v '^ *+' conftest.er1 >conftest.err
15678   rm -f conftest.er1
15679   cat conftest.err >&5
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); } && {
15682          test -z "$ac_cxx_werror_flag" ||
15683          test ! -s conftest.err
15684        } && test -s conftest.$ac_objext; then
15685   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
15686 else
15687   echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15689
15690         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
15691
15692 fi
15693
15694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15695
15696
15697 fi
15698 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
15699 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
15700     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
15701         :; INTELCXX=yes
15702     else
15703         :;
15704     fi
15705     ac_ext=c
15706 ac_cpp='$CPP $CPPFLAGS'
15707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15710
15711
15712
15713
15714         if test "x$GCXX" != "xyes"; then
15715         if test "xCXX" = "xC"; then
15716             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15717 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15718 if test "${bakefile_cv_c_exto+set}" = set; then
15719   echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721   cat >conftest.$ac_ext <<_ACEOF
15722 /* confdefs.h.  */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h.  */
15727
15728 int
15729 main ()
15730 {
15731
15732   ;
15733   return 0;
15734 }
15735 _ACEOF
15736 rm -f conftest.$ac_objext conftest.$ac_ext.o
15737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15738   (eval $ac_compile) 2>&5
15739   ac_status=$?
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); }; then
15742   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15743     case $ac_file in
15744         conftest.$ac_ext.o)
15745             bakefile_cv_c_exto="-ext o"
15746             ;;
15747         *)
15748             ;;
15749     esac
15750 done
15751 else
15752   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15753 See \`config.log' for more details." >&5
15754 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15755 See \`config.log' for more details." >&2;}
15756    { (exit 1); exit 1; }; }
15757
15758 fi
15759
15760 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15761
15762 fi
15763 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15764 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15765 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15766     if test "c" = "c"; then
15767         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15768     fi
15769     if test "c" = "cxx"; then
15770         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15771     fi
15772 fi
15773
15774             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15775                 unset ac_cv_prog_cc_g
15776                 ac_test_CFLAGS=${CFLAGS+set}
15777 ac_save_CFLAGS=$CFLAGS
15778 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15779 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15780 if test "${ac_cv_prog_cc_g+set}" = set; then
15781   echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783   ac_save_c_werror_flag=$ac_c_werror_flag
15784    ac_c_werror_flag=yes
15785    ac_cv_prog_cc_g=no
15786    CFLAGS="-g"
15787    cat >conftest.$ac_ext <<_ACEOF
15788 /* confdefs.h.  */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h.  */
15793
15794 int
15795 main ()
15796 {
15797
15798   ;
15799   return 0;
15800 }
15801 _ACEOF
15802 rm -f conftest.$ac_objext
15803 if { (ac_try="$ac_compile"
15804 case "(($ac_try" in
15805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15806   *) ac_try_echo=$ac_try;;
15807 esac
15808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15809   (eval "$ac_compile") 2>conftest.er1
15810   ac_status=$?
15811   grep -v '^ *+' conftest.er1 >conftest.err
15812   rm -f conftest.er1
15813   cat conftest.err >&5
15814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); } && {
15816          test -z "$ac_c_werror_flag" ||
15817          test ! -s conftest.err
15818        } && test -s conftest.$ac_objext; then
15819   ac_cv_prog_cc_g=yes
15820 else
15821   echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824         CFLAGS=""
15825       cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h.  */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h.  */
15831
15832 int
15833 main ()
15834 {
15835
15836   ;
15837   return 0;
15838 }
15839 _ACEOF
15840 rm -f conftest.$ac_objext
15841 if { (ac_try="$ac_compile"
15842 case "(($ac_try" in
15843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844   *) ac_try_echo=$ac_try;;
15845 esac
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847   (eval "$ac_compile") 2>conftest.er1
15848   ac_status=$?
15849   grep -v '^ *+' conftest.er1 >conftest.err
15850   rm -f conftest.er1
15851   cat conftest.err >&5
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); } && {
15854          test -z "$ac_c_werror_flag" ||
15855          test ! -s conftest.err
15856        } && test -s conftest.$ac_objext; then
15857   :
15858 else
15859   echo "$as_me: failed program was:" >&5
15860 sed 's/^/| /' conftest.$ac_ext >&5
15861
15862         ac_c_werror_flag=$ac_save_c_werror_flag
15863          CFLAGS="-g"
15864          cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870
15871 int
15872 main ()
15873 {
15874
15875   ;
15876   return 0;
15877 }
15878 _ACEOF
15879 rm -f conftest.$ac_objext
15880 if { (ac_try="$ac_compile"
15881 case "(($ac_try" in
15882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883   *) ac_try_echo=$ac_try;;
15884 esac
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886   (eval "$ac_compile") 2>conftest.er1
15887   ac_status=$?
15888   grep -v '^ *+' conftest.er1 >conftest.err
15889   rm -f conftest.er1
15890   cat conftest.err >&5
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); } && {
15893          test -z "$ac_c_werror_flag" ||
15894          test ! -s conftest.err
15895        } && test -s conftest.$ac_objext; then
15896   ac_cv_prog_cc_g=yes
15897 else
15898   echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15900
15901
15902 fi
15903
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 fi
15906
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908 fi
15909
15910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15911    ac_c_werror_flag=$ac_save_c_werror_flag
15912 fi
15913 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15914 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15915 if test "$ac_test_CFLAGS" = set; then
15916   CFLAGS=$ac_save_CFLAGS
15917 elif test $ac_cv_prog_cc_g = yes; then
15918   if test "$GCC" = yes; then
15919     CFLAGS="-g -O2"
15920   else
15921     CFLAGS="-g"
15922   fi
15923 else
15924   if test "$GCC" = yes; then
15925     CFLAGS="-O2"
15926   else
15927     CFLAGS=
15928   fi
15929 fi
15930             fi
15931         fi
15932
15933                         case `uname -s` in
15934             AIX*)
15935
15936
15937     ac_ext=cpp
15938 ac_cpp='$CXXCPP $CPPFLAGS'
15939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15942
15943     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
15944 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
15945 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
15946   echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948   cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h.  */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h.  */
15954
15955 int
15956 main ()
15957 {
15958
15959              #ifndef __xlC__
15960                 choke me
15961              #endif
15962
15963   ;
15964   return 0;
15965 }
15966 _ACEOF
15967 rm -f conftest.$ac_objext
15968 if { (ac_try="$ac_compile"
15969 case "(($ac_try" in
15970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971   *) ac_try_echo=$ac_try;;
15972 esac
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974   (eval "$ac_compile") 2>conftest.er1
15975   ac_status=$?
15976   grep -v '^ *+' conftest.er1 >conftest.err
15977   rm -f conftest.er1
15978   cat conftest.err >&5
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); } && {
15981          test -z "$ac_cxx_werror_flag" ||
15982          test ! -s conftest.err
15983        } && test -s conftest.$ac_objext; then
15984   bakefile_cv_cxx_compiler___xlC__=yes
15985 else
15986   echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15988
15989         bakefile_cv_cxx_compiler___xlC__=no
15990
15991 fi
15992
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994
15995
15996 fi
15997 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
15998 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
15999     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
16000         :; XLCXX=yes
16001     else
16002         :;
16003     fi
16004     ac_ext=c
16005 ac_cpp='$CPP $CPPFLAGS'
16006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16009
16010
16011
16012                 ;;
16013
16014             Darwin)
16015
16016
16017     ac_ext=cpp
16018 ac_cpp='$CXXCPP $CPPFLAGS'
16019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16022
16023     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
16024 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
16025 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
16026   echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028   cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h.  */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h.  */
16034
16035 int
16036 main ()
16037 {
16038
16039              #ifndef __MWERKS__
16040                 choke me
16041              #endif
16042
16043   ;
16044   return 0;
16045 }
16046 _ACEOF
16047 rm -f conftest.$ac_objext
16048 if { (ac_try="$ac_compile"
16049 case "(($ac_try" in
16050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051   *) ac_try_echo=$ac_try;;
16052 esac
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054   (eval "$ac_compile") 2>conftest.er1
16055   ac_status=$?
16056   grep -v '^ *+' conftest.er1 >conftest.err
16057   rm -f conftest.er1
16058   cat conftest.err >&5
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); } && {
16061          test -z "$ac_cxx_werror_flag" ||
16062          test ! -s conftest.err
16063        } && test -s conftest.$ac_objext; then
16064   bakefile_cv_cxx_compiler___MWERKS__=yes
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069         bakefile_cv_cxx_compiler___MWERKS__=no
16070
16071 fi
16072
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074
16075
16076 fi
16077 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
16078 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
16079     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
16080         :; MWCXX=yes
16081     else
16082         :;
16083     fi
16084     ac_ext=c
16085 ac_cpp='$CPP $CPPFLAGS'
16086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16089
16090
16091
16092
16093
16094     ac_ext=cpp
16095 ac_cpp='$CXXCPP $CPPFLAGS'
16096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16099
16100     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
16101 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
16102 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
16103   echo $ECHO_N "(cached) $ECHO_C" >&6
16104 else
16105   cat >conftest.$ac_ext <<_ACEOF
16106 /* confdefs.h.  */
16107 _ACEOF
16108 cat confdefs.h >>conftest.$ac_ext
16109 cat >>conftest.$ac_ext <<_ACEOF
16110 /* end confdefs.h.  */
16111
16112 int
16113 main ()
16114 {
16115
16116              #ifndef __xlC__
16117                 choke me
16118              #endif
16119
16120   ;
16121   return 0;
16122 }
16123 _ACEOF
16124 rm -f conftest.$ac_objext
16125 if { (ac_try="$ac_compile"
16126 case "(($ac_try" in
16127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128   *) ac_try_echo=$ac_try;;
16129 esac
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131   (eval "$ac_compile") 2>conftest.er1
16132   ac_status=$?
16133   grep -v '^ *+' conftest.er1 >conftest.err
16134   rm -f conftest.er1
16135   cat conftest.err >&5
16136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137   (exit $ac_status); } && {
16138          test -z "$ac_cxx_werror_flag" ||
16139          test ! -s conftest.err
16140        } && test -s conftest.$ac_objext; then
16141   bakefile_cv_cxx_compiler___xlC__=yes
16142 else
16143   echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146         bakefile_cv_cxx_compiler___xlC__=no
16147
16148 fi
16149
16150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151
16152
16153 fi
16154 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
16155 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
16156     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
16157         :; XLCXX=yes
16158     else
16159         :;
16160     fi
16161     ac_ext=c
16162 ac_cpp='$CPP $CPPFLAGS'
16163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16166
16167
16168
16169                 ;;
16170
16171             IRIX*)
16172
16173
16174     ac_ext=cpp
16175 ac_cpp='$CXXCPP $CPPFLAGS'
16176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16179
16180     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
16181 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
16182 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185   cat >conftest.$ac_ext <<_ACEOF
16186 /* confdefs.h.  */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h.  */
16191
16192 int
16193 main ()
16194 {
16195
16196              #ifndef _SGI_COMPILER_VERSION
16197                 choke me
16198              #endif
16199
16200   ;
16201   return 0;
16202 }
16203 _ACEOF
16204 rm -f conftest.$ac_objext
16205 if { (ac_try="$ac_compile"
16206 case "(($ac_try" in
16207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208   *) ac_try_echo=$ac_try;;
16209 esac
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211   (eval "$ac_compile") 2>conftest.er1
16212   ac_status=$?
16213   grep -v '^ *+' conftest.er1 >conftest.err
16214   rm -f conftest.er1
16215   cat conftest.err >&5
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); } && {
16218          test -z "$ac_cxx_werror_flag" ||
16219          test ! -s conftest.err
16220        } && test -s conftest.$ac_objext; then
16221   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
16222 else
16223   echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
16227
16228 fi
16229
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231
16232
16233 fi
16234 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
16235 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
16236     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16237         :; SGICXX=yes
16238     else
16239         :;
16240     fi
16241     ac_ext=c
16242 ac_cpp='$CPP $CPPFLAGS'
16243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16246
16247
16248
16249                 ;;
16250
16251             Linux*)
16252
16253
16254     ac_ext=cpp
16255 ac_cpp='$CXXCPP $CPPFLAGS'
16256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16259
16260     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
16261 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
16262 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
16263   echo $ECHO_N "(cached) $ECHO_C" >&6
16264 else
16265   cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271
16272 int
16273 main ()
16274 {
16275
16276              #ifndef __SUNPRO_CC
16277                 choke me
16278              #endif
16279
16280   ;
16281   return 0;
16282 }
16283 _ACEOF
16284 rm -f conftest.$ac_objext
16285 if { (ac_try="$ac_compile"
16286 case "(($ac_try" in
16287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16288   *) ac_try_echo=$ac_try;;
16289 esac
16290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16291   (eval "$ac_compile") 2>conftest.er1
16292   ac_status=$?
16293   grep -v '^ *+' conftest.er1 >conftest.err
16294   rm -f conftest.er1
16295   cat conftest.err >&5
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); } && {
16298          test -z "$ac_cxx_werror_flag" ||
16299          test ! -s conftest.err
16300        } && test -s conftest.$ac_objext; then
16301   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
16302 else
16303   echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306         bakefile_cv_cxx_compiler___SUNPRO_CC=no
16307
16308 fi
16309
16310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311
16312
16313 fi
16314 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
16315 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
16316     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
16317         :; SUNCXX=yes
16318     else
16319         :;
16320     fi
16321     ac_ext=c
16322 ac_cpp='$CPP $CPPFLAGS'
16323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16326
16327
16328
16329                 ;;
16330
16331             HP-UX*)
16332
16333
16334     ac_ext=cpp
16335 ac_cpp='$CXXCPP $CPPFLAGS'
16336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16339
16340     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
16341 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
16342 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
16343   echo $ECHO_N "(cached) $ECHO_C" >&6
16344 else
16345   cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h.  */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h.  */
16351
16352 int
16353 main ()
16354 {
16355
16356              #ifndef __HP_aCC
16357                 choke me
16358              #endif
16359
16360   ;
16361   return 0;
16362 }
16363 _ACEOF
16364 rm -f conftest.$ac_objext
16365 if { (ac_try="$ac_compile"
16366 case "(($ac_try" in
16367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368   *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371   (eval "$ac_compile") 2>conftest.er1
16372   ac_status=$?
16373   grep -v '^ *+' conftest.er1 >conftest.err
16374   rm -f conftest.er1
16375   cat conftest.err >&5
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); } && {
16378          test -z "$ac_cxx_werror_flag" ||
16379          test ! -s conftest.err
16380        } && test -s conftest.$ac_objext; then
16381   bakefile_cv_cxx_compiler___HP_aCC=yes
16382 else
16383   echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16385
16386         bakefile_cv_cxx_compiler___HP_aCC=no
16387
16388 fi
16389
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391
16392
16393 fi
16394 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
16395 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
16396     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
16397         :; HPCXX=yes
16398     else
16399         :;
16400     fi
16401     ac_ext=c
16402 ac_cpp='$CPP $CPPFLAGS'
16403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16406
16407
16408
16409                 ;;
16410
16411             OSF1)
16412
16413
16414     ac_ext=cpp
16415 ac_cpp='$CXXCPP $CPPFLAGS'
16416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16419
16420     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
16421 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
16422 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
16423   echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425   cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h.  */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h.  */
16431
16432 int
16433 main ()
16434 {
16435
16436              #ifndef __DECCXX
16437                 choke me
16438              #endif
16439
16440   ;
16441   return 0;
16442 }
16443 _ACEOF
16444 rm -f conftest.$ac_objext
16445 if { (ac_try="$ac_compile"
16446 case "(($ac_try" in
16447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448   *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451   (eval "$ac_compile") 2>conftest.er1
16452   ac_status=$?
16453   grep -v '^ *+' conftest.er1 >conftest.err
16454   rm -f conftest.er1
16455   cat conftest.err >&5
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); } && {
16458          test -z "$ac_cxx_werror_flag" ||
16459          test ! -s conftest.err
16460        } && test -s conftest.$ac_objext; then
16461   bakefile_cv_cxx_compiler___DECCXX=yes
16462 else
16463   echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466         bakefile_cv_cxx_compiler___DECCXX=no
16467
16468 fi
16469
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16471
16472
16473 fi
16474 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
16475 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
16476     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
16477         :; COMPAQCXX=yes
16478     else
16479         :;
16480     fi
16481     ac_ext=c
16482 ac_cpp='$CPP $CPPFLAGS'
16483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16486
16487
16488
16489                 ;;
16490
16491             SunOS)
16492
16493
16494     ac_ext=cpp
16495 ac_cpp='$CXXCPP $CPPFLAGS'
16496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16499
16500     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
16501 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
16502 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505   cat >conftest.$ac_ext <<_ACEOF
16506 /* confdefs.h.  */
16507 _ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h.  */
16511
16512 int
16513 main ()
16514 {
16515
16516              #ifndef __SUNPRO_CC
16517                 choke me
16518              #endif
16519
16520   ;
16521   return 0;
16522 }
16523 _ACEOF
16524 rm -f conftest.$ac_objext
16525 if { (ac_try="$ac_compile"
16526 case "(($ac_try" in
16527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528   *) ac_try_echo=$ac_try;;
16529 esac
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531   (eval "$ac_compile") 2>conftest.er1
16532   ac_status=$?
16533   grep -v '^ *+' conftest.er1 >conftest.err
16534   rm -f conftest.er1
16535   cat conftest.err >&5
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); } && {
16538          test -z "$ac_cxx_werror_flag" ||
16539          test ! -s conftest.err
16540        } && test -s conftest.$ac_objext; then
16541   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
16542 else
16543   echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546         bakefile_cv_cxx_compiler___SUNPRO_CC=no
16547
16548 fi
16549
16550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16551
16552
16553 fi
16554 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
16555 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
16556     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
16557         :; SUNCXX=yes
16558     else
16559         :;
16560     fi
16561     ac_ext=c
16562 ac_cpp='$CPP $CPPFLAGS'
16563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16566
16567
16568
16569                 ;;
16570         esac
16571     fi
16572
16573
16574
16575 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
16576     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
16577 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
16578    { (exit 1); exit 1; }; }
16579 fi
16580
16581 if test -n "$ac_tool_prefix"; then
16582   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16583 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16586 if test "${ac_cv_prog_RANLIB+set}" = set; then
16587   echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589   if test -n "$RANLIB"; then
16590   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16591 else
16592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16593 for as_dir in $PATH
16594 do
16595   IFS=$as_save_IFS
16596   test -z "$as_dir" && as_dir=.
16597   for ac_exec_ext in '' $ac_executable_extensions; do
16598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16599     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16601     break 2
16602   fi
16603 done
16604 done
16605 IFS=$as_save_IFS
16606
16607 fi
16608 fi
16609 RANLIB=$ac_cv_prog_RANLIB
16610 if test -n "$RANLIB"; then
16611   { echo "$as_me:$LINENO: result: $RANLIB" >&5
16612 echo "${ECHO_T}$RANLIB" >&6; }
16613 else
16614   { echo "$as_me:$LINENO: result: no" >&5
16615 echo "${ECHO_T}no" >&6; }
16616 fi
16617
16618
16619 fi
16620 if test -z "$ac_cv_prog_RANLIB"; then
16621   ac_ct_RANLIB=$RANLIB
16622   # Extract the first word of "ranlib", so it can be a program name with args.
16623 set dummy ranlib; ac_word=$2
16624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16626 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16627   echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629   if test -n "$ac_ct_RANLIB"; then
16630   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16631 else
16632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16633 for as_dir in $PATH
16634 do
16635   IFS=$as_save_IFS
16636   test -z "$as_dir" && as_dir=.
16637   for ac_exec_ext in '' $ac_executable_extensions; do
16638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16639     ac_cv_prog_ac_ct_RANLIB="ranlib"
16640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16641     break 2
16642   fi
16643 done
16644 done
16645 IFS=$as_save_IFS
16646
16647 fi
16648 fi
16649 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16650 if test -n "$ac_ct_RANLIB"; then
16651   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16652 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
16653 else
16654   { echo "$as_me:$LINENO: result: no" >&5
16655 echo "${ECHO_T}no" >&6; }
16656 fi
16657
16658   if test "x$ac_ct_RANLIB" = x; then
16659     RANLIB=":"
16660   else
16661     case $cross_compiling:$ac_tool_warned in
16662 yes:)
16663 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16664 whose name does not start with the host triplet.  If you think this
16665 configuration is useful to you, please write to autoconf@gnu.org." >&5
16666 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16667 whose name does not start with the host triplet.  If you think this
16668 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16669 ac_tool_warned=yes ;;
16670 esac
16671     RANLIB=$ac_ct_RANLIB
16672   fi
16673 else
16674   RANLIB="$ac_cv_prog_RANLIB"
16675 fi
16676
16677
16678 if test "x$SUNCXX" != xyes; then
16679     if test -n "$ac_tool_prefix"; then
16680   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16681 set dummy ${ac_tool_prefix}ar; ac_word=$2
16682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16684 if test "${ac_cv_prog_AR+set}" = set; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687   if test -n "$AR"; then
16688   ac_cv_prog_AR="$AR" # Let the user override the test.
16689 else
16690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16691 for as_dir in $PATH
16692 do
16693   IFS=$as_save_IFS
16694   test -z "$as_dir" && as_dir=.
16695   for ac_exec_ext in '' $ac_executable_extensions; do
16696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16697     ac_cv_prog_AR="${ac_tool_prefix}ar"
16698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16699     break 2
16700   fi
16701 done
16702 done
16703 IFS=$as_save_IFS
16704
16705 fi
16706 fi
16707 AR=$ac_cv_prog_AR
16708 if test -n "$AR"; then
16709   { echo "$as_me:$LINENO: result: $AR" >&5
16710 echo "${ECHO_T}$AR" >&6; }
16711 else
16712   { echo "$as_me:$LINENO: result: no" >&5
16713 echo "${ECHO_T}no" >&6; }
16714 fi
16715
16716
16717 fi
16718 if test -z "$ac_cv_prog_AR"; then
16719   ac_ct_AR=$AR
16720   # Extract the first word of "ar", so it can be a program name with args.
16721 set dummy ar; 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_ac_ct_AR+set}" = set; then
16725   echo $ECHO_N "(cached) $ECHO_C" >&6
16726 else
16727   if test -n "$ac_ct_AR"; then
16728   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16737     ac_cv_prog_ac_ct_AR="ar"
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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16748 if test -n "$ac_ct_AR"; then
16749   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16750 echo "${ECHO_T}$ac_ct_AR" >&6; }
16751 else
16752   { echo "$as_me:$LINENO: result: no" >&5
16753 echo "${ECHO_T}no" >&6; }
16754 fi
16755
16756   if test "x$ac_ct_AR" = x; then
16757     AR=""
16758   else
16759     case $cross_compiling:$ac_tool_warned in
16760 yes:)
16761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16762 whose name does not start with the host triplet.  If you think this
16763 configuration is useful to you, please write to autoconf@gnu.org." >&5
16764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16765 whose name does not start with the host triplet.  If you think this
16766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16767 ac_tool_warned=yes ;;
16768 esac
16769     AR=$ac_ct_AR
16770   fi
16771 else
16772   AR="$ac_cv_prog_AR"
16773 fi
16774
16775     if test "x$AR" = "x" ; then
16776         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
16777 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
16778    { (exit 1); exit 1; }; }
16779     fi
16780 fi
16781
16782 # Find a good install program.  We prefer a C program (faster),
16783 # so one script is as good as another.  But avoid the broken or
16784 # incompatible versions:
16785 # SysV /etc/install, /usr/sbin/install
16786 # SunOS /usr/etc/install
16787 # IRIX /sbin/install
16788 # AIX /bin/install
16789 # AmigaOS /C/install, which installs bootblocks on floppy discs
16790 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16793 # OS/2's system install, which has a completely different semantic
16794 # ./install, which can be erroneously created by make from ./install.sh.
16795 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16796 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
16797 if test -z "$INSTALL"; then
16798 if test "${ac_cv_path_install+set}" = set; then
16799   echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16802 for as_dir in $PATH
16803 do
16804   IFS=$as_save_IFS
16805   test -z "$as_dir" && as_dir=.
16806   # Account for people who put trailing slashes in PATH elements.
16807 case $as_dir/ in
16808   ./ | .// | /cC/* | \
16809   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16810   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16811   /usr/ucb/* ) ;;
16812   *)
16813     # OSF1 and SCO ODT 3.0 have their own names for install.
16814     # Don't use installbsd from OSF since it installs stuff as root
16815     # by default.
16816     for ac_prog in ginstall scoinst install; do
16817       for ac_exec_ext in '' $ac_executable_extensions; do
16818         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
16819           if test $ac_prog = install &&
16820             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16821             # AIX install.  It has an incompatible calling convention.
16822             :
16823           elif test $ac_prog = install &&
16824             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16825             # program-specific install script used by HP pwplus--don't use.
16826             :
16827           else
16828             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16829             break 3
16830           fi
16831         fi
16832       done
16833     done
16834     ;;
16835 esac
16836 done
16837 IFS=$as_save_IFS
16838
16839
16840 fi
16841   if test "${ac_cv_path_install+set}" = set; then
16842     INSTALL=$ac_cv_path_install
16843   else
16844     # As a last resort, use the slow shell script.  Don't cache a
16845     # value for INSTALL within a source directory, because that will
16846     # break other packages using the cache if that directory is
16847     # removed, or if the value is a relative name.
16848     INSTALL=$ac_install_sh
16849   fi
16850 fi
16851 { echo "$as_me:$LINENO: result: $INSTALL" >&5
16852 echo "${ECHO_T}$INSTALL" >&6; }
16853
16854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16855 # It thinks the first close brace ends the variable substitution.
16856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16857
16858 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16859
16860 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16861
16862
16863 case ${INSTALL} in
16864   /* ) # Absolute
16865      ;;
16866   ?:* ) # Drive letter, considered as absolute.
16867      ;;
16868   *)
16869      INSTALL=`pwd`/${INSTALL} ;;
16870 esac
16871
16872
16873 case "${host}" in
16874
16875                 *-*-darwin* )
16876         INSTALL_PROGRAM="cp -fp"
16877         INSTALL_DATA="cp -fp"
16878         ;;
16879     *)
16880         ;;
16881 esac
16882
16883 if test -n "$ac_tool_prefix"; then
16884   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16885 set dummy ${ac_tool_prefix}strip; ac_word=$2
16886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16888 if test "${ac_cv_prog_STRIP+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   if test -n "$STRIP"; then
16892   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16893 else
16894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16895 for as_dir in $PATH
16896 do
16897   IFS=$as_save_IFS
16898   test -z "$as_dir" && as_dir=.
16899   for ac_exec_ext in '' $ac_executable_extensions; do
16900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16901     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16903     break 2
16904   fi
16905 done
16906 done
16907 IFS=$as_save_IFS
16908
16909 fi
16910 fi
16911 STRIP=$ac_cv_prog_STRIP
16912 if test -n "$STRIP"; then
16913   { echo "$as_me:$LINENO: result: $STRIP" >&5
16914 echo "${ECHO_T}$STRIP" >&6; }
16915 else
16916   { echo "$as_me:$LINENO: result: no" >&5
16917 echo "${ECHO_T}no" >&6; }
16918 fi
16919
16920
16921 fi
16922 if test -z "$ac_cv_prog_STRIP"; then
16923   ac_ct_STRIP=$STRIP
16924   # Extract the first word of "strip", so it can be a program name with args.
16925 set dummy strip; ac_word=$2
16926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16928 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16929   echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931   if test -n "$ac_ct_STRIP"; then
16932   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16933 else
16934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16935 for as_dir in $PATH
16936 do
16937   IFS=$as_save_IFS
16938   test -z "$as_dir" && as_dir=.
16939   for ac_exec_ext in '' $ac_executable_extensions; do
16940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16941     ac_cv_prog_ac_ct_STRIP="strip"
16942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16943     break 2
16944   fi
16945 done
16946 done
16947 IFS=$as_save_IFS
16948
16949 fi
16950 fi
16951 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16952 if test -n "$ac_ct_STRIP"; then
16953   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16954 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
16955 else
16956   { echo "$as_me:$LINENO: result: no" >&5
16957 echo "${ECHO_T}no" >&6; }
16958 fi
16959
16960   if test "x$ac_ct_STRIP" = x; then
16961     STRIP="true"
16962   else
16963     case $cross_compiling:$ac_tool_warned in
16964 yes:)
16965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16966 whose name does not start with the host triplet.  If you think this
16967 configuration is useful to you, please write to autoconf@gnu.org." >&5
16968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16969 whose name does not start with the host triplet.  If you think this
16970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16971 ac_tool_warned=yes ;;
16972 esac
16973     STRIP=$ac_ct_STRIP
16974   fi
16975 else
16976   STRIP="$ac_cv_prog_STRIP"
16977 fi
16978
16979
16980 if test "$wxUSE_WINE" = "yes"; then
16981     if test -n "$ac_tool_prefix"; then
16982   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
16983 set dummy ${ac_tool_prefix}wrc; ac_word=$2
16984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16986 if test "${ac_cv_prog_WINDRES+set}" = set; then
16987   echo $ECHO_N "(cached) $ECHO_C" >&6
16988 else
16989   if test -n "$WINDRES"; then
16990   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
16991 else
16992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16993 for as_dir in $PATH
16994 do
16995   IFS=$as_save_IFS
16996   test -z "$as_dir" && as_dir=.
16997   for ac_exec_ext in '' $ac_executable_extensions; do
16998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16999     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
17000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17001     break 2
17002   fi
17003 done
17004 done
17005 IFS=$as_save_IFS
17006
17007 fi
17008 fi
17009 WINDRES=$ac_cv_prog_WINDRES
17010 if test -n "$WINDRES"; then
17011   { echo "$as_me:$LINENO: result: $WINDRES" >&5
17012 echo "${ECHO_T}$WINDRES" >&6; }
17013 else
17014   { echo "$as_me:$LINENO: result: no" >&5
17015 echo "${ECHO_T}no" >&6; }
17016 fi
17017
17018
17019 fi
17020 if test -z "$ac_cv_prog_WINDRES"; then
17021   ac_ct_WINDRES=$WINDRES
17022   # Extract the first word of "wrc", so it can be a program name with args.
17023 set dummy wrc; 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_ac_ct_WINDRES+set}" = set; then
17027   echo $ECHO_N "(cached) $ECHO_C" >&6
17028 else
17029   if test -n "$ac_ct_WINDRES"; then
17030   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17039     ac_cv_prog_ac_ct_WINDRES="wrc"
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 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17050 if test -n "$ac_ct_WINDRES"; then
17051   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
17052 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
17053 else
17054   { echo "$as_me:$LINENO: result: no" >&5
17055 echo "${ECHO_T}no" >&6; }
17056 fi
17057
17058   if test "x$ac_ct_WINDRES" = x; then
17059     WINDRES=""
17060   else
17061     case $cross_compiling:$ac_tool_warned in
17062 yes:)
17063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17064 whose name does not start with the host triplet.  If you think this
17065 configuration is useful to you, please write to autoconf@gnu.org." >&5
17066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17067 whose name does not start with the host triplet.  If you think this
17068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17069 ac_tool_warned=yes ;;
17070 esac
17071     WINDRES=$ac_ct_WINDRES
17072   fi
17073 else
17074   WINDRES="$ac_cv_prog_WINDRES"
17075 fi
17076
17077     RESCOMP="$WINDRES"
17078 else
17079     case "${host}" in
17080     *-*-cygwin* | *-*-mingw32* )
17081                                 if test -n "$ac_tool_prefix"; then
17082   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17083 set dummy ${ac_tool_prefix}windres; ac_word=$2
17084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17086 if test "${ac_cv_prog_WINDRES+set}" = set; then
17087   echo $ECHO_N "(cached) $ECHO_C" >&6
17088 else
17089   if test -n "$WINDRES"; then
17090   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17091 else
17092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17093 for as_dir in $PATH
17094 do
17095   IFS=$as_save_IFS
17096   test -z "$as_dir" && as_dir=.
17097   for ac_exec_ext in '' $ac_executable_extensions; do
17098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17099     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17101     break 2
17102   fi
17103 done
17104 done
17105 IFS=$as_save_IFS
17106
17107 fi
17108 fi
17109 WINDRES=$ac_cv_prog_WINDRES
17110 if test -n "$WINDRES"; then
17111   { echo "$as_me:$LINENO: result: $WINDRES" >&5
17112 echo "${ECHO_T}$WINDRES" >&6; }
17113 else
17114   { echo "$as_me:$LINENO: result: no" >&5
17115 echo "${ECHO_T}no" >&6; }
17116 fi
17117
17118
17119 fi
17120 if test -z "$ac_cv_prog_WINDRES"; then
17121   ac_ct_WINDRES=$WINDRES
17122   # Extract the first word of "windres", so it can be a program name with args.
17123 set dummy windres; ac_word=$2
17124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17126 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
17127   echo $ECHO_N "(cached) $ECHO_C" >&6
17128 else
17129   if test -n "$ac_ct_WINDRES"; then
17130   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17131 else
17132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17133 for as_dir in $PATH
17134 do
17135   IFS=$as_save_IFS
17136   test -z "$as_dir" && as_dir=.
17137   for ac_exec_ext in '' $ac_executable_extensions; do
17138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17139     ac_cv_prog_ac_ct_WINDRES="windres"
17140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17141     break 2
17142   fi
17143 done
17144 done
17145 IFS=$as_save_IFS
17146
17147 fi
17148 fi
17149 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17150 if test -n "$ac_ct_WINDRES"; then
17151   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
17152 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
17153 else
17154   { echo "$as_me:$LINENO: result: no" >&5
17155 echo "${ECHO_T}no" >&6; }
17156 fi
17157
17158   if test "x$ac_ct_WINDRES" = x; then
17159     WINDRES=""
17160   else
17161     case $cross_compiling:$ac_tool_warned in
17162 yes:)
17163 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17164 whose name does not start with the host triplet.  If you think this
17165 configuration is useful to you, please write to autoconf@gnu.org." >&5
17166 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17167 whose name does not start with the host triplet.  If you think this
17168 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17169 ac_tool_warned=yes ;;
17170 esac
17171     WINDRES=$ac_ct_WINDRES
17172   fi
17173 else
17174   WINDRES="$ac_cv_prog_WINDRES"
17175 fi
17176
17177         RESCOMP="$WINDRES"
17178         if test -n "$ac_tool_prefix"; then
17179   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17180 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17183 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17184   echo $ECHO_N "(cached) $ECHO_C" >&6
17185 else
17186   if test -n "$DLLTOOL"; then
17187   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17188 else
17189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17190 for as_dir in $PATH
17191 do
17192   IFS=$as_save_IFS
17193   test -z "$as_dir" && as_dir=.
17194   for ac_exec_ext in '' $ac_executable_extensions; do
17195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17196     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17198     break 2
17199   fi
17200 done
17201 done
17202 IFS=$as_save_IFS
17203
17204 fi
17205 fi
17206 DLLTOOL=$ac_cv_prog_DLLTOOL
17207 if test -n "$DLLTOOL"; then
17208   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17209 echo "${ECHO_T}$DLLTOOL" >&6; }
17210 else
17211   { echo "$as_me:$LINENO: result: no" >&5
17212 echo "${ECHO_T}no" >&6; }
17213 fi
17214
17215
17216 fi
17217 if test -z "$ac_cv_prog_DLLTOOL"; then
17218   ac_ct_DLLTOOL=$DLLTOOL
17219   # Extract the first word of "dlltool", so it can be a program name with args.
17220 set dummy dlltool; ac_word=$2
17221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17223 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226   if test -n "$ac_ct_DLLTOOL"; then
17227   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17228 else
17229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17230 for as_dir in $PATH
17231 do
17232   IFS=$as_save_IFS
17233   test -z "$as_dir" && as_dir=.
17234   for ac_exec_ext in '' $ac_executable_extensions; do
17235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17236     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17238     break 2
17239   fi
17240 done
17241 done
17242 IFS=$as_save_IFS
17243
17244 fi
17245 fi
17246 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17247 if test -n "$ac_ct_DLLTOOL"; then
17248   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
17249 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
17250 else
17251   { echo "$as_me:$LINENO: result: no" >&5
17252 echo "${ECHO_T}no" >&6; }
17253 fi
17254
17255   if test "x$ac_ct_DLLTOOL" = x; then
17256     DLLTOOL=""
17257   else
17258     case $cross_compiling:$ac_tool_warned in
17259 yes:)
17260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17261 whose name does not start with the host triplet.  If you think this
17262 configuration is useful to you, please write to autoconf@gnu.org." >&5
17263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17264 whose name does not start with the host triplet.  If you think this
17265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17266 ac_tool_warned=yes ;;
17267 esac
17268     DLLTOOL=$ac_ct_DLLTOOL
17269   fi
17270 else
17271   DLLTOOL="$ac_cv_prog_DLLTOOL"
17272 fi
17273
17274         ;;
17275     esac
17276 fi
17277
17278 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
17279 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
17280 if test "${wx_cv_prog_makeisgnu+set}" = set; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283
17284     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
17285             $EGREP -s GNU > /dev/null); then
17286         wx_cv_prog_makeisgnu="yes"
17287     else
17288         wx_cv_prog_makeisgnu="no"
17289     fi
17290
17291 fi
17292 { echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
17293 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6; }
17294
17295 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
17296     IF_GNU_MAKE=""
17297 else
17298     IF_GNU_MAKE="#"
17299 fi
17300
17301
17302
17303 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
17304 { echo "$as_me:$LINENO: checking if make supports VPATH" >&5
17305 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6; }
17306 if test "${wx_cv_prog_makevpath+set}" = set; then
17307   echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309
17310 cat - << EOF > confMake
17311 check : file
17312         cp \$? \$@
17313         cp \$? final_file
17314 EOF
17315
17316 if test ! -d sub ; then
17317   mkdir sub
17318 fi
17319 echo dummy > sub/file
17320 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
17321 RESULT=$?
17322 rm -f sub/file check final_file confMake
17323 rmdir sub
17324 if test "$RESULT" = 0; then
17325   wx_cv_prog_makevpath="yes"
17326 else
17327   wx_cv_prog_makevpath="no"
17328 fi
17329
17330 fi
17331 { echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
17332 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6; }
17333
17334 if test "x$wx_cv_prog_makevpath" != "xyes"; then
17335 { { echo "$as_me:$LINENO: error:
17336 You need a make-utility that is able to use the variable
17337 VPATH correctly.
17338 If your version of make does not support VPATH correctly,
17339 please install GNU-make (possibly as gmake), and start
17340 configure with the following command:
17341 export MAKE=gmake; ./configure  for sh-type shells
17342 setenv MAKE gmake; ./configure  for csh-type shells
17343 Also please do remember to use gmake in this case every time
17344 you are trying to compile.
17345 " >&5
17346 echo "$as_me: error:
17347 You need a make-utility that is able to use the variable
17348 VPATH correctly.
17349 If your version of make does not support VPATH correctly,
17350 please install GNU-make (possibly as gmake), and start
17351 configure with the following command:
17352 export MAKE=gmake; ./configure  for sh-type shells
17353 setenv MAKE gmake; ./configure  for csh-type shells
17354 Also please do remember to use gmake in this case every time
17355 you are trying to compile.
17356 " >&2;}
17357    { (exit 1); exit 1; }; }
17358 fi fi
17359 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
17360 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
17361 LN_S=$as_ln_s
17362 if test "$LN_S" = "ln -s"; then
17363   { echo "$as_me:$LINENO: result: yes" >&5
17364 echo "${ECHO_T}yes" >&6; }
17365 else
17366   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
17367 echo "${ECHO_T}no, using $LN_S" >&6; }
17368 fi
17369
17370
17371
17372
17373 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
17374     CXXFLAGS="-qunique $CXXFLAGS"
17375 fi
17376
17377 case "${host}" in
17378   powerpc-*-darwin* )
17379     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
17380 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
17381     cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387
17388 int
17389 main ()
17390 {
17391 #ifndef __POWERPC__
17392         choke me for lack of PowerPC
17393 #endif
17394
17395   ;
17396   return 0;
17397 }
17398 _ACEOF
17399 rm -f conftest.$ac_objext
17400 if { (ac_try="$ac_compile"
17401 case "(($ac_try" in
17402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403   *) ac_try_echo=$ac_try;;
17404 esac
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406   (eval "$ac_compile") 2>conftest.er1
17407   ac_status=$?
17408   grep -v '^ *+' conftest.er1 >conftest.err
17409   rm -f conftest.er1
17410   cat conftest.err >&5
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); } && {
17413          test -z "$ac_c_werror_flag" ||
17414          test ! -s conftest.err
17415        } && test -s conftest.$ac_objext; then
17416   { echo "$as_me:$LINENO: result: yes" >&5
17417 echo "${ECHO_T}yes" >&6; }
17418 else
17419   echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422         { echo "$as_me:$LINENO: result: no" >&5
17423 echo "${ECHO_T}no" >&6; }
17424         cat >>confdefs.h <<\_ACEOF
17425 #define __POWERPC__ 1
17426 _ACEOF
17427
17428
17429 fi
17430
17431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17432   ;;
17433 esac
17434
17435 case "${host}" in
17436   *-*-darwin* )
17437     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
17438 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
17439     cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h.  */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h.  */
17445 #include <CoreFoundation/CFBase.h>
17446
17447 int
17448 main ()
17449 {
17450
17451   ;
17452   return 0;
17453 }
17454 _ACEOF
17455 rm -f conftest.$ac_objext
17456 if { (ac_try="$ac_compile"
17457 case "(($ac_try" in
17458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459   *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462   (eval "$ac_compile") 2>conftest.er1
17463   ac_status=$?
17464   grep -v '^ *+' conftest.er1 >conftest.err
17465   rm -f conftest.er1
17466   cat conftest.err >&5
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); } && {
17469          test -z "$ac_c_werror_flag" ||
17470          test ! -s conftest.err
17471        } && test -s conftest.$ac_objext; then
17472   { echo "$as_me:$LINENO: result: yes" >&5
17473 echo "${ECHO_T}yes" >&6; }
17474 else
17475   echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17477
17478         { echo "$as_me:$LINENO: result: no" >&5
17479 echo "${ECHO_T}no" >&6; }
17480         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
17481 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
17482         cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h.  */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h.  */
17488 #define __CF_USE_FRAMEWORK_INCLUDES__
17489 #include <CoreFoundation/CFBase.h>
17490
17491 int
17492 main ()
17493 {
17494
17495   ;
17496   return 0;
17497 }
17498 _ACEOF
17499 rm -f conftest.$ac_objext
17500 if { (ac_try="$ac_compile"
17501 case "(($ac_try" in
17502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503   *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506   (eval "$ac_compile") 2>conftest.er1
17507   ac_status=$?
17508   grep -v '^ *+' conftest.er1 >conftest.err
17509   rm -f conftest.er1
17510   cat conftest.err >&5
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); } && {
17513          test -z "$ac_c_werror_flag" ||
17514          test ! -s conftest.err
17515        } && test -s conftest.$ac_objext; then
17516   { echo "$as_me:$LINENO: result: yes" >&5
17517 echo "${ECHO_T}yes" >&6; }
17518                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
17519 else
17520   echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17522
17523         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
17524 See \`config.log' for more details." >&5
17525 echo "$as_me: error: no.  CoreFoundation not available.
17526 See \`config.log' for more details." >&2;}
17527    { (exit 1); exit 1; }; }
17528
17529 fi
17530
17531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17532
17533
17534 fi
17535
17536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17537   ;;
17538 esac
17539
17540 wants_win32=0
17541 doesnt_want_win32=0
17542 case "${host}" in
17543   *-*-cygwin*)
17544       if test "$wxUSE_MSW" = 1 ; then
17545         wants_win32=1
17546       else
17547                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
17548 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
17549 if test "${wx_cv_nocygwin+set}" = set; then
17550   echo $ECHO_N "(cached) $ECHO_C" >&6
17551 else
17552
17553                 cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h.  */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h.  */
17559
17560 int
17561 main ()
17562 {
17563
17564                         #ifdef __MINGW32__
17565                             choke me
17566                         #endif
17567
17568   ;
17569   return 0;
17570 }
17571 _ACEOF
17572 rm -f conftest.$ac_objext
17573 if { (ac_try="$ac_compile"
17574 case "(($ac_try" in
17575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576   *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579   (eval "$ac_compile") 2>conftest.er1
17580   ac_status=$?
17581   grep -v '^ *+' conftest.er1 >conftest.err
17582   rm -f conftest.er1
17583   cat conftest.err >&5
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); } && {
17586          test -z "$ac_c_werror_flag" ||
17587          test ! -s conftest.err
17588        } && test -s conftest.$ac_objext; then
17589   wx_cv_nocygwin=no
17590 else
17591   echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594         wx_cv_nocygwin=yes
17595
17596 fi
17597
17598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17599
17600
17601 fi
17602 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
17603 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
17604
17605         if test "$wx_cv_nocygwin" = "yes"; then
17606             wants_win32=1
17607         else
17608             doesnt_want_win32=1
17609         fi
17610       fi
17611       if test "$wants_win32" = 1 ; then
17612         BAKEFILE_FORCE_PLATFORM=win32
17613       fi
17614   ;;
17615   *-*-mingw*)
17616       wants_win32=1
17617   ;;
17618 esac
17619
17620 if test "$wxUSE_WINE" = "yes"; then
17621     wants_win32=1
17622     LDFLAGS_GUI="-mwindows"
17623 fi
17624
17625 if test "$wants_win32" = 1 ; then
17626     USE_UNIX=0
17627     USE_WIN32=1
17628     cat >>confdefs.h <<\_ACEOF
17629 #define __WIN32__ 1
17630 _ACEOF
17631
17632     cat >>confdefs.h <<\_ACEOF
17633 #define __WIN95__ 1
17634 _ACEOF
17635
17636     cat >>confdefs.h <<\_ACEOF
17637 #define __WINDOWS__ 1
17638 _ACEOF
17639
17640     cat >>confdefs.h <<\_ACEOF
17641 #define __GNUWIN32__ 1
17642 _ACEOF
17643
17644     cat >>confdefs.h <<\_ACEOF
17645 #define STRICT 1
17646 _ACEOF
17647
17648 fi
17649 if test "$doesnt_want_win32" = 1 ; then
17650     USE_UNIX=1
17651     USE_WIN32=0
17652 fi
17653
17654 if test "$USE_UNIX" = 1 ; then
17655     wxUSE_UNIX=yes
17656     cat >>confdefs.h <<\_ACEOF
17657 #define __UNIX__ 1
17658 _ACEOF
17659
17660 fi
17661
17662 case "${host}" in
17663   *-pc-os2_emx | *-pc-os2-emx )
17664                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
17665                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
17666 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
17667 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
17668   echo $ECHO_N "(cached) $ECHO_C" >&6
17669 else
17670   ac_check_lib_save_LIBS=$LIBS
17671 LIBS="-lcExt  $LIBS"
17672 cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h.  */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h.  */
17678
17679 /* Override any GCC internal prototype to avoid an error.
17680    Use char because int might match the return type of a GCC
17681    builtin and then its argument prototype would still apply.  */
17682 #ifdef __cplusplus
17683 extern "C"
17684 #endif
17685 char drand48 ();
17686 int
17687 main ()
17688 {
17689 return drand48 ();
17690   ;
17691   return 0;
17692 }
17693 _ACEOF
17694 rm -f conftest.$ac_objext conftest$ac_exeext
17695 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17702   ac_status=$?
17703   grep -v '^ *+' conftest.er1 >conftest.err
17704   rm -f conftest.er1
17705   cat conftest.err >&5
17706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); } && {
17708          test -z "$ac_c_werror_flag" ||
17709          test ! -s conftest.err
17710        } && test -s conftest$ac_exeext &&
17711        $as_test_x conftest$ac_exeext; then
17712   ac_cv_lib_cExt_drand48=yes
17713 else
17714   echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17716
17717         ac_cv_lib_cExt_drand48=no
17718 fi
17719
17720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17721       conftest$ac_exeext conftest.$ac_ext
17722 LIBS=$ac_check_lib_save_LIBS
17723 fi
17724 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
17725 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
17726 if test $ac_cv_lib_cExt_drand48 = yes; then
17727   LIBS="$LIBS -lcExt"
17728 fi
17729
17730       else
17731                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
17732       fi
17733                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
17734 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
17735 if test "${wx_cv_gccversion+set}" = set; then
17736   echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738
17739           if test "$cross_compiling" = yes; then
17740                 wx_cv_gccversion="EMX2"
17741
17742 else
17743   cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h.  */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h.  */
17749
17750                   #include <stdio.h>
17751
17752                   int main()
17753                   {
17754                       FILE *f=fopen("conftestval", "w");
17755                       if (!f) exit(1);
17756                       fprintf(f,
17757                   #if (__GNUC__ < 3)
17758                               "EMX2"
17759                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
17760                               "EMX3"
17761                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
17762                               "Innotek5"
17763                   #else
17764                               "Innotek6"
17765                   #endif
17766                       );
17767                       exit(0);
17768                   }
17769
17770 _ACEOF
17771 rm -f conftest$ac_exeext
17772 if { (ac_try="$ac_link"
17773 case "(($ac_try" in
17774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775   *) ac_try_echo=$ac_try;;
17776 esac
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778   (eval "$ac_link") 2>&5
17779   ac_status=$?
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17782   { (case "(($ac_try" in
17783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784   *) ac_try_echo=$ac_try;;
17785 esac
17786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787   (eval "$ac_try") 2>&5
17788   ac_status=$?
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); }; }; then
17791   wx_cv_gccversion=`cat conftestval`
17792 else
17793   echo "$as_me: program exited with status $ac_status" >&5
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17796
17797 ( exit $ac_status )
17798 wx_cv_gccversion="EMX2"
17799 fi
17800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17801 fi
17802
17803
17804
17805 fi
17806 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
17807 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
17808       if test "$wx_cv_gccversion" = "EMX2"; then
17809           LIBS="$LIBS -lstdcpp"
17810           LDFLAGS="$LDFLAGS -Zsysv-signals"
17811       else
17812           if test "$wx_cv_gccversion" = "EMX3"; then
17813               LIBS="$LIBS -lstdcxx -lgcc"
17814               LDFLAGS="$LDFLAGS -Zsysv-signals"
17815           else
17816               LIBS="$LIBS -lstdc++"
17817           fi
17818       fi
17819       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
17820         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
17821 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
17822         wxUSE_OMF=yes
17823         enable_omf=yes
17824       fi
17825         ;;
17826   *)
17827
17828       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
17829 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
17830 if test "${ac_cv_string_strcasecmp+set}" = set; then
17831   echo $ECHO_N "(cached) $ECHO_C" >&6
17832 else
17833
17834           cat >conftest.$ac_ext <<_ACEOF
17835 /* confdefs.h.  */
17836 _ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h.  */
17840
17841               #include <string.h>
17842
17843 int
17844 main ()
17845 {
17846
17847                   strcasecmp("foo", "bar");
17848
17849   ;
17850   return 0;
17851 }
17852 _ACEOF
17853 rm -f conftest.$ac_objext conftest$ac_exeext
17854 if { (ac_try="$ac_link"
17855 case "(($ac_try" in
17856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857   *) ac_try_echo=$ac_try;;
17858 esac
17859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860   (eval "$ac_link") 2>conftest.er1
17861   ac_status=$?
17862   grep -v '^ *+' conftest.er1 >conftest.err
17863   rm -f conftest.er1
17864   cat conftest.err >&5
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); } && {
17867          test -z "$ac_c_werror_flag" ||
17868          test ! -s conftest.err
17869        } && test -s conftest$ac_exeext &&
17870        $as_test_x conftest$ac_exeext; then
17871   ac_cv_string_strcasecmp=yes
17872 else
17873   echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17875
17876         ac_cv_string_strcasecmp=no
17877
17878 fi
17879
17880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17881       conftest$ac_exeext conftest.$ac_ext
17882
17883 fi
17884 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
17885 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
17886
17887       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
17888           cat >>confdefs.h <<\_ACEOF
17889 #define HAVE_STRCASECMP_IN_STRING_H 1
17890 _ACEOF
17891
17892       else
17893           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
17894 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
17895 if test "${ac_cv_strings_strcasecmp+set}" = set; then
17896   echo $ECHO_N "(cached) $ECHO_C" >&6
17897 else
17898
17899               cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h.  */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h.  */
17905
17906                   #include <strings.h>
17907
17908 int
17909 main ()
17910 {
17911
17912                       strcasecmp("foo", "bar");
17913
17914   ;
17915   return 0;
17916 }
17917 _ACEOF
17918 rm -f conftest.$ac_objext conftest$ac_exeext
17919 if { (ac_try="$ac_link"
17920 case "(($ac_try" in
17921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922   *) ac_try_echo=$ac_try;;
17923 esac
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925   (eval "$ac_link") 2>conftest.er1
17926   ac_status=$?
17927   grep -v '^ *+' conftest.er1 >conftest.err
17928   rm -f conftest.er1
17929   cat conftest.err >&5
17930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931   (exit $ac_status); } && {
17932          test -z "$ac_c_werror_flag" ||
17933          test ! -s conftest.err
17934        } && test -s conftest$ac_exeext &&
17935        $as_test_x conftest$ac_exeext; then
17936   ac_cv_strings_strcasecmp=yes
17937 else
17938   echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17940
17941         ac_cv_strings_strcasecmp=no
17942
17943 fi
17944
17945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17946       conftest$ac_exeext conftest.$ac_ext
17947
17948 fi
17949 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
17950 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
17951
17952           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
17953               cat >>confdefs.h <<\_ACEOF
17954 #define HAVE_STRCASECMP_IN_STRINGS_H 1
17955 _ACEOF
17956
17957           else
17958               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
17959 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
17960    { (exit 1); exit 1; }; }
17961           fi
17962       fi
17963
17964         ;;
17965 esac
17966
17967
17968 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
17969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
17970 if test "${ac_cv_header_stdc+set}" = set; then
17971   echo $ECHO_N "(cached) $ECHO_C" >&6
17972 else
17973   cat >conftest.$ac_ext <<_ACEOF
17974 /* confdefs.h.  */
17975 _ACEOF
17976 cat confdefs.h >>conftest.$ac_ext
17977 cat >>conftest.$ac_ext <<_ACEOF
17978 /* end confdefs.h.  */
17979 #include <stdlib.h>
17980 #include <stdarg.h>
17981 #include <string.h>
17982 #include <float.h>
17983
17984 int
17985 main ()
17986 {
17987
17988   ;
17989   return 0;
17990 }
17991 _ACEOF
17992 rm -f conftest.$ac_objext
17993 if { (ac_try="$ac_compile"
17994 case "(($ac_try" in
17995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996   *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999   (eval "$ac_compile") 2>conftest.er1
18000   ac_status=$?
18001   grep -v '^ *+' conftest.er1 >conftest.err
18002   rm -f conftest.er1
18003   cat conftest.err >&5
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); } && {
18006          test -z "$ac_c_werror_flag" ||
18007          test ! -s conftest.err
18008        } && test -s conftest.$ac_objext; then
18009   ac_cv_header_stdc=yes
18010 else
18011   echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014         ac_cv_header_stdc=no
18015 fi
18016
18017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018
18019 if test $ac_cv_header_stdc = yes; then
18020   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18021   cat >conftest.$ac_ext <<_ACEOF
18022 /* confdefs.h.  */
18023 _ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h.  */
18027 #include <string.h>
18028
18029 _ACEOF
18030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18031   $EGREP "memchr" >/dev/null 2>&1; then
18032   :
18033 else
18034   ac_cv_header_stdc=no
18035 fi
18036 rm -f conftest*
18037
18038 fi
18039
18040 if test $ac_cv_header_stdc = yes; then
18041   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18042   cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h.  */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h.  */
18048 #include <stdlib.h>
18049
18050 _ACEOF
18051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18052   $EGREP "free" >/dev/null 2>&1; then
18053   :
18054 else
18055   ac_cv_header_stdc=no
18056 fi
18057 rm -f conftest*
18058
18059 fi
18060
18061 if test $ac_cv_header_stdc = yes; then
18062   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18063   if test "$cross_compiling" = yes; then
18064   :
18065 else
18066   cat >conftest.$ac_ext <<_ACEOF
18067 /* confdefs.h.  */
18068 _ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h.  */
18072 #include <ctype.h>
18073 #include <stdlib.h>
18074 #if ((' ' & 0x0FF) == 0x020)
18075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18077 #else
18078 # define ISLOWER(c) \
18079                    (('a' <= (c) && (c) <= 'i') \
18080                      || ('j' <= (c) && (c) <= 'r') \
18081                      || ('s' <= (c) && (c) <= 'z'))
18082 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18083 #endif
18084
18085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18086 int
18087 main ()
18088 {
18089   int i;
18090   for (i = 0; i < 256; i++)
18091     if (XOR (islower (i), ISLOWER (i))
18092         || toupper (i) != TOUPPER (i))
18093       return 2;
18094   return 0;
18095 }
18096 _ACEOF
18097 rm -f conftest$ac_exeext
18098 if { (ac_try="$ac_link"
18099 case "(($ac_try" in
18100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101   *) ac_try_echo=$ac_try;;
18102 esac
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104   (eval "$ac_link") 2>&5
18105   ac_status=$?
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18108   { (case "(($ac_try" in
18109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110   *) ac_try_echo=$ac_try;;
18111 esac
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113   (eval "$ac_try") 2>&5
18114   ac_status=$?
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); }; }; then
18117   :
18118 else
18119   echo "$as_me: program exited with status $ac_status" >&5
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18122
18123 ( exit $ac_status )
18124 ac_cv_header_stdc=no
18125 fi
18126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18127 fi
18128
18129
18130 fi
18131 fi
18132 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18133 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
18134 if test $ac_cv_header_stdc = yes; then
18135
18136 cat >>confdefs.h <<\_ACEOF
18137 #define STDC_HEADERS 1
18138 _ACEOF
18139
18140 fi
18141
18142 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
18153                   inttypes.h stdint.h unistd.h
18154 do
18155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18159   echo $ECHO_N "(cached) $ECHO_C" >&6
18160 else
18161   cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h.  */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h.  */
18167 $ac_includes_default
18168
18169 #include <$ac_header>
18170 _ACEOF
18171 rm -f conftest.$ac_objext
18172 if { (ac_try="$ac_compile"
18173 case "(($ac_try" in
18174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175   *) ac_try_echo=$ac_try;;
18176 esac
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178   (eval "$ac_compile") 2>conftest.er1
18179   ac_status=$?
18180   grep -v '^ *+' conftest.er1 >conftest.err
18181   rm -f conftest.er1
18182   cat conftest.err >&5
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); } && {
18185          test -z "$ac_c_werror_flag" ||
18186          test ! -s conftest.err
18187        } && test -s conftest.$ac_objext; then
18188   eval "$as_ac_Header=yes"
18189 else
18190   echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18192
18193         eval "$as_ac_Header=no"
18194 fi
18195
18196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18197 fi
18198 ac_res=`eval echo '${'$as_ac_Header'}'`
18199                { echo "$as_me:$LINENO: result: $ac_res" >&5
18200 echo "${ECHO_T}$ac_res" >&6; }
18201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18202   cat >>confdefs.h <<_ACEOF
18203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18204 _ACEOF
18205
18206 fi
18207
18208 done
18209
18210
18211
18212
18213
18214
18215
18216
18217 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
18218 do
18219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18223   echo $ECHO_N "(cached) $ECHO_C" >&6
18224 else
18225   cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h.  */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h.  */
18231 $ac_includes_default
18232
18233 #include <$ac_header>
18234 _ACEOF
18235 rm -f conftest.$ac_objext
18236 if { (ac_try="$ac_compile"
18237 case "(($ac_try" in
18238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239   *) ac_try_echo=$ac_try;;
18240 esac
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242   (eval "$ac_compile") 2>conftest.er1
18243   ac_status=$?
18244   grep -v '^ *+' conftest.er1 >conftest.err
18245   rm -f conftest.er1
18246   cat conftest.err >&5
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); } && {
18249          test -z "$ac_c_werror_flag" ||
18250          test ! -s conftest.err
18251        } && test -s conftest.$ac_objext; then
18252   eval "$as_ac_Header=yes"
18253 else
18254   echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18256
18257         eval "$as_ac_Header=no"
18258 fi
18259
18260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18261 fi
18262 ac_res=`eval echo '${'$as_ac_Header'}'`
18263                { echo "$as_me:$LINENO: result: $ac_res" >&5
18264 echo "${ECHO_T}$ac_res" >&6; }
18265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18266   cat >>confdefs.h <<_ACEOF
18267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18268 _ACEOF
18269
18270 fi
18271
18272 done
18273
18274
18275 if test "$ac_cv_header_wchar_h" != "yes"; then
18276     { echo "$as_me:$LINENO: checking for wcstr.h" >&5
18277 echo $ECHO_N "checking for wcstr.h... $ECHO_C" >&6; }
18278 if test "${ac_cv_header_wcstr_h+set}" = set; then
18279   echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281   cat >conftest.$ac_ext <<_ACEOF
18282 /* confdefs.h.  */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h.  */
18287 $ac_includes_default
18288
18289 #include <wcstr.h>
18290 _ACEOF
18291 rm -f conftest.$ac_objext
18292 if { (ac_try="$ac_compile"
18293 case "(($ac_try" in
18294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295   *) ac_try_echo=$ac_try;;
18296 esac
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298   (eval "$ac_compile") 2>conftest.er1
18299   ac_status=$?
18300   grep -v '^ *+' conftest.er1 >conftest.err
18301   rm -f conftest.er1
18302   cat conftest.err >&5
18303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304   (exit $ac_status); } && {
18305          test -z "$ac_c_werror_flag" ||
18306          test ! -s conftest.err
18307        } && test -s conftest.$ac_objext; then
18308   ac_cv_header_wcstr_h=yes
18309 else
18310   echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18312
18313         ac_cv_header_wcstr_h=no
18314 fi
18315
18316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18317 fi
18318 { echo "$as_me:$LINENO: result: $ac_cv_header_wcstr_h" >&5
18319 echo "${ECHO_T}$ac_cv_header_wcstr_h" >&6; }
18320
18321
18322 fi
18323
18324 case "${host}" in
18325   *-pc-os2_emx | *-pc-os2-emx )
18326                   if test $ac_cv_header_langinfo_h = "yes" \
18327                 -a \(   "$wx_cv_gccversion" = "EMX2" \
18328                      -o "$wx_cv_gccversion" = "EMX3" \
18329                      -o "$wx_cv_gccversion" = "Innotek5" \); then
18330           LIBS="$LIBS -lintl"
18331       fi
18332   ;;
18333 esac
18334
18335 if test "$USE_UNIX" = 1 ; then
18336     { echo "$as_me:$LINENO: checking for sys/select.h" >&5
18337 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
18338 if test "${ac_cv_header_sys_select_h+set}" = set; then
18339   echo $ECHO_N "(cached) $ECHO_C" >&6
18340 else
18341   cat >conftest.$ac_ext <<_ACEOF
18342 /* confdefs.h.  */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h.  */
18347 $ac_includes_default
18348
18349 #include <sys/select.h>
18350 _ACEOF
18351 rm -f conftest.$ac_objext
18352 if { (ac_try="$ac_compile"
18353 case "(($ac_try" in
18354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355   *) ac_try_echo=$ac_try;;
18356 esac
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358   (eval "$ac_compile") 2>conftest.er1
18359   ac_status=$?
18360   grep -v '^ *+' conftest.er1 >conftest.err
18361   rm -f conftest.er1
18362   cat conftest.err >&5
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); } && {
18365          test -z "$ac_c_werror_flag" ||
18366          test ! -s conftest.err
18367        } && test -s conftest.$ac_objext; then
18368   ac_cv_header_sys_select_h=yes
18369 else
18370   echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18372
18373         ac_cv_header_sys_select_h=no
18374 fi
18375
18376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18377 fi
18378 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
18379 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
18380
18381
18382 fi
18383
18384
18385 for ac_header in sys/epoll.h
18386 do
18387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18389   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18392   echo $ECHO_N "(cached) $ECHO_C" >&6
18393 fi
18394 ac_res=`eval echo '${'$as_ac_Header'}'`
18395                { echo "$as_me:$LINENO: result: $ac_res" >&5
18396 echo "${ECHO_T}$ac_res" >&6; }
18397 else
18398   # Is the header compilable?
18399 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18401 cat >conftest.$ac_ext <<_ACEOF
18402 /* confdefs.h.  */
18403 _ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h.  */
18407 $ac_includes_default
18408 #include <$ac_header>
18409 _ACEOF
18410 rm -f conftest.$ac_objext
18411 if { (ac_try="$ac_compile"
18412 case "(($ac_try" in
18413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414   *) ac_try_echo=$ac_try;;
18415 esac
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417   (eval "$ac_compile") 2>conftest.er1
18418   ac_status=$?
18419   grep -v '^ *+' conftest.er1 >conftest.err
18420   rm -f conftest.er1
18421   cat conftest.err >&5
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); } && {
18424          test -z "$ac_c_werror_flag" ||
18425          test ! -s conftest.err
18426        } && test -s conftest.$ac_objext; then
18427   ac_header_compiler=yes
18428 else
18429   echo "$as_me: failed program was:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18431
18432         ac_header_compiler=no
18433 fi
18434
18435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18437 echo "${ECHO_T}$ac_header_compiler" >&6; }
18438
18439 # Is the header present?
18440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18442 cat >conftest.$ac_ext <<_ACEOF
18443 /* confdefs.h.  */
18444 _ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h.  */
18448 #include <$ac_header>
18449 _ACEOF
18450 if { (ac_try="$ac_cpp conftest.$ac_ext"
18451 case "(($ac_try" in
18452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453   *) ac_try_echo=$ac_try;;
18454 esac
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18457   ac_status=$?
18458   grep -v '^ *+' conftest.er1 >conftest.err
18459   rm -f conftest.er1
18460   cat conftest.err >&5
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); } >/dev/null && {
18463          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18464          test ! -s conftest.err
18465        }; then
18466   ac_header_preproc=yes
18467 else
18468   echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18470
18471   ac_header_preproc=no
18472 fi
18473
18474 rm -f conftest.err conftest.$ac_ext
18475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18476 echo "${ECHO_T}$ac_header_preproc" >&6; }
18477
18478 # So?  What about this header?
18479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18480   yes:no: )
18481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18485     ac_header_preproc=yes
18486     ;;
18487   no:yes:* )
18488     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18490     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18491 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18492     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18494     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18495 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18498     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18500     ( cat <<\_ASBOX
18501 ## ----------------------------------------- ##
18502 ## Report this to wx-dev@lists.wxwidgets.org ##
18503 ## ----------------------------------------- ##
18504 _ASBOX
18505      ) | sed "s/^/$as_me: WARNING:     /" >&2
18506     ;;
18507 esac
18508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18511   echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513   eval "$as_ac_Header=\$ac_header_preproc"
18514 fi
18515 ac_res=`eval echo '${'$as_ac_Header'}'`
18516                { echo "$as_me:$LINENO: result: $ac_res" >&5
18517 echo "${ECHO_T}$ac_res" >&6; }
18518
18519 fi
18520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18521   cat >>confdefs.h <<_ACEOF
18522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18523 _ACEOF
18524
18525 fi
18526
18527 done
18528
18529
18530
18531 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18532 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18533 if test "${ac_cv_c_const+set}" = set; then
18534   echo $ECHO_N "(cached) $ECHO_C" >&6
18535 else
18536   cat >conftest.$ac_ext <<_ACEOF
18537 /* confdefs.h.  */
18538 _ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h.  */
18542
18543 int
18544 main ()
18545 {
18546 /* FIXME: Include the comments suggested by Paul. */
18547 #ifndef __cplusplus
18548   /* Ultrix mips cc rejects this.  */
18549   typedef int charset[2];
18550   const charset cs;
18551   /* SunOS 4.1.1 cc rejects this.  */
18552   char const *const *pcpcc;
18553   char **ppc;
18554   /* NEC SVR4.0.2 mips cc rejects this.  */
18555   struct point {int x, y;};
18556   static struct point const zero = {0,0};
18557   /* AIX XL C 1.02.0.0 rejects this.
18558      It does not let you subtract one const X* pointer from another in
18559      an arm of an if-expression whose if-part is not a constant
18560      expression */
18561   const char *g = "string";
18562   pcpcc = &g + (g ? g-g : 0);
18563   /* HPUX 7.0 cc rejects these. */
18564   ++pcpcc;
18565   ppc = (char**) pcpcc;
18566   pcpcc = (char const *const *) ppc;
18567   { /* SCO 3.2v4 cc rejects this.  */
18568     char *t;
18569     char const *s = 0 ? (char *) 0 : (char const *) 0;
18570
18571     *t++ = 0;
18572     if (s) return 0;
18573   }
18574   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18575     int x[] = {25, 17};
18576     const int *foo = &x[0];
18577     ++foo;
18578   }
18579   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18580     typedef const int *iptr;
18581     iptr p = 0;
18582     ++p;
18583   }
18584   { /* AIX XL C 1.02.0.0 rejects this saying
18585        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18586     struct s { int j; const int *ap[3]; };
18587     struct s *b; b->j = 5;
18588   }
18589   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18590     const int foo = 10;
18591     if (!foo) return 0;
18592   }
18593   return !cs[0] && !zero.x;
18594 #endif
18595
18596   ;
18597   return 0;
18598 }
18599 _ACEOF
18600 rm -f conftest.$ac_objext
18601 if { (ac_try="$ac_compile"
18602 case "(($ac_try" in
18603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604   *) ac_try_echo=$ac_try;;
18605 esac
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607   (eval "$ac_compile") 2>conftest.er1
18608   ac_status=$?
18609   grep -v '^ *+' conftest.er1 >conftest.err
18610   rm -f conftest.er1
18611   cat conftest.err >&5
18612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613   (exit $ac_status); } && {
18614          test -z "$ac_c_werror_flag" ||
18615          test ! -s conftest.err
18616        } && test -s conftest.$ac_objext; then
18617   ac_cv_c_const=yes
18618 else
18619   echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622         ac_cv_c_const=no
18623 fi
18624
18625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18626 fi
18627 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18628 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18629 if test $ac_cv_c_const = no; then
18630
18631 cat >>confdefs.h <<\_ACEOF
18632 #define const
18633 _ACEOF
18634
18635 fi
18636
18637 { echo "$as_me:$LINENO: checking for inline" >&5
18638 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18639 if test "${ac_cv_c_inline+set}" = set; then
18640   echo $ECHO_N "(cached) $ECHO_C" >&6
18641 else
18642   ac_cv_c_inline=no
18643 for ac_kw in inline __inline__ __inline; do
18644   cat >conftest.$ac_ext <<_ACEOF
18645 /* confdefs.h.  */
18646 _ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h.  */
18650 #ifndef __cplusplus
18651 typedef int foo_t;
18652 static $ac_kw foo_t static_foo () {return 0; }
18653 $ac_kw foo_t foo () {return 0; }
18654 #endif
18655
18656 _ACEOF
18657 rm -f conftest.$ac_objext
18658 if { (ac_try="$ac_compile"
18659 case "(($ac_try" in
18660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661   *) ac_try_echo=$ac_try;;
18662 esac
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664   (eval "$ac_compile") 2>conftest.er1
18665   ac_status=$?
18666   grep -v '^ *+' conftest.er1 >conftest.err
18667   rm -f conftest.er1
18668   cat conftest.err >&5
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); } && {
18671          test -z "$ac_c_werror_flag" ||
18672          test ! -s conftest.err
18673        } && test -s conftest.$ac_objext; then
18674   ac_cv_c_inline=$ac_kw
18675 else
18676   echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18678
18679
18680 fi
18681
18682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18683   test "$ac_cv_c_inline" != no && break
18684 done
18685
18686 fi
18687 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18688 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18689
18690
18691 case $ac_cv_c_inline in
18692   inline | yes) ;;
18693   *)
18694     case $ac_cv_c_inline in
18695       no) ac_val=;;
18696       *) ac_val=$ac_cv_c_inline;;
18697     esac
18698     cat >>confdefs.h <<_ACEOF
18699 #ifndef __cplusplus
18700 #define inline $ac_val
18701 #endif
18702 _ACEOF
18703     ;;
18704 esac
18705
18706
18707 { echo "$as_me:$LINENO: checking for short" >&5
18708 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
18709 if test "${ac_cv_type_short+set}" = set; then
18710   echo $ECHO_N "(cached) $ECHO_C" >&6
18711 else
18712   cat >conftest.$ac_ext <<_ACEOF
18713 /* confdefs.h.  */
18714 _ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h.  */
18718 $ac_includes_default
18719 typedef short ac__type_new_;
18720 int
18721 main ()
18722 {
18723 if ((ac__type_new_ *) 0)
18724   return 0;
18725 if (sizeof (ac__type_new_))
18726   return 0;
18727   ;
18728   return 0;
18729 }
18730 _ACEOF
18731 rm -f conftest.$ac_objext
18732 if { (ac_try="$ac_compile"
18733 case "(($ac_try" in
18734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735   *) ac_try_echo=$ac_try;;
18736 esac
18737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18738   (eval "$ac_compile") 2>conftest.er1
18739   ac_status=$?
18740   grep -v '^ *+' conftest.er1 >conftest.err
18741   rm -f conftest.er1
18742   cat conftest.err >&5
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); } && {
18745          test -z "$ac_c_werror_flag" ||
18746          test ! -s conftest.err
18747        } && test -s conftest.$ac_objext; then
18748   ac_cv_type_short=yes
18749 else
18750   echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18752
18753         ac_cv_type_short=no
18754 fi
18755
18756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18757 fi
18758 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18759 echo "${ECHO_T}$ac_cv_type_short" >&6; }
18760
18761 # The cast to long int works around a bug in the HP C Compiler
18762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18764 # This bug is HP SR number 8606223364.
18765 { echo "$as_me:$LINENO: checking size of short" >&5
18766 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
18767 if test "${ac_cv_sizeof_short+set}" = set; then
18768   echo $ECHO_N "(cached) $ECHO_C" >&6
18769 else
18770   if test "$cross_compiling" = yes; then
18771   # Depending upon the size, compute the lo and hi bounds.
18772 cat >conftest.$ac_ext <<_ACEOF
18773 /* confdefs.h.  */
18774 _ACEOF
18775 cat confdefs.h >>conftest.$ac_ext
18776 cat >>conftest.$ac_ext <<_ACEOF
18777 /* end confdefs.h.  */
18778 $ac_includes_default
18779    typedef short ac__type_sizeof_;
18780 int
18781 main ()
18782 {
18783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18784 test_array [0] = 0
18785
18786   ;
18787   return 0;
18788 }
18789 _ACEOF
18790 rm -f conftest.$ac_objext
18791 if { (ac_try="$ac_compile"
18792 case "(($ac_try" in
18793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794   *) ac_try_echo=$ac_try;;
18795 esac
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797   (eval "$ac_compile") 2>conftest.er1
18798   ac_status=$?
18799   grep -v '^ *+' conftest.er1 >conftest.err
18800   rm -f conftest.er1
18801   cat conftest.err >&5
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); } && {
18804          test -z "$ac_c_werror_flag" ||
18805          test ! -s conftest.err
18806        } && test -s conftest.$ac_objext; then
18807   ac_lo=0 ac_mid=0
18808   while :; do
18809     cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h.  */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h.  */
18815 $ac_includes_default
18816    typedef short ac__type_sizeof_;
18817 int
18818 main ()
18819 {
18820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18821 test_array [0] = 0
18822
18823   ;
18824   return 0;
18825 }
18826 _ACEOF
18827 rm -f conftest.$ac_objext
18828 if { (ac_try="$ac_compile"
18829 case "(($ac_try" in
18830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831   *) ac_try_echo=$ac_try;;
18832 esac
18833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834   (eval "$ac_compile") 2>conftest.er1
18835   ac_status=$?
18836   grep -v '^ *+' conftest.er1 >conftest.err
18837   rm -f conftest.er1
18838   cat conftest.err >&5
18839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840   (exit $ac_status); } && {
18841          test -z "$ac_c_werror_flag" ||
18842          test ! -s conftest.err
18843        } && test -s conftest.$ac_objext; then
18844   ac_hi=$ac_mid; break
18845 else
18846   echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18848
18849         ac_lo=`expr $ac_mid + 1`
18850                         if test $ac_lo -le $ac_mid; then
18851                           ac_lo= ac_hi=
18852                           break
18853                         fi
18854                         ac_mid=`expr 2 '*' $ac_mid + 1`
18855 fi
18856
18857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18858   done
18859 else
18860   echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863         cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h.  */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h.  */
18869 $ac_includes_default
18870    typedef short ac__type_sizeof_;
18871 int
18872 main ()
18873 {
18874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18875 test_array [0] = 0
18876
18877   ;
18878   return 0;
18879 }
18880 _ACEOF
18881 rm -f conftest.$ac_objext
18882 if { (ac_try="$ac_compile"
18883 case "(($ac_try" in
18884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885   *) ac_try_echo=$ac_try;;
18886 esac
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888   (eval "$ac_compile") 2>conftest.er1
18889   ac_status=$?
18890   grep -v '^ *+' conftest.er1 >conftest.err
18891   rm -f conftest.er1
18892   cat conftest.err >&5
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } && {
18895          test -z "$ac_c_werror_flag" ||
18896          test ! -s conftest.err
18897        } && test -s conftest.$ac_objext; then
18898   ac_hi=-1 ac_mid=-1
18899   while :; do
18900     cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h.  */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h.  */
18906 $ac_includes_default
18907    typedef short ac__type_sizeof_;
18908 int
18909 main ()
18910 {
18911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18912 test_array [0] = 0
18913
18914   ;
18915   return 0;
18916 }
18917 _ACEOF
18918 rm -f conftest.$ac_objext
18919 if { (ac_try="$ac_compile"
18920 case "(($ac_try" in
18921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922   *) ac_try_echo=$ac_try;;
18923 esac
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925   (eval "$ac_compile") 2>conftest.er1
18926   ac_status=$?
18927   grep -v '^ *+' conftest.er1 >conftest.err
18928   rm -f conftest.er1
18929   cat conftest.err >&5
18930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931   (exit $ac_status); } && {
18932          test -z "$ac_c_werror_flag" ||
18933          test ! -s conftest.err
18934        } && test -s conftest.$ac_objext; then
18935   ac_lo=$ac_mid; break
18936 else
18937   echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18939
18940         ac_hi=`expr '(' $ac_mid ')' - 1`
18941                         if test $ac_mid -le $ac_hi; then
18942                           ac_lo= ac_hi=
18943                           break
18944                         fi
18945                         ac_mid=`expr 2 '*' $ac_mid`
18946 fi
18947
18948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18949   done
18950 else
18951   echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18953
18954         ac_lo= ac_hi=
18955 fi
18956
18957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18958 fi
18959
18960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18961 # Binary search between lo and hi bounds.
18962 while test "x$ac_lo" != "x$ac_hi"; do
18963   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18964   cat >conftest.$ac_ext <<_ACEOF
18965 /* confdefs.h.  */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h.  */
18970 $ac_includes_default
18971    typedef short ac__type_sizeof_;
18972 int
18973 main ()
18974 {
18975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18976 test_array [0] = 0
18977
18978   ;
18979   return 0;
18980 }
18981 _ACEOF
18982 rm -f conftest.$ac_objext
18983 if { (ac_try="$ac_compile"
18984 case "(($ac_try" in
18985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986   *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989   (eval "$ac_compile") 2>conftest.er1
18990   ac_status=$?
18991   grep -v '^ *+' conftest.er1 >conftest.err
18992   rm -f conftest.er1
18993   cat conftest.err >&5
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); } && {
18996          test -z "$ac_c_werror_flag" ||
18997          test ! -s conftest.err
18998        } && test -s conftest.$ac_objext; then
18999   ac_hi=$ac_mid
19000 else
19001   echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19003
19004         ac_lo=`expr '(' $ac_mid ')' + 1`
19005 fi
19006
19007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19008 done
19009 case $ac_lo in
19010 ?*) ac_cv_sizeof_short=$ac_lo;;
19011 '') if test "$ac_cv_type_short" = yes; then
19012      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19013 See \`config.log' for more details." >&5
19014 echo "$as_me: error: cannot compute sizeof (short)
19015 See \`config.log' for more details." >&2;}
19016    { (exit 77); exit 77; }; }
19017    else
19018      ac_cv_sizeof_short=0
19019    fi ;;
19020 esac
19021 else
19022   cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h.  */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h.  */
19028 $ac_includes_default
19029    typedef short ac__type_sizeof_;
19030 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19031 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19032 #include <stdio.h>
19033 #include <stdlib.h>
19034 int
19035 main ()
19036 {
19037
19038   FILE *f = fopen ("conftest.val", "w");
19039   if (! f)
19040     return 1;
19041   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19042     {
19043       long int i = longval ();
19044       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19045         return 1;
19046       fprintf (f, "%ld\n", i);
19047     }
19048   else
19049     {
19050       unsigned long int i = ulongval ();
19051       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19052         return 1;
19053       fprintf (f, "%lu\n", i);
19054     }
19055   return ferror (f) || fclose (f) != 0;
19056
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_link") 2>&5
19069   ac_status=$?
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19072   { (case "(($ac_try" in
19073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074   *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077   (eval "$ac_try") 2>&5
19078   ac_status=$?
19079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080   (exit $ac_status); }; }; then
19081   ac_cv_sizeof_short=`cat conftest.val`
19082 else
19083   echo "$as_me: program exited with status $ac_status" >&5
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087 ( exit $ac_status )
19088 if test "$ac_cv_type_short" = yes; then
19089      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19090 See \`config.log' for more details." >&5
19091 echo "$as_me: error: cannot compute sizeof (short)
19092 See \`config.log' for more details." >&2;}
19093    { (exit 77); exit 77; }; }
19094    else
19095      ac_cv_sizeof_short=0
19096    fi
19097 fi
19098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19099 fi
19100 rm -f conftest.val
19101 fi
19102 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19103 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19104
19105
19106
19107 cat >>confdefs.h <<_ACEOF
19108 #define SIZEOF_SHORT $ac_cv_sizeof_short
19109 _ACEOF
19110
19111
19112 { echo "$as_me:$LINENO: checking for void *" >&5
19113 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19114 if test "${ac_cv_type_void_p+set}" = set; then
19115   echo $ECHO_N "(cached) $ECHO_C" >&6
19116 else
19117   cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123 $ac_includes_default
19124 typedef void * ac__type_new_;
19125 int
19126 main ()
19127 {
19128 if ((ac__type_new_ *) 0)
19129   return 0;
19130 if (sizeof (ac__type_new_))
19131   return 0;
19132   ;
19133   return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143   (eval "$ac_compile") 2>conftest.er1
19144   ac_status=$?
19145   grep -v '^ *+' conftest.er1 >conftest.err
19146   rm -f conftest.er1
19147   cat conftest.err >&5
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); } && {
19150          test -z "$ac_c_werror_flag" ||
19151          test ! -s conftest.err
19152        } && test -s conftest.$ac_objext; then
19153   ac_cv_type_void_p=yes
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19157
19158         ac_cv_type_void_p=no
19159 fi
19160
19161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19162 fi
19163 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19164 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
19165
19166 # The cast to long int works around a bug in the HP C Compiler
19167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19169 # This bug is HP SR number 8606223364.
19170 { echo "$as_me:$LINENO: checking size of void *" >&5
19171 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
19172 if test "${ac_cv_sizeof_void_p+set}" = set; then
19173   echo $ECHO_N "(cached) $ECHO_C" >&6
19174 else
19175   if test "$cross_compiling" = yes; then
19176   # Depending upon the size, compute the lo and hi bounds.
19177 cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h.  */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h.  */
19183 $ac_includes_default
19184    typedef void * ac__type_sizeof_;
19185 int
19186 main ()
19187 {
19188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19189 test_array [0] = 0
19190
19191   ;
19192   return 0;
19193 }
19194 _ACEOF
19195 rm -f conftest.$ac_objext
19196 if { (ac_try="$ac_compile"
19197 case "(($ac_try" in
19198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199   *) ac_try_echo=$ac_try;;
19200 esac
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202   (eval "$ac_compile") 2>conftest.er1
19203   ac_status=$?
19204   grep -v '^ *+' conftest.er1 >conftest.err
19205   rm -f conftest.er1
19206   cat conftest.err >&5
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); } && {
19209          test -z "$ac_c_werror_flag" ||
19210          test ! -s conftest.err
19211        } && test -s conftest.$ac_objext; then
19212   ac_lo=0 ac_mid=0
19213   while :; do
19214     cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220 $ac_includes_default
19221    typedef void * ac__type_sizeof_;
19222 int
19223 main ()
19224 {
19225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19226 test_array [0] = 0
19227
19228   ;
19229   return 0;
19230 }
19231 _ACEOF
19232 rm -f conftest.$ac_objext
19233 if { (ac_try="$ac_compile"
19234 case "(($ac_try" in
19235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236   *) ac_try_echo=$ac_try;;
19237 esac
19238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239   (eval "$ac_compile") 2>conftest.er1
19240   ac_status=$?
19241   grep -v '^ *+' conftest.er1 >conftest.err
19242   rm -f conftest.er1
19243   cat conftest.err >&5
19244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); } && {
19246          test -z "$ac_c_werror_flag" ||
19247          test ! -s conftest.err
19248        } && test -s conftest.$ac_objext; then
19249   ac_hi=$ac_mid; break
19250 else
19251   echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254         ac_lo=`expr $ac_mid + 1`
19255                         if test $ac_lo -le $ac_mid; then
19256                           ac_lo= ac_hi=
19257                           break
19258                         fi
19259                         ac_mid=`expr 2 '*' $ac_mid + 1`
19260 fi
19261
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263   done
19264 else
19265   echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268         cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h.  */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h.  */
19274 $ac_includes_default
19275    typedef void * ac__type_sizeof_;
19276 int
19277 main ()
19278 {
19279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19280 test_array [0] = 0
19281
19282   ;
19283   return 0;
19284 }
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (ac_try="$ac_compile"
19288 case "(($ac_try" in
19289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290   *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293   (eval "$ac_compile") 2>conftest.er1
19294   ac_status=$?
19295   grep -v '^ *+' conftest.er1 >conftest.err
19296   rm -f conftest.er1
19297   cat conftest.err >&5
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } && {
19300          test -z "$ac_c_werror_flag" ||
19301          test ! -s conftest.err
19302        } && test -s conftest.$ac_objext; then
19303   ac_hi=-1 ac_mid=-1
19304   while :; do
19305     cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h.  */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h.  */
19311 $ac_includes_default
19312    typedef void * ac__type_sizeof_;
19313 int
19314 main ()
19315 {
19316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19317 test_array [0] = 0
19318
19319   ;
19320   return 0;
19321 }
19322 _ACEOF
19323 rm -f conftest.$ac_objext
19324 if { (ac_try="$ac_compile"
19325 case "(($ac_try" in
19326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327   *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330   (eval "$ac_compile") 2>conftest.er1
19331   ac_status=$?
19332   grep -v '^ *+' conftest.er1 >conftest.err
19333   rm -f conftest.er1
19334   cat conftest.err >&5
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); } && {
19337          test -z "$ac_c_werror_flag" ||
19338          test ! -s conftest.err
19339        } && test -s conftest.$ac_objext; then
19340   ac_lo=$ac_mid; break
19341 else
19342   echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345         ac_hi=`expr '(' $ac_mid ')' - 1`
19346                         if test $ac_mid -le $ac_hi; then
19347                           ac_lo= ac_hi=
19348                           break
19349                         fi
19350                         ac_mid=`expr 2 '*' $ac_mid`
19351 fi
19352
19353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354   done
19355 else
19356   echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19358
19359         ac_lo= ac_hi=
19360 fi
19361
19362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363 fi
19364
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19366 # Binary search between lo and hi bounds.
19367 while test "x$ac_lo" != "x$ac_hi"; do
19368   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19369   cat >conftest.$ac_ext <<_ACEOF
19370 /* confdefs.h.  */
19371 _ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h.  */
19375 $ac_includes_default
19376    typedef void * ac__type_sizeof_;
19377 int
19378 main ()
19379 {
19380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19381 test_array [0] = 0
19382
19383   ;
19384   return 0;
19385 }
19386 _ACEOF
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391   *) ac_try_echo=$ac_try;;
19392 esac
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394   (eval "$ac_compile") 2>conftest.er1
19395   ac_status=$?
19396   grep -v '^ *+' conftest.er1 >conftest.err
19397   rm -f conftest.er1
19398   cat conftest.err >&5
19399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); } && {
19401          test -z "$ac_c_werror_flag" ||
19402          test ! -s conftest.err
19403        } && test -s conftest.$ac_objext; then
19404   ac_hi=$ac_mid
19405 else
19406   echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19408
19409         ac_lo=`expr '(' $ac_mid ')' + 1`
19410 fi
19411
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413 done
19414 case $ac_lo in
19415 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19416 '') if test "$ac_cv_type_void_p" = yes; then
19417      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19418 See \`config.log' for more details." >&5
19419 echo "$as_me: error: cannot compute sizeof (void *)
19420 See \`config.log' for more details." >&2;}
19421    { (exit 77); exit 77; }; }
19422    else
19423      ac_cv_sizeof_void_p=0
19424    fi ;;
19425 esac
19426 else
19427   cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h.  */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h.  */
19433 $ac_includes_default
19434    typedef void * ac__type_sizeof_;
19435 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19436 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19437 #include <stdio.h>
19438 #include <stdlib.h>
19439 int
19440 main ()
19441 {
19442
19443   FILE *f = fopen ("conftest.val", "w");
19444   if (! f)
19445     return 1;
19446   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19447     {
19448       long int i = longval ();
19449       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19450         return 1;
19451       fprintf (f, "%ld\n", i);
19452     }
19453   else
19454     {
19455       unsigned long int i = ulongval ();
19456       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19457         return 1;
19458       fprintf (f, "%lu\n", i);
19459     }
19460   return ferror (f) || fclose (f) != 0;
19461
19462   ;
19463   return 0;
19464 }
19465 _ACEOF
19466 rm -f conftest$ac_exeext
19467 if { (ac_try="$ac_link"
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_link") 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19477   { (case "(($ac_try" in
19478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479   *) ac_try_echo=$ac_try;;
19480 esac
19481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482   (eval "$ac_try") 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; }; then
19486   ac_cv_sizeof_void_p=`cat conftest.val`
19487 else
19488   echo "$as_me: program exited with status $ac_status" >&5
19489 echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19491
19492 ( exit $ac_status )
19493 if test "$ac_cv_type_void_p" = yes; then
19494      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19495 See \`config.log' for more details." >&5
19496 echo "$as_me: error: cannot compute sizeof (void *)
19497 See \`config.log' for more details." >&2;}
19498    { (exit 77); exit 77; }; }
19499    else
19500      ac_cv_sizeof_void_p=0
19501    fi
19502 fi
19503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19504 fi
19505 rm -f conftest.val
19506 fi
19507 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19508 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
19509
19510
19511
19512 cat >>confdefs.h <<_ACEOF
19513 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19514 _ACEOF
19515
19516
19517 { echo "$as_me:$LINENO: checking for int" >&5
19518 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
19519 if test "${ac_cv_type_int+set}" = set; then
19520   echo $ECHO_N "(cached) $ECHO_C" >&6
19521 else
19522   cat >conftest.$ac_ext <<_ACEOF
19523 /* confdefs.h.  */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h.  */
19528 $ac_includes_default
19529 typedef int ac__type_new_;
19530 int
19531 main ()
19532 {
19533 if ((ac__type_new_ *) 0)
19534   return 0;
19535 if (sizeof (ac__type_new_))
19536   return 0;
19537   ;
19538   return 0;
19539 }
19540 _ACEOF
19541 rm -f conftest.$ac_objext
19542 if { (ac_try="$ac_compile"
19543 case "(($ac_try" in
19544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545   *) ac_try_echo=$ac_try;;
19546 esac
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548   (eval "$ac_compile") 2>conftest.er1
19549   ac_status=$?
19550   grep -v '^ *+' conftest.er1 >conftest.err
19551   rm -f conftest.er1
19552   cat conftest.err >&5
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } && {
19555          test -z "$ac_c_werror_flag" ||
19556          test ! -s conftest.err
19557        } && test -s conftest.$ac_objext; then
19558   ac_cv_type_int=yes
19559 else
19560   echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563         ac_cv_type_int=no
19564 fi
19565
19566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19567 fi
19568 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19569 echo "${ECHO_T}$ac_cv_type_int" >&6; }
19570
19571 # The cast to long int works around a bug in the HP C Compiler
19572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19574 # This bug is HP SR number 8606223364.
19575 { echo "$as_me:$LINENO: checking size of int" >&5
19576 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
19577 if test "${ac_cv_sizeof_int+set}" = set; then
19578   echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580   if test "$cross_compiling" = yes; then
19581   # Depending upon the size, compute the lo and hi bounds.
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588 $ac_includes_default
19589    typedef int ac__type_sizeof_;
19590 int
19591 main ()
19592 {
19593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19594 test_array [0] = 0
19595
19596   ;
19597   return 0;
19598 }
19599 _ACEOF
19600 rm -f conftest.$ac_objext
19601 if { (ac_try="$ac_compile"
19602 case "(($ac_try" in
19603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604   *) ac_try_echo=$ac_try;;
19605 esac
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607   (eval "$ac_compile") 2>conftest.er1
19608   ac_status=$?
19609   grep -v '^ *+' conftest.er1 >conftest.err
19610   rm -f conftest.er1
19611   cat conftest.err >&5
19612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613   (exit $ac_status); } && {
19614          test -z "$ac_c_werror_flag" ||
19615          test ! -s conftest.err
19616        } && test -s conftest.$ac_objext; then
19617   ac_lo=0 ac_mid=0
19618   while :; do
19619     cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h.  */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h.  */
19625 $ac_includes_default
19626    typedef int ac__type_sizeof_;
19627 int
19628 main ()
19629 {
19630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19631 test_array [0] = 0
19632
19633   ;
19634   return 0;
19635 }
19636 _ACEOF
19637 rm -f conftest.$ac_objext
19638 if { (ac_try="$ac_compile"
19639 case "(($ac_try" in
19640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641   *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644   (eval "$ac_compile") 2>conftest.er1
19645   ac_status=$?
19646   grep -v '^ *+' conftest.er1 >conftest.err
19647   rm -f conftest.er1
19648   cat conftest.err >&5
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); } && {
19651          test -z "$ac_c_werror_flag" ||
19652          test ! -s conftest.err
19653        } && test -s conftest.$ac_objext; then
19654   ac_hi=$ac_mid; break
19655 else
19656   echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19658
19659         ac_lo=`expr $ac_mid + 1`
19660                         if test $ac_lo -le $ac_mid; then
19661                           ac_lo= ac_hi=
19662                           break
19663                         fi
19664                         ac_mid=`expr 2 '*' $ac_mid + 1`
19665 fi
19666
19667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19668   done
19669 else
19670   echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19672
19673         cat >conftest.$ac_ext <<_ACEOF
19674 /* confdefs.h.  */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h.  */
19679 $ac_includes_default
19680    typedef int ac__type_sizeof_;
19681 int
19682 main ()
19683 {
19684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19685 test_array [0] = 0
19686
19687   ;
19688   return 0;
19689 }
19690 _ACEOF
19691 rm -f conftest.$ac_objext
19692 if { (ac_try="$ac_compile"
19693 case "(($ac_try" in
19694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695   *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698   (eval "$ac_compile") 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } && {
19705          test -z "$ac_c_werror_flag" ||
19706          test ! -s conftest.err
19707        } && test -s conftest.$ac_objext; then
19708   ac_hi=-1 ac_mid=-1
19709   while :; do
19710     cat >conftest.$ac_ext <<_ACEOF
19711 /* confdefs.h.  */
19712 _ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h.  */
19716 $ac_includes_default
19717    typedef int ac__type_sizeof_;
19718 int
19719 main ()
19720 {
19721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19722 test_array [0] = 0
19723
19724   ;
19725   return 0;
19726 }
19727 _ACEOF
19728 rm -f conftest.$ac_objext
19729 if { (ac_try="$ac_compile"
19730 case "(($ac_try" in
19731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732   *) ac_try_echo=$ac_try;;
19733 esac
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735   (eval "$ac_compile") 2>conftest.er1
19736   ac_status=$?
19737   grep -v '^ *+' conftest.er1 >conftest.err
19738   rm -f conftest.er1
19739   cat conftest.err >&5
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); } && {
19742          test -z "$ac_c_werror_flag" ||
19743          test ! -s conftest.err
19744        } && test -s conftest.$ac_objext; then
19745   ac_lo=$ac_mid; break
19746 else
19747   echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750         ac_hi=`expr '(' $ac_mid ')' - 1`
19751                         if test $ac_mid -le $ac_hi; then
19752                           ac_lo= ac_hi=
19753                           break
19754                         fi
19755                         ac_mid=`expr 2 '*' $ac_mid`
19756 fi
19757
19758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19759   done
19760 else
19761   echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764         ac_lo= ac_hi=
19765 fi
19766
19767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768 fi
19769
19770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19771 # Binary search between lo and hi bounds.
19772 while test "x$ac_lo" != "x$ac_hi"; do
19773   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19774   cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h.  */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h.  */
19780 $ac_includes_default
19781    typedef int ac__type_sizeof_;
19782 int
19783 main ()
19784 {
19785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19786 test_array [0] = 0
19787
19788   ;
19789   return 0;
19790 }
19791 _ACEOF
19792 rm -f conftest.$ac_objext
19793 if { (ac_try="$ac_compile"
19794 case "(($ac_try" in
19795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796   *) ac_try_echo=$ac_try;;
19797 esac
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799   (eval "$ac_compile") 2>conftest.er1
19800   ac_status=$?
19801   grep -v '^ *+' conftest.er1 >conftest.err
19802   rm -f conftest.er1
19803   cat conftest.err >&5
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); } && {
19806          test -z "$ac_c_werror_flag" ||
19807          test ! -s conftest.err
19808        } && test -s conftest.$ac_objext; then
19809   ac_hi=$ac_mid
19810 else
19811   echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814         ac_lo=`expr '(' $ac_mid ')' + 1`
19815 fi
19816
19817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19818 done
19819 case $ac_lo in
19820 ?*) ac_cv_sizeof_int=$ac_lo;;
19821 '') if test "$ac_cv_type_int" = yes; then
19822      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19823 See \`config.log' for more details." >&5
19824 echo "$as_me: error: cannot compute sizeof (int)
19825 See \`config.log' for more details." >&2;}
19826    { (exit 77); exit 77; }; }
19827    else
19828      ac_cv_sizeof_int=0
19829    fi ;;
19830 esac
19831 else
19832   cat >conftest.$ac_ext <<_ACEOF
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838 $ac_includes_default
19839    typedef int ac__type_sizeof_;
19840 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19841 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19842 #include <stdio.h>
19843 #include <stdlib.h>
19844 int
19845 main ()
19846 {
19847
19848   FILE *f = fopen ("conftest.val", "w");
19849   if (! f)
19850     return 1;
19851   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19852     {
19853       long int i = longval ();
19854       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19855         return 1;
19856       fprintf (f, "%ld\n", i);
19857     }
19858   else
19859     {
19860       unsigned long int i = ulongval ();
19861       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19862         return 1;
19863       fprintf (f, "%lu\n", i);
19864     }
19865   return ferror (f) || fclose (f) != 0;
19866
19867   ;
19868   return 0;
19869 }
19870 _ACEOF
19871 rm -f conftest$ac_exeext
19872 if { (ac_try="$ac_link"
19873 case "(($ac_try" in
19874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875   *) ac_try_echo=$ac_try;;
19876 esac
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878   (eval "$ac_link") 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19882   { (case "(($ac_try" in
19883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884   *) ac_try_echo=$ac_try;;
19885 esac
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887   (eval "$ac_try") 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }; }; then
19891   ac_cv_sizeof_int=`cat conftest.val`
19892 else
19893   echo "$as_me: program exited with status $ac_status" >&5
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897 ( exit $ac_status )
19898 if test "$ac_cv_type_int" = yes; then
19899      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19900 See \`config.log' for more details." >&5
19901 echo "$as_me: error: cannot compute sizeof (int)
19902 See \`config.log' for more details." >&2;}
19903    { (exit 77); exit 77; }; }
19904    else
19905      ac_cv_sizeof_int=0
19906    fi
19907 fi
19908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19909 fi
19910 rm -f conftest.val
19911 fi
19912 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19913 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
19914
19915
19916
19917 cat >>confdefs.h <<_ACEOF
19918 #define SIZEOF_INT $ac_cv_sizeof_int
19919 _ACEOF
19920
19921
19922 { echo "$as_me:$LINENO: checking for long" >&5
19923 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
19924 if test "${ac_cv_type_long+set}" = set; then
19925   echo $ECHO_N "(cached) $ECHO_C" >&6
19926 else
19927   cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933 $ac_includes_default
19934 typedef long ac__type_new_;
19935 int
19936 main ()
19937 {
19938 if ((ac__type_new_ *) 0)
19939   return 0;
19940 if (sizeof (ac__type_new_))
19941   return 0;
19942   ;
19943   return 0;
19944 }
19945 _ACEOF
19946 rm -f conftest.$ac_objext
19947 if { (ac_try="$ac_compile"
19948 case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953   (eval "$ac_compile") 2>conftest.er1
19954   ac_status=$?
19955   grep -v '^ *+' conftest.er1 >conftest.err
19956   rm -f conftest.er1
19957   cat conftest.err >&5
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); } && {
19960          test -z "$ac_c_werror_flag" ||
19961          test ! -s conftest.err
19962        } && test -s conftest.$ac_objext; then
19963   ac_cv_type_long=yes
19964 else
19965   echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19967
19968         ac_cv_type_long=no
19969 fi
19970
19971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19972 fi
19973 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19974 echo "${ECHO_T}$ac_cv_type_long" >&6; }
19975
19976 # The cast to long int works around a bug in the HP C Compiler
19977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19979 # This bug is HP SR number 8606223364.
19980 { echo "$as_me:$LINENO: checking size of long" >&5
19981 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
19982 if test "${ac_cv_sizeof_long+set}" = set; then
19983   echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985   if test "$cross_compiling" = yes; then
19986   # Depending upon the size, compute the lo and hi bounds.
19987 cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h.  */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h.  */
19993 $ac_includes_default
19994    typedef long ac__type_sizeof_;
19995 int
19996 main ()
19997 {
19998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19999 test_array [0] = 0
20000
20001   ;
20002   return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest.$ac_objext
20006 if { (ac_try="$ac_compile"
20007 case "(($ac_try" in
20008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009   *) ac_try_echo=$ac_try;;
20010 esac
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012   (eval "$ac_compile") 2>conftest.er1
20013   ac_status=$?
20014   grep -v '^ *+' conftest.er1 >conftest.err
20015   rm -f conftest.er1
20016   cat conftest.err >&5
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); } && {
20019          test -z "$ac_c_werror_flag" ||
20020          test ! -s conftest.err
20021        } && test -s conftest.$ac_objext; then
20022   ac_lo=0 ac_mid=0
20023   while :; do
20024     cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h.  */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h.  */
20030 $ac_includes_default
20031    typedef long ac__type_sizeof_;
20032 int
20033 main ()
20034 {
20035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20036 test_array [0] = 0
20037
20038   ;
20039   return 0;
20040 }
20041 _ACEOF
20042 rm -f conftest.$ac_objext
20043 if { (ac_try="$ac_compile"
20044 case "(($ac_try" in
20045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046   *) ac_try_echo=$ac_try;;
20047 esac
20048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049   (eval "$ac_compile") 2>conftest.er1
20050   ac_status=$?
20051   grep -v '^ *+' conftest.er1 >conftest.err
20052   rm -f conftest.er1
20053   cat conftest.err >&5
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); } && {
20056          test -z "$ac_c_werror_flag" ||
20057          test ! -s conftest.err
20058        } && test -s conftest.$ac_objext; then
20059   ac_hi=$ac_mid; break
20060 else
20061   echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064         ac_lo=`expr $ac_mid + 1`
20065                         if test $ac_lo -le $ac_mid; then
20066                           ac_lo= ac_hi=
20067                           break
20068                         fi
20069                         ac_mid=`expr 2 '*' $ac_mid + 1`
20070 fi
20071
20072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20073   done
20074 else
20075   echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20077
20078         cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h.  */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h.  */
20084 $ac_includes_default
20085    typedef long ac__type_sizeof_;
20086 int
20087 main ()
20088 {
20089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20090 test_array [0] = 0
20091
20092   ;
20093   return 0;
20094 }
20095 _ACEOF
20096 rm -f conftest.$ac_objext
20097 if { (ac_try="$ac_compile"
20098 case "(($ac_try" in
20099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100   *) ac_try_echo=$ac_try;;
20101 esac
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103   (eval "$ac_compile") 2>conftest.er1
20104   ac_status=$?
20105   grep -v '^ *+' conftest.er1 >conftest.err
20106   rm -f conftest.er1
20107   cat conftest.err >&5
20108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109   (exit $ac_status); } && {
20110          test -z "$ac_c_werror_flag" ||
20111          test ! -s conftest.err
20112        } && test -s conftest.$ac_objext; then
20113   ac_hi=-1 ac_mid=-1
20114   while :; do
20115     cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h.  */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h.  */
20121 $ac_includes_default
20122    typedef long ac__type_sizeof_;
20123 int
20124 main ()
20125 {
20126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20127 test_array [0] = 0
20128
20129   ;
20130   return 0;
20131 }
20132 _ACEOF
20133 rm -f conftest.$ac_objext
20134 if { (ac_try="$ac_compile"
20135 case "(($ac_try" in
20136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137   *) ac_try_echo=$ac_try;;
20138 esac
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140   (eval "$ac_compile") 2>conftest.er1
20141   ac_status=$?
20142   grep -v '^ *+' conftest.er1 >conftest.err
20143   rm -f conftest.er1
20144   cat conftest.err >&5
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); } && {
20147          test -z "$ac_c_werror_flag" ||
20148          test ! -s conftest.err
20149        } && test -s conftest.$ac_objext; then
20150   ac_lo=$ac_mid; break
20151 else
20152   echo "$as_me: failed program was:" >&5
20153 sed 's/^/| /' conftest.$ac_ext >&5
20154
20155         ac_hi=`expr '(' $ac_mid ')' - 1`
20156                         if test $ac_mid -le $ac_hi; then
20157                           ac_lo= ac_hi=
20158                           break
20159                         fi
20160                         ac_mid=`expr 2 '*' $ac_mid`
20161 fi
20162
20163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20164   done
20165 else
20166   echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169         ac_lo= ac_hi=
20170 fi
20171
20172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20173 fi
20174
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20176 # Binary search between lo and hi bounds.
20177 while test "x$ac_lo" != "x$ac_hi"; do
20178   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20179   cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h.  */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h.  */
20185 $ac_includes_default
20186    typedef long ac__type_sizeof_;
20187 int
20188 main ()
20189 {
20190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20191 test_array [0] = 0
20192
20193   ;
20194   return 0;
20195 }
20196 _ACEOF
20197 rm -f conftest.$ac_objext
20198 if { (ac_try="$ac_compile"
20199 case "(($ac_try" in
20200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201   *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204   (eval "$ac_compile") 2>conftest.er1
20205   ac_status=$?
20206   grep -v '^ *+' conftest.er1 >conftest.err
20207   rm -f conftest.er1
20208   cat conftest.err >&5
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); } && {
20211          test -z "$ac_c_werror_flag" ||
20212          test ! -s conftest.err
20213        } && test -s conftest.$ac_objext; then
20214   ac_hi=$ac_mid
20215 else
20216   echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219         ac_lo=`expr '(' $ac_mid ')' + 1`
20220 fi
20221
20222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20223 done
20224 case $ac_lo in
20225 ?*) ac_cv_sizeof_long=$ac_lo;;
20226 '') if test "$ac_cv_type_long" = yes; then
20227      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20228 See \`config.log' for more details." >&5
20229 echo "$as_me: error: cannot compute sizeof (long)
20230 See \`config.log' for more details." >&2;}
20231    { (exit 77); exit 77; }; }
20232    else
20233      ac_cv_sizeof_long=0
20234    fi ;;
20235 esac
20236 else
20237   cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243 $ac_includes_default
20244    typedef long ac__type_sizeof_;
20245 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20246 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20247 #include <stdio.h>
20248 #include <stdlib.h>
20249 int
20250 main ()
20251 {
20252
20253   FILE *f = fopen ("conftest.val", "w");
20254   if (! f)
20255     return 1;
20256   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20257     {
20258       long int i = longval ();
20259       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20260         return 1;
20261       fprintf (f, "%ld\n", i);
20262     }
20263   else
20264     {
20265       unsigned long int i = ulongval ();
20266       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20267         return 1;
20268       fprintf (f, "%lu\n", i);
20269     }
20270   return ferror (f) || fclose (f) != 0;
20271
20272   ;
20273   return 0;
20274 }
20275 _ACEOF
20276 rm -f conftest$ac_exeext
20277 if { (ac_try="$ac_link"
20278 case "(($ac_try" in
20279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280   *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283   (eval "$ac_link") 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20287   { (case "(($ac_try" in
20288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289   *) ac_try_echo=$ac_try;;
20290 esac
20291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292   (eval "$ac_try") 2>&5
20293   ac_status=$?
20294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); }; }; then
20296   ac_cv_sizeof_long=`cat conftest.val`
20297 else
20298   echo "$as_me: program exited with status $ac_status" >&5
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 ( exit $ac_status )
20303 if test "$ac_cv_type_long" = yes; then
20304      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20305 See \`config.log' for more details." >&5
20306 echo "$as_me: error: cannot compute sizeof (long)
20307 See \`config.log' for more details." >&2;}
20308    { (exit 77); exit 77; }; }
20309    else
20310      ac_cv_sizeof_long=0
20311    fi
20312 fi
20313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20314 fi
20315 rm -f conftest.val
20316 fi
20317 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20318 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
20319
20320
20321
20322 cat >>confdefs.h <<_ACEOF
20323 #define SIZEOF_LONG $ac_cv_sizeof_long
20324 _ACEOF
20325
20326
20327 { echo "$as_me:$LINENO: checking for size_t" >&5
20328 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20329 if test "${ac_cv_type_size_t+set}" = set; then
20330   echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332   cat >conftest.$ac_ext <<_ACEOF
20333 /* confdefs.h.  */
20334 _ACEOF
20335 cat confdefs.h >>conftest.$ac_ext
20336 cat >>conftest.$ac_ext <<_ACEOF
20337 /* end confdefs.h.  */
20338 $ac_includes_default
20339 typedef size_t ac__type_new_;
20340 int
20341 main ()
20342 {
20343 if ((ac__type_new_ *) 0)
20344   return 0;
20345 if (sizeof (ac__type_new_))
20346   return 0;
20347   ;
20348   return 0;
20349 }
20350 _ACEOF
20351 rm -f conftest.$ac_objext
20352 if { (ac_try="$ac_compile"
20353 case "(($ac_try" in
20354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355   *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358   (eval "$ac_compile") 2>conftest.er1
20359   ac_status=$?
20360   grep -v '^ *+' conftest.er1 >conftest.err
20361   rm -f conftest.er1
20362   cat conftest.err >&5
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); } && {
20365          test -z "$ac_c_werror_flag" ||
20366          test ! -s conftest.err
20367        } && test -s conftest.$ac_objext; then
20368   ac_cv_type_size_t=yes
20369 else
20370   echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20372
20373         ac_cv_type_size_t=no
20374 fi
20375
20376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20377 fi
20378 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20379 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20380
20381 # The cast to long int works around a bug in the HP C Compiler
20382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20384 # This bug is HP SR number 8606223364.
20385 { echo "$as_me:$LINENO: checking size of size_t" >&5
20386 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20387 if test "${ac_cv_sizeof_size_t+set}" = set; then
20388   echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390   if test "$cross_compiling" = yes; then
20391   # Depending upon the size, compute the lo and hi bounds.
20392 cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h.  */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h.  */
20398 $ac_includes_default
20399    typedef size_t ac__type_sizeof_;
20400 int
20401 main ()
20402 {
20403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20404 test_array [0] = 0
20405
20406   ;
20407   return 0;
20408 }
20409 _ACEOF
20410 rm -f conftest.$ac_objext
20411 if { (ac_try="$ac_compile"
20412 case "(($ac_try" in
20413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414   *) ac_try_echo=$ac_try;;
20415 esac
20416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417   (eval "$ac_compile") 2>conftest.er1
20418   ac_status=$?
20419   grep -v '^ *+' conftest.er1 >conftest.err
20420   rm -f conftest.er1
20421   cat conftest.err >&5
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); } && {
20424          test -z "$ac_c_werror_flag" ||
20425          test ! -s conftest.err
20426        } && test -s conftest.$ac_objext; then
20427   ac_lo=0 ac_mid=0
20428   while :; do
20429     cat >conftest.$ac_ext <<_ACEOF
20430 /* confdefs.h.  */
20431 _ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h.  */
20435 $ac_includes_default
20436    typedef size_t ac__type_sizeof_;
20437 int
20438 main ()
20439 {
20440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20441 test_array [0] = 0
20442
20443   ;
20444   return 0;
20445 }
20446 _ACEOF
20447 rm -f conftest.$ac_objext
20448 if { (ac_try="$ac_compile"
20449 case "(($ac_try" in
20450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451   *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454   (eval "$ac_compile") 2>conftest.er1
20455   ac_status=$?
20456   grep -v '^ *+' conftest.er1 >conftest.err
20457   rm -f conftest.er1
20458   cat conftest.err >&5
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); } && {
20461          test -z "$ac_c_werror_flag" ||
20462          test ! -s conftest.err
20463        } && test -s conftest.$ac_objext; then
20464   ac_hi=$ac_mid; break
20465 else
20466   echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20468
20469         ac_lo=`expr $ac_mid + 1`
20470                         if test $ac_lo -le $ac_mid; then
20471                           ac_lo= ac_hi=
20472                           break
20473                         fi
20474                         ac_mid=`expr 2 '*' $ac_mid + 1`
20475 fi
20476
20477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20478   done
20479 else
20480   echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483         cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h.  */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h.  */
20489 $ac_includes_default
20490    typedef size_t ac__type_sizeof_;
20491 int
20492 main ()
20493 {
20494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20495 test_array [0] = 0
20496
20497   ;
20498   return 0;
20499 }
20500 _ACEOF
20501 rm -f conftest.$ac_objext
20502 if { (ac_try="$ac_compile"
20503 case "(($ac_try" in
20504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505   *) ac_try_echo=$ac_try;;
20506 esac
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508   (eval "$ac_compile") 2>conftest.er1
20509   ac_status=$?
20510   grep -v '^ *+' conftest.er1 >conftest.err
20511   rm -f conftest.er1
20512   cat conftest.err >&5
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); } && {
20515          test -z "$ac_c_werror_flag" ||
20516          test ! -s conftest.err
20517        } && test -s conftest.$ac_objext; then
20518   ac_hi=-1 ac_mid=-1
20519   while :; do
20520     cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h.  */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h.  */
20526 $ac_includes_default
20527    typedef size_t ac__type_sizeof_;
20528 int
20529 main ()
20530 {
20531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20532 test_array [0] = 0
20533
20534   ;
20535   return 0;
20536 }
20537 _ACEOF
20538 rm -f conftest.$ac_objext
20539 if { (ac_try="$ac_compile"
20540 case "(($ac_try" in
20541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542   *) ac_try_echo=$ac_try;;
20543 esac
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545   (eval "$ac_compile") 2>conftest.er1
20546   ac_status=$?
20547   grep -v '^ *+' conftest.er1 >conftest.err
20548   rm -f conftest.er1
20549   cat conftest.err >&5
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); } && {
20552          test -z "$ac_c_werror_flag" ||
20553          test ! -s conftest.err
20554        } && test -s conftest.$ac_objext; then
20555   ac_lo=$ac_mid; break
20556 else
20557   echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560         ac_hi=`expr '(' $ac_mid ')' - 1`
20561                         if test $ac_mid -le $ac_hi; then
20562                           ac_lo= ac_hi=
20563                           break
20564                         fi
20565                         ac_mid=`expr 2 '*' $ac_mid`
20566 fi
20567
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569   done
20570 else
20571   echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20573
20574         ac_lo= ac_hi=
20575 fi
20576
20577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20578 fi
20579
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 # Binary search between lo and hi bounds.
20582 while test "x$ac_lo" != "x$ac_hi"; do
20583   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20584   cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h.  */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h.  */
20590 $ac_includes_default
20591    typedef size_t ac__type_sizeof_;
20592 int
20593 main ()
20594 {
20595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20596 test_array [0] = 0
20597
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606   *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609   (eval "$ac_compile") 2>conftest.er1
20610   ac_status=$?
20611   grep -v '^ *+' conftest.er1 >conftest.err
20612   rm -f conftest.er1
20613   cat conftest.err >&5
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } && {
20616          test -z "$ac_c_werror_flag" ||
20617          test ! -s conftest.err
20618        } && test -s conftest.$ac_objext; then
20619   ac_hi=$ac_mid
20620 else
20621   echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
20624         ac_lo=`expr '(' $ac_mid ')' + 1`
20625 fi
20626
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628 done
20629 case $ac_lo in
20630 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20631 '') if test "$ac_cv_type_size_t" = yes; then
20632      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20633 See \`config.log' for more details." >&5
20634 echo "$as_me: error: cannot compute sizeof (size_t)
20635 See \`config.log' for more details." >&2;}
20636    { (exit 77); exit 77; }; }
20637    else
20638      ac_cv_sizeof_size_t=0
20639    fi ;;
20640 esac
20641 else
20642   cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h.  */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h.  */
20648 $ac_includes_default
20649    typedef size_t ac__type_sizeof_;
20650 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20651 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20652 #include <stdio.h>
20653 #include <stdlib.h>
20654 int
20655 main ()
20656 {
20657
20658   FILE *f = fopen ("conftest.val", "w");
20659   if (! f)
20660     return 1;
20661   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20662     {
20663       long int i = longval ();
20664       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20665         return 1;
20666       fprintf (f, "%ld\n", i);
20667     }
20668   else
20669     {
20670       unsigned long int i = ulongval ();
20671       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20672         return 1;
20673       fprintf (f, "%lu\n", i);
20674     }
20675   return ferror (f) || fclose (f) != 0;
20676
20677   ;
20678   return 0;
20679 }
20680 _ACEOF
20681 rm -f conftest$ac_exeext
20682 if { (ac_try="$ac_link"
20683 case "(($ac_try" in
20684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685   *) ac_try_echo=$ac_try;;
20686 esac
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688   (eval "$ac_link") 2>&5
20689   ac_status=$?
20690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20692   { (case "(($ac_try" in
20693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694   *) ac_try_echo=$ac_try;;
20695 esac
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697   (eval "$ac_try") 2>&5
20698   ac_status=$?
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); }; }; then
20701   ac_cv_sizeof_size_t=`cat conftest.val`
20702 else
20703   echo "$as_me: program exited with status $ac_status" >&5
20704 echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20706
20707 ( exit $ac_status )
20708 if test "$ac_cv_type_size_t" = yes; then
20709      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20710 See \`config.log' for more details." >&5
20711 echo "$as_me: error: cannot compute sizeof (size_t)
20712 See \`config.log' for more details." >&2;}
20713    { (exit 77); exit 77; }; }
20714    else
20715      ac_cv_sizeof_size_t=0
20716    fi
20717 fi
20718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20719 fi
20720 rm -f conftest.val
20721 fi
20722 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20723 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
20724
20725
20726
20727 cat >>confdefs.h <<_ACEOF
20728 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20729 _ACEOF
20730
20731
20732
20733 case "${host}" in
20734     arm-*-linux* )
20735         { echo "$as_me:$LINENO: checking for long long" >&5
20736 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20737 if test "${ac_cv_type_long_long+set}" = set; then
20738   echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740   cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h.  */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h.  */
20746 $ac_includes_default
20747 typedef long long ac__type_new_;
20748 int
20749 main ()
20750 {
20751 if ((ac__type_new_ *) 0)
20752   return 0;
20753 if (sizeof (ac__type_new_))
20754   return 0;
20755   ;
20756   return 0;
20757 }
20758 _ACEOF
20759 rm -f conftest.$ac_objext
20760 if { (ac_try="$ac_compile"
20761 case "(($ac_try" in
20762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763   *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766   (eval "$ac_compile") 2>conftest.er1
20767   ac_status=$?
20768   grep -v '^ *+' conftest.er1 >conftest.err
20769   rm -f conftest.er1
20770   cat conftest.err >&5
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } && {
20773          test -z "$ac_c_werror_flag" ||
20774          test ! -s conftest.err
20775        } && test -s conftest.$ac_objext; then
20776   ac_cv_type_long_long=yes
20777 else
20778   echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20780
20781         ac_cv_type_long_long=no
20782 fi
20783
20784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20785 fi
20786 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20787 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20788
20789 # The cast to long int works around a bug in the HP C Compiler
20790 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20791 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20792 # This bug is HP SR number 8606223364.
20793 { echo "$as_me:$LINENO: checking size of long long" >&5
20794 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
20795 if test "${ac_cv_sizeof_long_long+set}" = set; then
20796   echo $ECHO_N "(cached) $ECHO_C" >&6
20797 else
20798   if test "$cross_compiling" = yes; then
20799   # Depending upon the size, compute the lo and hi bounds.
20800 cat >conftest.$ac_ext <<_ACEOF
20801 /* confdefs.h.  */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h.  */
20806 $ac_includes_default
20807    typedef long long ac__type_sizeof_;
20808 int
20809 main ()
20810 {
20811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20812 test_array [0] = 0
20813
20814   ;
20815   return 0;
20816 }
20817 _ACEOF
20818 rm -f conftest.$ac_objext
20819 if { (ac_try="$ac_compile"
20820 case "(($ac_try" in
20821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822   *) ac_try_echo=$ac_try;;
20823 esac
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825   (eval "$ac_compile") 2>conftest.er1
20826   ac_status=$?
20827   grep -v '^ *+' conftest.er1 >conftest.err
20828   rm -f conftest.er1
20829   cat conftest.err >&5
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); } && {
20832          test -z "$ac_c_werror_flag" ||
20833          test ! -s conftest.err
20834        } && test -s conftest.$ac_objext; then
20835   ac_lo=0 ac_mid=0
20836   while :; do
20837     cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h.  */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h.  */
20843 $ac_includes_default
20844    typedef long long ac__type_sizeof_;
20845 int
20846 main ()
20847 {
20848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20849 test_array [0] = 0
20850
20851   ;
20852   return 0;
20853 }
20854 _ACEOF
20855 rm -f conftest.$ac_objext
20856 if { (ac_try="$ac_compile"
20857 case "(($ac_try" in
20858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859   *) ac_try_echo=$ac_try;;
20860 esac
20861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862   (eval "$ac_compile") 2>conftest.er1
20863   ac_status=$?
20864   grep -v '^ *+' conftest.er1 >conftest.err
20865   rm -f conftest.er1
20866   cat conftest.err >&5
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); } && {
20869          test -z "$ac_c_werror_flag" ||
20870          test ! -s conftest.err
20871        } && test -s conftest.$ac_objext; then
20872   ac_hi=$ac_mid; break
20873 else
20874   echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20876
20877         ac_lo=`expr $ac_mid + 1`
20878                         if test $ac_lo -le $ac_mid; then
20879                           ac_lo= ac_hi=
20880                           break
20881                         fi
20882                         ac_mid=`expr 2 '*' $ac_mid + 1`
20883 fi
20884
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886   done
20887 else
20888   echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891         cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h.  */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h.  */
20897 $ac_includes_default
20898    typedef long long ac__type_sizeof_;
20899 int
20900 main ()
20901 {
20902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20903 test_array [0] = 0
20904
20905   ;
20906   return 0;
20907 }
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913   *) ac_try_echo=$ac_try;;
20914 esac
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916   (eval "$ac_compile") 2>conftest.er1
20917   ac_status=$?
20918   grep -v '^ *+' conftest.er1 >conftest.err
20919   rm -f conftest.er1
20920   cat conftest.err >&5
20921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922   (exit $ac_status); } && {
20923          test -z "$ac_c_werror_flag" ||
20924          test ! -s conftest.err
20925        } && test -s conftest.$ac_objext; then
20926   ac_hi=-1 ac_mid=-1
20927   while :; do
20928     cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h.  */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h.  */
20934 $ac_includes_default
20935    typedef long long ac__type_sizeof_;
20936 int
20937 main ()
20938 {
20939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20940 test_array [0] = 0
20941
20942   ;
20943   return 0;
20944 }
20945 _ACEOF
20946 rm -f conftest.$ac_objext
20947 if { (ac_try="$ac_compile"
20948 case "(($ac_try" in
20949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950   *) ac_try_echo=$ac_try;;
20951 esac
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953   (eval "$ac_compile") 2>conftest.er1
20954   ac_status=$?
20955   grep -v '^ *+' conftest.er1 >conftest.err
20956   rm -f conftest.er1
20957   cat conftest.err >&5
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); } && {
20960          test -z "$ac_c_werror_flag" ||
20961          test ! -s conftest.err
20962        } && test -s conftest.$ac_objext; then
20963   ac_lo=$ac_mid; break
20964 else
20965   echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968         ac_hi=`expr '(' $ac_mid ')' - 1`
20969                         if test $ac_mid -le $ac_hi; then
20970                           ac_lo= ac_hi=
20971                           break
20972                         fi
20973                         ac_mid=`expr 2 '*' $ac_mid`
20974 fi
20975
20976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20977   done
20978 else
20979   echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20981
20982         ac_lo= ac_hi=
20983 fi
20984
20985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20986 fi
20987
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989 # Binary search between lo and hi bounds.
20990 while test "x$ac_lo" != "x$ac_hi"; do
20991   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20992   cat >conftest.$ac_ext <<_ACEOF
20993 /* confdefs.h.  */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h.  */
20998 $ac_includes_default
20999    typedef long long ac__type_sizeof_;
21000 int
21001 main ()
21002 {
21003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21004 test_array [0] = 0
21005
21006   ;
21007   return 0;
21008 }
21009 _ACEOF
21010 rm -f conftest.$ac_objext
21011 if { (ac_try="$ac_compile"
21012 case "(($ac_try" in
21013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014   *) ac_try_echo=$ac_try;;
21015 esac
21016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21017   (eval "$ac_compile") 2>conftest.er1
21018   ac_status=$?
21019   grep -v '^ *+' conftest.er1 >conftest.err
21020   rm -f conftest.er1
21021   cat conftest.err >&5
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); } && {
21024          test -z "$ac_c_werror_flag" ||
21025          test ! -s conftest.err
21026        } && test -s conftest.$ac_objext; then
21027   ac_hi=$ac_mid
21028 else
21029   echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032         ac_lo=`expr '(' $ac_mid ')' + 1`
21033 fi
21034
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036 done
21037 case $ac_lo in
21038 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21039 '') if test "$ac_cv_type_long_long" = yes; then
21040      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21041 See \`config.log' for more details." >&5
21042 echo "$as_me: error: cannot compute sizeof (long long)
21043 See \`config.log' for more details." >&2;}
21044    { (exit 77); exit 77; }; }
21045    else
21046      ac_cv_sizeof_long_long=0
21047    fi ;;
21048 esac
21049 else
21050   cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h.  */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h.  */
21056 $ac_includes_default
21057    typedef long long ac__type_sizeof_;
21058 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21059 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21060 #include <stdio.h>
21061 #include <stdlib.h>
21062 int
21063 main ()
21064 {
21065
21066   FILE *f = fopen ("conftest.val", "w");
21067   if (! f)
21068     return 1;
21069   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21070     {
21071       long int i = longval ();
21072       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21073         return 1;
21074       fprintf (f, "%ld\n", i);
21075     }
21076   else
21077     {
21078       unsigned long int i = ulongval ();
21079       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21080         return 1;
21081       fprintf (f, "%lu\n", i);
21082     }
21083   return ferror (f) || fclose (f) != 0;
21084
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest$ac_exeext
21090 if { (ac_try="$ac_link"
21091 case "(($ac_try" in
21092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093   *) ac_try_echo=$ac_try;;
21094 esac
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096   (eval "$ac_link") 2>&5
21097   ac_status=$?
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21100   { (case "(($ac_try" in
21101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102   *) ac_try_echo=$ac_try;;
21103 esac
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105   (eval "$ac_try") 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); }; }; then
21109   ac_cv_sizeof_long_long=`cat conftest.val`
21110 else
21111   echo "$as_me: program exited with status $ac_status" >&5
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115 ( exit $ac_status )
21116 if test "$ac_cv_type_long_long" = yes; then
21117      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21118 See \`config.log' for more details." >&5
21119 echo "$as_me: error: cannot compute sizeof (long long)
21120 See \`config.log' for more details." >&2;}
21121    { (exit 77); exit 77; }; }
21122    else
21123      ac_cv_sizeof_long_long=0
21124    fi
21125 fi
21126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21127 fi
21128 rm -f conftest.val
21129 fi
21130 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21131 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21132
21133
21134
21135 cat >>confdefs.h <<_ACEOF
21136 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21137 _ACEOF
21138
21139
21140     ;;
21141     *-hp-hpux* )
21142         { echo "$as_me:$LINENO: checking for long long" >&5
21143 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21144 if test "${ac_cv_type_long_long+set}" = set; then
21145   echo $ECHO_N "(cached) $ECHO_C" >&6
21146 else
21147   cat >conftest.$ac_ext <<_ACEOF
21148 /* confdefs.h.  */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h.  */
21153 $ac_includes_default
21154 typedef long long ac__type_new_;
21155 int
21156 main ()
21157 {
21158 if ((ac__type_new_ *) 0)
21159   return 0;
21160 if (sizeof (ac__type_new_))
21161   return 0;
21162   ;
21163   return 0;
21164 }
21165 _ACEOF
21166 rm -f conftest.$ac_objext
21167 if { (ac_try="$ac_compile"
21168 case "(($ac_try" in
21169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170   *) ac_try_echo=$ac_try;;
21171 esac
21172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173   (eval "$ac_compile") 2>conftest.er1
21174   ac_status=$?
21175   grep -v '^ *+' conftest.er1 >conftest.err
21176   rm -f conftest.er1
21177   cat conftest.err >&5
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); } && {
21180          test -z "$ac_c_werror_flag" ||
21181          test ! -s conftest.err
21182        } && test -s conftest.$ac_objext; then
21183   ac_cv_type_long_long=yes
21184 else
21185   echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21187
21188         ac_cv_type_long_long=no
21189 fi
21190
21191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21192 fi
21193 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21194 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21195
21196 # The cast to long int works around a bug in the HP C Compiler
21197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21199 # This bug is HP SR number 8606223364.
21200 { echo "$as_me:$LINENO: checking size of long long" >&5
21201 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21202 if test "${ac_cv_sizeof_long_long+set}" = set; then
21203   echo $ECHO_N "(cached) $ECHO_C" >&6
21204 else
21205   if test "$cross_compiling" = yes; then
21206   # Depending upon the size, compute the lo and hi bounds.
21207 cat >conftest.$ac_ext <<_ACEOF
21208 /* confdefs.h.  */
21209 _ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h.  */
21213 $ac_includes_default
21214    typedef long long ac__type_sizeof_;
21215 int
21216 main ()
21217 {
21218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21219 test_array [0] = 0
21220
21221   ;
21222   return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229   *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232   (eval "$ac_compile") 2>conftest.er1
21233   ac_status=$?
21234   grep -v '^ *+' conftest.er1 >conftest.err
21235   rm -f conftest.er1
21236   cat conftest.err >&5
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); } && {
21239          test -z "$ac_c_werror_flag" ||
21240          test ! -s conftest.err
21241        } && test -s conftest.$ac_objext; then
21242   ac_lo=0 ac_mid=0
21243   while :; do
21244     cat >conftest.$ac_ext <<_ACEOF
21245 /* confdefs.h.  */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h.  */
21250 $ac_includes_default
21251    typedef long long ac__type_sizeof_;
21252 int
21253 main ()
21254 {
21255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21256 test_array [0] = 0
21257
21258   ;
21259   return 0;
21260 }
21261 _ACEOF
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266   *) ac_try_echo=$ac_try;;
21267 esac
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269   (eval "$ac_compile") 2>conftest.er1
21270   ac_status=$?
21271   grep -v '^ *+' conftest.er1 >conftest.err
21272   rm -f conftest.er1
21273   cat conftest.err >&5
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } && {
21276          test -z "$ac_c_werror_flag" ||
21277          test ! -s conftest.err
21278        } && test -s conftest.$ac_objext; then
21279   ac_hi=$ac_mid; break
21280 else
21281   echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21283
21284         ac_lo=`expr $ac_mid + 1`
21285                         if test $ac_lo -le $ac_mid; then
21286                           ac_lo= ac_hi=
21287                           break
21288                         fi
21289                         ac_mid=`expr 2 '*' $ac_mid + 1`
21290 fi
21291
21292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293   done
21294 else
21295   echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298         cat >conftest.$ac_ext <<_ACEOF
21299 /* confdefs.h.  */
21300 _ACEOF
21301 cat confdefs.h >>conftest.$ac_ext
21302 cat >>conftest.$ac_ext <<_ACEOF
21303 /* end confdefs.h.  */
21304 $ac_includes_default
21305    typedef long long ac__type_sizeof_;
21306 int
21307 main ()
21308 {
21309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21310 test_array [0] = 0
21311
21312   ;
21313   return 0;
21314 }
21315 _ACEOF
21316 rm -f conftest.$ac_objext
21317 if { (ac_try="$ac_compile"
21318 case "(($ac_try" in
21319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21320   *) ac_try_echo=$ac_try;;
21321 esac
21322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21323   (eval "$ac_compile") 2>conftest.er1
21324   ac_status=$?
21325   grep -v '^ *+' conftest.er1 >conftest.err
21326   rm -f conftest.er1
21327   cat conftest.err >&5
21328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); } && {
21330          test -z "$ac_c_werror_flag" ||
21331          test ! -s conftest.err
21332        } && test -s conftest.$ac_objext; then
21333   ac_hi=-1 ac_mid=-1
21334   while :; do
21335     cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341 $ac_includes_default
21342    typedef long long ac__type_sizeof_;
21343 int
21344 main ()
21345 {
21346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21347 test_array [0] = 0
21348
21349   ;
21350   return 0;
21351 }
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (ac_try="$ac_compile"
21355 case "(($ac_try" in
21356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357   *) ac_try_echo=$ac_try;;
21358 esac
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360   (eval "$ac_compile") 2>conftest.er1
21361   ac_status=$?
21362   grep -v '^ *+' conftest.er1 >conftest.err
21363   rm -f conftest.er1
21364   cat conftest.err >&5
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); } && {
21367          test -z "$ac_c_werror_flag" ||
21368          test ! -s conftest.err
21369        } && test -s conftest.$ac_objext; then
21370   ac_lo=$ac_mid; break
21371 else
21372   echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375         ac_hi=`expr '(' $ac_mid ')' - 1`
21376                         if test $ac_mid -le $ac_hi; then
21377                           ac_lo= ac_hi=
21378                           break
21379                         fi
21380                         ac_mid=`expr 2 '*' $ac_mid`
21381 fi
21382
21383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384   done
21385 else
21386   echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21388
21389         ac_lo= ac_hi=
21390 fi
21391
21392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393 fi
21394
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396 # Binary search between lo and hi bounds.
21397 while test "x$ac_lo" != "x$ac_hi"; do
21398   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21399   cat >conftest.$ac_ext <<_ACEOF
21400 /* confdefs.h.  */
21401 _ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h.  */
21405 $ac_includes_default
21406    typedef long long ac__type_sizeof_;
21407 int
21408 main ()
21409 {
21410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21411 test_array [0] = 0
21412
21413   ;
21414   return 0;
21415 }
21416 _ACEOF
21417 rm -f conftest.$ac_objext
21418 if { (ac_try="$ac_compile"
21419 case "(($ac_try" in
21420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421   *) ac_try_echo=$ac_try;;
21422 esac
21423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21424   (eval "$ac_compile") 2>conftest.er1
21425   ac_status=$?
21426   grep -v '^ *+' conftest.er1 >conftest.err
21427   rm -f conftest.er1
21428   cat conftest.err >&5
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); } && {
21431          test -z "$ac_c_werror_flag" ||
21432          test ! -s conftest.err
21433        } && test -s conftest.$ac_objext; then
21434   ac_hi=$ac_mid
21435 else
21436   echo "$as_me: failed program was:" >&5
21437 sed 's/^/| /' conftest.$ac_ext >&5
21438
21439         ac_lo=`expr '(' $ac_mid ')' + 1`
21440 fi
21441
21442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21443 done
21444 case $ac_lo in
21445 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21446 '') if test "$ac_cv_type_long_long" = yes; then
21447      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21448 See \`config.log' for more details." >&5
21449 echo "$as_me: error: cannot compute sizeof (long long)
21450 See \`config.log' for more details." >&2;}
21451    { (exit 77); exit 77; }; }
21452    else
21453      ac_cv_sizeof_long_long=0
21454    fi ;;
21455 esac
21456 else
21457   cat >conftest.$ac_ext <<_ACEOF
21458 /* confdefs.h.  */
21459 _ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h.  */
21463 $ac_includes_default
21464    typedef long long ac__type_sizeof_;
21465 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21466 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21467 #include <stdio.h>
21468 #include <stdlib.h>
21469 int
21470 main ()
21471 {
21472
21473   FILE *f = fopen ("conftest.val", "w");
21474   if (! f)
21475     return 1;
21476   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21477     {
21478       long int i = longval ();
21479       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21480         return 1;
21481       fprintf (f, "%ld\n", i);
21482     }
21483   else
21484     {
21485       unsigned long int i = ulongval ();
21486       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21487         return 1;
21488       fprintf (f, "%lu\n", i);
21489     }
21490   return ferror (f) || fclose (f) != 0;
21491
21492   ;
21493   return 0;
21494 }
21495 _ACEOF
21496 rm -f conftest$ac_exeext
21497 if { (ac_try="$ac_link"
21498 case "(($ac_try" in
21499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500   *) ac_try_echo=$ac_try;;
21501 esac
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503   (eval "$ac_link") 2>&5
21504   ac_status=$?
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21507   { (case "(($ac_try" in
21508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509   *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512   (eval "$ac_try") 2>&5
21513   ac_status=$?
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); }; }; then
21516   ac_cv_sizeof_long_long=`cat conftest.val`
21517 else
21518   echo "$as_me: program exited with status $ac_status" >&5
21519 echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522 ( exit $ac_status )
21523 if test "$ac_cv_type_long_long" = yes; then
21524      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21525 See \`config.log' for more details." >&5
21526 echo "$as_me: error: cannot compute sizeof (long long)
21527 See \`config.log' for more details." >&2;}
21528    { (exit 77); exit 77; }; }
21529    else
21530      ac_cv_sizeof_long_long=0
21531    fi
21532 fi
21533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21534 fi
21535 rm -f conftest.val
21536 fi
21537 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21538 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21539
21540
21541
21542 cat >>confdefs.h <<_ACEOF
21543 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21544 _ACEOF
21545
21546
21547         if test "$ac_cv_sizeof_long_long" != "0"; then
21548                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
21549         fi
21550     ;;
21551     * )
21552         { echo "$as_me:$LINENO: checking for long long" >&5
21553 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21554 if test "${ac_cv_type_long_long+set}" = set; then
21555   echo $ECHO_N "(cached) $ECHO_C" >&6
21556 else
21557   cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h.  */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h.  */
21563 $ac_includes_default
21564 typedef long long ac__type_new_;
21565 int
21566 main ()
21567 {
21568 if ((ac__type_new_ *) 0)
21569   return 0;
21570 if (sizeof (ac__type_new_))
21571   return 0;
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580   *) ac_try_echo=$ac_try;;
21581 esac
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583   (eval "$ac_compile") 2>conftest.er1
21584   ac_status=$?
21585   grep -v '^ *+' conftest.er1 >conftest.err
21586   rm -f conftest.er1
21587   cat conftest.err >&5
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); } && {
21590          test -z "$ac_c_werror_flag" ||
21591          test ! -s conftest.err
21592        } && test -s conftest.$ac_objext; then
21593   ac_cv_type_long_long=yes
21594 else
21595   echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21597
21598         ac_cv_type_long_long=no
21599 fi
21600
21601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602 fi
21603 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21604 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21605
21606 # The cast to long int works around a bug in the HP C Compiler
21607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21609 # This bug is HP SR number 8606223364.
21610 { echo "$as_me:$LINENO: checking size of long long" >&5
21611 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21612 if test "${ac_cv_sizeof_long_long+set}" = set; then
21613   echo $ECHO_N "(cached) $ECHO_C" >&6
21614 else
21615   if test "$cross_compiling" = yes; then
21616   # Depending upon the size, compute the lo and hi bounds.
21617 cat >conftest.$ac_ext <<_ACEOF
21618 /* confdefs.h.  */
21619 _ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h.  */
21623 $ac_includes_default
21624    typedef long long ac__type_sizeof_;
21625 int
21626 main ()
21627 {
21628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21629 test_array [0] = 0
21630
21631   ;
21632   return 0;
21633 }
21634 _ACEOF
21635 rm -f conftest.$ac_objext
21636 if { (ac_try="$ac_compile"
21637 case "(($ac_try" in
21638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639   *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642   (eval "$ac_compile") 2>conftest.er1
21643   ac_status=$?
21644   grep -v '^ *+' conftest.er1 >conftest.err
21645   rm -f conftest.er1
21646   cat conftest.err >&5
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); } && {
21649          test -z "$ac_c_werror_flag" ||
21650          test ! -s conftest.err
21651        } && test -s conftest.$ac_objext; then
21652   ac_lo=0 ac_mid=0
21653   while :; do
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 long ac__type_sizeof_;
21662 int
21663 main ()
21664 {
21665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21666 test_array [0] = 0
21667
21668   ;
21669   return 0;
21670 }
21671 _ACEOF
21672 rm -f conftest.$ac_objext
21673 if { (ac_try="$ac_compile"
21674 case "(($ac_try" in
21675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676   *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679   (eval "$ac_compile") 2>conftest.er1
21680   ac_status=$?
21681   grep -v '^ *+' conftest.er1 >conftest.err
21682   rm -f conftest.er1
21683   cat conftest.err >&5
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } && {
21686          test -z "$ac_c_werror_flag" ||
21687          test ! -s conftest.err
21688        } && test -s conftest.$ac_objext; then
21689   ac_hi=$ac_mid; break
21690 else
21691   echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21693
21694         ac_lo=`expr $ac_mid + 1`
21695                         if test $ac_lo -le $ac_mid; then
21696                           ac_lo= ac_hi=
21697                           break
21698                         fi
21699                         ac_mid=`expr 2 '*' $ac_mid + 1`
21700 fi
21701
21702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21703   done
21704 else
21705   echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21707
21708         cat >conftest.$ac_ext <<_ACEOF
21709 /* confdefs.h.  */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h.  */
21714 $ac_includes_default
21715    typedef long long ac__type_sizeof_;
21716 int
21717 main ()
21718 {
21719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21720 test_array [0] = 0
21721
21722   ;
21723   return 0;
21724 }
21725 _ACEOF
21726 rm -f conftest.$ac_objext
21727 if { (ac_try="$ac_compile"
21728 case "(($ac_try" in
21729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730   *) ac_try_echo=$ac_try;;
21731 esac
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733   (eval "$ac_compile") 2>conftest.er1
21734   ac_status=$?
21735   grep -v '^ *+' conftest.er1 >conftest.err
21736   rm -f conftest.er1
21737   cat conftest.err >&5
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); } && {
21740          test -z "$ac_c_werror_flag" ||
21741          test ! -s conftest.err
21742        } && test -s conftest.$ac_objext; then
21743   ac_hi=-1 ac_mid=-1
21744   while :; do
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 long long ac__type_sizeof_;
21753 int
21754 main ()
21755 {
21756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21757 test_array [0] = 0
21758
21759   ;
21760   return 0;
21761 }
21762 _ACEOF
21763 rm -f conftest.$ac_objext
21764 if { (ac_try="$ac_compile"
21765 case "(($ac_try" in
21766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767   *) ac_try_echo=$ac_try;;
21768 esac
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770   (eval "$ac_compile") 2>conftest.er1
21771   ac_status=$?
21772   grep -v '^ *+' conftest.er1 >conftest.err
21773   rm -f conftest.er1
21774   cat conftest.err >&5
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } && {
21777          test -z "$ac_c_werror_flag" ||
21778          test ! -s conftest.err
21779        } && test -s conftest.$ac_objext; then
21780   ac_lo=$ac_mid; break
21781 else
21782   echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21784
21785         ac_hi=`expr '(' $ac_mid ')' - 1`
21786                         if test $ac_mid -le $ac_hi; then
21787                           ac_lo= ac_hi=
21788                           break
21789                         fi
21790                         ac_mid=`expr 2 '*' $ac_mid`
21791 fi
21792
21793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21794   done
21795 else
21796   echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21798
21799         ac_lo= ac_hi=
21800 fi
21801
21802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21803 fi
21804
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806 # Binary search between lo and hi bounds.
21807 while test "x$ac_lo" != "x$ac_hi"; do
21808   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21809   cat >conftest.$ac_ext <<_ACEOF
21810 /* confdefs.h.  */
21811 _ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h.  */
21815 $ac_includes_default
21816    typedef long long ac__type_sizeof_;
21817 int
21818 main ()
21819 {
21820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21821 test_array [0] = 0
21822
21823   ;
21824   return 0;
21825 }
21826 _ACEOF
21827 rm -f conftest.$ac_objext
21828 if { (ac_try="$ac_compile"
21829 case "(($ac_try" in
21830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831   *) ac_try_echo=$ac_try;;
21832 esac
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834   (eval "$ac_compile") 2>conftest.er1
21835   ac_status=$?
21836   grep -v '^ *+' conftest.er1 >conftest.err
21837   rm -f conftest.er1
21838   cat conftest.err >&5
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } && {
21841          test -z "$ac_c_werror_flag" ||
21842          test ! -s conftest.err
21843        } && test -s conftest.$ac_objext; then
21844   ac_hi=$ac_mid
21845 else
21846   echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21848
21849         ac_lo=`expr '(' $ac_mid ')' + 1`
21850 fi
21851
21852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 done
21854 case $ac_lo in
21855 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21856 '') if test "$ac_cv_type_long_long" = yes; then
21857      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21858 See \`config.log' for more details." >&5
21859 echo "$as_me: error: cannot compute sizeof (long long)
21860 See \`config.log' for more details." >&2;}
21861    { (exit 77); exit 77; }; }
21862    else
21863      ac_cv_sizeof_long_long=0
21864    fi ;;
21865 esac
21866 else
21867   cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h.  */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h.  */
21873 $ac_includes_default
21874    typedef long long ac__type_sizeof_;
21875 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21876 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21877 #include <stdio.h>
21878 #include <stdlib.h>
21879 int
21880 main ()
21881 {
21882
21883   FILE *f = fopen ("conftest.val", "w");
21884   if (! f)
21885     return 1;
21886   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21887     {
21888       long int i = longval ();
21889       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21890         return 1;
21891       fprintf (f, "%ld\n", i);
21892     }
21893   else
21894     {
21895       unsigned long int i = ulongval ();
21896       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21897         return 1;
21898       fprintf (f, "%lu\n", i);
21899     }
21900   return ferror (f) || fclose (f) != 0;
21901
21902   ;
21903   return 0;
21904 }
21905 _ACEOF
21906 rm -f conftest$ac_exeext
21907 if { (ac_try="$ac_link"
21908 case "(($ac_try" in
21909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910   *) ac_try_echo=$ac_try;;
21911 esac
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913   (eval "$ac_link") 2>&5
21914   ac_status=$?
21915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21917   { (case "(($ac_try" in
21918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919   *) ac_try_echo=$ac_try;;
21920 esac
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922   (eval "$ac_try") 2>&5
21923   ac_status=$?
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); }; }; then
21926   ac_cv_sizeof_long_long=`cat conftest.val`
21927 else
21928   echo "$as_me: program exited with status $ac_status" >&5
21929 echo "$as_me: failed program was:" >&5
21930 sed 's/^/| /' conftest.$ac_ext >&5
21931
21932 ( exit $ac_status )
21933 if test "$ac_cv_type_long_long" = yes; then
21934      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21935 See \`config.log' for more details." >&5
21936 echo "$as_me: error: cannot compute sizeof (long long)
21937 See \`config.log' for more details." >&2;}
21938    { (exit 77); exit 77; }; }
21939    else
21940      ac_cv_sizeof_long_long=0
21941    fi
21942 fi
21943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21944 fi
21945 rm -f conftest.val
21946 fi
21947 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21948 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21949
21950
21951
21952 cat >>confdefs.h <<_ACEOF
21953 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21954 _ACEOF
21955
21956
21957 esac
21958
21959 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21960 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21961 if test "${ac_cv_type_wchar_t+set}" = set; then
21962   echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21964   cat >conftest.$ac_ext <<_ACEOF
21965 /* confdefs.h.  */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h.  */
21970
21971         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21972         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21973         #  error "fake wchar_t"
21974         #endif
21975         #ifdef HAVE_WCHAR_H
21976         #  ifdef __CYGWIN__
21977         #    include <stddef.h>
21978         #  endif
21979         #  include <wchar.h>
21980         #endif
21981         #ifdef HAVE_STDLIB_H
21982         #  include <stdlib.h>
21983         #endif
21984         #include <stdio.h>
21985
21986
21987
21988 typedef wchar_t ac__type_new_;
21989 int
21990 main ()
21991 {
21992 if ((ac__type_new_ *) 0)
21993   return 0;
21994 if (sizeof (ac__type_new_))
21995   return 0;
21996   ;
21997   return 0;
21998 }
21999 _ACEOF
22000 rm -f conftest.$ac_objext
22001 if { (ac_try="$ac_compile"
22002 case "(($ac_try" in
22003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004   *) ac_try_echo=$ac_try;;
22005 esac
22006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007   (eval "$ac_compile") 2>conftest.er1
22008   ac_status=$?
22009   grep -v '^ *+' conftest.er1 >conftest.err
22010   rm -f conftest.er1
22011   cat conftest.err >&5
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); } && {
22014          test -z "$ac_c_werror_flag" ||
22015          test ! -s conftest.err
22016        } && test -s conftest.$ac_objext; then
22017   ac_cv_type_wchar_t=yes
22018 else
22019   echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22021
22022         ac_cv_type_wchar_t=no
22023 fi
22024
22025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22026 fi
22027 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22028 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22029
22030 # The cast to long int works around a bug in the HP C Compiler
22031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22033 # This bug is HP SR number 8606223364.
22034 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22035 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22036 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22037   echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039   if test "$cross_compiling" = yes; then
22040   # Depending upon the size, compute the lo and hi bounds.
22041 cat >conftest.$ac_ext <<_ACEOF
22042 /* confdefs.h.  */
22043 _ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h.  */
22047
22048         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22049         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22050         #  error "fake wchar_t"
22051         #endif
22052         #ifdef HAVE_WCHAR_H
22053         #  ifdef __CYGWIN__
22054         #    include <stddef.h>
22055         #  endif
22056         #  include <wchar.h>
22057         #endif
22058         #ifdef HAVE_STDLIB_H
22059         #  include <stdlib.h>
22060         #endif
22061         #include <stdio.h>
22062
22063
22064
22065    typedef wchar_t ac__type_sizeof_;
22066 int
22067 main ()
22068 {
22069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22070 test_array [0] = 0
22071
22072   ;
22073   return 0;
22074 }
22075 _ACEOF
22076 rm -f conftest.$ac_objext
22077 if { (ac_try="$ac_compile"
22078 case "(($ac_try" in
22079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080   *) ac_try_echo=$ac_try;;
22081 esac
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083   (eval "$ac_compile") 2>conftest.er1
22084   ac_status=$?
22085   grep -v '^ *+' conftest.er1 >conftest.err
22086   rm -f conftest.er1
22087   cat conftest.err >&5
22088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089   (exit $ac_status); } && {
22090          test -z "$ac_c_werror_flag" ||
22091          test ! -s conftest.err
22092        } && test -s conftest.$ac_objext; then
22093   ac_lo=0 ac_mid=0
22094   while :; do
22095     cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h.  */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h.  */
22101
22102         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22103         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22104         #  error "fake wchar_t"
22105         #endif
22106         #ifdef HAVE_WCHAR_H
22107         #  ifdef __CYGWIN__
22108         #    include <stddef.h>
22109         #  endif
22110         #  include <wchar.h>
22111         #endif
22112         #ifdef HAVE_STDLIB_H
22113         #  include <stdlib.h>
22114         #endif
22115         #include <stdio.h>
22116
22117
22118
22119    typedef wchar_t ac__type_sizeof_;
22120 int
22121 main ()
22122 {
22123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22124 test_array [0] = 0
22125
22126   ;
22127   return 0;
22128 }
22129 _ACEOF
22130 rm -f conftest.$ac_objext
22131 if { (ac_try="$ac_compile"
22132 case "(($ac_try" in
22133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134   *) ac_try_echo=$ac_try;;
22135 esac
22136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137   (eval "$ac_compile") 2>conftest.er1
22138   ac_status=$?
22139   grep -v '^ *+' conftest.er1 >conftest.err
22140   rm -f conftest.er1
22141   cat conftest.err >&5
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); } && {
22144          test -z "$ac_c_werror_flag" ||
22145          test ! -s conftest.err
22146        } && test -s conftest.$ac_objext; then
22147   ac_hi=$ac_mid; break
22148 else
22149   echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152         ac_lo=`expr $ac_mid + 1`
22153                         if test $ac_lo -le $ac_mid; then
22154                           ac_lo= ac_hi=
22155                           break
22156                         fi
22157                         ac_mid=`expr 2 '*' $ac_mid + 1`
22158 fi
22159
22160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22161   done
22162 else
22163   echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165
22166         cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h.  */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h.  */
22172
22173         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22174         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22175         #  error "fake wchar_t"
22176         #endif
22177         #ifdef HAVE_WCHAR_H
22178         #  ifdef __CYGWIN__
22179         #    include <stddef.h>
22180         #  endif
22181         #  include <wchar.h>
22182         #endif
22183         #ifdef HAVE_STDLIB_H
22184         #  include <stdlib.h>
22185         #endif
22186         #include <stdio.h>
22187
22188
22189
22190    typedef wchar_t ac__type_sizeof_;
22191 int
22192 main ()
22193 {
22194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22195 test_array [0] = 0
22196
22197   ;
22198   return 0;
22199 }
22200 _ACEOF
22201 rm -f conftest.$ac_objext
22202 if { (ac_try="$ac_compile"
22203 case "(($ac_try" in
22204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205   *) ac_try_echo=$ac_try;;
22206 esac
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208   (eval "$ac_compile") 2>conftest.er1
22209   ac_status=$?
22210   grep -v '^ *+' conftest.er1 >conftest.err
22211   rm -f conftest.er1
22212   cat conftest.err >&5
22213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214   (exit $ac_status); } && {
22215          test -z "$ac_c_werror_flag" ||
22216          test ! -s conftest.err
22217        } && test -s conftest.$ac_objext; then
22218   ac_hi=-1 ac_mid=-1
22219   while :; do
22220     cat >conftest.$ac_ext <<_ACEOF
22221 /* confdefs.h.  */
22222 _ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h.  */
22226
22227         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22228         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22229         #  error "fake wchar_t"
22230         #endif
22231         #ifdef HAVE_WCHAR_H
22232         #  ifdef __CYGWIN__
22233         #    include <stddef.h>
22234         #  endif
22235         #  include <wchar.h>
22236         #endif
22237         #ifdef HAVE_STDLIB_H
22238         #  include <stdlib.h>
22239         #endif
22240         #include <stdio.h>
22241
22242
22243
22244    typedef wchar_t ac__type_sizeof_;
22245 int
22246 main ()
22247 {
22248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22249 test_array [0] = 0
22250
22251   ;
22252   return 0;
22253 }
22254 _ACEOF
22255 rm -f conftest.$ac_objext
22256 if { (ac_try="$ac_compile"
22257 case "(($ac_try" in
22258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259   *) ac_try_echo=$ac_try;;
22260 esac
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262   (eval "$ac_compile") 2>conftest.er1
22263   ac_status=$?
22264   grep -v '^ *+' conftest.er1 >conftest.err
22265   rm -f conftest.er1
22266   cat conftest.err >&5
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); } && {
22269          test -z "$ac_c_werror_flag" ||
22270          test ! -s conftest.err
22271        } && test -s conftest.$ac_objext; then
22272   ac_lo=$ac_mid; break
22273 else
22274   echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22276
22277         ac_hi=`expr '(' $ac_mid ')' - 1`
22278                         if test $ac_mid -le $ac_hi; then
22279                           ac_lo= ac_hi=
22280                           break
22281                         fi
22282                         ac_mid=`expr 2 '*' $ac_mid`
22283 fi
22284
22285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286   done
22287 else
22288   echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22290
22291         ac_lo= ac_hi=
22292 fi
22293
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 fi
22296
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 # Binary search between lo and hi bounds.
22299 while test "x$ac_lo" != "x$ac_hi"; do
22300   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22301   cat >conftest.$ac_ext <<_ACEOF
22302 /* confdefs.h.  */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h.  */
22307
22308         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22309         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22310         #  error "fake wchar_t"
22311         #endif
22312         #ifdef HAVE_WCHAR_H
22313         #  ifdef __CYGWIN__
22314         #    include <stddef.h>
22315         #  endif
22316         #  include <wchar.h>
22317         #endif
22318         #ifdef HAVE_STDLIB_H
22319         #  include <stdlib.h>
22320         #endif
22321         #include <stdio.h>
22322
22323
22324
22325    typedef wchar_t ac__type_sizeof_;
22326 int
22327 main ()
22328 {
22329 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22330 test_array [0] = 0
22331
22332   ;
22333   return 0;
22334 }
22335 _ACEOF
22336 rm -f conftest.$ac_objext
22337 if { (ac_try="$ac_compile"
22338 case "(($ac_try" in
22339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340   *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343   (eval "$ac_compile") 2>conftest.er1
22344   ac_status=$?
22345   grep -v '^ *+' conftest.er1 >conftest.err
22346   rm -f conftest.er1
22347   cat conftest.err >&5
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } && {
22350          test -z "$ac_c_werror_flag" ||
22351          test ! -s conftest.err
22352        } && test -s conftest.$ac_objext; then
22353   ac_hi=$ac_mid
22354 else
22355   echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22357
22358         ac_lo=`expr '(' $ac_mid ')' + 1`
22359 fi
22360
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362 done
22363 case $ac_lo in
22364 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22365 '') if test "$ac_cv_type_wchar_t" = yes; then
22366      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22367 See \`config.log' for more details." >&5
22368 echo "$as_me: error: cannot compute sizeof (wchar_t)
22369 See \`config.log' for more details." >&2;}
22370    { (exit 77); exit 77; }; }
22371    else
22372      ac_cv_sizeof_wchar_t=0
22373    fi ;;
22374 esac
22375 else
22376   cat >conftest.$ac_ext <<_ACEOF
22377 /* confdefs.h.  */
22378 _ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h.  */
22382
22383         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22384         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22385         #  error "fake wchar_t"
22386         #endif
22387         #ifdef HAVE_WCHAR_H
22388         #  ifdef __CYGWIN__
22389         #    include <stddef.h>
22390         #  endif
22391         #  include <wchar.h>
22392         #endif
22393         #ifdef HAVE_STDLIB_H
22394         #  include <stdlib.h>
22395         #endif
22396         #include <stdio.h>
22397
22398
22399
22400    typedef wchar_t ac__type_sizeof_;
22401 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22402 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22403 #include <stdio.h>
22404 #include <stdlib.h>
22405 int
22406 main ()
22407 {
22408
22409   FILE *f = fopen ("conftest.val", "w");
22410   if (! f)
22411     return 1;
22412   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22413     {
22414       long int i = longval ();
22415       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22416         return 1;
22417       fprintf (f, "%ld\n", i);
22418     }
22419   else
22420     {
22421       unsigned long int i = ulongval ();
22422       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22423         return 1;
22424       fprintf (f, "%lu\n", i);
22425     }
22426   return ferror (f) || fclose (f) != 0;
22427
22428   ;
22429   return 0;
22430 }
22431 _ACEOF
22432 rm -f conftest$ac_exeext
22433 if { (ac_try="$ac_link"
22434 case "(($ac_try" in
22435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436   *) ac_try_echo=$ac_try;;
22437 esac
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439   (eval "$ac_link") 2>&5
22440   ac_status=$?
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22443   { (case "(($ac_try" in
22444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445   *) ac_try_echo=$ac_try;;
22446 esac
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448   (eval "$ac_try") 2>&5
22449   ac_status=$?
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); }; }; then
22452   ac_cv_sizeof_wchar_t=`cat conftest.val`
22453 else
22454   echo "$as_me: program exited with status $ac_status" >&5
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22457
22458 ( exit $ac_status )
22459 if test "$ac_cv_type_wchar_t" = yes; then
22460      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22461 See \`config.log' for more details." >&5
22462 echo "$as_me: error: cannot compute sizeof (wchar_t)
22463 See \`config.log' for more details." >&2;}
22464    { (exit 77); exit 77; }; }
22465    else
22466      ac_cv_sizeof_wchar_t=0
22467    fi
22468 fi
22469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22470 fi
22471 rm -f conftest.val
22472 fi
22473 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22474 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22475
22476
22477
22478 cat >>confdefs.h <<_ACEOF
22479 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22480 _ACEOF
22481
22482
22483 if test "$ac_cv_sizeof_wchar_t" != "0"; then
22484     wxUSE_WCHAR_T=yes
22485 else
22486     wxUSE_WCHAR_T=no
22487 fi
22488
22489 { echo "$as_me:$LINENO: checking for va_copy" >&5
22490 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
22491 if test "${wx_cv_func_va_copy+set}" = set; then
22492   echo $ECHO_N "(cached) $ECHO_C" >&6
22493 else
22494
22495         ac_ext=cpp
22496 ac_cpp='$CXXCPP $CPPFLAGS'
22497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22500
22501         cat >conftest.$ac_ext <<_ACEOF
22502
22503             #include <stdarg.h>
22504             void foo(char *f, ...)
22505             {
22506                 va_list ap1, ap2;
22507                 va_start(ap1, f);
22508                 va_copy(ap2, ap1);
22509                 va_end(ap2);
22510                 va_end(ap1);
22511             }
22512             int main()
22513             {
22514                 foo("hi", 17);
22515                 return 0;
22516             }
22517 _ACEOF
22518 rm -f conftest.$ac_objext conftest$ac_exeext
22519 if { (ac_try="$ac_link"
22520 case "(($ac_try" in
22521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22522   *) ac_try_echo=$ac_try;;
22523 esac
22524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22525   (eval "$ac_link") 2>conftest.er1
22526   ac_status=$?
22527   grep -v '^ *+' conftest.er1 >conftest.err
22528   rm -f conftest.er1
22529   cat conftest.err >&5
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); } && {
22532          test -z "$ac_cxx_werror_flag" ||
22533          test ! -s conftest.err
22534        } && test -s conftest$ac_exeext &&
22535        $as_test_x conftest$ac_exeext; then
22536   wx_cv_func_va_copy=yes
22537 else
22538   echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22540
22541         wx_cv_func_va_copy=no
22542
22543 fi
22544
22545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22546       conftest$ac_exeext conftest.$ac_ext
22547         ac_ext=c
22548 ac_cpp='$CPP $CPPFLAGS'
22549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22552
22553
22554
22555 fi
22556 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22557 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
22558
22559 if test $wx_cv_func_va_copy = "yes"; then
22560     cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_VA_COPY 1
22562 _ACEOF
22563
22564 else
22565         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22566 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
22567 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22568   echo $ECHO_N "(cached) $ECHO_C" >&6
22569 else
22570
22571             if test "$cross_compiling" = yes; then
22572                   wx_cv_type_va_list_lvalue=yes
22573
22574 else
22575   cat >conftest.$ac_ext <<_ACEOF
22576
22577                 #include <stdarg.h>
22578                 int foo(char *f, ...)
22579                 {
22580                     va_list ap1, ap2;
22581                     va_start(ap1, f);
22582                     ap2 = ap1;
22583                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22584                         return 1;
22585                     va_end(ap2);
22586                     va_end(ap1);
22587                     return 0;
22588                 }
22589                 int main()
22590                 {
22591                     return foo("hi", 17);
22592                 }
22593 _ACEOF
22594 rm -f conftest$ac_exeext
22595 if { (ac_try="$ac_link"
22596 case "(($ac_try" in
22597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598   *) ac_try_echo=$ac_try;;
22599 esac
22600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22601   (eval "$ac_link") 2>&5
22602   ac_status=$?
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22605   { (case "(($ac_try" in
22606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607   *) ac_try_echo=$ac_try;;
22608 esac
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610   (eval "$ac_try") 2>&5
22611   ac_status=$?
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); }; }; then
22614   wx_cv_type_va_list_lvalue=yes
22615 else
22616   echo "$as_me: program exited with status $ac_status" >&5
22617 echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620 ( exit $ac_status )
22621 wx_cv_type_va_list_lvalue=no
22622 fi
22623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22624 fi
22625
22626
22627
22628
22629 fi
22630 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22631 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
22632
22633     if test $wx_cv_type_va_list_lvalue != "yes"; then
22634                         cat >>confdefs.h <<\_ACEOF
22635 #define VA_LIST_IS_ARRAY 1
22636 _ACEOF
22637
22638     fi
22639 fi
22640
22641 if test "$wxUSE_VARARG_MACROS" = "yes"; then
22642
22643 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22644 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
22645 if test "${wx_cv_have_variadic_macros+set}" = set; then
22646   echo $ECHO_N "(cached) $ECHO_C" >&6
22647 else
22648
22649                         ac_ext=cpp
22650 ac_cpp='$CXXCPP $CPPFLAGS'
22651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22654
22655         cat >conftest.$ac_ext <<_ACEOF
22656 /* confdefs.h.  */
22657 _ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h.  */
22661
22662                     #include <stdio.h>
22663                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22664
22665 int
22666 main ()
22667 {
22668
22669                     test("%s %d %p", "test", 1, 0);
22670
22671
22672   ;
22673   return 0;
22674 }
22675 _ACEOF
22676 rm -f conftest.$ac_objext
22677 if { (ac_try="$ac_compile"
22678 case "(($ac_try" in
22679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680   *) ac_try_echo=$ac_try;;
22681 esac
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683   (eval "$ac_compile") 2>conftest.er1
22684   ac_status=$?
22685   grep -v '^ *+' conftest.er1 >conftest.err
22686   rm -f conftest.er1
22687   cat conftest.err >&5
22688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); } && {
22690          test -z "$ac_cxx_werror_flag" ||
22691          test ! -s conftest.err
22692        } && test -s conftest.$ac_objext; then
22693   wx_cv_have_variadic_macros=yes
22694 else
22695   echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22697
22698         wx_cv_have_variadic_macros=no
22699
22700 fi
22701
22702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703         ac_ext=c
22704 ac_cpp='$CPP $CPPFLAGS'
22705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22708
22709
22710
22711 fi
22712 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22713 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
22714
22715 if test $wx_cv_have_variadic_macros = "yes"; then
22716     cat >>confdefs.h <<\_ACEOF
22717 #define HAVE_VARIADIC_MACROS 1
22718 _ACEOF
22719
22720 fi
22721
22722 fi
22723 # Check whether --enable-largefile was given.
22724 if test "${enable_largefile+set}" = set; then
22725   enableval=$enable_largefile;
22726 fi
22727
22728 if test "$enable_largefile" != no; then
22729             wx_largefile=no
22730
22731     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22732 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
22733 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22734   echo $ECHO_N "(cached) $ECHO_C" >&6
22735 else
22736
22737           cat >conftest.$ac_ext <<_ACEOF
22738 /* confdefs.h.  */
22739 _ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h.  */
22743 #define _FILE_OFFSET_BITS 64
22744                           #include <sys/types.h>
22745 int
22746 main ()
22747 {
22748 typedef struct {
22749     unsigned int field: sizeof(off_t) == 8;
22750 } wxlf;
22751
22752   ;
22753   return 0;
22754 }
22755 _ACEOF
22756 rm -f conftest.$ac_objext
22757 if { (ac_try="$ac_compile"
22758 case "(($ac_try" in
22759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760   *) ac_try_echo=$ac_try;;
22761 esac
22762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22763   (eval "$ac_compile") 2>conftest.er1
22764   ac_status=$?
22765   grep -v '^ *+' conftest.er1 >conftest.err
22766   rm -f conftest.er1
22767   cat conftest.err >&5
22768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); } && {
22770          test -z "$ac_c_werror_flag" ||
22771          test ! -s conftest.err
22772        } && test -s conftest.$ac_objext; then
22773   ac_cv_sys_file_offset_bits=64
22774 else
22775   echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22777
22778         ac_cv_sys_file_offset_bits=no
22779 fi
22780
22781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22782
22783
22784 fi
22785 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22786 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22787
22788     if test "$ac_cv_sys_file_offset_bits" != no; then
22789         wx_largefile=yes
22790         cat >>confdefs.h <<_ACEOF
22791 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22792 _ACEOF
22793
22794     fi
22795
22796     if test "x$wx_largefile" != "xyes"; then
22797
22798     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22799 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
22800 if test "${ac_cv_sys_large_files+set}" = set; then
22801   echo $ECHO_N "(cached) $ECHO_C" >&6
22802 else
22803
22804           cat >conftest.$ac_ext <<_ACEOF
22805 /* confdefs.h.  */
22806 _ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h.  */
22810 #define _LARGE_FILES 1
22811                           #include <sys/types.h>
22812 int
22813 main ()
22814 {
22815 typedef struct {
22816     unsigned int field: sizeof(off_t) == 8;
22817 } wxlf;
22818
22819   ;
22820   return 0;
22821 }
22822 _ACEOF
22823 rm -f conftest.$ac_objext
22824 if { (ac_try="$ac_compile"
22825 case "(($ac_try" in
22826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827   *) ac_try_echo=$ac_try;;
22828 esac
22829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22830   (eval "$ac_compile") 2>conftest.er1
22831   ac_status=$?
22832   grep -v '^ *+' conftest.er1 >conftest.err
22833   rm -f conftest.er1
22834   cat conftest.err >&5
22835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836   (exit $ac_status); } && {
22837          test -z "$ac_c_werror_flag" ||
22838          test ! -s conftest.err
22839        } && test -s conftest.$ac_objext; then
22840   ac_cv_sys_large_files=1
22841 else
22842   echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22844
22845         ac_cv_sys_large_files=no
22846 fi
22847
22848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22849
22850
22851 fi
22852 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22853 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22854
22855     if test "$ac_cv_sys_large_files" != no; then
22856         wx_largefile=yes
22857         cat >>confdefs.h <<_ACEOF
22858 #define _LARGE_FILES $ac_cv_sys_large_files
22859 _ACEOF
22860
22861     fi
22862
22863     fi
22864
22865     { echo "$as_me:$LINENO: checking if large file support is available" >&5
22866 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
22867     if test "x$wx_largefile" = "xyes"; then
22868         cat >>confdefs.h <<\_ACEOF
22869 #define HAVE_LARGEFILE_SUPPORT 1
22870 _ACEOF
22871
22872     fi
22873     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
22874 echo "${ECHO_T}$wx_largefile" >&6; }
22875 fi
22876
22877
22878 if test "x$wx_largefile" = "xyes"; then
22879     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
22880         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
22881
22882                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22883             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22884 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
22885 if test "${wx_cv_STDC_EXT_required+set}" = set; then
22886   echo $ECHO_N "(cached) $ECHO_C" >&6
22887 else
22888
22889                     ac_ext=cpp
22890 ac_cpp='$CXXCPP $CPPFLAGS'
22891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22894
22895                     cat >conftest.$ac_ext <<_ACEOF
22896 /* confdefs.h.  */
22897 _ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h.  */
22901
22902 int
22903 main ()
22904 {
22905
22906                             #ifndef __STDC_EXT__
22907                                 choke me
22908                             #endif
22909
22910   ;
22911   return 0;
22912 }
22913 _ACEOF
22914 rm -f conftest.$ac_objext
22915 if { (ac_try="$ac_compile"
22916 case "(($ac_try" in
22917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918   *) ac_try_echo=$ac_try;;
22919 esac
22920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22921   (eval "$ac_compile") 2>conftest.er1
22922   ac_status=$?
22923   grep -v '^ *+' conftest.er1 >conftest.err
22924   rm -f conftest.er1
22925   cat conftest.err >&5
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); } && {
22928          test -z "$ac_cxx_werror_flag" ||
22929          test ! -s conftest.err
22930        } && test -s conftest.$ac_objext; then
22931   wx_cv_STDC_EXT_required=no
22932 else
22933   echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22935
22936         wx_cv_STDC_EXT_required=yes
22937
22938 fi
22939
22940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22941                     ac_ext=c
22942 ac_cpp='$CPP $CPPFLAGS'
22943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22946
22947
22948
22949 fi
22950 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22951 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
22952             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
22953                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
22954             fi
22955         fi
22956     else
22957         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
22958     fi
22959         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22960 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
22961 if test "${ac_cv_sys_largefile_source+set}" = set; then
22962   echo $ECHO_N "(cached) $ECHO_C" >&6
22963 else
22964   while :; do
22965   cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h.  */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h.  */
22971 #include <stdio.h>
22972 int
22973 main ()
22974 {
22975 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
22976   ;
22977   return 0;
22978 }
22979 _ACEOF
22980 rm -f conftest.$ac_objext conftest$ac_exeext
22981 if { (ac_try="$ac_link"
22982 case "(($ac_try" in
22983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984   *) ac_try_echo=$ac_try;;
22985 esac
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987   (eval "$ac_link") 2>conftest.er1
22988   ac_status=$?
22989   grep -v '^ *+' conftest.er1 >conftest.err
22990   rm -f conftest.er1
22991   cat conftest.err >&5
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); } && {
22994          test -z "$ac_c_werror_flag" ||
22995          test ! -s conftest.err
22996        } && test -s conftest$ac_exeext &&
22997        $as_test_x conftest$ac_exeext; then
22998   ac_cv_sys_largefile_source=no; break
22999 else
23000   echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003
23004 fi
23005
23006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23007       conftest$ac_exeext conftest.$ac_ext
23008   cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014 #define _LARGEFILE_SOURCE 1
23015 #include <stdio.h>
23016 int
23017 main ()
23018 {
23019 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
23020   ;
23021   return 0;
23022 }
23023 _ACEOF
23024 rm -f conftest.$ac_objext conftest$ac_exeext
23025 if { (ac_try="$ac_link"
23026 case "(($ac_try" in
23027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23028   *) ac_try_echo=$ac_try;;
23029 esac
23030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23031   (eval "$ac_link") 2>conftest.er1
23032   ac_status=$?
23033   grep -v '^ *+' conftest.er1 >conftest.err
23034   rm -f conftest.er1
23035   cat conftest.err >&5
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); } && {
23038          test -z "$ac_c_werror_flag" ||
23039          test ! -s conftest.err
23040        } && test -s conftest$ac_exeext &&
23041        $as_test_x conftest$ac_exeext; then
23042   ac_cv_sys_largefile_source=1; break
23043 else
23044   echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23046
23047
23048 fi
23049
23050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23051       conftest$ac_exeext conftest.$ac_ext
23052   ac_cv_sys_largefile_source=unknown
23053   break
23054 done
23055 fi
23056 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23057 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23058 case $ac_cv_sys_largefile_source in #(
23059   no | unknown) ;;
23060   *)
23061 cat >>confdefs.h <<_ACEOF
23062 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23063 _ACEOF
23064 ;;
23065 esac
23066 rm -f conftest*
23067
23068 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23069 # in glibc 2.1.3, but that breaks too many other things.
23070 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23071 if test $ac_cv_sys_largefile_source != unknown; then
23072
23073 cat >>confdefs.h <<\_ACEOF
23074 #define HAVE_FSEEKO 1
23075 _ACEOF
23076
23077 fi
23078
23079     if test "$ac_cv_sys_largefile_source" != no; then
23080         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23081     fi
23082 fi
23083
23084 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23085 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23086 if test "${ac_cv_c_bigendian+set}" = set; then
23087   echo $ECHO_N "(cached) $ECHO_C" >&6
23088 else
23089   ac_cv_c_bigendian=unknown
23090 # See if sys/param.h defines the BYTE_ORDER macro.
23091 cat >conftest.$ac_ext <<_ACEOF
23092 /* confdefs.h.  */
23093 _ACEOF
23094 cat confdefs.h >>conftest.$ac_ext
23095 cat >>conftest.$ac_ext <<_ACEOF
23096 /* end confdefs.h.  */
23097 #include <sys/types.h>
23098 #include <sys/param.h>
23099 int
23100 main ()
23101 {
23102
23103 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23104  bogus endian macros
23105 #endif
23106   ;
23107   return 0;
23108 }
23109 _ACEOF
23110 rm -f conftest.$ac_objext
23111 if { (ac_try="$ac_compile"
23112 case "(($ac_try" in
23113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114   *) ac_try_echo=$ac_try;;
23115 esac
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117   (eval "$ac_compile") 2>conftest.er1
23118   ac_status=$?
23119   grep -v '^ *+' conftest.er1 >conftest.err
23120   rm -f conftest.er1
23121   cat conftest.err >&5
23122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123   (exit $ac_status); } && {
23124          test -z "$ac_c_werror_flag" ||
23125          test ! -s conftest.err
23126        } && test -s conftest.$ac_objext; then
23127   # It does; now see whether it defined to BIG_ENDIAN or not.
23128 cat >conftest.$ac_ext <<_ACEOF
23129 /* confdefs.h.  */
23130 _ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h.  */
23134 #include <sys/types.h>
23135 #include <sys/param.h>
23136 int
23137 main ()
23138 {
23139
23140 #if BYTE_ORDER != BIG_ENDIAN
23141  not big endian
23142 #endif
23143   ;
23144   return 0;
23145 }
23146 _ACEOF
23147 rm -f conftest.$ac_objext
23148 if { (ac_try="$ac_compile"
23149 case "(($ac_try" in
23150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23151   *) ac_try_echo=$ac_try;;
23152 esac
23153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23154   (eval "$ac_compile") 2>conftest.er1
23155   ac_status=$?
23156   grep -v '^ *+' conftest.er1 >conftest.err
23157   rm -f conftest.er1
23158   cat conftest.err >&5
23159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); } && {
23161          test -z "$ac_c_werror_flag" ||
23162          test ! -s conftest.err
23163        } && test -s conftest.$ac_objext; then
23164   ac_cv_c_bigendian=yes
23165 else
23166   echo "$as_me: failed program was:" >&5
23167 sed 's/^/| /' conftest.$ac_ext >&5
23168
23169         ac_cv_c_bigendian=no
23170 fi
23171
23172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23173 else
23174   echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23176
23177
23178 fi
23179
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23181 if test $ac_cv_c_bigendian = unknown; then
23182 if test "$cross_compiling" = yes; then
23183   ac_cv_c_bigendian=unknown
23184 else
23185   cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h.  */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h.  */
23191 main () {
23192   /* Are we little or big endian?  From Harbison&Steele.  */
23193   union
23194   {
23195     long l;
23196     char c[sizeof (long)];
23197   } u;
23198   u.l = 1;
23199   exit (u.c[sizeof (long) - 1] == 1);
23200 }
23201 _ACEOF
23202 rm -f conftest$ac_exeext
23203 if { (ac_try="$ac_link"
23204 case "(($ac_try" in
23205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206   *) ac_try_echo=$ac_try;;
23207 esac
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209   (eval "$ac_link") 2>&5
23210   ac_status=$?
23211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23213   { (case "(($ac_try" in
23214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215   *) ac_try_echo=$ac_try;;
23216 esac
23217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218   (eval "$ac_try") 2>&5
23219   ac_status=$?
23220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221   (exit $ac_status); }; }; then
23222   ac_cv_c_bigendian=no
23223 else
23224   echo "$as_me: program exited with status $ac_status" >&5
23225 echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23227
23228 ( exit $ac_status )
23229 ac_cv_c_bigendian=yes
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
23234
23235 fi
23236 fi
23237 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23238 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23239 if test $ac_cv_c_bigendian = unknown; then
23240   { 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
23241 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;}
23242 fi
23243 if test $ac_cv_c_bigendian = yes; then
23244   cat >>confdefs.h <<\_ACEOF
23245 #define WORDS_BIGENDIAN 1
23246 _ACEOF
23247
23248 fi
23249
23250
23251
23252
23253     ac_ext=cpp
23254 ac_cpp='$CXXCPP $CPPFLAGS'
23255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23258
23259
23260     { echo "$as_me:$LINENO: checking for iostream" >&5
23261 echo $ECHO_N "checking for iostream... $ECHO_C" >&6; }
23262 if test "${ac_cv_header_iostream+set}" = set; then
23263   echo $ECHO_N "(cached) $ECHO_C" >&6
23264 else
23265   cat >conftest.$ac_ext <<_ACEOF
23266 /* confdefs.h.  */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h.  */
23271
23272
23273 #include <iostream>
23274 _ACEOF
23275 rm -f conftest.$ac_objext
23276 if { (ac_try="$ac_compile"
23277 case "(($ac_try" in
23278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279   *) ac_try_echo=$ac_try;;
23280 esac
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282   (eval "$ac_compile") 2>conftest.er1
23283   ac_status=$?
23284   grep -v '^ *+' conftest.er1 >conftest.err
23285   rm -f conftest.er1
23286   cat conftest.err >&5
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); } && {
23289          test -z "$ac_cxx_werror_flag" ||
23290          test ! -s conftest.err
23291        } && test -s conftest.$ac_objext; then
23292   ac_cv_header_iostream=yes
23293 else
23294   echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23296
23297         ac_cv_header_iostream=no
23298 fi
23299
23300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23301 fi
23302 { echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
23303 echo "${ECHO_T}$ac_cv_header_iostream" >&6; }
23304
23305
23306
23307     if test "$ac_cv_header_iostream" = "yes" ; then
23308       :
23309     else
23310       cat >>confdefs.h <<\_ACEOF
23311 #define wxUSE_IOSTREAMH 1
23312 _ACEOF
23313
23314     fi
23315
23316     ac_ext=c
23317 ac_cpp='$CPP $CPPFLAGS'
23318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23321
23322
23323
23324
23325   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23326 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
23327 if test "${wx_cv_cpp_bool+set}" = set; then
23328   echo $ECHO_N "(cached) $ECHO_C" >&6
23329 else
23330
23331
23332     ac_ext=cpp
23333 ac_cpp='$CXXCPP $CPPFLAGS'
23334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23337
23338
23339     cat >conftest.$ac_ext <<_ACEOF
23340 /* confdefs.h.  */
23341 _ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h.  */
23345
23346
23347 int
23348 main ()
23349 {
23350
23351         bool b = true;
23352
23353         return 0;
23354
23355   ;
23356   return 0;
23357 }
23358 _ACEOF
23359 rm -f conftest.$ac_objext
23360 if { (ac_try="$ac_compile"
23361 case "(($ac_try" in
23362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363   *) ac_try_echo=$ac_try;;
23364 esac
23365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23366   (eval "$ac_compile") 2>conftest.er1
23367   ac_status=$?
23368   grep -v '^ *+' conftest.er1 >conftest.err
23369   rm -f conftest.er1
23370   cat conftest.err >&5
23371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); } && {
23373          test -z "$ac_cxx_werror_flag" ||
23374          test ! -s conftest.err
23375        } && test -s conftest.$ac_objext; then
23376
23377         wx_cv_cpp_bool=yes
23378
23379 else
23380   echo "$as_me: failed program was:" >&5
23381 sed 's/^/| /' conftest.$ac_ext >&5
23382
23383
23384         wx_cv_cpp_bool=no
23385
23386
23387 fi
23388
23389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390
23391     ac_ext=c
23392 ac_cpp='$CPP $CPPFLAGS'
23393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23396
23397
23398 fi
23399 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23400 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
23401
23402   if test "$wx_cv_cpp_bool" = "yes"; then
23403     cat >>confdefs.h <<\_ACEOF
23404 #define HAVE_BOOL 1
23405 _ACEOF
23406
23407   fi
23408
23409
23410
23411   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23412 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
23413 if test "${wx_cv_explicit+set}" = set; then
23414   echo $ECHO_N "(cached) $ECHO_C" >&6
23415 else
23416
23417
23418     ac_ext=cpp
23419 ac_cpp='$CXXCPP $CPPFLAGS'
23420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23423
23424
23425             cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h.  */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h.  */
23431
23432         class Foo { public: explicit Foo(int) {} };
23433
23434 int
23435 main ()
23436 {
23437
23438         return 0;
23439
23440   ;
23441   return 0;
23442 }
23443 _ACEOF
23444 rm -f conftest.$ac_objext
23445 if { (ac_try="$ac_compile"
23446 case "(($ac_try" in
23447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448   *) ac_try_echo=$ac_try;;
23449 esac
23450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451   (eval "$ac_compile") 2>conftest.er1
23452   ac_status=$?
23453   grep -v '^ *+' conftest.er1 >conftest.err
23454   rm -f conftest.er1
23455   cat conftest.err >&5
23456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); } && {
23458          test -z "$ac_cxx_werror_flag" ||
23459          test ! -s conftest.err
23460        } && test -s conftest.$ac_objext; then
23461
23462         cat >conftest.$ac_ext <<_ACEOF
23463 /* confdefs.h.  */
23464 _ACEOF
23465 cat confdefs.h >>conftest.$ac_ext
23466 cat >>conftest.$ac_ext <<_ACEOF
23467 /* end confdefs.h.  */
23468
23469                 class Foo { public: explicit Foo(int) {} };
23470                 static void TakeFoo(const Foo& foo) { }
23471
23472 int
23473 main ()
23474 {
23475
23476                 TakeFoo(17);
23477                 return 0;
23478
23479   ;
23480   return 0;
23481 }
23482 _ACEOF
23483 rm -f conftest.$ac_objext
23484 if { (ac_try="$ac_compile"
23485 case "(($ac_try" in
23486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23487   *) ac_try_echo=$ac_try;;
23488 esac
23489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23490   (eval "$ac_compile") 2>conftest.er1
23491   ac_status=$?
23492   grep -v '^ *+' conftest.er1 >conftest.err
23493   rm -f conftest.er1
23494   cat conftest.err >&5
23495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496   (exit $ac_status); } && {
23497          test -z "$ac_cxx_werror_flag" ||
23498          test ! -s conftest.err
23499        } && test -s conftest.$ac_objext; then
23500   wx_cv_explicit=no
23501 else
23502   echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23504
23505         wx_cv_explicit=yes
23506
23507 fi
23508
23509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23510
23511 else
23512   echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23514
23515         wx_cv_explicit=no
23516
23517 fi
23518
23519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23520
23521     ac_ext=c
23522 ac_cpp='$CPP $CPPFLAGS'
23523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23526
23527
23528 fi
23529 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23530 echo "${ECHO_T}$wx_cv_explicit" >&6; }
23531
23532   if test "$wx_cv_explicit" = "yes"; then
23533     cat >>confdefs.h <<\_ACEOF
23534 #define HAVE_EXPLICIT 1
23535 _ACEOF
23536
23537   fi
23538
23539
23540 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23541 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
23542 if test "${ac_cv_cxx_const_cast+set}" = set; then
23543   echo $ECHO_N "(cached) $ECHO_C" >&6
23544 else
23545
23546  ac_ext=cpp
23547 ac_cpp='$CXXCPP $CPPFLAGS'
23548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23551
23552  cat >conftest.$ac_ext <<_ACEOF
23553 /* confdefs.h.  */
23554 _ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h.  */
23558
23559 int
23560 main ()
23561 {
23562 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23563   ;
23564   return 0;
23565 }
23566 _ACEOF
23567 rm -f conftest.$ac_objext
23568 if { (ac_try="$ac_compile"
23569 case "(($ac_try" in
23570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571   *) ac_try_echo=$ac_try;;
23572 esac
23573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23574   (eval "$ac_compile") 2>conftest.er1
23575   ac_status=$?
23576   grep -v '^ *+' conftest.er1 >conftest.err
23577   rm -f conftest.er1
23578   cat conftest.err >&5
23579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580   (exit $ac_status); } && {
23581          test -z "$ac_cxx_werror_flag" ||
23582          test ! -s conftest.err
23583        } && test -s conftest.$ac_objext; then
23584   ac_cv_cxx_const_cast=yes
23585 else
23586   echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23588
23589         ac_cv_cxx_const_cast=no
23590 fi
23591
23592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593  ac_ext=c
23594 ac_cpp='$CPP $CPPFLAGS'
23595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23598
23599
23600 fi
23601 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23602 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
23603 if test "$ac_cv_cxx_const_cast" = yes; then
23604
23605 cat >>confdefs.h <<\_ACEOF
23606 #define HAVE_CONST_CAST
23607 _ACEOF
23608
23609 fi
23610
23611 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23612 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
23613 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23614   echo $ECHO_N "(cached) $ECHO_C" >&6
23615 else
23616
23617  ac_ext=cpp
23618 ac_cpp='$CXXCPP $CPPFLAGS'
23619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23622
23623  cat >conftest.$ac_ext <<_ACEOF
23624 /* confdefs.h.  */
23625 _ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h.  */
23629 #include <typeinfo>
23630 class Base { public : Base () {} virtual void f () = 0;};
23631 class Derived : public Base { public : Derived () {} virtual void f () {} };
23632 class Unrelated { public : Unrelated () {} };
23633 int g (Unrelated&) { return 0; }
23634 int
23635 main ()
23636 {
23637
23638 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23639   ;
23640   return 0;
23641 }
23642 _ACEOF
23643 rm -f conftest.$ac_objext
23644 if { (ac_try="$ac_compile"
23645 case "(($ac_try" in
23646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23647   *) ac_try_echo=$ac_try;;
23648 esac
23649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23650   (eval "$ac_compile") 2>conftest.er1
23651   ac_status=$?
23652   grep -v '^ *+' conftest.er1 >conftest.err
23653   rm -f conftest.er1
23654   cat conftest.err >&5
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); } && {
23657          test -z "$ac_cxx_werror_flag" ||
23658          test ! -s conftest.err
23659        } && test -s conftest.$ac_objext; then
23660   ac_cv_cxx_reinterpret_cast=yes
23661 else
23662   echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23664
23665         ac_cv_cxx_reinterpret_cast=no
23666 fi
23667
23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669  ac_ext=c
23670 ac_cpp='$CPP $CPPFLAGS'
23671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23674
23675
23676 fi
23677 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23678 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
23679 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23680
23681 cat >>confdefs.h <<\_ACEOF
23682 #define HAVE_REINTERPRET_CAST
23683 _ACEOF
23684
23685 fi
23686
23687 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23688 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
23689 if test "${ac_cv_cxx_static_cast+set}" = set; then
23690   echo $ECHO_N "(cached) $ECHO_C" >&6
23691 else
23692
23693  ac_ext=cpp
23694 ac_cpp='$CXXCPP $CPPFLAGS'
23695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23698
23699  cat >conftest.$ac_ext <<_ACEOF
23700 /* confdefs.h.  */
23701 _ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h.  */
23705 #include <typeinfo>
23706 class Base { public : Base () {} virtual void f () = 0; };
23707 class Derived : public Base { public : Derived () {} virtual void f () {} };
23708 int g (Derived&) { return 0; }
23709 int
23710 main ()
23711 {
23712
23713 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23714   ;
23715   return 0;
23716 }
23717 _ACEOF
23718 rm -f conftest.$ac_objext
23719 if { (ac_try="$ac_compile"
23720 case "(($ac_try" in
23721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23722   *) ac_try_echo=$ac_try;;
23723 esac
23724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23725   (eval "$ac_compile") 2>conftest.er1
23726   ac_status=$?
23727   grep -v '^ *+' conftest.er1 >conftest.err
23728   rm -f conftest.er1
23729   cat conftest.err >&5
23730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731   (exit $ac_status); } && {
23732          test -z "$ac_cxx_werror_flag" ||
23733          test ! -s conftest.err
23734        } && test -s conftest.$ac_objext; then
23735   ac_cv_cxx_static_cast=yes
23736 else
23737   echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740         ac_cv_cxx_static_cast=no
23741 fi
23742
23743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744  ac_ext=c
23745 ac_cpp='$CPP $CPPFLAGS'
23746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23749
23750
23751 fi
23752 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23753 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
23754 if test "$ac_cv_cxx_static_cast" = yes; then
23755
23756 cat >>confdefs.h <<\_ACEOF
23757 #define HAVE_STATIC_CAST
23758 _ACEOF
23759
23760 fi
23761
23762
23763 if test "x$SUNCXX" = xyes; then
23764     CXXFLAGS="-features=tmplife $CXXFLAGS"
23765 fi
23766
23767 if test "x$SUNCC" = xyes; then
23768     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
23769 fi
23770
23771 if test "x$SGICC" = "xyes"; then
23772     CFLAGS="-woff 3970 $CFLAGS"
23773 fi
23774 if test "x$SGICXX" = "xyes"; then
23775     CXXFLAGS="-woff 3970 $CXXFLAGS"
23776 fi
23777
23778 if test "x$HPCC" = "xyes"; then
23779                     CFLAGS="+W 2011,2450 $CFLAGS"
23780 fi
23781 if test "x$HPCXX" = "xyes"; then
23782             CXXFLAGS="+W 2340 $CXXFLAGS"
23783 fi
23784
23785 if test "x$COMPAQCXX" = "xyes"; then
23786                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23787 fi
23788
23789 ac_ext=cpp
23790 ac_cpp='$CXXCPP $CPPFLAGS'
23791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23794
23795
23796 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
23797     if test "$wxUSE_UNICODE" = "yes"; then
23798         std_string="std::wstring"
23799         char_type="wchar_t"
23800     else
23801         std_string="std::string"
23802         char_type="char"
23803     fi
23804
23805         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23806 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
23807 if test "${wx_cv_class_stdstring+set}" = set; then
23808   echo $ECHO_N "(cached) $ECHO_C" >&6
23809 else
23810
23811             cat >conftest.$ac_ext <<_ACEOF
23812 /* confdefs.h.  */
23813 _ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h.  */
23817 #include <string>
23818 int
23819 main ()
23820 {
23821 $std_string foo;
23822   ;
23823   return 0;
23824 }
23825 _ACEOF
23826 rm -f conftest.$ac_objext
23827 if { (ac_try="$ac_compile"
23828 case "(($ac_try" in
23829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830   *) ac_try_echo=$ac_try;;
23831 esac
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833   (eval "$ac_compile") 2>conftest.er1
23834   ac_status=$?
23835   grep -v '^ *+' conftest.er1 >conftest.err
23836   rm -f conftest.er1
23837   cat conftest.err >&5
23838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839   (exit $ac_status); } && {
23840          test -z "$ac_cxx_werror_flag" ||
23841          test ! -s conftest.err
23842        } && test -s conftest.$ac_objext; then
23843   wx_cv_class_stdstring=yes
23844 else
23845   echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23847
23848         wx_cv_class_stdstring=no
23849
23850 fi
23851
23852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853
23854
23855 fi
23856 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
23857 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
23858
23859     if test "$wx_cv_class_stdstring" = yes; then
23860         if test "$wxUSE_UNICODE" = "yes"; then
23861             cat >>confdefs.h <<\_ACEOF
23862 #define HAVE_STD_WSTRING 1
23863 _ACEOF
23864
23865         fi
23866                     else
23867         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23868 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
23869 if test "${wx_cv_class_stdbasicstring+set}" = set; then
23870   echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872
23873                 cat >conftest.$ac_ext <<_ACEOF
23874 /* confdefs.h.  */
23875 _ACEOF
23876 cat confdefs.h >>conftest.$ac_ext
23877 cat >>conftest.$ac_ext <<_ACEOF
23878 /* end confdefs.h.  */
23879
23880                     #ifdef HAVE_WCHAR_H
23881                     #  ifdef __CYGWIN__
23882                     #    include <stddef.h>
23883                     #  endif
23884                     #  include <wchar.h>
23885                     #endif
23886                     #ifdef HAVE_STDLIB_H
23887                     #  include <stdlib.h>
23888                     #endif
23889                     #include <stdio.h>
23890                     #include <string>
23891
23892 int
23893 main ()
23894 {
23895 std::basic_string<$char_type> foo;
23896                      const $char_type* dummy = foo.c_str();
23897   ;
23898   return 0;
23899 }
23900 _ACEOF
23901 rm -f conftest.$ac_objext
23902 if { (ac_try="$ac_compile"
23903 case "(($ac_try" in
23904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905   *) ac_try_echo=$ac_try;;
23906 esac
23907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23908   (eval "$ac_compile") 2>conftest.er1
23909   ac_status=$?
23910   grep -v '^ *+' conftest.er1 >conftest.err
23911   rm -f conftest.er1
23912   cat conftest.err >&5
23913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914   (exit $ac_status); } && {
23915          test -z "$ac_cxx_werror_flag" ||
23916          test ! -s conftest.err
23917        } && test -s conftest.$ac_objext; then
23918   wx_cv_class_stdbasicstring=yes
23919 else
23920   echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23922
23923         wx_cv_class_stdbasicstring=no
23924
23925 fi
23926
23927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23928
23929
23930 fi
23931 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
23932 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
23933
23934         if test "$wx_cv_class_stdbasicstring" != yes; then
23935             if test "$wxUSE_STL" = "yes"; then
23936                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23937 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23938    { (exit 1); exit 1; }; }
23939             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23940                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23941 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23942    { (exit 1); exit 1; }; }
23943             else
23944                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23945 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23946                 wxUSE_STD_STRING=no
23947             fi
23948         fi
23949     fi
23950 fi
23951
23952 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23953     { echo "$as_me:$LINENO: checking for std::istream" >&5
23954 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
23955 if test "${ac_cv_type_std__istream+set}" = set; then
23956   echo $ECHO_N "(cached) $ECHO_C" >&6
23957 else
23958   cat >conftest.$ac_ext <<_ACEOF
23959 /* confdefs.h.  */
23960 _ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h.  */
23964 #include <iostream>
23965
23966 typedef std::istream ac__type_new_;
23967 int
23968 main ()
23969 {
23970 if ((ac__type_new_ *) 0)
23971   return 0;
23972 if (sizeof (ac__type_new_))
23973   return 0;
23974   ;
23975   return 0;
23976 }
23977 _ACEOF
23978 rm -f conftest.$ac_objext
23979 if { (ac_try="$ac_compile"
23980 case "(($ac_try" in
23981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982   *) ac_try_echo=$ac_try;;
23983 esac
23984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23985   (eval "$ac_compile") 2>conftest.er1
23986   ac_status=$?
23987   grep -v '^ *+' conftest.er1 >conftest.err
23988   rm -f conftest.er1
23989   cat conftest.err >&5
23990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991   (exit $ac_status); } && {
23992          test -z "$ac_cxx_werror_flag" ||
23993          test ! -s conftest.err
23994        } && test -s conftest.$ac_objext; then
23995   ac_cv_type_std__istream=yes
23996 else
23997   echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
23999
24000         ac_cv_type_std__istream=no
24001 fi
24002
24003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 fi
24005 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24006 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24007 if test $ac_cv_type_std__istream = yes; then
24008
24009 cat >>confdefs.h <<_ACEOF
24010 #define HAVE_STD__ISTREAM 1
24011 _ACEOF
24012
24013
24014 else
24015   wxUSE_STD_IOSTREAM=no
24016 fi
24017 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24018 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24019 if test "${ac_cv_type_std__ostream+set}" = set; then
24020   echo $ECHO_N "(cached) $ECHO_C" >&6
24021 else
24022   cat >conftest.$ac_ext <<_ACEOF
24023 /* confdefs.h.  */
24024 _ACEOF
24025 cat confdefs.h >>conftest.$ac_ext
24026 cat >>conftest.$ac_ext <<_ACEOF
24027 /* end confdefs.h.  */
24028 #include <iostream>
24029
24030 typedef std::ostream ac__type_new_;
24031 int
24032 main ()
24033 {
24034 if ((ac__type_new_ *) 0)
24035   return 0;
24036 if (sizeof (ac__type_new_))
24037   return 0;
24038   ;
24039   return 0;
24040 }
24041 _ACEOF
24042 rm -f conftest.$ac_objext
24043 if { (ac_try="$ac_compile"
24044 case "(($ac_try" in
24045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046   *) ac_try_echo=$ac_try;;
24047 esac
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049   (eval "$ac_compile") 2>conftest.er1
24050   ac_status=$?
24051   grep -v '^ *+' conftest.er1 >conftest.err
24052   rm -f conftest.er1
24053   cat conftest.err >&5
24054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055   (exit $ac_status); } && {
24056          test -z "$ac_cxx_werror_flag" ||
24057          test ! -s conftest.err
24058        } && test -s conftest.$ac_objext; then
24059   ac_cv_type_std__ostream=yes
24060 else
24061   echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24063
24064         ac_cv_type_std__ostream=no
24065 fi
24066
24067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24068 fi
24069 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24070 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24071 if test $ac_cv_type_std__ostream = yes; then
24072
24073 cat >>confdefs.h <<_ACEOF
24074 #define HAVE_STD__OSTREAM 1
24075 _ACEOF
24076
24077
24078 else
24079   wxUSE_STD_IOSTREAM=no
24080 fi
24081
24082
24083     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24084         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
24085             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24086 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24087    { (exit 1); exit 1; }; }
24088         else
24089             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24090 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24091         fi
24092     fi
24093 fi
24094
24095 if test "$wxUSE_STL" = "yes"; then
24096         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24097 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24098 if test "${wx_cv_lib_stl+set}" = set; then
24099   echo $ECHO_N "(cached) $ECHO_C" >&6
24100 else
24101   cat >conftest.$ac_ext <<_ACEOF
24102 /* confdefs.h.  */
24103 _ACEOF
24104 cat confdefs.h >>conftest.$ac_ext
24105 cat >>conftest.$ac_ext <<_ACEOF
24106 /* end confdefs.h.  */
24107 #include <string>
24108             #include <functional>
24109             #include <algorithm>
24110             #include <vector>
24111             #include <list>
24112 int
24113 main ()
24114 {
24115 std::vector<int> moo;
24116              std::list<int> foo;
24117              std::vector<int>::iterator it =
24118                  std::find_if(moo.begin(), moo.end(),
24119                               std::bind2nd(std::less<int>(), 3));
24120   ;
24121   return 0;
24122 }
24123 _ACEOF
24124 rm -f conftest.$ac_objext
24125 if { (ac_try="$ac_compile"
24126 case "(($ac_try" in
24127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24128   *) ac_try_echo=$ac_try;;
24129 esac
24130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24131   (eval "$ac_compile") 2>conftest.er1
24132   ac_status=$?
24133   grep -v '^ *+' conftest.er1 >conftest.err
24134   rm -f conftest.er1
24135   cat conftest.err >&5
24136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137   (exit $ac_status); } && {
24138          test -z "$ac_cxx_werror_flag" ||
24139          test ! -s conftest.err
24140        } && test -s conftest.$ac_objext; then
24141   wx_cv_lib_stl=yes
24142 else
24143   echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.$ac_ext >&5
24145
24146         wx_cv_lib_stl=no
24147
24148 fi
24149
24150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24151
24152 fi
24153 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24154 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24155
24156     if test "$wx_cv_lib_stl" != yes; then
24157          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24158 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24159    { (exit 1); exit 1; }; }
24160     fi
24161
24162         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24163 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24164 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24165   echo $ECHO_N "(cached) $ECHO_C" >&6
24166 else
24167   cat >conftest.$ac_ext <<_ACEOF
24168 /* confdefs.h.  */
24169 _ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h.  */
24173 #include <string>
24174 int
24175 main ()
24176 {
24177 std::string foo, bar;
24178             foo.compare(bar);
24179             foo.compare(1, 1, bar);
24180             foo.compare(1, 1, bar, 1, 1);
24181             foo.compare("");
24182             foo.compare(1, 1, "");
24183             foo.compare(1, 1, "", 2);
24184   ;
24185   return 0;
24186 }
24187 _ACEOF
24188 rm -f conftest.$ac_objext
24189 if { (ac_try="$ac_compile"
24190 case "(($ac_try" in
24191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192   *) ac_try_echo=$ac_try;;
24193 esac
24194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24195   (eval "$ac_compile") 2>conftest.er1
24196   ac_status=$?
24197   grep -v '^ *+' conftest.er1 >conftest.err
24198   rm -f conftest.er1
24199   cat conftest.err >&5
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); } && {
24202          test -z "$ac_cxx_werror_flag" ||
24203          test ! -s conftest.err
24204        } && test -s conftest.$ac_objext; then
24205   wx_cv_func_stdstring_compare=yes
24206 else
24207   echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24209
24210         wx_cv_func_stdstring_compare=no
24211
24212 fi
24213
24214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24215
24216 fi
24217 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24218 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24219
24220     if test "$wx_cv_func_stdstring_compare" = yes; then
24221         cat >>confdefs.h <<\_ACEOF
24222 #define HAVE_STD_STRING_COMPARE 1
24223 _ACEOF
24224
24225     fi
24226
24227         { echo "$as_me:$LINENO: checking for hash_map" >&5
24228 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
24229 if test "${ac_cv_header_hash_map+set}" = set; then
24230   echo $ECHO_N "(cached) $ECHO_C" >&6
24231 else
24232   cat >conftest.$ac_ext <<_ACEOF
24233 /* confdefs.h.  */
24234 _ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h.  */
24238
24239
24240
24241 #include <hash_map>
24242 _ACEOF
24243 rm -f conftest.$ac_objext
24244 if { (ac_try="$ac_compile"
24245 case "(($ac_try" in
24246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24247   *) ac_try_echo=$ac_try;;
24248 esac
24249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24250   (eval "$ac_compile") 2>conftest.er1
24251   ac_status=$?
24252   grep -v '^ *+' conftest.er1 >conftest.err
24253   rm -f conftest.er1
24254   cat conftest.err >&5
24255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256   (exit $ac_status); } && {
24257          test -z "$ac_cxx_werror_flag" ||
24258          test ! -s conftest.err
24259        } && test -s conftest.$ac_objext; then
24260   ac_cv_header_hash_map=yes
24261 else
24262   echo "$as_me: failed program was:" >&5
24263 sed 's/^/| /' conftest.$ac_ext >&5
24264
24265         ac_cv_header_hash_map=no
24266 fi
24267
24268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24269 fi
24270 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24271 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
24272 if test $ac_cv_header_hash_map = yes; then
24273   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
24274 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
24275 if test "${wx_cv_class_stdhashmapset+set}" = set; then
24276   echo $ECHO_N "(cached) $ECHO_C" >&6
24277 else
24278   cat >conftest.$ac_ext <<_ACEOF
24279 /* confdefs.h.  */
24280 _ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h.  */
24284 #include <hash_map>
24285                 #include <hash_set>
24286 int
24287 main ()
24288 {
24289 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24290                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24291   ;
24292   return 0;
24293 }
24294 _ACEOF
24295 rm -f conftest.$ac_objext
24296 if { (ac_try="$ac_compile"
24297 case "(($ac_try" in
24298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24299   *) ac_try_echo=$ac_try;;
24300 esac
24301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24302   (eval "$ac_compile") 2>conftest.er1
24303   ac_status=$?
24304   grep -v '^ *+' conftest.er1 >conftest.err
24305   rm -f conftest.er1
24306   cat conftest.err >&5
24307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308   (exit $ac_status); } && {
24309          test -z "$ac_cxx_werror_flag" ||
24310          test ! -s conftest.err
24311        } && test -s conftest.$ac_objext; then
24312   wx_cv_class_stdhashmapset=yes
24313 else
24314   echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24316
24317         wx_cv_class_stdhashmapset=no
24318 fi
24319
24320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24321
24322
24323 fi
24324 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
24325 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
24326 fi
24327
24328
24329
24330     if test "$wx_cv_class_stdhashmapset" = yes; then
24331         cat >>confdefs.h <<\_ACEOF
24332 #define HAVE_HASH_MAP 1
24333 _ACEOF
24334
24335         cat >>confdefs.h <<\_ACEOF
24336 #define HAVE_STD_HASH_MAP 1
24337 _ACEOF
24338
24339     fi
24340
24341     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24342 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
24343 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24344   echo $ECHO_N "(cached) $ECHO_C" >&6
24345 else
24346   cat >conftest.$ac_ext <<_ACEOF
24347 /* confdefs.h.  */
24348 _ACEOF
24349 cat confdefs.h >>conftest.$ac_ext
24350 cat >>conftest.$ac_ext <<_ACEOF
24351 /* end confdefs.h.  */
24352
24353
24354
24355 #include <ext/hash_map>
24356 _ACEOF
24357 rm -f conftest.$ac_objext
24358 if { (ac_try="$ac_compile"
24359 case "(($ac_try" in
24360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361   *) ac_try_echo=$ac_try;;
24362 esac
24363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364   (eval "$ac_compile") 2>conftest.er1
24365   ac_status=$?
24366   grep -v '^ *+' conftest.er1 >conftest.err
24367   rm -f conftest.er1
24368   cat conftest.err >&5
24369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370   (exit $ac_status); } && {
24371          test -z "$ac_cxx_werror_flag" ||
24372          test ! -s conftest.err
24373        } && test -s conftest.$ac_objext; then
24374   ac_cv_header_ext_hash_map=yes
24375 else
24376   echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24378
24379         ac_cv_header_ext_hash_map=no
24380 fi
24381
24382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24383 fi
24384 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24385 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
24386 if test $ac_cv_header_ext_hash_map = yes; then
24387   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
24388 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
24389 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
24390   echo $ECHO_N "(cached) $ECHO_C" >&6
24391 else
24392   cat >conftest.$ac_ext <<_ACEOF
24393 /* confdefs.h.  */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h.  */
24398 #include <ext/hash_map>
24399                 #include <ext/hash_set>
24400 int
24401 main ()
24402 {
24403 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24404                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24405   ;
24406   return 0;
24407 }
24408 _ACEOF
24409 rm -f conftest.$ac_objext
24410 if { (ac_try="$ac_compile"
24411 case "(($ac_try" in
24412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413   *) ac_try_echo=$ac_try;;
24414 esac
24415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416   (eval "$ac_compile") 2>conftest.er1
24417   ac_status=$?
24418   grep -v '^ *+' conftest.er1 >conftest.err
24419   rm -f conftest.er1
24420   cat conftest.err >&5
24421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422   (exit $ac_status); } && {
24423          test -z "$ac_cxx_werror_flag" ||
24424          test ! -s conftest.err
24425        } && test -s conftest.$ac_objext; then
24426   wx_cv_class_gnuhashmapset=yes
24427 else
24428   echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24430
24431         wx_cv_class_gnuhashmapset=no
24432 fi
24433
24434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24435
24436
24437 fi
24438 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
24439 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
24440 fi
24441
24442
24443
24444     if test "$wx_cv_class_gnuhashmapset" = yes; then
24445          cat >>confdefs.h <<\_ACEOF
24446 #define HAVE_EXT_HASH_MAP 1
24447 _ACEOF
24448
24449          cat >>confdefs.h <<\_ACEOF
24450 #define HAVE_GNU_CXX_HASH_MAP 1
24451 _ACEOF
24452
24453     fi
24454 fi
24455
24456 ac_ext=c
24457 ac_cpp='$CPP $CPPFLAGS'
24458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24461
24462
24463
24464 SEARCH_INCLUDE="\
24465     /usr/local/include        \
24466                               \
24467     /usr/Motif-2.1/include    \
24468     /usr/Motif-1.2/include    \
24469     /usr/include/Motif1.2     \
24470                               \
24471     /usr/dt/include           \
24472     /usr/openwin/include      \
24473                               \
24474     /usr/include/Xm           \
24475                               \
24476     /usr/X11R6/include        \
24477     /usr/X11R6.4/include      \
24478     /usr/X11R5/include        \
24479     /usr/X11R4/include        \
24480                               \
24481     /usr/include/X11R6        \
24482     /usr/include/X11R5        \
24483     /usr/include/X11R4        \
24484                               \
24485     /usr/local/X11R6/include  \
24486     /usr/local/X11R5/include  \
24487     /usr/local/X11R4/include  \
24488                               \
24489     /usr/local/include/X11R6  \
24490     /usr/local/include/X11R5  \
24491     /usr/local/include/X11R4  \
24492                               \
24493     /usr/X11/include          \
24494     /usr/include/X11          \
24495     /usr/local/X11/include    \
24496     /usr/local/include/X11    \
24497                               \
24498     /usr/XFree86/include/X11  \
24499     /usr/pkg/include          \
24500                               \
24501     /usr/openwin/share/include"
24502
24503 { echo "$as_me:$LINENO: checking for libraries directory" >&5
24504 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
24505
24506 case "${host}" in
24507     *-*-irix6* )
24508         if test "${wx_cv_std_libpath+set}" = set; then
24509   echo $ECHO_N "(cached) $ECHO_C" >&6
24510 else
24511
24512                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24513                     for e in a so sl dylib dll.a; do
24514                         libc="$d/libc.$e"
24515                         if test -f $libc; then
24516                             save_LIBS="$LIBS"
24517                             LIBS="$libc"
24518                             cat >conftest.$ac_ext <<_ACEOF
24519 int main() { return 0; }
24520 _ACEOF
24521 rm -f conftest.$ac_objext conftest$ac_exeext
24522 if { (ac_try="$ac_link"
24523 case "(($ac_try" in
24524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525   *) ac_try_echo=$ac_try;;
24526 esac
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528   (eval "$ac_link") 2>conftest.er1
24529   ac_status=$?
24530   grep -v '^ *+' conftest.er1 >conftest.err
24531   rm -f conftest.er1
24532   cat conftest.err >&5
24533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534   (exit $ac_status); } && {
24535          test -z "$ac_c_werror_flag" ||
24536          test ! -s conftest.err
24537        } && test -s conftest$ac_exeext &&
24538        $as_test_x conftest$ac_exeext; then
24539   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24540 else
24541   echo "$as_me: failed program was:" >&5
24542 sed 's/^/| /' conftest.$ac_ext >&5
24543
24544
24545 fi
24546
24547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24548       conftest$ac_exeext conftest.$ac_ext
24549                             LIBS="$save_LIBS"
24550                             if test "x$wx_cv_std_libpath" != "x"; then
24551                                 break 2
24552                             fi
24553                         fi
24554                     done
24555                 done
24556                 if test "x$wx_cv_std_libpath" = "x"; then
24557                     wx_cv_std_libpath="lib"
24558                 fi
24559
24560
24561 fi
24562
24563         ;;
24564
24565     *-*-solaris2* )
24566                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24567             wx_cv_std_libpath="lib/64"
24568         else
24569             wx_cv_std_libpath="lib"
24570         fi
24571         ;;
24572
24573     *-*-linux* )
24574                 if test "$ac_cv_sizeof_void_p" = 8 -a \
24575                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24576             wx_cv_std_libpath="lib64"
24577         else
24578             wx_cv_std_libpath="lib"
24579         fi
24580         ;;
24581
24582     *)
24583         wx_cv_std_libpath="lib";
24584         ;;
24585 esac
24586
24587 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24588 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
24589
24590 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
24591
24592 if test "$build" != "$host" -a "$GCC" = yes; then
24593                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24594         cross_root=`dirname $cross_root`
24595         cross_root=`dirname $cross_root`
24596
24597                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24598         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24599         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
24600
24601                 if test -z "$PKG_CONFIG_PATH"; then
24602             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24603             export PKG_CONFIG_PATH
24604         fi
24605
24606                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
24607
24608 ac_find_includes=
24609 for ac_dir in $SEARCH_INCLUDE /usr/include;
24610   do
24611     if test -f "$ac_dir/X11/Intrinsic.h"; then
24612       ac_find_includes=$ac_dir
24613       break
24614     fi
24615   done
24616
24617             x_includes=$ac_find_includes
24618         fi
24619         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24620
24621   ac_find_libraries=
24622   for ac_dir in $SEARCH_LIB;
24623   do
24624     for ac_extension in a so sl dylib dll.a; do
24625       if test -f "$ac_dir/libXt.$ac_extension"; then
24626         ac_find_libraries=$ac_dir
24627         break 2
24628       fi
24629     done
24630   done
24631
24632             x_libraries=$ac_find_libraries
24633         fi
24634     fi
24635 fi
24636
24637
24638 cat >confcache <<\_ACEOF
24639 # This file is a shell script that caches the results of configure
24640 # tests run on this system so they can be shared between configure
24641 # scripts and configure runs, see configure's option --config-cache.
24642 # It is not useful on other systems.  If it contains results you don't
24643 # want to keep, you may remove or edit it.
24644 #
24645 # config.status only pays attention to the cache file if you give it
24646 # the --recheck option to rerun configure.
24647 #
24648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24650 # following values.
24651
24652 _ACEOF
24653
24654 # The following way of writing the cache mishandles newlines in values,
24655 # but we know of no workaround that is simple, portable, and efficient.
24656 # So, we kill variables containing newlines.
24657 # Ultrix sh set writes to stderr and can't be redirected directly,
24658 # and sets the high bit in the cache file unless we assign to the vars.
24659 (
24660   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24661     eval ac_val=\$$ac_var
24662     case $ac_val in #(
24663     *${as_nl}*)
24664       case $ac_var in #(
24665       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24666 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24667       esac
24668       case $ac_var in #(
24669       _ | IFS | as_nl) ;; #(
24670       *) $as_unset $ac_var ;;
24671       esac ;;
24672     esac
24673   done
24674
24675   (set) 2>&1 |
24676     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24677     *${as_nl}ac_space=\ *)
24678       # `set' does not quote correctly, so add quotes (double-quote
24679       # substitution turns \\\\ into \\, and sed turns \\ into \).
24680       sed -n \
24681         "s/'/'\\\\''/g;
24682           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24683       ;; #(
24684     *)
24685       # `set' quotes correctly as required by POSIX, so do not add quotes.
24686       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24687       ;;
24688     esac |
24689     sort
24690 ) |
24691   sed '
24692      /^ac_cv_env_/b end
24693      t clear
24694      :clear
24695      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24696      t end
24697      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24698      :end' >>confcache
24699 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24700   if test -w "$cache_file"; then
24701     test "x$cache_file" != "x/dev/null" &&
24702       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24703 echo "$as_me: updating cache $cache_file" >&6;}
24704     cat confcache >$cache_file
24705   else
24706     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24707 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24708   fi
24709 fi
24710 rm -f confcache
24711
24712 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24713     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24714 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
24715 if test "${wx_cv_lib_glibc21+set}" = set; then
24716   echo $ECHO_N "(cached) $ECHO_C" >&6
24717 else
24718
24719         cat >conftest.$ac_ext <<_ACEOF
24720 /* confdefs.h.  */
24721 _ACEOF
24722 cat confdefs.h >>conftest.$ac_ext
24723 cat >>conftest.$ac_ext <<_ACEOF
24724 /* end confdefs.h.  */
24725 #include <features.h>
24726 int
24727 main ()
24728 {
24729
24730                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
24731                 not glibc 2.1
24732                 #endif
24733
24734   ;
24735   return 0;
24736 }
24737 _ACEOF
24738 rm -f conftest.$ac_objext
24739 if { (ac_try="$ac_compile"
24740 case "(($ac_try" in
24741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742   *) ac_try_echo=$ac_try;;
24743 esac
24744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24745   (eval "$ac_compile") 2>conftest.er1
24746   ac_status=$?
24747   grep -v '^ *+' conftest.er1 >conftest.err
24748   rm -f conftest.er1
24749   cat conftest.err >&5
24750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751   (exit $ac_status); } && {
24752          test -z "$ac_c_werror_flag" ||
24753          test ! -s conftest.err
24754        } && test -s conftest.$ac_objext; then
24755
24756                 wx_cv_lib_glibc21=yes
24757
24758 else
24759   echo "$as_me: failed program was:" >&5
24760 sed 's/^/| /' conftest.$ac_ext >&5
24761
24762
24763                 wx_cv_lib_glibc21=no
24764
24765
24766 fi
24767
24768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24769
24770 fi
24771 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24772 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
24773     if test "$wx_cv_lib_glibc21" = "yes"; then
24774         cat >>confdefs.h <<\_ACEOF
24775 #define wxHAVE_GLIBC2 1
24776 _ACEOF
24777
24778     fi
24779 fi
24780
24781 if test "x$wx_cv_lib_glibc21" = "xyes"; then
24782     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24783         cat >>confdefs.h <<\_ACEOF
24784 #define _GNU_SOURCE 1
24785 _ACEOF
24786
24787     fi
24788 fi
24789
24790 have_cos=0
24791 have_floor=0
24792
24793 for ac_func in cos
24794 do
24795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24799   echo $ECHO_N "(cached) $ECHO_C" >&6
24800 else
24801   cat >conftest.$ac_ext <<_ACEOF
24802 /* confdefs.h.  */
24803 _ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h.  */
24807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24809 #define $ac_func innocuous_$ac_func
24810
24811 /* System header to define __stub macros and hopefully few prototypes,
24812     which can conflict with char $ac_func (); below.
24813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24814     <limits.h> exists even on freestanding compilers.  */
24815
24816 #ifdef __STDC__
24817 # include <limits.h>
24818 #else
24819 # include <assert.h>
24820 #endif
24821
24822 #undef $ac_func
24823
24824 /* Override any GCC internal prototype to avoid an error.
24825    Use char because int might match the return type of a GCC
24826    builtin and then its argument prototype would still apply.  */
24827 #ifdef __cplusplus
24828 extern "C"
24829 #endif
24830 char $ac_func ();
24831 /* The GNU C library defines this for functions which it implements
24832     to always fail with ENOSYS.  Some functions are actually named
24833     something starting with __ and the normal name is an alias.  */
24834 #if defined __stub_$ac_func || defined __stub___$ac_func
24835 choke me
24836 #endif
24837
24838 int
24839 main ()
24840 {
24841 return $ac_func ();
24842   ;
24843   return 0;
24844 }
24845 _ACEOF
24846 rm -f conftest.$ac_objext conftest$ac_exeext
24847 if { (ac_try="$ac_link"
24848 case "(($ac_try" in
24849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850   *) ac_try_echo=$ac_try;;
24851 esac
24852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853   (eval "$ac_link") 2>conftest.er1
24854   ac_status=$?
24855   grep -v '^ *+' conftest.er1 >conftest.err
24856   rm -f conftest.er1
24857   cat conftest.err >&5
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); } && {
24860          test -z "$ac_c_werror_flag" ||
24861          test ! -s conftest.err
24862        } && test -s conftest$ac_exeext &&
24863        $as_test_x conftest$ac_exeext; then
24864   eval "$as_ac_var=yes"
24865 else
24866   echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24868
24869         eval "$as_ac_var=no"
24870 fi
24871
24872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24873       conftest$ac_exeext conftest.$ac_ext
24874 fi
24875 ac_res=`eval echo '${'$as_ac_var'}'`
24876                { echo "$as_me:$LINENO: result: $ac_res" >&5
24877 echo "${ECHO_T}$ac_res" >&6; }
24878 if test `eval echo '${'$as_ac_var'}'` = yes; then
24879   cat >>confdefs.h <<_ACEOF
24880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24881 _ACEOF
24882  have_cos=1
24883 fi
24884 done
24885
24886
24887 for ac_func in floor
24888 do
24889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24890 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24892 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24893   echo $ECHO_N "(cached) $ECHO_C" >&6
24894 else
24895   cat >conftest.$ac_ext <<_ACEOF
24896 /* confdefs.h.  */
24897 _ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h.  */
24901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24903 #define $ac_func innocuous_$ac_func
24904
24905 /* System header to define __stub macros and hopefully few prototypes,
24906     which can conflict with char $ac_func (); below.
24907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24908     <limits.h> exists even on freestanding compilers.  */
24909
24910 #ifdef __STDC__
24911 # include <limits.h>
24912 #else
24913 # include <assert.h>
24914 #endif
24915
24916 #undef $ac_func
24917
24918 /* Override any GCC internal prototype to avoid an error.
24919    Use char because int might match the return type of a GCC
24920    builtin and then its argument prototype would still apply.  */
24921 #ifdef __cplusplus
24922 extern "C"
24923 #endif
24924 char $ac_func ();
24925 /* The GNU C library defines this for functions which it implements
24926     to always fail with ENOSYS.  Some functions are actually named
24927     something starting with __ and the normal name is an alias.  */
24928 #if defined __stub_$ac_func || defined __stub___$ac_func
24929 choke me
24930 #endif
24931
24932 int
24933 main ()
24934 {
24935 return $ac_func ();
24936   ;
24937   return 0;
24938 }
24939 _ACEOF
24940 rm -f conftest.$ac_objext conftest$ac_exeext
24941 if { (ac_try="$ac_link"
24942 case "(($ac_try" in
24943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24944   *) ac_try_echo=$ac_try;;
24945 esac
24946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24947   (eval "$ac_link") 2>conftest.er1
24948   ac_status=$?
24949   grep -v '^ *+' conftest.er1 >conftest.err
24950   rm -f conftest.er1
24951   cat conftest.err >&5
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); } && {
24954          test -z "$ac_c_werror_flag" ||
24955          test ! -s conftest.err
24956        } && test -s conftest$ac_exeext &&
24957        $as_test_x conftest$ac_exeext; then
24958   eval "$as_ac_var=yes"
24959 else
24960   echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24962
24963         eval "$as_ac_var=no"
24964 fi
24965
24966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24967       conftest$ac_exeext conftest.$ac_ext
24968 fi
24969 ac_res=`eval echo '${'$as_ac_var'}'`
24970                { echo "$as_me:$LINENO: result: $ac_res" >&5
24971 echo "${ECHO_T}$ac_res" >&6; }
24972 if test `eval echo '${'$as_ac_var'}'` = yes; then
24973   cat >>confdefs.h <<_ACEOF
24974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24975 _ACEOF
24976  have_floor=1
24977 fi
24978 done
24979
24980 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24981 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
24982 if test "$have_cos" = 1 -a "$have_floor" = 1; then
24983     { echo "$as_me:$LINENO: result: yes" >&5
24984 echo "${ECHO_T}yes" >&6; }
24985 else
24986     { echo "$as_me:$LINENO: result: no" >&5
24987 echo "${ECHO_T}no" >&6; }
24988     LIBS="$LIBS -lm"
24989     # use different functions to avoid configure caching
24990     have_sin=0
24991     have_ceil=0
24992
24993 for ac_func in sin
24994 do
24995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24999   echo $ECHO_N "(cached) $ECHO_C" >&6
25000 else
25001   cat >conftest.$ac_ext <<_ACEOF
25002 /* confdefs.h.  */
25003 _ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h.  */
25007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25009 #define $ac_func innocuous_$ac_func
25010
25011 /* System header to define __stub macros and hopefully few prototypes,
25012     which can conflict with char $ac_func (); below.
25013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25014     <limits.h> exists even on freestanding compilers.  */
25015
25016 #ifdef __STDC__
25017 # include <limits.h>
25018 #else
25019 # include <assert.h>
25020 #endif
25021
25022 #undef $ac_func
25023
25024 /* Override any GCC internal prototype to avoid an error.
25025    Use char because int might match the return type of a GCC
25026    builtin and then its argument prototype would still apply.  */
25027 #ifdef __cplusplus
25028 extern "C"
25029 #endif
25030 char $ac_func ();
25031 /* The GNU C library defines this for functions which it implements
25032     to always fail with ENOSYS.  Some functions are actually named
25033     something starting with __ and the normal name is an alias.  */
25034 #if defined __stub_$ac_func || defined __stub___$ac_func
25035 choke me
25036 #endif
25037
25038 int
25039 main ()
25040 {
25041 return $ac_func ();
25042   ;
25043   return 0;
25044 }
25045 _ACEOF
25046 rm -f conftest.$ac_objext conftest$ac_exeext
25047 if { (ac_try="$ac_link"
25048 case "(($ac_try" in
25049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25050   *) ac_try_echo=$ac_try;;
25051 esac
25052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25053   (eval "$ac_link") 2>conftest.er1
25054   ac_status=$?
25055   grep -v '^ *+' conftest.er1 >conftest.err
25056   rm -f conftest.er1
25057   cat conftest.err >&5
25058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059   (exit $ac_status); } && {
25060          test -z "$ac_c_werror_flag" ||
25061          test ! -s conftest.err
25062        } && test -s conftest$ac_exeext &&
25063        $as_test_x conftest$ac_exeext; then
25064   eval "$as_ac_var=yes"
25065 else
25066   echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25068
25069         eval "$as_ac_var=no"
25070 fi
25071
25072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25073       conftest$ac_exeext conftest.$ac_ext
25074 fi
25075 ac_res=`eval echo '${'$as_ac_var'}'`
25076                { echo "$as_me:$LINENO: result: $ac_res" >&5
25077 echo "${ECHO_T}$ac_res" >&6; }
25078 if test `eval echo '${'$as_ac_var'}'` = yes; then
25079   cat >>confdefs.h <<_ACEOF
25080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25081 _ACEOF
25082  have_sin=1
25083 fi
25084 done
25085
25086
25087 for ac_func in ceil
25088 do
25089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25093   echo $ECHO_N "(cached) $ECHO_C" >&6
25094 else
25095   cat >conftest.$ac_ext <<_ACEOF
25096 /* confdefs.h.  */
25097 _ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h.  */
25101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25103 #define $ac_func innocuous_$ac_func
25104
25105 /* System header to define __stub macros and hopefully few prototypes,
25106     which can conflict with char $ac_func (); below.
25107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25108     <limits.h> exists even on freestanding compilers.  */
25109
25110 #ifdef __STDC__
25111 # include <limits.h>
25112 #else
25113 # include <assert.h>
25114 #endif
25115
25116 #undef $ac_func
25117
25118 /* Override any GCC internal prototype to avoid an error.
25119    Use char because int might match the return type of a GCC
25120    builtin and then its argument prototype would still apply.  */
25121 #ifdef __cplusplus
25122 extern "C"
25123 #endif
25124 char $ac_func ();
25125 /* The GNU C library defines this for functions which it implements
25126     to always fail with ENOSYS.  Some functions are actually named
25127     something starting with __ and the normal name is an alias.  */
25128 #if defined __stub_$ac_func || defined __stub___$ac_func
25129 choke me
25130 #endif
25131
25132 int
25133 main ()
25134 {
25135 return $ac_func ();
25136   ;
25137   return 0;
25138 }
25139 _ACEOF
25140 rm -f conftest.$ac_objext conftest$ac_exeext
25141 if { (ac_try="$ac_link"
25142 case "(($ac_try" in
25143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25144   *) ac_try_echo=$ac_try;;
25145 esac
25146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25147   (eval "$ac_link") 2>conftest.er1
25148   ac_status=$?
25149   grep -v '^ *+' conftest.er1 >conftest.err
25150   rm -f conftest.er1
25151   cat conftest.err >&5
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); } && {
25154          test -z "$ac_c_werror_flag" ||
25155          test ! -s conftest.err
25156        } && test -s conftest$ac_exeext &&
25157        $as_test_x conftest$ac_exeext; then
25158   eval "$as_ac_var=yes"
25159 else
25160   echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25162
25163         eval "$as_ac_var=no"
25164 fi
25165
25166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25167       conftest$ac_exeext conftest.$ac_ext
25168 fi
25169 ac_res=`eval echo '${'$as_ac_var'}'`
25170                { echo "$as_me:$LINENO: result: $ac_res" >&5
25171 echo "${ECHO_T}$ac_res" >&6; }
25172 if test `eval echo '${'$as_ac_var'}'` = yes; then
25173   cat >>confdefs.h <<_ACEOF
25174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25175 _ACEOF
25176  have_ceil=1
25177 fi
25178 done
25179
25180     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25181 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
25182     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25183         { echo "$as_me:$LINENO: result: yes" >&5
25184 echo "${ECHO_T}yes" >&6; }
25185     else
25186         { echo "$as_me:$LINENO: result: no" >&5
25187 echo "${ECHO_T}no" >&6; }
25188         # not sure we should warn the user, crash, etc.
25189     fi
25190 fi
25191
25192 ac_ext=cpp
25193 ac_cpp='$CXXCPP $CPPFLAGS'
25194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25197
25198 if test "wxUSE_UNICODE" = "yes"; then
25199
25200   for wx_func in wcstoull
25201   do
25202     { echo "$as_me:$LINENO: checking for $wx_func" >&5
25203 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
25204 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
25205   echo $ECHO_N "(cached) $ECHO_C" >&6
25206 else
25207
25208         cat >conftest.$ac_ext <<_ACEOF
25209
25210             /* confdefs.h.  */
25211 _ACEOF
25212 cat confdefs.h >>conftest.$ac_ext
25213 cat >>conftest.$ac_ext <<_ACEOF
25214 /* end confdefs.h.  */
25215
25216
25217                 $ac_includes_default
25218
25219 int
25220 main ()
25221 {
25222
25223                 #ifndef $wx_func
25224                   &$wx_func;
25225                 #endif
25226
25227
25228   ;
25229   return 0;
25230 }
25231
25232 _ACEOF
25233 rm -f conftest.$ac_objext conftest$ac_exeext
25234 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25241   ac_status=$?
25242   grep -v '^ *+' conftest.er1 >conftest.err
25243   rm -f conftest.er1
25244   cat conftest.err >&5
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); } && {
25247          test -z "$ac_cxx_werror_flag" ||
25248          test ! -s conftest.err
25249        } && test -s conftest$ac_exeext &&
25250        $as_test_x conftest$ac_exeext; then
25251   eval wx_cv_func_$wx_func=yes
25252 else
25253   echo "$as_me: failed program was:" >&5
25254 sed 's/^/| /' conftest.$ac_ext >&5
25255
25256         eval wx_cv_func_$wx_func=no
25257 fi
25258
25259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25260       conftest$ac_exeext conftest.$ac_ext
25261
25262 fi
25263 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
25264                { echo "$as_me:$LINENO: result: $ac_res" >&5
25265 echo "${ECHO_T}$ac_res" >&6; }
25266
25267     if eval test \$wx_cv_func_$wx_func = yes
25268     then
25269       cat >>confdefs.h <<_ACEOF
25270 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
25271 _ACEOF
25272
25273
25274     else
25275       :
25276
25277     fi
25278   done
25279
25280 else
25281
25282   for wx_func in strtoull
25283   do
25284     { echo "$as_me:$LINENO: checking for $wx_func" >&5
25285 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
25286 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
25287   echo $ECHO_N "(cached) $ECHO_C" >&6
25288 else
25289
25290         cat >conftest.$ac_ext <<_ACEOF
25291
25292             /* confdefs.h.  */
25293 _ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h.  */
25297
25298
25299                 $ac_includes_default
25300
25301 int
25302 main ()
25303 {
25304
25305                 #ifndef $wx_func
25306                   &$wx_func;
25307                 #endif
25308
25309
25310   ;
25311   return 0;
25312 }
25313
25314 _ACEOF
25315 rm -f conftest.$ac_objext conftest$ac_exeext
25316 if { (ac_try="$ac_link"
25317 case "(($ac_try" in
25318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319   *) ac_try_echo=$ac_try;;
25320 esac
25321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25322   (eval "$ac_link") 2>conftest.er1
25323   ac_status=$?
25324   grep -v '^ *+' conftest.er1 >conftest.err
25325   rm -f conftest.er1
25326   cat conftest.err >&5
25327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328   (exit $ac_status); } && {
25329          test -z "$ac_cxx_werror_flag" ||
25330          test ! -s conftest.err
25331        } && test -s conftest$ac_exeext &&
25332        $as_test_x conftest$ac_exeext; then
25333   eval wx_cv_func_$wx_func=yes
25334 else
25335   echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.$ac_ext >&5
25337
25338         eval wx_cv_func_$wx_func=no
25339 fi
25340
25341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25342       conftest$ac_exeext conftest.$ac_ext
25343
25344 fi
25345 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
25346                { echo "$as_me:$LINENO: result: $ac_res" >&5
25347 echo "${ECHO_T}$ac_res" >&6; }
25348
25349     if eval test \$wx_cv_func_$wx_func = yes
25350     then
25351       cat >>confdefs.h <<_ACEOF
25352 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
25353 _ACEOF
25354
25355
25356     else
25357       :
25358
25359     fi
25360   done
25361
25362 fi
25363 ac_ext=c
25364 ac_cpp='$CPP $CPPFLAGS'
25365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25368
25369
25370
25371
25372 if test "$wxUSE_REGEX" != "no"; then
25373     cat >>confdefs.h <<\_ACEOF
25374 #define wxUSE_REGEX 1
25375 _ACEOF
25376
25377
25378     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25379         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25380 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25381         wxUSE_REGEX=builtin
25382     fi
25383
25384     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25385                         { echo "$as_me:$LINENO: checking for regex.h" >&5
25386 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
25387 if test "${ac_cv_header_regex_h+set}" = set; then
25388   echo $ECHO_N "(cached) $ECHO_C" >&6
25389 else
25390   cat >conftest.$ac_ext <<_ACEOF
25391 /* confdefs.h.  */
25392 _ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h.  */
25396
25397
25398 #include <regex.h>
25399 _ACEOF
25400 rm -f conftest.$ac_objext
25401 if { (ac_try="$ac_compile"
25402 case "(($ac_try" in
25403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404   *) ac_try_echo=$ac_try;;
25405 esac
25406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25407   (eval "$ac_compile") 2>conftest.er1
25408   ac_status=$?
25409   grep -v '^ *+' conftest.er1 >conftest.err
25410   rm -f conftest.er1
25411   cat conftest.err >&5
25412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); } && {
25414          test -z "$ac_c_werror_flag" ||
25415          test ! -s conftest.err
25416        } && test -s conftest.$ac_objext; then
25417   ac_cv_header_regex_h=yes
25418 else
25419   echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25421
25422         ac_cv_header_regex_h=no
25423 fi
25424
25425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25426 fi
25427 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25428 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
25429 if test $ac_cv_header_regex_h = yes; then
25430
25431
25432 for ac_func in regcomp re_search
25433 do
25434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25438   echo $ECHO_N "(cached) $ECHO_C" >&6
25439 else
25440   cat >conftest.$ac_ext <<_ACEOF
25441 /* confdefs.h.  */
25442 _ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h.  */
25446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25448 #define $ac_func innocuous_$ac_func
25449
25450 /* System header to define __stub macros and hopefully few prototypes,
25451     which can conflict with char $ac_func (); below.
25452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25453     <limits.h> exists even on freestanding compilers.  */
25454
25455 #ifdef __STDC__
25456 # include <limits.h>
25457 #else
25458 # include <assert.h>
25459 #endif
25460
25461 #undef $ac_func
25462
25463 /* Override any GCC internal prototype to avoid an error.
25464    Use char because int might match the return type of a GCC
25465    builtin and then its argument prototype would still apply.  */
25466 #ifdef __cplusplus
25467 extern "C"
25468 #endif
25469 char $ac_func ();
25470 /* The GNU C library defines this for functions which it implements
25471     to always fail with ENOSYS.  Some functions are actually named
25472     something starting with __ and the normal name is an alias.  */
25473 #if defined __stub_$ac_func || defined __stub___$ac_func
25474 choke me
25475 #endif
25476
25477 int
25478 main ()
25479 {
25480 return $ac_func ();
25481   ;
25482   return 0;
25483 }
25484 _ACEOF
25485 rm -f conftest.$ac_objext conftest$ac_exeext
25486 if { (ac_try="$ac_link"
25487 case "(($ac_try" in
25488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489   *) ac_try_echo=$ac_try;;
25490 esac
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492   (eval "$ac_link") 2>conftest.er1
25493   ac_status=$?
25494   grep -v '^ *+' conftest.er1 >conftest.err
25495   rm -f conftest.er1
25496   cat conftest.err >&5
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); } && {
25499          test -z "$ac_c_werror_flag" ||
25500          test ! -s conftest.err
25501        } && test -s conftest$ac_exeext &&
25502        $as_test_x conftest$ac_exeext; then
25503   eval "$as_ac_var=yes"
25504 else
25505   echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25507
25508         eval "$as_ac_var=no"
25509 fi
25510
25511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25512       conftest$ac_exeext conftest.$ac_ext
25513 fi
25514 ac_res=`eval echo '${'$as_ac_var'}'`
25515                { echo "$as_me:$LINENO: result: $ac_res" >&5
25516 echo "${ECHO_T}$ac_res" >&6; }
25517 if test `eval echo '${'$as_ac_var'}'` = yes; then
25518   cat >>confdefs.h <<_ACEOF
25519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25520 _ACEOF
25521
25522 fi
25523 done
25524
25525 fi
25526
25527
25528
25529         if test "x$ac_cv_func_regcomp" != "xyes"; then
25530             if test "$wxUSE_REGEX" = "sys" ; then
25531                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25532 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25533    { (exit 1); exit 1; }; }
25534             else
25535                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25536 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25537                 wxUSE_REGEX=builtin
25538             fi
25539         else
25540                         wxUSE_REGEX=sys
25541                         cat >>confdefs.h <<\_ACEOF
25542 #define WX_NO_REGEX_ADVANCED 1
25543 _ACEOF
25544
25545         fi
25546     fi
25547 fi
25548
25549
25550 ZLIB_LINK=
25551 if test "$wxUSE_ZLIB" != "no" ; then
25552     cat >>confdefs.h <<\_ACEOF
25553 #define wxUSE_ZLIB 1
25554 _ACEOF
25555
25556
25557     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25558                                                 if test "$USE_DARWIN" = 1; then
25559             system_zlib_h_ok="yes"
25560         else
25561                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25562 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
25563 if test "${ac_cv_header_zlib_h+set}" = set; then
25564   echo $ECHO_N "(cached) $ECHO_C" >&6
25565 else
25566   if test "$cross_compiling" = yes; then
25567                       unset ac_cv_header_zlib_h
25568
25569 else
25570   cat >conftest.$ac_ext <<_ACEOF
25571 /* confdefs.h.  */
25572 _ACEOF
25573 cat confdefs.h >>conftest.$ac_ext
25574 cat >>conftest.$ac_ext <<_ACEOF
25575 /* end confdefs.h.  */
25576
25577                         #include <zlib.h>
25578                         #include <stdio.h>
25579
25580                         int main()
25581                         {
25582                             FILE *f=fopen("conftestval", "w");
25583                             if (!f) exit(1);
25584                             fprintf(f, "%s",
25585                                     ZLIB_VERSION[0] == '1' &&
25586                                     (ZLIB_VERSION[2] > '1' ||
25587                                     (ZLIB_VERSION[2] == '1' &&
25588                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25589                             exit(0);
25590                         }
25591
25592 _ACEOF
25593 rm -f conftest$ac_exeext
25594 if { (ac_try="$ac_link"
25595 case "(($ac_try" in
25596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597   *) ac_try_echo=$ac_try;;
25598 esac
25599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25600   (eval "$ac_link") 2>&5
25601   ac_status=$?
25602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25604   { (case "(($ac_try" in
25605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25606   *) ac_try_echo=$ac_try;;
25607 esac
25608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25609   (eval "$ac_try") 2>&5
25610   ac_status=$?
25611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); }; }; then
25613   ac_cv_header_zlib_h=`cat conftestval`
25614 else
25615   echo "$as_me: program exited with status $ac_status" >&5
25616 echo "$as_me: failed program was:" >&5
25617 sed 's/^/| /' conftest.$ac_ext >&5
25618
25619 ( exit $ac_status )
25620 ac_cv_header_zlib_h=no
25621 fi
25622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25623 fi
25624
25625
25626
25627 fi
25628 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25629 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
25630                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
25631 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
25632 if test "${ac_cv_header_zlib_h+set}" = set; then
25633   echo $ECHO_N "(cached) $ECHO_C" >&6
25634 else
25635   cat >conftest.$ac_ext <<_ACEOF
25636 /* confdefs.h.  */
25637 _ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h.  */
25641
25642
25643 #include <zlib.h>
25644 _ACEOF
25645 rm -f conftest.$ac_objext
25646 if { (ac_try="$ac_compile"
25647 case "(($ac_try" in
25648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25649   *) ac_try_echo=$ac_try;;
25650 esac
25651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25652   (eval "$ac_compile") 2>conftest.er1
25653   ac_status=$?
25654   grep -v '^ *+' conftest.er1 >conftest.err
25655   rm -f conftest.er1
25656   cat conftest.err >&5
25657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658   (exit $ac_status); } && {
25659          test -z "$ac_c_werror_flag" ||
25660          test ! -s conftest.err
25661        } && test -s conftest.$ac_objext; then
25662   ac_cv_header_zlib_h=yes
25663 else
25664   echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25666
25667         ac_cv_header_zlib_h=no
25668 fi
25669
25670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25671 fi
25672 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25673 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
25674
25675
25676
25677             system_zlib_h_ok=$ac_cv_header_zlib_h
25678         fi
25679
25680         if test "$system_zlib_h_ok" = "yes"; then
25681             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25682 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
25683 if test "${ac_cv_lib_z_deflate+set}" = set; then
25684   echo $ECHO_N "(cached) $ECHO_C" >&6
25685 else
25686   ac_check_lib_save_LIBS=$LIBS
25687 LIBS="-lz  $LIBS"
25688 cat >conftest.$ac_ext <<_ACEOF
25689 /* confdefs.h.  */
25690 _ACEOF
25691 cat confdefs.h >>conftest.$ac_ext
25692 cat >>conftest.$ac_ext <<_ACEOF
25693 /* end confdefs.h.  */
25694
25695 /* Override any GCC internal prototype to avoid an error.
25696    Use char because int might match the return type of a GCC
25697    builtin and then its argument prototype would still apply.  */
25698 #ifdef __cplusplus
25699 extern "C"
25700 #endif
25701 char deflate ();
25702 int
25703 main ()
25704 {
25705 return deflate ();
25706   ;
25707   return 0;
25708 }
25709 _ACEOF
25710 rm -f conftest.$ac_objext conftest$ac_exeext
25711 if { (ac_try="$ac_link"
25712 case "(($ac_try" in
25713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25714   *) ac_try_echo=$ac_try;;
25715 esac
25716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25717   (eval "$ac_link") 2>conftest.er1
25718   ac_status=$?
25719   grep -v '^ *+' conftest.er1 >conftest.err
25720   rm -f conftest.er1
25721   cat conftest.err >&5
25722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723   (exit $ac_status); } && {
25724          test -z "$ac_c_werror_flag" ||
25725          test ! -s conftest.err
25726        } && test -s conftest$ac_exeext &&
25727        $as_test_x conftest$ac_exeext; then
25728   ac_cv_lib_z_deflate=yes
25729 else
25730   echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25732
25733         ac_cv_lib_z_deflate=no
25734 fi
25735
25736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25737       conftest$ac_exeext conftest.$ac_ext
25738 LIBS=$ac_check_lib_save_LIBS
25739 fi
25740 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25741 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
25742 if test $ac_cv_lib_z_deflate = yes; then
25743   ZLIB_LINK=" -lz"
25744 fi
25745
25746         fi
25747
25748         if test "x$ZLIB_LINK" = "x" ; then
25749             if test "$wxUSE_ZLIB" = "sys" ; then
25750                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25751 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25752    { (exit 1); exit 1; }; }
25753             else
25754                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25755 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25756                 wxUSE_ZLIB=builtin
25757             fi
25758         else
25759                         wxUSE_ZLIB=sys
25760         fi
25761     fi
25762 fi
25763
25764
25765 PNG_LINK=
25766 if test "$wxUSE_LIBPNG" != "no" ; then
25767     cat >>confdefs.h <<\_ACEOF
25768 #define wxUSE_LIBPNG 1
25769 _ACEOF
25770
25771
25772     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25773         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25774 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25775         wxUSE_LIBPNG=sys
25776     fi
25777
25778                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25779         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25780 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25781         wxUSE_LIBPNG=builtin
25782     fi
25783
25784     if test "$wxUSE_MGL" != 1 ; then
25785                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25786                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25787 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
25788 if test "${ac_cv_header_png_h+set}" = set; then
25789   echo $ECHO_N "(cached) $ECHO_C" >&6
25790 else
25791   if test "$cross_compiling" = yes; then
25792                       unset ac_cv_header_png_h
25793
25794 else
25795   cat >conftest.$ac_ext <<_ACEOF
25796 /* confdefs.h.  */
25797 _ACEOF
25798 cat confdefs.h >>conftest.$ac_ext
25799 cat >>conftest.$ac_ext <<_ACEOF
25800 /* end confdefs.h.  */
25801
25802                         #include <png.h>
25803                         #include <stdio.h>
25804
25805                         int main()
25806                         {
25807                             FILE *f=fopen("conftestval", "w");
25808                             if (!f) exit(1);
25809                             fprintf(f, "%s",
25810                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
25811                             exit(0);
25812                         }
25813
25814 _ACEOF
25815 rm -f conftest$ac_exeext
25816 if { (ac_try="$ac_link"
25817 case "(($ac_try" in
25818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819   *) ac_try_echo=$ac_try;;
25820 esac
25821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822   (eval "$ac_link") 2>&5
25823   ac_status=$?
25824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25826   { (case "(($ac_try" in
25827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828   *) ac_try_echo=$ac_try;;
25829 esac
25830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25831   (eval "$ac_try") 2>&5
25832   ac_status=$?
25833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); }; }; then
25835   ac_cv_header_png_h=`cat conftestval`
25836 else
25837   echo "$as_me: program exited with status $ac_status" >&5
25838 echo "$as_me: failed program was:" >&5
25839 sed 's/^/| /' conftest.$ac_ext >&5
25840
25841 ( exit $ac_status )
25842 ac_cv_header_png_h=no
25843 fi
25844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25845 fi
25846
25847
25848
25849 fi
25850 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25851 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
25852             { echo "$as_me:$LINENO: checking for png.h" >&5
25853 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
25854 if test "${ac_cv_header_png_h+set}" = set; then
25855   echo $ECHO_N "(cached) $ECHO_C" >&6
25856 else
25857   cat >conftest.$ac_ext <<_ACEOF
25858 /* confdefs.h.  */
25859 _ACEOF
25860 cat confdefs.h >>conftest.$ac_ext
25861 cat >>conftest.$ac_ext <<_ACEOF
25862 /* end confdefs.h.  */
25863
25864
25865 #include <png.h>
25866 _ACEOF
25867 rm -f conftest.$ac_objext
25868 if { (ac_try="$ac_compile"
25869 case "(($ac_try" in
25870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25871   *) ac_try_echo=$ac_try;;
25872 esac
25873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25874   (eval "$ac_compile") 2>conftest.er1
25875   ac_status=$?
25876   grep -v '^ *+' conftest.er1 >conftest.err
25877   rm -f conftest.er1
25878   cat conftest.err >&5
25879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880   (exit $ac_status); } && {
25881          test -z "$ac_c_werror_flag" ||
25882          test ! -s conftest.err
25883        } && test -s conftest.$ac_objext; then
25884   ac_cv_header_png_h=yes
25885 else
25886   echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25888
25889         ac_cv_header_png_h=no
25890 fi
25891
25892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25893 fi
25894 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25895 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
25896
25897
25898
25899             if test "$ac_cv_header_png_h" = "yes"; then
25900                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25901 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
25902 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25903   echo $ECHO_N "(cached) $ECHO_C" >&6
25904 else
25905   ac_check_lib_save_LIBS=$LIBS
25906 LIBS="-lpng -lz -lm $LIBS"
25907 cat >conftest.$ac_ext <<_ACEOF
25908 /* confdefs.h.  */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h.  */
25913
25914 /* Override any GCC internal prototype to avoid an error.
25915    Use char because int might match the return type of a GCC
25916    builtin and then its argument prototype would still apply.  */
25917 #ifdef __cplusplus
25918 extern "C"
25919 #endif
25920 char png_check_sig ();
25921 int
25922 main ()
25923 {
25924 return png_check_sig ();
25925   ;
25926   return 0;
25927 }
25928 _ACEOF
25929 rm -f conftest.$ac_objext conftest$ac_exeext
25930 if { (ac_try="$ac_link"
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_link") 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          test -z "$ac_c_werror_flag" ||
25944          test ! -s conftest.err
25945        } && test -s conftest$ac_exeext &&
25946        $as_test_x conftest$ac_exeext; then
25947   ac_cv_lib_png_png_check_sig=yes
25948 else
25949   echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.$ac_ext >&5
25951
25952         ac_cv_lib_png_png_check_sig=no
25953 fi
25954
25955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25956       conftest$ac_exeext conftest.$ac_ext
25957 LIBS=$ac_check_lib_save_LIBS
25958 fi
25959 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25960 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
25961 if test $ac_cv_lib_png_png_check_sig = yes; then
25962   PNG_LINK=" -lpng -lz"
25963 fi
25964
25965             fi
25966
25967             if test "x$PNG_LINK" = "x" ; then
25968                 if test "$wxUSE_LIBPNG" = "sys" ; then
25969                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25970 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25971    { (exit 1); exit 1; }; }
25972                 else
25973                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25974 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25975                     wxUSE_LIBPNG=builtin
25976                 fi
25977             else
25978                                 wxUSE_LIBPNG=sys
25979             fi
25980         fi
25981     fi
25982
25983     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25984 fi
25985
25986
25987 JPEG_LINK=
25988 if test "$wxUSE_LIBJPEG" != "no" ; then
25989     cat >>confdefs.h <<\_ACEOF
25990 #define wxUSE_LIBJPEG 1
25991 _ACEOF
25992
25993
25994     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25995         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25996 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25997         wxUSE_LIBJPEG=sys
25998     fi
25999
26000     if test "$wxUSE_MGL" != 1 ; then
26001                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26002                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26003 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26004             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26005   echo $ECHO_N "(cached) $ECHO_C" >&6
26006 else
26007   cat >conftest.$ac_ext <<_ACEOF
26008 /* confdefs.h.  */
26009 _ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h.  */
26013
26014                         #undef HAVE_STDLIB_H
26015                         #include <stdio.h>
26016                         #include <jpeglib.h>
26017
26018 int
26019 main ()
26020 {
26021
26022
26023   ;
26024   return 0;
26025 }
26026 _ACEOF
26027 rm -f conftest.$ac_objext
26028 if { (ac_try="$ac_compile"
26029 case "(($ac_try" in
26030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031   *) ac_try_echo=$ac_try;;
26032 esac
26033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26034   (eval "$ac_compile") 2>conftest.er1
26035   ac_status=$?
26036   grep -v '^ *+' conftest.er1 >conftest.err
26037   rm -f conftest.er1
26038   cat conftest.err >&5
26039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); } && {
26041          test -z "$ac_c_werror_flag" ||
26042          test ! -s conftest.err
26043        } && test -s conftest.$ac_objext; then
26044   ac_cv_header_jpeglib_h=yes
26045 else
26046   echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26048
26049         ac_cv_header_jpeglib_h=no
26050
26051 fi
26052
26053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26054
26055 fi
26056
26057             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26058 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26059
26060             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26061                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26062 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26063 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26064   echo $ECHO_N "(cached) $ECHO_C" >&6
26065 else
26066   ac_check_lib_save_LIBS=$LIBS
26067 LIBS="-ljpeg  $LIBS"
26068 cat >conftest.$ac_ext <<_ACEOF
26069 /* confdefs.h.  */
26070 _ACEOF
26071 cat confdefs.h >>conftest.$ac_ext
26072 cat >>conftest.$ac_ext <<_ACEOF
26073 /* end confdefs.h.  */
26074
26075 /* Override any GCC internal prototype to avoid an error.
26076    Use char because int might match the return type of a GCC
26077    builtin and then its argument prototype would still apply.  */
26078 #ifdef __cplusplus
26079 extern "C"
26080 #endif
26081 char jpeg_read_header ();
26082 int
26083 main ()
26084 {
26085 return jpeg_read_header ();
26086   ;
26087   return 0;
26088 }
26089 _ACEOF
26090 rm -f conftest.$ac_objext conftest$ac_exeext
26091 if { (ac_try="$ac_link"
26092 case "(($ac_try" in
26093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26094   *) ac_try_echo=$ac_try;;
26095 esac
26096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26097   (eval "$ac_link") 2>conftest.er1
26098   ac_status=$?
26099   grep -v '^ *+' conftest.er1 >conftest.err
26100   rm -f conftest.er1
26101   cat conftest.err >&5
26102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103   (exit $ac_status); } && {
26104          test -z "$ac_c_werror_flag" ||
26105          test ! -s conftest.err
26106        } && test -s conftest$ac_exeext &&
26107        $as_test_x conftest$ac_exeext; then
26108   ac_cv_lib_jpeg_jpeg_read_header=yes
26109 else
26110   echo "$as_me: failed program was:" >&5
26111 sed 's/^/| /' conftest.$ac_ext >&5
26112
26113         ac_cv_lib_jpeg_jpeg_read_header=no
26114 fi
26115
26116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26117       conftest$ac_exeext conftest.$ac_ext
26118 LIBS=$ac_check_lib_save_LIBS
26119 fi
26120 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26121 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26122 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26123   JPEG_LINK=" -ljpeg"
26124 fi
26125
26126             fi
26127
26128             if test "x$JPEG_LINK" = "x" ; then
26129                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26130                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26131 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26132    { (exit 1); exit 1; }; }
26133                 else
26134                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26135 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26136                     wxUSE_LIBJPEG=builtin
26137                 fi
26138             else
26139                                 wxUSE_LIBJPEG=sys
26140
26141                 if test "$wxUSE_MSW" = 1; then
26142                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
26143 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26144 if test "${ac_cv_type_boolean+set}" = set; then
26145   echo $ECHO_N "(cached) $ECHO_C" >&6
26146 else
26147   cat >conftest.$ac_ext <<_ACEOF
26148 /* confdefs.h.  */
26149 _ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h.  */
26153 #include <windows.h>
26154
26155 typedef boolean ac__type_new_;
26156 int
26157 main ()
26158 {
26159 if ((ac__type_new_ *) 0)
26160   return 0;
26161 if (sizeof (ac__type_new_))
26162   return 0;
26163   ;
26164   return 0;
26165 }
26166 _ACEOF
26167 rm -f conftest.$ac_objext
26168 if { (ac_try="$ac_compile"
26169 case "(($ac_try" in
26170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26171   *) ac_try_echo=$ac_try;;
26172 esac
26173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26174   (eval "$ac_compile") 2>conftest.er1
26175   ac_status=$?
26176   grep -v '^ *+' conftest.er1 >conftest.err
26177   rm -f conftest.er1
26178   cat conftest.err >&5
26179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180   (exit $ac_status); } && {
26181          test -z "$ac_c_werror_flag" ||
26182          test ! -s conftest.err
26183        } && test -s conftest.$ac_objext; then
26184   ac_cv_type_boolean=yes
26185 else
26186   echo "$as_me: failed program was:" >&5
26187 sed 's/^/| /' conftest.$ac_ext >&5
26188
26189         ac_cv_type_boolean=no
26190 fi
26191
26192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26193 fi
26194 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26195 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
26196 if test $ac_cv_type_boolean = yes; then
26197
26198 cat >>confdefs.h <<_ACEOF
26199 #define HAVE_BOOLEAN 1
26200 _ACEOF
26201
26202
26203                             { echo "$as_me:$LINENO: checking for boolean" >&5
26204 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26205 if test "${ac_cv_type_boolean+set}" = set; then
26206   echo $ECHO_N "(cached) $ECHO_C" >&6
26207 else
26208   cat >conftest.$ac_ext <<_ACEOF
26209 /* confdefs.h.  */
26210 _ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h.  */
26214
26215                                     #undef HAVE_BOOLEAN
26216                                     #include <stdio.h>
26217                                     #include <jpeglib.h>
26218
26219
26220 typedef boolean ac__type_new_;
26221 int
26222 main ()
26223 {
26224 if ((ac__type_new_ *) 0)
26225   return 0;
26226 if (sizeof (ac__type_new_))
26227   return 0;
26228   ;
26229   return 0;
26230 }
26231 _ACEOF
26232 rm -f conftest.$ac_objext
26233 if { (ac_try="$ac_compile"
26234 case "(($ac_try" in
26235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26236   *) ac_try_echo=$ac_try;;
26237 esac
26238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26239   (eval "$ac_compile") 2>conftest.er1
26240   ac_status=$?
26241   grep -v '^ *+' conftest.er1 >conftest.err
26242   rm -f conftest.er1
26243   cat conftest.err >&5
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); } && {
26246          test -z "$ac_c_werror_flag" ||
26247          test ! -s conftest.err
26248        } && test -s conftest.$ac_objext; then
26249   ac_cv_type_boolean=yes
26250 else
26251   echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26253
26254         ac_cv_type_boolean=no
26255 fi
26256
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26258 fi
26259 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26260 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
26261
26262 # The cast to long int works around a bug in the HP C Compiler
26263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26265 # This bug is HP SR number 8606223364.
26266 { echo "$as_me:$LINENO: checking size of boolean" >&5
26267 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
26268 if test "${ac_cv_sizeof_boolean+set}" = set; then
26269   echo $ECHO_N "(cached) $ECHO_C" >&6
26270 else
26271   if test "$cross_compiling" = yes; then
26272   # Depending upon the size, compute the lo and hi bounds.
26273 cat >conftest.$ac_ext <<_ACEOF
26274 /* confdefs.h.  */
26275 _ACEOF
26276 cat confdefs.h >>conftest.$ac_ext
26277 cat >>conftest.$ac_ext <<_ACEOF
26278 /* end confdefs.h.  */
26279
26280                                     #undef HAVE_BOOLEAN
26281                                     #include <stdio.h>
26282                                     #include <jpeglib.h>
26283
26284
26285    typedef boolean ac__type_sizeof_;
26286 int
26287 main ()
26288 {
26289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26290 test_array [0] = 0
26291
26292   ;
26293   return 0;
26294 }
26295 _ACEOF
26296 rm -f conftest.$ac_objext
26297 if { (ac_try="$ac_compile"
26298 case "(($ac_try" in
26299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26300   *) ac_try_echo=$ac_try;;
26301 esac
26302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26303   (eval "$ac_compile") 2>conftest.er1
26304   ac_status=$?
26305   grep -v '^ *+' conftest.er1 >conftest.err
26306   rm -f conftest.er1
26307   cat conftest.err >&5
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); } && {
26310          test -z "$ac_c_werror_flag" ||
26311          test ! -s conftest.err
26312        } && test -s conftest.$ac_objext; then
26313   ac_lo=0 ac_mid=0
26314   while :; do
26315     cat >conftest.$ac_ext <<_ACEOF
26316 /* confdefs.h.  */
26317 _ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h.  */
26321
26322                                     #undef HAVE_BOOLEAN
26323                                     #include <stdio.h>
26324                                     #include <jpeglib.h>
26325
26326
26327    typedef boolean ac__type_sizeof_;
26328 int
26329 main ()
26330 {
26331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26332 test_array [0] = 0
26333
26334   ;
26335   return 0;
26336 }
26337 _ACEOF
26338 rm -f conftest.$ac_objext
26339 if { (ac_try="$ac_compile"
26340 case "(($ac_try" in
26341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342   *) ac_try_echo=$ac_try;;
26343 esac
26344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345   (eval "$ac_compile") 2>conftest.er1
26346   ac_status=$?
26347   grep -v '^ *+' conftest.er1 >conftest.err
26348   rm -f conftest.er1
26349   cat conftest.err >&5
26350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351   (exit $ac_status); } && {
26352          test -z "$ac_c_werror_flag" ||
26353          test ! -s conftest.err
26354        } && test -s conftest.$ac_objext; then
26355   ac_hi=$ac_mid; break
26356 else
26357   echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26359
26360         ac_lo=`expr $ac_mid + 1`
26361                         if test $ac_lo -le $ac_mid; then
26362                           ac_lo= ac_hi=
26363                           break
26364                         fi
26365                         ac_mid=`expr 2 '*' $ac_mid + 1`
26366 fi
26367
26368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26369   done
26370 else
26371   echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26373
26374         cat >conftest.$ac_ext <<_ACEOF
26375 /* confdefs.h.  */
26376 _ACEOF
26377 cat confdefs.h >>conftest.$ac_ext
26378 cat >>conftest.$ac_ext <<_ACEOF
26379 /* end confdefs.h.  */
26380
26381                                     #undef HAVE_BOOLEAN
26382                                     #include <stdio.h>
26383                                     #include <jpeglib.h>
26384
26385
26386    typedef boolean ac__type_sizeof_;
26387 int
26388 main ()
26389 {
26390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26391 test_array [0] = 0
26392
26393   ;
26394   return 0;
26395 }
26396 _ACEOF
26397 rm -f conftest.$ac_objext
26398 if { (ac_try="$ac_compile"
26399 case "(($ac_try" in
26400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26401   *) ac_try_echo=$ac_try;;
26402 esac
26403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26404   (eval "$ac_compile") 2>conftest.er1
26405   ac_status=$?
26406   grep -v '^ *+' conftest.er1 >conftest.err
26407   rm -f conftest.er1
26408   cat conftest.err >&5
26409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410   (exit $ac_status); } && {
26411          test -z "$ac_c_werror_flag" ||
26412          test ! -s conftest.err
26413        } && test -s conftest.$ac_objext; then
26414   ac_hi=-1 ac_mid=-1
26415   while :; do
26416     cat >conftest.$ac_ext <<_ACEOF
26417 /* confdefs.h.  */
26418 _ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h.  */
26422
26423                                     #undef HAVE_BOOLEAN
26424                                     #include <stdio.h>
26425                                     #include <jpeglib.h>
26426
26427
26428    typedef boolean ac__type_sizeof_;
26429 int
26430 main ()
26431 {
26432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26433 test_array [0] = 0
26434
26435   ;
26436   return 0;
26437 }
26438 _ACEOF
26439 rm -f conftest.$ac_objext
26440 if { (ac_try="$ac_compile"
26441 case "(($ac_try" in
26442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26443   *) ac_try_echo=$ac_try;;
26444 esac
26445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26446   (eval "$ac_compile") 2>conftest.er1
26447   ac_status=$?
26448   grep -v '^ *+' conftest.er1 >conftest.err
26449   rm -f conftest.er1
26450   cat conftest.err >&5
26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); } && {
26453          test -z "$ac_c_werror_flag" ||
26454          test ! -s conftest.err
26455        } && test -s conftest.$ac_objext; then
26456   ac_lo=$ac_mid; break
26457 else
26458   echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26460
26461         ac_hi=`expr '(' $ac_mid ')' - 1`
26462                         if test $ac_mid -le $ac_hi; then
26463                           ac_lo= ac_hi=
26464                           break
26465                         fi
26466                         ac_mid=`expr 2 '*' $ac_mid`
26467 fi
26468
26469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26470   done
26471 else
26472   echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.$ac_ext >&5
26474
26475         ac_lo= ac_hi=
26476 fi
26477
26478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26479 fi
26480
26481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26482 # Binary search between lo and hi bounds.
26483 while test "x$ac_lo" != "x$ac_hi"; do
26484   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26485   cat >conftest.$ac_ext <<_ACEOF
26486 /* confdefs.h.  */
26487 _ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h.  */
26491
26492                                     #undef HAVE_BOOLEAN
26493                                     #include <stdio.h>
26494                                     #include <jpeglib.h>
26495
26496
26497    typedef boolean ac__type_sizeof_;
26498 int
26499 main ()
26500 {
26501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26502 test_array [0] = 0
26503
26504   ;
26505   return 0;
26506 }
26507 _ACEOF
26508 rm -f conftest.$ac_objext
26509 if { (ac_try="$ac_compile"
26510 case "(($ac_try" in
26511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26512   *) ac_try_echo=$ac_try;;
26513 esac
26514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26515   (eval "$ac_compile") 2>conftest.er1
26516   ac_status=$?
26517   grep -v '^ *+' conftest.er1 >conftest.err
26518   rm -f conftest.er1
26519   cat conftest.err >&5
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); } && {
26522          test -z "$ac_c_werror_flag" ||
26523          test ! -s conftest.err
26524        } && test -s conftest.$ac_objext; then
26525   ac_hi=$ac_mid
26526 else
26527   echo "$as_me: failed program was:" >&5
26528 sed 's/^/| /' conftest.$ac_ext >&5
26529
26530         ac_lo=`expr '(' $ac_mid ')' + 1`
26531 fi
26532
26533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26534 done
26535 case $ac_lo in
26536 ?*) ac_cv_sizeof_boolean=$ac_lo;;
26537 '') if test "$ac_cv_type_boolean" = yes; then
26538      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
26539 See \`config.log' for more details." >&5
26540 echo "$as_me: error: cannot compute sizeof (boolean)
26541 See \`config.log' for more details." >&2;}
26542    { (exit 77); exit 77; }; }
26543    else
26544      ac_cv_sizeof_boolean=0
26545    fi ;;
26546 esac
26547 else
26548   cat >conftest.$ac_ext <<_ACEOF
26549 /* confdefs.h.  */
26550 _ACEOF
26551 cat confdefs.h >>conftest.$ac_ext
26552 cat >>conftest.$ac_ext <<_ACEOF
26553 /* end confdefs.h.  */
26554
26555                                     #undef HAVE_BOOLEAN
26556                                     #include <stdio.h>
26557                                     #include <jpeglib.h>
26558
26559
26560    typedef boolean ac__type_sizeof_;
26561 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26562 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26563 #include <stdio.h>
26564 #include <stdlib.h>
26565 int
26566 main ()
26567 {
26568
26569   FILE *f = fopen ("conftest.val", "w");
26570   if (! f)
26571     return 1;
26572   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26573     {
26574       long int i = longval ();
26575       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26576         return 1;
26577       fprintf (f, "%ld\n", i);
26578     }
26579   else
26580     {
26581       unsigned long int i = ulongval ();
26582       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26583         return 1;
26584       fprintf (f, "%lu\n", i);
26585     }
26586   return ferror (f) || fclose (f) != 0;
26587
26588   ;
26589   return 0;
26590 }
26591 _ACEOF
26592 rm -f conftest$ac_exeext
26593 if { (ac_try="$ac_link"
26594 case "(($ac_try" in
26595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26596   *) ac_try_echo=$ac_try;;
26597 esac
26598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26599   (eval "$ac_link") 2>&5
26600   ac_status=$?
26601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26603   { (case "(($ac_try" in
26604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26605   *) ac_try_echo=$ac_try;;
26606 esac
26607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26608   (eval "$ac_try") 2>&5
26609   ac_status=$?
26610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611   (exit $ac_status); }; }; then
26612   ac_cv_sizeof_boolean=`cat conftest.val`
26613 else
26614   echo "$as_me: program exited with status $ac_status" >&5
26615 echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26617
26618 ( exit $ac_status )
26619 if test "$ac_cv_type_boolean" = yes; then
26620      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
26621 See \`config.log' for more details." >&5
26622 echo "$as_me: error: cannot compute sizeof (boolean)
26623 See \`config.log' for more details." >&2;}
26624    { (exit 77); exit 77; }; }
26625    else
26626      ac_cv_sizeof_boolean=0
26627    fi
26628 fi
26629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26630 fi
26631 rm -f conftest.val
26632 fi
26633 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
26634 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
26635
26636
26637
26638 cat >>confdefs.h <<_ACEOF
26639 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
26640 _ACEOF
26641
26642
26643                             cat >>confdefs.h <<_ACEOF
26644 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
26645 _ACEOF
26646
26647
26648 fi
26649
26650                 fi
26651             fi
26652         fi
26653     fi
26654 fi
26655
26656
26657 TIFF_LINK=
26658 TIFF_PREREQ_LINKS=-lm
26659 if test "$wxUSE_LIBTIFF" != "no" ; then
26660     cat >>confdefs.h <<\_ACEOF
26661 #define wxUSE_LIBTIFF 1
26662 _ACEOF
26663
26664
26665     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26666                         if test "$wxUSE_LIBJPEG" = "sys"; then
26667             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26668         fi
26669         if test "$wxUSE_ZLIB" = "sys"; then
26670             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26671         fi
26672         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
26673 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
26674 if test "${ac_cv_header_tiffio_h+set}" = set; then
26675   echo $ECHO_N "(cached) $ECHO_C" >&6
26676 else
26677   cat >conftest.$ac_ext <<_ACEOF
26678 /* confdefs.h.  */
26679 _ACEOF
26680 cat confdefs.h >>conftest.$ac_ext
26681 cat >>conftest.$ac_ext <<_ACEOF
26682 /* end confdefs.h.  */
26683
26684
26685
26686 #include <tiffio.h>
26687 _ACEOF
26688 rm -f conftest.$ac_objext
26689 if { (ac_try="$ac_compile"
26690 case "(($ac_try" in
26691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26692   *) ac_try_echo=$ac_try;;
26693 esac
26694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26695   (eval "$ac_compile") 2>conftest.er1
26696   ac_status=$?
26697   grep -v '^ *+' conftest.er1 >conftest.err
26698   rm -f conftest.er1
26699   cat conftest.err >&5
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); } && {
26702          test -z "$ac_c_werror_flag" ||
26703          test ! -s conftest.err
26704        } && test -s conftest.$ac_objext; then
26705   ac_cv_header_tiffio_h=yes
26706 else
26707   echo "$as_me: failed program was:" >&5
26708 sed 's/^/| /' conftest.$ac_ext >&5
26709
26710         ac_cv_header_tiffio_h=no
26711 fi
26712
26713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26714 fi
26715 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26716 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
26717 if test $ac_cv_header_tiffio_h = yes; then
26718
26719                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26720 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
26721 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26722   echo $ECHO_N "(cached) $ECHO_C" >&6
26723 else
26724   ac_check_lib_save_LIBS=$LIBS
26725 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26726 cat >conftest.$ac_ext <<_ACEOF
26727 /* confdefs.h.  */
26728 _ACEOF
26729 cat confdefs.h >>conftest.$ac_ext
26730 cat >>conftest.$ac_ext <<_ACEOF
26731 /* end confdefs.h.  */
26732
26733 /* Override any GCC internal prototype to avoid an error.
26734    Use char because int might match the return type of a GCC
26735    builtin and then its argument prototype would still apply.  */
26736 #ifdef __cplusplus
26737 extern "C"
26738 #endif
26739 char TIFFError ();
26740 int
26741 main ()
26742 {
26743 return TIFFError ();
26744   ;
26745   return 0;
26746 }
26747 _ACEOF
26748 rm -f conftest.$ac_objext conftest$ac_exeext
26749 if { (ac_try="$ac_link"
26750 case "(($ac_try" in
26751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752   *) ac_try_echo=$ac_try;;
26753 esac
26754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26755   (eval "$ac_link") 2>conftest.er1
26756   ac_status=$?
26757   grep -v '^ *+' conftest.er1 >conftest.err
26758   rm -f conftest.er1
26759   cat conftest.err >&5
26760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); } && {
26762          test -z "$ac_c_werror_flag" ||
26763          test ! -s conftest.err
26764        } && test -s conftest$ac_exeext &&
26765        $as_test_x conftest$ac_exeext; then
26766   ac_cv_lib_tiff_TIFFError=yes
26767 else
26768   echo "$as_me: failed program was:" >&5
26769 sed 's/^/| /' conftest.$ac_ext >&5
26770
26771         ac_cv_lib_tiff_TIFFError=no
26772 fi
26773
26774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26775       conftest$ac_exeext conftest.$ac_ext
26776 LIBS=$ac_check_lib_save_LIBS
26777 fi
26778 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26779 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
26780 if test $ac_cv_lib_tiff_TIFFError = yes; then
26781   TIFF_LINK=" -ltiff"
26782 fi
26783
26784
26785 fi
26786
26787
26788
26789         if test "x$TIFF_LINK" = "x" ; then
26790             if test "$wxUSE_LIBTIFF" = "sys" ; then
26791                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26792 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26793    { (exit 1); exit 1; }; }
26794             else
26795                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26796 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26797                 wxUSE_LIBTIFF=builtin
26798             fi
26799         else
26800                         wxUSE_LIBTIFF=sys
26801         fi
26802     fi
26803 fi
26804
26805
26806 if test "$wxUSE_WCHAR_T" != "yes"; then
26807     if test "$wxUSE_EXPAT" != "no"; then
26808         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26809 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26810         wxUSE_EXPAT=no
26811     fi
26812     if test "$wxUSE_XML" != "no"; then
26813         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26814 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26815         wxUSE_XML=no
26816     fi
26817 fi
26818
26819 if test "$wxUSE_EXPAT" != "no"; then
26820     wxUSE_XML=yes
26821     cat >>confdefs.h <<\_ACEOF
26822 #define wxUSE_EXPAT 1
26823 _ACEOF
26824
26825     cat >>confdefs.h <<\_ACEOF
26826 #define wxUSE_XML 1
26827 _ACEOF
26828
26829
26830     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26831         { echo "$as_me:$LINENO: checking for expat.h" >&5
26832 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
26833 if test "${ac_cv_header_expat_h+set}" = set; then
26834   echo $ECHO_N "(cached) $ECHO_C" >&6
26835 else
26836   cat >conftest.$ac_ext <<_ACEOF
26837 /* confdefs.h.  */
26838 _ACEOF
26839 cat confdefs.h >>conftest.$ac_ext
26840 cat >>conftest.$ac_ext <<_ACEOF
26841 /* end confdefs.h.  */
26842
26843
26844 #include <expat.h>
26845 _ACEOF
26846 rm -f conftest.$ac_objext
26847 if { (ac_try="$ac_compile"
26848 case "(($ac_try" in
26849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26850   *) ac_try_echo=$ac_try;;
26851 esac
26852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26853   (eval "$ac_compile") 2>conftest.er1
26854   ac_status=$?
26855   grep -v '^ *+' conftest.er1 >conftest.err
26856   rm -f conftest.er1
26857   cat conftest.err >&5
26858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859   (exit $ac_status); } && {
26860          test -z "$ac_c_werror_flag" ||
26861          test ! -s conftest.err
26862        } && test -s conftest.$ac_objext; then
26863   ac_cv_header_expat_h=yes
26864 else
26865   echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26867
26868         ac_cv_header_expat_h=no
26869 fi
26870
26871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26872 fi
26873 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26874 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
26875 if test $ac_cv_header_expat_h = yes; then
26876   found_expat_h=1
26877 fi
26878
26879
26880         if test "x$found_expat_h" = "x1"; then
26881                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26882 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
26883 if test "${wx_cv_expat_is_not_broken+set}" = set; then
26884   echo $ECHO_N "(cached) $ECHO_C" >&6
26885 else
26886
26887                 ac_ext=cpp
26888 ac_cpp='$CXXCPP $CPPFLAGS'
26889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26892
26893                 cat >conftest.$ac_ext <<_ACEOF
26894 /* confdefs.h.  */
26895 _ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h.  */
26899 #include <expat.h>
26900 int
26901 main ()
26902 {
26903
26904   ;
26905   return 0;
26906 }
26907 _ACEOF
26908 rm -f conftest.$ac_objext
26909 if { (ac_try="$ac_compile"
26910 case "(($ac_try" in
26911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26912   *) ac_try_echo=$ac_try;;
26913 esac
26914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26915   (eval "$ac_compile") 2>conftest.er1
26916   ac_status=$?
26917   grep -v '^ *+' conftest.er1 >conftest.err
26918   rm -f conftest.er1
26919   cat conftest.err >&5
26920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921   (exit $ac_status); } && {
26922          test -z "$ac_cxx_werror_flag" ||
26923          test ! -s conftest.err
26924        } && test -s conftest.$ac_objext; then
26925   wx_cv_expat_is_not_broken=yes
26926 else
26927   echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.$ac_ext >&5
26929
26930         wx_cv_expat_is_not_broken=no
26931
26932 fi
26933
26934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26935                 ac_ext=c
26936 ac_cpp='$CPP $CPPFLAGS'
26937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26940
26941
26942
26943 fi
26944 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26945 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
26946             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26947                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26948 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
26949 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26950   echo $ECHO_N "(cached) $ECHO_C" >&6
26951 else
26952   ac_check_lib_save_LIBS=$LIBS
26953 LIBS="-lexpat  $LIBS"
26954 cat >conftest.$ac_ext <<_ACEOF
26955 /* confdefs.h.  */
26956 _ACEOF
26957 cat confdefs.h >>conftest.$ac_ext
26958 cat >>conftest.$ac_ext <<_ACEOF
26959 /* end confdefs.h.  */
26960
26961 /* Override any GCC internal prototype to avoid an error.
26962    Use char because int might match the return type of a GCC
26963    builtin and then its argument prototype would still apply.  */
26964 #ifdef __cplusplus
26965 extern "C"
26966 #endif
26967 char XML_ParserCreate ();
26968 int
26969 main ()
26970 {
26971 return XML_ParserCreate ();
26972   ;
26973   return 0;
26974 }
26975 _ACEOF
26976 rm -f conftest.$ac_objext conftest$ac_exeext
26977 if { (ac_try="$ac_link"
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_link") 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); } && {
26990          test -z "$ac_c_werror_flag" ||
26991          test ! -s conftest.err
26992        } && test -s conftest$ac_exeext &&
26993        $as_test_x conftest$ac_exeext; then
26994   ac_cv_lib_expat_XML_ParserCreate=yes
26995 else
26996   echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26998
26999         ac_cv_lib_expat_XML_ParserCreate=no
27000 fi
27001
27002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27003       conftest$ac_exeext conftest.$ac_ext
27004 LIBS=$ac_check_lib_save_LIBS
27005 fi
27006 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27007 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27008 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27009   EXPAT_LINK=" -lexpat"
27010 fi
27011
27012             fi
27013         fi
27014         if test "x$EXPAT_LINK" = "x" ; then
27015             if test "$wxUSE_EXPAT" = "sys" ; then
27016                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27017 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27018    { (exit 1); exit 1; }; }
27019             else
27020                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27021 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27022                 wxUSE_EXPAT=builtin
27023             fi
27024         else
27025                         wxUSE_EXPAT=sys
27026         fi
27027     fi
27028     if test "$wxUSE_EXPAT" = "builtin" ; then
27029                 subdirs="$subdirs src/expat"
27030
27031     fi
27032 fi
27033
27034
27035
27036 if test "$wxUSE_LIBMSPACK" != "no"; then
27037     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27038 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27039 if test "${ac_cv_header_mspack_h+set}" = set; then
27040   echo $ECHO_N "(cached) $ECHO_C" >&6
27041 else
27042   cat >conftest.$ac_ext <<_ACEOF
27043 /* confdefs.h.  */
27044 _ACEOF
27045 cat confdefs.h >>conftest.$ac_ext
27046 cat >>conftest.$ac_ext <<_ACEOF
27047 /* end confdefs.h.  */
27048
27049
27050 #include <mspack.h>
27051 _ACEOF
27052 rm -f conftest.$ac_objext
27053 if { (ac_try="$ac_compile"
27054 case "(($ac_try" in
27055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056   *) ac_try_echo=$ac_try;;
27057 esac
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059   (eval "$ac_compile") 2>conftest.er1
27060   ac_status=$?
27061   grep -v '^ *+' conftest.er1 >conftest.err
27062   rm -f conftest.er1
27063   cat conftest.err >&5
27064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065   (exit $ac_status); } && {
27066          test -z "$ac_c_werror_flag" ||
27067          test ! -s conftest.err
27068        } && test -s conftest.$ac_objext; then
27069   ac_cv_header_mspack_h=yes
27070 else
27071   echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27073
27074         ac_cv_header_mspack_h=no
27075 fi
27076
27077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078 fi
27079 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27080 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27081 if test $ac_cv_header_mspack_h = yes; then
27082   found_mspack_h=1
27083 fi
27084
27085
27086     if test "x$found_mspack_h" = "x1"; then
27087         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27088 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27089 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27090   echo $ECHO_N "(cached) $ECHO_C" >&6
27091 else
27092   ac_check_lib_save_LIBS=$LIBS
27093 LIBS="-lmspack  $LIBS"
27094 cat >conftest.$ac_ext <<_ACEOF
27095 /* confdefs.h.  */
27096 _ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h.  */
27100
27101 /* Override any GCC internal prototype to avoid an error.
27102    Use char because int might match the return type of a GCC
27103    builtin and then its argument prototype would still apply.  */
27104 #ifdef __cplusplus
27105 extern "C"
27106 #endif
27107 char mspack_create_chm_decompressor ();
27108 int
27109 main ()
27110 {
27111 return mspack_create_chm_decompressor ();
27112   ;
27113   return 0;
27114 }
27115 _ACEOF
27116 rm -f conftest.$ac_objext conftest$ac_exeext
27117 if { (ac_try="$ac_link"
27118 case "(($ac_try" in
27119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120   *) ac_try_echo=$ac_try;;
27121 esac
27122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123   (eval "$ac_link") 2>conftest.er1
27124   ac_status=$?
27125   grep -v '^ *+' conftest.er1 >conftest.err
27126   rm -f conftest.er1
27127   cat conftest.err >&5
27128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); } && {
27130          test -z "$ac_c_werror_flag" ||
27131          test ! -s conftest.err
27132        } && test -s conftest$ac_exeext &&
27133        $as_test_x conftest$ac_exeext; then
27134   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27135 else
27136   echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27138
27139         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27140 fi
27141
27142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27143       conftest$ac_exeext conftest.$ac_ext
27144 LIBS=$ac_check_lib_save_LIBS
27145 fi
27146 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27147 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
27148 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27149   MSPACK_LINK=" -lmspack"
27150 fi
27151
27152     fi
27153     if test "x$MSPACK_LINK" = "x" ; then
27154         wxUSE_LIBMSPACK=no
27155     fi
27156 fi
27157
27158 if test "$wxUSE_LIBMSPACK" != "no"; then
27159     cat >>confdefs.h <<\_ACEOF
27160 #define wxUSE_LIBMSPACK 1
27161 _ACEOF
27162
27163 fi
27164
27165
27166
27167 AFMINSTALL=
27168 WIN32INSTALL=
27169
27170 TOOLKIT=
27171 TOOLKIT_INCLUDE=
27172 WIDGET_SET=
27173
27174 if test "$USE_WIN32" = 1 ; then
27175     { echo "$as_me:$LINENO: checking for w32api.h" >&5
27176 echo $ECHO_N "checking for w32api.h... $ECHO_C" >&6; }
27177 if test "${ac_cv_header_w32api_h+set}" = set; then
27178   echo $ECHO_N "(cached) $ECHO_C" >&6
27179 else
27180   cat >conftest.$ac_ext <<_ACEOF
27181 /* confdefs.h.  */
27182 _ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h.  */
27186
27187
27188 #include <w32api.h>
27189 _ACEOF
27190 rm -f conftest.$ac_objext
27191 if { (ac_try="$ac_compile"
27192 case "(($ac_try" in
27193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194   *) ac_try_echo=$ac_try;;
27195 esac
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197   (eval "$ac_compile") 2>conftest.er1
27198   ac_status=$?
27199   grep -v '^ *+' conftest.er1 >conftest.err
27200   rm -f conftest.er1
27201   cat conftest.err >&5
27202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); } && {
27204          test -z "$ac_c_werror_flag" ||
27205          test ! -s conftest.err
27206        } && test -s conftest.$ac_objext; then
27207   ac_cv_header_w32api_h=yes
27208 else
27209   echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27211
27212         ac_cv_header_w32api_h=no
27213 fi
27214
27215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27216 fi
27217 { echo "$as_me:$LINENO: result: $ac_cv_header_w32api_h" >&5
27218 echo "${ECHO_T}$ac_cv_header_w32api_h" >&6; }
27219
27220
27221     { echo "$as_me:$LINENO: checking for windows.h" >&5
27222 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
27223 if test "${ac_cv_header_windows_h+set}" = set; then
27224   echo $ECHO_N "(cached) $ECHO_C" >&6
27225 else
27226   cat >conftest.$ac_ext <<_ACEOF
27227 /* confdefs.h.  */
27228 _ACEOF
27229 cat confdefs.h >>conftest.$ac_ext
27230 cat >>conftest.$ac_ext <<_ACEOF
27231 /* end confdefs.h.  */
27232
27233
27234 #include <windows.h>
27235 _ACEOF
27236 rm -f conftest.$ac_objext
27237 if { (ac_try="$ac_compile"
27238 case "(($ac_try" in
27239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240   *) ac_try_echo=$ac_try;;
27241 esac
27242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243   (eval "$ac_compile") 2>conftest.er1
27244   ac_status=$?
27245   grep -v '^ *+' conftest.er1 >conftest.err
27246   rm -f conftest.er1
27247   cat conftest.err >&5
27248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249   (exit $ac_status); } && {
27250          test -z "$ac_c_werror_flag" ||
27251          test ! -s conftest.err
27252        } && test -s conftest.$ac_objext; then
27253   ac_cv_header_windows_h=yes
27254 else
27255   echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27257
27258         ac_cv_header_windows_h=no
27259 fi
27260
27261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27262 fi
27263 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27264 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
27265 if test $ac_cv_header_windows_h = yes; then
27266   :
27267 else
27268
27269         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27270 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27271    { (exit 1); exit 1; }; }
27272
27273 fi
27274
27275
27276
27277             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27278
27279     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27280         LIBS="$LIBS -loleacc"
27281     fi
27282
27283     case "${host}" in
27284         *-*-cygwin* )
27285                         LIBS="$LIBS -lkernel32 -luser32"
27286     esac
27287
27288         if test "$wxUSE_ODBC" = "sys" ; then
27289         wxUSE_ODBC = "yes"
27290     fi
27291     if test "$wxUSE_ODBC" = "yes" ; then
27292         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27293         cat >>confdefs.h <<\_ACEOF
27294 #define wxUSE_ODBC 1
27295 _ACEOF
27296
27297     fi
27298
27299         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27300     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27301
27302                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27303
27304         WIN32INSTALL=win32install
27305
27306         { echo "$as_me:$LINENO: checking for pbt.h" >&5
27307 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
27308 if test "${ac_cv_header_pbt_h+set}" = set; then
27309   echo $ECHO_N "(cached) $ECHO_C" >&6
27310 else
27311   cat >conftest.$ac_ext <<_ACEOF
27312 /* confdefs.h.  */
27313 _ACEOF
27314 cat confdefs.h >>conftest.$ac_ext
27315 cat >>conftest.$ac_ext <<_ACEOF
27316 /* end confdefs.h.  */
27317
27318
27319 #include <pbt.h>
27320 _ACEOF
27321 rm -f conftest.$ac_objext
27322 if { (ac_try="$ac_compile"
27323 case "(($ac_try" in
27324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27325   *) ac_try_echo=$ac_try;;
27326 esac
27327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27328   (eval "$ac_compile") 2>conftest.er1
27329   ac_status=$?
27330   grep -v '^ *+' conftest.er1 >conftest.err
27331   rm -f conftest.er1
27332   cat conftest.err >&5
27333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334   (exit $ac_status); } && {
27335          test -z "$ac_c_werror_flag" ||
27336          test ! -s conftest.err
27337        } && test -s conftest.$ac_objext; then
27338   ac_cv_header_pbt_h=yes
27339 else
27340   echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27342
27343         ac_cv_header_pbt_h=no
27344 fi
27345
27346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27347 fi
27348 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
27349 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
27350 if test $ac_cv_header_pbt_h = yes; then
27351   :
27352 else
27353   cat >>confdefs.h <<\_ACEOF
27354 #define NEED_PBT_H 1
27355 _ACEOF
27356
27357 fi
27358
27359
27360 fi
27361
27362 if test "$wxUSE_GUI" = "yes"; then
27363     USE_GUI=1
27364
27365     GUI_TK_LIBRARY=
27366
27367     WXGTK12=
27368     WXGTK127=
27369     WXGTK20=
27370     WXGPE=
27371
27372     if test "$wxUSE_COCOA" = 1 ; then
27373         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27374             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27375 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27376             wxUSE_PRINTING_ARCHITECTURE=no
27377         fi
27378         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27379             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27380 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27381             wxUSE_DRAG_AND_DROP=no
27382         fi
27383         if test "$wxUSE_DRAGIMAGE" = "yes"; then
27384             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
27385 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
27386             wxUSE_DRAGIMAGE=no
27387         fi
27388     fi
27389
27390     if test "$wxUSE_MSW" = 1 ; then
27391         TOOLKIT=MSW
27392         GUIDIST=MSW_DIST
27393
27394                 case "${host}" in
27395             *-*-mingw32* )
27396                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27397         esac
27398     fi
27399
27400     if test "$wxUSE_GTK" = 1; then
27401                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
27402 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
27403
27404         gtk_version_cached=1
27405         if test "${wx_cv_lib_gtk+set}" = set; then
27406   echo $ECHO_N "(cached) $ECHO_C" >&6
27407 else
27408
27409                                                 gtk_version_cached=0
27410                 { echo "$as_me:$LINENO: result: " >&5
27411 echo "${ECHO_T}" >&6; }
27412
27413                                                 GTK_MODULES=
27414                 if test "$wxUSE_THREADS" = "yes"; then
27415                     GTK_MODULES=gthread
27416                 fi
27417
27418                                 wx_cv_lib_gtk=
27419                 if test "x$wxGTK_VERSION" != "x1"
27420                 then
27421                                                                                 case "${host}" in
27422                         *-*-solaris2* )
27423                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27424                                 enable_gtktest=no
27425                             fi
27426                     esac
27427
27428                     # Check whether --enable-gtktest was given.
27429 if test "${enable_gtktest+set}" = set; then
27430   enableval=$enable_gtktest;
27431 else
27432   enable_gtktest=yes
27433 fi
27434
27435
27436   pkg_config_args=gtk+-2.0
27437   for module in . $GTK_MODULES
27438   do
27439       case "$module" in
27440          gthread)
27441              pkg_config_args="$pkg_config_args gthread-2.0"
27442          ;;
27443       esac
27444   done
27445
27446   no_gtk=""
27447
27448   # Extract the first word of "pkg-config", so it can be a program name with args.
27449 set dummy pkg-config; ac_word=$2
27450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27452 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27453   echo $ECHO_N "(cached) $ECHO_C" >&6
27454 else
27455   case $PKG_CONFIG in
27456   [\\/]* | ?:[\\/]*)
27457   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27458   ;;
27459   *)
27460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27461 for as_dir in $PATH
27462 do
27463   IFS=$as_save_IFS
27464   test -z "$as_dir" && as_dir=.
27465   for ac_exec_ext in '' $ac_executable_extensions; do
27466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27467     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27469     break 2
27470   fi
27471 done
27472 done
27473 IFS=$as_save_IFS
27474
27475   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27476   ;;
27477 esac
27478 fi
27479 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27480 if test -n "$PKG_CONFIG"; then
27481   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27482 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27483 else
27484   { echo "$as_me:$LINENO: result: no" >&5
27485 echo "${ECHO_T}no" >&6; }
27486 fi
27487
27488
27489
27490   if test x$PKG_CONFIG != xno ; then
27491     if pkg-config --atleast-pkgconfig-version 0.7 ; then
27492       :
27493     else
27494       echo "*** pkg-config too old; version 0.7 or better required."
27495       no_gtk=yes
27496       PKG_CONFIG=no
27497     fi
27498   else
27499     no_gtk=yes
27500   fi
27501
27502   min_gtk_version=2.0.0
27503   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27504 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
27505
27506   if test x$PKG_CONFIG != xno ; then
27507     ## don't try to run the test against uninstalled libtool libs
27508     if $PKG_CONFIG --uninstalled $pkg_config_args; then
27509           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27510           enable_gtktest=no
27511     fi
27512
27513     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27514           :
27515     else
27516           no_gtk=yes
27517     fi
27518   fi
27519
27520   if test x"$no_gtk" = x ; then
27521     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27522     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27523     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27524            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27525     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27526            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27527     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27528            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27529     if test "x$enable_gtktest" = "xyes" ; then
27530       ac_save_CFLAGS="$CFLAGS"
27531       ac_save_LIBS="$LIBS"
27532       CFLAGS="$CFLAGS $GTK_CFLAGS"
27533       LIBS="$GTK_LIBS $LIBS"
27534       rm -f conf.gtktest
27535       if test "$cross_compiling" = yes; then
27536   echo $ac_n "cross compiling; assumed OK... $ac_c"
27537 else
27538   cat >conftest.$ac_ext <<_ACEOF
27539 /* confdefs.h.  */
27540 _ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h.  */
27544
27545 #include <gtk/gtk.h>
27546 #include <stdio.h>
27547 #include <stdlib.h>
27548
27549 int
27550 main ()
27551 {
27552   int major, minor, micro;
27553   char *tmp_version;
27554
27555   system ("touch conf.gtktest");
27556
27557   /* HP/UX 9 (%@#!) writes to sscanf strings */
27558   tmp_version = g_strdup("$min_gtk_version");
27559   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27560      printf("%s, bad version string\n", "$min_gtk_version");
27561      exit(1);
27562    }
27563
27564   if ((gtk_major_version != $gtk_config_major_version) ||
27565       (gtk_minor_version != $gtk_config_minor_version) ||
27566       (gtk_micro_version != $gtk_config_micro_version))
27567     {
27568       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27569              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27570              gtk_major_version, gtk_minor_version, gtk_micro_version);
27571       printf ("*** was found! If pkg-config was correct, then it is best\n");
27572       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27573       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27574       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27575       printf("*** required on your system.\n");
27576       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27577       printf("*** to point to the correct configuration files\n");
27578     }
27579   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27580            (gtk_minor_version != GTK_MINOR_VERSION) ||
27581            (gtk_micro_version != GTK_MICRO_VERSION))
27582     {
27583       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27584              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27585       printf("*** library (version %d.%d.%d)\n",
27586              gtk_major_version, gtk_minor_version, gtk_micro_version);
27587     }
27588   else
27589     {
27590       if ((gtk_major_version > major) ||
27591         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27592         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27593       {
27594         return 0;
27595        }
27596      else
27597       {
27598         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27599                gtk_major_version, gtk_minor_version, gtk_micro_version);
27600         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27601                major, minor, micro);
27602         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27603         printf("***\n");
27604         printf("*** If you have already installed a sufficiently new version, this error\n");
27605         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27606         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27607         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27608         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27609         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27610         printf("*** so that the correct libraries are found at run-time))\n");
27611       }
27612     }
27613   return 1;
27614 }
27615
27616 _ACEOF
27617 rm -f conftest$ac_exeext
27618 if { (ac_try="$ac_link"
27619 case "(($ac_try" in
27620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27621   *) ac_try_echo=$ac_try;;
27622 esac
27623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27624   (eval "$ac_link") 2>&5
27625   ac_status=$?
27626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27628   { (case "(($ac_try" in
27629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27630   *) ac_try_echo=$ac_try;;
27631 esac
27632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27633   (eval "$ac_try") 2>&5
27634   ac_status=$?
27635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636   (exit $ac_status); }; }; then
27637   :
27638 else
27639   echo "$as_me: program exited with status $ac_status" >&5
27640 echo "$as_me: failed program was:" >&5
27641 sed 's/^/| /' conftest.$ac_ext >&5
27642
27643 ( exit $ac_status )
27644 no_gtk=yes
27645 fi
27646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27647 fi
27648
27649
27650        CFLAGS="$ac_save_CFLAGS"
27651        LIBS="$ac_save_LIBS"
27652      fi
27653   fi
27654   if test "x$no_gtk" = x ; then
27655      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27656 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
27657      wx_cv_lib_gtk=2.0
27658   else
27659      { echo "$as_me:$LINENO: result: no" >&5
27660 echo "${ECHO_T}no" >&6; }
27661      if test "$PKG_CONFIG" = "no" ; then
27662        echo "*** A new enough version of pkg-config was not found."
27663        echo "*** See http://pkgconfig.sourceforge.net"
27664      else
27665        if test -f conf.gtktest ; then
27666         :
27667        else
27668           echo "*** Could not run GTK+ test program, checking why..."
27669           ac_save_CFLAGS="$CFLAGS"
27670           ac_save_LIBS="$LIBS"
27671           CFLAGS="$CFLAGS $GTK_CFLAGS"
27672           LIBS="$LIBS $GTK_LIBS"
27673           cat >conftest.$ac_ext <<_ACEOF
27674 /* confdefs.h.  */
27675 _ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h.  */
27679
27680 #include <gtk/gtk.h>
27681 #include <stdio.h>
27682
27683 int
27684 main ()
27685 {
27686  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27687   ;
27688   return 0;
27689 }
27690 _ACEOF
27691 rm -f conftest.$ac_objext conftest$ac_exeext
27692 if { (ac_try="$ac_link"
27693 case "(($ac_try" in
27694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27695   *) ac_try_echo=$ac_try;;
27696 esac
27697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27698   (eval "$ac_link") 2>conftest.er1
27699   ac_status=$?
27700   grep -v '^ *+' conftest.er1 >conftest.err
27701   rm -f conftest.er1
27702   cat conftest.err >&5
27703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704   (exit $ac_status); } && {
27705          test -z "$ac_c_werror_flag" ||
27706          test ! -s conftest.err
27707        } && test -s conftest$ac_exeext &&
27708        $as_test_x conftest$ac_exeext; then
27709    echo "*** The test program compiled, but did not run. This usually means"
27710           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27711           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27712           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27713           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27714           echo "*** is required on your system"
27715           echo "***"
27716           echo "*** If you have an old version installed, it is best to remove it, although"
27717           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27718 else
27719   echo "$as_me: failed program was:" >&5
27720 sed 's/^/| /' conftest.$ac_ext >&5
27721
27722          echo "*** The test program failed to compile or link. See the file config.log for the"
27723           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27724 fi
27725
27726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27727       conftest$ac_exeext conftest.$ac_ext
27728           CFLAGS="$ac_save_CFLAGS"
27729           LIBS="$ac_save_LIBS"
27730        fi
27731      fi
27732      GTK_CFLAGS=""
27733      GTK_LIBS=""
27734      :
27735   fi
27736
27737
27738   rm -f conf.gtktest
27739
27740
27741                                         case "${host}" in
27742                         *-*-solaris2* )
27743                             if test "$wxUSE_SHARED" != "yes"; then
27744                                 GTK_LIBS="$GTK_LIBS -lX11"
27745                             fi
27746                     esac
27747                 fi
27748
27749                                 if test -z "$wx_cv_lib_gtk"; then
27750                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
27751
27752 # Check whether --with-gtk-prefix was given.
27753 if test "${with_gtk_prefix+set}" = set; then
27754   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
27755 else
27756   gtk_config_prefix=""
27757 fi
27758
27759
27760 # Check whether --with-gtk-exec-prefix was given.
27761 if test "${with_gtk_exec_prefix+set}" = set; then
27762   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
27763 else
27764   gtk_config_exec_prefix=""
27765 fi
27766
27767 # Check whether --enable-gtktest was given.
27768 if test "${enable_gtktest+set}" = set; then
27769   enableval=$enable_gtktest;
27770 else
27771   enable_gtktest=yes
27772 fi
27773
27774
27775   for module in . $GTK_MODULES
27776   do
27777       case "$module" in
27778          gthread)
27779              gtk_config_args="$gtk_config_args gthread"
27780          ;;
27781       esac
27782   done
27783
27784   if test x$gtk_config_exec_prefix != x ; then
27785      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27786      if test x${GTK_CONFIG+set} != xset ; then
27787         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27788      fi
27789   fi
27790   if test x$gtk_config_prefix != x ; then
27791      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27792      if test x${GTK_CONFIG+set} != xset ; then
27793         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27794      fi
27795   fi
27796
27797   # Extract the first word of "gtk-config", so it can be a program name with args.
27798 set dummy gtk-config; ac_word=$2
27799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27801 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27802   echo $ECHO_N "(cached) $ECHO_C" >&6
27803 else
27804   case $GTK_CONFIG in
27805   [\\/]* | ?:[\\/]*)
27806   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27807   ;;
27808   *)
27809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27810 for as_dir in $PATH
27811 do
27812   IFS=$as_save_IFS
27813   test -z "$as_dir" && as_dir=.
27814   for ac_exec_ext in '' $ac_executable_extensions; do
27815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27816     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27818     break 2
27819   fi
27820 done
27821 done
27822 IFS=$as_save_IFS
27823
27824   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27825   ;;
27826 esac
27827 fi
27828 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27829 if test -n "$GTK_CONFIG"; then
27830   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27831 echo "${ECHO_T}$GTK_CONFIG" >&6; }
27832 else
27833   { echo "$as_me:$LINENO: result: no" >&5
27834 echo "${ECHO_T}no" >&6; }
27835 fi
27836
27837
27838   min_gtk_version=1.2.7
27839   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27840 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
27841   no_gtk=""
27842   if test "$GTK_CONFIG" = "no" ; then
27843     no_gtk=yes
27844   else
27845     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27846     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27847     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27848            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27849     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27850            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27851     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27852            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27853     if test "x$enable_gtktest" = "xyes" ; then
27854       ac_save_CFLAGS="$CFLAGS"
27855       ac_save_LIBS="$LIBS"
27856       CFLAGS="$CFLAGS $GTK_CFLAGS"
27857       LIBS="$GTK_LIBS $LIBS"
27858       rm -f conf.gtktest
27859       if test "$cross_compiling" = yes; then
27860   echo $ac_n "cross compiling; assumed OK... $ac_c"
27861 else
27862   cat >conftest.$ac_ext <<_ACEOF
27863 /* confdefs.h.  */
27864 _ACEOF
27865 cat confdefs.h >>conftest.$ac_ext
27866 cat >>conftest.$ac_ext <<_ACEOF
27867 /* end confdefs.h.  */
27868
27869 #include <gtk/gtk.h>
27870 #include <stdio.h>
27871 #include <stdlib.h>
27872
27873 int
27874 main ()
27875 {
27876   int major, minor, micro;
27877   char *tmp_version;
27878
27879   system ("touch conf.gtktest");
27880
27881   /* HP/UX 9 (%@#!) writes to sscanf strings */
27882   tmp_version = g_strdup("$min_gtk_version");
27883   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27884      printf("%s, bad version string\n", "$min_gtk_version");
27885      exit(1);
27886    }
27887
27888   if ((gtk_major_version != $gtk_config_major_version) ||
27889       (gtk_minor_version != $gtk_config_minor_version) ||
27890       (gtk_micro_version != $gtk_config_micro_version))
27891     {
27892       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27893              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27894              gtk_major_version, gtk_minor_version, gtk_micro_version);
27895       printf ("*** was found! If gtk-config was correct, then it is best\n");
27896       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27897       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27898       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27899       printf("*** required on your system.\n");
27900       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27901       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27902       printf("*** before re-running configure\n");
27903     }
27904 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27905   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27906            (gtk_minor_version != GTK_MINOR_VERSION) ||
27907            (gtk_micro_version != GTK_MICRO_VERSION))
27908     {
27909       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27910              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27911       printf("*** library (version %d.%d.%d)\n",
27912              gtk_major_version, gtk_minor_version, gtk_micro_version);
27913     }
27914 #endif /* defined (GTK_MAJOR_VERSION) ... */
27915   else
27916     {
27917       if ((gtk_major_version > major) ||
27918         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27919         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27920       {
27921         return 0;
27922        }
27923      else
27924       {
27925         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27926                gtk_major_version, gtk_minor_version, gtk_micro_version);
27927         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27928                major, minor, micro);
27929         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27930         printf("***\n");
27931         printf("*** If you have already installed a sufficiently new version, this error\n");
27932         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27933         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27934         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27935         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27936         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27937         printf("*** so that the correct libraries are found at run-time))\n");
27938       }
27939     }
27940   return 1;
27941 }
27942
27943 _ACEOF
27944 rm -f conftest$ac_exeext
27945 if { (ac_try="$ac_link"
27946 case "(($ac_try" in
27947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948   *) ac_try_echo=$ac_try;;
27949 esac
27950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951   (eval "$ac_link") 2>&5
27952   ac_status=$?
27953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27955   { (case "(($ac_try" in
27956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957   *) ac_try_echo=$ac_try;;
27958 esac
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960   (eval "$ac_try") 2>&5
27961   ac_status=$?
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); }; }; then
27964   :
27965 else
27966   echo "$as_me: program exited with status $ac_status" >&5
27967 echo "$as_me: failed program was:" >&5
27968 sed 's/^/| /' conftest.$ac_ext >&5
27969
27970 ( exit $ac_status )
27971 no_gtk=yes
27972 fi
27973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27974 fi
27975
27976
27977        CFLAGS="$ac_save_CFLAGS"
27978        LIBS="$ac_save_LIBS"
27979      fi
27980   fi
27981   if test "x$no_gtk" = x ; then
27982      { echo "$as_me:$LINENO: result: yes" >&5
27983 echo "${ECHO_T}yes" >&6; }
27984      wx_cv_lib_gtk=1.2.7
27985   else
27986      { echo "$as_me:$LINENO: result: no" >&5
27987 echo "${ECHO_T}no" >&6; }
27988      if test "$GTK_CONFIG" = "no" ; then
27989        echo "*** The gtk-config script installed by GTK could not be found"
27990        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27991        echo "*** your path, or set the GTK_CONFIG environment variable to the"
27992        echo "*** full path to gtk-config."
27993      else
27994        if test -f conf.gtktest ; then
27995         :
27996        else
27997           echo "*** Could not run GTK test program, checking why..."
27998           CFLAGS="$CFLAGS $GTK_CFLAGS"
27999           LIBS="$LIBS $GTK_LIBS"
28000           cat >conftest.$ac_ext <<_ACEOF
28001 /* confdefs.h.  */
28002 _ACEOF
28003 cat confdefs.h >>conftest.$ac_ext
28004 cat >>conftest.$ac_ext <<_ACEOF
28005 /* end confdefs.h.  */
28006
28007 #include <gtk/gtk.h>
28008 #include <stdio.h>
28009
28010 int
28011 main ()
28012 {
28013  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28014   ;
28015   return 0;
28016 }
28017 _ACEOF
28018 rm -f conftest.$ac_objext conftest$ac_exeext
28019 if { (ac_try="$ac_link"
28020 case "(($ac_try" in
28021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28022   *) ac_try_echo=$ac_try;;
28023 esac
28024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28025   (eval "$ac_link") 2>conftest.er1
28026   ac_status=$?
28027   grep -v '^ *+' conftest.er1 >conftest.err
28028   rm -f conftest.er1
28029   cat conftest.err >&5
28030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031   (exit $ac_status); } && {
28032          test -z "$ac_c_werror_flag" ||
28033          test ! -s conftest.err
28034        } && test -s conftest$ac_exeext &&
28035        $as_test_x conftest$ac_exeext; then
28036    echo "*** The test program compiled, but did not run. This usually means"
28037           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28038           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28039           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28040           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28041           echo "*** is required on your system"
28042           echo "***"
28043           echo "*** If you have an old version installed, it is best to remove it, although"
28044           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28045           echo "***"
28046           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28047           echo "*** came with the system with the command"
28048           echo "***"
28049           echo "***    rpm --erase --nodeps gtk gtk-devel"
28050 else
28051   echo "$as_me: failed program was:" >&5
28052 sed 's/^/| /' conftest.$ac_ext >&5
28053
28054          echo "*** The test program failed to compile or link. See the file config.log for the"
28055           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28056           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28057           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28058 fi
28059
28060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28061       conftest$ac_exeext conftest.$ac_ext
28062           CFLAGS="$ac_save_CFLAGS"
28063           LIBS="$ac_save_LIBS"
28064        fi
28065      fi
28066      GTK_CFLAGS=""
28067      GTK_LIBS=""
28068      :
28069   fi
28070
28071
28072   rm -f conf.gtktest
28073
28074
28075                         if test -z "$wx_cv_lib_gtk"; then
28076
28077 # Check whether --with-gtk-prefix was given.
28078 if test "${with_gtk_prefix+set}" = set; then
28079   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28080 else
28081   gtk_config_prefix=""
28082 fi
28083
28084
28085 # Check whether --with-gtk-exec-prefix was given.
28086 if test "${with_gtk_exec_prefix+set}" = set; then
28087   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28088 else
28089   gtk_config_exec_prefix=""
28090 fi
28091
28092 # Check whether --enable-gtktest was given.
28093 if test "${enable_gtktest+set}" = set; then
28094   enableval=$enable_gtktest;
28095 else
28096   enable_gtktest=yes
28097 fi
28098
28099
28100   for module in . $GTK_MODULES
28101   do
28102       case "$module" in
28103          gthread)
28104              gtk_config_args="$gtk_config_args gthread"
28105          ;;
28106       esac
28107   done
28108
28109   if test x$gtk_config_exec_prefix != x ; then
28110      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28111      if test x${GTK_CONFIG+set} != xset ; then
28112         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28113      fi
28114   fi
28115   if test x$gtk_config_prefix != x ; then
28116      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28117      if test x${GTK_CONFIG+set} != xset ; then
28118         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28119      fi
28120   fi
28121
28122   # Extract the first word of "gtk-config", so it can be a program name with args.
28123 set dummy gtk-config; ac_word=$2
28124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28126 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28127   echo $ECHO_N "(cached) $ECHO_C" >&6
28128 else
28129   case $GTK_CONFIG in
28130   [\\/]* | ?:[\\/]*)
28131   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28132   ;;
28133   *)
28134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28135 for as_dir in $PATH
28136 do
28137   IFS=$as_save_IFS
28138   test -z "$as_dir" && as_dir=.
28139   for ac_exec_ext in '' $ac_executable_extensions; do
28140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28141     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28143     break 2
28144   fi
28145 done
28146 done
28147 IFS=$as_save_IFS
28148
28149   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28150   ;;
28151 esac
28152 fi
28153 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28154 if test -n "$GTK_CONFIG"; then
28155   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28156 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28157 else
28158   { echo "$as_me:$LINENO: result: no" >&5
28159 echo "${ECHO_T}no" >&6; }
28160 fi
28161
28162
28163   min_gtk_version=1.2.3
28164   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28165 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28166   no_gtk=""
28167   if test "$GTK_CONFIG" = "no" ; then
28168     no_gtk=yes
28169   else
28170     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28171     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28172     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28173            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28174     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28175            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28176     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28177            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28178     if test "x$enable_gtktest" = "xyes" ; then
28179       ac_save_CFLAGS="$CFLAGS"
28180       ac_save_LIBS="$LIBS"
28181       CFLAGS="$CFLAGS $GTK_CFLAGS"
28182       LIBS="$GTK_LIBS $LIBS"
28183       rm -f conf.gtktest
28184       if test "$cross_compiling" = yes; then
28185   echo $ac_n "cross compiling; assumed OK... $ac_c"
28186 else
28187   cat >conftest.$ac_ext <<_ACEOF
28188 /* confdefs.h.  */
28189 _ACEOF
28190 cat confdefs.h >>conftest.$ac_ext
28191 cat >>conftest.$ac_ext <<_ACEOF
28192 /* end confdefs.h.  */
28193
28194 #include <gtk/gtk.h>
28195 #include <stdio.h>
28196 #include <stdlib.h>
28197
28198 int
28199 main ()
28200 {
28201   int major, minor, micro;
28202   char *tmp_version;
28203
28204   system ("touch conf.gtktest");
28205
28206   /* HP/UX 9 (%@#!) writes to sscanf strings */
28207   tmp_version = g_strdup("$min_gtk_version");
28208   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28209      printf("%s, bad version string\n", "$min_gtk_version");
28210      exit(1);
28211    }
28212
28213   if ((gtk_major_version != $gtk_config_major_version) ||
28214       (gtk_minor_version != $gtk_config_minor_version) ||
28215       (gtk_micro_version != $gtk_config_micro_version))
28216     {
28217       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28218              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28219              gtk_major_version, gtk_minor_version, gtk_micro_version);
28220       printf ("*** was found! If gtk-config was correct, then it is best\n");
28221       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28222       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28223       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28224       printf("*** required on your system.\n");
28225       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28226       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28227       printf("*** before re-running configure\n");
28228     }
28229 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28230   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28231            (gtk_minor_version != GTK_MINOR_VERSION) ||
28232            (gtk_micro_version != GTK_MICRO_VERSION))
28233     {
28234       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28235              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28236       printf("*** library (version %d.%d.%d)\n",
28237              gtk_major_version, gtk_minor_version, gtk_micro_version);
28238     }
28239 #endif /* defined (GTK_MAJOR_VERSION) ... */
28240   else
28241     {
28242       if ((gtk_major_version > major) ||
28243         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28244         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28245       {
28246         return 0;
28247        }
28248      else
28249       {
28250         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28251                gtk_major_version, gtk_minor_version, gtk_micro_version);
28252         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28253                major, minor, micro);
28254         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28255         printf("***\n");
28256         printf("*** If you have already installed a sufficiently new version, this error\n");
28257         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28258         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28259         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28260         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28261         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28262         printf("*** so that the correct libraries are found at run-time))\n");
28263       }
28264     }
28265   return 1;
28266 }
28267
28268 _ACEOF
28269 rm -f conftest$ac_exeext
28270 if { (ac_try="$ac_link"
28271 case "(($ac_try" in
28272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273   *) ac_try_echo=$ac_try;;
28274 esac
28275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276   (eval "$ac_link") 2>&5
28277   ac_status=$?
28278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28280   { (case "(($ac_try" in
28281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28282   *) ac_try_echo=$ac_try;;
28283 esac
28284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28285   (eval "$ac_try") 2>&5
28286   ac_status=$?
28287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288   (exit $ac_status); }; }; then
28289   :
28290 else
28291   echo "$as_me: program exited with status $ac_status" >&5
28292 echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28294
28295 ( exit $ac_status )
28296 no_gtk=yes
28297 fi
28298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28299 fi
28300
28301
28302        CFLAGS="$ac_save_CFLAGS"
28303        LIBS="$ac_save_LIBS"
28304      fi
28305   fi
28306   if test "x$no_gtk" = x ; then
28307      { echo "$as_me:$LINENO: result: yes" >&5
28308 echo "${ECHO_T}yes" >&6; }
28309      wx_cv_lib_gtk=1.2.3
28310   else
28311      { echo "$as_me:$LINENO: result: no" >&5
28312 echo "${ECHO_T}no" >&6; }
28313      if test "$GTK_CONFIG" = "no" ; then
28314        echo "*** The gtk-config script installed by GTK could not be found"
28315        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28316        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28317        echo "*** full path to gtk-config."
28318      else
28319        if test -f conf.gtktest ; then
28320         :
28321        else
28322           echo "*** Could not run GTK test program, checking why..."
28323           CFLAGS="$CFLAGS $GTK_CFLAGS"
28324           LIBS="$LIBS $GTK_LIBS"
28325           cat >conftest.$ac_ext <<_ACEOF
28326 /* confdefs.h.  */
28327 _ACEOF
28328 cat confdefs.h >>conftest.$ac_ext
28329 cat >>conftest.$ac_ext <<_ACEOF
28330 /* end confdefs.h.  */
28331
28332 #include <gtk/gtk.h>
28333 #include <stdio.h>
28334
28335 int
28336 main ()
28337 {
28338  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28339   ;
28340   return 0;
28341 }
28342 _ACEOF
28343 rm -f conftest.$ac_objext conftest$ac_exeext
28344 if { (ac_try="$ac_link"
28345 case "(($ac_try" in
28346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347   *) ac_try_echo=$ac_try;;
28348 esac
28349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350   (eval "$ac_link") 2>conftest.er1
28351   ac_status=$?
28352   grep -v '^ *+' conftest.er1 >conftest.err
28353   rm -f conftest.er1
28354   cat conftest.err >&5
28355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356   (exit $ac_status); } && {
28357          test -z "$ac_c_werror_flag" ||
28358          test ! -s conftest.err
28359        } && test -s conftest$ac_exeext &&
28360        $as_test_x conftest$ac_exeext; then
28361    echo "*** The test program compiled, but did not run. This usually means"
28362           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28363           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28364           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28365           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28366           echo "*** is required on your system"
28367           echo "***"
28368           echo "*** If you have an old version installed, it is best to remove it, although"
28369           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28370           echo "***"
28371           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28372           echo "*** came with the system with the command"
28373           echo "***"
28374           echo "***    rpm --erase --nodeps gtk gtk-devel"
28375 else
28376   echo "$as_me: failed program was:" >&5
28377 sed 's/^/| /' conftest.$ac_ext >&5
28378
28379          echo "*** The test program failed to compile or link. See the file config.log for the"
28380           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28381           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28382           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28383 fi
28384
28385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28386       conftest$ac_exeext conftest.$ac_ext
28387           CFLAGS="$ac_save_CFLAGS"
28388           LIBS="$ac_save_LIBS"
28389        fi
28390      fi
28391      GTK_CFLAGS=""
28392      GTK_LIBS=""
28393      :
28394   fi
28395
28396
28397   rm -f conf.gtktest
28398
28399                         fi
28400                     fi
28401                 fi
28402
28403                 if test -z "$wx_cv_lib_gtk"; then
28404                                         wx_cv_lib_gtk=none
28405                 else
28406                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
28407                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28408                 fi
28409
28410
28411 fi
28412
28413
28414                         if test "$gtk_version_cached" = 1; then
28415             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28416 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
28417         fi
28418
28419         case "$wx_cv_lib_gtk" in
28420             2.0)    WXGTK20=1
28421                     TOOLKIT_VERSION=2
28422                     ;;
28423             1.2.7)  WXGTK127=1
28424                     WXGTK12=1
28425                     ;;
28426             1.2.3)  WXGTK12=1
28427                     ;;
28428             *)      { { echo "$as_me:$LINENO: error:
28429 The development files for GTK+ were not found. For GTK+ 2, please
28430 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28431 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28432 and that the version is 1.2.3 or above. Also check that the
28433 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28434 --libs' are in the LD_LIBRARY_PATH or equivalent.
28435                             " >&5
28436 echo "$as_me: error:
28437 The development files for GTK+ were not found. For GTK+ 2, please
28438 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28439 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28440 and that the version is 1.2.3 or above. Also check that the
28441 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28442 --libs' are in the LD_LIBRARY_PATH or equivalent.
28443                             " >&2;}
28444    { (exit 1); exit 1; }; }
28445                     ;;
28446         esac
28447
28448         if test "$WXGTK20" = 1; then
28449             save_CFLAGS="$CFLAGS"
28450             save_LIBS="$LIBS"
28451             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28452             LIBS="$LIBS $wx_cv_libs_gtk"
28453
28454                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28455 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
28456 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28457   echo $ECHO_N "(cached) $ECHO_C" >&6
28458 else
28459   cat >conftest.$ac_ext <<_ACEOF
28460 /* confdefs.h.  */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h.  */
28465 #include <gtk/gtk.h>
28466
28467 int
28468 main ()
28469 {
28470 #ifndef gtk_icon_size_lookup
28471   (void) gtk_icon_size_lookup;
28472 #endif
28473
28474   ;
28475   return 0;
28476 }
28477 _ACEOF
28478 rm -f conftest.$ac_objext
28479 if { (ac_try="$ac_compile"
28480 case "(($ac_try" in
28481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482   *) ac_try_echo=$ac_try;;
28483 esac
28484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28485   (eval "$ac_compile") 2>conftest.er1
28486   ac_status=$?
28487   grep -v '^ *+' conftest.er1 >conftest.err
28488   rm -f conftest.er1
28489   cat conftest.err >&5
28490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491   (exit $ac_status); } && {
28492          test -z "$ac_c_werror_flag" ||
28493          test ! -s conftest.err
28494        } && test -s conftest.$ac_objext; then
28495   ac_cv_have_decl_gtk_icon_size_lookup=yes
28496 else
28497   echo "$as_me: failed program was:" >&5
28498 sed 's/^/| /' conftest.$ac_ext >&5
28499
28500         ac_cv_have_decl_gtk_icon_size_lookup=no
28501 fi
28502
28503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28504 fi
28505 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28506 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
28507 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
28508
28509 cat >>confdefs.h <<_ACEOF
28510 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
28511 _ACEOF
28512
28513
28514 else
28515   cat >>confdefs.h <<_ACEOF
28516 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28517 _ACEOF
28518
28519 cat >>confdefs.h <<\_ACEOF
28520 #define NEED_GTK_ICON_SIZE_LOOKUP 1
28521 _ACEOF
28522
28523 fi
28524
28525
28526
28527
28528                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
28529 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
28530             cat >conftest.$ac_ext <<_ACEOF
28531 /* confdefs.h.  */
28532 _ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h.  */
28536
28537                             #include <gtk/gtk.h>
28538
28539 int
28540 main ()
28541 {
28542
28543                             #if !GTK_CHECK_VERSION(2,10,0)
28544                             Not GTK+ 2.10
28545                             #endif
28546
28547   ;
28548   return 0;
28549 }
28550 _ACEOF
28551 rm -f conftest.$ac_objext
28552 if { (ac_try="$ac_compile"
28553 case "(($ac_try" in
28554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28555   *) ac_try_echo=$ac_try;;
28556 esac
28557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28558   (eval "$ac_compile") 2>conftest.er1
28559   ac_status=$?
28560   grep -v '^ *+' conftest.er1 >conftest.err
28561   rm -f conftest.er1
28562   cat conftest.err >&5
28563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564   (exit $ac_status); } && {
28565          test -z "$ac_c_werror_flag" ||
28566          test ! -s conftest.err
28567        } && test -s conftest.$ac_objext; then
28568
28569                             cat >>confdefs.h <<\_ACEOF
28570 #define __WXGTK210__ 1
28571 _ACEOF
28572
28573                             cat >>confdefs.h <<\_ACEOF
28574 #define __WXGTK26__ 1
28575 _ACEOF
28576
28577                             cat >>confdefs.h <<\_ACEOF
28578 #define __WXGTK24__ 1
28579 _ACEOF
28580
28581                             { echo "$as_me:$LINENO: result: yes" >&5
28582 echo "${ECHO_T}yes" >&6; }
28583                             ac_wxgtk210=1
28584
28585 else
28586   echo "$as_me: failed program was:" >&5
28587 sed 's/^/| /' conftest.$ac_ext >&5
28588
28589
28590                             { echo "$as_me:$LINENO: result: no" >&5
28591 echo "${ECHO_T}no" >&6; }
28592                             ac_wxgtk210=0
28593
28594 fi
28595
28596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28597
28598             if test "$ac_wxgtk210" = 0; then
28599                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28600 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
28601                 cat >conftest.$ac_ext <<_ACEOF
28602 /* confdefs.h.  */
28603 _ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h.  */
28607
28608                                 #include <gtk/gtk.h>
28609
28610 int
28611 main ()
28612 {
28613
28614                                 #if !GTK_CHECK_VERSION(2,6,0)
28615                                 Not GTK+ 2.6
28616                                 #endif
28617
28618   ;
28619   return 0;
28620 }
28621 _ACEOF
28622 rm -f conftest.$ac_objext
28623 if { (ac_try="$ac_compile"
28624 case "(($ac_try" in
28625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28626   *) ac_try_echo=$ac_try;;
28627 esac
28628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28629   (eval "$ac_compile") 2>conftest.er1
28630   ac_status=$?
28631   grep -v '^ *+' conftest.er1 >conftest.err
28632   rm -f conftest.er1
28633   cat conftest.err >&5
28634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635   (exit $ac_status); } && {
28636          test -z "$ac_c_werror_flag" ||
28637          test ! -s conftest.err
28638        } && test -s conftest.$ac_objext; then
28639
28640                                 cat >>confdefs.h <<\_ACEOF
28641 #define __WXGTK26__ 1
28642 _ACEOF
28643
28644                                 cat >>confdefs.h <<\_ACEOF
28645 #define __WXGTK24__ 1
28646 _ACEOF
28647
28648                                 { echo "$as_me:$LINENO: result: yes" >&5
28649 echo "${ECHO_T}yes" >&6; }
28650                                 ac_wxgtk26=1
28651
28652 else
28653   echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28655
28656
28657                                 { echo "$as_me:$LINENO: result: no" >&5
28658 echo "${ECHO_T}no" >&6; }
28659                                 ac_wxgtk26=0
28660
28661 fi
28662
28663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28664             fi
28665
28666             if test "$ac_wxgtk26" = 0; then
28667                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28668 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
28669                 cat >conftest.$ac_ext <<_ACEOF
28670 /* confdefs.h.  */
28671 _ACEOF
28672 cat confdefs.h >>conftest.$ac_ext
28673 cat >>conftest.$ac_ext <<_ACEOF
28674 /* end confdefs.h.  */
28675
28676                                 #include <gtk/gtk.h>
28677
28678 int
28679 main ()
28680 {
28681
28682                                 #if !GTK_CHECK_VERSION(2,4,0)
28683                                 Not GTK+ 2.4
28684                                 #endif
28685
28686   ;
28687   return 0;
28688 }
28689 _ACEOF
28690 rm -f conftest.$ac_objext
28691 if { (ac_try="$ac_compile"
28692 case "(($ac_try" in
28693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28694   *) ac_try_echo=$ac_try;;
28695 esac
28696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28697   (eval "$ac_compile") 2>conftest.er1
28698   ac_status=$?
28699   grep -v '^ *+' conftest.er1 >conftest.err
28700   rm -f conftest.er1
28701   cat conftest.err >&5
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); } && {
28704          test -z "$ac_c_werror_flag" ||
28705          test ! -s conftest.err
28706        } && test -s conftest.$ac_objext; then
28707
28708                                 cat >>confdefs.h <<\_ACEOF
28709 #define __WXGTK24__ 1
28710 _ACEOF
28711
28712                                 { echo "$as_me:$LINENO: result: yes" >&5
28713 echo "${ECHO_T}yes" >&6; }
28714
28715 else
28716   echo "$as_me: failed program was:" >&5
28717 sed 's/^/| /' conftest.$ac_ext >&5
28718
28719
28720                                 { echo "$as_me:$LINENO: result: no" >&5
28721 echo "${ECHO_T}no" >&6; }
28722
28723 fi
28724
28725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28726             fi
28727
28728             CFLAGS="$save_CFLAGS"
28729             LIBS="$save_LIBS"
28730         else
28731             if test "$wxUSE_UNICODE" = "yes"; then
28732                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28733 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28734                 wxUSE_UNICODE=no
28735             fi
28736
28737                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28738 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
28739 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28740   echo $ECHO_N "(cached) $ECHO_C" >&6
28741 else
28742   ac_check_lib_save_LIBS=$LIBS
28743 LIBS="-lgdk  $LIBS"
28744 cat >conftest.$ac_ext <<_ACEOF
28745 /* confdefs.h.  */
28746 _ACEOF
28747 cat confdefs.h >>conftest.$ac_ext
28748 cat >>conftest.$ac_ext <<_ACEOF
28749 /* end confdefs.h.  */
28750
28751 /* Override any GCC internal prototype to avoid an error.
28752    Use char because int might match the return type of a GCC
28753    builtin and then its argument prototype would still apply.  */
28754 #ifdef __cplusplus
28755 extern "C"
28756 #endif
28757 char gdk_im_open ();
28758 int
28759 main ()
28760 {
28761 return gdk_im_open ();
28762   ;
28763   return 0;
28764 }
28765 _ACEOF
28766 rm -f conftest.$ac_objext conftest$ac_exeext
28767 if { (ac_try="$ac_link"
28768 case "(($ac_try" in
28769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28770   *) ac_try_echo=$ac_try;;
28771 esac
28772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28773   (eval "$ac_link") 2>conftest.er1
28774   ac_status=$?
28775   grep -v '^ *+' conftest.er1 >conftest.err
28776   rm -f conftest.er1
28777   cat conftest.err >&5
28778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779   (exit $ac_status); } && {
28780          test -z "$ac_c_werror_flag" ||
28781          test ! -s conftest.err
28782        } && test -s conftest$ac_exeext &&
28783        $as_test_x conftest$ac_exeext; then
28784   ac_cv_lib_gdk_gdk_im_open=yes
28785 else
28786   echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28788
28789         ac_cv_lib_gdk_gdk_im_open=no
28790 fi
28791
28792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28793       conftest$ac_exeext conftest.$ac_ext
28794 LIBS=$ac_check_lib_save_LIBS
28795 fi
28796 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28797 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
28798 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28799   cat >>confdefs.h <<\_ACEOF
28800 #define HAVE_XIM 1
28801 _ACEOF
28802
28803 fi
28804
28805
28806                                     if test "$USE_DARWIN" != 1; then
28807
28808 for ac_func in poll
28809 do
28810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28814   echo $ECHO_N "(cached) $ECHO_C" >&6
28815 else
28816   cat >conftest.$ac_ext <<_ACEOF
28817 /* confdefs.h.  */
28818 _ACEOF
28819 cat confdefs.h >>conftest.$ac_ext
28820 cat >>conftest.$ac_ext <<_ACEOF
28821 /* end confdefs.h.  */
28822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28824 #define $ac_func innocuous_$ac_func
28825
28826 /* System header to define __stub macros and hopefully few prototypes,
28827     which can conflict with char $ac_func (); below.
28828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28829     <limits.h> exists even on freestanding compilers.  */
28830
28831 #ifdef __STDC__
28832 # include <limits.h>
28833 #else
28834 # include <assert.h>
28835 #endif
28836
28837 #undef $ac_func
28838
28839 /* Override any GCC internal prototype to avoid an error.
28840    Use char because int might match the return type of a GCC
28841    builtin and then its argument prototype would still apply.  */
28842 #ifdef __cplusplus
28843 extern "C"
28844 #endif
28845 char $ac_func ();
28846 /* The GNU C library defines this for functions which it implements
28847     to always fail with ENOSYS.  Some functions are actually named
28848     something starting with __ and the normal name is an alias.  */
28849 #if defined __stub_$ac_func || defined __stub___$ac_func
28850 choke me
28851 #endif
28852
28853 int
28854 main ()
28855 {
28856 return $ac_func ();
28857   ;
28858   return 0;
28859 }
28860 _ACEOF
28861 rm -f conftest.$ac_objext conftest$ac_exeext
28862 if { (ac_try="$ac_link"
28863 case "(($ac_try" in
28864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865   *) ac_try_echo=$ac_try;;
28866 esac
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868   (eval "$ac_link") 2>conftest.er1
28869   ac_status=$?
28870   grep -v '^ *+' conftest.er1 >conftest.err
28871   rm -f conftest.er1
28872   cat conftest.err >&5
28873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); } && {
28875          test -z "$ac_c_werror_flag" ||
28876          test ! -s conftest.err
28877        } && test -s conftest$ac_exeext &&
28878        $as_test_x conftest$ac_exeext; then
28879   eval "$as_ac_var=yes"
28880 else
28881   echo "$as_me: failed program was:" >&5
28882 sed 's/^/| /' conftest.$ac_ext >&5
28883
28884         eval "$as_ac_var=no"
28885 fi
28886
28887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28888       conftest$ac_exeext conftest.$ac_ext
28889 fi
28890 ac_res=`eval echo '${'$as_ac_var'}'`
28891                { echo "$as_me:$LINENO: result: $ac_res" >&5
28892 echo "${ECHO_T}$ac_res" >&6; }
28893 if test `eval echo '${'$as_ac_var'}'` = yes; then
28894   cat >>confdefs.h <<_ACEOF
28895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28896 _ACEOF
28897
28898 fi
28899 done
28900
28901             fi
28902         fi
28903
28904         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28905         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28906
28907         AFMINSTALL=afminstall
28908         TOOLKIT=GTK
28909         GUIDIST=GTK_DIST
28910
28911                 if test "$wxUSE_GPE" = "yes"; then
28912             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
28913 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
28914
28915   ac_find_libraries=
28916   for ac_dir in $SEARCH_LIB;
28917   do
28918     for ac_extension in a so sl dylib dll.a; do
28919       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28920         ac_find_libraries=$ac_dir
28921         break 2
28922       fi
28923     done
28924   done
28925
28926             if test "$ac_find_libraries" != "" ; then
28927
28928     if test "$ac_find_libraries" = "default location"; then
28929     ac_path_to_link=""
28930   else
28931     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28932     result=$?
28933     if test $result = 0; then
28934       ac_path_to_link=""
28935     else
28936       ac_path_to_link=" -L$ac_find_libraries"
28937     fi
28938   fi
28939
28940                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28941                 WXGPE=1
28942                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28943 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
28944             else
28945                 { echo "$as_me:$LINENO: result: not found" >&5
28946 echo "${ECHO_T}not found" >&6; }
28947             fi
28948
28949                                                                                                                     fi
28950     fi
28951
28952     if test "$wxUSE_MGL" = 1; then
28953        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28954 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
28955         if test "x$MGL_ROOT" = x ; then
28956             { echo "$as_me:$LINENO: result: not found" >&5
28957 echo "${ECHO_T}not found" >&6; }
28958             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28959 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28960    { (exit 1); exit 1; }; }
28961         else
28962             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28963 echo "${ECHO_T}$MGL_ROOT" >&6; }
28964         fi
28965
28966         { echo "$as_me:$LINENO: checking for libmgl location" >&5
28967 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
28968                                 case "${host}" in
28969             *-*-linux* )
28970                                           if test "x$wxUSE_SHARED" = xyes ; then
28971                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28972               else
28973                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28974               fi
28975               ;;
28976             *-pc-msdosdjgpp )
28977               mgl_os_candidates="dos32/dj2"
28978               ;;
28979             *)
28980               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28981 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28982    { (exit 1); exit 1; }; }
28983         esac
28984
28985         mgl_lib_type=""
28986         mgl_os=""
28987
28988         for mgl_os_i in $mgl_os_candidates ; do
28989             if test "x$mgl_os" = x ; then
28990                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28991                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28992                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28993                         mgl_lib_type=debug
28994                         mgl_os=$mgl_os_i
28995                     fi
28996                 fi
28997                 if test "x$mgl_lib_type" = x ; then
28998                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28999                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29000                         mgl_lib_type=release
29001                         mgl_os=$mgl_os_i
29002                     fi
29003                 fi
29004             fi
29005         done
29006
29007         if test "x$mgl_os" = x ; then
29008             { echo "$as_me:$LINENO: result: not found" >&5
29009 echo "${ECHO_T}not found" >&6; }
29010             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29011 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29012    { (exit 1); exit 1; }; }
29013         fi
29014         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29015 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29016
29017         wxUSE_UNIVERSAL="yes"
29018
29019         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29020         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29021
29022         AFMINSTALL=afminstall
29023         TOOLKIT=MGL
29024         GUIDIST=MGL_DIST
29025     fi
29026
29027     if test "$wxUSE_DFB" = 1; then
29028
29029
29030 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29031         if test -n "$ac_tool_prefix"; then
29032   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29033 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29036 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29037   echo $ECHO_N "(cached) $ECHO_C" >&6
29038 else
29039   case $PKG_CONFIG in
29040   [\\/]* | ?:[\\/]*)
29041   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29042   ;;
29043   *)
29044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29045 for as_dir in $PATH
29046 do
29047   IFS=$as_save_IFS
29048   test -z "$as_dir" && as_dir=.
29049   for ac_exec_ext in '' $ac_executable_extensions; do
29050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29051     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29053     break 2
29054   fi
29055 done
29056 done
29057 IFS=$as_save_IFS
29058
29059   ;;
29060 esac
29061 fi
29062 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29063 if test -n "$PKG_CONFIG"; then
29064   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29065 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29066 else
29067   { echo "$as_me:$LINENO: result: no" >&5
29068 echo "${ECHO_T}no" >&6; }
29069 fi
29070
29071
29072 fi
29073 if test -z "$ac_cv_path_PKG_CONFIG"; then
29074   ac_pt_PKG_CONFIG=$PKG_CONFIG
29075   # Extract the first word of "pkg-config", so it can be a program name with args.
29076 set dummy pkg-config; ac_word=$2
29077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29079 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29080   echo $ECHO_N "(cached) $ECHO_C" >&6
29081 else
29082   case $ac_pt_PKG_CONFIG in
29083   [\\/]* | ?:[\\/]*)
29084   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29085   ;;
29086   *)
29087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29088 for as_dir in $PATH
29089 do
29090   IFS=$as_save_IFS
29091   test -z "$as_dir" && as_dir=.
29092   for ac_exec_ext in '' $ac_executable_extensions; do
29093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29094     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29096     break 2
29097   fi
29098 done
29099 done
29100 IFS=$as_save_IFS
29101
29102   ;;
29103 esac
29104 fi
29105 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29106 if test -n "$ac_pt_PKG_CONFIG"; then
29107   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29108 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29109 else
29110   { echo "$as_me:$LINENO: result: no" >&5
29111 echo "${ECHO_T}no" >&6; }
29112 fi
29113
29114   if test "x$ac_pt_PKG_CONFIG" = x; then
29115     PKG_CONFIG=""
29116   else
29117     case $cross_compiling:$ac_tool_warned in
29118 yes:)
29119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29120 whose name does not start with the host triplet.  If you think this
29121 configuration is useful to you, please write to autoconf@gnu.org." >&5
29122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29123 whose name does not start with the host triplet.  If you think this
29124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29125 ac_tool_warned=yes ;;
29126 esac
29127     PKG_CONFIG=$ac_pt_PKG_CONFIG
29128   fi
29129 else
29130   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29131 fi
29132
29133 fi
29134 if test -n "$PKG_CONFIG"; then
29135         _pkg_min_version=0.9.0
29136         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29137 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29138         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29139                 { echo "$as_me:$LINENO: result: yes" >&5
29140 echo "${ECHO_T}yes" >&6; }
29141         else
29142                 { echo "$as_me:$LINENO: result: no" >&5
29143 echo "${ECHO_T}no" >&6; }
29144                 PKG_CONFIG=""
29145         fi
29146
29147 fi
29148
29149
29150 pkg_failed=no
29151 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29152 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29153
29154 if test -n "$PKG_CONFIG"; then
29155     if test -n "$DIRECTFB_CFLAGS"; then
29156         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29157     else
29158         if test -n "$PKG_CONFIG" && \
29159     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29160   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29161   ac_status=$?
29162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163   (exit $ac_status); }; then
29164   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29165 else
29166   pkg_failed=yes
29167 fi
29168     fi
29169 else
29170         pkg_failed=untried
29171 fi
29172 if test -n "$PKG_CONFIG"; then
29173     if test -n "$DIRECTFB_LIBS"; then
29174         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29175     else
29176         if test -n "$PKG_CONFIG" && \
29177     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29178   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29179   ac_status=$?
29180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181   (exit $ac_status); }; then
29182   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29183 else
29184   pkg_failed=yes
29185 fi
29186     fi
29187 else
29188         pkg_failed=untried
29189 fi
29190
29191
29192
29193 if test $pkg_failed = yes; then
29194
29195 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29196         _pkg_short_errors_supported=yes
29197 else
29198         _pkg_short_errors_supported=no
29199 fi
29200         if test $_pkg_short_errors_supported = yes; then
29201                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29202         else
29203                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29204         fi
29205         # Put the nasty error message in config.log where it belongs
29206         echo "$DIRECTFB_PKG_ERRORS" >&5
29207
29208
29209                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29210 echo "$as_me: error: DirectFB not found." >&2;}
29211    { (exit 1); exit 1; }; }
29212
29213
29214 elif test $pkg_failed = untried; then
29215
29216                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29217 echo "$as_me: error: DirectFB not found." >&2;}
29218    { (exit 1); exit 1; }; }
29219
29220
29221 else
29222         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29223         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29224         { echo "$as_me:$LINENO: result: yes" >&5
29225 echo "${ECHO_T}yes" >&6; }
29226
29227                            wxUSE_UNIVERSAL="yes"
29228                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29229                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29230                            TOOLKIT=DFB
29231                            GUIDIST=DFB_DIST
29232
29233 fi
29234     fi
29235
29236     if test "$wxUSE_MICROWIN" = 1; then
29237         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29238 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29239         if test "x$MICROWINDOWS" = x ; then
29240             { echo "$as_me:$LINENO: result: not found" >&5
29241 echo "${ECHO_T}not found" >&6; }
29242             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29243 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29244    { (exit 1); exit 1; }; }
29245         else
29246             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29247 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29248         fi
29249
29250         if test -f $MICROWINDOWS/lib/libmwin.a; then
29251             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29252 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29253         else
29254             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29255 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29256    { (exit 1); exit 1; }; }
29257         fi
29258
29259         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29260         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29261
29262         wxUSE_UNIVERSAL="yes"
29263
29264         AFMINSTALL=afminstall
29265         TOOLKIT=MICROWIN
29266         GUIDIST=MICROWIN_DIST
29267
29268         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29269     fi
29270
29271         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29272                                 { echo "$as_me:$LINENO: checking for X" >&5
29273 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29274
29275
29276 # Check whether --with-x was given.
29277 if test "${with_x+set}" = set; then
29278   withval=$with_x;
29279 fi
29280
29281 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29282 if test "x$with_x" = xno; then
29283   # The user explicitly disabled X.
29284   have_x=disabled
29285 else
29286   case $x_includes,$x_libraries in #(
29287     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29288 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29289    { (exit 1); exit 1; }; };; #(
29290     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29291   echo $ECHO_N "(cached) $ECHO_C" >&6
29292 else
29293   # One or both of the vars are not set, and there is no cached value.
29294 ac_x_includes=no ac_x_libraries=no
29295 rm -f -r conftest.dir
29296 if mkdir conftest.dir; then
29297   cd conftest.dir
29298   cat >Imakefile <<'_ACEOF'
29299 incroot:
29300         @echo incroot='${INCROOT}'
29301 usrlibdir:
29302         @echo usrlibdir='${USRLIBDIR}'
29303 libdir:
29304         @echo libdir='${LIBDIR}'
29305 _ACEOF
29306   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29307     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29308     for ac_var in incroot usrlibdir libdir; do
29309       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29310     done
29311     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29312     for ac_extension in a so sl; do
29313       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29314          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29315         ac_im_usrlibdir=$ac_im_libdir; break
29316       fi
29317     done
29318     # Screen out bogus values from the imake configuration.  They are
29319     # bogus both because they are the default anyway, and because
29320     # using them would break gcc on systems where it needs fixed includes.
29321     case $ac_im_incroot in
29322         /usr/include) ac_x_includes= ;;
29323         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29324     esac
29325     case $ac_im_usrlibdir in
29326         /usr/lib | /lib) ;;
29327         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29328     esac
29329   fi
29330   cd ..
29331   rm -f -r conftest.dir
29332 fi
29333
29334 # Standard set of common directories for X headers.
29335 # Check X11 before X11Rn because it is often a symlink to the current release.
29336 ac_x_header_dirs='
29337 /usr/X11/include
29338 /usr/X11R6/include
29339 /usr/X11R5/include
29340 /usr/X11R4/include
29341
29342 /usr/include/X11
29343 /usr/include/X11R6
29344 /usr/include/X11R5
29345 /usr/include/X11R4
29346
29347 /usr/local/X11/include
29348 /usr/local/X11R6/include
29349 /usr/local/X11R5/include
29350 /usr/local/X11R4/include
29351
29352 /usr/local/include/X11
29353 /usr/local/include/X11R6
29354 /usr/local/include/X11R5
29355 /usr/local/include/X11R4
29356
29357 /usr/X386/include
29358 /usr/x386/include
29359 /usr/XFree86/include/X11
29360
29361 /usr/include
29362 /usr/local/include
29363 /usr/unsupported/include
29364 /usr/athena/include
29365 /usr/local/x11r5/include
29366 /usr/lpp/Xamples/include
29367
29368 /usr/openwin/include
29369 /usr/openwin/share/include'
29370
29371 if test "$ac_x_includes" = no; then
29372   # Guess where to find include files, by looking for Xlib.h.
29373   # First, try using that file with no special directory specified.
29374   cat >conftest.$ac_ext <<_ACEOF
29375 /* confdefs.h.  */
29376 _ACEOF
29377 cat confdefs.h >>conftest.$ac_ext
29378 cat >>conftest.$ac_ext <<_ACEOF
29379 /* end confdefs.h.  */
29380 #include <X11/Xlib.h>
29381 _ACEOF
29382 if { (ac_try="$ac_cpp conftest.$ac_ext"
29383 case "(($ac_try" in
29384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29385   *) ac_try_echo=$ac_try;;
29386 esac
29387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29389   ac_status=$?
29390   grep -v '^ *+' conftest.er1 >conftest.err
29391   rm -f conftest.er1
29392   cat conftest.err >&5
29393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394   (exit $ac_status); } >/dev/null && {
29395          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29396          test ! -s conftest.err
29397        }; then
29398   # We can compile using X headers with no special include directory.
29399 ac_x_includes=
29400 else
29401   echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29403
29404   for ac_dir in $ac_x_header_dirs; do
29405   if test -r "$ac_dir/X11/Xlib.h"; then
29406     ac_x_includes=$ac_dir
29407     break
29408   fi
29409 done
29410 fi
29411
29412 rm -f conftest.err conftest.$ac_ext
29413 fi # $ac_x_includes = no
29414
29415 if test "$ac_x_libraries" = no; then
29416   # Check for the libraries.
29417   # See if we find them without any special options.
29418   # Don't add to $LIBS permanently.
29419   ac_save_LIBS=$LIBS
29420   LIBS="-lX11 $LIBS"
29421   cat >conftest.$ac_ext <<_ACEOF
29422 /* confdefs.h.  */
29423 _ACEOF
29424 cat confdefs.h >>conftest.$ac_ext
29425 cat >>conftest.$ac_ext <<_ACEOF
29426 /* end confdefs.h.  */
29427 #include <X11/Xlib.h>
29428 int
29429 main ()
29430 {
29431 XrmInitialize ()
29432   ;
29433   return 0;
29434 }
29435 _ACEOF
29436 rm -f conftest.$ac_objext conftest$ac_exeext
29437 if { (ac_try="$ac_link"
29438 case "(($ac_try" in
29439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29440   *) ac_try_echo=$ac_try;;
29441 esac
29442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29443   (eval "$ac_link") 2>conftest.er1
29444   ac_status=$?
29445   grep -v '^ *+' conftest.er1 >conftest.err
29446   rm -f conftest.er1
29447   cat conftest.err >&5
29448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449   (exit $ac_status); } && {
29450          test -z "$ac_c_werror_flag" ||
29451          test ! -s conftest.err
29452        } && test -s conftest$ac_exeext &&
29453        $as_test_x conftest$ac_exeext; then
29454   LIBS=$ac_save_LIBS
29455 # We can link X programs with no special library path.
29456 ac_x_libraries=
29457 else
29458   echo "$as_me: failed program was:" >&5
29459 sed 's/^/| /' conftest.$ac_ext >&5
29460
29461         LIBS=$ac_save_LIBS
29462 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29463 do
29464   # Don't even attempt the hair of trying to link an X program!
29465   for ac_extension in a so sl; do
29466     if test -r "$ac_dir/libX11.$ac_extension"; then
29467       ac_x_libraries=$ac_dir
29468       break 2
29469     fi
29470   done
29471 done
29472 fi
29473
29474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29475       conftest$ac_exeext conftest.$ac_ext
29476 fi # $ac_x_libraries = no
29477
29478 case $ac_x_includes,$ac_x_libraries in #(
29479   no,* | *,no | *\'*)
29480     # Didn't find X, or a directory has "'" in its name.
29481     ac_cv_have_x="have_x=no";; #(
29482   *)
29483     # Record where we found X for the cache.
29484     ac_cv_have_x="have_x=yes\
29485         ac_x_includes='$ac_x_includes'\
29486         ac_x_libraries='$ac_x_libraries'"
29487 esac
29488 fi
29489 ;; #(
29490     *) have_x=yes;;
29491   esac
29492   eval "$ac_cv_have_x"
29493 fi # $with_x != no
29494
29495 if test "$have_x" != yes; then
29496   { echo "$as_me:$LINENO: result: $have_x" >&5
29497 echo "${ECHO_T}$have_x" >&6; }
29498   no_x=yes
29499 else
29500   # If each of the values was on the command line, it overrides each guess.
29501   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29502   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29503   # Update the cache value to reflect the command line values.
29504   ac_cv_have_x="have_x=yes\
29505         ac_x_includes='$x_includes'\
29506         ac_x_libraries='$x_libraries'"
29507   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29508 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29509 fi
29510
29511 if test "$no_x" = yes; then
29512   # Not all programs may use this symbol, but it does not hurt to define it.
29513
29514 cat >>confdefs.h <<\_ACEOF
29515 #define X_DISPLAY_MISSING 1
29516 _ACEOF
29517
29518   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29519 else
29520   if test -n "$x_includes"; then
29521     X_CFLAGS="$X_CFLAGS -I$x_includes"
29522   fi
29523
29524   # It would also be nice to do this for all -L options, not just this one.
29525   if test -n "$x_libraries"; then
29526     X_LIBS="$X_LIBS -L$x_libraries"
29527     # For Solaris; some versions of Sun CC require a space after -R and
29528     # others require no space.  Words are not sufficient . . . .
29529     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29530 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29531     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29532     ac_xsave_c_werror_flag=$ac_c_werror_flag
29533     ac_c_werror_flag=yes
29534     cat >conftest.$ac_ext <<_ACEOF
29535 /* confdefs.h.  */
29536 _ACEOF
29537 cat confdefs.h >>conftest.$ac_ext
29538 cat >>conftest.$ac_ext <<_ACEOF
29539 /* end confdefs.h.  */
29540
29541 int
29542 main ()
29543 {
29544
29545   ;
29546   return 0;
29547 }
29548 _ACEOF
29549 rm -f conftest.$ac_objext conftest$ac_exeext
29550 if { (ac_try="$ac_link"
29551 case "(($ac_try" in
29552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29553   *) ac_try_echo=$ac_try;;
29554 esac
29555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29556   (eval "$ac_link") 2>conftest.er1
29557   ac_status=$?
29558   grep -v '^ *+' conftest.er1 >conftest.err
29559   rm -f conftest.er1
29560   cat conftest.err >&5
29561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562   (exit $ac_status); } && {
29563          test -z "$ac_c_werror_flag" ||
29564          test ! -s conftest.err
29565        } && test -s conftest$ac_exeext &&
29566        $as_test_x conftest$ac_exeext; then
29567   { echo "$as_me:$LINENO: result: no" >&5
29568 echo "${ECHO_T}no" >&6; }
29569        X_LIBS="$X_LIBS -R$x_libraries"
29570 else
29571   echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29573
29574         LIBS="$ac_xsave_LIBS -R $x_libraries"
29575        cat >conftest.$ac_ext <<_ACEOF
29576 /* confdefs.h.  */
29577 _ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h.  */
29581
29582 int
29583 main ()
29584 {
29585
29586   ;
29587   return 0;
29588 }
29589 _ACEOF
29590 rm -f conftest.$ac_objext conftest$ac_exeext
29591 if { (ac_try="$ac_link"
29592 case "(($ac_try" in
29593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29594   *) ac_try_echo=$ac_try;;
29595 esac
29596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29597   (eval "$ac_link") 2>conftest.er1
29598   ac_status=$?
29599   grep -v '^ *+' conftest.er1 >conftest.err
29600   rm -f conftest.er1
29601   cat conftest.err >&5
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); } && {
29604          test -z "$ac_c_werror_flag" ||
29605          test ! -s conftest.err
29606        } && test -s conftest$ac_exeext &&
29607        $as_test_x conftest$ac_exeext; then
29608   { echo "$as_me:$LINENO: result: yes" >&5
29609 echo "${ECHO_T}yes" >&6; }
29610           X_LIBS="$X_LIBS -R $x_libraries"
29611 else
29612   echo "$as_me: failed program was:" >&5
29613 sed 's/^/| /' conftest.$ac_ext >&5
29614
29615         { echo "$as_me:$LINENO: result: neither works" >&5
29616 echo "${ECHO_T}neither works" >&6; }
29617 fi
29618
29619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29620       conftest$ac_exeext conftest.$ac_ext
29621 fi
29622
29623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29624       conftest$ac_exeext conftest.$ac_ext
29625     ac_c_werror_flag=$ac_xsave_c_werror_flag
29626     LIBS=$ac_xsave_LIBS
29627   fi
29628
29629   # Check for system-dependent libraries X programs must link with.
29630   # Do this before checking for the system-independent R6 libraries
29631   # (-lICE), since we may need -lsocket or whatever for X linking.
29632
29633   if test "$ISC" = yes; then
29634     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29635   else
29636     # Martyn Johnson says this is needed for Ultrix, if the X
29637     # libraries were built with DECnet support.  And Karl Berry says
29638     # the Alpha needs dnet_stub (dnet does not exist).
29639     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29640     cat >conftest.$ac_ext <<_ACEOF
29641 /* confdefs.h.  */
29642 _ACEOF
29643 cat confdefs.h >>conftest.$ac_ext
29644 cat >>conftest.$ac_ext <<_ACEOF
29645 /* end confdefs.h.  */
29646
29647 /* Override any GCC internal prototype to avoid an error.
29648    Use char because int might match the return type of a GCC
29649    builtin and then its argument prototype would still apply.  */
29650 #ifdef __cplusplus
29651 extern "C"
29652 #endif
29653 char XOpenDisplay ();
29654 int
29655 main ()
29656 {
29657 return XOpenDisplay ();
29658   ;
29659   return 0;
29660 }
29661 _ACEOF
29662 rm -f conftest.$ac_objext conftest$ac_exeext
29663 if { (ac_try="$ac_link"
29664 case "(($ac_try" in
29665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666   *) ac_try_echo=$ac_try;;
29667 esac
29668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669   (eval "$ac_link") 2>conftest.er1
29670   ac_status=$?
29671   grep -v '^ *+' conftest.er1 >conftest.err
29672   rm -f conftest.er1
29673   cat conftest.err >&5
29674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675   (exit $ac_status); } && {
29676          test -z "$ac_c_werror_flag" ||
29677          test ! -s conftest.err
29678        } && test -s conftest$ac_exeext &&
29679        $as_test_x conftest$ac_exeext; then
29680   :
29681 else
29682   echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29684
29685         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29686 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29687 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29688   echo $ECHO_N "(cached) $ECHO_C" >&6
29689 else
29690   ac_check_lib_save_LIBS=$LIBS
29691 LIBS="-ldnet  $LIBS"
29692 cat >conftest.$ac_ext <<_ACEOF
29693 /* confdefs.h.  */
29694 _ACEOF
29695 cat confdefs.h >>conftest.$ac_ext
29696 cat >>conftest.$ac_ext <<_ACEOF
29697 /* end confdefs.h.  */
29698
29699 /* Override any GCC internal prototype to avoid an error.
29700    Use char because int might match the return type of a GCC
29701    builtin and then its argument prototype would still apply.  */
29702 #ifdef __cplusplus
29703 extern "C"
29704 #endif
29705 char dnet_ntoa ();
29706 int
29707 main ()
29708 {
29709 return dnet_ntoa ();
29710   ;
29711   return 0;
29712 }
29713 _ACEOF
29714 rm -f conftest.$ac_objext conftest$ac_exeext
29715 if { (ac_try="$ac_link"
29716 case "(($ac_try" in
29717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718   *) ac_try_echo=$ac_try;;
29719 esac
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721   (eval "$ac_link") 2>conftest.er1
29722   ac_status=$?
29723   grep -v '^ *+' conftest.er1 >conftest.err
29724   rm -f conftest.er1
29725   cat conftest.err >&5
29726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727   (exit $ac_status); } && {
29728          test -z "$ac_c_werror_flag" ||
29729          test ! -s conftest.err
29730        } && test -s conftest$ac_exeext &&
29731        $as_test_x conftest$ac_exeext; then
29732   ac_cv_lib_dnet_dnet_ntoa=yes
29733 else
29734   echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29736
29737         ac_cv_lib_dnet_dnet_ntoa=no
29738 fi
29739
29740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29741       conftest$ac_exeext conftest.$ac_ext
29742 LIBS=$ac_check_lib_save_LIBS
29743 fi
29744 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29745 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29746 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29747   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29748 fi
29749
29750     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29751       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29752 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29753 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29754   echo $ECHO_N "(cached) $ECHO_C" >&6
29755 else
29756   ac_check_lib_save_LIBS=$LIBS
29757 LIBS="-ldnet_stub  $LIBS"
29758 cat >conftest.$ac_ext <<_ACEOF
29759 /* confdefs.h.  */
29760 _ACEOF
29761 cat confdefs.h >>conftest.$ac_ext
29762 cat >>conftest.$ac_ext <<_ACEOF
29763 /* end confdefs.h.  */
29764
29765 /* Override any GCC internal prototype to avoid an error.
29766    Use char because int might match the return type of a GCC
29767    builtin and then its argument prototype would still apply.  */
29768 #ifdef __cplusplus
29769 extern "C"
29770 #endif
29771 char dnet_ntoa ();
29772 int
29773 main ()
29774 {
29775 return dnet_ntoa ();
29776   ;
29777   return 0;
29778 }
29779 _ACEOF
29780 rm -f conftest.$ac_objext conftest$ac_exeext
29781 if { (ac_try="$ac_link"
29782 case "(($ac_try" in
29783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784   *) ac_try_echo=$ac_try;;
29785 esac
29786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29787   (eval "$ac_link") 2>conftest.er1
29788   ac_status=$?
29789   grep -v '^ *+' conftest.er1 >conftest.err
29790   rm -f conftest.er1
29791   cat conftest.err >&5
29792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793   (exit $ac_status); } && {
29794          test -z "$ac_c_werror_flag" ||
29795          test ! -s conftest.err
29796        } && test -s conftest$ac_exeext &&
29797        $as_test_x conftest$ac_exeext; then
29798   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29799 else
29800   echo "$as_me: failed program was:" >&5
29801 sed 's/^/| /' conftest.$ac_ext >&5
29802
29803         ac_cv_lib_dnet_stub_dnet_ntoa=no
29804 fi
29805
29806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29807       conftest$ac_exeext conftest.$ac_ext
29808 LIBS=$ac_check_lib_save_LIBS
29809 fi
29810 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29811 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29812 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29813   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29814 fi
29815
29816     fi
29817 fi
29818
29819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29820       conftest$ac_exeext conftest.$ac_ext
29821     LIBS="$ac_xsave_LIBS"
29822
29823     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29824     # to get the SysV transport functions.
29825     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29826     # needs -lnsl.
29827     # The nsl library prevents programs from opening the X display
29828     # on Irix 5.2, according to T.E. Dickey.
29829     # The functions gethostbyname, getservbyname, and inet_addr are
29830     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29831     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29832 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29833 if test "${ac_cv_func_gethostbyname+set}" = set; then
29834   echo $ECHO_N "(cached) $ECHO_C" >&6
29835 else
29836   cat >conftest.$ac_ext <<_ACEOF
29837 /* confdefs.h.  */
29838 _ACEOF
29839 cat confdefs.h >>conftest.$ac_ext
29840 cat >>conftest.$ac_ext <<_ACEOF
29841 /* end confdefs.h.  */
29842 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29844 #define gethostbyname innocuous_gethostbyname
29845
29846 /* System header to define __stub macros and hopefully few prototypes,
29847     which can conflict with char gethostbyname (); below.
29848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29849     <limits.h> exists even on freestanding compilers.  */
29850
29851 #ifdef __STDC__
29852 # include <limits.h>
29853 #else
29854 # include <assert.h>
29855 #endif
29856
29857 #undef gethostbyname
29858
29859 /* Override any GCC internal prototype to avoid an error.
29860    Use char because int might match the return type of a GCC
29861    builtin and then its argument prototype would still apply.  */
29862 #ifdef __cplusplus
29863 extern "C"
29864 #endif
29865 char gethostbyname ();
29866 /* The GNU C library defines this for functions which it implements
29867     to always fail with ENOSYS.  Some functions are actually named
29868     something starting with __ and the normal name is an alias.  */
29869 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29870 choke me
29871 #endif
29872
29873 int
29874 main ()
29875 {
29876 return gethostbyname ();
29877   ;
29878   return 0;
29879 }
29880 _ACEOF
29881 rm -f conftest.$ac_objext conftest$ac_exeext
29882 if { (ac_try="$ac_link"
29883 case "(($ac_try" in
29884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885   *) ac_try_echo=$ac_try;;
29886 esac
29887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29888   (eval "$ac_link") 2>conftest.er1
29889   ac_status=$?
29890   grep -v '^ *+' conftest.er1 >conftest.err
29891   rm -f conftest.er1
29892   cat conftest.err >&5
29893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894   (exit $ac_status); } && {
29895          test -z "$ac_c_werror_flag" ||
29896          test ! -s conftest.err
29897        } && test -s conftest$ac_exeext &&
29898        $as_test_x conftest$ac_exeext; then
29899   ac_cv_func_gethostbyname=yes
29900 else
29901   echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29903
29904         ac_cv_func_gethostbyname=no
29905 fi
29906
29907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29908       conftest$ac_exeext conftest.$ac_ext
29909 fi
29910 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29911 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29912
29913     if test $ac_cv_func_gethostbyname = no; then
29914       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29915 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29916 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29917   echo $ECHO_N "(cached) $ECHO_C" >&6
29918 else
29919   ac_check_lib_save_LIBS=$LIBS
29920 LIBS="-lnsl  $LIBS"
29921 cat >conftest.$ac_ext <<_ACEOF
29922 /* confdefs.h.  */
29923 _ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h.  */
29927
29928 /* Override any GCC internal prototype to avoid an error.
29929    Use char because int might match the return type of a GCC
29930    builtin and then its argument prototype would still apply.  */
29931 #ifdef __cplusplus
29932 extern "C"
29933 #endif
29934 char gethostbyname ();
29935 int
29936 main ()
29937 {
29938 return gethostbyname ();
29939   ;
29940   return 0;
29941 }
29942 _ACEOF
29943 rm -f conftest.$ac_objext conftest$ac_exeext
29944 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
29951   ac_status=$?
29952   grep -v '^ *+' conftest.er1 >conftest.err
29953   rm -f conftest.er1
29954   cat conftest.err >&5
29955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956   (exit $ac_status); } && {
29957          test -z "$ac_c_werror_flag" ||
29958          test ! -s conftest.err
29959        } && test -s conftest$ac_exeext &&
29960        $as_test_x conftest$ac_exeext; then
29961   ac_cv_lib_nsl_gethostbyname=yes
29962 else
29963   echo "$as_me: failed program was:" >&5
29964 sed 's/^/| /' conftest.$ac_ext >&5
29965
29966         ac_cv_lib_nsl_gethostbyname=no
29967 fi
29968
29969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29970       conftest$ac_exeext conftest.$ac_ext
29971 LIBS=$ac_check_lib_save_LIBS
29972 fi
29973 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29974 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29975 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29976   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29977 fi
29978
29979       if test $ac_cv_lib_nsl_gethostbyname = no; then
29980         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29981 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29982 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29983   echo $ECHO_N "(cached) $ECHO_C" >&6
29984 else
29985   ac_check_lib_save_LIBS=$LIBS
29986 LIBS="-lbsd  $LIBS"
29987 cat >conftest.$ac_ext <<_ACEOF
29988 /* confdefs.h.  */
29989 _ACEOF
29990 cat confdefs.h >>conftest.$ac_ext
29991 cat >>conftest.$ac_ext <<_ACEOF
29992 /* end confdefs.h.  */
29993
29994 /* Override any GCC internal prototype to avoid an error.
29995    Use char because int might match the return type of a GCC
29996    builtin and then its argument prototype would still apply.  */
29997 #ifdef __cplusplus
29998 extern "C"
29999 #endif
30000 char gethostbyname ();
30001 int
30002 main ()
30003 {
30004 return gethostbyname ();
30005   ;
30006   return 0;
30007 }
30008 _ACEOF
30009 rm -f conftest.$ac_objext conftest$ac_exeext
30010 if { (ac_try="$ac_link"
30011 case "(($ac_try" in
30012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013   *) ac_try_echo=$ac_try;;
30014 esac
30015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016   (eval "$ac_link") 2>conftest.er1
30017   ac_status=$?
30018   grep -v '^ *+' conftest.er1 >conftest.err
30019   rm -f conftest.er1
30020   cat conftest.err >&5
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); } && {
30023          test -z "$ac_c_werror_flag" ||
30024          test ! -s conftest.err
30025        } && test -s conftest$ac_exeext &&
30026        $as_test_x conftest$ac_exeext; then
30027   ac_cv_lib_bsd_gethostbyname=yes
30028 else
30029   echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30031
30032         ac_cv_lib_bsd_gethostbyname=no
30033 fi
30034
30035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30036       conftest$ac_exeext conftest.$ac_ext
30037 LIBS=$ac_check_lib_save_LIBS
30038 fi
30039 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30040 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30041 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30042   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30043 fi
30044
30045       fi
30046     fi
30047
30048     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30049     # socket/setsockopt and other routines are undefined under SCO ODT
30050     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30051     # on later versions), says Simon Leinen: it contains gethostby*
30052     # variants that don't use the name server (or something).  -lsocket
30053     # must be given before -lnsl if both are needed.  We assume that
30054     # if connect needs -lnsl, so does gethostbyname.
30055     { echo "$as_me:$LINENO: checking for connect" >&5
30056 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30057 if test "${ac_cv_func_connect+set}" = set; then
30058   echo $ECHO_N "(cached) $ECHO_C" >&6
30059 else
30060   cat >conftest.$ac_ext <<_ACEOF
30061 /* confdefs.h.  */
30062 _ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h.  */
30066 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30068 #define connect innocuous_connect
30069
30070 /* System header to define __stub macros and hopefully few prototypes,
30071     which can conflict with char connect (); below.
30072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30073     <limits.h> exists even on freestanding compilers.  */
30074
30075 #ifdef __STDC__
30076 # include <limits.h>
30077 #else
30078 # include <assert.h>
30079 #endif
30080
30081 #undef connect
30082
30083 /* Override any GCC internal prototype to avoid an error.
30084    Use char because int might match the return type of a GCC
30085    builtin and then its argument prototype would still apply.  */
30086 #ifdef __cplusplus
30087 extern "C"
30088 #endif
30089 char connect ();
30090 /* The GNU C library defines this for functions which it implements
30091     to always fail with ENOSYS.  Some functions are actually named
30092     something starting with __ and the normal name is an alias.  */
30093 #if defined __stub_connect || defined __stub___connect
30094 choke me
30095 #endif
30096
30097 int
30098 main ()
30099 {
30100 return connect ();
30101   ;
30102   return 0;
30103 }
30104 _ACEOF
30105 rm -f conftest.$ac_objext conftest$ac_exeext
30106 if { (ac_try="$ac_link"
30107 case "(($ac_try" in
30108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109   *) ac_try_echo=$ac_try;;
30110 esac
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112   (eval "$ac_link") 2>conftest.er1
30113   ac_status=$?
30114   grep -v '^ *+' conftest.er1 >conftest.err
30115   rm -f conftest.er1
30116   cat conftest.err >&5
30117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118   (exit $ac_status); } && {
30119          test -z "$ac_c_werror_flag" ||
30120          test ! -s conftest.err
30121        } && test -s conftest$ac_exeext &&
30122        $as_test_x conftest$ac_exeext; then
30123   ac_cv_func_connect=yes
30124 else
30125   echo "$as_me: failed program was:" >&5
30126 sed 's/^/| /' conftest.$ac_ext >&5
30127
30128         ac_cv_func_connect=no
30129 fi
30130
30131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30132       conftest$ac_exeext conftest.$ac_ext
30133 fi
30134 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30135 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30136
30137     if test $ac_cv_func_connect = no; then
30138       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30139 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30140 if test "${ac_cv_lib_socket_connect+set}" = set; then
30141   echo $ECHO_N "(cached) $ECHO_C" >&6
30142 else
30143   ac_check_lib_save_LIBS=$LIBS
30144 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30145 cat >conftest.$ac_ext <<_ACEOF
30146 /* confdefs.h.  */
30147 _ACEOF
30148 cat confdefs.h >>conftest.$ac_ext
30149 cat >>conftest.$ac_ext <<_ACEOF
30150 /* end confdefs.h.  */
30151
30152 /* Override any GCC internal prototype to avoid an error.
30153    Use char because int might match the return type of a GCC
30154    builtin and then its argument prototype would still apply.  */
30155 #ifdef __cplusplus
30156 extern "C"
30157 #endif
30158 char connect ();
30159 int
30160 main ()
30161 {
30162 return connect ();
30163   ;
30164   return 0;
30165 }
30166 _ACEOF
30167 rm -f conftest.$ac_objext conftest$ac_exeext
30168 if { (ac_try="$ac_link"
30169 case "(($ac_try" in
30170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30171   *) ac_try_echo=$ac_try;;
30172 esac
30173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30174   (eval "$ac_link") 2>conftest.er1
30175   ac_status=$?
30176   grep -v '^ *+' conftest.er1 >conftest.err
30177   rm -f conftest.er1
30178   cat conftest.err >&5
30179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180   (exit $ac_status); } && {
30181          test -z "$ac_c_werror_flag" ||
30182          test ! -s conftest.err
30183        } && test -s conftest$ac_exeext &&
30184        $as_test_x conftest$ac_exeext; then
30185   ac_cv_lib_socket_connect=yes
30186 else
30187   echo "$as_me: failed program was:" >&5
30188 sed 's/^/| /' conftest.$ac_ext >&5
30189
30190         ac_cv_lib_socket_connect=no
30191 fi
30192
30193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30194       conftest$ac_exeext conftest.$ac_ext
30195 LIBS=$ac_check_lib_save_LIBS
30196 fi
30197 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30198 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30199 if test $ac_cv_lib_socket_connect = yes; then
30200   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30201 fi
30202
30203     fi
30204
30205     # Guillermo Gomez says -lposix is necessary on A/UX.
30206     { echo "$as_me:$LINENO: checking for remove" >&5
30207 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30208 if test "${ac_cv_func_remove+set}" = set; then
30209   echo $ECHO_N "(cached) $ECHO_C" >&6
30210 else
30211   cat >conftest.$ac_ext <<_ACEOF
30212 /* confdefs.h.  */
30213 _ACEOF
30214 cat confdefs.h >>conftest.$ac_ext
30215 cat >>conftest.$ac_ext <<_ACEOF
30216 /* end confdefs.h.  */
30217 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30219 #define remove innocuous_remove
30220
30221 /* System header to define __stub macros and hopefully few prototypes,
30222     which can conflict with char remove (); below.
30223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30224     <limits.h> exists even on freestanding compilers.  */
30225
30226 #ifdef __STDC__
30227 # include <limits.h>
30228 #else
30229 # include <assert.h>
30230 #endif
30231
30232 #undef remove
30233
30234 /* Override any GCC internal prototype to avoid an error.
30235    Use char because int might match the return type of a GCC
30236    builtin and then its argument prototype would still apply.  */
30237 #ifdef __cplusplus
30238 extern "C"
30239 #endif
30240 char remove ();
30241 /* The GNU C library defines this for functions which it implements
30242     to always fail with ENOSYS.  Some functions are actually named
30243     something starting with __ and the normal name is an alias.  */
30244 #if defined __stub_remove || defined __stub___remove
30245 choke me
30246 #endif
30247
30248 int
30249 main ()
30250 {
30251 return remove ();
30252   ;
30253   return 0;
30254 }
30255 _ACEOF
30256 rm -f conftest.$ac_objext conftest$ac_exeext
30257 if { (ac_try="$ac_link"
30258 case "(($ac_try" in
30259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30260   *) ac_try_echo=$ac_try;;
30261 esac
30262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30263   (eval "$ac_link") 2>conftest.er1
30264   ac_status=$?
30265   grep -v '^ *+' conftest.er1 >conftest.err
30266   rm -f conftest.er1
30267   cat conftest.err >&5
30268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269   (exit $ac_status); } && {
30270          test -z "$ac_c_werror_flag" ||
30271          test ! -s conftest.err
30272        } && test -s conftest$ac_exeext &&
30273        $as_test_x conftest$ac_exeext; then
30274   ac_cv_func_remove=yes
30275 else
30276   echo "$as_me: failed program was:" >&5
30277 sed 's/^/| /' conftest.$ac_ext >&5
30278
30279         ac_cv_func_remove=no
30280 fi
30281
30282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30283       conftest$ac_exeext conftest.$ac_ext
30284 fi
30285 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30286 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30287
30288     if test $ac_cv_func_remove = no; then
30289       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30290 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30291 if test "${ac_cv_lib_posix_remove+set}" = set; then
30292   echo $ECHO_N "(cached) $ECHO_C" >&6
30293 else
30294   ac_check_lib_save_LIBS=$LIBS
30295 LIBS="-lposix  $LIBS"
30296 cat >conftest.$ac_ext <<_ACEOF
30297 /* confdefs.h.  */
30298 _ACEOF
30299 cat confdefs.h >>conftest.$ac_ext
30300 cat >>conftest.$ac_ext <<_ACEOF
30301 /* end confdefs.h.  */
30302
30303 /* Override any GCC internal prototype to avoid an error.
30304    Use char because int might match the return type of a GCC
30305    builtin and then its argument prototype would still apply.  */
30306 #ifdef __cplusplus
30307 extern "C"
30308 #endif
30309 char remove ();
30310 int
30311 main ()
30312 {
30313 return remove ();
30314   ;
30315   return 0;
30316 }
30317 _ACEOF
30318 rm -f conftest.$ac_objext conftest$ac_exeext
30319 if { (ac_try="$ac_link"
30320 case "(($ac_try" in
30321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30322   *) ac_try_echo=$ac_try;;
30323 esac
30324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30325   (eval "$ac_link") 2>conftest.er1
30326   ac_status=$?
30327   grep -v '^ *+' conftest.er1 >conftest.err
30328   rm -f conftest.er1
30329   cat conftest.err >&5
30330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331   (exit $ac_status); } && {
30332          test -z "$ac_c_werror_flag" ||
30333          test ! -s conftest.err
30334        } && test -s conftest$ac_exeext &&
30335        $as_test_x conftest$ac_exeext; then
30336   ac_cv_lib_posix_remove=yes
30337 else
30338   echo "$as_me: failed program was:" >&5
30339 sed 's/^/| /' conftest.$ac_ext >&5
30340
30341         ac_cv_lib_posix_remove=no
30342 fi
30343
30344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30345       conftest$ac_exeext conftest.$ac_ext
30346 LIBS=$ac_check_lib_save_LIBS
30347 fi
30348 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30349 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30350 if test $ac_cv_lib_posix_remove = yes; then
30351   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30352 fi
30353
30354     fi
30355
30356     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30357     { echo "$as_me:$LINENO: checking for shmat" >&5
30358 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30359 if test "${ac_cv_func_shmat+set}" = set; then
30360   echo $ECHO_N "(cached) $ECHO_C" >&6
30361 else
30362   cat >conftest.$ac_ext <<_ACEOF
30363 /* confdefs.h.  */
30364 _ACEOF
30365 cat confdefs.h >>conftest.$ac_ext
30366 cat >>conftest.$ac_ext <<_ACEOF
30367 /* end confdefs.h.  */
30368 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30370 #define shmat innocuous_shmat
30371
30372 /* System header to define __stub macros and hopefully few prototypes,
30373     which can conflict with char shmat (); below.
30374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30375     <limits.h> exists even on freestanding compilers.  */
30376
30377 #ifdef __STDC__
30378 # include <limits.h>
30379 #else
30380 # include <assert.h>
30381 #endif
30382
30383 #undef shmat
30384
30385 /* Override any GCC internal prototype to avoid an error.
30386    Use char because int might match the return type of a GCC
30387    builtin and then its argument prototype would still apply.  */
30388 #ifdef __cplusplus
30389 extern "C"
30390 #endif
30391 char shmat ();
30392 /* The GNU C library defines this for functions which it implements
30393     to always fail with ENOSYS.  Some functions are actually named
30394     something starting with __ and the normal name is an alias.  */
30395 #if defined __stub_shmat || defined __stub___shmat
30396 choke me
30397 #endif
30398
30399 int
30400 main ()
30401 {
30402 return shmat ();
30403   ;
30404   return 0;
30405 }
30406 _ACEOF
30407 rm -f conftest.$ac_objext conftest$ac_exeext
30408 if { (ac_try="$ac_link"
30409 case "(($ac_try" in
30410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411   *) ac_try_echo=$ac_try;;
30412 esac
30413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414   (eval "$ac_link") 2>conftest.er1
30415   ac_status=$?
30416   grep -v '^ *+' conftest.er1 >conftest.err
30417   rm -f conftest.er1
30418   cat conftest.err >&5
30419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420   (exit $ac_status); } && {
30421          test -z "$ac_c_werror_flag" ||
30422          test ! -s conftest.err
30423        } && test -s conftest$ac_exeext &&
30424        $as_test_x conftest$ac_exeext; then
30425   ac_cv_func_shmat=yes
30426 else
30427   echo "$as_me: failed program was:" >&5
30428 sed 's/^/| /' conftest.$ac_ext >&5
30429
30430         ac_cv_func_shmat=no
30431 fi
30432
30433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30434       conftest$ac_exeext conftest.$ac_ext
30435 fi
30436 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30437 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30438
30439     if test $ac_cv_func_shmat = no; then
30440       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30441 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30442 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30443   echo $ECHO_N "(cached) $ECHO_C" >&6
30444 else
30445   ac_check_lib_save_LIBS=$LIBS
30446 LIBS="-lipc  $LIBS"
30447 cat >conftest.$ac_ext <<_ACEOF
30448 /* confdefs.h.  */
30449 _ACEOF
30450 cat confdefs.h >>conftest.$ac_ext
30451 cat >>conftest.$ac_ext <<_ACEOF
30452 /* end confdefs.h.  */
30453
30454 /* Override any GCC internal prototype to avoid an error.
30455    Use char because int might match the return type of a GCC
30456    builtin and then its argument prototype would still apply.  */
30457 #ifdef __cplusplus
30458 extern "C"
30459 #endif
30460 char shmat ();
30461 int
30462 main ()
30463 {
30464 return shmat ();
30465   ;
30466   return 0;
30467 }
30468 _ACEOF
30469 rm -f conftest.$ac_objext conftest$ac_exeext
30470 if { (ac_try="$ac_link"
30471 case "(($ac_try" in
30472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473   *) ac_try_echo=$ac_try;;
30474 esac
30475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30476   (eval "$ac_link") 2>conftest.er1
30477   ac_status=$?
30478   grep -v '^ *+' conftest.er1 >conftest.err
30479   rm -f conftest.er1
30480   cat conftest.err >&5
30481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482   (exit $ac_status); } && {
30483          test -z "$ac_c_werror_flag" ||
30484          test ! -s conftest.err
30485        } && test -s conftest$ac_exeext &&
30486        $as_test_x conftest$ac_exeext; then
30487   ac_cv_lib_ipc_shmat=yes
30488 else
30489   echo "$as_me: failed program was:" >&5
30490 sed 's/^/| /' conftest.$ac_ext >&5
30491
30492         ac_cv_lib_ipc_shmat=no
30493 fi
30494
30495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30496       conftest$ac_exeext conftest.$ac_ext
30497 LIBS=$ac_check_lib_save_LIBS
30498 fi
30499 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30500 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30501 if test $ac_cv_lib_ipc_shmat = yes; then
30502   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30503 fi
30504
30505     fi
30506   fi
30507
30508   # Check for libraries that X11R6 Xt/Xaw programs need.
30509   ac_save_LDFLAGS=$LDFLAGS
30510   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30511   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30512   # check for ICE first), but we must link in the order -lSM -lICE or
30513   # we get undefined symbols.  So assume we have SM if we have ICE.
30514   # These have to be linked with before -lX11, unlike the other
30515   # libraries we check for below, so use a different variable.
30516   # John Interrante, Karl Berry
30517   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30518 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30519 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30520   echo $ECHO_N "(cached) $ECHO_C" >&6
30521 else
30522   ac_check_lib_save_LIBS=$LIBS
30523 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30524 cat >conftest.$ac_ext <<_ACEOF
30525 /* confdefs.h.  */
30526 _ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h.  */
30530
30531 /* Override any GCC internal prototype to avoid an error.
30532    Use char because int might match the return type of a GCC
30533    builtin and then its argument prototype would still apply.  */
30534 #ifdef __cplusplus
30535 extern "C"
30536 #endif
30537 char IceConnectionNumber ();
30538 int
30539 main ()
30540 {
30541 return IceConnectionNumber ();
30542   ;
30543   return 0;
30544 }
30545 _ACEOF
30546 rm -f conftest.$ac_objext conftest$ac_exeext
30547 if { (ac_try="$ac_link"
30548 case "(($ac_try" in
30549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550   *) ac_try_echo=$ac_try;;
30551 esac
30552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553   (eval "$ac_link") 2>conftest.er1
30554   ac_status=$?
30555   grep -v '^ *+' conftest.er1 >conftest.err
30556   rm -f conftest.er1
30557   cat conftest.err >&5
30558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559   (exit $ac_status); } && {
30560          test -z "$ac_c_werror_flag" ||
30561          test ! -s conftest.err
30562        } && test -s conftest$ac_exeext &&
30563        $as_test_x conftest$ac_exeext; then
30564   ac_cv_lib_ICE_IceConnectionNumber=yes
30565 else
30566   echo "$as_me: failed program was:" >&5
30567 sed 's/^/| /' conftest.$ac_ext >&5
30568
30569         ac_cv_lib_ICE_IceConnectionNumber=no
30570 fi
30571
30572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30573       conftest$ac_exeext conftest.$ac_ext
30574 LIBS=$ac_check_lib_save_LIBS
30575 fi
30576 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30577 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30578 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30579   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30580 fi
30581
30582   LDFLAGS=$ac_save_LDFLAGS
30583
30584 fi
30585
30586
30587         if test "$no_x" = "yes"; then
30588           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30589 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30590    { (exit 1); exit 1; }; }
30591         fi
30592
30593                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30594         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
30595         AFMINSTALL=afminstall
30596         COMPILED_X_PROGRAM=0
30597
30598     fi
30599
30600     if test "$wxUSE_X11" = 1; then
30601         if test "$wxUSE_NANOX" = "yes"; then
30602             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30603 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
30604             if test "x$MICROWIN" = x ; then
30605                 { echo "$as_me:$LINENO: result: not found" >&5
30606 echo "${ECHO_T}not found" >&6; }
30607                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30608 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30609    { (exit 1); exit 1; }; }
30610             else
30611                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
30612 echo "${ECHO_T}$MICROWIN" >&6; }
30613                 cat >>confdefs.h <<\_ACEOF
30614 #define wxUSE_NANOX 1
30615 _ACEOF
30616
30617             fi
30618         fi
30619
30620         if test "$wxUSE_UNICODE" = "yes"; then
30621
30622
30623 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30624         if test -n "$ac_tool_prefix"; then
30625   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30626 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30629 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30630   echo $ECHO_N "(cached) $ECHO_C" >&6
30631 else
30632   case $PKG_CONFIG in
30633   [\\/]* | ?:[\\/]*)
30634   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30635   ;;
30636   *)
30637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30638 for as_dir in $PATH
30639 do
30640   IFS=$as_save_IFS
30641   test -z "$as_dir" && as_dir=.
30642   for ac_exec_ext in '' $ac_executable_extensions; do
30643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30644     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30646     break 2
30647   fi
30648 done
30649 done
30650 IFS=$as_save_IFS
30651
30652   ;;
30653 esac
30654 fi
30655 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30656 if test -n "$PKG_CONFIG"; then
30657   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30658 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30659 else
30660   { echo "$as_me:$LINENO: result: no" >&5
30661 echo "${ECHO_T}no" >&6; }
30662 fi
30663
30664
30665 fi
30666 if test -z "$ac_cv_path_PKG_CONFIG"; then
30667   ac_pt_PKG_CONFIG=$PKG_CONFIG
30668   # Extract the first word of "pkg-config", so it can be a program name with args.
30669 set dummy pkg-config; ac_word=$2
30670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30672 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30673   echo $ECHO_N "(cached) $ECHO_C" >&6
30674 else
30675   case $ac_pt_PKG_CONFIG in
30676   [\\/]* | ?:[\\/]*)
30677   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30678   ;;
30679   *)
30680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30681 for as_dir in $PATH
30682 do
30683   IFS=$as_save_IFS
30684   test -z "$as_dir" && as_dir=.
30685   for ac_exec_ext in '' $ac_executable_extensions; do
30686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30687     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30689     break 2
30690   fi
30691 done
30692 done
30693 IFS=$as_save_IFS
30694
30695   ;;
30696 esac
30697 fi
30698 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30699 if test -n "$ac_pt_PKG_CONFIG"; then
30700   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30701 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
30702 else
30703   { echo "$as_me:$LINENO: result: no" >&5
30704 echo "${ECHO_T}no" >&6; }
30705 fi
30706
30707   if test "x$ac_pt_PKG_CONFIG" = x; then
30708     PKG_CONFIG=""
30709   else
30710     case $cross_compiling:$ac_tool_warned in
30711 yes:)
30712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30713 whose name does not start with the host triplet.  If you think this
30714 configuration is useful to you, please write to autoconf@gnu.org." >&5
30715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30716 whose name does not start with the host triplet.  If you think this
30717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30718 ac_tool_warned=yes ;;
30719 esac
30720     PKG_CONFIG=$ac_pt_PKG_CONFIG
30721   fi
30722 else
30723   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30724 fi
30725
30726 fi
30727 if test -n "$PKG_CONFIG"; then
30728         _pkg_min_version=0.9.0
30729         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30730 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
30731         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30732                 { echo "$as_me:$LINENO: result: yes" >&5
30733 echo "${ECHO_T}yes" >&6; }
30734         else
30735                 { echo "$as_me:$LINENO: result: no" >&5
30736 echo "${ECHO_T}no" >&6; }
30737                 PKG_CONFIG=""
30738         fi
30739
30740 fi
30741
30742
30743 pkg_failed=no
30744 { echo "$as_me:$LINENO: checking for PANGOX" >&5
30745 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
30746
30747 if test -n "$PKG_CONFIG"; then
30748     if test -n "$PANGOX_CFLAGS"; then
30749         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30750     else
30751         if test -n "$PKG_CONFIG" && \
30752     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30753   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30754   ac_status=$?
30755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756   (exit $ac_status); }; then
30757   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30758 else
30759   pkg_failed=yes
30760 fi
30761     fi
30762 else
30763         pkg_failed=untried
30764 fi
30765 if test -n "$PKG_CONFIG"; then
30766     if test -n "$PANGOX_LIBS"; then
30767         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30768     else
30769         if test -n "$PKG_CONFIG" && \
30770     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30771   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30772   ac_status=$?
30773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774   (exit $ac_status); }; then
30775   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30776 else
30777   pkg_failed=yes
30778 fi
30779     fi
30780 else
30781         pkg_failed=untried
30782 fi
30783
30784
30785
30786 if test $pkg_failed = yes; then
30787
30788 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30789         _pkg_short_errors_supported=yes
30790 else
30791         _pkg_short_errors_supported=no
30792 fi
30793         if test $_pkg_short_errors_supported = yes; then
30794                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30795         else
30796                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
30797         fi
30798         # Put the nasty error message in config.log where it belongs
30799         echo "$PANGOX_PKG_ERRORS" >&5
30800
30801
30802                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30803 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30804    { (exit 1); exit 1; }; }
30805
30806
30807 elif test $pkg_failed = untried; then
30808
30809                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30810 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30811    { (exit 1); exit 1; }; }
30812
30813
30814 else
30815         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30816         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30817         { echo "$as_me:$LINENO: result: yes" >&5
30818 echo "${ECHO_T}yes" >&6; }
30819
30820                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
30821                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30822                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30823
30824 fi
30825
30826 pkg_failed=no
30827 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30828 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
30829
30830 if test -n "$PKG_CONFIG"; then
30831     if test -n "$PANGOFT2_CFLAGS"; then
30832         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30833     else
30834         if test -n "$PKG_CONFIG" && \
30835     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30836   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30837   ac_status=$?
30838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839   (exit $ac_status); }; then
30840   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30841 else
30842   pkg_failed=yes
30843 fi
30844     fi
30845 else
30846         pkg_failed=untried
30847 fi
30848 if test -n "$PKG_CONFIG"; then
30849     if test -n "$PANGOFT2_LIBS"; then
30850         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30851     else
30852         if test -n "$PKG_CONFIG" && \
30853     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30854   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30855   ac_status=$?
30856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857   (exit $ac_status); }; then
30858   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30859 else
30860   pkg_failed=yes
30861 fi
30862     fi
30863 else
30864         pkg_failed=untried
30865 fi
30866
30867
30868
30869 if test $pkg_failed = yes; then
30870
30871 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30872         _pkg_short_errors_supported=yes
30873 else
30874         _pkg_short_errors_supported=no
30875 fi
30876         if test $_pkg_short_errors_supported = yes; then
30877                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30878         else
30879                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30880         fi
30881         # Put the nasty error message in config.log where it belongs
30882         echo "$PANGOFT2_PKG_ERRORS" >&5
30883
30884
30885                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30886 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30887                     wxUSE_PRINTING_ARCHITECTURE="no"
30888
30889
30890 elif test $pkg_failed = untried; then
30891
30892                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30893 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30894                     wxUSE_PRINTING_ARCHITECTURE="no"
30895
30896
30897 else
30898         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30899         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30900         { echo "$as_me:$LINENO: result: yes" >&5
30901 echo "${ECHO_T}yes" >&6; }
30902
30903                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
30904                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30905                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
30906
30907 fi
30908
30909 pkg_failed=no
30910 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30911 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
30912
30913 if test -n "$PKG_CONFIG"; then
30914     if test -n "$PANGOXFT_CFLAGS"; then
30915         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30916     else
30917         if test -n "$PKG_CONFIG" && \
30918     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30919   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30920   ac_status=$?
30921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922   (exit $ac_status); }; then
30923   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
30924 else
30925   pkg_failed=yes
30926 fi
30927     fi
30928 else
30929         pkg_failed=untried
30930 fi
30931 if test -n "$PKG_CONFIG"; then
30932     if test -n "$PANGOXFT_LIBS"; then
30933         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30934     else
30935         if test -n "$PKG_CONFIG" && \
30936     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30937   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30938   ac_status=$?
30939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940   (exit $ac_status); }; then
30941   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30942 else
30943   pkg_failed=yes
30944 fi
30945     fi
30946 else
30947         pkg_failed=untried
30948 fi
30949
30950
30951
30952 if test $pkg_failed = yes; then
30953
30954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30955         _pkg_short_errors_supported=yes
30956 else
30957         _pkg_short_errors_supported=no
30958 fi
30959         if test $_pkg_short_errors_supported = yes; then
30960                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30961         else
30962                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30963         fi
30964         # Put the nasty error message in config.log where it belongs
30965         echo "$PANGOXFT_PKG_ERRORS" >&5
30966
30967
30968                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30969 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30970
30971
30972 elif test $pkg_failed = untried; then
30973
30974                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30975 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30976
30977
30978 else
30979         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30980         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30981         { echo "$as_me:$LINENO: result: yes" >&5
30982 echo "${ECHO_T}yes" >&6; }
30983
30984                     cat >>confdefs.h <<\_ACEOF
30985 #define HAVE_PANGO_XFT 1
30986 _ACEOF
30987
30988                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
30989                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
30990                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30991
30992 fi
30993             save_LIBS="$LIBS"
30994             LIBS="$LIBS $PANGOX_LIBS"
30995
30996 for ac_func in pango_font_family_is_monospace
30997 do
30998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31002   echo $ECHO_N "(cached) $ECHO_C" >&6
31003 else
31004   cat >conftest.$ac_ext <<_ACEOF
31005 /* confdefs.h.  */
31006 _ACEOF
31007 cat confdefs.h >>conftest.$ac_ext
31008 cat >>conftest.$ac_ext <<_ACEOF
31009 /* end confdefs.h.  */
31010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31012 #define $ac_func innocuous_$ac_func
31013
31014 /* System header to define __stub macros and hopefully few prototypes,
31015     which can conflict with char $ac_func (); below.
31016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31017     <limits.h> exists even on freestanding compilers.  */
31018
31019 #ifdef __STDC__
31020 # include <limits.h>
31021 #else
31022 # include <assert.h>
31023 #endif
31024
31025 #undef $ac_func
31026
31027 /* Override any GCC internal prototype to avoid an error.
31028    Use char because int might match the return type of a GCC
31029    builtin and then its argument prototype would still apply.  */
31030 #ifdef __cplusplus
31031 extern "C"
31032 #endif
31033 char $ac_func ();
31034 /* The GNU C library defines this for functions which it implements
31035     to always fail with ENOSYS.  Some functions are actually named
31036     something starting with __ and the normal name is an alias.  */
31037 #if defined __stub_$ac_func || defined __stub___$ac_func
31038 choke me
31039 #endif
31040
31041 int
31042 main ()
31043 {
31044 return $ac_func ();
31045   ;
31046   return 0;
31047 }
31048 _ACEOF
31049 rm -f conftest.$ac_objext conftest$ac_exeext
31050 if { (ac_try="$ac_link"
31051 case "(($ac_try" in
31052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31053   *) ac_try_echo=$ac_try;;
31054 esac
31055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31056   (eval "$ac_link") 2>conftest.er1
31057   ac_status=$?
31058   grep -v '^ *+' conftest.er1 >conftest.err
31059   rm -f conftest.er1
31060   cat conftest.err >&5
31061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062   (exit $ac_status); } && {
31063          test -z "$ac_c_werror_flag" ||
31064          test ! -s conftest.err
31065        } && test -s conftest$ac_exeext &&
31066        $as_test_x conftest$ac_exeext; then
31067   eval "$as_ac_var=yes"
31068 else
31069   echo "$as_me: failed program was:" >&5
31070 sed 's/^/| /' conftest.$ac_ext >&5
31071
31072         eval "$as_ac_var=no"
31073 fi
31074
31075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31076       conftest$ac_exeext conftest.$ac_ext
31077 fi
31078 ac_res=`eval echo '${'$as_ac_var'}'`
31079                { echo "$as_me:$LINENO: result: $ac_res" >&5
31080 echo "${ECHO_T}$ac_res" >&6; }
31081 if test `eval echo '${'$as_ac_var'}'` = yes; then
31082   cat >>confdefs.h <<_ACEOF
31083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31084 _ACEOF
31085
31086 fi
31087 done
31088
31089             LIBS="$save_LIBS"
31090         fi
31091
31092         wxUSE_UNIVERSAL="yes"
31093
31094         if test "$wxUSE_NANOX" = "yes"; then
31095             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31096             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"
31097             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31098         else
31099             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31100         fi
31101
31102         TOOLKIT=X11
31103         GUIDIST=X11_DIST
31104     fi
31105
31106     if test "$wxUSE_MOTIF" = 1; then
31107         if test "$wxUSE_UNICODE" = "yes"; then
31108             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31109 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31110    { (exit 1); exit 1; }; }
31111         fi
31112
31113         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31114 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31115
31116 ac_find_includes=
31117 for ac_dir in $SEARCH_INCLUDE /usr/include;
31118   do
31119     if test -f "$ac_dir/Xm/Xm.h"; then
31120       ac_find_includes=$ac_dir
31121       break
31122     fi
31123   done
31124
31125         if test "$ac_find_includes" != "" ; then
31126             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31127 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31128
31129     if test "x$ac_find_includes" = "x/usr/include"; then
31130     ac_path_to_include=""
31131   else
31132     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31133     result=$?
31134     if test $result = 0; then
31135       ac_path_to_include=""
31136     else
31137       ac_path_to_include=" -I$ac_find_includes"
31138     fi
31139   fi
31140
31141             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31142         else
31143             save_CFLAGS=$CFLAGS
31144             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31145
31146             cat >conftest.$ac_ext <<_ACEOF
31147 /* confdefs.h.  */
31148 _ACEOF
31149 cat confdefs.h >>conftest.$ac_ext
31150 cat >>conftest.$ac_ext <<_ACEOF
31151 /* end confdefs.h.  */
31152
31153                     #include <Xm/Xm.h>
31154
31155 int
31156 main ()
31157 {
31158
31159                     int version;
31160                     version = xmUseVersion;
31161
31162   ;
31163   return 0;
31164 }
31165 _ACEOF
31166 rm -f conftest.$ac_objext
31167 if { (ac_try="$ac_compile"
31168 case "(($ac_try" in
31169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31170   *) ac_try_echo=$ac_try;;
31171 esac
31172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173   (eval "$ac_compile") 2>conftest.er1
31174   ac_status=$?
31175   grep -v '^ *+' conftest.er1 >conftest.err
31176   rm -f conftest.er1
31177   cat conftest.err >&5
31178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179   (exit $ac_status); } && {
31180          test -z "$ac_c_werror_flag" ||
31181          test ! -s conftest.err
31182        } && test -s conftest.$ac_objext; then
31183
31184                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31185 echo "${ECHO_T}found in default search path" >&6; }
31186                     COMPILED_X_PROGRAM=1
31187
31188 else
31189   echo "$as_me: failed program was:" >&5
31190 sed 's/^/| /' conftest.$ac_ext >&5
31191
31192
31193                     { echo "$as_me:$LINENO: result: no" >&5
31194 echo "${ECHO_T}no" >&6; }
31195                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31196 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31197    { (exit 1); exit 1; }; }
31198
31199
31200 fi
31201
31202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31203
31204             CFLAGS=$save_CFLAGS
31205         fi
31206
31207
31208         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31209 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31210
31211   ac_find_libraries=
31212   for ac_dir in $SEARCH_LIB;
31213   do
31214     for ac_extension in a so sl dylib dll.a; do
31215       if test -f "$ac_dir/libXm.$ac_extension"; then
31216         ac_find_libraries=$ac_dir
31217         break 2
31218       fi
31219     done
31220   done
31221
31222
31223         if test "x$ac_find_libraries" != "x" ; then
31224             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31225 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31226
31227
31228     if test "$ac_find_libraries" = "default location"; then
31229     ac_path_to_link=""
31230   else
31231     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31232     result=$?
31233     if test $result = 0; then
31234       ac_path_to_link=""
31235     else
31236       ac_path_to_link=" -L$ac_find_libraries"
31237     fi
31238   fi
31239
31240             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31241         else
31242                                                 save_CFLAGS=$CFLAGS
31243             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31244             save_LIBS="$LIBS"
31245             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31246
31247             cat >conftest.$ac_ext <<_ACEOF
31248 /* confdefs.h.  */
31249 _ACEOF
31250 cat confdefs.h >>conftest.$ac_ext
31251 cat >>conftest.$ac_ext <<_ACEOF
31252 /* end confdefs.h.  */
31253
31254                     #include <Xm/Xm.h>
31255
31256 int
31257 main ()
31258 {
31259
31260                     int version;
31261                     version = xmUseVersion;
31262
31263   ;
31264   return 0;
31265 }
31266 _ACEOF
31267 rm -f conftest.$ac_objext conftest$ac_exeext
31268 if { (ac_try="$ac_link"
31269 case "(($ac_try" in
31270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31271   *) ac_try_echo=$ac_try;;
31272 esac
31273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31274   (eval "$ac_link") 2>conftest.er1
31275   ac_status=$?
31276   grep -v '^ *+' conftest.er1 >conftest.err
31277   rm -f conftest.er1
31278   cat conftest.err >&5
31279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280   (exit $ac_status); } && {
31281          test -z "$ac_c_werror_flag" ||
31282          test ! -s conftest.err
31283        } && test -s conftest$ac_exeext &&
31284        $as_test_x conftest$ac_exeext; then
31285
31286                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31287 echo "${ECHO_T}found in default search path" >&6; }
31288                     COMPILED_X_PROGRAM=1
31289
31290 else
31291   echo "$as_me: failed program was:" >&5
31292 sed 's/^/| /' conftest.$ac_ext >&5
31293
31294
31295                     { echo "$as_me:$LINENO: result: no" >&5
31296 echo "${ECHO_T}no" >&6; }
31297                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31298 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31299    { (exit 1); exit 1; }; }
31300
31301
31302 fi
31303
31304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31305       conftest$ac_exeext conftest.$ac_ext
31306
31307             CFLAGS=$save_CFLAGS
31308             LIBS="$save_LIBS"
31309         fi
31310
31311         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31312 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
31313         libp_link=""
31314         libsm_ice_link=""
31315         libs_found=0
31316         for libp in "" " -lXp"; do
31317             if test "$libs_found" = "0"; then
31318                 for libsm_ice in "" " -lSM -lICE"; do
31319                     if test "$libs_found" = "0"; then
31320                         save_LIBS="$LIBS"
31321                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31322                         save_CFLAGS=$CFLAGS
31323                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31324
31325                         cat >conftest.$ac_ext <<_ACEOF
31326 /* confdefs.h.  */
31327 _ACEOF
31328 cat confdefs.h >>conftest.$ac_ext
31329 cat >>conftest.$ac_ext <<_ACEOF
31330 /* end confdefs.h.  */
31331
31332                                 #include <Xm/Xm.h>
31333                                 #include <Xm/List.h>
31334
31335 int
31336 main ()
31337 {
31338
31339                                 XmString string = NULL;
31340                                 Widget w = NULL;
31341                                 int position = 0;
31342                                 XmListAddItem(w, string, position);
31343
31344   ;
31345   return 0;
31346 }
31347 _ACEOF
31348 rm -f conftest.$ac_objext conftest$ac_exeext
31349 if { (ac_try="$ac_link"
31350 case "(($ac_try" in
31351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31352   *) ac_try_echo=$ac_try;;
31353 esac
31354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31355   (eval "$ac_link") 2>conftest.er1
31356   ac_status=$?
31357   grep -v '^ *+' conftest.er1 >conftest.err
31358   rm -f conftest.er1
31359   cat conftest.err >&5
31360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361   (exit $ac_status); } && {
31362          test -z "$ac_c_werror_flag" ||
31363          test ! -s conftest.err
31364        } && test -s conftest$ac_exeext &&
31365        $as_test_x conftest$ac_exeext; then
31366
31367                                 libp_link="$libp"
31368                                 libsm_ice_link="$libsm_ice"
31369                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31370 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
31371                                 libs_found=1
31372
31373 else
31374   echo "$as_me: failed program was:" >&5
31375 sed 's/^/| /' conftest.$ac_ext >&5
31376
31377
31378
31379 fi
31380
31381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31382       conftest$ac_exeext conftest.$ac_ext
31383
31384                         LIBS="$save_LIBS"
31385                         CFLAGS=$save_CFLAGS
31386                     fi
31387                 done
31388             fi
31389         done
31390
31391         if test "$libs_found" = "0"; then
31392             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31393 echo "${ECHO_T}can't find the right libraries" >&6; }
31394             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31395 echo "$as_me: error: can't link a simple motif program" >&2;}
31396    { (exit 1); exit 1; }; }
31397         fi
31398
31399                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31400 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
31401 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31402   echo $ECHO_N "(cached) $ECHO_C" >&6
31403 else
31404   ac_check_lib_save_LIBS=$LIBS
31405 LIBS="-lSgm  $LIBS"
31406 cat >conftest.$ac_ext <<_ACEOF
31407 /* confdefs.h.  */
31408 _ACEOF
31409 cat confdefs.h >>conftest.$ac_ext
31410 cat >>conftest.$ac_ext <<_ACEOF
31411 /* end confdefs.h.  */
31412
31413 /* Override any GCC internal prototype to avoid an error.
31414    Use char because int might match the return type of a GCC
31415    builtin and then its argument prototype would still apply.  */
31416 #ifdef __cplusplus
31417 extern "C"
31418 #endif
31419 char SgCreateList ();
31420 int
31421 main ()
31422 {
31423 return SgCreateList ();
31424   ;
31425   return 0;
31426 }
31427 _ACEOF
31428 rm -f conftest.$ac_objext conftest$ac_exeext
31429 if { (ac_try="$ac_link"
31430 case "(($ac_try" in
31431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432   *) ac_try_echo=$ac_try;;
31433 esac
31434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31435   (eval "$ac_link") 2>conftest.er1
31436   ac_status=$?
31437   grep -v '^ *+' conftest.er1 >conftest.err
31438   rm -f conftest.er1
31439   cat conftest.err >&5
31440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441   (exit $ac_status); } && {
31442          test -z "$ac_c_werror_flag" ||
31443          test ! -s conftest.err
31444        } && test -s conftest$ac_exeext &&
31445        $as_test_x conftest$ac_exeext; then
31446   ac_cv_lib_Sgm_SgCreateList=yes
31447 else
31448   echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31450
31451         ac_cv_lib_Sgm_SgCreateList=no
31452 fi
31453
31454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31455       conftest$ac_exeext conftest.$ac_ext
31456 LIBS=$ac_check_lib_save_LIBS
31457 fi
31458 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31459 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
31460 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31461   libsgm_link=" -lSgm"
31462 fi
31463
31464
31465         save_CFLAGS=$CFLAGS
31466         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31467
31468         { echo "$as_me:$LINENO: checking for Motif 2" >&5
31469 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
31470 if test "${wx_cv_lib_motif2+set}" = set; then
31471   echo $ECHO_N "(cached) $ECHO_C" >&6
31472 else
31473   cat >conftest.$ac_ext <<_ACEOF
31474 /* confdefs.h.  */
31475 _ACEOF
31476 cat confdefs.h >>conftest.$ac_ext
31477 cat >>conftest.$ac_ext <<_ACEOF
31478 /* end confdefs.h.  */
31479
31480                             #include <Xm/Xm.h>
31481
31482 int
31483 main ()
31484 {
31485
31486                             #if XmVersion < 2000
31487                             Not Motif 2
31488                             #endif
31489
31490   ;
31491   return 0;
31492 }
31493 _ACEOF
31494 rm -f conftest.$ac_objext
31495 if { (ac_try="$ac_compile"
31496 case "(($ac_try" in
31497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498   *) ac_try_echo=$ac_try;;
31499 esac
31500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501   (eval "$ac_compile") 2>conftest.er1
31502   ac_status=$?
31503   grep -v '^ *+' conftest.er1 >conftest.err
31504   rm -f conftest.er1
31505   cat conftest.err >&5
31506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507   (exit $ac_status); } && {
31508          test -z "$ac_c_werror_flag" ||
31509          test ! -s conftest.err
31510        } && test -s conftest.$ac_objext; then
31511   wx_cv_lib_motif2="yes"
31512 else
31513   echo "$as_me: failed program was:" >&5
31514 sed 's/^/| /' conftest.$ac_ext >&5
31515
31516         wx_cv_lib_motif2="no"
31517 fi
31518
31519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31520 fi
31521 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31522 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
31523         if test "$wx_cv_lib_motif2" = "yes"; then
31524             cat >>confdefs.h <<\_ACEOF
31525 #define __WXMOTIF20__ 1
31526 _ACEOF
31527
31528         else
31529             cat >>confdefs.h <<\_ACEOF
31530 #define __WXMOTIF20__ 0
31531 _ACEOF
31532
31533         fi
31534
31535         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31536 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
31537 if test "${wx_cv_lib_lesstif+set}" = set; then
31538   echo $ECHO_N "(cached) $ECHO_C" >&6
31539 else
31540   cat >conftest.$ac_ext <<_ACEOF
31541 /* confdefs.h.  */
31542 _ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h.  */
31546
31547                             #include <Xm/Xm.h>
31548
31549 int
31550 main ()
31551 {
31552
31553                             #if !defined(LesstifVersion) || LesstifVersion <= 0
31554                             Not Lesstif
31555                             #endif
31556
31557   ;
31558   return 0;
31559 }
31560 _ACEOF
31561 rm -f conftest.$ac_objext
31562 if { (ac_try="$ac_compile"
31563 case "(($ac_try" in
31564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31565   *) ac_try_echo=$ac_try;;
31566 esac
31567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31568   (eval "$ac_compile") 2>conftest.er1
31569   ac_status=$?
31570   grep -v '^ *+' conftest.er1 >conftest.err
31571   rm -f conftest.er1
31572   cat conftest.err >&5
31573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574   (exit $ac_status); } && {
31575          test -z "$ac_c_werror_flag" ||
31576          test ! -s conftest.err
31577        } && test -s conftest.$ac_objext; then
31578   wx_cv_lib_lesstif="yes"
31579 else
31580   echo "$as_me: failed program was:" >&5
31581 sed 's/^/| /' conftest.$ac_ext >&5
31582
31583         wx_cv_lib_lesstif="no"
31584 fi
31585
31586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31587
31588 fi
31589 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31590 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
31591         if test "$wx_cv_lib_lesstif" = "yes"; then
31592             cat >>confdefs.h <<\_ACEOF
31593 #define __WXLESSTIF__ 1
31594 _ACEOF
31595
31596         else
31597             cat >>confdefs.h <<\_ACEOF
31598 #define __WXLESSTIF__ 0
31599 _ACEOF
31600
31601         fi
31602
31603         CFLAGS=$save_CFLAGS
31604
31605         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
31606         TOOLKIT=MOTIF
31607         GUIDIST=MOTIF_DIST
31608     fi
31609
31610         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31611                 if test "$wxUSE_LIBXPM" = "sys"; then
31612             { echo "$as_me:$LINENO: checking for Xpm library" >&5
31613 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
31614
31615   ac_find_libraries=
31616   for ac_dir in $SEARCH_LIB;
31617   do
31618     for ac_extension in a so sl dylib dll.a; do
31619       if test -f "$ac_dir/libXpm.$ac_extension"; then
31620         ac_find_libraries=$ac_dir
31621         break 2
31622       fi
31623     done
31624   done
31625
31626             if test "$ac_find_libraries" != "" ; then
31627
31628     if test "$ac_find_libraries" = "default location"; then
31629     ac_path_to_link=""
31630   else
31631     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31632     result=$?
31633     if test $result = 0; then
31634       ac_path_to_link=""
31635     else
31636       ac_path_to_link=" -L$ac_find_libraries"
31637     fi
31638   fi
31639
31640                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31641                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31642 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31643
31644                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31645 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
31646 if test "${wx_cv_x11_xpm_h+set}" = set; then
31647   echo $ECHO_N "(cached) $ECHO_C" >&6
31648 else
31649
31650                         save_CFLAGS=$CFLAGS
31651                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31652
31653                         cat >conftest.$ac_ext <<_ACEOF
31654 /* confdefs.h.  */
31655 _ACEOF
31656 cat confdefs.h >>conftest.$ac_ext
31657 cat >>conftest.$ac_ext <<_ACEOF
31658 /* end confdefs.h.  */
31659
31660                                 #include <X11/xpm.h>
31661
31662 int
31663 main ()
31664 {
31665
31666                                 int version;
31667                                 version = XpmLibraryVersion();
31668
31669   ;
31670   return 0;
31671 }
31672 _ACEOF
31673 rm -f conftest.$ac_objext
31674 if { (ac_try="$ac_compile"
31675 case "(($ac_try" in
31676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677   *) ac_try_echo=$ac_try;;
31678 esac
31679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680   (eval "$ac_compile") 2>conftest.er1
31681   ac_status=$?
31682   grep -v '^ *+' conftest.er1 >conftest.err
31683   rm -f conftest.er1
31684   cat conftest.err >&5
31685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31686   (exit $ac_status); } && {
31687          test -z "$ac_c_werror_flag" ||
31688          test ! -s conftest.err
31689        } && test -s conftest.$ac_objext; then
31690   wx_cv_x11_xpm_h=yes
31691 else
31692   echo "$as_me: failed program was:" >&5
31693 sed 's/^/| /' conftest.$ac_ext >&5
31694
31695         wx_cv_x11_xpm_h=no
31696
31697 fi
31698
31699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31700
31701                         CFLAGS=$save_CFLAGS
31702
31703
31704 fi
31705 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31706 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
31707
31708                 if test $wx_cv_x11_xpm_h = "yes"; then
31709                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31710                     cat >>confdefs.h <<\_ACEOF
31711 #define wxHAVE_LIB_XPM 1
31712 _ACEOF
31713
31714                 else
31715                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31716 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31717                 fi
31718             fi
31719
31720         fi
31721
31722                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31723 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
31724 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31725   echo $ECHO_N "(cached) $ECHO_C" >&6
31726 else
31727   ac_check_lib_save_LIBS=$LIBS
31728 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31729 cat >conftest.$ac_ext <<_ACEOF
31730 /* confdefs.h.  */
31731 _ACEOF
31732 cat confdefs.h >>conftest.$ac_ext
31733 cat >>conftest.$ac_ext <<_ACEOF
31734 /* end confdefs.h.  */
31735
31736 /* Override any GCC internal prototype to avoid an error.
31737    Use char because int might match the return type of a GCC
31738    builtin and then its argument prototype would still apply.  */
31739 #ifdef __cplusplus
31740 extern "C"
31741 #endif
31742 char XShapeQueryExtension ();
31743 int
31744 main ()
31745 {
31746 return XShapeQueryExtension ();
31747   ;
31748   return 0;
31749 }
31750 _ACEOF
31751 rm -f conftest.$ac_objext conftest$ac_exeext
31752 if { (ac_try="$ac_link"
31753 case "(($ac_try" in
31754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755   *) ac_try_echo=$ac_try;;
31756 esac
31757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758   (eval "$ac_link") 2>conftest.er1
31759   ac_status=$?
31760   grep -v '^ *+' conftest.er1 >conftest.err
31761   rm -f conftest.er1
31762   cat conftest.err >&5
31763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764   (exit $ac_status); } && {
31765          test -z "$ac_c_werror_flag" ||
31766          test ! -s conftest.err
31767        } && test -s conftest$ac_exeext &&
31768        $as_test_x conftest$ac_exeext; then
31769   ac_cv_lib_Xext_XShapeQueryExtension=yes
31770 else
31771   echo "$as_me: failed program was:" >&5
31772 sed 's/^/| /' conftest.$ac_ext >&5
31773
31774         ac_cv_lib_Xext_XShapeQueryExtension=no
31775 fi
31776
31777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31778       conftest$ac_exeext conftest.$ac_ext
31779 LIBS=$ac_check_lib_save_LIBS
31780 fi
31781 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31782 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
31783 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31784
31785                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31786                       wxHAVE_XEXT_LIB=1
31787
31788 fi
31789
31790
31791         if test "$wxHAVE_XEXT_LIB" = 1; then
31792             save_CFLAGS="$CFLAGS"
31793             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31794
31795             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31796 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
31797             cat >conftest.$ac_ext <<_ACEOF
31798 /* confdefs.h.  */
31799 _ACEOF
31800 cat confdefs.h >>conftest.$ac_ext
31801 cat >>conftest.$ac_ext <<_ACEOF
31802 /* end confdefs.h.  */
31803
31804                             #include <X11/Xlib.h>
31805                             #include <X11/extensions/shape.h>
31806
31807 int
31808 main ()
31809 {
31810
31811                             int dummy1, dummy2;
31812                             XShapeQueryExtension((Display*)NULL,
31813                                                  (int*)NULL, (int*)NULL);
31814
31815   ;
31816   return 0;
31817 }
31818 _ACEOF
31819 rm -f conftest.$ac_objext
31820 if { (ac_try="$ac_compile"
31821 case "(($ac_try" in
31822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823   *) ac_try_echo=$ac_try;;
31824 esac
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826   (eval "$ac_compile") 2>conftest.er1
31827   ac_status=$?
31828   grep -v '^ *+' conftest.er1 >conftest.err
31829   rm -f conftest.er1
31830   cat conftest.err >&5
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); } && {
31833          test -z "$ac_c_werror_flag" ||
31834          test ! -s conftest.err
31835        } && test -s conftest.$ac_objext; then
31836
31837                             cat >>confdefs.h <<\_ACEOF
31838 #define HAVE_XSHAPE 1
31839 _ACEOF
31840
31841                             { echo "$as_me:$LINENO: result: found" >&5
31842 echo "${ECHO_T}found" >&6; }
31843
31844 else
31845   echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31847
31848
31849                             { echo "$as_me:$LINENO: result: not found" >&5
31850 echo "${ECHO_T}not found" >&6; }
31851
31852 fi
31853
31854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31855             CFLAGS="$save_CFLAGS"
31856
31857         fi
31858     fi
31859
31860     if test "$wxUSE_MAC" = 1; then
31861         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31862 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
31863         if test "$GCC" = yes; then
31864             { echo "$as_me:$LINENO: result: gcc" >&5
31865 echo "${ECHO_T}gcc" >&6; }
31866             CPPFLAGS_PASCAL="-fpascal-strings"
31867         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31868             { echo "$as_me:$LINENO: result: xlc" >&5
31869 echo "${ECHO_T}xlc" >&6; }
31870             CPPFLAGS_PASCAL="-qmacpstr"
31871         else
31872             { echo "$as_me:$LINENO: result: none" >&5
31873 echo "${ECHO_T}none" >&6; }
31874         fi
31875
31876         if test "x$wxUSE_UNIX" = "xyes"; then
31877             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
31878         else
31879                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
31880         fi
31881
31882         TOOLKIT=MAC
31883                 GUIDIST=MACX_DIST
31884                         WXBASEPORT="_carbon"
31885     fi
31886
31887     if test "$wxUSE_COCOA" = 1; then
31888         TOOLKIT=COCOA
31889         GUIDIST=COCOA_DIST
31890     fi
31891
31892     if test "$wxUSE_PM" = 1; then
31893         TOOLKIT=PM
31894         GUIDIST=PM_DIST
31895         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31896 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
31897 if test "${wx_cv_spbcdata+set}" = set; then
31898   echo $ECHO_N "(cached) $ECHO_C" >&6
31899 else
31900
31901                 cat >conftest.$ac_ext <<_ACEOF
31902 /* confdefs.h.  */
31903 _ACEOF
31904 cat confdefs.h >>conftest.$ac_ext
31905 cat >>conftest.$ac_ext <<_ACEOF
31906 /* end confdefs.h.  */
31907
31908                         #define INCL_PM
31909                         #include <os2.h>
31910
31911 int
31912 main ()
31913 {
31914
31915                         SPBCDATA test;
31916
31917   ;
31918   return 0;
31919 }
31920 _ACEOF
31921 rm -f conftest.$ac_objext
31922 if { (ac_try="$ac_compile"
31923 case "(($ac_try" in
31924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925   *) ac_try_echo=$ac_try;;
31926 esac
31927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928   (eval "$ac_compile") 2>conftest.er1
31929   ac_status=$?
31930   grep -v '^ *+' conftest.er1 >conftest.err
31931   rm -f conftest.er1
31932   cat conftest.err >&5
31933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934   (exit $ac_status); } && {
31935          test -z "$ac_c_werror_flag" ||
31936          test ! -s conftest.err
31937        } && test -s conftest.$ac_objext; then
31938   wx_cv_spbcdata=yes
31939 else
31940   echo "$as_me: failed program was:" >&5
31941 sed 's/^/| /' conftest.$ac_ext >&5
31942
31943         wx_cv_spbcdata=no
31944
31945 fi
31946
31947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31948
31949
31950 fi
31951 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31952 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
31953
31954         if test $wx_cv_spbcdata = "yes"; then
31955             cat >>confdefs.h <<\_ACEOF
31956 #define HAVE_SPBCDATA 1
31957 _ACEOF
31958
31959         fi
31960     fi
31961
31962         if test "$TOOLKIT" = "PM" ; then
31963         TOOLKIT_DIR="os2"
31964     else
31965         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31966     fi
31967
31968     if test "$wxUSE_UNIVERSAL" = "yes"; then
31969         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31970         WIDGET_SET=univ
31971     fi
31972
31973         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31974     DISTDIR="wx\$(TOOLKIT)"
31975 else
31976     USE_GUI=0
31977
31978             TOOLKIT_DIR="base"
31979
31980         if test "$USE_WIN32" = 1 ; then
31981                         TOOLKIT="MSW"
31982     fi
31983
31984         GUIDIST="BASE_DIST"
31985     DISTDIR="wxBase"
31986 fi
31987
31988
31989
31990 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
31991     if test "$TOOLKIT" = "DFB" ; then
31992         wxUSE_UNICODE_UTF8=yes
31993     elif test "$TOOLKIT" = "GTK" -a "$WXGTK20" = "1" ; then
31994         wxUSE_UNICODE_UTF8=yes
31995     elif test "$USE_OS2" = "1" ; then
31996                                 wxUSE_UNICODE_UTF8=yes
31997     else
31998         wxUSE_UNICODE_UTF8=no
31999     fi
32000 fi
32001
32002
32003 if test "$wxUSE_GUI" = "yes"; then
32004     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32005                 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
32006 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
32007 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
32008   echo $ECHO_N "(cached) $ECHO_C" >&6
32009 else
32010   cat >conftest.$ac_ext <<_ACEOF
32011 /* confdefs.h.  */
32012 _ACEOF
32013 cat confdefs.h >>conftest.$ac_ext
32014 cat >>conftest.$ac_ext <<_ACEOF
32015 /* end confdefs.h.  */
32016
32017
32018 #include <X11/Xlib.h>
32019 _ACEOF
32020 rm -f conftest.$ac_objext
32021 if { (ac_try="$ac_compile"
32022 case "(($ac_try" in
32023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024   *) ac_try_echo=$ac_try;;
32025 esac
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027   (eval "$ac_compile") 2>conftest.er1
32028   ac_status=$?
32029   grep -v '^ *+' conftest.er1 >conftest.err
32030   rm -f conftest.er1
32031   cat conftest.err >&5
32032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033   (exit $ac_status); } && {
32034          test -z "$ac_c_werror_flag" ||
32035          test ! -s conftest.err
32036        } && test -s conftest.$ac_objext; then
32037   ac_cv_header_X11_Xlib_h=yes
32038 else
32039   echo "$as_me: failed program was:" >&5
32040 sed 's/^/| /' conftest.$ac_ext >&5
32041
32042         ac_cv_header_X11_Xlib_h=no
32043 fi
32044
32045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32046 fi
32047 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
32048 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
32049
32050
32051         { echo "$as_me:$LINENO: checking for X11/XKBlib.h" >&5
32052 echo $ECHO_N "checking for X11/XKBlib.h... $ECHO_C" >&6; }
32053 if test "${ac_cv_header_X11_XKBlib_h+set}" = set; then
32054   echo $ECHO_N "(cached) $ECHO_C" >&6
32055 else
32056   cat >conftest.$ac_ext <<_ACEOF
32057 /* confdefs.h.  */
32058 _ACEOF
32059 cat confdefs.h >>conftest.$ac_ext
32060 cat >>conftest.$ac_ext <<_ACEOF
32061 /* end confdefs.h.  */
32062
32063                           #if HAVE_X11_XLIB_H
32064                             #include <X11/Xlib.h>
32065                           #endif
32066
32067
32068 #include <X11/XKBlib.h>
32069 _ACEOF
32070 rm -f conftest.$ac_objext
32071 if { (ac_try="$ac_compile"
32072 case "(($ac_try" in
32073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074   *) ac_try_echo=$ac_try;;
32075 esac
32076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077   (eval "$ac_compile") 2>conftest.er1
32078   ac_status=$?
32079   grep -v '^ *+' conftest.er1 >conftest.err
32080   rm -f conftest.er1
32081   cat conftest.err >&5
32082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083   (exit $ac_status); } && {
32084          test -z "$ac_c_werror_flag" ||
32085          test ! -s conftest.err
32086        } && test -s conftest.$ac_objext; then
32087   ac_cv_header_X11_XKBlib_h=yes
32088 else
32089   echo "$as_me: failed program was:" >&5
32090 sed 's/^/| /' conftest.$ac_ext >&5
32091
32092         ac_cv_header_X11_XKBlib_h=no
32093 fi
32094
32095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32096 fi
32097 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_XKBlib_h" >&5
32098 echo "${ECHO_T}$ac_cv_header_X11_XKBlib_h" >&6; }
32099
32100
32101     fi
32102 fi
32103
32104
32105
32106 IODBC_C_SRC=""
32107
32108
32109 if test "$TOOLKIT" != "MSW" ; then
32110
32111     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32112
32113         { echo "$as_me:$LINENO: checking for sql.h" >&5
32114 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
32115 if test "${ac_cv_header_sql_h+set}" = set; then
32116   echo $ECHO_N "(cached) $ECHO_C" >&6
32117 else
32118   cat >conftest.$ac_ext <<_ACEOF
32119 /* confdefs.h.  */
32120 _ACEOF
32121 cat confdefs.h >>conftest.$ac_ext
32122 cat >>conftest.$ac_ext <<_ACEOF
32123 /* end confdefs.h.  */
32124
32125
32126 #include <sql.h>
32127 _ACEOF
32128 rm -f conftest.$ac_objext
32129 if { (ac_try="$ac_compile"
32130 case "(($ac_try" in
32131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32132   *) ac_try_echo=$ac_try;;
32133 esac
32134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32135   (eval "$ac_compile") 2>conftest.er1
32136   ac_status=$?
32137   grep -v '^ *+' conftest.er1 >conftest.err
32138   rm -f conftest.er1
32139   cat conftest.err >&5
32140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141   (exit $ac_status); } && {
32142          test -z "$ac_c_werror_flag" ||
32143          test ! -s conftest.err
32144        } && test -s conftest.$ac_objext; then
32145   ac_cv_header_sql_h=yes
32146 else
32147   echo "$as_me: failed program was:" >&5
32148 sed 's/^/| /' conftest.$ac_ext >&5
32149
32150         ac_cv_header_sql_h=no
32151 fi
32152
32153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32154 fi
32155 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32156 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
32157 if test $ac_cv_header_sql_h = yes; then
32158   found_sql_h=1
32159 fi
32160
32161
32162         if test "x$found_sql_h" = "x1" ; then
32163             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32164 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
32165 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32166   echo $ECHO_N "(cached) $ECHO_C" >&6
32167 else
32168   ac_check_lib_save_LIBS=$LIBS
32169 LIBS="-liodbc  $LIBS"
32170 cat >conftest.$ac_ext <<_ACEOF
32171 /* confdefs.h.  */
32172 _ACEOF
32173 cat confdefs.h >>conftest.$ac_ext
32174 cat >>conftest.$ac_ext <<_ACEOF
32175 /* end confdefs.h.  */
32176
32177 /* Override any GCC internal prototype to avoid an error.
32178    Use char because int might match the return type of a GCC
32179    builtin and then its argument prototype would still apply.  */
32180 #ifdef __cplusplus
32181 extern "C"
32182 #endif
32183 char SQLAllocEnv ();
32184 int
32185 main ()
32186 {
32187 return SQLAllocEnv ();
32188   ;
32189   return 0;
32190 }
32191 _ACEOF
32192 rm -f conftest.$ac_objext conftest$ac_exeext
32193 if { (ac_try="$ac_link"
32194 case "(($ac_try" in
32195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32196   *) ac_try_echo=$ac_try;;
32197 esac
32198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32199   (eval "$ac_link") 2>conftest.er1
32200   ac_status=$?
32201   grep -v '^ *+' conftest.er1 >conftest.err
32202   rm -f conftest.er1
32203   cat conftest.err >&5
32204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205   (exit $ac_status); } && {
32206          test -z "$ac_c_werror_flag" ||
32207          test ! -s conftest.err
32208        } && test -s conftest$ac_exeext &&
32209        $as_test_x conftest$ac_exeext; then
32210   ac_cv_lib_iodbc_SQLAllocEnv=yes
32211 else
32212   echo "$as_me: failed program was:" >&5
32213 sed 's/^/| /' conftest.$ac_ext >&5
32214
32215         ac_cv_lib_iodbc_SQLAllocEnv=no
32216 fi
32217
32218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32219       conftest$ac_exeext conftest.$ac_ext
32220 LIBS=$ac_check_lib_save_LIBS
32221 fi
32222 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32223 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
32224 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32225   ODBC_LINK=" -liodbc"
32226 else
32227
32228                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32229 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
32230 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32231   echo $ECHO_N "(cached) $ECHO_C" >&6
32232 else
32233   ac_check_lib_save_LIBS=$LIBS
32234 LIBS="-lunixodbc  $LIBS"
32235 cat >conftest.$ac_ext <<_ACEOF
32236 /* confdefs.h.  */
32237 _ACEOF
32238 cat confdefs.h >>conftest.$ac_ext
32239 cat >>conftest.$ac_ext <<_ACEOF
32240 /* end confdefs.h.  */
32241
32242 /* Override any GCC internal prototype to avoid an error.
32243    Use char because int might match the return type of a GCC
32244    builtin and then its argument prototype would still apply.  */
32245 #ifdef __cplusplus
32246 extern "C"
32247 #endif
32248 char SQLAllocEnv ();
32249 int
32250 main ()
32251 {
32252 return SQLAllocEnv ();
32253   ;
32254   return 0;
32255 }
32256 _ACEOF
32257 rm -f conftest.$ac_objext conftest$ac_exeext
32258 if { (ac_try="$ac_link"
32259 case "(($ac_try" in
32260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32261   *) ac_try_echo=$ac_try;;
32262 esac
32263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32264   (eval "$ac_link") 2>conftest.er1
32265   ac_status=$?
32266   grep -v '^ *+' conftest.er1 >conftest.err
32267   rm -f conftest.er1
32268   cat conftest.err >&5
32269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270   (exit $ac_status); } && {
32271          test -z "$ac_c_werror_flag" ||
32272          test ! -s conftest.err
32273        } && test -s conftest$ac_exeext &&
32274        $as_test_x conftest$ac_exeext; then
32275   ac_cv_lib_unixodbc_SQLAllocEnv=yes
32276 else
32277   echo "$as_me: failed program was:" >&5
32278 sed 's/^/| /' conftest.$ac_ext >&5
32279
32280         ac_cv_lib_unixodbc_SQLAllocEnv=no
32281 fi
32282
32283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32284       conftest$ac_exeext conftest.$ac_ext
32285 LIBS=$ac_check_lib_save_LIBS
32286 fi
32287 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32288 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
32289 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32290   ODBC_LINK=" -lunixodbc"
32291 else
32292
32293                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32294 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
32295 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32296   echo $ECHO_N "(cached) $ECHO_C" >&6
32297 else
32298   ac_check_lib_save_LIBS=$LIBS
32299 LIBS="-lodbc  $LIBS"
32300 cat >conftest.$ac_ext <<_ACEOF
32301 /* confdefs.h.  */
32302 _ACEOF
32303 cat confdefs.h >>conftest.$ac_ext
32304 cat >>conftest.$ac_ext <<_ACEOF
32305 /* end confdefs.h.  */
32306
32307 /* Override any GCC internal prototype to avoid an error.
32308    Use char because int might match the return type of a GCC
32309    builtin and then its argument prototype would still apply.  */
32310 #ifdef __cplusplus
32311 extern "C"
32312 #endif
32313 char SQLAllocEnv ();
32314 int
32315 main ()
32316 {
32317 return SQLAllocEnv ();
32318   ;
32319   return 0;
32320 }
32321 _ACEOF
32322 rm -f conftest.$ac_objext conftest$ac_exeext
32323 if { (ac_try="$ac_link"
32324 case "(($ac_try" in
32325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326   *) ac_try_echo=$ac_try;;
32327 esac
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329   (eval "$ac_link") 2>conftest.er1
32330   ac_status=$?
32331   grep -v '^ *+' conftest.er1 >conftest.err
32332   rm -f conftest.er1
32333   cat conftest.err >&5
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); } && {
32336          test -z "$ac_c_werror_flag" ||
32337          test ! -s conftest.err
32338        } && test -s conftest$ac_exeext &&
32339        $as_test_x conftest$ac_exeext; then
32340   ac_cv_lib_odbc_SQLAllocEnv=yes
32341 else
32342   echo "$as_me: failed program was:" >&5
32343 sed 's/^/| /' conftest.$ac_ext >&5
32344
32345         ac_cv_lib_odbc_SQLAllocEnv=no
32346 fi
32347
32348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32349       conftest$ac_exeext conftest.$ac_ext
32350 LIBS=$ac_check_lib_save_LIBS
32351 fi
32352 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32353 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
32354 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32355   ODBC_LINK=" -lodbc"
32356 fi
32357
32358
32359 fi
32360
32361
32362 fi
32363
32364         fi
32365         if test "x$ODBC_LINK" = "x" ; then
32366             if test "$wxUSE_ODBC" = "sys" ; then
32367                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32368 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32369    { (exit 1); exit 1; }; }
32370             else
32371                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32372 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32373                 wxUSE_ODBC=builtin
32374             fi
32375         else
32376                         wxUSE_ODBC=sys
32377         fi
32378     fi
32379
32380     if test "$wxUSE_ODBC" = "builtin" ; then
32381         cat >>confdefs.h <<\_ACEOF
32382 #define wxUSE_BUILTIN_IODBC 1
32383 _ACEOF
32384
32385     fi
32386 fi
32387
32388 if test "$wxUSE_ODBC" != "no" ; then
32389     cat >>confdefs.h <<\_ACEOF
32390 #define wxUSE_ODBC 1
32391 _ACEOF
32392
32393     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32394
32395         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
32396 fi
32397
32398
32399 if test "$wxUSE_DISPLAY" = "yes"; then
32400     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32401         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32402 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32403
32404   ac_find_libraries=
32405   for ac_dir in $SEARCH_LIB;
32406   do
32407     for ac_extension in a so sl dylib dll.a; do
32408       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32409         ac_find_libraries=$ac_dir
32410         break 2
32411       fi
32412     done
32413   done
32414
32415         if test "$ac_find_libraries" != "" ; then
32416
32417     if test "$ac_find_libraries" = "default location"; then
32418     ac_path_to_link=""
32419   else
32420     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32421     result=$?
32422     if test $result = 0; then
32423       ac_path_to_link=""
32424     else
32425       ac_path_to_link=" -L$ac_find_libraries"
32426     fi
32427   fi
32428
32429             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32430                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32431             fi
32432             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32433             { echo "$as_me:$LINENO: result: yes" >&5
32434 echo "${ECHO_T}yes" >&6; }
32435
32436             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32437 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32438
32439   ac_find_libraries=
32440   for ac_dir in $SEARCH_LIB;
32441   do
32442     for ac_extension in a so sl dylib dll.a; do
32443       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32444         ac_find_libraries=$ac_dir
32445         break 2
32446       fi
32447     done
32448   done
32449
32450             if test "$ac_find_libraries" != "" ; then
32451                 { echo "$as_me:$LINENO: result: yes" >&5
32452 echo "${ECHO_T}yes" >&6; }
32453                 { echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
32454 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6; }
32455 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
32456   echo $ECHO_N "(cached) $ECHO_C" >&6
32457 else
32458   cat >conftest.$ac_ext <<_ACEOF
32459 /* confdefs.h.  */
32460 _ACEOF
32461 cat confdefs.h >>conftest.$ac_ext
32462 cat >>conftest.$ac_ext <<_ACEOF
32463 /* end confdefs.h.  */
32464
32465                                       #if HAVE_X11_XLIB_H
32466                                         #include <X11/Xlib.h>
32467                                       #endif
32468
32469
32470 #include <X11/extensions/xf86vmode.h>
32471 _ACEOF
32472 rm -f conftest.$ac_objext
32473 if { (ac_try="$ac_compile"
32474 case "(($ac_try" in
32475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476   *) ac_try_echo=$ac_try;;
32477 esac
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479   (eval "$ac_compile") 2>conftest.er1
32480   ac_status=$?
32481   grep -v '^ *+' conftest.er1 >conftest.err
32482   rm -f conftest.er1
32483   cat conftest.err >&5
32484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485   (exit $ac_status); } && {
32486          test -z "$ac_c_werror_flag" ||
32487          test ! -s conftest.err
32488        } && test -s conftest.$ac_objext; then
32489   ac_cv_header_X11_extensions_xf86vmode_h=yes
32490 else
32491   echo "$as_me: failed program was:" >&5
32492 sed 's/^/| /' conftest.$ac_ext >&5
32493
32494         ac_cv_header_X11_extensions_xf86vmode_h=no
32495 fi
32496
32497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32498 fi
32499 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
32500 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
32501 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
32502
32503                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32504
32505 fi
32506
32507
32508             else
32509                 { echo "$as_me:$LINENO: result: no" >&5
32510 echo "${ECHO_T}no" >&6; }
32511             fi
32512
32513         else
32514             { echo "$as_me:$LINENO: result: no" >&5
32515 echo "${ECHO_T}no" >&6; }
32516             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32517 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32518             wxUSE_DISPLAY="no"
32519         fi
32520     elif test "$wxUSE_MSW" = 1; then
32521         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
32522 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
32523 if test "${ac_cv_header_ddraw_h+set}" = set; then
32524   echo $ECHO_N "(cached) $ECHO_C" >&6
32525 else
32526   cat >conftest.$ac_ext <<_ACEOF
32527 /* confdefs.h.  */
32528 _ACEOF
32529 cat confdefs.h >>conftest.$ac_ext
32530 cat >>conftest.$ac_ext <<_ACEOF
32531 /* end confdefs.h.  */
32532 #include <windows.h>
32533
32534 #include <ddraw.h>
32535 _ACEOF
32536 rm -f conftest.$ac_objext
32537 if { (ac_try="$ac_compile"
32538 case "(($ac_try" in
32539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540   *) ac_try_echo=$ac_try;;
32541 esac
32542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543   (eval "$ac_compile") 2>conftest.er1
32544   ac_status=$?
32545   grep -v '^ *+' conftest.er1 >conftest.err
32546   rm -f conftest.er1
32547   cat conftest.err >&5
32548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549   (exit $ac_status); } && {
32550          test -z "$ac_c_werror_flag" ||
32551          test ! -s conftest.err
32552        } && test -s conftest.$ac_objext; then
32553   ac_cv_header_ddraw_h=yes
32554 else
32555   echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32557
32558         ac_cv_header_ddraw_h=no
32559 fi
32560
32561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32562 fi
32563 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
32564 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
32565
32566
32567     fi
32568 fi
32569
32570 if test "$wxUSE_DETECT_SM" = "yes"; then
32571     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32572         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
32573 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
32574
32575   ac_find_libraries=
32576   for ac_dir in $SEARCH_LIB;
32577   do
32578     for ac_extension in a so sl dylib dll.a; do
32579       if test -f "$ac_dir/libSM.$ac_extension"; then
32580         ac_find_libraries=$ac_dir
32581         break 2
32582       fi
32583     done
32584   done
32585
32586         if test "$ac_find_libraries" != "" ; then
32587
32588     if test "$ac_find_libraries" = "default location"; then
32589     ac_path_to_link=""
32590   else
32591     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32592     result=$?
32593     if test $result = 0; then
32594       ac_path_to_link=""
32595     else
32596       ac_path_to_link=" -L$ac_find_libraries"
32597     fi
32598   fi
32599
32600             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32601                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32602             fi
32603             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
32604             { echo "$as_me:$LINENO: result: yes" >&5
32605 echo "${ECHO_T}yes" >&6; }
32606         else
32607             { echo "$as_me:$LINENO: result: no" >&5
32608 echo "${ECHO_T}no" >&6; }
32609             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
32610 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
32611             wxUSE_DETECT_SM="no"
32612         fi
32613     else
32614         wxUSE_DETECT_SM="no"
32615     fi
32616 fi
32617
32618
32619
32620 USE_OPENGL=0
32621 if test "$wxUSE_OPENGL" = "yes"; then
32622     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
32623         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
32624 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
32625         wxUSE_OPENGL="no"
32626     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32627         OPENGL_LIBS="-framework OpenGL -framework AGL"
32628     elif test "$wxUSE_MSW" = 1; then
32629         OPENGL_LIBS="-lopengl32 -lglu32"
32630     else
32631                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
32632 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
32633
32634 ac_find_includes=
32635 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
32636   do
32637     if test -f "$ac_dir/GL/gl.h"; then
32638       ac_find_includes=$ac_dir
32639       break
32640     fi
32641   done
32642
32643         if test "$ac_find_includes" != "" ; then
32644             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32645 echo "${ECHO_T}found in $ac_find_includes" >&6; }
32646
32647     if test "x$ac_find_includes" = "x/usr/include"; then
32648     ac_path_to_include=""
32649   else
32650     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32651     result=$?
32652     if test $result = 0; then
32653       ac_path_to_include=""
32654     else
32655       ac_path_to_include=" -I$ac_find_includes"
32656     fi
32657   fi
32658
32659             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
32660         else
32661             { echo "$as_me:$LINENO: result: not found" >&5
32662 echo "${ECHO_T}not found" >&6; }
32663         fi
32664
32665         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32666 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
32667 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32668   echo $ECHO_N "(cached) $ECHO_C" >&6
32669 else
32670   cat >conftest.$ac_ext <<_ACEOF
32671 /* confdefs.h.  */
32672 _ACEOF
32673 cat confdefs.h >>conftest.$ac_ext
32674 cat >>conftest.$ac_ext <<_ACEOF
32675 /* end confdefs.h.  */
32676
32677
32678 #include <GL/gl.h>
32679 _ACEOF
32680 rm -f conftest.$ac_objext
32681 if { (ac_try="$ac_compile"
32682 case "(($ac_try" in
32683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32684   *) ac_try_echo=$ac_try;;
32685 esac
32686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32687   (eval "$ac_compile") 2>conftest.er1
32688   ac_status=$?
32689   grep -v '^ *+' conftest.er1 >conftest.err
32690   rm -f conftest.er1
32691   cat conftest.err >&5
32692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693   (exit $ac_status); } && {
32694          test -z "$ac_c_werror_flag" ||
32695          test ! -s conftest.err
32696        } && test -s conftest.$ac_objext; then
32697   ac_cv_header_GL_gl_h=yes
32698 else
32699   echo "$as_me: failed program was:" >&5
32700 sed 's/^/| /' conftest.$ac_ext >&5
32701
32702         ac_cv_header_GL_gl_h=no
32703 fi
32704
32705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32706 fi
32707 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32708 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
32709 if test $ac_cv_header_GL_gl_h = yes; then
32710
32711             if test "${ac_cv_header_GL_glu_h+set}" = set; then
32712   { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
32713 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
32714 if test "${ac_cv_header_GL_glu_h+set}" = set; then
32715   echo $ECHO_N "(cached) $ECHO_C" >&6
32716 fi
32717 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
32718 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
32719 else
32720   # Is the header compilable?
32721 { echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
32722 echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6; }
32723 cat >conftest.$ac_ext <<_ACEOF
32724 /* confdefs.h.  */
32725 _ACEOF
32726 cat confdefs.h >>conftest.$ac_ext
32727 cat >>conftest.$ac_ext <<_ACEOF
32728 /* end confdefs.h.  */
32729 $ac_includes_default
32730 #include <GL/glu.h>
32731 _ACEOF
32732 rm -f conftest.$ac_objext
32733 if { (ac_try="$ac_compile"
32734 case "(($ac_try" in
32735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736   *) ac_try_echo=$ac_try;;
32737 esac
32738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739   (eval "$ac_compile") 2>conftest.er1
32740   ac_status=$?
32741   grep -v '^ *+' conftest.er1 >conftest.err
32742   rm -f conftest.er1
32743   cat conftest.err >&5
32744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32745   (exit $ac_status); } && {
32746          test -z "$ac_c_werror_flag" ||
32747          test ! -s conftest.err
32748        } && test -s conftest.$ac_objext; then
32749   ac_header_compiler=yes
32750 else
32751   echo "$as_me: failed program was:" >&5
32752 sed 's/^/| /' conftest.$ac_ext >&5
32753
32754         ac_header_compiler=no
32755 fi
32756
32757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32759 echo "${ECHO_T}$ac_header_compiler" >&6; }
32760
32761 # Is the header present?
32762 { echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
32763 echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6; }
32764 cat >conftest.$ac_ext <<_ACEOF
32765 /* confdefs.h.  */
32766 _ACEOF
32767 cat confdefs.h >>conftest.$ac_ext
32768 cat >>conftest.$ac_ext <<_ACEOF
32769 /* end confdefs.h.  */
32770 #include <GL/glu.h>
32771 _ACEOF
32772 if { (ac_try="$ac_cpp conftest.$ac_ext"
32773 case "(($ac_try" in
32774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775   *) ac_try_echo=$ac_try;;
32776 esac
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32779   ac_status=$?
32780   grep -v '^ *+' conftest.er1 >conftest.err
32781   rm -f conftest.er1
32782   cat conftest.err >&5
32783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784   (exit $ac_status); } >/dev/null && {
32785          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32786          test ! -s conftest.err
32787        }; then
32788   ac_header_preproc=yes
32789 else
32790   echo "$as_me: failed program was:" >&5
32791 sed 's/^/| /' conftest.$ac_ext >&5
32792
32793   ac_header_preproc=no
32794 fi
32795
32796 rm -f conftest.err conftest.$ac_ext
32797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32798 echo "${ECHO_T}$ac_header_preproc" >&6; }
32799
32800 # So?  What about this header?
32801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32802   yes:no: )
32803     { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
32804 echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32805     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
32806 echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
32807     ac_header_preproc=yes
32808     ;;
32809   no:yes:* )
32810     { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
32811 echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
32812     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
32813 echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
32814     { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
32815 echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
32816     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
32817 echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32818     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
32819 echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
32820     { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
32821 echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
32822     ( cat <<\_ASBOX
32823 ## ----------------------------------------- ##
32824 ## Report this to wx-dev@lists.wxwidgets.org ##
32825 ## ----------------------------------------- ##
32826 _ASBOX
32827      ) | sed "s/^/$as_me: WARNING:     /" >&2
32828     ;;
32829 esac
32830 { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
32831 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
32832 if test "${ac_cv_header_GL_glu_h+set}" = set; then
32833   echo $ECHO_N "(cached) $ECHO_C" >&6
32834 else
32835   ac_cv_header_GL_glu_h=$ac_header_preproc
32836 fi
32837 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
32838 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
32839
32840 fi
32841 if test $ac_cv_header_GL_glu_h = yes; then
32842
32843                 found_gl=0
32844
32845                 { echo "$as_me:$LINENO: checking for -lGL" >&5
32846 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
32847
32848   ac_find_libraries=
32849   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
32850   do
32851     for ac_extension in a so sl dylib dll.a; do
32852       if test -f "$ac_dir/libGL.$ac_extension"; then
32853         ac_find_libraries=$ac_dir
32854         break 2
32855       fi
32856     done
32857   done
32858
32859                 if test "$ac_find_libraries" != "" ; then
32860                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32861 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32862
32863
32864     if test "$ac_find_libraries" = "default location"; then
32865     ac_path_to_link=""
32866   else
32867     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32868     result=$?
32869     if test $result = 0; then
32870       ac_path_to_link=""
32871     else
32872       ac_path_to_link=" -L$ac_find_libraries"
32873     fi
32874   fi
32875
32876                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
32877                         LDFLAGS_GL="$ac_path_to_link"
32878                     fi
32879
32880                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
32881 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
32882
32883   ac_find_libraries=
32884   for ac_dir in $SEARCH_LIB;
32885   do
32886     for ac_extension in a so sl dylib dll.a; do
32887       if test -f "$ac_dir/libGLU.$ac_extension"; then
32888         ac_find_libraries=$ac_dir
32889         break 2
32890       fi
32891     done
32892   done
32893
32894                     if test "$ac_find_libraries" != "" ; then
32895
32896     if test "$ac_find_libraries" = "default location"; then
32897     ac_path_to_link=""
32898   else
32899     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32900     result=$?
32901     if test $result = 0; then
32902       ac_path_to_link=""
32903     else
32904       ac_path_to_link=" -L$ac_find_libraries"
32905     fi
32906   fi
32907
32908                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
32909                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
32910                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32911                         fi
32912
32913                         found_gl=1
32914                         OPENGL_LIBS="-lGL -lGLU"
32915                         { echo "$as_me:$LINENO: result: yes" >&5
32916 echo "${ECHO_T}yes" >&6; }
32917                     else
32918                         { echo "$as_me:$LINENO: result: no" >&5
32919 echo "${ECHO_T}no" >&6; }
32920                     fi
32921                 else
32922                     { echo "$as_me:$LINENO: result: no" >&5
32923 echo "${ECHO_T}no" >&6; }
32924                 fi
32925
32926                 if test "$found_gl" != 1; then
32927                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32928 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
32929
32930   ac_find_libraries=
32931   for ac_dir in $SEARCH_LIB;
32932   do
32933     for ac_extension in a so sl dylib dll.a; do
32934       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32935         ac_find_libraries=$ac_dir
32936         break 2
32937       fi
32938     done
32939   done
32940
32941                     if test "$ac_find_libraries" != "" ; then
32942
32943     if test "$ac_find_libraries" = "default location"; then
32944     ac_path_to_link=""
32945   else
32946     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32947     result=$?
32948     if test $result = 0; then
32949       ac_path_to_link=""
32950     else
32951       ac_path_to_link=" -L$ac_find_libraries"
32952     fi
32953   fi
32954
32955                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32956                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
32957                         { echo "$as_me:$LINENO: result: yes" >&5
32958 echo "${ECHO_T}yes" >&6; }
32959                     else
32960                         { echo "$as_me:$LINENO: result: no" >&5
32961 echo "${ECHO_T}no" >&6; }
32962                     fi
32963                 fi
32964
32965 fi
32966
32967
32968
32969 fi
32970
32971
32972
32973         if test "x$OPENGL_LIBS" = "x"; then
32974                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32975 echo "$as_me: error: OpenGL libraries not available" >&2;}
32976    { (exit 1); exit 1; }; }
32977         fi
32978     fi
32979
32980     if test "$wxUSE_OPENGL" = "yes"; then
32981         USE_OPENGL=1
32982         cat >>confdefs.h <<\_ACEOF
32983 #define wxUSE_OPENGL 1
32984 _ACEOF
32985
32986         cat >>confdefs.h <<\_ACEOF
32987 #define wxUSE_GLCANVAS 1
32988 _ACEOF
32989
32990         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32991     fi
32992 fi
32993
32994
32995 if test -n "$TOOLKIT" ; then
32996     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32997 fi
32998
32999
33000
33001 if test "$wxUSE_SHARED" = "yes"; then
33002     case "${host}" in
33003       *-pc-msdosdjgpp )
33004                 wxUSE_SHARED=no
33005         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33006 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33007       ;;
33008     esac
33009 fi
33010
33011 if test "$wxUSE_SHARED" = "yes"; then
33012
33013
33014     case "${host}" in
33015         *-*-cygwin* | *-*-mingw* )
33016                                                                                                 wx_cv_version_script=no
33017             ;;
33018
33019         *)
33020             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33021 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33022 if test "${wx_cv_version_script+set}" = set; then
33023   echo $ECHO_N "(cached) $ECHO_C" >&6
33024 else
33025
33026                 echo "VER_1 { *; };" >conftest.sym
33027                 echo "int main() { return 0; }" >conftest.cpp
33028
33029                 if { ac_try='
33030                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33031                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33033   (eval $ac_try) 2>&5
33034   ac_status=$?
33035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036   (exit $ac_status); }; } ; then
33037                   if test -s conftest.stderr ; then
33038                       wx_cv_version_script=no
33039                   else
33040                       wx_cv_version_script=yes
33041                   fi
33042                 else
33043                   wx_cv_version_script=no
33044                 fi
33045
33046                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33047                 then
33048                   echo "struct B { virtual ~B() { } }; \
33049                         struct D : public B { }; \
33050                         void F() { D d; }" > conftest.cpp
33051
33052                   if { ac_try='
33053                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33054                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056   (eval $ac_try) 2>&5
33057   ac_status=$?
33058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059   (exit $ac_status); }; } &&
33060                      { ac_try='
33061                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33062                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33064   (eval $ac_try) 2>&5
33065   ac_status=$?
33066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067   (exit $ac_status); }; }
33068                   then
33069                     if { ac_try='
33070                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33071                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33073   (eval $ac_try) 2>&5
33074   ac_status=$?
33075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076   (exit $ac_status); }; }
33077                     then
33078                       wx_cv_version_script=yes
33079                     else
33080                       wx_cv_version_script=no
33081                     fi
33082                   fi
33083                 fi
33084
33085                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33086                 rm -f conftest1.output conftest2.output conftest3.output
33087
33088 fi
33089 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33090 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33091
33092             if test $wx_cv_version_script = yes ; then
33093                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33094             fi
33095             ;;
33096     esac
33097
33098
33099         if test "x$SUNCXX" = xyes; then
33100         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33101         WXCONFIG_RPATH="-R\$libdir"
33102     else
33103     case "${host}" in
33104       *-*-linux* | *-*-gnu* )
33105         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33106         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33107         ;;
33108
33109       *-*-solaris2* )
33110
33111                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33112
33113                         saveLdflags="$LDFLAGS"
33114         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33115         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33116 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33117         cat >conftest.$ac_ext <<_ACEOF
33118 /* confdefs.h.  */
33119 _ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h.  */
33123
33124 int
33125 main ()
33126 {
33127
33128   ;
33129   return 0;
33130 }
33131 _ACEOF
33132 rm -f conftest.$ac_objext conftest$ac_exeext
33133 if { (ac_try="$ac_link"
33134 case "(($ac_try" in
33135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136   *) ac_try_echo=$ac_try;;
33137 esac
33138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139   (eval "$ac_link") 2>conftest.er1
33140   ac_status=$?
33141   grep -v '^ *+' conftest.er1 >conftest.err
33142   rm -f conftest.er1
33143   cat conftest.err >&5
33144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145   (exit $ac_status); } && {
33146          test -z "$ac_c_werror_flag" ||
33147          test ! -s conftest.err
33148        } && test -s conftest$ac_exeext &&
33149        $as_test_x conftest$ac_exeext; then
33150
33151                 { echo "$as_me:$LINENO: result: yes" >&5
33152 echo "${ECHO_T}yes" >&6; }
33153                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33154                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33155
33156 else
33157   echo "$as_me: failed program was:" >&5
33158 sed 's/^/| /' conftest.$ac_ext >&5
33159
33160
33161                 { echo "$as_me:$LINENO: result: no" >&5
33162 echo "${ECHO_T}no" >&6; }
33163                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33164 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33165                 LDFLAGS="$saveLdflags -Wl,-R,/"
33166                 cat >conftest.$ac_ext <<_ACEOF
33167 /* confdefs.h.  */
33168 _ACEOF
33169 cat confdefs.h >>conftest.$ac_ext
33170 cat >>conftest.$ac_ext <<_ACEOF
33171 /* end confdefs.h.  */
33172
33173 int
33174 main ()
33175 {
33176
33177   ;
33178   return 0;
33179 }
33180 _ACEOF
33181 rm -f conftest.$ac_objext conftest$ac_exeext
33182 if { (ac_try="$ac_link"
33183 case "(($ac_try" in
33184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33185   *) ac_try_echo=$ac_try;;
33186 esac
33187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33188   (eval "$ac_link") 2>conftest.er1
33189   ac_status=$?
33190   grep -v '^ *+' conftest.er1 >conftest.err
33191   rm -f conftest.er1
33192   cat conftest.err >&5
33193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194   (exit $ac_status); } && {
33195          test -z "$ac_c_werror_flag" ||
33196          test ! -s conftest.err
33197        } && test -s conftest$ac_exeext &&
33198        $as_test_x conftest$ac_exeext; then
33199
33200                         { echo "$as_me:$LINENO: result: yes" >&5
33201 echo "${ECHO_T}yes" >&6; }
33202                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33203                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33204
33205 else
33206   echo "$as_me: failed program was:" >&5
33207 sed 's/^/| /' conftest.$ac_ext >&5
33208
33209
33210                         { echo "$as_me:$LINENO: result: no" >&5
33211 echo "${ECHO_T}no" >&6; }
33212
33213 fi
33214
33215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33216       conftest$ac_exeext conftest.$ac_ext
33217
33218 fi
33219
33220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33221       conftest$ac_exeext conftest.$ac_ext
33222         LDFLAGS="$saveLdflags"
33223       ;;
33224
33225       *-*-darwin* )
33226         install_name_tool=`which install_name_tool`
33227         if test "$install_name_tool" -a -x "$install_name_tool"; then
33228             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33229             cat <<EOF >change-install-names
33230 #!/bin/sh
33231 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33232 inst_cmd="install_name_tool "
33233 for i in \${libnames} ; do
33234     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33235 done
33236 \${inst_cmd} \${3}
33237 EOF
33238             chmod +x change-install-names
33239         fi
33240       ;;
33241
33242       *-*-cygwin* | *-*-mingw32* )
33243                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33244         ;;
33245
33246       *-*-hpux* )
33247         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33248         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33249         ;;
33250
33251     esac
33252     fi
33253
33254     if test $wxUSE_RPATH = "no"; then
33255         SAMPLES_RPATH_FLAG=''
33256         SAMPLES_RPATH_POSTLINK=''
33257         WXCONFIG_RPATH=''
33258     fi
33259
33260     SHARED=1
33261
33262 else
33263
33264     config_linkage_component="-static"
33265     SHARED=0
33266
33267 fi
33268
33269
33270 UNICODE=0
33271 lib_unicode_suffix=
33272 WX_CHARTYPE="ansi"
33273 if test "$wxUSE_UNICODE" = "yes"; then
33274     lib_unicode_suffix=u
33275     WX_CHARTYPE="unicode"
33276     UNICODE=1
33277 fi
33278
33279 lib_debug_suffix=
33280 WX_DEBUGTYPE="release"
33281 DEBUG_FLAG=0
33282 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33283     lib_debug_suffix=d
33284     WX_DEBUGTYPE="debug"
33285     DEBUG_FLAG=1
33286 fi
33287
33288 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33289 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33290
33291 DEBUG_INFO=0
33292 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33293     DEBUG_INFO=1
33294 fi
33295
33296 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
33297
33298 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33299
33300 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33301
33302 if test "$cross_compiling" = "yes"; then
33303     HOST_SUFFIX="-$host_alias"
33304     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33305     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33306 fi
33307
33308 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33309 if test "${TOOLKIT_DIR}" = "os2"; then
33310     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33311 else
33312     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33313 fi
33314
33315
33316
33317 if test "$wxUSE_COCOA" = 1; then
33318
33319     ac_ext=c
33320 ac_cpp='$CPP $CPPFLAGS'
33321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33324
33325 ac_ext=m
33326
33327     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33328 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
33329     cat >conftest.$ac_ext <<_ACEOF
33330 /* confdefs.h.  */
33331 _ACEOF
33332 cat confdefs.h >>conftest.$ac_ext
33333 cat >>conftest.$ac_ext <<_ACEOF
33334 /* end confdefs.h.  */
33335 #include <AppKit/NSEvent.h>
33336 #include <CoreFoundation/CoreFoundation.h>
33337
33338 int
33339 main ()
33340 {
33341
33342   ;
33343   return 0;
33344 }
33345 _ACEOF
33346 rm -f conftest.$ac_objext
33347 if { (ac_try="$ac_compile"
33348 case "(($ac_try" in
33349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33350   *) ac_try_echo=$ac_try;;
33351 esac
33352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33353   (eval "$ac_compile") 2>conftest.er1
33354   ac_status=$?
33355   grep -v '^ *+' conftest.er1 >conftest.err
33356   rm -f conftest.er1
33357   cat conftest.err >&5
33358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359   (exit $ac_status); } && {
33360          test -z "$ac_c_werror_flag" ||
33361          test ! -s conftest.err
33362        } && test -s conftest.$ac_objext; then
33363   { echo "$as_me:$LINENO: result: no" >&5
33364 echo "${ECHO_T}no" >&6; }
33365 else
33366   echo "$as_me: failed program was:" >&5
33367 sed 's/^/| /' conftest.$ac_ext >&5
33368
33369         { echo "$as_me:$LINENO: result: yes" >&5
33370 echo "${ECHO_T}yes" >&6; }
33371         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33372 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
33373         cat >conftest.$ac_ext <<_ACEOF
33374 /* confdefs.h.  */
33375 _ACEOF
33376 cat confdefs.h >>conftest.$ac_ext
33377 cat >>conftest.$ac_ext <<_ACEOF
33378 /* end confdefs.h.  */
33379 #define __Point__ 1
33380 #include <AppKit/NSEvent.h>
33381 #include <CoreFoundation/CoreFoundation.h>
33382
33383 int
33384 main ()
33385 {
33386
33387   ;
33388   return 0;
33389 }
33390 _ACEOF
33391 rm -f conftest.$ac_objext
33392 if { (ac_try="$ac_compile"
33393 case "(($ac_try" in
33394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33395   *) ac_try_echo=$ac_try;;
33396 esac
33397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33398   (eval "$ac_compile") 2>conftest.er1
33399   ac_status=$?
33400   grep -v '^ *+' conftest.er1 >conftest.err
33401   rm -f conftest.er1
33402   cat conftest.err >&5
33403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404   (exit $ac_status); } && {
33405          test -z "$ac_c_werror_flag" ||
33406          test ! -s conftest.err
33407        } && test -s conftest.$ac_objext; then
33408   { echo "$as_me:$LINENO: result: yes" >&5
33409 echo "${ECHO_T}yes" >&6; }
33410             cat >>confdefs.h <<\_ACEOF
33411 #define __Point__ 1
33412 _ACEOF
33413
33414
33415 else
33416   echo "$as_me: failed program was:" >&5
33417 sed 's/^/| /' conftest.$ac_ext >&5
33418
33419         { { echo "$as_me:$LINENO: error: no
33420 See \`config.log' for more details." >&5
33421 echo "$as_me: error: no
33422 See \`config.log' for more details." >&2;}
33423    { (exit 1); exit 1; }; }
33424
33425 fi
33426
33427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33428
33429 fi
33430
33431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33432     ac_ext=c
33433 ac_cpp='$CPP $CPPFLAGS'
33434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33437
33438 fi
33439
33440 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
33441             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33442     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
33443
33444         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
33445
33446     # Extract the first word of "Rez", so it can be a program name with args.
33447 set dummy Rez; ac_word=$2
33448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33450 if test "${ac_cv_prog_REZ+set}" = set; then
33451   echo $ECHO_N "(cached) $ECHO_C" >&6
33452 else
33453   if test -n "$REZ"; then
33454   ac_cv_prog_REZ="$REZ" # Let the user override the test.
33455 else
33456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33457 for as_dir in $PATH
33458 do
33459   IFS=$as_save_IFS
33460   test -z "$as_dir" && as_dir=.
33461   for ac_exec_ext in '' $ac_executable_extensions; do
33462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33463     ac_cv_prog_REZ="Rez"
33464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33465     break 2
33466   fi
33467 done
33468 done
33469 IFS=$as_save_IFS
33470
33471   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
33472 fi
33473 fi
33474 REZ=$ac_cv_prog_REZ
33475 if test -n "$REZ"; then
33476   { echo "$as_me:$LINENO: result: $REZ" >&5
33477 echo "${ECHO_T}$REZ" >&6; }
33478 else
33479   { echo "$as_me:$LINENO: result: no" >&5
33480 echo "${ECHO_T}no" >&6; }
33481 fi
33482
33483
33484     # Extract the first word of "DeRez", so it can be a program name with args.
33485 set dummy DeRez; ac_word=$2
33486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33488 if test "${ac_cv_prog_DEREZ+set}" = set; then
33489   echo $ECHO_N "(cached) $ECHO_C" >&6
33490 else
33491   if test -n "$DEREZ"; then
33492   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33493 else
33494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33495 for as_dir in $PATH
33496 do
33497   IFS=$as_save_IFS
33498   test -z "$as_dir" && as_dir=.
33499   for ac_exec_ext in '' $ac_executable_extensions; do
33500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33501     ac_cv_prog_DEREZ="DeRez"
33502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33503     break 2
33504   fi
33505 done
33506 done
33507 IFS=$as_save_IFS
33508
33509   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33510 fi
33511 fi
33512 DEREZ=$ac_cv_prog_DEREZ
33513 if test -n "$DEREZ"; then
33514   { echo "$as_me:$LINENO: result: $DEREZ" >&5
33515 echo "${ECHO_T}$DEREZ" >&6; }
33516 else
33517   { echo "$as_me:$LINENO: result: no" >&5
33518 echo "${ECHO_T}no" >&6; }
33519 fi
33520
33521
33522     # Extract the first word of "SetFile", so it can be a program name with args.
33523 set dummy SetFile; ac_word=$2
33524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33526 if test "${ac_cv_prog_SETFILE+set}" = set; then
33527   echo $ECHO_N "(cached) $ECHO_C" >&6
33528 else
33529   if test -n "$SETFILE"; then
33530   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33531 else
33532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33533 for as_dir in $PATH
33534 do
33535   IFS=$as_save_IFS
33536   test -z "$as_dir" && as_dir=.
33537   for ac_exec_ext in '' $ac_executable_extensions; do
33538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33539     ac_cv_prog_SETFILE="SetFile"
33540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33541     break 2
33542   fi
33543 done
33544 done
33545 IFS=$as_save_IFS
33546
33547   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33548 fi
33549 fi
33550 SETFILE=$ac_cv_prog_SETFILE
33551 if test -n "$SETFILE"; then
33552   { echo "$as_me:$LINENO: result: $SETFILE" >&5
33553 echo "${ECHO_T}$SETFILE" >&6; }
33554 else
33555   { echo "$as_me:$LINENO: result: no" >&5
33556 echo "${ECHO_T}no" >&6; }
33557 fi
33558
33559
33560
33561     MACSETFILE="\$(SETFILE)"
33562
33563             if test "$wxUSE_MAC" = 1; then
33564         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
33565         RESCOMP="$REZ"
33566         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
33567     else
33568         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33569         RESCOMP="echo -n \| $REZ"
33570         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
33571     fi
33572
33573 else
33574         MACSETFILE="@true"
33575
33576     if test "$wxUSE_PM" = 1; then
33577         RESCOMP="emxbind"
33578         WXCONFIG_RESFLAGS="-ep"
33579
33580                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
33581     else
33582         POSTLINK_COMMAND="@true"
33583     fi
33584
33585 fi
33586
33587
33588
33589 { echo "$as_me:$LINENO: checking for mode_t" >&5
33590 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33591 if test "${ac_cv_type_mode_t+set}" = set; then
33592   echo $ECHO_N "(cached) $ECHO_C" >&6
33593 else
33594   cat >conftest.$ac_ext <<_ACEOF
33595 /* confdefs.h.  */
33596 _ACEOF
33597 cat confdefs.h >>conftest.$ac_ext
33598 cat >>conftest.$ac_ext <<_ACEOF
33599 /* end confdefs.h.  */
33600 $ac_includes_default
33601 typedef mode_t ac__type_new_;
33602 int
33603 main ()
33604 {
33605 if ((ac__type_new_ *) 0)
33606   return 0;
33607 if (sizeof (ac__type_new_))
33608   return 0;
33609   ;
33610   return 0;
33611 }
33612 _ACEOF
33613 rm -f conftest.$ac_objext
33614 if { (ac_try="$ac_compile"
33615 case "(($ac_try" in
33616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33617   *) ac_try_echo=$ac_try;;
33618 esac
33619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33620   (eval "$ac_compile") 2>conftest.er1
33621   ac_status=$?
33622   grep -v '^ *+' conftest.er1 >conftest.err
33623   rm -f conftest.er1
33624   cat conftest.err >&5
33625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33626   (exit $ac_status); } && {
33627          test -z "$ac_c_werror_flag" ||
33628          test ! -s conftest.err
33629        } && test -s conftest.$ac_objext; then
33630   ac_cv_type_mode_t=yes
33631 else
33632   echo "$as_me: failed program was:" >&5
33633 sed 's/^/| /' conftest.$ac_ext >&5
33634
33635         ac_cv_type_mode_t=no
33636 fi
33637
33638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33639 fi
33640 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33641 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33642 if test $ac_cv_type_mode_t = yes; then
33643   :
33644 else
33645
33646 cat >>confdefs.h <<_ACEOF
33647 #define mode_t int
33648 _ACEOF
33649
33650 fi
33651
33652 { echo "$as_me:$LINENO: checking for off_t" >&5
33653 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33654 if test "${ac_cv_type_off_t+set}" = set; then
33655   echo $ECHO_N "(cached) $ECHO_C" >&6
33656 else
33657   cat >conftest.$ac_ext <<_ACEOF
33658 /* confdefs.h.  */
33659 _ACEOF
33660 cat confdefs.h >>conftest.$ac_ext
33661 cat >>conftest.$ac_ext <<_ACEOF
33662 /* end confdefs.h.  */
33663 $ac_includes_default
33664 typedef off_t ac__type_new_;
33665 int
33666 main ()
33667 {
33668 if ((ac__type_new_ *) 0)
33669   return 0;
33670 if (sizeof (ac__type_new_))
33671   return 0;
33672   ;
33673   return 0;
33674 }
33675 _ACEOF
33676 rm -f conftest.$ac_objext
33677 if { (ac_try="$ac_compile"
33678 case "(($ac_try" in
33679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33680   *) ac_try_echo=$ac_try;;
33681 esac
33682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33683   (eval "$ac_compile") 2>conftest.er1
33684   ac_status=$?
33685   grep -v '^ *+' conftest.er1 >conftest.err
33686   rm -f conftest.er1
33687   cat conftest.err >&5
33688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689   (exit $ac_status); } && {
33690          test -z "$ac_c_werror_flag" ||
33691          test ! -s conftest.err
33692        } && test -s conftest.$ac_objext; then
33693   ac_cv_type_off_t=yes
33694 else
33695   echo "$as_me: failed program was:" >&5
33696 sed 's/^/| /' conftest.$ac_ext >&5
33697
33698         ac_cv_type_off_t=no
33699 fi
33700
33701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33702 fi
33703 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33704 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33705 if test $ac_cv_type_off_t = yes; then
33706   :
33707 else
33708
33709 cat >>confdefs.h <<_ACEOF
33710 #define off_t long int
33711 _ACEOF
33712
33713 fi
33714
33715 { echo "$as_me:$LINENO: checking for pid_t" >&5
33716 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33717 if test "${ac_cv_type_pid_t+set}" = set; then
33718   echo $ECHO_N "(cached) $ECHO_C" >&6
33719 else
33720   cat >conftest.$ac_ext <<_ACEOF
33721 /* confdefs.h.  */
33722 _ACEOF
33723 cat confdefs.h >>conftest.$ac_ext
33724 cat >>conftest.$ac_ext <<_ACEOF
33725 /* end confdefs.h.  */
33726 $ac_includes_default
33727 typedef pid_t ac__type_new_;
33728 int
33729 main ()
33730 {
33731 if ((ac__type_new_ *) 0)
33732   return 0;
33733 if (sizeof (ac__type_new_))
33734   return 0;
33735   ;
33736   return 0;
33737 }
33738 _ACEOF
33739 rm -f conftest.$ac_objext
33740 if { (ac_try="$ac_compile"
33741 case "(($ac_try" in
33742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33743   *) ac_try_echo=$ac_try;;
33744 esac
33745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33746   (eval "$ac_compile") 2>conftest.er1
33747   ac_status=$?
33748   grep -v '^ *+' conftest.er1 >conftest.err
33749   rm -f conftest.er1
33750   cat conftest.err >&5
33751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752   (exit $ac_status); } && {
33753          test -z "$ac_c_werror_flag" ||
33754          test ! -s conftest.err
33755        } && test -s conftest.$ac_objext; then
33756   ac_cv_type_pid_t=yes
33757 else
33758   echo "$as_me: failed program was:" >&5
33759 sed 's/^/| /' conftest.$ac_ext >&5
33760
33761         ac_cv_type_pid_t=no
33762 fi
33763
33764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33765 fi
33766 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33767 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33768 if test $ac_cv_type_pid_t = yes; then
33769   :
33770 else
33771
33772 cat >>confdefs.h <<_ACEOF
33773 #define pid_t int
33774 _ACEOF
33775
33776 fi
33777
33778 { echo "$as_me:$LINENO: checking for size_t" >&5
33779 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33780 if test "${ac_cv_type_size_t+set}" = set; then
33781   echo $ECHO_N "(cached) $ECHO_C" >&6
33782 else
33783   cat >conftest.$ac_ext <<_ACEOF
33784 /* confdefs.h.  */
33785 _ACEOF
33786 cat confdefs.h >>conftest.$ac_ext
33787 cat >>conftest.$ac_ext <<_ACEOF
33788 /* end confdefs.h.  */
33789 $ac_includes_default
33790 typedef size_t ac__type_new_;
33791 int
33792 main ()
33793 {
33794 if ((ac__type_new_ *) 0)
33795   return 0;
33796 if (sizeof (ac__type_new_))
33797   return 0;
33798   ;
33799   return 0;
33800 }
33801 _ACEOF
33802 rm -f conftest.$ac_objext
33803 if { (ac_try="$ac_compile"
33804 case "(($ac_try" in
33805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33806   *) ac_try_echo=$ac_try;;
33807 esac
33808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33809   (eval "$ac_compile") 2>conftest.er1
33810   ac_status=$?
33811   grep -v '^ *+' conftest.er1 >conftest.err
33812   rm -f conftest.er1
33813   cat conftest.err >&5
33814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815   (exit $ac_status); } && {
33816          test -z "$ac_c_werror_flag" ||
33817          test ! -s conftest.err
33818        } && test -s conftest.$ac_objext; then
33819   ac_cv_type_size_t=yes
33820 else
33821   echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33823
33824         ac_cv_type_size_t=no
33825 fi
33826
33827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33828 fi
33829 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33830 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33831 if test $ac_cv_type_size_t = yes; then
33832   :
33833 else
33834
33835 cat >>confdefs.h <<_ACEOF
33836 #define size_t unsigned int
33837 _ACEOF
33838
33839 fi
33840
33841 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33842 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33843 if test "${ac_cv_type_uid_t+set}" = set; then
33844   echo $ECHO_N "(cached) $ECHO_C" >&6
33845 else
33846   cat >conftest.$ac_ext <<_ACEOF
33847 /* confdefs.h.  */
33848 _ACEOF
33849 cat confdefs.h >>conftest.$ac_ext
33850 cat >>conftest.$ac_ext <<_ACEOF
33851 /* end confdefs.h.  */
33852 #include <sys/types.h>
33853
33854 _ACEOF
33855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33856   $EGREP "uid_t" >/dev/null 2>&1; then
33857   ac_cv_type_uid_t=yes
33858 else
33859   ac_cv_type_uid_t=no
33860 fi
33861 rm -f conftest*
33862
33863 fi
33864 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33865 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33866 if test $ac_cv_type_uid_t = no; then
33867
33868 cat >>confdefs.h <<\_ACEOF
33869 #define uid_t int
33870 _ACEOF
33871
33872
33873 cat >>confdefs.h <<\_ACEOF
33874 #define gid_t int
33875 _ACEOF
33876
33877 fi
33878
33879
33880 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33881 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33882 if test "${ac_cv_type_ssize_t+set}" = set; then
33883   echo $ECHO_N "(cached) $ECHO_C" >&6
33884 else
33885   cat >conftest.$ac_ext <<_ACEOF
33886 /* confdefs.h.  */
33887 _ACEOF
33888 cat confdefs.h >>conftest.$ac_ext
33889 cat >>conftest.$ac_ext <<_ACEOF
33890 /* end confdefs.h.  */
33891 $ac_includes_default
33892 typedef ssize_t ac__type_new_;
33893 int
33894 main ()
33895 {
33896 if ((ac__type_new_ *) 0)
33897   return 0;
33898 if (sizeof (ac__type_new_))
33899   return 0;
33900   ;
33901   return 0;
33902 }
33903 _ACEOF
33904 rm -f conftest.$ac_objext
33905 if { (ac_try="$ac_compile"
33906 case "(($ac_try" in
33907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33908   *) ac_try_echo=$ac_try;;
33909 esac
33910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33911   (eval "$ac_compile") 2>conftest.er1
33912   ac_status=$?
33913   grep -v '^ *+' conftest.er1 >conftest.err
33914   rm -f conftest.er1
33915   cat conftest.err >&5
33916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917   (exit $ac_status); } && {
33918          test -z "$ac_c_werror_flag" ||
33919          test ! -s conftest.err
33920        } && test -s conftest.$ac_objext; then
33921   ac_cv_type_ssize_t=yes
33922 else
33923   echo "$as_me: failed program was:" >&5
33924 sed 's/^/| /' conftest.$ac_ext >&5
33925
33926         ac_cv_type_ssize_t=no
33927 fi
33928
33929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33930 fi
33931 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33932 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33933 if test $ac_cv_type_ssize_t = yes; then
33934
33935 cat >>confdefs.h <<_ACEOF
33936 #define HAVE_SSIZE_T 1
33937 _ACEOF
33938
33939
33940 fi
33941
33942
33943 ac_ext=cpp
33944 ac_cpp='$CXXCPP $CPPFLAGS'
33945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33948  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33949 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
33950 if test "${wx_cv_size_t_is_uint+set}" = set; then
33951   echo $ECHO_N "(cached) $ECHO_C" >&6
33952 else
33953
33954                             cat >conftest.$ac_ext <<_ACEOF
33955 /* confdefs.h.  */
33956 _ACEOF
33957 cat confdefs.h >>conftest.$ac_ext
33958 cat >>conftest.$ac_ext <<_ACEOF
33959 /* end confdefs.h.  */
33960 #include <stddef.h>
33961 int
33962 main ()
33963 {
33964
33965             return 0; }
33966
33967             struct Foo { void foo(size_t); void foo(unsigned int); };
33968
33969             int bar() {
33970
33971   ;
33972   return 0;
33973 }
33974 _ACEOF
33975 rm -f conftest.$ac_objext
33976 if { (ac_try="$ac_compile"
33977 case "(($ac_try" in
33978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33979   *) ac_try_echo=$ac_try;;
33980 esac
33981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33982   (eval "$ac_compile") 2>conftest.er1
33983   ac_status=$?
33984   grep -v '^ *+' conftest.er1 >conftest.err
33985   rm -f conftest.er1
33986   cat conftest.err >&5
33987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988   (exit $ac_status); } && {
33989          test -z "$ac_cxx_werror_flag" ||
33990          test ! -s conftest.err
33991        } && test -s conftest.$ac_objext; then
33992   wx_cv_size_t_is_uint=no
33993 else
33994   echo "$as_me: failed program was:" >&5
33995 sed 's/^/| /' conftest.$ac_ext >&5
33996
33997         wx_cv_size_t_is_uint=yes
33998
33999 fi
34000
34001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34002
34003
34004 fi
34005 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34006 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34007
34008 if test "$wx_cv_size_t_is_uint" = "yes"; then
34009     cat >>confdefs.h <<\_ACEOF
34010 #define wxSIZE_T_IS_UINT 1
34011 _ACEOF
34012
34013 else
34014     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34015 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34016 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34017   echo $ECHO_N "(cached) $ECHO_C" >&6
34018 else
34019   cat >conftest.$ac_ext <<_ACEOF
34020 /* confdefs.h.  */
34021 _ACEOF
34022 cat confdefs.h >>conftest.$ac_ext
34023 cat >>conftest.$ac_ext <<_ACEOF
34024 /* end confdefs.h.  */
34025 #include <stddef.h>
34026 int
34027 main ()
34028 {
34029
34030                 return 0; }
34031
34032                 struct Foo { void foo(size_t); void foo(unsigned long); };
34033
34034                 int bar() {
34035
34036   ;
34037   return 0;
34038 }
34039 _ACEOF
34040 rm -f conftest.$ac_objext
34041 if { (ac_try="$ac_compile"
34042 case "(($ac_try" in
34043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34044   *) ac_try_echo=$ac_try;;
34045 esac
34046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34047   (eval "$ac_compile") 2>conftest.er1
34048   ac_status=$?
34049   grep -v '^ *+' conftest.er1 >conftest.err
34050   rm -f conftest.er1
34051   cat conftest.err >&5
34052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053   (exit $ac_status); } && {
34054          test -z "$ac_cxx_werror_flag" ||
34055          test ! -s conftest.err
34056        } && test -s conftest.$ac_objext; then
34057   wx_cv_size_t_is_ulong=no
34058 else
34059   echo "$as_me: failed program was:" >&5
34060 sed 's/^/| /' conftest.$ac_ext >&5
34061
34062         wx_cv_size_t_is_ulong=yes
34063
34064 fi
34065
34066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34067
34068 fi
34069 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34070 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34071
34072     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34073         cat >>confdefs.h <<\_ACEOF
34074 #define wxSIZE_T_IS_ULONG 1
34075 _ACEOF
34076
34077     fi
34078 fi
34079
34080 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34081 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34082 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34083   echo $ECHO_N "(cached) $ECHO_C" >&6
34084 else
34085   cat >conftest.$ac_ext <<_ACEOF
34086 /* confdefs.h.  */
34087 _ACEOF
34088 cat confdefs.h >>conftest.$ac_ext
34089 cat >>conftest.$ac_ext <<_ACEOF
34090 /* end confdefs.h.  */
34091 #include <wchar.h>
34092 int
34093 main ()
34094 {
34095
34096             return 0; }
34097
34098             struct Foo { void foo(wchar_t);
34099                          void foo(unsigned short);
34100                          void foo(unsigned int);
34101                          void foo(unsigned long); };
34102
34103             int bar() {
34104
34105   ;
34106   return 0;
34107 }
34108 _ACEOF
34109 rm -f conftest.$ac_objext
34110 if { (ac_try="$ac_compile"
34111 case "(($ac_try" in
34112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34113   *) ac_try_echo=$ac_try;;
34114 esac
34115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34116   (eval "$ac_compile") 2>conftest.er1
34117   ac_status=$?
34118   grep -v '^ *+' conftest.er1 >conftest.err
34119   rm -f conftest.er1
34120   cat conftest.err >&5
34121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122   (exit $ac_status); } && {
34123          test -z "$ac_cxx_werror_flag" ||
34124          test ! -s conftest.err
34125        } && test -s conftest.$ac_objext; then
34126   wx_cv_wchar_t_is_separate_type=yes
34127 else
34128   echo "$as_me: failed program was:" >&5
34129 sed 's/^/| /' conftest.$ac_ext >&5
34130
34131         wx_cv_wchar_t_is_separate_type=no
34132
34133 fi
34134
34135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34136
34137 fi
34138 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34139 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34140
34141 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34142     cat >>confdefs.h <<\_ACEOF
34143 #define wxWCHAR_T_IS_SEPARATE_TYPE 1
34144 _ACEOF
34145
34146 fi
34147
34148 ac_ext=c
34149 ac_cpp='$CPP $CPPFLAGS'
34150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34153
34154
34155 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34156 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34157 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34158   echo $ECHO_N "(cached) $ECHO_C" >&6
34159 else
34160
34161         cat >conftest.$ac_ext <<_ACEOF
34162 /* confdefs.h.  */
34163 _ACEOF
34164 cat confdefs.h >>conftest.$ac_ext
34165 cat >>conftest.$ac_ext <<_ACEOF
34166 /* end confdefs.h.  */
34167 #include <pwd.h>
34168 int
34169 main ()
34170 {
34171
34172                 char *p;
34173                 struct passwd *pw;
34174                 p = pw->pw_gecos;
34175
34176   ;
34177   return 0;
34178 }
34179 _ACEOF
34180 rm -f conftest.$ac_objext
34181 if { (ac_try="$ac_compile"
34182 case "(($ac_try" in
34183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34184   *) ac_try_echo=$ac_try;;
34185 esac
34186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34187   (eval "$ac_compile") 2>conftest.er1
34188   ac_status=$?
34189   grep -v '^ *+' conftest.er1 >conftest.err
34190   rm -f conftest.er1
34191   cat conftest.err >&5
34192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193   (exit $ac_status); } && {
34194          test -z "$ac_c_werror_flag" ||
34195          test ! -s conftest.err
34196        } && test -s conftest.$ac_objext; then
34197
34198                 wx_cv_struct_pw_gecos=yes
34199
34200 else
34201   echo "$as_me: failed program was:" >&5
34202 sed 's/^/| /' conftest.$ac_ext >&5
34203
34204
34205                 wx_cv_struct_pw_gecos=no
34206
34207
34208 fi
34209
34210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34211
34212
34213 fi
34214 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34215 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34216
34217 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34218     cat >>confdefs.h <<\_ACEOF
34219 #define HAVE_PW_GECOS 1
34220 _ACEOF
34221
34222 fi
34223
34224
34225 if test "$wxUSE_WCHAR_T" = "yes"; then
34226     cat >>confdefs.h <<\_ACEOF
34227 #define wxUSE_WCHAR_T 1
34228 _ACEOF
34229
34230
34231         WCSLEN_FOUND=0
34232     WCHAR_LINK=
34233
34234 for ac_func in wcslen
34235 do
34236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34240   echo $ECHO_N "(cached) $ECHO_C" >&6
34241 else
34242   cat >conftest.$ac_ext <<_ACEOF
34243 /* confdefs.h.  */
34244 _ACEOF
34245 cat confdefs.h >>conftest.$ac_ext
34246 cat >>conftest.$ac_ext <<_ACEOF
34247 /* end confdefs.h.  */
34248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34250 #define $ac_func innocuous_$ac_func
34251
34252 /* System header to define __stub macros and hopefully few prototypes,
34253     which can conflict with char $ac_func (); below.
34254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34255     <limits.h> exists even on freestanding compilers.  */
34256
34257 #ifdef __STDC__
34258 # include <limits.h>
34259 #else
34260 # include <assert.h>
34261 #endif
34262
34263 #undef $ac_func
34264
34265 /* Override any GCC internal prototype to avoid an error.
34266    Use char because int might match the return type of a GCC
34267    builtin and then its argument prototype would still apply.  */
34268 #ifdef __cplusplus
34269 extern "C"
34270 #endif
34271 char $ac_func ();
34272 /* The GNU C library defines this for functions which it implements
34273     to always fail with ENOSYS.  Some functions are actually named
34274     something starting with __ and the normal name is an alias.  */
34275 #if defined __stub_$ac_func || defined __stub___$ac_func
34276 choke me
34277 #endif
34278
34279 int
34280 main ()
34281 {
34282 return $ac_func ();
34283   ;
34284   return 0;
34285 }
34286 _ACEOF
34287 rm -f conftest.$ac_objext conftest$ac_exeext
34288 if { (ac_try="$ac_link"
34289 case "(($ac_try" in
34290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34291   *) ac_try_echo=$ac_try;;
34292 esac
34293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34294   (eval "$ac_link") 2>conftest.er1
34295   ac_status=$?
34296   grep -v '^ *+' conftest.er1 >conftest.err
34297   rm -f conftest.er1
34298   cat conftest.err >&5
34299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300   (exit $ac_status); } && {
34301          test -z "$ac_c_werror_flag" ||
34302          test ! -s conftest.err
34303        } && test -s conftest$ac_exeext &&
34304        $as_test_x conftest$ac_exeext; then
34305   eval "$as_ac_var=yes"
34306 else
34307   echo "$as_me: failed program was:" >&5
34308 sed 's/^/| /' conftest.$ac_ext >&5
34309
34310         eval "$as_ac_var=no"
34311 fi
34312
34313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34314       conftest$ac_exeext conftest.$ac_ext
34315 fi
34316 ac_res=`eval echo '${'$as_ac_var'}'`
34317                { echo "$as_me:$LINENO: result: $ac_res" >&5
34318 echo "${ECHO_T}$ac_res" >&6; }
34319 if test `eval echo '${'$as_ac_var'}'` = yes; then
34320   cat >>confdefs.h <<_ACEOF
34321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34322 _ACEOF
34323  WCSLEN_FOUND=1
34324 fi
34325 done
34326
34327
34328     if test "$WCSLEN_FOUND" = 0; then
34329         if test "$TOOLKIT" = "MSW"; then
34330             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34331 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34332 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34333   echo $ECHO_N "(cached) $ECHO_C" >&6
34334 else
34335   ac_check_lib_save_LIBS=$LIBS
34336 LIBS="-lmsvcrt  $LIBS"
34337 cat >conftest.$ac_ext <<_ACEOF
34338 /* confdefs.h.  */
34339 _ACEOF
34340 cat confdefs.h >>conftest.$ac_ext
34341 cat >>conftest.$ac_ext <<_ACEOF
34342 /* end confdefs.h.  */
34343
34344 /* Override any GCC internal prototype to avoid an error.
34345    Use char because int might match the return type of a GCC
34346    builtin and then its argument prototype would still apply.  */
34347 #ifdef __cplusplus
34348 extern "C"
34349 #endif
34350 char wcslen ();
34351 int
34352 main ()
34353 {
34354 return wcslen ();
34355   ;
34356   return 0;
34357 }
34358 _ACEOF
34359 rm -f conftest.$ac_objext conftest$ac_exeext
34360 if { (ac_try="$ac_link"
34361 case "(($ac_try" in
34362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363   *) ac_try_echo=$ac_try;;
34364 esac
34365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366   (eval "$ac_link") 2>conftest.er1
34367   ac_status=$?
34368   grep -v '^ *+' conftest.er1 >conftest.err
34369   rm -f conftest.er1
34370   cat conftest.err >&5
34371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372   (exit $ac_status); } && {
34373          test -z "$ac_c_werror_flag" ||
34374          test ! -s conftest.err
34375        } && test -s conftest$ac_exeext &&
34376        $as_test_x conftest$ac_exeext; then
34377   ac_cv_lib_msvcrt_wcslen=yes
34378 else
34379   echo "$as_me: failed program was:" >&5
34380 sed 's/^/| /' conftest.$ac_ext >&5
34381
34382         ac_cv_lib_msvcrt_wcslen=no
34383 fi
34384
34385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34386       conftest$ac_exeext conftest.$ac_ext
34387 LIBS=$ac_check_lib_save_LIBS
34388 fi
34389 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34390 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34391 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34392   WCHAR_OK=1
34393 fi
34394
34395         else
34396             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34397 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34398 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34399   echo $ECHO_N "(cached) $ECHO_C" >&6
34400 else
34401   ac_check_lib_save_LIBS=$LIBS
34402 LIBS="-lw  $LIBS"
34403 cat >conftest.$ac_ext <<_ACEOF
34404 /* confdefs.h.  */
34405 _ACEOF
34406 cat confdefs.h >>conftest.$ac_ext
34407 cat >>conftest.$ac_ext <<_ACEOF
34408 /* end confdefs.h.  */
34409
34410 /* Override any GCC internal prototype to avoid an error.
34411    Use char because int might match the return type of a GCC
34412    builtin and then its argument prototype would still apply.  */
34413 #ifdef __cplusplus
34414 extern "C"
34415 #endif
34416 char wcslen ();
34417 int
34418 main ()
34419 {
34420 return wcslen ();
34421   ;
34422   return 0;
34423 }
34424 _ACEOF
34425 rm -f conftest.$ac_objext conftest$ac_exeext
34426 if { (ac_try="$ac_link"
34427 case "(($ac_try" in
34428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34429   *) ac_try_echo=$ac_try;;
34430 esac
34431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34432   (eval "$ac_link") 2>conftest.er1
34433   ac_status=$?
34434   grep -v '^ *+' conftest.er1 >conftest.err
34435   rm -f conftest.er1
34436   cat conftest.err >&5
34437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438   (exit $ac_status); } && {
34439          test -z "$ac_c_werror_flag" ||
34440          test ! -s conftest.err
34441        } && test -s conftest$ac_exeext &&
34442        $as_test_x conftest$ac_exeext; then
34443   ac_cv_lib_w_wcslen=yes
34444 else
34445   echo "$as_me: failed program was:" >&5
34446 sed 's/^/| /' conftest.$ac_ext >&5
34447
34448         ac_cv_lib_w_wcslen=no
34449 fi
34450
34451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34452       conftest$ac_exeext conftest.$ac_ext
34453 LIBS=$ac_check_lib_save_LIBS
34454 fi
34455 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34456 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34457 if test $ac_cv_lib_w_wcslen = yes; then
34458
34459                             WCHAR_LINK=" -lw"
34460                             WCSLEN_FOUND=1
34461
34462 fi
34463
34464         fi
34465     fi
34466
34467     if test "$WCSLEN_FOUND" = 1; then
34468         cat >>confdefs.h <<\_ACEOF
34469 #define HAVE_WCSLEN 1
34470 _ACEOF
34471
34472     fi
34473
34474
34475 for ac_func in wcsdup
34476 do
34477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34481   echo $ECHO_N "(cached) $ECHO_C" >&6
34482 else
34483   cat >conftest.$ac_ext <<_ACEOF
34484 /* confdefs.h.  */
34485 _ACEOF
34486 cat confdefs.h >>conftest.$ac_ext
34487 cat >>conftest.$ac_ext <<_ACEOF
34488 /* end confdefs.h.  */
34489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34491 #define $ac_func innocuous_$ac_func
34492
34493 /* System header to define __stub macros and hopefully few prototypes,
34494     which can conflict with char $ac_func (); below.
34495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34496     <limits.h> exists even on freestanding compilers.  */
34497
34498 #ifdef __STDC__
34499 # include <limits.h>
34500 #else
34501 # include <assert.h>
34502 #endif
34503
34504 #undef $ac_func
34505
34506 /* Override any GCC internal prototype to avoid an error.
34507    Use char because int might match the return type of a GCC
34508    builtin and then its argument prototype would still apply.  */
34509 #ifdef __cplusplus
34510 extern "C"
34511 #endif
34512 char $ac_func ();
34513 /* The GNU C library defines this for functions which it implements
34514     to always fail with ENOSYS.  Some functions are actually named
34515     something starting with __ and the normal name is an alias.  */
34516 #if defined __stub_$ac_func || defined __stub___$ac_func
34517 choke me
34518 #endif
34519
34520 int
34521 main ()
34522 {
34523 return $ac_func ();
34524   ;
34525   return 0;
34526 }
34527 _ACEOF
34528 rm -f conftest.$ac_objext conftest$ac_exeext
34529 if { (ac_try="$ac_link"
34530 case "(($ac_try" in
34531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34532   *) ac_try_echo=$ac_try;;
34533 esac
34534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34535   (eval "$ac_link") 2>conftest.er1
34536   ac_status=$?
34537   grep -v '^ *+' conftest.er1 >conftest.err
34538   rm -f conftest.er1
34539   cat conftest.err >&5
34540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541   (exit $ac_status); } && {
34542          test -z "$ac_c_werror_flag" ||
34543          test ! -s conftest.err
34544        } && test -s conftest$ac_exeext &&
34545        $as_test_x conftest$ac_exeext; then
34546   eval "$as_ac_var=yes"
34547 else
34548   echo "$as_me: failed program was:" >&5
34549 sed 's/^/| /' conftest.$ac_ext >&5
34550
34551         eval "$as_ac_var=no"
34552 fi
34553
34554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34555       conftest$ac_exeext conftest.$ac_ext
34556 fi
34557 ac_res=`eval echo '${'$as_ac_var'}'`
34558                { echo "$as_me:$LINENO: result: $ac_res" >&5
34559 echo "${ECHO_T}$ac_res" >&6; }
34560 if test `eval echo '${'$as_ac_var'}'` = yes; then
34561   cat >>confdefs.h <<_ACEOF
34562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34563 _ACEOF
34564
34565 fi
34566 done
34567
34568
34569                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34570         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34571     fi
34572
34573                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
34574 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
34575 if test "${ac_cv_type_mbstate_t+set}" = set; then
34576   echo $ECHO_N "(cached) $ECHO_C" >&6
34577 else
34578   cat >conftest.$ac_ext <<_ACEOF
34579 /* confdefs.h.  */
34580 _ACEOF
34581 cat confdefs.h >>conftest.$ac_ext
34582 cat >>conftest.$ac_ext <<_ACEOF
34583 /* end confdefs.h.  */
34584 #include <wchar.h>
34585
34586 typedef mbstate_t ac__type_new_;
34587 int
34588 main ()
34589 {
34590 if ((ac__type_new_ *) 0)
34591   return 0;
34592 if (sizeof (ac__type_new_))
34593   return 0;
34594   ;
34595   return 0;
34596 }
34597 _ACEOF
34598 rm -f conftest.$ac_objext
34599 if { (ac_try="$ac_compile"
34600 case "(($ac_try" in
34601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602   *) ac_try_echo=$ac_try;;
34603 esac
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605   (eval "$ac_compile") 2>conftest.er1
34606   ac_status=$?
34607   grep -v '^ *+' conftest.er1 >conftest.err
34608   rm -f conftest.er1
34609   cat conftest.err >&5
34610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611   (exit $ac_status); } && {
34612          test -z "$ac_c_werror_flag" ||
34613          test ! -s conftest.err
34614        } && test -s conftest.$ac_objext; then
34615   ac_cv_type_mbstate_t=yes
34616 else
34617   echo "$as_me: failed program was:" >&5
34618 sed 's/^/| /' conftest.$ac_ext >&5
34619
34620         ac_cv_type_mbstate_t=no
34621 fi
34622
34623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34624 fi
34625 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34626 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
34627 if test $ac_cv_type_mbstate_t = yes; then
34628
34629 cat >>confdefs.h <<_ACEOF
34630 #define HAVE_MBSTATE_T 1
34631 _ACEOF
34632
34633
34634 for ac_func in wcsrtombs
34635 do
34636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34640   echo $ECHO_N "(cached) $ECHO_C" >&6
34641 else
34642   cat >conftest.$ac_ext <<_ACEOF
34643 /* confdefs.h.  */
34644 _ACEOF
34645 cat confdefs.h >>conftest.$ac_ext
34646 cat >>conftest.$ac_ext <<_ACEOF
34647 /* end confdefs.h.  */
34648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34650 #define $ac_func innocuous_$ac_func
34651
34652 /* System header to define __stub macros and hopefully few prototypes,
34653     which can conflict with char $ac_func (); below.
34654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34655     <limits.h> exists even on freestanding compilers.  */
34656
34657 #ifdef __STDC__
34658 # include <limits.h>
34659 #else
34660 # include <assert.h>
34661 #endif
34662
34663 #undef $ac_func
34664
34665 /* Override any GCC internal prototype to avoid an error.
34666    Use char because int might match the return type of a GCC
34667    builtin and then its argument prototype would still apply.  */
34668 #ifdef __cplusplus
34669 extern "C"
34670 #endif
34671 char $ac_func ();
34672 /* The GNU C library defines this for functions which it implements
34673     to always fail with ENOSYS.  Some functions are actually named
34674     something starting with __ and the normal name is an alias.  */
34675 #if defined __stub_$ac_func || defined __stub___$ac_func
34676 choke me
34677 #endif
34678
34679 int
34680 main ()
34681 {
34682 return $ac_func ();
34683   ;
34684   return 0;
34685 }
34686 _ACEOF
34687 rm -f conftest.$ac_objext conftest$ac_exeext
34688 if { (ac_try="$ac_link"
34689 case "(($ac_try" in
34690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34691   *) ac_try_echo=$ac_try;;
34692 esac
34693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34694   (eval "$ac_link") 2>conftest.er1
34695   ac_status=$?
34696   grep -v '^ *+' conftest.er1 >conftest.err
34697   rm -f conftest.er1
34698   cat conftest.err >&5
34699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34700   (exit $ac_status); } && {
34701          test -z "$ac_c_werror_flag" ||
34702          test ! -s conftest.err
34703        } && test -s conftest$ac_exeext &&
34704        $as_test_x conftest$ac_exeext; then
34705   eval "$as_ac_var=yes"
34706 else
34707   echo "$as_me: failed program was:" >&5
34708 sed 's/^/| /' conftest.$ac_ext >&5
34709
34710         eval "$as_ac_var=no"
34711 fi
34712
34713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34714       conftest$ac_exeext conftest.$ac_ext
34715 fi
34716 ac_res=`eval echo '${'$as_ac_var'}'`
34717                { echo "$as_me:$LINENO: result: $ac_res" >&5
34718 echo "${ECHO_T}$ac_res" >&6; }
34719 if test `eval echo '${'$as_ac_var'}'` = yes; then
34720   cat >>confdefs.h <<_ACEOF
34721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34722 _ACEOF
34723
34724 fi
34725 done
34726
34727 fi
34728
34729 else
34730     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34731 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34732 fi
34733
34734
34735
34736 for ac_func in snprintf vsnprintf
34737 do
34738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34742   echo $ECHO_N "(cached) $ECHO_C" >&6
34743 else
34744   cat >conftest.$ac_ext <<_ACEOF
34745 /* confdefs.h.  */
34746 _ACEOF
34747 cat confdefs.h >>conftest.$ac_ext
34748 cat >>conftest.$ac_ext <<_ACEOF
34749 /* end confdefs.h.  */
34750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34752 #define $ac_func innocuous_$ac_func
34753
34754 /* System header to define __stub macros and hopefully few prototypes,
34755     which can conflict with char $ac_func (); below.
34756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34757     <limits.h> exists even on freestanding compilers.  */
34758
34759 #ifdef __STDC__
34760 # include <limits.h>
34761 #else
34762 # include <assert.h>
34763 #endif
34764
34765 #undef $ac_func
34766
34767 /* Override any GCC internal prototype to avoid an error.
34768    Use char because int might match the return type of a GCC
34769    builtin and then its argument prototype would still apply.  */
34770 #ifdef __cplusplus
34771 extern "C"
34772 #endif
34773 char $ac_func ();
34774 /* The GNU C library defines this for functions which it implements
34775     to always fail with ENOSYS.  Some functions are actually named
34776     something starting with __ and the normal name is an alias.  */
34777 #if defined __stub_$ac_func || defined __stub___$ac_func
34778 choke me
34779 #endif
34780
34781 int
34782 main ()
34783 {
34784 return $ac_func ();
34785   ;
34786   return 0;
34787 }
34788 _ACEOF
34789 rm -f conftest.$ac_objext conftest$ac_exeext
34790 if { (ac_try="$ac_link"
34791 case "(($ac_try" in
34792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34793   *) ac_try_echo=$ac_try;;
34794 esac
34795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34796   (eval "$ac_link") 2>conftest.er1
34797   ac_status=$?
34798   grep -v '^ *+' conftest.er1 >conftest.err
34799   rm -f conftest.er1
34800   cat conftest.err >&5
34801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802   (exit $ac_status); } && {
34803          test -z "$ac_c_werror_flag" ||
34804          test ! -s conftest.err
34805        } && test -s conftest$ac_exeext &&
34806        $as_test_x conftest$ac_exeext; then
34807   eval "$as_ac_var=yes"
34808 else
34809   echo "$as_me: failed program was:" >&5
34810 sed 's/^/| /' conftest.$ac_ext >&5
34811
34812         eval "$as_ac_var=no"
34813 fi
34814
34815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34816       conftest$ac_exeext conftest.$ac_ext
34817 fi
34818 ac_res=`eval echo '${'$as_ac_var'}'`
34819                { echo "$as_me:$LINENO: result: $ac_res" >&5
34820 echo "${ECHO_T}$ac_res" >&6; }
34821 if test `eval echo '${'$as_ac_var'}'` = yes; then
34822   cat >>confdefs.h <<_ACEOF
34823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34824 _ACEOF
34825
34826 fi
34827 done
34828
34829
34830 if test "$ac_cv_func_vsnprintf" = "yes"; then
34831         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34832 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
34833 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34834   echo $ECHO_N "(cached) $ECHO_C" >&6
34835 else
34836
34837                                                             cat >conftest.$ac_ext <<_ACEOF
34838 /* confdefs.h.  */
34839 _ACEOF
34840 cat confdefs.h >>conftest.$ac_ext
34841 cat >>conftest.$ac_ext <<_ACEOF
34842 /* end confdefs.h.  */
34843
34844                     #include <stdio.h>
34845                     #include <stdarg.h>
34846                     #ifdef __MSL__
34847                     #if __MSL__ >= 0x6000
34848                     namespace std {}
34849                     using namespace std;
34850                     #endif
34851                     #endif
34852
34853 int
34854 main ()
34855 {
34856
34857                     char *buf;
34858                     va_list ap;
34859                     vsnprintf(buf, 10u, "%s", ap);
34860
34861   ;
34862   return 0;
34863 }
34864 _ACEOF
34865 rm -f conftest.$ac_objext
34866 if { (ac_try="$ac_compile"
34867 case "(($ac_try" in
34868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34869   *) ac_try_echo=$ac_try;;
34870 esac
34871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34872   (eval "$ac_compile") 2>conftest.er1
34873   ac_status=$?
34874   grep -v '^ *+' conftest.er1 >conftest.err
34875   rm -f conftest.er1
34876   cat conftest.err >&5
34877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34878   (exit $ac_status); } && {
34879          test -z "$ac_c_werror_flag" ||
34880          test ! -s conftest.err
34881        } && test -s conftest.$ac_objext; then
34882   wx_cv_func_vsnprintf_decl=yes
34883 else
34884   echo "$as_me: failed program was:" >&5
34885 sed 's/^/| /' conftest.$ac_ext >&5
34886
34887         wx_cv_func_vsnprintf_decl=no
34888
34889 fi
34890
34891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34892
34893
34894 fi
34895 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34896 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
34897
34898     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34899         cat >>confdefs.h <<\_ACEOF
34900 #define HAVE_VSNPRINTF_DECL 1
34901 _ACEOF
34902
34903
34904                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34905 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
34906 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34907   echo $ECHO_N "(cached) $ECHO_C" >&6
34908 else
34909
34910                 cat >conftest.$ac_ext <<_ACEOF
34911 /* confdefs.h.  */
34912 _ACEOF
34913 cat confdefs.h >>conftest.$ac_ext
34914 cat >>conftest.$ac_ext <<_ACEOF
34915 /* end confdefs.h.  */
34916
34917                         #include <stdio.h>
34918                         #include <stdarg.h>
34919                         #ifdef __MSL__
34920                         #if __MSL__ >= 0x6000
34921                         namespace std {}
34922                         using namespace std;
34923                         #endif
34924                         #endif
34925
34926 int
34927 main ()
34928 {
34929
34930                         char *buf;
34931                         va_list ap;
34932                         const char *fmt = "%s";
34933                         vsnprintf(buf, 10u, fmt, ap);
34934
34935   ;
34936   return 0;
34937 }
34938 _ACEOF
34939 rm -f conftest.$ac_objext
34940 if { (ac_try="$ac_compile"
34941 case "(($ac_try" in
34942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34943   *) ac_try_echo=$ac_try;;
34944 esac
34945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34946   (eval "$ac_compile") 2>conftest.er1
34947   ac_status=$?
34948   grep -v '^ *+' conftest.er1 >conftest.err
34949   rm -f conftest.er1
34950   cat conftest.err >&5
34951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952   (exit $ac_status); } && {
34953          test -z "$ac_c_werror_flag" ||
34954          test ! -s conftest.err
34955        } && test -s conftest.$ac_objext; then
34956   wx_cv_func_broken_vsnprintf_decl=no
34957 else
34958   echo "$as_me: failed program was:" >&5
34959 sed 's/^/| /' conftest.$ac_ext >&5
34960
34961         wx_cv_func_broken_vsnprintf_decl=yes
34962
34963 fi
34964
34965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34966
34967
34968 fi
34969 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34970 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
34971
34972         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34973             cat >>confdefs.h <<\_ACEOF
34974 #define HAVE_BROKEN_VSNPRINTF_DECL 1
34975 _ACEOF
34976
34977         fi
34978     fi
34979 fi
34980
34981 if test "$ac_cv_func_snprintf" = "yes"; then
34982     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34983 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
34984 if test "${wx_cv_func_snprintf_decl+set}" = set; then
34985   echo $ECHO_N "(cached) $ECHO_C" >&6
34986 else
34987
34988             cat >conftest.$ac_ext <<_ACEOF
34989 /* confdefs.h.  */
34990 _ACEOF
34991 cat confdefs.h >>conftest.$ac_ext
34992 cat >>conftest.$ac_ext <<_ACEOF
34993 /* end confdefs.h.  */
34994
34995                     #include <stdio.h>
34996                     #include <stdarg.h>
34997                     #ifdef __MSL__
34998                     #if __MSL__ >= 0x6000
34999                     namespace std {}
35000                     using namespace std;
35001                     #endif
35002                     #endif
35003
35004 int
35005 main ()
35006 {
35007
35008                     char *buf;
35009                     snprintf(buf, 10u, "%s", "wx");
35010
35011   ;
35012   return 0;
35013 }
35014 _ACEOF
35015 rm -f conftest.$ac_objext
35016 if { (ac_try="$ac_compile"
35017 case "(($ac_try" in
35018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35019   *) ac_try_echo=$ac_try;;
35020 esac
35021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35022   (eval "$ac_compile") 2>conftest.er1
35023   ac_status=$?
35024   grep -v '^ *+' conftest.er1 >conftest.err
35025   rm -f conftest.er1
35026   cat conftest.err >&5
35027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028   (exit $ac_status); } && {
35029          test -z "$ac_c_werror_flag" ||
35030          test ! -s conftest.err
35031        } && test -s conftest.$ac_objext; then
35032   wx_cv_func_snprintf_decl=yes
35033 else
35034   echo "$as_me: failed program was:" >&5
35035 sed 's/^/| /' conftest.$ac_ext >&5
35036
35037         wx_cv_func_snprintf_decl=no
35038
35039 fi
35040
35041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35042
35043
35044 fi
35045 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35046 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35047
35048     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35049         cat >>confdefs.h <<\_ACEOF
35050 #define HAVE_SNPRINTF_DECL 1
35051 _ACEOF
35052
35053
35054                         { echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35055 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6; }
35056 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35057   echo $ECHO_N "(cached) $ECHO_C" >&6
35058 else
35059
35060                 cat >conftest.$ac_ext <<_ACEOF
35061 /* confdefs.h.  */
35062 _ACEOF
35063 cat confdefs.h >>conftest.$ac_ext
35064 cat >>conftest.$ac_ext <<_ACEOF
35065 /* end confdefs.h.  */
35066
35067                         #include <stdio.h>
35068                         #include <stdarg.h>
35069                         #ifdef __MSL__
35070                         #if __MSL__ >= 0x6000
35071                         namespace std {}
35072                         using namespace std;
35073                         #endif
35074                         #endif
35075
35076 int
35077 main ()
35078 {
35079
35080                         char *buf;
35081                         const char *fmt = "%s";
35082                         snprintf(buf, 10u, fmt, "wx");
35083
35084   ;
35085   return 0;
35086 }
35087 _ACEOF
35088 rm -f conftest.$ac_objext
35089 if { (ac_try="$ac_compile"
35090 case "(($ac_try" in
35091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35092   *) ac_try_echo=$ac_try;;
35093 esac
35094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35095   (eval "$ac_compile") 2>conftest.er1
35096   ac_status=$?
35097   grep -v '^ *+' conftest.er1 >conftest.err
35098   rm -f conftest.er1
35099   cat conftest.err >&5
35100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101   (exit $ac_status); } && {
35102          test -z "$ac_c_werror_flag" ||
35103          test ! -s conftest.err
35104        } && test -s conftest.$ac_objext; then
35105   wx_cv_func_broken_snprintf_decl=no
35106 else
35107   echo "$as_me: failed program was:" >&5
35108 sed 's/^/| /' conftest.$ac_ext >&5
35109
35110         wx_cv_func_broken_snprintf_decl=yes
35111
35112 fi
35113
35114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35115
35116
35117 fi
35118 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35119 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6; }
35120
35121         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35122             cat >>confdefs.h <<\_ACEOF
35123 #define HAVE_BROKEN_SNPRINTF_DECL 1
35124 _ACEOF
35125
35126         fi
35127     fi
35128
35129     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35130
35131                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35132 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35133 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35134   echo $ECHO_N "(cached) $ECHO_C" >&6
35135 else
35136
35137                 if test "$cross_compiling" = yes; then
35138
35139                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35140 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35141 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35142 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35143                         wx_cv_func_snprintf_pos_params=no
35144
35145
35146 else
35147   cat >conftest.$ac_ext <<_ACEOF
35148 /* confdefs.h.  */
35149 _ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h.  */
35153
35154                         #include <stdio.h>
35155
35156                         int main (void)
35157                         {
35158                             char buffer[128];
35159                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35160                             if (strcmp ("2 3 1", buffer) == 0)
35161                                 exit (0);
35162                             exit (1);
35163                         }
35164
35165 _ACEOF
35166 rm -f conftest$ac_exeext
35167 if { (ac_try="$ac_link"
35168 case "(($ac_try" in
35169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35170   *) ac_try_echo=$ac_try;;
35171 esac
35172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35173   (eval "$ac_link") 2>&5
35174   ac_status=$?
35175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35177   { (case "(($ac_try" in
35178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35179   *) ac_try_echo=$ac_try;;
35180 esac
35181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35182   (eval "$ac_try") 2>&5
35183   ac_status=$?
35184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185   (exit $ac_status); }; }; then
35186   wx_cv_func_snprintf_pos_params=no
35187 else
35188   echo "$as_me: program exited with status $ac_status" >&5
35189 echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35191
35192 ( exit $ac_status )
35193 wx_cv_func_snprintf_pos_params=yes
35194 fi
35195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35196 fi
35197
35198
35199
35200
35201 fi
35202 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35203 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35204
35205         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35206             cat >>confdefs.h <<\_ACEOF
35207 #define HAVE_UNIX98_PRINTF 1
35208 _ACEOF
35209
35210         fi
35211     fi
35212 fi
35213
35214 if test "$wxUSE_UNICODE" = yes; then
35215
35216
35217 for ac_func in swprintf
35218 do
35219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35223   echo $ECHO_N "(cached) $ECHO_C" >&6
35224 else
35225   cat >conftest.$ac_ext <<_ACEOF
35226 /* confdefs.h.  */
35227 _ACEOF
35228 cat confdefs.h >>conftest.$ac_ext
35229 cat >>conftest.$ac_ext <<_ACEOF
35230 /* end confdefs.h.  */
35231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35233 #define $ac_func innocuous_$ac_func
35234
35235 /* System header to define __stub macros and hopefully few prototypes,
35236     which can conflict with char $ac_func (); below.
35237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35238     <limits.h> exists even on freestanding compilers.  */
35239
35240 #ifdef __STDC__
35241 # include <limits.h>
35242 #else
35243 # include <assert.h>
35244 #endif
35245
35246 #undef $ac_func
35247
35248 /* Override any GCC internal prototype to avoid an error.
35249    Use char because int might match the return type of a GCC
35250    builtin and then its argument prototype would still apply.  */
35251 #ifdef __cplusplus
35252 extern "C"
35253 #endif
35254 char $ac_func ();
35255 /* The GNU C library defines this for functions which it implements
35256     to always fail with ENOSYS.  Some functions are actually named
35257     something starting with __ and the normal name is an alias.  */
35258 #if defined __stub_$ac_func || defined __stub___$ac_func
35259 choke me
35260 #endif
35261
35262 int
35263 main ()
35264 {
35265 return $ac_func ();
35266   ;
35267   return 0;
35268 }
35269 _ACEOF
35270 rm -f conftest.$ac_objext conftest$ac_exeext
35271 if { (ac_try="$ac_link"
35272 case "(($ac_try" in
35273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35274   *) ac_try_echo=$ac_try;;
35275 esac
35276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35277   (eval "$ac_link") 2>conftest.er1
35278   ac_status=$?
35279   grep -v '^ *+' conftest.er1 >conftest.err
35280   rm -f conftest.er1
35281   cat conftest.err >&5
35282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283   (exit $ac_status); } && {
35284          test -z "$ac_c_werror_flag" ||
35285          test ! -s conftest.err
35286        } && test -s conftest$ac_exeext &&
35287        $as_test_x conftest$ac_exeext; then
35288   eval "$as_ac_var=yes"
35289 else
35290   echo "$as_me: failed program was:" >&5
35291 sed 's/^/| /' conftest.$ac_ext >&5
35292
35293         eval "$as_ac_var=no"
35294 fi
35295
35296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35297       conftest$ac_exeext conftest.$ac_ext
35298 fi
35299 ac_res=`eval echo '${'$as_ac_var'}'`
35300                { echo "$as_me:$LINENO: result: $ac_res" >&5
35301 echo "${ECHO_T}$ac_res" >&6; }
35302 if test `eval echo '${'$as_ac_var'}'` = yes; then
35303   cat >>confdefs.h <<_ACEOF
35304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35305 _ACEOF
35306
35307 fi
35308 done
35309
35310
35311     if test "$ac_cv_func_swprintf" = "yes"; then
35312         { echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35313 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6; }
35314 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35315   echo $ECHO_N "(cached) $ECHO_C" >&6
35316 else
35317
35318                 cat >conftest.$ac_ext <<_ACEOF
35319 /* confdefs.h.  */
35320 _ACEOF
35321 cat confdefs.h >>conftest.$ac_ext
35322 cat >>conftest.$ac_ext <<_ACEOF
35323 /* end confdefs.h.  */
35324
35325                         #include <stdio.h>
35326                         #include <stdarg.h>
35327                         #include <wchar.h>
35328
35329 int
35330 main ()
35331 {
35332
35333                         wchar_t *buf;
35334                         const wchar_t *fmt = L"test";
35335                         swprintf(buf, 10u, fmt);
35336
35337   ;
35338   return 0;
35339 }
35340 _ACEOF
35341 rm -f conftest.$ac_objext
35342 if { (ac_try="$ac_compile"
35343 case "(($ac_try" in
35344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35345   *) ac_try_echo=$ac_try;;
35346 esac
35347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35348   (eval "$ac_compile") 2>conftest.er1
35349   ac_status=$?
35350   grep -v '^ *+' conftest.er1 >conftest.err
35351   rm -f conftest.er1
35352   cat conftest.err >&5
35353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35354   (exit $ac_status); } && {
35355          test -z "$ac_c_werror_flag" ||
35356          test ! -s conftest.err
35357        } && test -s conftest.$ac_objext; then
35358   wx_cv_func_broken_swprintf_decl=no
35359 else
35360   echo "$as_me: failed program was:" >&5
35361 sed 's/^/| /' conftest.$ac_ext >&5
35362
35363         wx_cv_func_broken_swprintf_decl=yes
35364
35365 fi
35366
35367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35368
35369
35370 fi
35371 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35372 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6; }
35373
35374         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35375             cat >>confdefs.h <<\_ACEOF
35376 #define HAVE_BROKEN_SWPRINTF_DECL 1
35377 _ACEOF
35378
35379         fi
35380     fi
35381
35382             wchar_headers="#include <stdio.h>
35383 #include <wchar.h>"
35384     case "${host}" in
35385         *-*-solaris2* )
35386             { echo "$as_me:$LINENO: checking for widec.h" >&5
35387 echo $ECHO_N "checking for widec.h... $ECHO_C" >&6; }
35388 if test "${ac_cv_header_widec_h+set}" = set; then
35389   echo $ECHO_N "(cached) $ECHO_C" >&6
35390 else
35391   cat >conftest.$ac_ext <<_ACEOF
35392 /* confdefs.h.  */
35393 _ACEOF
35394 cat confdefs.h >>conftest.$ac_ext
35395 cat >>conftest.$ac_ext <<_ACEOF
35396 /* end confdefs.h.  */
35397 $ac_includes_default
35398
35399 #include <widec.h>
35400 _ACEOF
35401 rm -f conftest.$ac_objext
35402 if { (ac_try="$ac_compile"
35403 case "(($ac_try" in
35404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35405   *) ac_try_echo=$ac_try;;
35406 esac
35407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35408   (eval "$ac_compile") 2>conftest.er1
35409   ac_status=$?
35410   grep -v '^ *+' conftest.er1 >conftest.err
35411   rm -f conftest.er1
35412   cat conftest.err >&5
35413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414   (exit $ac_status); } && {
35415          test -z "$ac_c_werror_flag" ||
35416          test ! -s conftest.err
35417        } && test -s conftest.$ac_objext; then
35418   ac_cv_header_widec_h=yes
35419 else
35420   echo "$as_me: failed program was:" >&5
35421 sed 's/^/| /' conftest.$ac_ext >&5
35422
35423         ac_cv_header_widec_h=no
35424 fi
35425
35426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35427 fi
35428 { echo "$as_me:$LINENO: result: $ac_cv_header_widec_h" >&5
35429 echo "${ECHO_T}$ac_cv_header_widec_h" >&6; }
35430
35431
35432             if test "$ac_cv_header_widec_h" = "yes"; then
35433                 wchar_headers="$wchar_headers
35434 #include <widec.h>"
35435             fi
35436     esac
35437
35438
35439   for wx_func in wputc wputchar putws fputws wprintf vswprintf
35440   do
35441     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35442 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35443 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35444   echo $ECHO_N "(cached) $ECHO_C" >&6
35445 else
35446
35447         cat >conftest.$ac_ext <<_ACEOF
35448
35449             /* confdefs.h.  */
35450 _ACEOF
35451 cat confdefs.h >>conftest.$ac_ext
35452 cat >>conftest.$ac_ext <<_ACEOF
35453 /* end confdefs.h.  */
35454
35455                 $wchar_headers
35456                 $ac_includes_default
35457
35458 int
35459 main ()
35460 {
35461
35462                 #ifndef $wx_func
35463                   &$wx_func;
35464                 #endif
35465
35466
35467   ;
35468   return 0;
35469 }
35470
35471 _ACEOF
35472 rm -f conftest.$ac_objext conftest$ac_exeext
35473 if { (ac_try="$ac_link"
35474 case "(($ac_try" in
35475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35476   *) ac_try_echo=$ac_try;;
35477 esac
35478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35479   (eval "$ac_link") 2>conftest.er1
35480   ac_status=$?
35481   grep -v '^ *+' conftest.er1 >conftest.err
35482   rm -f conftest.er1
35483   cat conftest.err >&5
35484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485   (exit $ac_status); } && {
35486          test -z "$ac_c_werror_flag" ||
35487          test ! -s conftest.err
35488        } && test -s conftest$ac_exeext &&
35489        $as_test_x conftest$ac_exeext; then
35490   eval wx_cv_func_$wx_func=yes
35491 else
35492   echo "$as_me: failed program was:" >&5
35493 sed 's/^/| /' conftest.$ac_ext >&5
35494
35495         eval wx_cv_func_$wx_func=no
35496 fi
35497
35498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35499       conftest$ac_exeext conftest.$ac_ext
35500
35501 fi
35502 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35503                { echo "$as_me:$LINENO: result: $ac_res" >&5
35504 echo "${ECHO_T}$ac_res" >&6; }
35505
35506     if eval test \$wx_cv_func_$wx_func = yes
35507     then
35508       cat >>confdefs.h <<_ACEOF
35509 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
35510 _ACEOF
35511
35512
35513     else
35514       :
35515
35516     fi
35517   done
35518
35519
35520                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35521 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35522     cat >conftest.$ac_ext <<_ACEOF
35523 /* confdefs.h.  */
35524 _ACEOF
35525 cat confdefs.h >>conftest.$ac_ext
35526 cat >>conftest.$ac_ext <<_ACEOF
35527 /* end confdefs.h.  */
35528 #include <wchar.h>
35529 int
35530 main ()
35531 {
35532 &_vsnwprintf;
35533   ;
35534   return 0;
35535 }
35536 _ACEOF
35537 rm -f conftest.$ac_objext
35538 if { (ac_try="$ac_compile"
35539 case "(($ac_try" in
35540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35541   *) ac_try_echo=$ac_try;;
35542 esac
35543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35544   (eval "$ac_compile") 2>conftest.er1
35545   ac_status=$?
35546   grep -v '^ *+' conftest.er1 >conftest.err
35547   rm -f conftest.er1
35548   cat conftest.err >&5
35549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550   (exit $ac_status); } && {
35551          test -z "$ac_c_werror_flag" ||
35552          test ! -s conftest.err
35553        } && test -s conftest.$ac_objext; then
35554   { echo "$as_me:$LINENO: result: yes" >&5
35555 echo "${ECHO_T}yes" >&6; }
35556                     cat >>confdefs.h <<\_ACEOF
35557 #define HAVE__VSNWPRINTF 1
35558 _ACEOF
35559
35560 else
35561   echo "$as_me: failed program was:" >&5
35562 sed 's/^/| /' conftest.$ac_ext >&5
35563
35564         { echo "$as_me:$LINENO: result: no" >&5
35565 echo "${ECHO_T}no" >&6; }
35566 fi
35567
35568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35569 fi
35570
35571 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35572
35573   for wx_func in fnmatch
35574   do
35575     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35576 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35577 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35578   echo $ECHO_N "(cached) $ECHO_C" >&6
35579 else
35580
35581         cat >conftest.$ac_ext <<_ACEOF
35582
35583             /* confdefs.h.  */
35584 _ACEOF
35585 cat confdefs.h >>conftest.$ac_ext
35586 cat >>conftest.$ac_ext <<_ACEOF
35587 /* end confdefs.h.  */
35588
35589                 #include <fnmatch.h>
35590                 $ac_includes_default
35591
35592 int
35593 main ()
35594 {
35595
35596                 #ifndef $wx_func
35597                   &$wx_func;
35598                 #endif
35599
35600
35601   ;
35602   return 0;
35603 }
35604
35605 _ACEOF
35606 rm -f conftest.$ac_objext conftest$ac_exeext
35607 if { (ac_try="$ac_link"
35608 case "(($ac_try" in
35609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35610   *) ac_try_echo=$ac_try;;
35611 esac
35612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35613   (eval "$ac_link") 2>conftest.er1
35614   ac_status=$?
35615   grep -v '^ *+' conftest.er1 >conftest.err
35616   rm -f conftest.er1
35617   cat conftest.err >&5
35618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619   (exit $ac_status); } && {
35620          test -z "$ac_c_werror_flag" ||
35621          test ! -s conftest.err
35622        } && test -s conftest$ac_exeext &&
35623        $as_test_x conftest$ac_exeext; then
35624   eval wx_cv_func_$wx_func=yes
35625 else
35626   echo "$as_me: failed program was:" >&5
35627 sed 's/^/| /' conftest.$ac_ext >&5
35628
35629         eval wx_cv_func_$wx_func=no
35630 fi
35631
35632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35633       conftest$ac_exeext conftest.$ac_ext
35634
35635 fi
35636 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35637                { echo "$as_me:$LINENO: result: $ac_res" >&5
35638 echo "${ECHO_T}$ac_res" >&6; }
35639
35640     if eval test \$wx_cv_func_$wx_func = yes
35641     then
35642       cat >>confdefs.h <<_ACEOF
35643 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
35644 _ACEOF
35645
35646
35647     else
35648       :
35649
35650     fi
35651   done
35652
35653 fi
35654
35655 if test "$wxUSE_FILE" = "yes"; then
35656
35657   for wx_func in fsync
35658   do
35659     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35660 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35661 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35662   echo $ECHO_N "(cached) $ECHO_C" >&6
35663 else
35664
35665         cat >conftest.$ac_ext <<_ACEOF
35666
35667             /* confdefs.h.  */
35668 _ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h.  */
35672
35673
35674                 $ac_includes_default
35675
35676 int
35677 main ()
35678 {
35679
35680                 #ifndef $wx_func
35681                   &$wx_func;
35682                 #endif
35683
35684
35685   ;
35686   return 0;
35687 }
35688
35689 _ACEOF
35690 rm -f conftest.$ac_objext conftest$ac_exeext
35691 if { (ac_try="$ac_link"
35692 case "(($ac_try" in
35693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35694   *) ac_try_echo=$ac_try;;
35695 esac
35696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35697   (eval "$ac_link") 2>conftest.er1
35698   ac_status=$?
35699   grep -v '^ *+' conftest.er1 >conftest.err
35700   rm -f conftest.er1
35701   cat conftest.err >&5
35702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703   (exit $ac_status); } && {
35704          test -z "$ac_c_werror_flag" ||
35705          test ! -s conftest.err
35706        } && test -s conftest$ac_exeext &&
35707        $as_test_x conftest$ac_exeext; then
35708   eval wx_cv_func_$wx_func=yes
35709 else
35710   echo "$as_me: failed program was:" >&5
35711 sed 's/^/| /' conftest.$ac_ext >&5
35712
35713         eval wx_cv_func_$wx_func=no
35714 fi
35715
35716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35717       conftest$ac_exeext conftest.$ac_ext
35718
35719 fi
35720 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35721                { echo "$as_me:$LINENO: result: $ac_res" >&5
35722 echo "${ECHO_T}$ac_res" >&6; }
35723
35724     if eval test \$wx_cv_func_$wx_func = yes
35725     then
35726       cat >>confdefs.h <<_ACEOF
35727 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
35728 _ACEOF
35729
35730
35731     else
35732       :
35733
35734     fi
35735   done
35736
35737 fi
35738
35739 ac_ext=cpp
35740 ac_cpp='$CXXCPP $CPPFLAGS'
35741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35744
35745
35746   for wx_func in round
35747   do
35748     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35749 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35750 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35751   echo $ECHO_N "(cached) $ECHO_C" >&6
35752 else
35753
35754         cat >conftest.$ac_ext <<_ACEOF
35755
35756             /* confdefs.h.  */
35757 _ACEOF
35758 cat confdefs.h >>conftest.$ac_ext
35759 cat >>conftest.$ac_ext <<_ACEOF
35760 /* end confdefs.h.  */
35761
35762                 #include <math.h>
35763                 $ac_includes_default
35764
35765 int
35766 main ()
35767 {
35768
35769                 #ifndef $wx_func
35770                   &$wx_func;
35771                 #endif
35772
35773
35774   ;
35775   return 0;
35776 }
35777
35778 _ACEOF
35779 rm -f conftest.$ac_objext conftest$ac_exeext
35780 if { (ac_try="$ac_link"
35781 case "(($ac_try" in
35782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35783   *) ac_try_echo=$ac_try;;
35784 esac
35785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35786   (eval "$ac_link") 2>conftest.er1
35787   ac_status=$?
35788   grep -v '^ *+' conftest.er1 >conftest.err
35789   rm -f conftest.er1
35790   cat conftest.err >&5
35791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35792   (exit $ac_status); } && {
35793          test -z "$ac_cxx_werror_flag" ||
35794          test ! -s conftest.err
35795        } && test -s conftest$ac_exeext &&
35796        $as_test_x conftest$ac_exeext; then
35797   eval wx_cv_func_$wx_func=yes
35798 else
35799   echo "$as_me: failed program was:" >&5
35800 sed 's/^/| /' conftest.$ac_ext >&5
35801
35802         eval wx_cv_func_$wx_func=no
35803 fi
35804
35805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35806       conftest$ac_exeext conftest.$ac_ext
35807
35808 fi
35809 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35810                { echo "$as_me:$LINENO: result: $ac_res" >&5
35811 echo "${ECHO_T}$ac_res" >&6; }
35812
35813     if eval test \$wx_cv_func_$wx_func = yes
35814     then
35815       cat >>confdefs.h <<_ACEOF
35816 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
35817 _ACEOF
35818
35819
35820     else
35821       :
35822
35823     fi
35824   done
35825
35826 ac_ext=c
35827 ac_cpp='$CPP $CPPFLAGS'
35828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35831
35832
35833 if test "$TOOLKIT" != "MSW"; then
35834
35835
35836
35837
35838
35839 # Check whether --with-libiconv-prefix was given.
35840 if test "${with_libiconv_prefix+set}" = set; then
35841   withval=$with_libiconv_prefix;
35842     for dir in `echo "$withval" | tr : ' '`; do
35843       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35844       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35845     done
35846
35847 fi
35848
35849
35850   { echo "$as_me:$LINENO: checking for iconv" >&5
35851 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
35852 if test "${am_cv_func_iconv+set}" = set; then
35853   echo $ECHO_N "(cached) $ECHO_C" >&6
35854 else
35855
35856     am_cv_func_iconv="no, consider installing GNU libiconv"
35857     am_cv_lib_iconv=no
35858     cat >conftest.$ac_ext <<_ACEOF
35859 /* confdefs.h.  */
35860 _ACEOF
35861 cat confdefs.h >>conftest.$ac_ext
35862 cat >>conftest.$ac_ext <<_ACEOF
35863 /* end confdefs.h.  */
35864 #include <stdlib.h>
35865 #include <iconv.h>
35866 int
35867 main ()
35868 {
35869 iconv_t cd = iconv_open("","");
35870        iconv(cd,NULL,NULL,NULL,NULL);
35871        iconv_close(cd);
35872   ;
35873   return 0;
35874 }
35875 _ACEOF
35876 rm -f conftest.$ac_objext conftest$ac_exeext
35877 if { (ac_try="$ac_link"
35878 case "(($ac_try" in
35879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35880   *) ac_try_echo=$ac_try;;
35881 esac
35882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35883   (eval "$ac_link") 2>conftest.er1
35884   ac_status=$?
35885   grep -v '^ *+' conftest.er1 >conftest.err
35886   rm -f conftest.er1
35887   cat conftest.err >&5
35888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35889   (exit $ac_status); } && {
35890          test -z "$ac_c_werror_flag" ||
35891          test ! -s conftest.err
35892        } && test -s conftest$ac_exeext &&
35893        $as_test_x conftest$ac_exeext; then
35894   am_cv_func_iconv=yes
35895 else
35896   echo "$as_me: failed program was:" >&5
35897 sed 's/^/| /' conftest.$ac_ext >&5
35898
35899
35900 fi
35901
35902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35903       conftest$ac_exeext conftest.$ac_ext
35904     if test "$am_cv_func_iconv" != yes; then
35905       am_save_LIBS="$LIBS"
35906       LIBS="$LIBS -liconv"
35907       cat >conftest.$ac_ext <<_ACEOF
35908 /* confdefs.h.  */
35909 _ACEOF
35910 cat confdefs.h >>conftest.$ac_ext
35911 cat >>conftest.$ac_ext <<_ACEOF
35912 /* end confdefs.h.  */
35913 #include <stdlib.h>
35914 #include <iconv.h>
35915 int
35916 main ()
35917 {
35918 iconv_t cd = iconv_open("","");
35919          iconv(cd,NULL,NULL,NULL,NULL);
35920          iconv_close(cd);
35921   ;
35922   return 0;
35923 }
35924 _ACEOF
35925 rm -f conftest.$ac_objext conftest$ac_exeext
35926 if { (ac_try="$ac_link"
35927 case "(($ac_try" in
35928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35929   *) ac_try_echo=$ac_try;;
35930 esac
35931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35932   (eval "$ac_link") 2>conftest.er1
35933   ac_status=$?
35934   grep -v '^ *+' conftest.er1 >conftest.err
35935   rm -f conftest.er1
35936   cat conftest.err >&5
35937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938   (exit $ac_status); } && {
35939          test -z "$ac_c_werror_flag" ||
35940          test ! -s conftest.err
35941        } && test -s conftest$ac_exeext &&
35942        $as_test_x conftest$ac_exeext; then
35943   am_cv_lib_iconv=yes
35944         am_cv_func_iconv=yes
35945 else
35946   echo "$as_me: failed program was:" >&5
35947 sed 's/^/| /' conftest.$ac_ext >&5
35948
35949
35950 fi
35951
35952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35953       conftest$ac_exeext conftest.$ac_ext
35954       LIBS="$am_save_LIBS"
35955     fi
35956
35957 fi
35958 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35959 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
35960   if test "$am_cv_func_iconv" = yes; then
35961
35962 cat >>confdefs.h <<\_ACEOF
35963 #define HAVE_ICONV 1
35964 _ACEOF
35965
35966     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
35967 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
35968 if test "${wx_cv_func_iconv_const+set}" = set; then
35969   echo $ECHO_N "(cached) $ECHO_C" >&6
35970 else
35971   cat >conftest.$ac_ext <<_ACEOF
35972 /* confdefs.h.  */
35973 _ACEOF
35974 cat confdefs.h >>conftest.$ac_ext
35975 cat >>conftest.$ac_ext <<_ACEOF
35976 /* end confdefs.h.  */
35977
35978 #include <stdlib.h>
35979 #include <iconv.h>
35980 extern
35981 #ifdef __cplusplus
35982 "C"
35983 #endif
35984 #if defined(__STDC__) || defined(__cplusplus)
35985 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35986 #else
35987 size_t iconv();
35988 #endif
35989
35990 int
35991 main ()
35992 {
35993
35994   ;
35995   return 0;
35996 }
35997 _ACEOF
35998 rm -f conftest.$ac_objext
35999 if { (ac_try="$ac_compile"
36000 case "(($ac_try" in
36001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36002   *) ac_try_echo=$ac_try;;
36003 esac
36004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36005   (eval "$ac_compile") 2>conftest.er1
36006   ac_status=$?
36007   grep -v '^ *+' conftest.er1 >conftest.err
36008   rm -f conftest.er1
36009   cat conftest.err >&5
36010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011   (exit $ac_status); } && {
36012          test -z "$ac_c_werror_flag" ||
36013          test ! -s conftest.err
36014        } && test -s conftest.$ac_objext; then
36015   wx_cv_func_iconv_const="no"
36016 else
36017   echo "$as_me: failed program was:" >&5
36018 sed 's/^/| /' conftest.$ac_ext >&5
36019
36020         wx_cv_func_iconv_const="yes"
36021
36022 fi
36023
36024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36025
36026 fi
36027 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36028 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36029
36030     iconv_const=
36031     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36032         iconv_const="const"
36033     fi
36034
36035
36036 cat >>confdefs.h <<_ACEOF
36037 #define ICONV_CONST $iconv_const
36038 _ACEOF
36039
36040   fi
36041   LIBICONV=
36042   if test "$am_cv_lib_iconv" = yes; then
36043     LIBICONV="-liconv"
36044   fi
36045
36046
36047 LIBS="$LIBICONV $LIBS"
36048
36049 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36050
36051 for ac_func in sigaction
36052 do
36053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36057   echo $ECHO_N "(cached) $ECHO_C" >&6
36058 else
36059   cat >conftest.$ac_ext <<_ACEOF
36060 /* confdefs.h.  */
36061 _ACEOF
36062 cat confdefs.h >>conftest.$ac_ext
36063 cat >>conftest.$ac_ext <<_ACEOF
36064 /* end confdefs.h.  */
36065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36067 #define $ac_func innocuous_$ac_func
36068
36069 /* System header to define __stub macros and hopefully few prototypes,
36070     which can conflict with char $ac_func (); below.
36071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36072     <limits.h> exists even on freestanding compilers.  */
36073
36074 #ifdef __STDC__
36075 # include <limits.h>
36076 #else
36077 # include <assert.h>
36078 #endif
36079
36080 #undef $ac_func
36081
36082 /* Override any GCC internal prototype to avoid an error.
36083    Use char because int might match the return type of a GCC
36084    builtin and then its argument prototype would still apply.  */
36085 #ifdef __cplusplus
36086 extern "C"
36087 #endif
36088 char $ac_func ();
36089 /* The GNU C library defines this for functions which it implements
36090     to always fail with ENOSYS.  Some functions are actually named
36091     something starting with __ and the normal name is an alias.  */
36092 #if defined __stub_$ac_func || defined __stub___$ac_func
36093 choke me
36094 #endif
36095
36096 int
36097 main ()
36098 {
36099 return $ac_func ();
36100   ;
36101   return 0;
36102 }
36103 _ACEOF
36104 rm -f conftest.$ac_objext conftest$ac_exeext
36105 if { (ac_try="$ac_link"
36106 case "(($ac_try" in
36107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36108   *) ac_try_echo=$ac_try;;
36109 esac
36110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36111   (eval "$ac_link") 2>conftest.er1
36112   ac_status=$?
36113   grep -v '^ *+' conftest.er1 >conftest.err
36114   rm -f conftest.er1
36115   cat conftest.err >&5
36116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117   (exit $ac_status); } && {
36118          test -z "$ac_c_werror_flag" ||
36119          test ! -s conftest.err
36120        } && test -s conftest$ac_exeext &&
36121        $as_test_x conftest$ac_exeext; then
36122   eval "$as_ac_var=yes"
36123 else
36124   echo "$as_me: failed program was:" >&5
36125 sed 's/^/| /' conftest.$ac_ext >&5
36126
36127         eval "$as_ac_var=no"
36128 fi
36129
36130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36131       conftest$ac_exeext conftest.$ac_ext
36132 fi
36133 ac_res=`eval echo '${'$as_ac_var'}'`
36134                { echo "$as_me:$LINENO: result: $ac_res" >&5
36135 echo "${ECHO_T}$ac_res" >&6; }
36136 if test `eval echo '${'$as_ac_var'}'` = yes; then
36137   cat >>confdefs.h <<_ACEOF
36138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36139 _ACEOF
36140
36141 fi
36142 done
36143
36144
36145     if test "$ac_cv_func_sigaction" = "no"; then
36146         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36147 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36148         wxUSE_ON_FATAL_EXCEPTION=no
36149     fi
36150
36151     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36152       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36153 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36154 if test "${wx_cv_type_sa_handler+set}" = set; then
36155   echo $ECHO_N "(cached) $ECHO_C" >&6
36156 else
36157
36158                 ac_ext=cpp
36159 ac_cpp='$CXXCPP $CPPFLAGS'
36160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36163
36164         cat >conftest.$ac_ext <<_ACEOF
36165 /* confdefs.h.  */
36166 _ACEOF
36167 cat confdefs.h >>conftest.$ac_ext
36168 cat >>conftest.$ac_ext <<_ACEOF
36169 /* end confdefs.h.  */
36170 #include <signal.h>
36171 int
36172 main ()
36173 {
36174
36175                         extern void testSigHandler(int);
36176
36177                         struct sigaction sa;
36178                         sa.sa_handler = testSigHandler;
36179
36180   ;
36181   return 0;
36182 }
36183 _ACEOF
36184 rm -f conftest.$ac_objext
36185 if { (ac_try="$ac_compile"
36186 case "(($ac_try" in
36187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36188   *) ac_try_echo=$ac_try;;
36189 esac
36190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36191   (eval "$ac_compile") 2>conftest.er1
36192   ac_status=$?
36193   grep -v '^ *+' conftest.er1 >conftest.err
36194   rm -f conftest.er1
36195   cat conftest.err >&5
36196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197   (exit $ac_status); } && {
36198          test -z "$ac_cxx_werror_flag" ||
36199          test ! -s conftest.err
36200        } && test -s conftest.$ac_objext; then
36201
36202                         wx_cv_type_sa_handler=int
36203
36204 else
36205   echo "$as_me: failed program was:" >&5
36206 sed 's/^/| /' conftest.$ac_ext >&5
36207
36208
36209                         wx_cv_type_sa_handler=void
36210
36211 fi
36212
36213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36214         ac_ext=c
36215 ac_cpp='$CPP $CPPFLAGS'
36216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36219
36220
36221 fi
36222 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36223 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36224
36225       cat >>confdefs.h <<_ACEOF
36226 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36227 _ACEOF
36228
36229     fi
36230 fi
36231
36232 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36233     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36234 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36235 if test "${wx_cv_func_backtrace+set}" = set; then
36236   echo $ECHO_N "(cached) $ECHO_C" >&6
36237 else
36238
36239             ac_ext=cpp
36240 ac_cpp='$CXXCPP $CPPFLAGS'
36241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36244
36245             cat >conftest.$ac_ext <<_ACEOF
36246 /* confdefs.h.  */
36247 _ACEOF
36248 cat confdefs.h >>conftest.$ac_ext
36249 cat >>conftest.$ac_ext <<_ACEOF
36250 /* end confdefs.h.  */
36251 #include <execinfo.h>
36252 int
36253 main ()
36254 {
36255
36256                     void *trace[1];
36257                     char **messages;
36258
36259                     backtrace(trace, 1);
36260                     messages = backtrace_symbols(trace, 1);
36261
36262   ;
36263   return 0;
36264 }
36265 _ACEOF
36266 rm -f conftest.$ac_objext
36267 if { (ac_try="$ac_compile"
36268 case "(($ac_try" in
36269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36270   *) ac_try_echo=$ac_try;;
36271 esac
36272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36273   (eval "$ac_compile") 2>conftest.er1
36274   ac_status=$?
36275   grep -v '^ *+' conftest.er1 >conftest.err
36276   rm -f conftest.er1
36277   cat conftest.err >&5
36278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36279   (exit $ac_status); } && {
36280          test -z "$ac_cxx_werror_flag" ||
36281          test ! -s conftest.err
36282        } && test -s conftest.$ac_objext; then
36283   wx_cv_func_backtrace=yes
36284 else
36285   echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36287
36288         wx_cv_func_backtrace=no
36289
36290 fi
36291
36292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36293             ac_ext=c
36294 ac_cpp='$CPP $CPPFLAGS'
36295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36298
36299
36300
36301 fi
36302 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36303 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36304
36305
36306     if test "$wx_cv_func_backtrace" = "no"; then
36307         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36308 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36309         wxUSE_STACKWALKER=no
36310     else
36311         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36312 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36313 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36314   echo $ECHO_N "(cached) $ECHO_C" >&6
36315 else
36316
36317                 ac_ext=cpp
36318 ac_cpp='$CXXCPP $CPPFLAGS'
36319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36322
36323                 cat >conftest.$ac_ext <<_ACEOF
36324 /* confdefs.h.  */
36325 _ACEOF
36326 cat confdefs.h >>conftest.$ac_ext
36327 cat >>conftest.$ac_ext <<_ACEOF
36328 /* end confdefs.h.  */
36329 #include <cxxabi.h>
36330 int
36331 main ()
36332 {
36333
36334                         int rc;
36335                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36336
36337   ;
36338   return 0;
36339 }
36340 _ACEOF
36341 rm -f conftest.$ac_objext conftest$ac_exeext
36342 if { (ac_try="$ac_link"
36343 case "(($ac_try" in
36344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36345   *) ac_try_echo=$ac_try;;
36346 esac
36347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36348   (eval "$ac_link") 2>conftest.er1
36349   ac_status=$?
36350   grep -v '^ *+' conftest.er1 >conftest.err
36351   rm -f conftest.er1
36352   cat conftest.err >&5
36353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354   (exit $ac_status); } && {
36355          test -z "$ac_cxx_werror_flag" ||
36356          test ! -s conftest.err
36357        } && test -s conftest$ac_exeext &&
36358        $as_test_x conftest$ac_exeext; then
36359   wx_cv_func_cxa_demangle=yes
36360 else
36361   echo "$as_me: failed program was:" >&5
36362 sed 's/^/| /' conftest.$ac_ext >&5
36363
36364         wx_cv_func_cxa_demangle=no
36365
36366 fi
36367
36368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36369       conftest$ac_exeext conftest.$ac_ext
36370                 ac_ext=c
36371 ac_cpp='$CPP $CPPFLAGS'
36372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36375
36376
36377
36378 fi
36379 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36380 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36381
36382         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36383             cat >>confdefs.h <<\_ACEOF
36384 #define HAVE_CXA_DEMANGLE 1
36385 _ACEOF
36386
36387         fi
36388     fi
36389 fi
36390
36391 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36392     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36393 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36394     wxUSE_STACKWALKER=no
36395 fi
36396
36397
36398
36399
36400 for ac_func in mkstemp mktemp
36401 do
36402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36406   echo $ECHO_N "(cached) $ECHO_C" >&6
36407 else
36408   cat >conftest.$ac_ext <<_ACEOF
36409 /* confdefs.h.  */
36410 _ACEOF
36411 cat confdefs.h >>conftest.$ac_ext
36412 cat >>conftest.$ac_ext <<_ACEOF
36413 /* end confdefs.h.  */
36414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36416 #define $ac_func innocuous_$ac_func
36417
36418 /* System header to define __stub macros and hopefully few prototypes,
36419     which can conflict with char $ac_func (); below.
36420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36421     <limits.h> exists even on freestanding compilers.  */
36422
36423 #ifdef __STDC__
36424 # include <limits.h>
36425 #else
36426 # include <assert.h>
36427 #endif
36428
36429 #undef $ac_func
36430
36431 /* Override any GCC internal prototype to avoid an error.
36432    Use char because int might match the return type of a GCC
36433    builtin and then its argument prototype would still apply.  */
36434 #ifdef __cplusplus
36435 extern "C"
36436 #endif
36437 char $ac_func ();
36438 /* The GNU C library defines this for functions which it implements
36439     to always fail with ENOSYS.  Some functions are actually named
36440     something starting with __ and the normal name is an alias.  */
36441 #if defined __stub_$ac_func || defined __stub___$ac_func
36442 choke me
36443 #endif
36444
36445 int
36446 main ()
36447 {
36448 return $ac_func ();
36449   ;
36450   return 0;
36451 }
36452 _ACEOF
36453 rm -f conftest.$ac_objext conftest$ac_exeext
36454 if { (ac_try="$ac_link"
36455 case "(($ac_try" in
36456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36457   *) ac_try_echo=$ac_try;;
36458 esac
36459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36460   (eval "$ac_link") 2>conftest.er1
36461   ac_status=$?
36462   grep -v '^ *+' conftest.er1 >conftest.err
36463   rm -f conftest.er1
36464   cat conftest.err >&5
36465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466   (exit $ac_status); } && {
36467          test -z "$ac_c_werror_flag" ||
36468          test ! -s conftest.err
36469        } && test -s conftest$ac_exeext &&
36470        $as_test_x conftest$ac_exeext; then
36471   eval "$as_ac_var=yes"
36472 else
36473   echo "$as_me: failed program was:" >&5
36474 sed 's/^/| /' conftest.$ac_ext >&5
36475
36476         eval "$as_ac_var=no"
36477 fi
36478
36479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36480       conftest$ac_exeext conftest.$ac_ext
36481 fi
36482 ac_res=`eval echo '${'$as_ac_var'}'`
36483                { echo "$as_me:$LINENO: result: $ac_res" >&5
36484 echo "${ECHO_T}$ac_res" >&6; }
36485 if test `eval echo '${'$as_ac_var'}'` = yes; then
36486   cat >>confdefs.h <<_ACEOF
36487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36488 _ACEOF
36489  break
36490 fi
36491 done
36492
36493
36494 { echo "$as_me:$LINENO: checking for statfs" >&5
36495 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36496 if test "${wx_cv_func_statfs+set}" = set; then
36497   echo $ECHO_N "(cached) $ECHO_C" >&6
36498 else
36499   cat >conftest.$ac_ext <<_ACEOF
36500 /* confdefs.h.  */
36501 _ACEOF
36502 cat confdefs.h >>conftest.$ac_ext
36503 cat >>conftest.$ac_ext <<_ACEOF
36504 /* end confdefs.h.  */
36505
36506              #if defined(__BSD__)
36507              #include <sys/param.h>
36508              #include <sys/mount.h>
36509              #else
36510              #include <sys/vfs.h>
36511              #endif
36512
36513 int
36514 main ()
36515 {
36516
36517              long l;
36518              struct statfs fs;
36519              statfs("/", &fs);
36520              l = fs.f_bsize;
36521              l += fs.f_blocks;
36522              l += fs.f_bavail;
36523
36524   ;
36525   return 0;
36526 }
36527 _ACEOF
36528 rm -f conftest.$ac_objext
36529 if { (ac_try="$ac_compile"
36530 case "(($ac_try" in
36531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36532   *) ac_try_echo=$ac_try;;
36533 esac
36534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36535   (eval "$ac_compile") 2>conftest.er1
36536   ac_status=$?
36537   grep -v '^ *+' conftest.er1 >conftest.err
36538   rm -f conftest.er1
36539   cat conftest.err >&5
36540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541   (exit $ac_status); } && {
36542          test -z "$ac_c_werror_flag" ||
36543          test ! -s conftest.err
36544        } && test -s conftest.$ac_objext; then
36545   wx_cv_func_statfs=yes
36546 else
36547   echo "$as_me: failed program was:" >&5
36548 sed 's/^/| /' conftest.$ac_ext >&5
36549
36550         wx_cv_func_statfs=no
36551
36552 fi
36553
36554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36555
36556 fi
36557 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36558 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36559
36560 if test "$wx_cv_func_statfs" = "yes"; then
36561         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36562 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36563 if test "${wx_cv_func_statfs_decl+set}" = set; then
36564   echo $ECHO_N "(cached) $ECHO_C" >&6
36565 else
36566   ac_ext=cpp
36567 ac_cpp='$CXXCPP $CPPFLAGS'
36568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36571
36572         cat >conftest.$ac_ext <<_ACEOF
36573 /* confdefs.h.  */
36574 _ACEOF
36575 cat confdefs.h >>conftest.$ac_ext
36576 cat >>conftest.$ac_ext <<_ACEOF
36577 /* end confdefs.h.  */
36578
36579                  #if defined(__BSD__)
36580                  #include <sys/param.h>
36581                  #include <sys/mount.h>
36582                  #else
36583                  #include <sys/vfs.h>
36584                  #endif
36585
36586 int
36587 main ()
36588 {
36589
36590                 struct statfs fs;
36591                 statfs("", &fs);
36592
36593   ;
36594   return 0;
36595 }
36596 _ACEOF
36597 rm -f conftest.$ac_objext
36598 if { (ac_try="$ac_compile"
36599 case "(($ac_try" in
36600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36601   *) ac_try_echo=$ac_try;;
36602 esac
36603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36604   (eval "$ac_compile") 2>conftest.er1
36605   ac_status=$?
36606   grep -v '^ *+' conftest.er1 >conftest.err
36607   rm -f conftest.er1
36608   cat conftest.err >&5
36609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610   (exit $ac_status); } && {
36611          test -z "$ac_cxx_werror_flag" ||
36612          test ! -s conftest.err
36613        } && test -s conftest.$ac_objext; then
36614   wx_cv_func_statfs_decl=yes
36615 else
36616   echo "$as_me: failed program was:" >&5
36617 sed 's/^/| /' conftest.$ac_ext >&5
36618
36619         wx_cv_func_statfs_decl=no
36620
36621 fi
36622
36623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36624         ac_ext=c
36625 ac_cpp='$CPP $CPPFLAGS'
36626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36629
36630
36631 fi
36632 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36633 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36634
36635     if test "$wx_cv_func_statfs_decl" = "yes"; then
36636         cat >>confdefs.h <<\_ACEOF
36637 #define HAVE_STATFS_DECL 1
36638 _ACEOF
36639
36640     fi
36641
36642     wx_cv_type_statvfs_t="struct statfs"
36643     cat >>confdefs.h <<\_ACEOF
36644 #define HAVE_STATFS 1
36645 _ACEOF
36646
36647 else
36648     { echo "$as_me:$LINENO: checking for statvfs" >&5
36649 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36650 if test "${wx_cv_func_statvfs+set}" = set; then
36651   echo $ECHO_N "(cached) $ECHO_C" >&6
36652 else
36653   cat >conftest.$ac_ext <<_ACEOF
36654 /* confdefs.h.  */
36655 _ACEOF
36656 cat confdefs.h >>conftest.$ac_ext
36657 cat >>conftest.$ac_ext <<_ACEOF
36658 /* end confdefs.h.  */
36659
36660                 #include <stddef.h>
36661                 #include <sys/statvfs.h>
36662
36663 int
36664 main ()
36665 {
36666
36667                 statvfs("/", NULL);
36668
36669   ;
36670   return 0;
36671 }
36672 _ACEOF
36673 rm -f conftest.$ac_objext
36674 if { (ac_try="$ac_compile"
36675 case "(($ac_try" in
36676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36677   *) ac_try_echo=$ac_try;;
36678 esac
36679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36680   (eval "$ac_compile") 2>conftest.er1
36681   ac_status=$?
36682   grep -v '^ *+' conftest.er1 >conftest.err
36683   rm -f conftest.er1
36684   cat conftest.err >&5
36685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36686   (exit $ac_status); } && {
36687          test -z "$ac_c_werror_flag" ||
36688          test ! -s conftest.err
36689        } && test -s conftest.$ac_objext; then
36690   wx_cv_func_statvfs=yes
36691 else
36692   echo "$as_me: failed program was:" >&5
36693 sed 's/^/| /' conftest.$ac_ext >&5
36694
36695         wx_cv_func_statvfs=no
36696
36697 fi
36698
36699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36700
36701 fi
36702 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36703 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36704
36705     if test "$wx_cv_func_statvfs" = "yes"; then
36706                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36707 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36708 if test "${wx_cv_type_statvfs_t+set}" = set; then
36709   echo $ECHO_N "(cached) $ECHO_C" >&6
36710 else
36711   ac_ext=cpp
36712 ac_cpp='$CXXCPP $CPPFLAGS'
36713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36716
36717             cat >conftest.$ac_ext <<_ACEOF
36718 /* confdefs.h.  */
36719 _ACEOF
36720 cat confdefs.h >>conftest.$ac_ext
36721 cat >>conftest.$ac_ext <<_ACEOF
36722 /* end confdefs.h.  */
36723
36724                     #include <sys/statvfs.h>
36725
36726 int
36727 main ()
36728 {
36729
36730                     long l;
36731                     statvfs_t fs;
36732                     statvfs("/", &fs);
36733                     l = fs.f_bsize;
36734                     l += fs.f_blocks;
36735                     l += fs.f_bavail;
36736
36737   ;
36738   return 0;
36739 }
36740 _ACEOF
36741 rm -f conftest.$ac_objext
36742 if { (ac_try="$ac_compile"
36743 case "(($ac_try" in
36744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36745   *) ac_try_echo=$ac_try;;
36746 esac
36747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36748   (eval "$ac_compile") 2>conftest.er1
36749   ac_status=$?
36750   grep -v '^ *+' conftest.er1 >conftest.err
36751   rm -f conftest.er1
36752   cat conftest.err >&5
36753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36754   (exit $ac_status); } && {
36755          test -z "$ac_cxx_werror_flag" ||
36756          test ! -s conftest.err
36757        } && test -s conftest.$ac_objext; then
36758   wx_cv_type_statvfs_t=statvfs_t
36759 else
36760   echo "$as_me: failed program was:" >&5
36761 sed 's/^/| /' conftest.$ac_ext >&5
36762
36763
36764                     cat >conftest.$ac_ext <<_ACEOF
36765 /* confdefs.h.  */
36766 _ACEOF
36767 cat confdefs.h >>conftest.$ac_ext
36768 cat >>conftest.$ac_ext <<_ACEOF
36769 /* end confdefs.h.  */
36770
36771                             #include <sys/statvfs.h>
36772
36773 int
36774 main ()
36775 {
36776
36777                             long l;
36778                             struct statvfs fs;
36779                             statvfs("/", &fs);
36780                             l = fs.f_bsize;
36781                             l += fs.f_blocks;
36782                             l += fs.f_bavail;
36783
36784   ;
36785   return 0;
36786 }
36787 _ACEOF
36788 rm -f conftest.$ac_objext
36789 if { (ac_try="$ac_compile"
36790 case "(($ac_try" in
36791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36792   *) ac_try_echo=$ac_try;;
36793 esac
36794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36795   (eval "$ac_compile") 2>conftest.er1
36796   ac_status=$?
36797   grep -v '^ *+' conftest.er1 >conftest.err
36798   rm -f conftest.er1
36799   cat conftest.err >&5
36800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36801   (exit $ac_status); } && {
36802          test -z "$ac_cxx_werror_flag" ||
36803          test ! -s conftest.err
36804        } && test -s conftest.$ac_objext; then
36805   wx_cv_type_statvfs_t="struct statvfs"
36806 else
36807   echo "$as_me: failed program was:" >&5
36808 sed 's/^/| /' conftest.$ac_ext >&5
36809
36810         wx_cv_type_statvfs_t="unknown"
36811
36812 fi
36813
36814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36815
36816
36817 fi
36818
36819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36820             ac_ext=c
36821 ac_cpp='$CPP $CPPFLAGS'
36822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36825
36826
36827 fi
36828 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36829 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
36830
36831         if test "$wx_cv_type_statvfs_t" != "unknown"; then
36832             cat >>confdefs.h <<\_ACEOF
36833 #define HAVE_STATVFS 1
36834 _ACEOF
36835
36836         fi
36837     else
36838                 wx_cv_type_statvfs_t="unknown"
36839     fi
36840 fi
36841
36842 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36843     cat >>confdefs.h <<_ACEOF
36844 #define WX_STATFS_T $wx_cv_type_statvfs_t
36845 _ACEOF
36846
36847 else
36848     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36849 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36850 fi
36851
36852 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36853
36854
36855 for ac_func in fcntl flock
36856 do
36857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36861   echo $ECHO_N "(cached) $ECHO_C" >&6
36862 else
36863   cat >conftest.$ac_ext <<_ACEOF
36864 /* confdefs.h.  */
36865 _ACEOF
36866 cat confdefs.h >>conftest.$ac_ext
36867 cat >>conftest.$ac_ext <<_ACEOF
36868 /* end confdefs.h.  */
36869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36871 #define $ac_func innocuous_$ac_func
36872
36873 /* System header to define __stub macros and hopefully few prototypes,
36874     which can conflict with char $ac_func (); below.
36875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36876     <limits.h> exists even on freestanding compilers.  */
36877
36878 #ifdef __STDC__
36879 # include <limits.h>
36880 #else
36881 # include <assert.h>
36882 #endif
36883
36884 #undef $ac_func
36885
36886 /* Override any GCC internal prototype to avoid an error.
36887    Use char because int might match the return type of a GCC
36888    builtin and then its argument prototype would still apply.  */
36889 #ifdef __cplusplus
36890 extern "C"
36891 #endif
36892 char $ac_func ();
36893 /* The GNU C library defines this for functions which it implements
36894     to always fail with ENOSYS.  Some functions are actually named
36895     something starting with __ and the normal name is an alias.  */
36896 #if defined __stub_$ac_func || defined __stub___$ac_func
36897 choke me
36898 #endif
36899
36900 int
36901 main ()
36902 {
36903 return $ac_func ();
36904   ;
36905   return 0;
36906 }
36907 _ACEOF
36908 rm -f conftest.$ac_objext conftest$ac_exeext
36909 if { (ac_try="$ac_link"
36910 case "(($ac_try" in
36911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36912   *) ac_try_echo=$ac_try;;
36913 esac
36914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36915   (eval "$ac_link") 2>conftest.er1
36916   ac_status=$?
36917   grep -v '^ *+' conftest.er1 >conftest.err
36918   rm -f conftest.er1
36919   cat conftest.err >&5
36920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921   (exit $ac_status); } && {
36922          test -z "$ac_c_werror_flag" ||
36923          test ! -s conftest.err
36924        } && test -s conftest$ac_exeext &&
36925        $as_test_x conftest$ac_exeext; then
36926   eval "$as_ac_var=yes"
36927 else
36928   echo "$as_me: failed program was:" >&5
36929 sed 's/^/| /' conftest.$ac_ext >&5
36930
36931         eval "$as_ac_var=no"
36932 fi
36933
36934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36935       conftest$ac_exeext conftest.$ac_ext
36936 fi
36937 ac_res=`eval echo '${'$as_ac_var'}'`
36938                { echo "$as_me:$LINENO: result: $ac_res" >&5
36939 echo "${ECHO_T}$ac_res" >&6; }
36940 if test `eval echo '${'$as_ac_var'}'` = yes; then
36941   cat >>confdefs.h <<_ACEOF
36942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36943 _ACEOF
36944  break
36945 fi
36946 done
36947
36948
36949     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36950         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36951 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36952         wxUSE_SNGLINST_CHECKER=no
36953     fi
36954 fi
36955
36956
36957 for ac_func in timegm
36958 do
36959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36963   echo $ECHO_N "(cached) $ECHO_C" >&6
36964 else
36965   cat >conftest.$ac_ext <<_ACEOF
36966 /* confdefs.h.  */
36967 _ACEOF
36968 cat confdefs.h >>conftest.$ac_ext
36969 cat >>conftest.$ac_ext <<_ACEOF
36970 /* end confdefs.h.  */
36971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36973 #define $ac_func innocuous_$ac_func
36974
36975 /* System header to define __stub macros and hopefully few prototypes,
36976     which can conflict with char $ac_func (); below.
36977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36978     <limits.h> exists even on freestanding compilers.  */
36979
36980 #ifdef __STDC__
36981 # include <limits.h>
36982 #else
36983 # include <assert.h>
36984 #endif
36985
36986 #undef $ac_func
36987
36988 /* Override any GCC internal prototype to avoid an error.
36989    Use char because int might match the return type of a GCC
36990    builtin and then its argument prototype would still apply.  */
36991 #ifdef __cplusplus
36992 extern "C"
36993 #endif
36994 char $ac_func ();
36995 /* The GNU C library defines this for functions which it implements
36996     to always fail with ENOSYS.  Some functions are actually named
36997     something starting with __ and the normal name is an alias.  */
36998 #if defined __stub_$ac_func || defined __stub___$ac_func
36999 choke me
37000 #endif
37001
37002 int
37003 main ()
37004 {
37005 return $ac_func ();
37006   ;
37007   return 0;
37008 }
37009 _ACEOF
37010 rm -f conftest.$ac_objext conftest$ac_exeext
37011 if { (ac_try="$ac_link"
37012 case "(($ac_try" in
37013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37014   *) ac_try_echo=$ac_try;;
37015 esac
37016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37017   (eval "$ac_link") 2>conftest.er1
37018   ac_status=$?
37019   grep -v '^ *+' conftest.er1 >conftest.err
37020   rm -f conftest.er1
37021   cat conftest.err >&5
37022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023   (exit $ac_status); } && {
37024          test -z "$ac_c_werror_flag" ||
37025          test ! -s conftest.err
37026        } && test -s conftest$ac_exeext &&
37027        $as_test_x conftest$ac_exeext; then
37028   eval "$as_ac_var=yes"
37029 else
37030   echo "$as_me: failed program was:" >&5
37031 sed 's/^/| /' conftest.$ac_ext >&5
37032
37033         eval "$as_ac_var=no"
37034 fi
37035
37036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37037       conftest$ac_exeext conftest.$ac_ext
37038 fi
37039 ac_res=`eval echo '${'$as_ac_var'}'`
37040                { echo "$as_me:$LINENO: result: $ac_res" >&5
37041 echo "${ECHO_T}$ac_res" >&6; }
37042 if test `eval echo '${'$as_ac_var'}'` = yes; then
37043   cat >>confdefs.h <<_ACEOF
37044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37045 _ACEOF
37046
37047 fi
37048 done
37049
37050
37051
37052
37053 for ac_func in putenv setenv
37054 do
37055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37059   echo $ECHO_N "(cached) $ECHO_C" >&6
37060 else
37061   cat >conftest.$ac_ext <<_ACEOF
37062 /* confdefs.h.  */
37063 _ACEOF
37064 cat confdefs.h >>conftest.$ac_ext
37065 cat >>conftest.$ac_ext <<_ACEOF
37066 /* end confdefs.h.  */
37067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37069 #define $ac_func innocuous_$ac_func
37070
37071 /* System header to define __stub macros and hopefully few prototypes,
37072     which can conflict with char $ac_func (); below.
37073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37074     <limits.h> exists even on freestanding compilers.  */
37075
37076 #ifdef __STDC__
37077 # include <limits.h>
37078 #else
37079 # include <assert.h>
37080 #endif
37081
37082 #undef $ac_func
37083
37084 /* Override any GCC internal prototype to avoid an error.
37085    Use char because int might match the return type of a GCC
37086    builtin and then its argument prototype would still apply.  */
37087 #ifdef __cplusplus
37088 extern "C"
37089 #endif
37090 char $ac_func ();
37091 /* The GNU C library defines this for functions which it implements
37092     to always fail with ENOSYS.  Some functions are actually named
37093     something starting with __ and the normal name is an alias.  */
37094 #if defined __stub_$ac_func || defined __stub___$ac_func
37095 choke me
37096 #endif
37097
37098 int
37099 main ()
37100 {
37101 return $ac_func ();
37102   ;
37103   return 0;
37104 }
37105 _ACEOF
37106 rm -f conftest.$ac_objext conftest$ac_exeext
37107 if { (ac_try="$ac_link"
37108 case "(($ac_try" in
37109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37110   *) ac_try_echo=$ac_try;;
37111 esac
37112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37113   (eval "$ac_link") 2>conftest.er1
37114   ac_status=$?
37115   grep -v '^ *+' conftest.er1 >conftest.err
37116   rm -f conftest.er1
37117   cat conftest.err >&5
37118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37119   (exit $ac_status); } && {
37120          test -z "$ac_c_werror_flag" ||
37121          test ! -s conftest.err
37122        } && test -s conftest$ac_exeext &&
37123        $as_test_x conftest$ac_exeext; then
37124   eval "$as_ac_var=yes"
37125 else
37126   echo "$as_me: failed program was:" >&5
37127 sed 's/^/| /' conftest.$ac_ext >&5
37128
37129         eval "$as_ac_var=no"
37130 fi
37131
37132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37133       conftest$ac_exeext conftest.$ac_ext
37134 fi
37135 ac_res=`eval echo '${'$as_ac_var'}'`
37136                { echo "$as_me:$LINENO: result: $ac_res" >&5
37137 echo "${ECHO_T}$ac_res" >&6; }
37138 if test `eval echo '${'$as_ac_var'}'` = yes; then
37139   cat >>confdefs.h <<_ACEOF
37140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37141 _ACEOF
37142  break
37143 fi
37144 done
37145
37146
37147 HAVE_SOME_SLEEP_FUNC=0
37148 if test "$USE_BEOS" = 1; then
37149             cat >>confdefs.h <<\_ACEOF
37150 #define HAVE_SLEEP 1
37151 _ACEOF
37152
37153     HAVE_SOME_SLEEP_FUNC=1
37154 fi
37155
37156 if test "$USE_DARWIN" = 1; then
37157             cat >>confdefs.h <<\_ACEOF
37158 #define HAVE_USLEEP 1
37159 _ACEOF
37160
37161     HAVE_SOME_SLEEP_FUNC=1
37162 fi
37163
37164 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37165         POSIX4_LINK=
37166
37167 for ac_func in nanosleep
37168 do
37169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37173   echo $ECHO_N "(cached) $ECHO_C" >&6
37174 else
37175   cat >conftest.$ac_ext <<_ACEOF
37176 /* confdefs.h.  */
37177 _ACEOF
37178 cat confdefs.h >>conftest.$ac_ext
37179 cat >>conftest.$ac_ext <<_ACEOF
37180 /* end confdefs.h.  */
37181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37183 #define $ac_func innocuous_$ac_func
37184
37185 /* System header to define __stub macros and hopefully few prototypes,
37186     which can conflict with char $ac_func (); below.
37187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37188     <limits.h> exists even on freestanding compilers.  */
37189
37190 #ifdef __STDC__
37191 # include <limits.h>
37192 #else
37193 # include <assert.h>
37194 #endif
37195
37196 #undef $ac_func
37197
37198 /* Override any GCC internal prototype to avoid an error.
37199    Use char because int might match the return type of a GCC
37200    builtin and then its argument prototype would still apply.  */
37201 #ifdef __cplusplus
37202 extern "C"
37203 #endif
37204 char $ac_func ();
37205 /* The GNU C library defines this for functions which it implements
37206     to always fail with ENOSYS.  Some functions are actually named
37207     something starting with __ and the normal name is an alias.  */
37208 #if defined __stub_$ac_func || defined __stub___$ac_func
37209 choke me
37210 #endif
37211
37212 int
37213 main ()
37214 {
37215 return $ac_func ();
37216   ;
37217   return 0;
37218 }
37219 _ACEOF
37220 rm -f conftest.$ac_objext conftest$ac_exeext
37221 if { (ac_try="$ac_link"
37222 case "(($ac_try" in
37223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37224   *) ac_try_echo=$ac_try;;
37225 esac
37226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37227   (eval "$ac_link") 2>conftest.er1
37228   ac_status=$?
37229   grep -v '^ *+' conftest.er1 >conftest.err
37230   rm -f conftest.er1
37231   cat conftest.err >&5
37232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37233   (exit $ac_status); } && {
37234          test -z "$ac_c_werror_flag" ||
37235          test ! -s conftest.err
37236        } && test -s conftest$ac_exeext &&
37237        $as_test_x conftest$ac_exeext; then
37238   eval "$as_ac_var=yes"
37239 else
37240   echo "$as_me: failed program was:" >&5
37241 sed 's/^/| /' conftest.$ac_ext >&5
37242
37243         eval "$as_ac_var=no"
37244 fi
37245
37246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37247       conftest$ac_exeext conftest.$ac_ext
37248 fi
37249 ac_res=`eval echo '${'$as_ac_var'}'`
37250                { echo "$as_me:$LINENO: result: $ac_res" >&5
37251 echo "${ECHO_T}$ac_res" >&6; }
37252 if test `eval echo '${'$as_ac_var'}'` = yes; then
37253   cat >>confdefs.h <<_ACEOF
37254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37255 _ACEOF
37256  cat >>confdefs.h <<\_ACEOF
37257 #define HAVE_NANOSLEEP 1
37258 _ACEOF
37259
37260 else
37261
37262             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37263 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37264 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37265   echo $ECHO_N "(cached) $ECHO_C" >&6
37266 else
37267   ac_check_lib_save_LIBS=$LIBS
37268 LIBS="-lposix4  $LIBS"
37269 cat >conftest.$ac_ext <<_ACEOF
37270 /* confdefs.h.  */
37271 _ACEOF
37272 cat confdefs.h >>conftest.$ac_ext
37273 cat >>conftest.$ac_ext <<_ACEOF
37274 /* end confdefs.h.  */
37275
37276 /* Override any GCC internal prototype to avoid an error.
37277    Use char because int might match the return type of a GCC
37278    builtin and then its argument prototype would still apply.  */
37279 #ifdef __cplusplus
37280 extern "C"
37281 #endif
37282 char nanosleep ();
37283 int
37284 main ()
37285 {
37286 return nanosleep ();
37287   ;
37288   return 0;
37289 }
37290 _ACEOF
37291 rm -f conftest.$ac_objext conftest$ac_exeext
37292 if { (ac_try="$ac_link"
37293 case "(($ac_try" in
37294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37295   *) ac_try_echo=$ac_try;;
37296 esac
37297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37298   (eval "$ac_link") 2>conftest.er1
37299   ac_status=$?
37300   grep -v '^ *+' conftest.er1 >conftest.err
37301   rm -f conftest.er1
37302   cat conftest.err >&5
37303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37304   (exit $ac_status); } && {
37305          test -z "$ac_c_werror_flag" ||
37306          test ! -s conftest.err
37307        } && test -s conftest$ac_exeext &&
37308        $as_test_x conftest$ac_exeext; then
37309   ac_cv_lib_posix4_nanosleep=yes
37310 else
37311   echo "$as_me: failed program was:" >&5
37312 sed 's/^/| /' conftest.$ac_ext >&5
37313
37314         ac_cv_lib_posix4_nanosleep=no
37315 fi
37316
37317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37318       conftest$ac_exeext conftest.$ac_ext
37319 LIBS=$ac_check_lib_save_LIBS
37320 fi
37321 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37322 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37323 if test $ac_cv_lib_posix4_nanosleep = yes; then
37324
37325                     cat >>confdefs.h <<\_ACEOF
37326 #define HAVE_NANOSLEEP 1
37327 _ACEOF
37328
37329                     POSIX4_LINK=" -lposix4"
37330
37331 else
37332
37333
37334   for wx_func in usleep
37335   do
37336     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37337 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37338 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37339   echo $ECHO_N "(cached) $ECHO_C" >&6
37340 else
37341
37342         cat >conftest.$ac_ext <<_ACEOF
37343
37344             /* confdefs.h.  */
37345 _ACEOF
37346 cat confdefs.h >>conftest.$ac_ext
37347 cat >>conftest.$ac_ext <<_ACEOF
37348 /* end confdefs.h.  */
37349
37350
37351                 $ac_includes_default
37352
37353 int
37354 main ()
37355 {
37356
37357                 #ifndef $wx_func
37358                   &$wx_func;
37359                 #endif
37360
37361
37362   ;
37363   return 0;
37364 }
37365
37366 _ACEOF
37367 rm -f conftest.$ac_objext conftest$ac_exeext
37368 if { (ac_try="$ac_link"
37369 case "(($ac_try" in
37370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37371   *) ac_try_echo=$ac_try;;
37372 esac
37373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37374   (eval "$ac_link") 2>conftest.er1
37375   ac_status=$?
37376   grep -v '^ *+' conftest.er1 >conftest.err
37377   rm -f conftest.er1
37378   cat conftest.err >&5
37379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37380   (exit $ac_status); } && {
37381          test -z "$ac_c_werror_flag" ||
37382          test ! -s conftest.err
37383        } && test -s conftest$ac_exeext &&
37384        $as_test_x conftest$ac_exeext; then
37385   eval wx_cv_func_$wx_func=yes
37386 else
37387   echo "$as_me: failed program was:" >&5
37388 sed 's/^/| /' conftest.$ac_ext >&5
37389
37390         eval wx_cv_func_$wx_func=no
37391 fi
37392
37393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37394       conftest$ac_exeext conftest.$ac_ext
37395
37396 fi
37397 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37398                { echo "$as_me:$LINENO: result: $ac_res" >&5
37399 echo "${ECHO_T}$ac_res" >&6; }
37400
37401     if eval test \$wx_cv_func_$wx_func = yes
37402     then
37403       cat >>confdefs.h <<_ACEOF
37404 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37405 _ACEOF
37406
37407
37408     else
37409       :
37410       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37411 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37412
37413     fi
37414   done
37415
37416
37417
37418 fi
37419
37420
37421
37422 fi
37423 done
37424
37425 fi
37426
37427
37428   for wx_func in uname
37429   do
37430     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37431 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37432 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37433   echo $ECHO_N "(cached) $ECHO_C" >&6
37434 else
37435
37436         cat >conftest.$ac_ext <<_ACEOF
37437
37438             /* confdefs.h.  */
37439 _ACEOF
37440 cat confdefs.h >>conftest.$ac_ext
37441 cat >>conftest.$ac_ext <<_ACEOF
37442 /* end confdefs.h.  */
37443
37444                 #include <sys/utsname.h>
37445                 $ac_includes_default
37446
37447 int
37448 main ()
37449 {
37450
37451                 #ifndef $wx_func
37452                   &$wx_func;
37453                 #endif
37454
37455
37456   ;
37457   return 0;
37458 }
37459
37460 _ACEOF
37461 rm -f conftest.$ac_objext conftest$ac_exeext
37462 if { (ac_try="$ac_link"
37463 case "(($ac_try" in
37464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37465   *) ac_try_echo=$ac_try;;
37466 esac
37467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37468   (eval "$ac_link") 2>conftest.er1
37469   ac_status=$?
37470   grep -v '^ *+' conftest.er1 >conftest.err
37471   rm -f conftest.er1
37472   cat conftest.err >&5
37473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474   (exit $ac_status); } && {
37475          test -z "$ac_c_werror_flag" ||
37476          test ! -s conftest.err
37477        } && test -s conftest$ac_exeext &&
37478        $as_test_x conftest$ac_exeext; then
37479   eval wx_cv_func_$wx_func=yes
37480 else
37481   echo "$as_me: failed program was:" >&5
37482 sed 's/^/| /' conftest.$ac_ext >&5
37483
37484         eval wx_cv_func_$wx_func=no
37485 fi
37486
37487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37488       conftest$ac_exeext conftest.$ac_ext
37489
37490 fi
37491 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37492                { echo "$as_me:$LINENO: result: $ac_res" >&5
37493 echo "${ECHO_T}$ac_res" >&6; }
37494
37495     if eval test \$wx_cv_func_$wx_func = yes
37496     then
37497       cat >>confdefs.h <<_ACEOF
37498 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37499 _ACEOF
37500
37501
37502     else
37503       :
37504
37505     fi
37506   done
37507
37508 if test "$wx_cv_func_uname" != yes; then
37509
37510   for wx_func in gethostname
37511   do
37512     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37513 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37514 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37515   echo $ECHO_N "(cached) $ECHO_C" >&6
37516 else
37517
37518         cat >conftest.$ac_ext <<_ACEOF
37519
37520             /* confdefs.h.  */
37521 _ACEOF
37522 cat confdefs.h >>conftest.$ac_ext
37523 cat >>conftest.$ac_ext <<_ACEOF
37524 /* end confdefs.h.  */
37525
37526
37527                 $ac_includes_default
37528
37529 int
37530 main ()
37531 {
37532
37533                 #ifndef $wx_func
37534                   &$wx_func;
37535                 #endif
37536
37537
37538   ;
37539   return 0;
37540 }
37541
37542 _ACEOF
37543 rm -f conftest.$ac_objext conftest$ac_exeext
37544 if { (ac_try="$ac_link"
37545 case "(($ac_try" in
37546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37547   *) ac_try_echo=$ac_try;;
37548 esac
37549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37550   (eval "$ac_link") 2>conftest.er1
37551   ac_status=$?
37552   grep -v '^ *+' conftest.er1 >conftest.err
37553   rm -f conftest.er1
37554   cat conftest.err >&5
37555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556   (exit $ac_status); } && {
37557          test -z "$ac_c_werror_flag" ||
37558          test ! -s conftest.err
37559        } && test -s conftest$ac_exeext &&
37560        $as_test_x conftest$ac_exeext; then
37561   eval wx_cv_func_$wx_func=yes
37562 else
37563   echo "$as_me: failed program was:" >&5
37564 sed 's/^/| /' conftest.$ac_ext >&5
37565
37566         eval wx_cv_func_$wx_func=no
37567 fi
37568
37569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37570       conftest$ac_exeext conftest.$ac_ext
37571
37572 fi
37573 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37574                { echo "$as_me:$LINENO: result: $ac_res" >&5
37575 echo "${ECHO_T}$ac_res" >&6; }
37576
37577     if eval test \$wx_cv_func_$wx_func = yes
37578     then
37579       cat >>confdefs.h <<_ACEOF
37580 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37581 _ACEOF
37582
37583
37584     else
37585       :
37586
37587     fi
37588   done
37589
37590 fi
37591
37592
37593   for wx_func in strtok_r
37594   do
37595     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37596 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37597 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37598   echo $ECHO_N "(cached) $ECHO_C" >&6
37599 else
37600
37601         cat >conftest.$ac_ext <<_ACEOF
37602
37603             /* confdefs.h.  */
37604 _ACEOF
37605 cat confdefs.h >>conftest.$ac_ext
37606 cat >>conftest.$ac_ext <<_ACEOF
37607 /* end confdefs.h.  */
37608
37609                 #define _REENTRANT
37610                 $ac_includes_default
37611
37612 int
37613 main ()
37614 {
37615
37616                 #ifndef $wx_func
37617                   &$wx_func;
37618                 #endif
37619
37620
37621   ;
37622   return 0;
37623 }
37624
37625 _ACEOF
37626 rm -f conftest.$ac_objext conftest$ac_exeext
37627 if { (ac_try="$ac_link"
37628 case "(($ac_try" in
37629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37630   *) ac_try_echo=$ac_try;;
37631 esac
37632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37633   (eval "$ac_link") 2>conftest.er1
37634   ac_status=$?
37635   grep -v '^ *+' conftest.er1 >conftest.err
37636   rm -f conftest.er1
37637   cat conftest.err >&5
37638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37639   (exit $ac_status); } && {
37640          test -z "$ac_c_werror_flag" ||
37641          test ! -s conftest.err
37642        } && test -s conftest$ac_exeext &&
37643        $as_test_x conftest$ac_exeext; then
37644   eval wx_cv_func_$wx_func=yes
37645 else
37646   echo "$as_me: failed program was:" >&5
37647 sed 's/^/| /' conftest.$ac_ext >&5
37648
37649         eval wx_cv_func_$wx_func=no
37650 fi
37651
37652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37653       conftest$ac_exeext conftest.$ac_ext
37654
37655 fi
37656 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37657                { echo "$as_me:$LINENO: result: $ac_res" >&5
37658 echo "${ECHO_T}$ac_res" >&6; }
37659
37660     if eval test \$wx_cv_func_$wx_func = yes
37661     then
37662       cat >>confdefs.h <<_ACEOF
37663 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37664 _ACEOF
37665
37666
37667     else
37668       :
37669
37670     fi
37671   done
37672
37673
37674 INET_LINK=
37675
37676 for ac_func in inet_addr
37677 do
37678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37681 if { as_var=$as_ac_var; 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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37692 #define $ac_func innocuous_$ac_func
37693
37694 /* System header to define __stub macros and hopefully few prototypes,
37695     which can conflict with char $ac_func (); below.
37696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37697     <limits.h> exists even on freestanding compilers.  */
37698
37699 #ifdef __STDC__
37700 # include <limits.h>
37701 #else
37702 # include <assert.h>
37703 #endif
37704
37705 #undef $ac_func
37706
37707 /* Override any GCC internal prototype to avoid an error.
37708    Use char because int might match the return type of a GCC
37709    builtin and then its argument prototype would still apply.  */
37710 #ifdef __cplusplus
37711 extern "C"
37712 #endif
37713 char $ac_func ();
37714 /* The GNU C library defines this for functions which it implements
37715     to always fail with ENOSYS.  Some functions are actually named
37716     something starting with __ and the normal name is an alias.  */
37717 #if defined __stub_$ac_func || defined __stub___$ac_func
37718 choke me
37719 #endif
37720
37721 int
37722 main ()
37723 {
37724 return $ac_func ();
37725   ;
37726   return 0;
37727 }
37728 _ACEOF
37729 rm -f conftest.$ac_objext conftest$ac_exeext
37730 if { (ac_try="$ac_link"
37731 case "(($ac_try" in
37732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37733   *) ac_try_echo=$ac_try;;
37734 esac
37735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37736   (eval "$ac_link") 2>conftest.er1
37737   ac_status=$?
37738   grep -v '^ *+' conftest.er1 >conftest.err
37739   rm -f conftest.er1
37740   cat conftest.err >&5
37741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37742   (exit $ac_status); } && {
37743          test -z "$ac_c_werror_flag" ||
37744          test ! -s conftest.err
37745        } && test -s conftest$ac_exeext &&
37746        $as_test_x conftest$ac_exeext; then
37747   eval "$as_ac_var=yes"
37748 else
37749   echo "$as_me: failed program was:" >&5
37750 sed 's/^/| /' conftest.$ac_ext >&5
37751
37752         eval "$as_ac_var=no"
37753 fi
37754
37755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37756       conftest$ac_exeext conftest.$ac_ext
37757 fi
37758 ac_res=`eval echo '${'$as_ac_var'}'`
37759                { echo "$as_me:$LINENO: result: $ac_res" >&5
37760 echo "${ECHO_T}$ac_res" >&6; }
37761 if test `eval echo '${'$as_ac_var'}'` = yes; then
37762   cat >>confdefs.h <<_ACEOF
37763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37764 _ACEOF
37765  cat >>confdefs.h <<\_ACEOF
37766 #define HAVE_INET_ADDR 1
37767 _ACEOF
37768
37769 else
37770
37771         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37772 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
37773 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37774   echo $ECHO_N "(cached) $ECHO_C" >&6
37775 else
37776   ac_check_lib_save_LIBS=$LIBS
37777 LIBS="-lnsl  $LIBS"
37778 cat >conftest.$ac_ext <<_ACEOF
37779 /* confdefs.h.  */
37780 _ACEOF
37781 cat confdefs.h >>conftest.$ac_ext
37782 cat >>conftest.$ac_ext <<_ACEOF
37783 /* end confdefs.h.  */
37784
37785 /* Override any GCC internal prototype to avoid an error.
37786    Use char because int might match the return type of a GCC
37787    builtin and then its argument prototype would still apply.  */
37788 #ifdef __cplusplus
37789 extern "C"
37790 #endif
37791 char inet_addr ();
37792 int
37793 main ()
37794 {
37795 return inet_addr ();
37796   ;
37797   return 0;
37798 }
37799 _ACEOF
37800 rm -f conftest.$ac_objext conftest$ac_exeext
37801 if { (ac_try="$ac_link"
37802 case "(($ac_try" in
37803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37804   *) ac_try_echo=$ac_try;;
37805 esac
37806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37807   (eval "$ac_link") 2>conftest.er1
37808   ac_status=$?
37809   grep -v '^ *+' conftest.er1 >conftest.err
37810   rm -f conftest.er1
37811   cat conftest.err >&5
37812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813   (exit $ac_status); } && {
37814          test -z "$ac_c_werror_flag" ||
37815          test ! -s conftest.err
37816        } && test -s conftest$ac_exeext &&
37817        $as_test_x conftest$ac_exeext; then
37818   ac_cv_lib_nsl_inet_addr=yes
37819 else
37820   echo "$as_me: failed program was:" >&5
37821 sed 's/^/| /' conftest.$ac_ext >&5
37822
37823         ac_cv_lib_nsl_inet_addr=no
37824 fi
37825
37826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37827       conftest$ac_exeext conftest.$ac_ext
37828 LIBS=$ac_check_lib_save_LIBS
37829 fi
37830 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37831 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
37832 if test $ac_cv_lib_nsl_inet_addr = yes; then
37833   INET_LINK="nsl"
37834 else
37835
37836                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37837 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
37838 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37839   echo $ECHO_N "(cached) $ECHO_C" >&6
37840 else
37841   ac_check_lib_save_LIBS=$LIBS
37842 LIBS="-lresolv  $LIBS"
37843 cat >conftest.$ac_ext <<_ACEOF
37844 /* confdefs.h.  */
37845 _ACEOF
37846 cat confdefs.h >>conftest.$ac_ext
37847 cat >>conftest.$ac_ext <<_ACEOF
37848 /* end confdefs.h.  */
37849
37850 /* Override any GCC internal prototype to avoid an error.
37851    Use char because int might match the return type of a GCC
37852    builtin and then its argument prototype would still apply.  */
37853 #ifdef __cplusplus
37854 extern "C"
37855 #endif
37856 char inet_addr ();
37857 int
37858 main ()
37859 {
37860 return inet_addr ();
37861   ;
37862   return 0;
37863 }
37864 _ACEOF
37865 rm -f conftest.$ac_objext conftest$ac_exeext
37866 if { (ac_try="$ac_link"
37867 case "(($ac_try" in
37868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37869   *) ac_try_echo=$ac_try;;
37870 esac
37871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37872   (eval "$ac_link") 2>conftest.er1
37873   ac_status=$?
37874   grep -v '^ *+' conftest.er1 >conftest.err
37875   rm -f conftest.er1
37876   cat conftest.err >&5
37877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37878   (exit $ac_status); } && {
37879          test -z "$ac_c_werror_flag" ||
37880          test ! -s conftest.err
37881        } && test -s conftest$ac_exeext &&
37882        $as_test_x conftest$ac_exeext; then
37883   ac_cv_lib_resolv_inet_addr=yes
37884 else
37885   echo "$as_me: failed program was:" >&5
37886 sed 's/^/| /' conftest.$ac_ext >&5
37887
37888         ac_cv_lib_resolv_inet_addr=no
37889 fi
37890
37891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37892       conftest$ac_exeext conftest.$ac_ext
37893 LIBS=$ac_check_lib_save_LIBS
37894 fi
37895 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37896 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
37897 if test $ac_cv_lib_resolv_inet_addr = yes; then
37898   INET_LINK="resolv"
37899 else
37900
37901                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37902 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
37903 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37904   echo $ECHO_N "(cached) $ECHO_C" >&6
37905 else
37906   ac_check_lib_save_LIBS=$LIBS
37907 LIBS="-lsocket  $LIBS"
37908 cat >conftest.$ac_ext <<_ACEOF
37909 /* confdefs.h.  */
37910 _ACEOF
37911 cat confdefs.h >>conftest.$ac_ext
37912 cat >>conftest.$ac_ext <<_ACEOF
37913 /* end confdefs.h.  */
37914
37915 /* Override any GCC internal prototype to avoid an error.
37916    Use char because int might match the return type of a GCC
37917    builtin and then its argument prototype would still apply.  */
37918 #ifdef __cplusplus
37919 extern "C"
37920 #endif
37921 char inet_addr ();
37922 int
37923 main ()
37924 {
37925 return inet_addr ();
37926   ;
37927   return 0;
37928 }
37929 _ACEOF
37930 rm -f conftest.$ac_objext conftest$ac_exeext
37931 if { (ac_try="$ac_link"
37932 case "(($ac_try" in
37933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37934   *) ac_try_echo=$ac_try;;
37935 esac
37936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37937   (eval "$ac_link") 2>conftest.er1
37938   ac_status=$?
37939   grep -v '^ *+' conftest.er1 >conftest.err
37940   rm -f conftest.er1
37941   cat conftest.err >&5
37942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943   (exit $ac_status); } && {
37944          test -z "$ac_c_werror_flag" ||
37945          test ! -s conftest.err
37946        } && test -s conftest$ac_exeext &&
37947        $as_test_x conftest$ac_exeext; then
37948   ac_cv_lib_socket_inet_addr=yes
37949 else
37950   echo "$as_me: failed program was:" >&5
37951 sed 's/^/| /' conftest.$ac_ext >&5
37952
37953         ac_cv_lib_socket_inet_addr=no
37954 fi
37955
37956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37957       conftest$ac_exeext conftest.$ac_ext
37958 LIBS=$ac_check_lib_save_LIBS
37959 fi
37960 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37961 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
37962 if test $ac_cv_lib_socket_inet_addr = yes; then
37963   INET_LINK="socket"
37964
37965 fi
37966
37967
37968
37969 fi
37970
37971
37972
37973 fi
37974
37975
37976
37977 fi
37978 done
37979
37980
37981
37982 for ac_func in inet_aton
37983 do
37984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37988   echo $ECHO_N "(cached) $ECHO_C" >&6
37989 else
37990   cat >conftest.$ac_ext <<_ACEOF
37991 /* confdefs.h.  */
37992 _ACEOF
37993 cat confdefs.h >>conftest.$ac_ext
37994 cat >>conftest.$ac_ext <<_ACEOF
37995 /* end confdefs.h.  */
37996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37998 #define $ac_func innocuous_$ac_func
37999
38000 /* System header to define __stub macros and hopefully few prototypes,
38001     which can conflict with char $ac_func (); below.
38002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38003     <limits.h> exists even on freestanding compilers.  */
38004
38005 #ifdef __STDC__
38006 # include <limits.h>
38007 #else
38008 # include <assert.h>
38009 #endif
38010
38011 #undef $ac_func
38012
38013 /* Override any GCC internal prototype to avoid an error.
38014    Use char because int might match the return type of a GCC
38015    builtin and then its argument prototype would still apply.  */
38016 #ifdef __cplusplus
38017 extern "C"
38018 #endif
38019 char $ac_func ();
38020 /* The GNU C library defines this for functions which it implements
38021     to always fail with ENOSYS.  Some functions are actually named
38022     something starting with __ and the normal name is an alias.  */
38023 #if defined __stub_$ac_func || defined __stub___$ac_func
38024 choke me
38025 #endif
38026
38027 int
38028 main ()
38029 {
38030 return $ac_func ();
38031   ;
38032   return 0;
38033 }
38034 _ACEOF
38035 rm -f conftest.$ac_objext conftest$ac_exeext
38036 if { (ac_try="$ac_link"
38037 case "(($ac_try" in
38038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38039   *) ac_try_echo=$ac_try;;
38040 esac
38041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38042   (eval "$ac_link") 2>conftest.er1
38043   ac_status=$?
38044   grep -v '^ *+' conftest.er1 >conftest.err
38045   rm -f conftest.er1
38046   cat conftest.err >&5
38047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048   (exit $ac_status); } && {
38049          test -z "$ac_c_werror_flag" ||
38050          test ! -s conftest.err
38051        } && test -s conftest$ac_exeext &&
38052        $as_test_x conftest$ac_exeext; then
38053   eval "$as_ac_var=yes"
38054 else
38055   echo "$as_me: failed program was:" >&5
38056 sed 's/^/| /' conftest.$ac_ext >&5
38057
38058         eval "$as_ac_var=no"
38059 fi
38060
38061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38062       conftest$ac_exeext conftest.$ac_ext
38063 fi
38064 ac_res=`eval echo '${'$as_ac_var'}'`
38065                { echo "$as_me:$LINENO: result: $ac_res" >&5
38066 echo "${ECHO_T}$ac_res" >&6; }
38067 if test `eval echo '${'$as_ac_var'}'` = yes; then
38068   cat >>confdefs.h <<_ACEOF
38069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38070 _ACEOF
38071  cat >>confdefs.h <<\_ACEOF
38072 #define HAVE_INET_ATON 1
38073 _ACEOF
38074
38075 else
38076
38077                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38078 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38079 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38080 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38081   echo $ECHO_N "(cached) $ECHO_C" >&6
38082 else
38083   ac_check_lib_save_LIBS=$LIBS
38084 LIBS="-l$INET_LINK  $LIBS"
38085 cat >conftest.$ac_ext <<_ACEOF
38086 /* confdefs.h.  */
38087 _ACEOF
38088 cat confdefs.h >>conftest.$ac_ext
38089 cat >>conftest.$ac_ext <<_ACEOF
38090 /* end confdefs.h.  */
38091
38092 /* Override any GCC internal prototype to avoid an error.
38093    Use char because int might match the return type of a GCC
38094    builtin and then its argument prototype would still apply.  */
38095 #ifdef __cplusplus
38096 extern "C"
38097 #endif
38098 char inet_aton ();
38099 int
38100 main ()
38101 {
38102 return inet_aton ();
38103   ;
38104   return 0;
38105 }
38106 _ACEOF
38107 rm -f conftest.$ac_objext conftest$ac_exeext
38108 if { (ac_try="$ac_link"
38109 case "(($ac_try" in
38110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38111   *) ac_try_echo=$ac_try;;
38112 esac
38113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38114   (eval "$ac_link") 2>conftest.er1
38115   ac_status=$?
38116   grep -v '^ *+' conftest.er1 >conftest.err
38117   rm -f conftest.er1
38118   cat conftest.err >&5
38119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38120   (exit $ac_status); } && {
38121          test -z "$ac_c_werror_flag" ||
38122          test ! -s conftest.err
38123        } && test -s conftest$ac_exeext &&
38124        $as_test_x conftest$ac_exeext; then
38125   eval "$as_ac_Lib=yes"
38126 else
38127   echo "$as_me: failed program was:" >&5
38128 sed 's/^/| /' conftest.$ac_ext >&5
38129
38130         eval "$as_ac_Lib=no"
38131 fi
38132
38133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38134       conftest$ac_exeext conftest.$ac_ext
38135 LIBS=$ac_check_lib_save_LIBS
38136 fi
38137 ac_res=`eval echo '${'$as_ac_Lib'}'`
38138                { echo "$as_me:$LINENO: result: $ac_res" >&5
38139 echo "${ECHO_T}$ac_res" >&6; }
38140 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38141   cat >>confdefs.h <<\_ACEOF
38142 #define HAVE_INET_ATON 1
38143 _ACEOF
38144
38145 fi
38146
38147
38148 fi
38149 done
38150
38151
38152 if test "x$INET_LINK" != "x"; then
38153     cat >>confdefs.h <<\_ACEOF
38154 #define HAVE_INET_ADDR 1
38155 _ACEOF
38156
38157     INET_LINK=" -l$INET_LINK"
38158 fi
38159
38160
38161   for wx_func in fdopen
38162   do
38163     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38164 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38165 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38166   echo $ECHO_N "(cached) $ECHO_C" >&6
38167 else
38168
38169         cat >conftest.$ac_ext <<_ACEOF
38170
38171             /* confdefs.h.  */
38172 _ACEOF
38173 cat confdefs.h >>conftest.$ac_ext
38174 cat >>conftest.$ac_ext <<_ACEOF
38175 /* end confdefs.h.  */
38176
38177
38178                 $ac_includes_default
38179
38180 int
38181 main ()
38182 {
38183
38184                 #ifndef $wx_func
38185                   &$wx_func;
38186                 #endif
38187
38188
38189   ;
38190   return 0;
38191 }
38192
38193 _ACEOF
38194 rm -f conftest.$ac_objext conftest$ac_exeext
38195 if { (ac_try="$ac_link"
38196 case "(($ac_try" in
38197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38198   *) ac_try_echo=$ac_try;;
38199 esac
38200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38201   (eval "$ac_link") 2>conftest.er1
38202   ac_status=$?
38203   grep -v '^ *+' conftest.er1 >conftest.err
38204   rm -f conftest.er1
38205   cat conftest.err >&5
38206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207   (exit $ac_status); } && {
38208          test -z "$ac_c_werror_flag" ||
38209          test ! -s conftest.err
38210        } && test -s conftest$ac_exeext &&
38211        $as_test_x conftest$ac_exeext; then
38212   eval wx_cv_func_$wx_func=yes
38213 else
38214   echo "$as_me: failed program was:" >&5
38215 sed 's/^/| /' conftest.$ac_ext >&5
38216
38217         eval wx_cv_func_$wx_func=no
38218 fi
38219
38220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38221       conftest$ac_exeext conftest.$ac_ext
38222
38223 fi
38224 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38225                { echo "$as_me:$LINENO: result: $ac_res" >&5
38226 echo "${ECHO_T}$ac_res" >&6; }
38227
38228     if eval test \$wx_cv_func_$wx_func = yes
38229     then
38230       cat >>confdefs.h <<_ACEOF
38231 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38232 _ACEOF
38233
38234
38235     else
38236       :
38237
38238     fi
38239   done
38240
38241
38242 fi
38243
38244
38245
38246 cat >confcache <<\_ACEOF
38247 # This file is a shell script that caches the results of configure
38248 # tests run on this system so they can be shared between configure
38249 # scripts and configure runs, see configure's option --config-cache.
38250 # It is not useful on other systems.  If it contains results you don't
38251 # want to keep, you may remove or edit it.
38252 #
38253 # config.status only pays attention to the cache file if you give it
38254 # the --recheck option to rerun configure.
38255 #
38256 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38258 # following values.
38259
38260 _ACEOF
38261
38262 # The following way of writing the cache mishandles newlines in values,
38263 # but we know of no workaround that is simple, portable, and efficient.
38264 # So, we kill variables containing newlines.
38265 # Ultrix sh set writes to stderr and can't be redirected directly,
38266 # and sets the high bit in the cache file unless we assign to the vars.
38267 (
38268   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38269     eval ac_val=\$$ac_var
38270     case $ac_val in #(
38271     *${as_nl}*)
38272       case $ac_var in #(
38273       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38274 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38275       esac
38276       case $ac_var in #(
38277       _ | IFS | as_nl) ;; #(
38278       *) $as_unset $ac_var ;;
38279       esac ;;
38280     esac
38281   done
38282
38283   (set) 2>&1 |
38284     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38285     *${as_nl}ac_space=\ *)
38286       # `set' does not quote correctly, so add quotes (double-quote
38287       # substitution turns \\\\ into \\, and sed turns \\ into \).
38288       sed -n \
38289         "s/'/'\\\\''/g;
38290           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38291       ;; #(
38292     *)
38293       # `set' quotes correctly as required by POSIX, so do not add quotes.
38294       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38295       ;;
38296     esac |
38297     sort
38298 ) |
38299   sed '
38300      /^ac_cv_env_/b end
38301      t clear
38302      :clear
38303      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38304      t end
38305      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38306      :end' >>confcache
38307 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38308   if test -w "$cache_file"; then
38309     test "x$cache_file" != "x/dev/null" &&
38310       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38311 echo "$as_me: updating cache $cache_file" >&6;}
38312     cat confcache >$cache_file
38313   else
38314     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38315 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38316   fi
38317 fi
38318 rm -f confcache
38319
38320
38321 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38322
38323
38324     THREADS_LINK=
38325     THREADS_CFLAGS=
38326
38327     if test "$wxUSE_THREADS" = "yes" ; then
38328         if test "$USE_BEOS" = 1; then
38329             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38330 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38331             wxUSE_THREADS="no"
38332         fi
38333     fi
38334
38335     if test "$wxUSE_THREADS" = "yes" ; then
38336
38337
38338                                 THREAD_OPTS="-pthread"
38339         if test "x$SUNCXX" = xyes; then
38340             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38341         fi
38342
38343         case "${host}" in
38344           *-*-solaris2* | *-*-sunos4* )
38345                 if test "x$GCC" = "xyes"; then
38346                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38347                 fi
38348                 ;;
38349           *-*-freebsd*)
38350                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38351                 ;;
38352           *-*-darwin* | *-*-cygwin* )
38353                                                 THREAD_OPTS=""
38354                 ;;
38355           *-*-aix*)
38356                                 THREAD_OPTS="pthreads"
38357                 ;;
38358           *-hp-hpux* )
38359                 if test "x$GCC" = "xyes"; then
38360                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38361                         THREAD_OPTS=""
38362                 else
38363                                                             THREAD_OPTS="-mt"
38364                 fi
38365                 ;;
38366
38367           *-*-irix* )
38368                                                                 if test "x$GCC" = "xyes"; then
38369                     THREAD_OPTS=""
38370                 fi
38371                 ;;
38372
38373           *-*-*UnixWare*)
38374                                 if test "x$GCC" != "xyes"; then
38375                     THREAD_OPTS="-Ethread"
38376                 fi
38377                 ;;
38378         esac
38379
38380                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38381
38382                 THREADS_OK=no
38383         for flag in $THREAD_OPTS; do
38384             case $flag in
38385                 none)
38386                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38387 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38388                     ;;
38389
38390                 -*)
38391                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38392 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38393                     THREADS_CFLAGS="$flag"
38394                     ;;
38395
38396                 *)
38397                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38398 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38399                     THREADS_LINK="-l$flag"
38400                     ;;
38401               esac
38402
38403               save_LIBS="$LIBS"
38404               save_CFLAGS="$CFLAGS"
38405               LIBS="$THREADS_LINK $LIBS"
38406               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38407
38408               cat >conftest.$ac_ext <<_ACEOF
38409 /* confdefs.h.  */
38410 _ACEOF
38411 cat confdefs.h >>conftest.$ac_ext
38412 cat >>conftest.$ac_ext <<_ACEOF
38413 /* end confdefs.h.  */
38414 #include <pthread.h>
38415 int
38416 main ()
38417 {
38418 pthread_create(0,0,0,0);
38419   ;
38420   return 0;
38421 }
38422 _ACEOF
38423 rm -f conftest.$ac_objext conftest$ac_exeext
38424 if { (ac_try="$ac_link"
38425 case "(($ac_try" in
38426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38427   *) ac_try_echo=$ac_try;;
38428 esac
38429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38430   (eval "$ac_link") 2>conftest.er1
38431   ac_status=$?
38432   grep -v '^ *+' conftest.er1 >conftest.err
38433   rm -f conftest.er1
38434   cat conftest.err >&5
38435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436   (exit $ac_status); } && {
38437          test -z "$ac_c_werror_flag" ||
38438          test ! -s conftest.err
38439        } && test -s conftest$ac_exeext &&
38440        $as_test_x conftest$ac_exeext; then
38441   THREADS_OK=yes
38442 else
38443   echo "$as_me: failed program was:" >&5
38444 sed 's/^/| /' conftest.$ac_ext >&5
38445
38446
38447 fi
38448
38449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38450       conftest$ac_exeext conftest.$ac_ext
38451
38452               LIBS="$save_LIBS"
38453               CFLAGS="$save_CFLAGS"
38454
38455               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38456 echo "${ECHO_T}$THREADS_OK" >&6; }
38457               if test "x$THREADS_OK" = "xyes"; then
38458                       break;
38459               fi
38460
38461               THREADS_LINK=""
38462               THREADS_CFLAGS=""
38463       done
38464
38465       if test "x$THREADS_OK" != "xyes"; then
38466           wxUSE_THREADS=no
38467           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38468 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38469       else
38470                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
38471           LIBS="$THREADS_LINK $LIBS"
38472
38473           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38474 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
38475           flag=no
38476           case "${host}" in
38477             *-aix*)
38478                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38479                 flag="-D_THREAD_SAFE"
38480                 ;;
38481             *-freebsd*)
38482                 flag="-D_THREAD_SAFE"
38483                 ;;
38484             *-hp-hpux* )
38485                 flag="-D_REENTRANT"
38486                 if test "x$GCC" != "xyes"; then
38487                                         flag="$flag -D_RWSTD_MULTI_THREAD"
38488                 fi
38489                 ;;
38490             *solaris* | alpha*-osf*)
38491                 flag="-D_REENTRANT"
38492                 ;;
38493           esac
38494           { echo "$as_me:$LINENO: result: ${flag}" >&5
38495 echo "${ECHO_T}${flag}" >&6; }
38496           if test "x$flag" != xno; then
38497               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
38498           fi
38499
38500                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
38501       fi
38502     fi
38503
38504         if test "$wxUSE_THREADS" = "yes" ; then
38505
38506 for ac_func in thr_setconcurrency
38507 do
38508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38512   echo $ECHO_N "(cached) $ECHO_C" >&6
38513 else
38514   cat >conftest.$ac_ext <<_ACEOF
38515 /* confdefs.h.  */
38516 _ACEOF
38517 cat confdefs.h >>conftest.$ac_ext
38518 cat >>conftest.$ac_ext <<_ACEOF
38519 /* end confdefs.h.  */
38520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38522 #define $ac_func innocuous_$ac_func
38523
38524 /* System header to define __stub macros and hopefully few prototypes,
38525     which can conflict with char $ac_func (); below.
38526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38527     <limits.h> exists even on freestanding compilers.  */
38528
38529 #ifdef __STDC__
38530 # include <limits.h>
38531 #else
38532 # include <assert.h>
38533 #endif
38534
38535 #undef $ac_func
38536
38537 /* Override any GCC internal prototype to avoid an error.
38538    Use char because int might match the return type of a GCC
38539    builtin and then its argument prototype would still apply.  */
38540 #ifdef __cplusplus
38541 extern "C"
38542 #endif
38543 char $ac_func ();
38544 /* The GNU C library defines this for functions which it implements
38545     to always fail with ENOSYS.  Some functions are actually named
38546     something starting with __ and the normal name is an alias.  */
38547 #if defined __stub_$ac_func || defined __stub___$ac_func
38548 choke me
38549 #endif
38550
38551 int
38552 main ()
38553 {
38554 return $ac_func ();
38555   ;
38556   return 0;
38557 }
38558 _ACEOF
38559 rm -f conftest.$ac_objext conftest$ac_exeext
38560 if { (ac_try="$ac_link"
38561 case "(($ac_try" in
38562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38563   *) ac_try_echo=$ac_try;;
38564 esac
38565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38566   (eval "$ac_link") 2>conftest.er1
38567   ac_status=$?
38568   grep -v '^ *+' conftest.er1 >conftest.err
38569   rm -f conftest.er1
38570   cat conftest.err >&5
38571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572   (exit $ac_status); } && {
38573          test -z "$ac_c_werror_flag" ||
38574          test ! -s conftest.err
38575        } && test -s conftest$ac_exeext &&
38576        $as_test_x conftest$ac_exeext; then
38577   eval "$as_ac_var=yes"
38578 else
38579   echo "$as_me: failed program was:" >&5
38580 sed 's/^/| /' conftest.$ac_ext >&5
38581
38582         eval "$as_ac_var=no"
38583 fi
38584
38585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38586       conftest$ac_exeext conftest.$ac_ext
38587 fi
38588 ac_res=`eval echo '${'$as_ac_var'}'`
38589                { echo "$as_me:$LINENO: result: $ac_res" >&5
38590 echo "${ECHO_T}$ac_res" >&6; }
38591 if test `eval echo '${'$as_ac_var'}'` = yes; then
38592   cat >>confdefs.h <<_ACEOF
38593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38594 _ACEOF
38595
38596 fi
38597 done
38598
38599
38600                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38601 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
38602 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38603   echo $ECHO_N "(cached) $ECHO_C" >&6
38604 else
38605
38606                                 ac_ext=cpp
38607 ac_cpp='$CXXCPP $CPPFLAGS'
38608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38611
38612         cat >conftest.$ac_ext <<_ACEOF
38613 /* confdefs.h.  */
38614 _ACEOF
38615 cat confdefs.h >>conftest.$ac_ext
38616 cat >>conftest.$ac_ext <<_ACEOF
38617 /* end confdefs.h.  */
38618 #include <pthread.h>
38619                void ThreadCleanupFunc(void *p);
38620
38621 int
38622 main ()
38623 {
38624
38625                 void *p;
38626                 pthread_cleanup_push(ThreadCleanupFunc, p);
38627                 pthread_cleanup_pop(0);
38628
38629   ;
38630   return 0;
38631 }
38632 _ACEOF
38633 rm -f conftest.$ac_objext
38634 if { (ac_try="$ac_compile"
38635 case "(($ac_try" in
38636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38637   *) ac_try_echo=$ac_try;;
38638 esac
38639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38640   (eval "$ac_compile") 2>conftest.er1
38641   ac_status=$?
38642   grep -v '^ *+' conftest.er1 >conftest.err
38643   rm -f conftest.er1
38644   cat conftest.err >&5
38645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38646   (exit $ac_status); } && {
38647          test -z "$ac_cxx_werror_flag" ||
38648          test ! -s conftest.err
38649        } && test -s conftest.$ac_objext; then
38650
38651                wx_cv_func_pthread_cleanup=yes
38652
38653 else
38654   echo "$as_me: failed program was:" >&5
38655 sed 's/^/| /' conftest.$ac_ext >&5
38656
38657
38658                wx_cv_func_pthread_cleanup=no
38659
38660
38661 fi
38662
38663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38664         ac_ext=c
38665 ac_cpp='$CPP $CPPFLAGS'
38666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38669
38670
38671 fi
38672 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38673 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
38674       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38675         cat >>confdefs.h <<\_ACEOF
38676 #define wxHAVE_PTHREAD_CLEANUP 1
38677 _ACEOF
38678
38679       fi
38680
38681       { echo "$as_me:$LINENO: checking for sched.h" >&5
38682 echo $ECHO_N "checking for sched.h... $ECHO_C" >&6; }
38683 if test "${ac_cv_header_sched_h+set}" = set; then
38684   echo $ECHO_N "(cached) $ECHO_C" >&6
38685 else
38686   cat >conftest.$ac_ext <<_ACEOF
38687 /* confdefs.h.  */
38688 _ACEOF
38689 cat confdefs.h >>conftest.$ac_ext
38690 cat >>conftest.$ac_ext <<_ACEOF
38691 /* end confdefs.h.  */
38692 $ac_includes_default
38693
38694 #include <sched.h>
38695 _ACEOF
38696 rm -f conftest.$ac_objext
38697 if { (ac_try="$ac_compile"
38698 case "(($ac_try" in
38699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38700   *) ac_try_echo=$ac_try;;
38701 esac
38702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38703   (eval "$ac_compile") 2>conftest.er1
38704   ac_status=$?
38705   grep -v '^ *+' conftest.er1 >conftest.err
38706   rm -f conftest.er1
38707   cat conftest.err >&5
38708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38709   (exit $ac_status); } && {
38710          test -z "$ac_c_werror_flag" ||
38711          test ! -s conftest.err
38712        } && test -s conftest.$ac_objext; then
38713   ac_cv_header_sched_h=yes
38714 else
38715   echo "$as_me: failed program was:" >&5
38716 sed 's/^/| /' conftest.$ac_ext >&5
38717
38718         ac_cv_header_sched_h=no
38719 fi
38720
38721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38722 fi
38723 { echo "$as_me:$LINENO: result: $ac_cv_header_sched_h" >&5
38724 echo "${ECHO_T}$ac_cv_header_sched_h" >&6; }
38725
38726
38727       if test "$ac_cv_header_sched_h" = "yes"; then
38728           { echo "$as_me:$LINENO: checking for sched_yield" >&5
38729 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
38730 if test "${ac_cv_func_sched_yield+set}" = set; then
38731   echo $ECHO_N "(cached) $ECHO_C" >&6
38732 else
38733   cat >conftest.$ac_ext <<_ACEOF
38734 /* confdefs.h.  */
38735 _ACEOF
38736 cat confdefs.h >>conftest.$ac_ext
38737 cat >>conftest.$ac_ext <<_ACEOF
38738 /* end confdefs.h.  */
38739 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38741 #define sched_yield innocuous_sched_yield
38742
38743 /* System header to define __stub macros and hopefully few prototypes,
38744     which can conflict with char sched_yield (); below.
38745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38746     <limits.h> exists even on freestanding compilers.  */
38747
38748 #ifdef __STDC__
38749 # include <limits.h>
38750 #else
38751 # include <assert.h>
38752 #endif
38753
38754 #undef sched_yield
38755
38756 /* Override any GCC internal prototype to avoid an error.
38757    Use char because int might match the return type of a GCC
38758    builtin and then its argument prototype would still apply.  */
38759 #ifdef __cplusplus
38760 extern "C"
38761 #endif
38762 char sched_yield ();
38763 /* The GNU C library defines this for functions which it implements
38764     to always fail with ENOSYS.  Some functions are actually named
38765     something starting with __ and the normal name is an alias.  */
38766 #if defined __stub_sched_yield || defined __stub___sched_yield
38767 choke me
38768 #endif
38769
38770 int
38771 main ()
38772 {
38773 return sched_yield ();
38774   ;
38775   return 0;
38776 }
38777 _ACEOF
38778 rm -f conftest.$ac_objext conftest$ac_exeext
38779 if { (ac_try="$ac_link"
38780 case "(($ac_try" in
38781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38782   *) ac_try_echo=$ac_try;;
38783 esac
38784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38785   (eval "$ac_link") 2>conftest.er1
38786   ac_status=$?
38787   grep -v '^ *+' conftest.er1 >conftest.err
38788   rm -f conftest.er1
38789   cat conftest.err >&5
38790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791   (exit $ac_status); } && {
38792          test -z "$ac_c_werror_flag" ||
38793          test ! -s conftest.err
38794        } && test -s conftest$ac_exeext &&
38795        $as_test_x conftest$ac_exeext; then
38796   ac_cv_func_sched_yield=yes
38797 else
38798   echo "$as_me: failed program was:" >&5
38799 sed 's/^/| /' conftest.$ac_ext >&5
38800
38801         ac_cv_func_sched_yield=no
38802 fi
38803
38804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38805       conftest$ac_exeext conftest.$ac_ext
38806 fi
38807 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38808 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
38809 if test $ac_cv_func_sched_yield = yes; then
38810   cat >>confdefs.h <<\_ACEOF
38811 #define HAVE_SCHED_YIELD 1
38812 _ACEOF
38813
38814 else
38815
38816                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38817 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
38818 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38819   echo $ECHO_N "(cached) $ECHO_C" >&6
38820 else
38821   ac_check_lib_save_LIBS=$LIBS
38822 LIBS="-lposix4  $LIBS"
38823 cat >conftest.$ac_ext <<_ACEOF
38824 /* confdefs.h.  */
38825 _ACEOF
38826 cat confdefs.h >>conftest.$ac_ext
38827 cat >>conftest.$ac_ext <<_ACEOF
38828 /* end confdefs.h.  */
38829
38830 /* Override any GCC internal prototype to avoid an error.
38831    Use char because int might match the return type of a GCC
38832    builtin and then its argument prototype would still apply.  */
38833 #ifdef __cplusplus
38834 extern "C"
38835 #endif
38836 char sched_yield ();
38837 int
38838 main ()
38839 {
38840 return sched_yield ();
38841   ;
38842   return 0;
38843 }
38844 _ACEOF
38845 rm -f conftest.$ac_objext conftest$ac_exeext
38846 if { (ac_try="$ac_link"
38847 case "(($ac_try" in
38848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38849   *) ac_try_echo=$ac_try;;
38850 esac
38851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38852   (eval "$ac_link") 2>conftest.er1
38853   ac_status=$?
38854   grep -v '^ *+' conftest.er1 >conftest.err
38855   rm -f conftest.er1
38856   cat conftest.err >&5
38857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858   (exit $ac_status); } && {
38859          test -z "$ac_c_werror_flag" ||
38860          test ! -s conftest.err
38861        } && test -s conftest$ac_exeext &&
38862        $as_test_x conftest$ac_exeext; then
38863   ac_cv_lib_posix4_sched_yield=yes
38864 else
38865   echo "$as_me: failed program was:" >&5
38866 sed 's/^/| /' conftest.$ac_ext >&5
38867
38868         ac_cv_lib_posix4_sched_yield=no
38869 fi
38870
38871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38872       conftest$ac_exeext conftest.$ac_ext
38873 LIBS=$ac_check_lib_save_LIBS
38874 fi
38875 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38876 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
38877 if test $ac_cv_lib_posix4_sched_yield = yes; then
38878   cat >>confdefs.h <<\_ACEOF
38879 #define HAVE_SCHED_YIELD 1
38880 _ACEOF
38881  POSIX4_LINK=" -lposix4"
38882 else
38883   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38884 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38885
38886 fi
38887
38888
38889
38890 fi
38891
38892       fi
38893
38894                                           HAVE_PRIOR_FUNCS=0
38895       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38896 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
38897 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38898   echo $ECHO_N "(cached) $ECHO_C" >&6
38899 else
38900   cat >conftest.$ac_ext <<_ACEOF
38901 /* confdefs.h.  */
38902 _ACEOF
38903 cat confdefs.h >>conftest.$ac_ext
38904 cat >>conftest.$ac_ext <<_ACEOF
38905 /* end confdefs.h.  */
38906 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38908 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38909
38910 /* System header to define __stub macros and hopefully few prototypes,
38911     which can conflict with char pthread_attr_getschedpolicy (); below.
38912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38913     <limits.h> exists even on freestanding compilers.  */
38914
38915 #ifdef __STDC__
38916 # include <limits.h>
38917 #else
38918 # include <assert.h>
38919 #endif
38920
38921 #undef pthread_attr_getschedpolicy
38922
38923 /* Override any GCC internal prototype to avoid an error.
38924    Use char because int might match the return type of a GCC
38925    builtin and then its argument prototype would still apply.  */
38926 #ifdef __cplusplus
38927 extern "C"
38928 #endif
38929 char pthread_attr_getschedpolicy ();
38930 /* The GNU C library defines this for functions which it implements
38931     to always fail with ENOSYS.  Some functions are actually named
38932     something starting with __ and the normal name is an alias.  */
38933 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
38934 choke me
38935 #endif
38936
38937 int
38938 main ()
38939 {
38940 return pthread_attr_getschedpolicy ();
38941   ;
38942   return 0;
38943 }
38944 _ACEOF
38945 rm -f conftest.$ac_objext conftest$ac_exeext
38946 if { (ac_try="$ac_link"
38947 case "(($ac_try" in
38948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38949   *) ac_try_echo=$ac_try;;
38950 esac
38951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38952   (eval "$ac_link") 2>conftest.er1
38953   ac_status=$?
38954   grep -v '^ *+' conftest.er1 >conftest.err
38955   rm -f conftest.er1
38956   cat conftest.err >&5
38957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38958   (exit $ac_status); } && {
38959          test -z "$ac_c_werror_flag" ||
38960          test ! -s conftest.err
38961        } && test -s conftest$ac_exeext &&
38962        $as_test_x conftest$ac_exeext; then
38963   ac_cv_func_pthread_attr_getschedpolicy=yes
38964 else
38965   echo "$as_me: failed program was:" >&5
38966 sed 's/^/| /' conftest.$ac_ext >&5
38967
38968         ac_cv_func_pthread_attr_getschedpolicy=no
38969 fi
38970
38971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38972       conftest$ac_exeext conftest.$ac_ext
38973 fi
38974 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38975 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
38976 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38977   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38978 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
38979 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38980   echo $ECHO_N "(cached) $ECHO_C" >&6
38981 else
38982   cat >conftest.$ac_ext <<_ACEOF
38983 /* confdefs.h.  */
38984 _ACEOF
38985 cat confdefs.h >>conftest.$ac_ext
38986 cat >>conftest.$ac_ext <<_ACEOF
38987 /* end confdefs.h.  */
38988 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38990 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38991
38992 /* System header to define __stub macros and hopefully few prototypes,
38993     which can conflict with char pthread_attr_setschedparam (); below.
38994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38995     <limits.h> exists even on freestanding compilers.  */
38996
38997 #ifdef __STDC__
38998 # include <limits.h>
38999 #else
39000 # include <assert.h>
39001 #endif
39002
39003 #undef pthread_attr_setschedparam
39004
39005 /* Override any GCC internal prototype to avoid an error.
39006    Use char because int might match the return type of a GCC
39007    builtin and then its argument prototype would still apply.  */
39008 #ifdef __cplusplus
39009 extern "C"
39010 #endif
39011 char pthread_attr_setschedparam ();
39012 /* The GNU C library defines this for functions which it implements
39013     to always fail with ENOSYS.  Some functions are actually named
39014     something starting with __ and the normal name is an alias.  */
39015 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39016 choke me
39017 #endif
39018
39019 int
39020 main ()
39021 {
39022 return pthread_attr_setschedparam ();
39023   ;
39024   return 0;
39025 }
39026 _ACEOF
39027 rm -f conftest.$ac_objext conftest$ac_exeext
39028 if { (ac_try="$ac_link"
39029 case "(($ac_try" in
39030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39031   *) ac_try_echo=$ac_try;;
39032 esac
39033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39034   (eval "$ac_link") 2>conftest.er1
39035   ac_status=$?
39036   grep -v '^ *+' conftest.er1 >conftest.err
39037   rm -f conftest.er1
39038   cat conftest.err >&5
39039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040   (exit $ac_status); } && {
39041          test -z "$ac_c_werror_flag" ||
39042          test ! -s conftest.err
39043        } && test -s conftest$ac_exeext &&
39044        $as_test_x conftest$ac_exeext; then
39045   ac_cv_func_pthread_attr_setschedparam=yes
39046 else
39047   echo "$as_me: failed program was:" >&5
39048 sed 's/^/| /' conftest.$ac_ext >&5
39049
39050         ac_cv_func_pthread_attr_setschedparam=no
39051 fi
39052
39053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39054       conftest$ac_exeext conftest.$ac_ext
39055 fi
39056 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39057 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39058 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39059   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39060 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39061 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39062   echo $ECHO_N "(cached) $ECHO_C" >&6
39063 else
39064   cat >conftest.$ac_ext <<_ACEOF
39065 /* confdefs.h.  */
39066 _ACEOF
39067 cat confdefs.h >>conftest.$ac_ext
39068 cat >>conftest.$ac_ext <<_ACEOF
39069 /* end confdefs.h.  */
39070 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39072 #define sched_get_priority_max innocuous_sched_get_priority_max
39073
39074 /* System header to define __stub macros and hopefully few prototypes,
39075     which can conflict with char sched_get_priority_max (); below.
39076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39077     <limits.h> exists even on freestanding compilers.  */
39078
39079 #ifdef __STDC__
39080 # include <limits.h>
39081 #else
39082 # include <assert.h>
39083 #endif
39084
39085 #undef sched_get_priority_max
39086
39087 /* Override any GCC internal prototype to avoid an error.
39088    Use char because int might match the return type of a GCC
39089    builtin and then its argument prototype would still apply.  */
39090 #ifdef __cplusplus
39091 extern "C"
39092 #endif
39093 char sched_get_priority_max ();
39094 /* The GNU C library defines this for functions which it implements
39095     to always fail with ENOSYS.  Some functions are actually named
39096     something starting with __ and the normal name is an alias.  */
39097 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39098 choke me
39099 #endif
39100
39101 int
39102 main ()
39103 {
39104 return sched_get_priority_max ();
39105   ;
39106   return 0;
39107 }
39108 _ACEOF
39109 rm -f conftest.$ac_objext conftest$ac_exeext
39110 if { (ac_try="$ac_link"
39111 case "(($ac_try" in
39112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39113   *) ac_try_echo=$ac_try;;
39114 esac
39115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39116   (eval "$ac_link") 2>conftest.er1
39117   ac_status=$?
39118   grep -v '^ *+' conftest.er1 >conftest.err
39119   rm -f conftest.er1
39120   cat conftest.err >&5
39121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122   (exit $ac_status); } && {
39123          test -z "$ac_c_werror_flag" ||
39124          test ! -s conftest.err
39125        } && test -s conftest$ac_exeext &&
39126        $as_test_x conftest$ac_exeext; then
39127   ac_cv_func_sched_get_priority_max=yes
39128 else
39129   echo "$as_me: failed program was:" >&5
39130 sed 's/^/| /' conftest.$ac_ext >&5
39131
39132         ac_cv_func_sched_get_priority_max=no
39133 fi
39134
39135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39136       conftest$ac_exeext conftest.$ac_ext
39137 fi
39138 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39139 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39140 if test $ac_cv_func_sched_get_priority_max = yes; then
39141   HAVE_PRIOR_FUNCS=1
39142 else
39143   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39144 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39145 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39146   echo $ECHO_N "(cached) $ECHO_C" >&6
39147 else
39148   ac_check_lib_save_LIBS=$LIBS
39149 LIBS="-lposix4  $LIBS"
39150 cat >conftest.$ac_ext <<_ACEOF
39151 /* confdefs.h.  */
39152 _ACEOF
39153 cat confdefs.h >>conftest.$ac_ext
39154 cat >>conftest.$ac_ext <<_ACEOF
39155 /* end confdefs.h.  */
39156
39157 /* Override any GCC internal prototype to avoid an error.
39158    Use char because int might match the return type of a GCC
39159    builtin and then its argument prototype would still apply.  */
39160 #ifdef __cplusplus
39161 extern "C"
39162 #endif
39163 char sched_get_priority_max ();
39164 int
39165 main ()
39166 {
39167 return sched_get_priority_max ();
39168   ;
39169   return 0;
39170 }
39171 _ACEOF
39172 rm -f conftest.$ac_objext conftest$ac_exeext
39173 if { (ac_try="$ac_link"
39174 case "(($ac_try" in
39175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39176   *) ac_try_echo=$ac_try;;
39177 esac
39178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39179   (eval "$ac_link") 2>conftest.er1
39180   ac_status=$?
39181   grep -v '^ *+' conftest.er1 >conftest.err
39182   rm -f conftest.er1
39183   cat conftest.err >&5
39184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185   (exit $ac_status); } && {
39186          test -z "$ac_c_werror_flag" ||
39187          test ! -s conftest.err
39188        } && test -s conftest$ac_exeext &&
39189        $as_test_x conftest$ac_exeext; then
39190   ac_cv_lib_posix4_sched_get_priority_max=yes
39191 else
39192   echo "$as_me: failed program was:" >&5
39193 sed 's/^/| /' conftest.$ac_ext >&5
39194
39195         ac_cv_lib_posix4_sched_get_priority_max=no
39196 fi
39197
39198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39199       conftest$ac_exeext conftest.$ac_ext
39200 LIBS=$ac_check_lib_save_LIBS
39201 fi
39202 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39203 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39204 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39205
39206                                 HAVE_PRIOR_FUNCS=1
39207                                 POSIX4_LINK=" -lposix4"
39208
39209 fi
39210
39211
39212 fi
39213
39214
39215 fi
39216
39217
39218 fi
39219
39220
39221       if test "$HAVE_PRIOR_FUNCS" = 1; then
39222         cat >>confdefs.h <<\_ACEOF
39223 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39224 _ACEOF
39225
39226       else
39227         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39228 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39229       fi
39230
39231       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39232 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39233 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39234   echo $ECHO_N "(cached) $ECHO_C" >&6
39235 else
39236   cat >conftest.$ac_ext <<_ACEOF
39237 /* confdefs.h.  */
39238 _ACEOF
39239 cat confdefs.h >>conftest.$ac_ext
39240 cat >>conftest.$ac_ext <<_ACEOF
39241 /* end confdefs.h.  */
39242 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39244 #define pthread_cancel innocuous_pthread_cancel
39245
39246 /* System header to define __stub macros and hopefully few prototypes,
39247     which can conflict with char pthread_cancel (); below.
39248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39249     <limits.h> exists even on freestanding compilers.  */
39250
39251 #ifdef __STDC__
39252 # include <limits.h>
39253 #else
39254 # include <assert.h>
39255 #endif
39256
39257 #undef pthread_cancel
39258
39259 /* Override any GCC internal prototype to avoid an error.
39260    Use char because int might match the return type of a GCC
39261    builtin and then its argument prototype would still apply.  */
39262 #ifdef __cplusplus
39263 extern "C"
39264 #endif
39265 char pthread_cancel ();
39266 /* The GNU C library defines this for functions which it implements
39267     to always fail with ENOSYS.  Some functions are actually named
39268     something starting with __ and the normal name is an alias.  */
39269 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39270 choke me
39271 #endif
39272
39273 int
39274 main ()
39275 {
39276 return pthread_cancel ();
39277   ;
39278   return 0;
39279 }
39280 _ACEOF
39281 rm -f conftest.$ac_objext conftest$ac_exeext
39282 if { (ac_try="$ac_link"
39283 case "(($ac_try" in
39284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39285   *) ac_try_echo=$ac_try;;
39286 esac
39287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39288   (eval "$ac_link") 2>conftest.er1
39289   ac_status=$?
39290   grep -v '^ *+' conftest.er1 >conftest.err
39291   rm -f conftest.er1
39292   cat conftest.err >&5
39293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294   (exit $ac_status); } && {
39295          test -z "$ac_c_werror_flag" ||
39296          test ! -s conftest.err
39297        } && test -s conftest$ac_exeext &&
39298        $as_test_x conftest$ac_exeext; then
39299   ac_cv_func_pthread_cancel=yes
39300 else
39301   echo "$as_me: failed program was:" >&5
39302 sed 's/^/| /' conftest.$ac_ext >&5
39303
39304         ac_cv_func_pthread_cancel=no
39305 fi
39306
39307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39308       conftest$ac_exeext conftest.$ac_ext
39309 fi
39310 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39311 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39312 if test $ac_cv_func_pthread_cancel = yes; then
39313   cat >>confdefs.h <<\_ACEOF
39314 #define HAVE_PTHREAD_CANCEL 1
39315 _ACEOF
39316
39317 else
39318   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39319 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39320 fi
39321
39322
39323       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39324 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39325 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39326   echo $ECHO_N "(cached) $ECHO_C" >&6
39327 else
39328   cat >conftest.$ac_ext <<_ACEOF
39329 /* confdefs.h.  */
39330 _ACEOF
39331 cat confdefs.h >>conftest.$ac_ext
39332 cat >>conftest.$ac_ext <<_ACEOF
39333 /* end confdefs.h.  */
39334 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39336 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39337
39338 /* System header to define __stub macros and hopefully few prototypes,
39339     which can conflict with char pthread_mutex_timedlock (); below.
39340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39341     <limits.h> exists even on freestanding compilers.  */
39342
39343 #ifdef __STDC__
39344 # include <limits.h>
39345 #else
39346 # include <assert.h>
39347 #endif
39348
39349 #undef pthread_mutex_timedlock
39350
39351 /* Override any GCC internal prototype to avoid an error.
39352    Use char because int might match the return type of a GCC
39353    builtin and then its argument prototype would still apply.  */
39354 #ifdef __cplusplus
39355 extern "C"
39356 #endif
39357 char pthread_mutex_timedlock ();
39358 /* The GNU C library defines this for functions which it implements
39359     to always fail with ENOSYS.  Some functions are actually named
39360     something starting with __ and the normal name is an alias.  */
39361 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39362 choke me
39363 #endif
39364
39365 int
39366 main ()
39367 {
39368 return pthread_mutex_timedlock ();
39369   ;
39370   return 0;
39371 }
39372 _ACEOF
39373 rm -f conftest.$ac_objext conftest$ac_exeext
39374 if { (ac_try="$ac_link"
39375 case "(($ac_try" in
39376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39377   *) ac_try_echo=$ac_try;;
39378 esac
39379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39380   (eval "$ac_link") 2>conftest.er1
39381   ac_status=$?
39382   grep -v '^ *+' conftest.er1 >conftest.err
39383   rm -f conftest.er1
39384   cat conftest.err >&5
39385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39386   (exit $ac_status); } && {
39387          test -z "$ac_c_werror_flag" ||
39388          test ! -s conftest.err
39389        } && test -s conftest$ac_exeext &&
39390        $as_test_x conftest$ac_exeext; then
39391   ac_cv_func_pthread_mutex_timedlock=yes
39392 else
39393   echo "$as_me: failed program was:" >&5
39394 sed 's/^/| /' conftest.$ac_ext >&5
39395
39396         ac_cv_func_pthread_mutex_timedlock=no
39397 fi
39398
39399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39400       conftest$ac_exeext conftest.$ac_ext
39401 fi
39402 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39403 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39404 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39405   cat >>confdefs.h <<\_ACEOF
39406 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39407 _ACEOF
39408
39409 else
39410   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39411 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39412 fi
39413
39414
39415       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39416 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39417 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39418   echo $ECHO_N "(cached) $ECHO_C" >&6
39419 else
39420   cat >conftest.$ac_ext <<_ACEOF
39421 /* confdefs.h.  */
39422 _ACEOF
39423 cat confdefs.h >>conftest.$ac_ext
39424 cat >>conftest.$ac_ext <<_ACEOF
39425 /* end confdefs.h.  */
39426 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39428 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39429
39430 /* System header to define __stub macros and hopefully few prototypes,
39431     which can conflict with char pthread_attr_setstacksize (); below.
39432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39433     <limits.h> exists even on freestanding compilers.  */
39434
39435 #ifdef __STDC__
39436 # include <limits.h>
39437 #else
39438 # include <assert.h>
39439 #endif
39440
39441 #undef pthread_attr_setstacksize
39442
39443 /* Override any GCC internal prototype to avoid an error.
39444    Use char because int might match the return type of a GCC
39445    builtin and then its argument prototype would still apply.  */
39446 #ifdef __cplusplus
39447 extern "C"
39448 #endif
39449 char pthread_attr_setstacksize ();
39450 /* The GNU C library defines this for functions which it implements
39451     to always fail with ENOSYS.  Some functions are actually named
39452     something starting with __ and the normal name is an alias.  */
39453 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
39454 choke me
39455 #endif
39456
39457 int
39458 main ()
39459 {
39460 return pthread_attr_setstacksize ();
39461   ;
39462   return 0;
39463 }
39464 _ACEOF
39465 rm -f conftest.$ac_objext conftest$ac_exeext
39466 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
39473   ac_status=$?
39474   grep -v '^ *+' conftest.er1 >conftest.err
39475   rm -f conftest.er1
39476   cat conftest.err >&5
39477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39478   (exit $ac_status); } && {
39479          test -z "$ac_c_werror_flag" ||
39480          test ! -s conftest.err
39481        } && test -s conftest$ac_exeext &&
39482        $as_test_x conftest$ac_exeext; then
39483   ac_cv_func_pthread_attr_setstacksize=yes
39484 else
39485   echo "$as_me: failed program was:" >&5
39486 sed 's/^/| /' conftest.$ac_ext >&5
39487
39488         ac_cv_func_pthread_attr_setstacksize=no
39489 fi
39490
39491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39492       conftest$ac_exeext conftest.$ac_ext
39493 fi
39494 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39495 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
39496 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39497   cat >>confdefs.h <<\_ACEOF
39498 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39499 _ACEOF
39500
39501 fi
39502
39503
39504
39505       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39506 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
39507 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39508   echo $ECHO_N "(cached) $ECHO_C" >&6
39509 else
39510
39511         cat >conftest.$ac_ext <<_ACEOF
39512 /* confdefs.h.  */
39513 _ACEOF
39514 cat confdefs.h >>conftest.$ac_ext
39515 cat >>conftest.$ac_ext <<_ACEOF
39516 /* end confdefs.h.  */
39517 #include <pthread.h>
39518 int
39519 main ()
39520 {
39521
39522                pthread_mutexattr_t attr;
39523                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39524
39525   ;
39526   return 0;
39527 }
39528 _ACEOF
39529 rm -f conftest.$ac_objext
39530 if { (ac_try="$ac_compile"
39531 case "(($ac_try" in
39532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39533   *) ac_try_echo=$ac_try;;
39534 esac
39535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39536   (eval "$ac_compile") 2>conftest.er1
39537   ac_status=$?
39538   grep -v '^ *+' conftest.er1 >conftest.err
39539   rm -f conftest.er1
39540   cat conftest.err >&5
39541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39542   (exit $ac_status); } && {
39543          test -z "$ac_c_werror_flag" ||
39544          test ! -s conftest.err
39545        } && test -s conftest.$ac_objext; then
39546   wx_cv_type_pthread_mutexattr_t=yes
39547 else
39548   echo "$as_me: failed program was:" >&5
39549 sed 's/^/| /' conftest.$ac_ext >&5
39550
39551         wx_cv_type_pthread_mutexattr_t=no
39552
39553 fi
39554
39555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39556
39557 fi
39558 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39559 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
39560
39561       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39562         cat >>confdefs.h <<\_ACEOF
39563 #define HAVE_PTHREAD_MUTEXATTR_T 1
39564 _ACEOF
39565
39566
39567                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39568 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
39569 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39570   echo $ECHO_N "(cached) $ECHO_C" >&6
39571 else
39572
39573                        cat >conftest.$ac_ext <<_ACEOF
39574 /* confdefs.h.  */
39575 _ACEOF
39576 cat confdefs.h >>conftest.$ac_ext
39577 cat >>conftest.$ac_ext <<_ACEOF
39578 /* end confdefs.h.  */
39579 #include <pthread.h>
39580 int
39581 main ()
39582 {
39583
39584                                pthread_mutexattr_t attr;
39585                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39586
39587   ;
39588   return 0;
39589 }
39590 _ACEOF
39591 rm -f conftest.$ac_objext
39592 if { (ac_try="$ac_compile"
39593 case "(($ac_try" in
39594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39595   *) ac_try_echo=$ac_try;;
39596 esac
39597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39598   (eval "$ac_compile") 2>conftest.er1
39599   ac_status=$?
39600   grep -v '^ *+' conftest.er1 >conftest.err
39601   rm -f conftest.er1
39602   cat conftest.err >&5
39603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604   (exit $ac_status); } && {
39605          test -z "$ac_c_werror_flag" ||
39606          test ! -s conftest.err
39607        } && test -s conftest.$ac_objext; then
39608   wx_cv_func_pthread_mutexattr_settype_decl=yes
39609 else
39610   echo "$as_me: failed program was:" >&5
39611 sed 's/^/| /' conftest.$ac_ext >&5
39612
39613         wx_cv_func_pthread_mutexattr_settype_decl=no
39614
39615 fi
39616
39617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39618
39619 fi
39620 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39621 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
39622         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39623             cat >>confdefs.h <<\_ACEOF
39624 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39625 _ACEOF
39626
39627         fi
39628       else
39629                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39630 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
39631 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39632   echo $ECHO_N "(cached) $ECHO_C" >&6
39633 else
39634
39635             cat >conftest.$ac_ext <<_ACEOF
39636 /* confdefs.h.  */
39637 _ACEOF
39638 cat confdefs.h >>conftest.$ac_ext
39639 cat >>conftest.$ac_ext <<_ACEOF
39640 /* end confdefs.h.  */
39641 #include <pthread.h>
39642 int
39643 main ()
39644 {
39645
39646                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39647
39648   ;
39649   return 0;
39650 }
39651 _ACEOF
39652 rm -f conftest.$ac_objext
39653 if { (ac_try="$ac_compile"
39654 case "(($ac_try" in
39655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39656   *) ac_try_echo=$ac_try;;
39657 esac
39658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39659   (eval "$ac_compile") 2>conftest.er1
39660   ac_status=$?
39661   grep -v '^ *+' conftest.er1 >conftest.err
39662   rm -f conftest.er1
39663   cat conftest.err >&5
39664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39665   (exit $ac_status); } && {
39666          test -z "$ac_c_werror_flag" ||
39667          test ! -s conftest.err
39668        } && test -s conftest.$ac_objext; then
39669
39670                     wx_cv_type_pthread_rec_mutex_init=yes
39671
39672 else
39673   echo "$as_me: failed program was:" >&5
39674 sed 's/^/| /' conftest.$ac_ext >&5
39675
39676
39677                     wx_cv_type_pthread_rec_mutex_init=no
39678
39679
39680 fi
39681
39682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39683
39684 fi
39685 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39686 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
39687         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39688           cat >>confdefs.h <<\_ACEOF
39689 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39690 _ACEOF
39691
39692         else
39693                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39694 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39695         fi
39696       fi
39697     fi
39698
39699 else
39700     if test "$wxUSE_THREADS" = "yes" ; then
39701       case "${host}" in
39702         *-*-mingw32* )
39703                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39704 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
39705 if test "${wx_cv_cflags_mthread+set}" = set; then
39706   echo $ECHO_N "(cached) $ECHO_C" >&6
39707 else
39708
39709                     CFLAGS_OLD="$CFLAGS"
39710                     CFLAGS="-mthreads $CFLAGS"
39711                     cat >conftest.$ac_ext <<_ACEOF
39712 /* confdefs.h.  */
39713 _ACEOF
39714 cat confdefs.h >>conftest.$ac_ext
39715 cat >>conftest.$ac_ext <<_ACEOF
39716 /* end confdefs.h.  */
39717
39718 int
39719 main ()
39720 {
39721
39722   ;
39723   return 0;
39724 }
39725 _ACEOF
39726 rm -f conftest.$ac_objext
39727 if { (ac_try="$ac_compile"
39728 case "(($ac_try" in
39729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39730   *) ac_try_echo=$ac_try;;
39731 esac
39732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39733   (eval "$ac_compile") 2>conftest.er1
39734   ac_status=$?
39735   grep -v '^ *+' conftest.er1 >conftest.err
39736   rm -f conftest.er1
39737   cat conftest.err >&5
39738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739   (exit $ac_status); } && {
39740          test -z "$ac_c_werror_flag" ||
39741          test ! -s conftest.err
39742        } && test -s conftest.$ac_objext; then
39743   wx_cv_cflags_mthread=yes
39744 else
39745   echo "$as_me: failed program was:" >&5
39746 sed 's/^/| /' conftest.$ac_ext >&5
39747
39748         wx_cv_cflags_mthread=no
39749
39750 fi
39751
39752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39753
39754
39755 fi
39756 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39757 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
39758
39759             if test "$wx_cv_cflags_mthread" = "yes"; then
39760                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
39761                 LDFLAGS="$LDFLAGS -mthreads"
39762             else
39763                                 CFLAGS="$CFLAGS_OLD"
39764             fi
39765         ;;
39766         *-pc-os2*emx )
39767             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39768             LDFLAGS="$LDFLAGS -Zmt"
39769         ;;
39770       esac
39771     fi
39772 fi
39773
39774 { echo "$as_me:$LINENO: checking for localtime_r" >&5
39775 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
39776 if test "${ac_cv_func_localtime_r+set}" = set; then
39777   echo $ECHO_N "(cached) $ECHO_C" >&6
39778 else
39779   cat >conftest.$ac_ext <<_ACEOF
39780 /* confdefs.h.  */
39781 _ACEOF
39782 cat confdefs.h >>conftest.$ac_ext
39783 cat >>conftest.$ac_ext <<_ACEOF
39784 /* end confdefs.h.  */
39785 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
39786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39787 #define localtime_r innocuous_localtime_r
39788
39789 /* System header to define __stub macros and hopefully few prototypes,
39790     which can conflict with char localtime_r (); below.
39791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39792     <limits.h> exists even on freestanding compilers.  */
39793
39794 #ifdef __STDC__
39795 # include <limits.h>
39796 #else
39797 # include <assert.h>
39798 #endif
39799
39800 #undef localtime_r
39801
39802 /* Override any GCC internal prototype to avoid an error.
39803    Use char because int might match the return type of a GCC
39804    builtin and then its argument prototype would still apply.  */
39805 #ifdef __cplusplus
39806 extern "C"
39807 #endif
39808 char localtime_r ();
39809 /* The GNU C library defines this for functions which it implements
39810     to always fail with ENOSYS.  Some functions are actually named
39811     something starting with __ and the normal name is an alias.  */
39812 #if defined __stub_localtime_r || defined __stub___localtime_r
39813 choke me
39814 #endif
39815
39816 int
39817 main ()
39818 {
39819 return localtime_r ();
39820   ;
39821   return 0;
39822 }
39823 _ACEOF
39824 rm -f conftest.$ac_objext conftest$ac_exeext
39825 if { (ac_try="$ac_link"
39826 case "(($ac_try" in
39827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39828   *) ac_try_echo=$ac_try;;
39829 esac
39830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39831   (eval "$ac_link") 2>conftest.er1
39832   ac_status=$?
39833   grep -v '^ *+' conftest.er1 >conftest.err
39834   rm -f conftest.er1
39835   cat conftest.err >&5
39836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837   (exit $ac_status); } && {
39838          test -z "$ac_c_werror_flag" ||
39839          test ! -s conftest.err
39840        } && test -s conftest$ac_exeext &&
39841        $as_test_x conftest$ac_exeext; then
39842   ac_cv_func_localtime_r=yes
39843 else
39844   echo "$as_me: failed program was:" >&5
39845 sed 's/^/| /' conftest.$ac_ext >&5
39846
39847         ac_cv_func_localtime_r=no
39848 fi
39849
39850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39851       conftest$ac_exeext conftest.$ac_ext
39852 fi
39853 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39854 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
39855 if test $ac_cv_func_localtime_r = yes; then
39856    cat >>confdefs.h <<\_ACEOF
39857 #define HAVE_LOCALTIME_R 1
39858 _ACEOF
39859
39860 fi
39861
39862 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
39863 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
39864 if test "${ac_cv_func_gmtime_r+set}" = set; then
39865   echo $ECHO_N "(cached) $ECHO_C" >&6
39866 else
39867   cat >conftest.$ac_ext <<_ACEOF
39868 /* confdefs.h.  */
39869 _ACEOF
39870 cat confdefs.h >>conftest.$ac_ext
39871 cat >>conftest.$ac_ext <<_ACEOF
39872 /* end confdefs.h.  */
39873 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39875 #define gmtime_r innocuous_gmtime_r
39876
39877 /* System header to define __stub macros and hopefully few prototypes,
39878     which can conflict with char gmtime_r (); below.
39879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39880     <limits.h> exists even on freestanding compilers.  */
39881
39882 #ifdef __STDC__
39883 # include <limits.h>
39884 #else
39885 # include <assert.h>
39886 #endif
39887
39888 #undef gmtime_r
39889
39890 /* Override any GCC internal prototype to avoid an error.
39891    Use char because int might match the return type of a GCC
39892    builtin and then its argument prototype would still apply.  */
39893 #ifdef __cplusplus
39894 extern "C"
39895 #endif
39896 char gmtime_r ();
39897 /* The GNU C library defines this for functions which it implements
39898     to always fail with ENOSYS.  Some functions are actually named
39899     something starting with __ and the normal name is an alias.  */
39900 #if defined __stub_gmtime_r || defined __stub___gmtime_r
39901 choke me
39902 #endif
39903
39904 int
39905 main ()
39906 {
39907 return gmtime_r ();
39908   ;
39909   return 0;
39910 }
39911 _ACEOF
39912 rm -f conftest.$ac_objext conftest$ac_exeext
39913 if { (ac_try="$ac_link"
39914 case "(($ac_try" in
39915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39916   *) ac_try_echo=$ac_try;;
39917 esac
39918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39919   (eval "$ac_link") 2>conftest.er1
39920   ac_status=$?
39921   grep -v '^ *+' conftest.er1 >conftest.err
39922   rm -f conftest.er1
39923   cat conftest.err >&5
39924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39925   (exit $ac_status); } && {
39926          test -z "$ac_c_werror_flag" ||
39927          test ! -s conftest.err
39928        } && test -s conftest$ac_exeext &&
39929        $as_test_x conftest$ac_exeext; then
39930   ac_cv_func_gmtime_r=yes
39931 else
39932   echo "$as_me: failed program was:" >&5
39933 sed 's/^/| /' conftest.$ac_ext >&5
39934
39935         ac_cv_func_gmtime_r=no
39936 fi
39937
39938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39939       conftest$ac_exeext conftest.$ac_ext
39940 fi
39941 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39942 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
39943 if test $ac_cv_func_gmtime_r = yes; then
39944    cat >>confdefs.h <<\_ACEOF
39945 #define HAVE_GMTIME_R 1
39946 _ACEOF
39947
39948 fi
39949
39950 { echo "$as_me:$LINENO: checking for readdir_r" >&5
39951 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
39952 if test "${ac_cv_func_readdir_r+set}" = set; then
39953   echo $ECHO_N "(cached) $ECHO_C" >&6
39954 else
39955   cat >conftest.$ac_ext <<_ACEOF
39956 /* confdefs.h.  */
39957 _ACEOF
39958 cat confdefs.h >>conftest.$ac_ext
39959 cat >>conftest.$ac_ext <<_ACEOF
39960 /* end confdefs.h.  */
39961 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39963 #define readdir_r innocuous_readdir_r
39964
39965 /* System header to define __stub macros and hopefully few prototypes,
39966     which can conflict with char readdir_r (); below.
39967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39968     <limits.h> exists even on freestanding compilers.  */
39969
39970 #ifdef __STDC__
39971 # include <limits.h>
39972 #else
39973 # include <assert.h>
39974 #endif
39975
39976 #undef readdir_r
39977
39978 /* Override any GCC internal prototype to avoid an error.
39979    Use char because int might match the return type of a GCC
39980    builtin and then its argument prototype would still apply.  */
39981 #ifdef __cplusplus
39982 extern "C"
39983 #endif
39984 char readdir_r ();
39985 /* The GNU C library defines this for functions which it implements
39986     to always fail with ENOSYS.  Some functions are actually named
39987     something starting with __ and the normal name is an alias.  */
39988 #if defined __stub_readdir_r || defined __stub___readdir_r
39989 choke me
39990 #endif
39991
39992 int
39993 main ()
39994 {
39995 return readdir_r ();
39996   ;
39997   return 0;
39998 }
39999 _ACEOF
40000 rm -f conftest.$ac_objext conftest$ac_exeext
40001 if { (ac_try="$ac_link"
40002 case "(($ac_try" in
40003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40004   *) ac_try_echo=$ac_try;;
40005 esac
40006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40007   (eval "$ac_link") 2>conftest.er1
40008   ac_status=$?
40009   grep -v '^ *+' conftest.er1 >conftest.err
40010   rm -f conftest.er1
40011   cat conftest.err >&5
40012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013   (exit $ac_status); } && {
40014          test -z "$ac_c_werror_flag" ||
40015          test ! -s conftest.err
40016        } && test -s conftest$ac_exeext &&
40017        $as_test_x conftest$ac_exeext; then
40018   ac_cv_func_readdir_r=yes
40019 else
40020   echo "$as_me: failed program was:" >&5
40021 sed 's/^/| /' conftest.$ac_ext >&5
40022
40023         ac_cv_func_readdir_r=no
40024 fi
40025
40026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40027       conftest$ac_exeext conftest.$ac_ext
40028 fi
40029 { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40030 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
40031 if test $ac_cv_func_readdir_r = yes; then
40032    cat >>confdefs.h <<\_ACEOF
40033 #define HAVE_READDIR_R 1
40034 _ACEOF
40035
40036 fi
40037
40038
40039
40040
40041     ac_ext=c
40042 ac_cpp='$CPP $CPPFLAGS'
40043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40046
40047     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40048 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40049
40050     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40051   echo $ECHO_N "(cached) $ECHO_C" >&6
40052 else
40053
40054
40055 ################################################################
40056
40057 ac_cv_func_which_gethostbyname_r=unknown
40058
40059 #
40060 # ONE ARGUMENT (sanity check)
40061 #
40062
40063 # This should fail, as there is no variant of gethostbyname_r() that takes
40064 # a single argument. If it actually compiles, then we can assume that
40065 # netdb.h is not declaring the function, and the compiler is thereby
40066 # assuming an implicit prototype. In which case, we're out of luck.
40067 #
40068 cat >conftest.$ac_ext <<_ACEOF
40069 /* confdefs.h.  */
40070 _ACEOF
40071 cat confdefs.h >>conftest.$ac_ext
40072 cat >>conftest.$ac_ext <<_ACEOF
40073 /* end confdefs.h.  */
40074 #include <netdb.h>
40075 int
40076 main ()
40077 {
40078
40079             char *name = "www.gnu.org";
40080             (void)gethostbyname_r(name) /* ; */
40081
40082   ;
40083   return 0;
40084 }
40085 _ACEOF
40086 rm -f conftest.$ac_objext
40087 if { (ac_try="$ac_compile"
40088 case "(($ac_try" in
40089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40090   *) ac_try_echo=$ac_try;;
40091 esac
40092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40093   (eval "$ac_compile") 2>conftest.er1
40094   ac_status=$?
40095   grep -v '^ *+' conftest.er1 >conftest.err
40096   rm -f conftest.er1
40097   cat conftest.err >&5
40098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099   (exit $ac_status); } && {
40100          test -z "$ac_c_werror_flag" ||
40101          test ! -s conftest.err
40102        } && test -s conftest.$ac_objext; then
40103   ac_cv_func_which_gethostbyname_r=no
40104 else
40105   echo "$as_me: failed program was:" >&5
40106 sed 's/^/| /' conftest.$ac_ext >&5
40107
40108
40109 fi
40110
40111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40112
40113 #
40114 # SIX ARGUMENTS
40115 # (e.g. Linux)
40116 #
40117
40118 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40119
40120 cat >conftest.$ac_ext <<_ACEOF
40121 /* confdefs.h.  */
40122 _ACEOF
40123 cat confdefs.h >>conftest.$ac_ext
40124 cat >>conftest.$ac_ext <<_ACEOF
40125 /* end confdefs.h.  */
40126 #include <netdb.h>
40127 int
40128 main ()
40129 {
40130
40131             char *name = "www.gnu.org";
40132             struct hostent ret, *retp;
40133             char buf[1024];
40134             int buflen = 1024;
40135             int my_h_errno;
40136             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40137
40138   ;
40139   return 0;
40140 }
40141 _ACEOF
40142 rm -f conftest.$ac_objext
40143 if { (ac_try="$ac_compile"
40144 case "(($ac_try" in
40145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40146   *) ac_try_echo=$ac_try;;
40147 esac
40148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40149   (eval "$ac_compile") 2>conftest.er1
40150   ac_status=$?
40151   grep -v '^ *+' conftest.er1 >conftest.err
40152   rm -f conftest.er1
40153   cat conftest.err >&5
40154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40155   (exit $ac_status); } && {
40156          test -z "$ac_c_werror_flag" ||
40157          test ! -s conftest.err
40158        } && test -s conftest.$ac_objext; then
40159   ac_cv_func_which_gethostbyname_r=six
40160 else
40161   echo "$as_me: failed program was:" >&5
40162 sed 's/^/| /' conftest.$ac_ext >&5
40163
40164
40165 fi
40166
40167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40168
40169 fi
40170
40171 #
40172 # FIVE ARGUMENTS
40173 # (e.g. Solaris)
40174 #
40175
40176 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40177
40178 cat >conftest.$ac_ext <<_ACEOF
40179 /* confdefs.h.  */
40180 _ACEOF
40181 cat confdefs.h >>conftest.$ac_ext
40182 cat >>conftest.$ac_ext <<_ACEOF
40183 /* end confdefs.h.  */
40184 #include <netdb.h>
40185 int
40186 main ()
40187 {
40188
40189             char *name = "www.gnu.org";
40190             struct hostent ret;
40191             char buf[1024];
40192             int buflen = 1024;
40193             int my_h_errno;
40194             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40195
40196   ;
40197   return 0;
40198 }
40199 _ACEOF
40200 rm -f conftest.$ac_objext
40201 if { (ac_try="$ac_compile"
40202 case "(($ac_try" in
40203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40204   *) ac_try_echo=$ac_try;;
40205 esac
40206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40207   (eval "$ac_compile") 2>conftest.er1
40208   ac_status=$?
40209   grep -v '^ *+' conftest.er1 >conftest.err
40210   rm -f conftest.er1
40211   cat conftest.err >&5
40212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213   (exit $ac_status); } && {
40214          test -z "$ac_c_werror_flag" ||
40215          test ! -s conftest.err
40216        } && test -s conftest.$ac_objext; then
40217   ac_cv_func_which_gethostbyname_r=five
40218 else
40219   echo "$as_me: failed program was:" >&5
40220 sed 's/^/| /' conftest.$ac_ext >&5
40221
40222
40223 fi
40224
40225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40226
40227 fi
40228
40229 #
40230 # THREE ARGUMENTS
40231 # (e.g. AIX, HP-UX, Tru64)
40232 #
40233
40234 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40235
40236 cat >conftest.$ac_ext <<_ACEOF
40237 /* confdefs.h.  */
40238 _ACEOF
40239 cat confdefs.h >>conftest.$ac_ext
40240 cat >>conftest.$ac_ext <<_ACEOF
40241 /* end confdefs.h.  */
40242 #include <netdb.h>
40243 int
40244 main ()
40245 {
40246
40247             char *name = "www.gnu.org";
40248             struct hostent ret;
40249             struct hostent_data data;
40250             (void)gethostbyname_r(name, &ret, &data) /* ; */
40251
40252   ;
40253   return 0;
40254 }
40255 _ACEOF
40256 rm -f conftest.$ac_objext
40257 if { (ac_try="$ac_compile"
40258 case "(($ac_try" in
40259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40260   *) ac_try_echo=$ac_try;;
40261 esac
40262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40263   (eval "$ac_compile") 2>conftest.er1
40264   ac_status=$?
40265   grep -v '^ *+' conftest.er1 >conftest.err
40266   rm -f conftest.er1
40267   cat conftest.err >&5
40268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40269   (exit $ac_status); } && {
40270          test -z "$ac_c_werror_flag" ||
40271          test ! -s conftest.err
40272        } && test -s conftest.$ac_objext; then
40273   ac_cv_func_which_gethostbyname_r=three
40274 else
40275   echo "$as_me: failed program was:" >&5
40276 sed 's/^/| /' conftest.$ac_ext >&5
40277
40278
40279 fi
40280
40281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40282
40283 fi
40284
40285 ################################################################
40286
40287
40288 fi
40289
40290 case "$ac_cv_func_which_gethostbyname_r" in
40291     three)
40292     { echo "$as_me:$LINENO: result: three" >&5
40293 echo "${ECHO_T}three" >&6; }
40294     cat >>confdefs.h <<\_ACEOF
40295 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40296 _ACEOF
40297
40298     ;;
40299
40300     five)
40301     { echo "$as_me:$LINENO: result: five" >&5
40302 echo "${ECHO_T}five" >&6; }
40303     cat >>confdefs.h <<\_ACEOF
40304 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40305 _ACEOF
40306
40307     ;;
40308
40309     six)
40310     { echo "$as_me:$LINENO: result: six" >&5
40311 echo "${ECHO_T}six" >&6; }
40312     cat >>confdefs.h <<\_ACEOF
40313 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40314 _ACEOF
40315
40316     ;;
40317
40318     no)
40319     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40320 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40321     ;;
40322
40323     unknown)
40324     { echo "$as_me:$LINENO: result: can't tell" >&5
40325 echo "${ECHO_T}can't tell" >&6; }
40326     ;;
40327
40328     *)
40329     { { echo "$as_me:$LINENO: error: internal error" >&5
40330 echo "$as_me: error: internal error" >&2;}
40331    { (exit 1); exit 1; }; }
40332     ;;
40333 esac
40334
40335 ac_ext=c
40336 ac_cpp='$CPP $CPPFLAGS'
40337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40340
40341
40342
40343       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40344               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40345           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40346 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40347 if test "${ac_cv_func_gethostbyname+set}" = set; then
40348   echo $ECHO_N "(cached) $ECHO_C" >&6
40349 else
40350   cat >conftest.$ac_ext <<_ACEOF
40351 /* confdefs.h.  */
40352 _ACEOF
40353 cat confdefs.h >>conftest.$ac_ext
40354 cat >>conftest.$ac_ext <<_ACEOF
40355 /* end confdefs.h.  */
40356 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40358 #define gethostbyname innocuous_gethostbyname
40359
40360 /* System header to define __stub macros and hopefully few prototypes,
40361     which can conflict with char gethostbyname (); below.
40362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40363     <limits.h> exists even on freestanding compilers.  */
40364
40365 #ifdef __STDC__
40366 # include <limits.h>
40367 #else
40368 # include <assert.h>
40369 #endif
40370
40371 #undef gethostbyname
40372
40373 /* Override any GCC internal prototype to avoid an error.
40374    Use char because int might match the return type of a GCC
40375    builtin and then its argument prototype would still apply.  */
40376 #ifdef __cplusplus
40377 extern "C"
40378 #endif
40379 char gethostbyname ();
40380 /* The GNU C library defines this for functions which it implements
40381     to always fail with ENOSYS.  Some functions are actually named
40382     something starting with __ and the normal name is an alias.  */
40383 #if defined __stub_gethostbyname || defined __stub___gethostbyname
40384 choke me
40385 #endif
40386
40387 int
40388 main ()
40389 {
40390 return gethostbyname ();
40391   ;
40392   return 0;
40393 }
40394 _ACEOF
40395 rm -f conftest.$ac_objext conftest$ac_exeext
40396 if { (ac_try="$ac_link"
40397 case "(($ac_try" in
40398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40399   *) ac_try_echo=$ac_try;;
40400 esac
40401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40402   (eval "$ac_link") 2>conftest.er1
40403   ac_status=$?
40404   grep -v '^ *+' conftest.er1 >conftest.err
40405   rm -f conftest.er1
40406   cat conftest.err >&5
40407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408   (exit $ac_status); } && {
40409          test -z "$ac_c_werror_flag" ||
40410          test ! -s conftest.err
40411        } && test -s conftest$ac_exeext &&
40412        $as_test_x conftest$ac_exeext; then
40413   ac_cv_func_gethostbyname=yes
40414 else
40415   echo "$as_me: failed program was:" >&5
40416 sed 's/^/| /' conftest.$ac_ext >&5
40417
40418         ac_cv_func_gethostbyname=no
40419 fi
40420
40421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40422       conftest$ac_exeext conftest.$ac_ext
40423 fi
40424 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40425 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
40426 if test $ac_cv_func_gethostbyname = yes; then
40427    cat >>confdefs.h <<\_ACEOF
40428 #define HAVE_GETHOSTBYNAME 1
40429 _ACEOF
40430
40431 fi
40432
40433       fi
40434
40435 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40436 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
40437 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40438   echo $ECHO_N "(cached) $ECHO_C" >&6
40439 else
40440
40441                 ac_ext=cpp
40442 ac_cpp='$CXXCPP $CPPFLAGS'
40443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40446
40447
40448         cat >conftest.$ac_ext <<_ACEOF
40449 /* confdefs.h.  */
40450 _ACEOF
40451 cat confdefs.h >>conftest.$ac_ext
40452 cat >>conftest.$ac_ext <<_ACEOF
40453 /* end confdefs.h.  */
40454 #include <netdb.h>
40455 int
40456 main ()
40457 {
40458
40459                 char *name;
40460                 char *proto;
40461                 struct servent *se, *res;
40462                 char buffer[2048];
40463                 int buflen = 2048;
40464                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40465
40466   ;
40467   return 0;
40468 }
40469 _ACEOF
40470 rm -f conftest.$ac_objext
40471 if { (ac_try="$ac_compile"
40472 case "(($ac_try" in
40473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40474   *) ac_try_echo=$ac_try;;
40475 esac
40476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40477   (eval "$ac_compile") 2>conftest.er1
40478   ac_status=$?
40479   grep -v '^ *+' conftest.er1 >conftest.err
40480   rm -f conftest.er1
40481   cat conftest.err >&5
40482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40483   (exit $ac_status); } && {
40484          test -z "$ac_cxx_werror_flag" ||
40485          test ! -s conftest.err
40486        } && test -s conftest.$ac_objext; then
40487   ac_cv_func_which_getservbyname_r=six
40488 else
40489   echo "$as_me: failed program was:" >&5
40490 sed 's/^/| /' conftest.$ac_ext >&5
40491
40492
40493                 cat >conftest.$ac_ext <<_ACEOF
40494 /* confdefs.h.  */
40495 _ACEOF
40496 cat confdefs.h >>conftest.$ac_ext
40497 cat >>conftest.$ac_ext <<_ACEOF
40498 /* end confdefs.h.  */
40499 #include <netdb.h>
40500 int
40501 main ()
40502 {
40503
40504                         char *name;
40505                         char *proto;
40506                         struct servent *se;
40507                         char buffer[2048];
40508                         int buflen = 2048;
40509                         (void) getservbyname_r(name, proto, se, buffer, buflen)
40510
40511   ;
40512   return 0;
40513 }
40514 _ACEOF
40515 rm -f conftest.$ac_objext
40516 if { (ac_try="$ac_compile"
40517 case "(($ac_try" in
40518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40519   *) ac_try_echo=$ac_try;;
40520 esac
40521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40522   (eval "$ac_compile") 2>conftest.er1
40523   ac_status=$?
40524   grep -v '^ *+' conftest.er1 >conftest.err
40525   rm -f conftest.er1
40526   cat conftest.err >&5
40527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528   (exit $ac_status); } && {
40529          test -z "$ac_cxx_werror_flag" ||
40530          test ! -s conftest.err
40531        } && test -s conftest.$ac_objext; then
40532   ac_cv_func_which_getservbyname_r=five
40533 else
40534   echo "$as_me: failed program was:" >&5
40535 sed 's/^/| /' conftest.$ac_ext >&5
40536
40537
40538                         cat >conftest.$ac_ext <<_ACEOF
40539 /* confdefs.h.  */
40540 _ACEOF
40541 cat confdefs.h >>conftest.$ac_ext
40542 cat >>conftest.$ac_ext <<_ACEOF
40543 /* end confdefs.h.  */
40544 #include <netdb.h>
40545 int
40546 main ()
40547 {
40548
40549                                 char *name;
40550                                 char *proto;
40551                                 struct servent *se;
40552                                 struct servent_data data;
40553                                 (void) getservbyname_r(name, proto, se, &data);
40554
40555   ;
40556   return 0;
40557 }
40558 _ACEOF
40559 rm -f conftest.$ac_objext
40560 if { (ac_try="$ac_compile"
40561 case "(($ac_try" in
40562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40563   *) ac_try_echo=$ac_try;;
40564 esac
40565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40566   (eval "$ac_compile") 2>conftest.er1
40567   ac_status=$?
40568   grep -v '^ *+' conftest.er1 >conftest.err
40569   rm -f conftest.er1
40570   cat conftest.err >&5
40571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40572   (exit $ac_status); } && {
40573          test -z "$ac_cxx_werror_flag" ||
40574          test ! -s conftest.err
40575        } && test -s conftest.$ac_objext; then
40576   ac_cv_func_which_getservbyname_r=four
40577 else
40578   echo "$as_me: failed program was:" >&5
40579 sed 's/^/| /' conftest.$ac_ext >&5
40580
40581         ac_cv_func_which_getservbyname_r=no
40582
40583 fi
40584
40585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40586
40587
40588 fi
40589
40590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40591
40592
40593 fi
40594
40595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40596         ac_ext=c
40597 ac_cpp='$CPP $CPPFLAGS'
40598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40601
40602
40603
40604 fi
40605 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40606 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
40607
40608 if test $ac_cv_func_which_getservbyname_r = six; then
40609   cat >>confdefs.h <<\_ACEOF
40610 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
40611 _ACEOF
40612
40613 elif test $ac_cv_func_which_getservbyname_r = five; then
40614   cat >>confdefs.h <<\_ACEOF
40615 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
40616 _ACEOF
40617
40618 elif test $ac_cv_func_which_getservbyname_r = four; then
40619   cat >>confdefs.h <<\_ACEOF
40620 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
40621 _ACEOF
40622
40623 fi
40624
40625
40626       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40627               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40628
40629 for ac_func in getservbyname
40630 do
40631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40635   echo $ECHO_N "(cached) $ECHO_C" >&6
40636 else
40637   cat >conftest.$ac_ext <<_ACEOF
40638 /* confdefs.h.  */
40639 _ACEOF
40640 cat confdefs.h >>conftest.$ac_ext
40641 cat >>conftest.$ac_ext <<_ACEOF
40642 /* end confdefs.h.  */
40643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40645 #define $ac_func innocuous_$ac_func
40646
40647 /* System header to define __stub macros and hopefully few prototypes,
40648     which can conflict with char $ac_func (); below.
40649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40650     <limits.h> exists even on freestanding compilers.  */
40651
40652 #ifdef __STDC__
40653 # include <limits.h>
40654 #else
40655 # include <assert.h>
40656 #endif
40657
40658 #undef $ac_func
40659
40660 /* Override any GCC internal prototype to avoid an error.
40661    Use char because int might match the return type of a GCC
40662    builtin and then its argument prototype would still apply.  */
40663 #ifdef __cplusplus
40664 extern "C"
40665 #endif
40666 char $ac_func ();
40667 /* The GNU C library defines this for functions which it implements
40668     to always fail with ENOSYS.  Some functions are actually named
40669     something starting with __ and the normal name is an alias.  */
40670 #if defined __stub_$ac_func || defined __stub___$ac_func
40671 choke me
40672 #endif
40673
40674 int
40675 main ()
40676 {
40677 return $ac_func ();
40678   ;
40679   return 0;
40680 }
40681 _ACEOF
40682 rm -f conftest.$ac_objext conftest$ac_exeext
40683 if { (ac_try="$ac_link"
40684 case "(($ac_try" in
40685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40686   *) ac_try_echo=$ac_try;;
40687 esac
40688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40689   (eval "$ac_link") 2>conftest.er1
40690   ac_status=$?
40691   grep -v '^ *+' conftest.er1 >conftest.err
40692   rm -f conftest.er1
40693   cat conftest.err >&5
40694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40695   (exit $ac_status); } && {
40696          test -z "$ac_c_werror_flag" ||
40697          test ! -s conftest.err
40698        } && test -s conftest$ac_exeext &&
40699        $as_test_x conftest$ac_exeext; then
40700   eval "$as_ac_var=yes"
40701 else
40702   echo "$as_me: failed program was:" >&5
40703 sed 's/^/| /' conftest.$ac_ext >&5
40704
40705         eval "$as_ac_var=no"
40706 fi
40707
40708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40709       conftest$ac_exeext conftest.$ac_ext
40710 fi
40711 ac_res=`eval echo '${'$as_ac_var'}'`
40712                { echo "$as_me:$LINENO: result: $ac_res" >&5
40713 echo "${ECHO_T}$ac_res" >&6; }
40714 if test `eval echo '${'$as_ac_var'}'` = yes; then
40715   cat >>confdefs.h <<_ACEOF
40716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40717 _ACEOF
40718   cat >>confdefs.h <<\_ACEOF
40719 #define HAVE_GETSERVBYNAME 1
40720 _ACEOF
40721
40722 fi
40723 done
40724
40725       fi
40726
40727 if test "$wxUSE_THREADS" = "yes"; then
40728   cat >>confdefs.h <<\_ACEOF
40729 #define wxUSE_THREADS 1
40730 _ACEOF
40731
40732
40733   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40734 else
40735       if test "$wx_cv_func_strtok_r" = "yes"; then
40736     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40737 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
40738     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40739         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40740         { echo "$as_me:$LINENO: result: yes" >&5
40741 echo "${ECHO_T}yes" >&6; }
40742     else
40743         { echo "$as_me:$LINENO: result: no" >&5
40744 echo "${ECHO_T}no" >&6; }
40745     fi
40746   fi
40747 fi
40748
40749 if test "$WXGTK20" = 1 ; then
40750   cat >>confdefs.h <<_ACEOF
40751 #define __WXGTK20__ $WXGTK20
40752 _ACEOF
40753
40754   WXGTK12=1
40755 fi
40756
40757 if test "$WXGTK12" = 1 ; then
40758   cat >>confdefs.h <<_ACEOF
40759 #define __WXGTK12__ $WXGTK12
40760 _ACEOF
40761
40762 fi
40763
40764 if test "$WXGTK127" = 1 ; then
40765   cat >>confdefs.h <<_ACEOF
40766 #define __WXGTK127__ $WXGTK127
40767 _ACEOF
40768
40769 fi
40770
40771 if test "$WXGPE" = 1 ; then
40772   cat >>confdefs.h <<_ACEOF
40773 #define __WXGPE__ $WXGPE
40774 _ACEOF
40775
40776 fi
40777
40778 DEBUG_CFLAGS=
40779 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40780     DEBUG_CFLAGS="-g"
40781     wxUSE_OPTIMISE=no
40782 fi
40783
40784 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40785     wxUSE_DEBUG_INFO=yes
40786     if test "$GCC" = yes; then
40787         DEBUG_CFLAGS="-ggdb"
40788     fi
40789 fi
40790
40791 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40792     cat >>confdefs.h <<\_ACEOF
40793 #define WXDEBUG 1
40794 _ACEOF
40795
40796     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40797 else
40798     if test "$wxUSE_GTK" = 1 ; then
40799         if test "x$wxGTK_VERSION" = "x1" ; then
40800             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40801         fi
40802     fi
40803 fi
40804
40805 if test "$wxUSE_MEM_TRACING" = "yes" ; then
40806     cat >>confdefs.h <<\_ACEOF
40807 #define wxUSE_MEMORY_TRACING 1
40808 _ACEOF
40809
40810     cat >>confdefs.h <<\_ACEOF
40811 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40812 _ACEOF
40813
40814     cat >>confdefs.h <<\_ACEOF
40815 #define wxUSE_DEBUG_NEW_ALWAYS 1
40816 _ACEOF
40817
40818     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40819 fi
40820
40821 if test "$wxUSE_DMALLOC" = "yes" ; then
40822     DMALLOC_LIBS="-ldmallocthcxx"
40823 fi
40824
40825 PROFILE_FLAGS=
40826 if test "$wxUSE_PROFILE" = "yes" ; then
40827     PROFILE_FLAGS=" -pg"
40828 fi
40829
40830 if test "$GCC" = "yes" ; then
40831     if test "$wxUSE_NO_RTTI" = "yes" ; then
40832         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40833     fi
40834     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40835         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40836     fi
40837     if test "$wxUSE_PERMISSIVE" = "yes" ; then
40838         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40839     fi
40840
40841                                                 case "${host}" in
40842       powerpc*-*-aix* )
40843         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40844         ;;
40845       *-hppa* )
40846         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40847         ;;
40848     esac
40849 fi
40850
40851 OPTIMISE_CFLAGS=
40852 if test "$wxUSE_OPTIMISE" = "no" ; then
40853     if test "$GCC" = yes ; then
40854                         OPTIMISE_CFLAGS="-O0"
40855     fi
40856 else
40857     if test "$GCC" = yes ; then
40858         case "${host}" in
40859             *-pc-os2_emx | *-pc-os2-emx )
40860                                                 OPTIMISE_CFLAGS="-O2"
40861             ;;
40862             *)
40863                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40864             ;;
40865         esac
40866     else
40867         OPTIMISE_CFLAGS="-O"
40868     fi
40869 fi
40870
40871
40872 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
40873     cat >>confdefs.h <<\_ACEOF
40874 #define WXWIN_COMPATIBILITY_2_6 1
40875 _ACEOF
40876
40877
40878     WXWIN_COMPATIBILITY_2_8="yes"
40879 fi
40880
40881 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
40882     cat >>confdefs.h <<\_ACEOF
40883 #define WXWIN_COMPATIBILITY_2_8 1
40884 _ACEOF
40885
40886 fi
40887
40888
40889 if test "$wxUSE_GUI" = "yes"; then
40890     cat >>confdefs.h <<\_ACEOF
40891 #define wxUSE_GUI 1
40892 _ACEOF
40893
40894
40895                                             fi
40896
40897
40898 if test "$wxUSE_UNIX" = "yes"; then
40899   cat >>confdefs.h <<\_ACEOF
40900 #define wxUSE_UNIX 1
40901 _ACEOF
40902
40903 fi
40904
40905
40906 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40907
40908     HAVE_DL_FUNCS=0
40909     HAVE_SHL_FUNCS=0
40910     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40911         if test "$USE_DARWIN" = 1; then
40912                         HAVE_DL_FUNCS=1
40913         elif test "$USE_DOS" = 1; then
40914             HAVE_DL_FUNCS=0
40915         else
40916
40917 for ac_func in dlopen
40918 do
40919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40923   echo $ECHO_N "(cached) $ECHO_C" >&6
40924 else
40925   cat >conftest.$ac_ext <<_ACEOF
40926 /* confdefs.h.  */
40927 _ACEOF
40928 cat confdefs.h >>conftest.$ac_ext
40929 cat >>conftest.$ac_ext <<_ACEOF
40930 /* end confdefs.h.  */
40931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40933 #define $ac_func innocuous_$ac_func
40934
40935 /* System header to define __stub macros and hopefully few prototypes,
40936     which can conflict with char $ac_func (); below.
40937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40938     <limits.h> exists even on freestanding compilers.  */
40939
40940 #ifdef __STDC__
40941 # include <limits.h>
40942 #else
40943 # include <assert.h>
40944 #endif
40945
40946 #undef $ac_func
40947
40948 /* Override any GCC internal prototype to avoid an error.
40949    Use char because int might match the return type of a GCC
40950    builtin and then its argument prototype would still apply.  */
40951 #ifdef __cplusplus
40952 extern "C"
40953 #endif
40954 char $ac_func ();
40955 /* The GNU C library defines this for functions which it implements
40956     to always fail with ENOSYS.  Some functions are actually named
40957     something starting with __ and the normal name is an alias.  */
40958 #if defined __stub_$ac_func || defined __stub___$ac_func
40959 choke me
40960 #endif
40961
40962 int
40963 main ()
40964 {
40965 return $ac_func ();
40966   ;
40967   return 0;
40968 }
40969 _ACEOF
40970 rm -f conftest.$ac_objext conftest$ac_exeext
40971 if { (ac_try="$ac_link"
40972 case "(($ac_try" in
40973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40974   *) ac_try_echo=$ac_try;;
40975 esac
40976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40977   (eval "$ac_link") 2>conftest.er1
40978   ac_status=$?
40979   grep -v '^ *+' conftest.er1 >conftest.err
40980   rm -f conftest.er1
40981   cat conftest.err >&5
40982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40983   (exit $ac_status); } && {
40984          test -z "$ac_c_werror_flag" ||
40985          test ! -s conftest.err
40986        } && test -s conftest$ac_exeext &&
40987        $as_test_x conftest$ac_exeext; then
40988   eval "$as_ac_var=yes"
40989 else
40990   echo "$as_me: failed program was:" >&5
40991 sed 's/^/| /' conftest.$ac_ext >&5
40992
40993         eval "$as_ac_var=no"
40994 fi
40995
40996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40997       conftest$ac_exeext conftest.$ac_ext
40998 fi
40999 ac_res=`eval echo '${'$as_ac_var'}'`
41000                { echo "$as_me:$LINENO: result: $ac_res" >&5
41001 echo "${ECHO_T}$ac_res" >&6; }
41002 if test `eval echo '${'$as_ac_var'}'` = yes; then
41003   cat >>confdefs.h <<_ACEOF
41004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41005 _ACEOF
41006
41007                 cat >>confdefs.h <<\_ACEOF
41008 #define HAVE_DLOPEN 1
41009 _ACEOF
41010
41011                 HAVE_DL_FUNCS=1
41012
41013 else
41014
41015                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41016 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41017 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41018   echo $ECHO_N "(cached) $ECHO_C" >&6
41019 else
41020   ac_check_lib_save_LIBS=$LIBS
41021 LIBS="-ldl  $LIBS"
41022 cat >conftest.$ac_ext <<_ACEOF
41023 /* confdefs.h.  */
41024 _ACEOF
41025 cat confdefs.h >>conftest.$ac_ext
41026 cat >>conftest.$ac_ext <<_ACEOF
41027 /* end confdefs.h.  */
41028
41029 /* Override any GCC internal prototype to avoid an error.
41030    Use char because int might match the return type of a GCC
41031    builtin and then its argument prototype would still apply.  */
41032 #ifdef __cplusplus
41033 extern "C"
41034 #endif
41035 char dlopen ();
41036 int
41037 main ()
41038 {
41039 return dlopen ();
41040   ;
41041   return 0;
41042 }
41043 _ACEOF
41044 rm -f conftest.$ac_objext conftest$ac_exeext
41045 if { (ac_try="$ac_link"
41046 case "(($ac_try" in
41047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41048   *) ac_try_echo=$ac_try;;
41049 esac
41050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41051   (eval "$ac_link") 2>conftest.er1
41052   ac_status=$?
41053   grep -v '^ *+' conftest.er1 >conftest.err
41054   rm -f conftest.er1
41055   cat conftest.err >&5
41056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41057   (exit $ac_status); } && {
41058          test -z "$ac_c_werror_flag" ||
41059          test ! -s conftest.err
41060        } && test -s conftest$ac_exeext &&
41061        $as_test_x conftest$ac_exeext; then
41062   ac_cv_lib_dl_dlopen=yes
41063 else
41064   echo "$as_me: failed program was:" >&5
41065 sed 's/^/| /' conftest.$ac_ext >&5
41066
41067         ac_cv_lib_dl_dlopen=no
41068 fi
41069
41070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41071       conftest$ac_exeext conftest.$ac_ext
41072 LIBS=$ac_check_lib_save_LIBS
41073 fi
41074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41075 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41076 if test $ac_cv_lib_dl_dlopen = yes; then
41077
41078                                 cat >>confdefs.h <<\_ACEOF
41079 #define HAVE_DLOPEN 1
41080 _ACEOF
41081
41082                                 HAVE_DL_FUNCS=1
41083                                 DL_LINK=" -ldl$DL_LINK"
41084
41085 else
41086
41087
41088 for ac_func in shl_load
41089 do
41090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41094   echo $ECHO_N "(cached) $ECHO_C" >&6
41095 else
41096   cat >conftest.$ac_ext <<_ACEOF
41097 /* confdefs.h.  */
41098 _ACEOF
41099 cat confdefs.h >>conftest.$ac_ext
41100 cat >>conftest.$ac_ext <<_ACEOF
41101 /* end confdefs.h.  */
41102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41104 #define $ac_func innocuous_$ac_func
41105
41106 /* System header to define __stub macros and hopefully few prototypes,
41107     which can conflict with char $ac_func (); below.
41108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41109     <limits.h> exists even on freestanding compilers.  */
41110
41111 #ifdef __STDC__
41112 # include <limits.h>
41113 #else
41114 # include <assert.h>
41115 #endif
41116
41117 #undef $ac_func
41118
41119 /* Override any GCC internal prototype to avoid an error.
41120    Use char because int might match the return type of a GCC
41121    builtin and then its argument prototype would still apply.  */
41122 #ifdef __cplusplus
41123 extern "C"
41124 #endif
41125 char $ac_func ();
41126 /* The GNU C library defines this for functions which it implements
41127     to always fail with ENOSYS.  Some functions are actually named
41128     something starting with __ and the normal name is an alias.  */
41129 #if defined __stub_$ac_func || defined __stub___$ac_func
41130 choke me
41131 #endif
41132
41133 int
41134 main ()
41135 {
41136 return $ac_func ();
41137   ;
41138   return 0;
41139 }
41140 _ACEOF
41141 rm -f conftest.$ac_objext conftest$ac_exeext
41142 if { (ac_try="$ac_link"
41143 case "(($ac_try" in
41144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41145   *) ac_try_echo=$ac_try;;
41146 esac
41147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41148   (eval "$ac_link") 2>conftest.er1
41149   ac_status=$?
41150   grep -v '^ *+' conftest.er1 >conftest.err
41151   rm -f conftest.er1
41152   cat conftest.err >&5
41153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41154   (exit $ac_status); } && {
41155          test -z "$ac_c_werror_flag" ||
41156          test ! -s conftest.err
41157        } && test -s conftest$ac_exeext &&
41158        $as_test_x conftest$ac_exeext; then
41159   eval "$as_ac_var=yes"
41160 else
41161   echo "$as_me: failed program was:" >&5
41162 sed 's/^/| /' conftest.$ac_ext >&5
41163
41164         eval "$as_ac_var=no"
41165 fi
41166
41167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41168       conftest$ac_exeext conftest.$ac_ext
41169 fi
41170 ac_res=`eval echo '${'$as_ac_var'}'`
41171                { echo "$as_me:$LINENO: result: $ac_res" >&5
41172 echo "${ECHO_T}$ac_res" >&6; }
41173 if test `eval echo '${'$as_ac_var'}'` = yes; then
41174   cat >>confdefs.h <<_ACEOF
41175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41176 _ACEOF
41177
41178                                                 cat >>confdefs.h <<\_ACEOF
41179 #define HAVE_SHL_LOAD 1
41180 _ACEOF
41181
41182                                                 HAVE_SHL_FUNCS=1
41183
41184 else
41185
41186                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41187 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41188 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41189   echo $ECHO_N "(cached) $ECHO_C" >&6
41190 else
41191   ac_check_lib_save_LIBS=$LIBS
41192 LIBS="-lshl_load  $LIBS"
41193 cat >conftest.$ac_ext <<_ACEOF
41194 /* confdefs.h.  */
41195 _ACEOF
41196 cat confdefs.h >>conftest.$ac_ext
41197 cat >>conftest.$ac_ext <<_ACEOF
41198 /* end confdefs.h.  */
41199
41200 /* Override any GCC internal prototype to avoid an error.
41201    Use char because int might match the return type of a GCC
41202    builtin and then its argument prototype would still apply.  */
41203 #ifdef __cplusplus
41204 extern "C"
41205 #endif
41206 char dld ();
41207 int
41208 main ()
41209 {
41210 return dld ();
41211   ;
41212   return 0;
41213 }
41214 _ACEOF
41215 rm -f conftest.$ac_objext conftest$ac_exeext
41216 if { (ac_try="$ac_link"
41217 case "(($ac_try" in
41218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41219   *) ac_try_echo=$ac_try;;
41220 esac
41221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41222   (eval "$ac_link") 2>conftest.er1
41223   ac_status=$?
41224   grep -v '^ *+' conftest.er1 >conftest.err
41225   rm -f conftest.er1
41226   cat conftest.err >&5
41227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41228   (exit $ac_status); } && {
41229          test -z "$ac_c_werror_flag" ||
41230          test ! -s conftest.err
41231        } && test -s conftest$ac_exeext &&
41232        $as_test_x conftest$ac_exeext; then
41233   ac_cv_lib_shl_load_dld=yes
41234 else
41235   echo "$as_me: failed program was:" >&5
41236 sed 's/^/| /' conftest.$ac_ext >&5
41237
41238         ac_cv_lib_shl_load_dld=no
41239 fi
41240
41241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41242       conftest$ac_exeext conftest.$ac_ext
41243 LIBS=$ac_check_lib_save_LIBS
41244 fi
41245 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41246 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41247 if test $ac_cv_lib_shl_load_dld = yes; then
41248
41249                                                                 HAVE_SHL_FUNCS=1
41250                                                                 DL_LINK=" -ldld$DL_LINK"
41251
41252 fi
41253
41254
41255 fi
41256 done
41257
41258
41259 fi
41260
41261
41262 fi
41263 done
41264
41265
41266                 if test "$HAVE_DL_FUNCS" = 1; then
41267
41268 for ac_func in dlerror
41269 do
41270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41274   echo $ECHO_N "(cached) $ECHO_C" >&6
41275 else
41276   cat >conftest.$ac_ext <<_ACEOF
41277 /* confdefs.h.  */
41278 _ACEOF
41279 cat confdefs.h >>conftest.$ac_ext
41280 cat >>conftest.$ac_ext <<_ACEOF
41281 /* end confdefs.h.  */
41282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41284 #define $ac_func innocuous_$ac_func
41285
41286 /* System header to define __stub macros and hopefully few prototypes,
41287     which can conflict with char $ac_func (); below.
41288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41289     <limits.h> exists even on freestanding compilers.  */
41290
41291 #ifdef __STDC__
41292 # include <limits.h>
41293 #else
41294 # include <assert.h>
41295 #endif
41296
41297 #undef $ac_func
41298
41299 /* Override any GCC internal prototype to avoid an error.
41300    Use char because int might match the return type of a GCC
41301    builtin and then its argument prototype would still apply.  */
41302 #ifdef __cplusplus
41303 extern "C"
41304 #endif
41305 char $ac_func ();
41306 /* The GNU C library defines this for functions which it implements
41307     to always fail with ENOSYS.  Some functions are actually named
41308     something starting with __ and the normal name is an alias.  */
41309 #if defined __stub_$ac_func || defined __stub___$ac_func
41310 choke me
41311 #endif
41312
41313 int
41314 main ()
41315 {
41316 return $ac_func ();
41317   ;
41318   return 0;
41319 }
41320 _ACEOF
41321 rm -f conftest.$ac_objext conftest$ac_exeext
41322 if { (ac_try="$ac_link"
41323 case "(($ac_try" in
41324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41325   *) ac_try_echo=$ac_try;;
41326 esac
41327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41328   (eval "$ac_link") 2>conftest.er1
41329   ac_status=$?
41330   grep -v '^ *+' conftest.er1 >conftest.err
41331   rm -f conftest.er1
41332   cat conftest.err >&5
41333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41334   (exit $ac_status); } && {
41335          test -z "$ac_c_werror_flag" ||
41336          test ! -s conftest.err
41337        } && test -s conftest$ac_exeext &&
41338        $as_test_x conftest$ac_exeext; then
41339   eval "$as_ac_var=yes"
41340 else
41341   echo "$as_me: failed program was:" >&5
41342 sed 's/^/| /' conftest.$ac_ext >&5
41343
41344         eval "$as_ac_var=no"
41345 fi
41346
41347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41348       conftest$ac_exeext conftest.$ac_ext
41349 fi
41350 ac_res=`eval echo '${'$as_ac_var'}'`
41351                { echo "$as_me:$LINENO: result: $ac_res" >&5
41352 echo "${ECHO_T}$ac_res" >&6; }
41353 if test `eval echo '${'$as_ac_var'}'` = yes; then
41354   cat >>confdefs.h <<_ACEOF
41355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41356 _ACEOF
41357  cat >>confdefs.h <<\_ACEOF
41358 #define HAVE_DLERROR 1
41359 _ACEOF
41360
41361 else
41362
41363                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41364 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
41365 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41366   echo $ECHO_N "(cached) $ECHO_C" >&6
41367 else
41368   ac_check_lib_save_LIBS=$LIBS
41369 LIBS="-ldl  $LIBS"
41370 cat >conftest.$ac_ext <<_ACEOF
41371 /* confdefs.h.  */
41372 _ACEOF
41373 cat confdefs.h >>conftest.$ac_ext
41374 cat >>conftest.$ac_ext <<_ACEOF
41375 /* end confdefs.h.  */
41376
41377 /* Override any GCC internal prototype to avoid an error.
41378    Use char because int might match the return type of a GCC
41379    builtin and then its argument prototype would still apply.  */
41380 #ifdef __cplusplus
41381 extern "C"
41382 #endif
41383 char dlerror ();
41384 int
41385 main ()
41386 {
41387 return dlerror ();
41388   ;
41389   return 0;
41390 }
41391 _ACEOF
41392 rm -f conftest.$ac_objext conftest$ac_exeext
41393 if { (ac_try="$ac_link"
41394 case "(($ac_try" in
41395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41396   *) ac_try_echo=$ac_try;;
41397 esac
41398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41399   (eval "$ac_link") 2>conftest.er1
41400   ac_status=$?
41401   grep -v '^ *+' conftest.er1 >conftest.err
41402   rm -f conftest.er1
41403   cat conftest.err >&5
41404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41405   (exit $ac_status); } && {
41406          test -z "$ac_c_werror_flag" ||
41407          test ! -s conftest.err
41408        } && test -s conftest$ac_exeext &&
41409        $as_test_x conftest$ac_exeext; then
41410   ac_cv_lib_dl_dlerror=yes
41411 else
41412   echo "$as_me: failed program was:" >&5
41413 sed 's/^/| /' conftest.$ac_ext >&5
41414
41415         ac_cv_lib_dl_dlerror=no
41416 fi
41417
41418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41419       conftest$ac_exeext conftest.$ac_ext
41420 LIBS=$ac_check_lib_save_LIBS
41421 fi
41422 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41423 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
41424 if test $ac_cv_lib_dl_dlerror = yes; then
41425   cat >>confdefs.h <<\_ACEOF
41426 #define HAVE_DLERROR 1
41427 _ACEOF
41428
41429 fi
41430
41431
41432
41433 fi
41434 done
41435
41436         fi
41437         fi
41438
41439         if test "$HAVE_DL_FUNCS" = 0; then
41440             if test "$HAVE_SHL_FUNCS" = 0; then
41441               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41442                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41443 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41444                   wxUSE_DYNAMIC_LOADER=no
41445                   wxUSE_DYNLIB_CLASS=no
41446               else
41447                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41448 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41449               fi
41450             fi
41451         fi
41452     fi
41453 fi
41454
41455 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41456     cat >>confdefs.h <<\_ACEOF
41457 #define wxUSE_DYNAMIC_LOADER 1
41458 _ACEOF
41459
41460 fi
41461 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41462     cat >>confdefs.h <<\_ACEOF
41463 #define wxUSE_DYNLIB_CLASS 1
41464 _ACEOF
41465
41466 fi
41467
41468
41469
41470 if test "$wxUSE_PLUGINS" = "yes" ; then
41471     if test "$wxUSE_SHARED" = "no" ; then
41472         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41473 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41474         wxUSE_PLUGINS=no
41475     fi
41476     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41477         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41478 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41479         wxUSE_PLUGINS=no
41480     fi
41481     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41482         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41483 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41484         wxUSE_PLUGINS=no
41485     fi
41486     if test "$wxUSE_PLUGINS" = "yes" ; then
41487         cat >>confdefs.h <<\_ACEOF
41488 #define wxUSE_PLUGINS 1
41489 _ACEOF
41490
41491     fi
41492 fi
41493
41494
41495 if test "$wxUSE_STL" = "yes"; then
41496   cat >>confdefs.h <<\_ACEOF
41497 #define wxUSE_STL 1
41498 _ACEOF
41499
41500 fi
41501
41502 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
41503   cat >>confdefs.h <<\_ACEOF
41504 #define wxUSE_EXTENDED_RTTI 1
41505 _ACEOF
41506
41507 fi
41508
41509 if test "$wxUSE_APPLE_IEEE" = "yes"; then
41510   cat >>confdefs.h <<\_ACEOF
41511 #define wxUSE_APPLE_IEEE 1
41512 _ACEOF
41513
41514 fi
41515
41516 if test "$wxUSE_TIMER" = "yes"; then
41517   cat >>confdefs.h <<\_ACEOF
41518 #define wxUSE_TIMER 1
41519 _ACEOF
41520
41521 fi
41522
41523 if test "$USE_UNIX" = "1" ; then
41524         if test "$wxUSE_MGL" != 1; then
41525                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41526 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
41527 if test "${ac_cv_header_sys_soundcard+set}" = set; then
41528   echo $ECHO_N "(cached) $ECHO_C" >&6
41529 else
41530
41531             cat >conftest.$ac_ext <<_ACEOF
41532 /* confdefs.h.  */
41533 _ACEOF
41534 cat confdefs.h >>conftest.$ac_ext
41535 cat >>conftest.$ac_ext <<_ACEOF
41536 /* end confdefs.h.  */
41537
41538                     #include <sys/ioctl.h>
41539                     #include <sys/soundcard.h>
41540
41541 int
41542 main ()
41543 {
41544
41545                     ioctl(0, SNDCTL_DSP_SPEED, 0);
41546
41547   ;
41548   return 0;
41549 }
41550 _ACEOF
41551 rm -f conftest.$ac_objext conftest$ac_exeext
41552 if { (ac_try="$ac_link"
41553 case "(($ac_try" in
41554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41555   *) ac_try_echo=$ac_try;;
41556 esac
41557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41558   (eval "$ac_link") 2>conftest.er1
41559   ac_status=$?
41560   grep -v '^ *+' conftest.er1 >conftest.err
41561   rm -f conftest.er1
41562   cat conftest.err >&5
41563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564   (exit $ac_status); } && {
41565          test -z "$ac_c_werror_flag" ||
41566          test ! -s conftest.err
41567        } && test -s conftest$ac_exeext &&
41568        $as_test_x conftest$ac_exeext; then
41569   ac_cv_header_sys_soundcard=yes
41570 else
41571   echo "$as_me: failed program was:" >&5
41572 sed 's/^/| /' conftest.$ac_ext >&5
41573
41574
41575                     saveLibs="$LIBS"
41576                     LIBS="$saveLibs -lossaudio"
41577                     cat >conftest.$ac_ext <<_ACEOF
41578 /* confdefs.h.  */
41579 _ACEOF
41580 cat confdefs.h >>conftest.$ac_ext
41581 cat >>conftest.$ac_ext <<_ACEOF
41582 /* end confdefs.h.  */
41583
41584                             #include <sys/ioctl.h>
41585                             #include <sys/soundcard.h>
41586
41587 int
41588 main ()
41589 {
41590
41591                             ioctl(0, SNDCTL_DSP_SPEED, 0);
41592
41593   ;
41594   return 0;
41595 }
41596 _ACEOF
41597 rm -f conftest.$ac_objext conftest$ac_exeext
41598 if { (ac_try="$ac_link"
41599 case "(($ac_try" in
41600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41601   *) ac_try_echo=$ac_try;;
41602 esac
41603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41604   (eval "$ac_link") 2>conftest.er1
41605   ac_status=$?
41606   grep -v '^ *+' conftest.er1 >conftest.err
41607   rm -f conftest.er1
41608   cat conftest.err >&5
41609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41610   (exit $ac_status); } && {
41611          test -z "$ac_c_werror_flag" ||
41612          test ! -s conftest.err
41613        } && test -s conftest$ac_exeext &&
41614        $as_test_x conftest$ac_exeext; then
41615   ac_cv_header_sys_soundcard=yes
41616 else
41617   echo "$as_me: failed program was:" >&5
41618 sed 's/^/| /' conftest.$ac_ext >&5
41619
41620
41621                             LIBS="$saveLibs"
41622                             ac_cv_header_sys_soundcard=no
41623
41624
41625 fi
41626
41627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41628       conftest$ac_exeext conftest.$ac_ext
41629
41630
41631 fi
41632
41633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41634       conftest$ac_exeext conftest.$ac_ext
41635
41636 fi
41637 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41638 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
41639     fi
41640
41641     if test "$ac_cv_header_sys_soundcard" = "yes"; then
41642         cat >>confdefs.h <<\_ACEOF
41643 #define HAVE_SYS_SOUNDCARD_H 1
41644 _ACEOF
41645
41646     fi
41647 fi
41648
41649 WITH_PLUGIN_SDL=0
41650 if test "$wxUSE_SOUND" = "yes"; then
41651   if test "$USE_UNIX" = "1" ; then
41652     if test "$wxUSE_LIBSDL" != "no"; then
41653
41654 # Check whether --with-sdl-prefix was given.
41655 if test "${with_sdl_prefix+set}" = set; then
41656   withval=$with_sdl_prefix; sdl_prefix="$withval"
41657 else
41658   sdl_prefix=""
41659 fi
41660
41661
41662 # Check whether --with-sdl-exec-prefix was given.
41663 if test "${with_sdl_exec_prefix+set}" = set; then
41664   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
41665 else
41666   sdl_exec_prefix=""
41667 fi
41668
41669 # Check whether --enable-sdltest was given.
41670 if test "${enable_sdltest+set}" = set; then
41671   enableval=$enable_sdltest;
41672 else
41673   enable_sdltest=yes
41674 fi
41675
41676
41677   if test x$sdl_exec_prefix != x ; then
41678     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41679     if test x${SDL_CONFIG+set} != xset ; then
41680       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41681     fi
41682   fi
41683   if test x$sdl_prefix != x ; then
41684     sdl_args="$sdl_args --prefix=$sdl_prefix"
41685     if test x${SDL_CONFIG+set} != xset ; then
41686       SDL_CONFIG=$sdl_prefix/bin/sdl-config
41687     fi
41688   fi
41689
41690   if test "x$prefix" != xNONE; then
41691     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41692   fi
41693   # Extract the first word of "sdl-config", so it can be a program name with args.
41694 set dummy sdl-config; ac_word=$2
41695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41697 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41698   echo $ECHO_N "(cached) $ECHO_C" >&6
41699 else
41700   case $SDL_CONFIG in
41701   [\\/]* | ?:[\\/]*)
41702   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41703   ;;
41704   *)
41705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41706 for as_dir in $PATH
41707 do
41708   IFS=$as_save_IFS
41709   test -z "$as_dir" && as_dir=.
41710   for ac_exec_ext in '' $ac_executable_extensions; do
41711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41712     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41714     break 2
41715   fi
41716 done
41717 done
41718 IFS=$as_save_IFS
41719
41720   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41721   ;;
41722 esac
41723 fi
41724 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41725 if test -n "$SDL_CONFIG"; then
41726   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41727 echo "${ECHO_T}$SDL_CONFIG" >&6; }
41728 else
41729   { echo "$as_me:$LINENO: result: no" >&5
41730 echo "${ECHO_T}no" >&6; }
41731 fi
41732
41733
41734   min_sdl_version=1.2.0
41735   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41736 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
41737   no_sdl=""
41738   if test "$SDL_CONFIG" = "no" ; then
41739     no_sdl=yes
41740   else
41741     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41742     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41743
41744     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41745            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41746     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41747            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41748     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41749            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41750     if test "x$enable_sdltest" = "xyes" ; then
41751       ac_save_CFLAGS="$CFLAGS"
41752       ac_save_CXXFLAGS="$CXXFLAGS"
41753       ac_save_LIBS="$LIBS"
41754       CFLAGS="$CFLAGS $SDL_CFLAGS"
41755       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41756       LIBS="$LIBS $SDL_LIBS"
41757       rm -f conf.sdltest
41758       if test "$cross_compiling" = yes; then
41759   echo $ac_n "cross compiling; assumed OK... $ac_c"
41760 else
41761   cat >conftest.$ac_ext <<_ACEOF
41762 /* confdefs.h.  */
41763 _ACEOF
41764 cat confdefs.h >>conftest.$ac_ext
41765 cat >>conftest.$ac_ext <<_ACEOF
41766 /* end confdefs.h.  */
41767
41768 #include <stdio.h>
41769 #include <stdlib.h>
41770 #include <string.h>
41771 #include "SDL.h"
41772
41773 char*
41774 my_strdup (char *str)
41775 {
41776   char *new_str;
41777
41778   if (str)
41779     {
41780       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41781       strcpy (new_str, str);
41782     }
41783   else
41784     new_str = NULL;
41785
41786   return new_str;
41787 }
41788
41789 int main (int argc, char *argv[])
41790 {
41791   int major, minor, micro;
41792   char *tmp_version;
41793
41794   /* This hangs on some systems (?)
41795   system ("touch conf.sdltest");
41796   */
41797   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41798
41799   /* HP/UX 9 (%@#!) writes to sscanf strings */
41800   tmp_version = my_strdup("$min_sdl_version");
41801   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41802      printf("%s, bad version string\n", "$min_sdl_version");
41803      exit(1);
41804    }
41805
41806    if (($sdl_major_version > major) ||
41807       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41808       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41809     {
41810       return 0;
41811     }
41812   else
41813     {
41814       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41815       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41816       printf("*** best to upgrade to the required version.\n");
41817       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41818       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41819       printf("*** config.cache before re-running configure\n");
41820       return 1;
41821     }
41822 }
41823
41824
41825 _ACEOF
41826 rm -f conftest$ac_exeext
41827 if { (ac_try="$ac_link"
41828 case "(($ac_try" in
41829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41830   *) ac_try_echo=$ac_try;;
41831 esac
41832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41833   (eval "$ac_link") 2>&5
41834   ac_status=$?
41835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41837   { (case "(($ac_try" in
41838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41839   *) ac_try_echo=$ac_try;;
41840 esac
41841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41842   (eval "$ac_try") 2>&5
41843   ac_status=$?
41844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41845   (exit $ac_status); }; }; then
41846   :
41847 else
41848   echo "$as_me: program exited with status $ac_status" >&5
41849 echo "$as_me: failed program was:" >&5
41850 sed 's/^/| /' conftest.$ac_ext >&5
41851
41852 ( exit $ac_status )
41853 no_sdl=yes
41854 fi
41855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41856 fi
41857
41858
41859        CFLAGS="$ac_save_CFLAGS"
41860        CXXFLAGS="$ac_save_CXXFLAGS"
41861        LIBS="$ac_save_LIBS"
41862      fi
41863   fi
41864   if test "x$no_sdl" = x ; then
41865      { echo "$as_me:$LINENO: result: yes" >&5
41866 echo "${ECHO_T}yes" >&6; }
41867
41868                     EXTRALIBS_SDL="$SDL_LIBS"
41869                     CFLAGS="$SDL_CFLAGS $CFLAGS"
41870                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
41871                     cat >>confdefs.h <<\_ACEOF
41872 #define wxUSE_LIBSDL 1
41873 _ACEOF
41874
41875
41876   else
41877      { echo "$as_me:$LINENO: result: no" >&5
41878 echo "${ECHO_T}no" >&6; }
41879      if test "$SDL_CONFIG" = "no" ; then
41880        echo "*** The sdl-config script installed by SDL could not be found"
41881        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41882        echo "*** your path, or set the SDL_CONFIG environment variable to the"
41883        echo "*** full path to sdl-config."
41884      else
41885        if test -f conf.sdltest ; then
41886         :
41887        else
41888           echo "*** Could not run SDL test program, checking why..."
41889           CFLAGS="$CFLAGS $SDL_CFLAGS"
41890           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41891           LIBS="$LIBS $SDL_LIBS"
41892           cat >conftest.$ac_ext <<_ACEOF
41893 /* confdefs.h.  */
41894 _ACEOF
41895 cat confdefs.h >>conftest.$ac_ext
41896 cat >>conftest.$ac_ext <<_ACEOF
41897 /* end confdefs.h.  */
41898
41899 #include <stdio.h>
41900 #include "SDL.h"
41901
41902 int main(int argc, char *argv[])
41903 { return 0; }
41904 #undef  main
41905 #define main K_and_R_C_main
41906
41907 int
41908 main ()
41909 {
41910  return 0;
41911   ;
41912   return 0;
41913 }
41914 _ACEOF
41915 rm -f conftest.$ac_objext conftest$ac_exeext
41916 if { (ac_try="$ac_link"
41917 case "(($ac_try" in
41918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41919   *) ac_try_echo=$ac_try;;
41920 esac
41921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41922   (eval "$ac_link") 2>conftest.er1
41923   ac_status=$?
41924   grep -v '^ *+' conftest.er1 >conftest.err
41925   rm -f conftest.er1
41926   cat conftest.err >&5
41927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41928   (exit $ac_status); } && {
41929          test -z "$ac_c_werror_flag" ||
41930          test ! -s conftest.err
41931        } && test -s conftest$ac_exeext &&
41932        $as_test_x conftest$ac_exeext; then
41933    echo "*** The test program compiled, but did not run. This usually means"
41934           echo "*** that the run-time linker is not finding SDL or finding the wrong"
41935           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41936           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41937           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
41938           echo "*** is required on your system"
41939           echo "***"
41940           echo "*** If you have an old version installed, it is best to remove it, although"
41941           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41942 else
41943   echo "$as_me: failed program was:" >&5
41944 sed 's/^/| /' conftest.$ac_ext >&5
41945
41946          echo "*** The test program failed to compile or link. See the file config.log for the"
41947           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41948           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41949           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41950 fi
41951
41952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41953       conftest$ac_exeext conftest.$ac_ext
41954           CFLAGS="$ac_save_CFLAGS"
41955           CXXFLAGS="$ac_save_CXXFLAGS"
41956           LIBS="$ac_save_LIBS"
41957        fi
41958      fi
41959      SDL_CFLAGS=""
41960      SDL_LIBS=""
41961      wxUSE_LIBSDL="no"
41962   fi
41963
41964
41965   rm -f conf.sdltest
41966
41967       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41968         WITH_PLUGIN_SDL=1
41969       fi
41970     fi
41971   else
41972         if test "$wxUSE_MGL" = 1; then
41973         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
41974 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
41975         wxUSE_SOUND="no"
41976     fi
41977   fi
41978 fi
41979
41980 if test "$wxUSE_SOUND" = "yes"; then
41981   cat >>confdefs.h <<\_ACEOF
41982 #define wxUSE_SOUND 1
41983 _ACEOF
41984
41985   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41986 fi
41987
41988 if test "$WXGTK20" = 1; then
41989
41990
41991 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
41992         if test -n "$ac_tool_prefix"; then
41993   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
41994 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
41995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41997 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41998   echo $ECHO_N "(cached) $ECHO_C" >&6
41999 else
42000   case $PKG_CONFIG in
42001   [\\/]* | ?:[\\/]*)
42002   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42003   ;;
42004   *)
42005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42006 for as_dir in $PATH
42007 do
42008   IFS=$as_save_IFS
42009   test -z "$as_dir" && as_dir=.
42010   for ac_exec_ext in '' $ac_executable_extensions; do
42011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42012     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42014     break 2
42015   fi
42016 done
42017 done
42018 IFS=$as_save_IFS
42019
42020   ;;
42021 esac
42022 fi
42023 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42024 if test -n "$PKG_CONFIG"; then
42025   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42026 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42027 else
42028   { echo "$as_me:$LINENO: result: no" >&5
42029 echo "${ECHO_T}no" >&6; }
42030 fi
42031
42032
42033 fi
42034 if test -z "$ac_cv_path_PKG_CONFIG"; then
42035   ac_pt_PKG_CONFIG=$PKG_CONFIG
42036   # Extract the first word of "pkg-config", so it can be a program name with args.
42037 set dummy pkg-config; ac_word=$2
42038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42040 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42041   echo $ECHO_N "(cached) $ECHO_C" >&6
42042 else
42043   case $ac_pt_PKG_CONFIG in
42044   [\\/]* | ?:[\\/]*)
42045   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42046   ;;
42047   *)
42048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42049 for as_dir in $PATH
42050 do
42051   IFS=$as_save_IFS
42052   test -z "$as_dir" && as_dir=.
42053   for ac_exec_ext in '' $ac_executable_extensions; do
42054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42055     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42057     break 2
42058   fi
42059 done
42060 done
42061 IFS=$as_save_IFS
42062
42063   ;;
42064 esac
42065 fi
42066 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42067 if test -n "$ac_pt_PKG_CONFIG"; then
42068   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42069 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42070 else
42071   { echo "$as_me:$LINENO: result: no" >&5
42072 echo "${ECHO_T}no" >&6; }
42073 fi
42074
42075   if test "x$ac_pt_PKG_CONFIG" = x; then
42076     PKG_CONFIG=""
42077   else
42078     case $cross_compiling:$ac_tool_warned in
42079 yes:)
42080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42081 whose name does not start with the host triplet.  If you think this
42082 configuration is useful to you, please write to autoconf@gnu.org." >&5
42083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42084 whose name does not start with the host triplet.  If you think this
42085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42086 ac_tool_warned=yes ;;
42087 esac
42088     PKG_CONFIG=$ac_pt_PKG_CONFIG
42089   fi
42090 else
42091   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42092 fi
42093
42094 fi
42095 if test -n "$PKG_CONFIG"; then
42096         _pkg_min_version=0.9.0
42097         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42098 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42099         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42100                 { echo "$as_me:$LINENO: result: yes" >&5
42101 echo "${ECHO_T}yes" >&6; }
42102         else
42103                 { echo "$as_me:$LINENO: result: no" >&5
42104 echo "${ECHO_T}no" >&6; }
42105                 PKG_CONFIG=""
42106         fi
42107
42108 fi
42109
42110     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42111         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42112
42113
42114 pkg_failed=no
42115 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42116 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42117
42118 if test -n "$PKG_CONFIG"; then
42119     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42120         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42121     else
42122         if test -n "$PKG_CONFIG" && \
42123     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42124   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42125   ac_status=$?
42126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42127   (exit $ac_status); }; then
42128   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42129 else
42130   pkg_failed=yes
42131 fi
42132     fi
42133 else
42134         pkg_failed=untried
42135 fi
42136 if test -n "$PKG_CONFIG"; then
42137     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42138         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42139     else
42140         if test -n "$PKG_CONFIG" && \
42141     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42142   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42143   ac_status=$?
42144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42145   (exit $ac_status); }; then
42146   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42147 else
42148   pkg_failed=yes
42149 fi
42150     fi
42151 else
42152         pkg_failed=untried
42153 fi
42154
42155
42156
42157 if test $pkg_failed = yes; then
42158
42159 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42160         _pkg_short_errors_supported=yes
42161 else
42162         _pkg_short_errors_supported=no
42163 fi
42164         if test $_pkg_short_errors_supported = yes; then
42165                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42166         else
42167                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42168         fi
42169         # Put the nasty error message in config.log where it belongs
42170         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42171
42172
42173                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42174 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42175                         wxUSE_LIBGNOMEPRINT="no"
42176
42177
42178 elif test $pkg_failed = untried; then
42179
42180                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42181 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42182                         wxUSE_LIBGNOMEPRINT="no"
42183
42184
42185 else
42186         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42187         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42188         { echo "$as_me:$LINENO: result: yes" >&5
42189 echo "${ECHO_T}yes" >&6; }
42190
42191                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42192                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42193                         cat >>confdefs.h <<\_ACEOF
42194 #define wxUSE_LIBGNOMEPRINT 1
42195 _ACEOF
42196
42197
42198 fi
42199         fi
42200     fi
42201
42202     if test "$wxUSE_MIMETYPE" = "yes" ; then
42203         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42204
42205
42206 pkg_failed=no
42207 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42208 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42209
42210 if test -n "$PKG_CONFIG"; then
42211     if test -n "$GNOMEVFS_CFLAGS"; then
42212         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42213     else
42214         if test -n "$PKG_CONFIG" && \
42215     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42216   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42217   ac_status=$?
42218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42219   (exit $ac_status); }; then
42220   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42221 else
42222   pkg_failed=yes
42223 fi
42224     fi
42225 else
42226         pkg_failed=untried
42227 fi
42228 if test -n "$PKG_CONFIG"; then
42229     if test -n "$GNOMEVFS_LIBS"; then
42230         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42231     else
42232         if test -n "$PKG_CONFIG" && \
42233     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42234   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42235   ac_status=$?
42236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42237   (exit $ac_status); }; then
42238   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42239 else
42240   pkg_failed=yes
42241 fi
42242     fi
42243 else
42244         pkg_failed=untried
42245 fi
42246
42247
42248
42249 if test $pkg_failed = yes; then
42250
42251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42252         _pkg_short_errors_supported=yes
42253 else
42254         _pkg_short_errors_supported=no
42255 fi
42256         if test $_pkg_short_errors_supported = yes; then
42257                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42258         else
42259                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42260         fi
42261         # Put the nasty error message in config.log where it belongs
42262         echo "$GNOMEVFS_PKG_ERRORS" >&5
42263
42264
42265                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42266 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42267                         wxUSE_LIBGNOMEVFS="no"
42268
42269
42270 elif test $pkg_failed = untried; then
42271
42272                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42273 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42274                         wxUSE_LIBGNOMEVFS="no"
42275
42276
42277 else
42278         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42279         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42280         { echo "$as_me:$LINENO: result: yes" >&5
42281 echo "${ECHO_T}yes" >&6; }
42282
42283                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
42284                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42285                         cat >>confdefs.h <<\_ACEOF
42286 #define wxUSE_LIBGNOMEVFS 1
42287 _ACEOF
42288
42289
42290 fi
42291         fi
42292     fi
42293
42294     if test "$wxUSE_LIBHILDON" = "yes" ; then
42295
42296 pkg_failed=no
42297 { echo "$as_me:$LINENO: checking for HILDON" >&5
42298 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
42299
42300 if test -n "$PKG_CONFIG"; then
42301     if test -n "$HILDON_CFLAGS"; then
42302         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42303     else
42304         if test -n "$PKG_CONFIG" && \
42305     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42306   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42307   ac_status=$?
42308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42309   (exit $ac_status); }; then
42310   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42311 else
42312   pkg_failed=yes
42313 fi
42314     fi
42315 else
42316         pkg_failed=untried
42317 fi
42318 if test -n "$PKG_CONFIG"; then
42319     if test -n "$HILDON_LIBS"; then
42320         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42321     else
42322         if test -n "$PKG_CONFIG" && \
42323     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42324   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42325   ac_status=$?
42326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42327   (exit $ac_status); }; then
42328   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42329 else
42330   pkg_failed=yes
42331 fi
42332     fi
42333 else
42334         pkg_failed=untried
42335 fi
42336
42337
42338
42339 if test $pkg_failed = yes; then
42340
42341 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42342         _pkg_short_errors_supported=yes
42343 else
42344         _pkg_short_errors_supported=no
42345 fi
42346         if test $_pkg_short_errors_supported = yes; then
42347                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42348         else
42349                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42350         fi
42351         # Put the nasty error message in config.log where it belongs
42352         echo "$HILDON_PKG_ERRORS" >&5
42353
42354
42355                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42356 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42357                         wxUSE_LIBHILDON="no"
42358
42359
42360 elif test $pkg_failed = untried; then
42361
42362                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42363 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42364                         wxUSE_LIBHILDON="no"
42365
42366
42367 else
42368         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42369         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42370         { echo "$as_me:$LINENO: result: yes" >&5
42371 echo "${ECHO_T}yes" >&6; }
42372
42373                 EXTRALIBS_HILDON="$HILDON_LIBS"
42374                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
42375                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42376                 cat >>confdefs.h <<\_ACEOF
42377 #define wxUSE_LIBHILDON 1
42378 _ACEOF
42379
42380
42381 fi
42382     fi
42383 fi
42384
42385 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42386   cat >>confdefs.h <<\_ACEOF
42387 #define wxUSE_CMDLINE_PARSER 1
42388 _ACEOF
42389
42390 fi
42391
42392 if test "$wxUSE_STOPWATCH" = "yes"; then
42393   cat >>confdefs.h <<\_ACEOF
42394 #define wxUSE_STOPWATCH 1
42395 _ACEOF
42396
42397 fi
42398
42399 if test "$wxUSE_DATETIME" = "yes"; then
42400   cat >>confdefs.h <<\_ACEOF
42401 #define wxUSE_DATETIME 1
42402 _ACEOF
42403
42404 fi
42405
42406 if test "$wxUSE_FILE" = "yes"; then
42407   cat >>confdefs.h <<\_ACEOF
42408 #define wxUSE_FILE 1
42409 _ACEOF
42410
42411 fi
42412
42413 if test "$wxUSE_FFILE" = "yes"; then
42414   cat >>confdefs.h <<\_ACEOF
42415 #define wxUSE_FFILE 1
42416 _ACEOF
42417
42418 fi
42419
42420 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
42421   if test "$wxUSE_STREAMS" != yes; then
42422     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
42423 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
42424     wxUSE_ARCHIVE_STREAMS=no
42425   else
42426     cat >>confdefs.h <<\_ACEOF
42427 #define wxUSE_ARCHIVE_STREAMS 1
42428 _ACEOF
42429
42430   fi
42431 fi
42432
42433 if test "$wxUSE_ZIPSTREAM" = "yes"; then
42434   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42435     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42436 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42437   elif test "$wxUSE_ZLIB" = "no"; then
42438     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42439 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42440   else
42441     cat >>confdefs.h <<\_ACEOF
42442 #define wxUSE_ZIPSTREAM 1
42443 _ACEOF
42444
42445   fi
42446 fi
42447
42448 if test "$wxUSE_TARSTREAM" = "yes"; then
42449   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42450     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
42451 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
42452   else
42453     cat >>confdefs.h <<\_ACEOF
42454 #define wxUSE_TARSTREAM 1
42455 _ACEOF
42456
42457   fi
42458 fi
42459
42460 if test "$wxUSE_FILESYSTEM" = "yes"; then
42461   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
42462     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
42463 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
42464     wxUSE_FILESYSTEM=no
42465   else
42466     cat >>confdefs.h <<\_ACEOF
42467 #define wxUSE_FILESYSTEM 1
42468 _ACEOF
42469
42470   fi
42471 fi
42472
42473 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
42474   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
42475     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
42476 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
42477   else
42478     cat >>confdefs.h <<\_ACEOF
42479 #define wxUSE_FS_ARCHIVE 1
42480 _ACEOF
42481
42482   fi
42483 fi
42484
42485 if test "$wxUSE_FS_ZIP" = "yes"; then
42486   if test "$wxUSE_FS_ARCHIVE" != yes; then
42487     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
42488 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
42489   else
42490     cat >>confdefs.h <<\_ACEOF
42491 #define wxUSE_FS_ZIP 1
42492 _ACEOF
42493
42494   fi
42495 fi
42496
42497 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42498   if test "$USE_UNIX" != 1; then
42499     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42500 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42501     wxUSE_ON_FATAL_EXCEPTION=no
42502   else
42503     cat >>confdefs.h <<\_ACEOF
42504 #define wxUSE_ON_FATAL_EXCEPTION 1
42505 _ACEOF
42506
42507   fi
42508 fi
42509
42510 if test "$wxUSE_STACKWALKER" = "yes"; then
42511     cat >>confdefs.h <<\_ACEOF
42512 #define wxUSE_STACKWALKER 1
42513 _ACEOF
42514
42515 fi
42516
42517 if test "$wxUSE_DEBUGREPORT" = "yes"; then
42518     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42519         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42520 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
42521         wxUSE_DEBUGREPORT=no
42522     else
42523         cat >>confdefs.h <<\_ACEOF
42524 #define wxUSE_DEBUGREPORT 1
42525 _ACEOF
42526
42527         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42528             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42529         fi
42530     fi
42531 fi
42532
42533 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42534   cat >>confdefs.h <<\_ACEOF
42535 #define wxUSE_SNGLINST_CHECKER 1
42536 _ACEOF
42537
42538 fi
42539
42540 if test "$wxUSE_BUSYINFO" = "yes"; then
42541   cat >>confdefs.h <<\_ACEOF
42542 #define wxUSE_BUSYINFO 1
42543 _ACEOF
42544
42545 fi
42546
42547 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42548   cat >>confdefs.h <<\_ACEOF
42549 #define wxUSE_STD_IOSTREAM 1
42550 _ACEOF
42551
42552 fi
42553
42554 if test "$wxUSE_STD_STRING" = "yes"; then
42555   cat >>confdefs.h <<\_ACEOF
42556 #define wxUSE_STD_STRING 1
42557 _ACEOF
42558
42559 fi
42560
42561 if test "$wxUSE_STDPATHS" = "yes"; then
42562   cat >>confdefs.h <<\_ACEOF
42563 #define wxUSE_STDPATHS 1
42564 _ACEOF
42565
42566 fi
42567
42568 if test "$wxUSE_TEXTBUFFER" = "yes"; then
42569     cat >>confdefs.h <<\_ACEOF
42570 #define wxUSE_TEXTBUFFER 1
42571 _ACEOF
42572
42573 fi
42574
42575 if test "$wxUSE_TEXTFILE" = "yes"; then
42576   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42577     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42578 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42579   else
42580     cat >>confdefs.h <<\_ACEOF
42581 #define wxUSE_TEXTFILE 1
42582 _ACEOF
42583
42584   fi
42585 fi
42586
42587 if test "$wxUSE_CONFIG" = "yes" ; then
42588   if test "$wxUSE_TEXTFILE" != "yes"; then
42589     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42590 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42591   else
42592     cat >>confdefs.h <<\_ACEOF
42593 #define wxUSE_CONFIG 1
42594 _ACEOF
42595
42596     cat >>confdefs.h <<\_ACEOF
42597 #define wxUSE_CONFIG_NATIVE 1
42598 _ACEOF
42599
42600     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42601   fi
42602 fi
42603
42604 if test "$wxUSE_INTL" = "yes" ; then
42605   if test "$wxUSE_FILE" != "yes"; then
42606     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42607 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42608   else
42609     cat >>confdefs.h <<\_ACEOF
42610 #define wxUSE_INTL 1
42611 _ACEOF
42612
42613     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42614     GUIDIST="$GUIDIST INTL_DIST"
42615   fi
42616 fi
42617
42618 if test "$wxUSE_LOG" = "yes"; then
42619   cat >>confdefs.h <<\_ACEOF
42620 #define wxUSE_LOG 1
42621 _ACEOF
42622
42623
42624     if test "$wxUSE_LOGGUI" = "yes"; then
42625       cat >>confdefs.h <<\_ACEOF
42626 #define wxUSE_LOGGUI 1
42627 _ACEOF
42628
42629     fi
42630
42631     if test "$wxUSE_LOGWINDOW" = "yes"; then
42632       cat >>confdefs.h <<\_ACEOF
42633 #define wxUSE_LOGWINDOW 1
42634 _ACEOF
42635
42636     fi
42637
42638     if test "$wxUSE_LOGDIALOG" = "yes"; then
42639       cat >>confdefs.h <<\_ACEOF
42640 #define wxUSE_LOG_DIALOG 1
42641 _ACEOF
42642
42643     fi
42644
42645         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
42646 fi
42647
42648 if test "$wxUSE_LONGLONG" = "yes"; then
42649   cat >>confdefs.h <<\_ACEOF
42650 #define wxUSE_LONGLONG 1
42651 _ACEOF
42652
42653 fi
42654
42655 if test "$wxUSE_GEOMETRY" = "yes"; then
42656   cat >>confdefs.h <<\_ACEOF
42657 #define wxUSE_GEOMETRY 1
42658 _ACEOF
42659
42660 fi
42661
42662 if test "$wxUSE_STREAMS" = "yes" ; then
42663   cat >>confdefs.h <<\_ACEOF
42664 #define wxUSE_STREAMS 1
42665 _ACEOF
42666
42667 fi
42668
42669 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42670   cat >>confdefs.h <<\_ACEOF
42671 #define wxUSE_PRINTF_POS_PARAMS 1
42672 _ACEOF
42673
42674 fi
42675
42676 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
42677   cat >>confdefs.h <<\_ACEOF
42678 #define wxUSE_OBJC_UNIQUIFYING 1
42679 _ACEOF
42680
42681 fi
42682
42683
42684 if test "$wxUSE_DATETIME" = "yes"; then
42685         { echo "$as_me:$LINENO: checking for strptime" >&5
42686 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
42687 if test "${ac_cv_func_strptime+set}" = set; then
42688   echo $ECHO_N "(cached) $ECHO_C" >&6
42689 else
42690   cat >conftest.$ac_ext <<_ACEOF
42691 /* confdefs.h.  */
42692 _ACEOF
42693 cat confdefs.h >>conftest.$ac_ext
42694 cat >>conftest.$ac_ext <<_ACEOF
42695 /* end confdefs.h.  */
42696 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
42697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42698 #define strptime innocuous_strptime
42699
42700 /* System header to define __stub macros and hopefully few prototypes,
42701     which can conflict with char strptime (); below.
42702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42703     <limits.h> exists even on freestanding compilers.  */
42704
42705 #ifdef __STDC__
42706 # include <limits.h>
42707 #else
42708 # include <assert.h>
42709 #endif
42710
42711 #undef strptime
42712
42713 /* Override any GCC internal prototype to avoid an error.
42714    Use char because int might match the return type of a GCC
42715    builtin and then its argument prototype would still apply.  */
42716 #ifdef __cplusplus
42717 extern "C"
42718 #endif
42719 char strptime ();
42720 /* The GNU C library defines this for functions which it implements
42721     to always fail with ENOSYS.  Some functions are actually named
42722     something starting with __ and the normal name is an alias.  */
42723 #if defined __stub_strptime || defined __stub___strptime
42724 choke me
42725 #endif
42726
42727 int
42728 main ()
42729 {
42730 return strptime ();
42731   ;
42732   return 0;
42733 }
42734 _ACEOF
42735 rm -f conftest.$ac_objext conftest$ac_exeext
42736 if { (ac_try="$ac_link"
42737 case "(($ac_try" in
42738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42739   *) ac_try_echo=$ac_try;;
42740 esac
42741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42742   (eval "$ac_link") 2>conftest.er1
42743   ac_status=$?
42744   grep -v '^ *+' conftest.er1 >conftest.err
42745   rm -f conftest.er1
42746   cat conftest.err >&5
42747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42748   (exit $ac_status); } && {
42749          test -z "$ac_c_werror_flag" ||
42750          test ! -s conftest.err
42751        } && test -s conftest$ac_exeext &&
42752        $as_test_x conftest$ac_exeext; then
42753   ac_cv_func_strptime=yes
42754 else
42755   echo "$as_me: failed program was:" >&5
42756 sed 's/^/| /' conftest.$ac_ext >&5
42757
42758         ac_cv_func_strptime=no
42759 fi
42760
42761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42762       conftest$ac_exeext conftest.$ac_ext
42763 fi
42764 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
42765 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
42766
42767     if test "$ac_cv_func_strptime" = "yes"; then
42768         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
42769 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
42770 if test "${wx_cv_func_strptime_decl+set}" = set; then
42771   echo $ECHO_N "(cached) $ECHO_C" >&6
42772 else
42773
42774                 ac_ext=cpp
42775 ac_cpp='$CXXCPP $CPPFLAGS'
42776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42779
42780                 cat >conftest.$ac_ext <<_ACEOF
42781 /* confdefs.h.  */
42782 _ACEOF
42783 cat confdefs.h >>conftest.$ac_ext
42784 cat >>conftest.$ac_ext <<_ACEOF
42785 /* end confdefs.h.  */
42786
42787                         #include <time.h>
42788
42789 int
42790 main ()
42791 {
42792
42793                         struct tm t;
42794                         strptime("foo", "bar", &t);
42795
42796   ;
42797   return 0;
42798 }
42799 _ACEOF
42800 rm -f conftest.$ac_objext
42801 if { (ac_try="$ac_compile"
42802 case "(($ac_try" in
42803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42804   *) ac_try_echo=$ac_try;;
42805 esac
42806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42807   (eval "$ac_compile") 2>conftest.er1
42808   ac_status=$?
42809   grep -v '^ *+' conftest.er1 >conftest.err
42810   rm -f conftest.er1
42811   cat conftest.err >&5
42812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42813   (exit $ac_status); } && {
42814          test -z "$ac_cxx_werror_flag" ||
42815          test ! -s conftest.err
42816        } && test -s conftest.$ac_objext; then
42817   wx_cv_func_strptime_decl=yes
42818 else
42819   echo "$as_me: failed program was:" >&5
42820 sed 's/^/| /' conftest.$ac_ext >&5
42821
42822         wx_cv_func_strptime_decl=no
42823
42824 fi
42825
42826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42827                 ac_ext=c
42828 ac_cpp='$CPP $CPPFLAGS'
42829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42832
42833
42834
42835 fi
42836 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42837 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
42838     fi
42839     if test "$wx_cv_func_strptime_decl" = "yes"; then
42840         cat >>confdefs.h <<\_ACEOF
42841 #define HAVE_STRPTIME_DECL 1
42842 _ACEOF
42843
42844     else
42845         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
42846     fi
42847     if test "$ac_cv_func_strptime" = "yes"; then
42848                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
42849 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
42850 if test "${wx_cv_func_strptime_ok+set}" = set; then
42851   echo $ECHO_N "(cached) $ECHO_C" >&6
42852 else
42853   if test "$cross_compiling" = yes; then
42854                   wx_cv_func_strptime_ok=no
42855
42856 else
42857   cat >conftest.$ac_ext <<_ACEOF
42858
42859                     #include <stdlib.h>
42860                     #include <time.h>
42861                     #include "confdefs.h"
42862
42863                     $wx_strptime_decl
42864
42865                     int main()
42866                     {
42867                         struct tm t;
42868                         return !!strptime("", "%x", &t);
42869                     }
42870
42871 _ACEOF
42872 rm -f conftest$ac_exeext
42873 if { (ac_try="$ac_link"
42874 case "(($ac_try" in
42875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42876   *) ac_try_echo=$ac_try;;
42877 esac
42878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42879   (eval "$ac_link") 2>&5
42880   ac_status=$?
42881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42883   { (case "(($ac_try" in
42884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42885   *) ac_try_echo=$ac_try;;
42886 esac
42887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42888   (eval "$ac_try") 2>&5
42889   ac_status=$?
42890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42891   (exit $ac_status); }; }; then
42892   wx_cv_func_strptime_ok=yes
42893 else
42894   echo "$as_me: program exited with status $ac_status" >&5
42895 echo "$as_me: failed program was:" >&5
42896 sed 's/^/| /' conftest.$ac_ext >&5
42897
42898 ( exit $ac_status )
42899 wx_cv_func_strptime_ok=no
42900 fi
42901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42902 fi
42903
42904
42905
42906 fi
42907 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
42908 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
42909
42910         if test "$wx_cv_func_strptime_ok" = "yes"; then
42911             cat >>confdefs.h <<\_ACEOF
42912 #define HAVE_STRPTIME 1
42913 _ACEOF
42914
42915         fi
42916     fi
42917
42918             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42919 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
42920 if test "${wx_cv_var_timezone+set}" = set; then
42921   echo $ECHO_N "(cached) $ECHO_C" >&6
42922 else
42923
42924                         ac_ext=cpp
42925 ac_cpp='$CXXCPP $CPPFLAGS'
42926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42929
42930                         cat >conftest.$ac_ext <<_ACEOF
42931 /* confdefs.h.  */
42932 _ACEOF
42933 cat confdefs.h >>conftest.$ac_ext
42934 cat >>conftest.$ac_ext <<_ACEOF
42935 /* end confdefs.h.  */
42936
42937                                 #include <time.h>
42938
42939 int
42940 main ()
42941 {
42942
42943                                 int tz;
42944                                 tz = timezone;
42945
42946   ;
42947   return 0;
42948 }
42949 _ACEOF
42950 rm -f conftest.$ac_objext
42951 if { (ac_try="$ac_compile"
42952 case "(($ac_try" in
42953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42954   *) ac_try_echo=$ac_try;;
42955 esac
42956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42957   (eval "$ac_compile") 2>conftest.er1
42958   ac_status=$?
42959   grep -v '^ *+' conftest.er1 >conftest.err
42960   rm -f conftest.er1
42961   cat conftest.err >&5
42962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42963   (exit $ac_status); } && {
42964          test -z "$ac_cxx_werror_flag" ||
42965          test ! -s conftest.err
42966        } && test -s conftest.$ac_objext; then
42967
42968                                 wx_cv_var_timezone=timezone
42969
42970 else
42971   echo "$as_me: failed program was:" >&5
42972 sed 's/^/| /' conftest.$ac_ext >&5
42973
42974
42975                                 cat >conftest.$ac_ext <<_ACEOF
42976 /* confdefs.h.  */
42977 _ACEOF
42978 cat confdefs.h >>conftest.$ac_ext
42979 cat >>conftest.$ac_ext <<_ACEOF
42980 /* end confdefs.h.  */
42981
42982                                         #include <time.h>
42983
42984 int
42985 main ()
42986 {
42987
42988                                         int tz;
42989                                         tz = _timezone;
42990
42991   ;
42992   return 0;
42993 }
42994 _ACEOF
42995 rm -f conftest.$ac_objext
42996 if { (ac_try="$ac_compile"
42997 case "(($ac_try" in
42998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42999   *) ac_try_echo=$ac_try;;
43000 esac
43001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43002   (eval "$ac_compile") 2>conftest.er1
43003   ac_status=$?
43004   grep -v '^ *+' conftest.er1 >conftest.err
43005   rm -f conftest.er1
43006   cat conftest.err >&5
43007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43008   (exit $ac_status); } && {
43009          test -z "$ac_cxx_werror_flag" ||
43010          test ! -s conftest.err
43011        } && test -s conftest.$ac_objext; then
43012
43013                                         wx_cv_var_timezone=_timezone
43014
43015 else
43016   echo "$as_me: failed program was:" >&5
43017 sed 's/^/| /' conftest.$ac_ext >&5
43018
43019
43020                                         cat >conftest.$ac_ext <<_ACEOF
43021 /* confdefs.h.  */
43022 _ACEOF
43023 cat confdefs.h >>conftest.$ac_ext
43024 cat >>conftest.$ac_ext <<_ACEOF
43025 /* end confdefs.h.  */
43026
43027                                                 #include <time.h>
43028
43029 int
43030 main ()
43031 {
43032
43033                                                 int tz;
43034                                                 tz = __timezone;
43035
43036   ;
43037   return 0;
43038 }
43039 _ACEOF
43040 rm -f conftest.$ac_objext
43041 if { (ac_try="$ac_compile"
43042 case "(($ac_try" in
43043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43044   *) ac_try_echo=$ac_try;;
43045 esac
43046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43047   (eval "$ac_compile") 2>conftest.er1
43048   ac_status=$?
43049   grep -v '^ *+' conftest.er1 >conftest.err
43050   rm -f conftest.er1
43051   cat conftest.err >&5
43052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43053   (exit $ac_status); } && {
43054          test -z "$ac_cxx_werror_flag" ||
43055          test ! -s conftest.err
43056        } && test -s conftest.$ac_objext; then
43057
43058                                                 wx_cv_var_timezone=__timezone
43059
43060 else
43061   echo "$as_me: failed program was:" >&5
43062 sed 's/^/| /' conftest.$ac_ext >&5
43063
43064
43065                                                 if test "$USE_DOS" = 0 ; then
43066                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43067 echo "$as_me: WARNING: no timezone variable" >&2;}
43068                                                 fi
43069
43070
43071 fi
43072
43073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43074
43075
43076 fi
43077
43078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43079
43080
43081 fi
43082
43083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43084                         ac_ext=c
43085 ac_cpp='$CPP $CPPFLAGS'
43086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43089
43090
43091
43092 fi
43093 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43094 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
43095
43096         if test "x$wx_cv_var_timezone" != x ; then
43097         cat >>confdefs.h <<_ACEOF
43098 #define WX_TIMEZONE $wx_cv_var_timezone
43099 _ACEOF
43100
43101     fi
43102
43103
43104 for ac_func in localtime
43105 do
43106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43110   echo $ECHO_N "(cached) $ECHO_C" >&6
43111 else
43112   cat >conftest.$ac_ext <<_ACEOF
43113 /* confdefs.h.  */
43114 _ACEOF
43115 cat confdefs.h >>conftest.$ac_ext
43116 cat >>conftest.$ac_ext <<_ACEOF
43117 /* end confdefs.h.  */
43118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43120 #define $ac_func innocuous_$ac_func
43121
43122 /* System header to define __stub macros and hopefully few prototypes,
43123     which can conflict with char $ac_func (); below.
43124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43125     <limits.h> exists even on freestanding compilers.  */
43126
43127 #ifdef __STDC__
43128 # include <limits.h>
43129 #else
43130 # include <assert.h>
43131 #endif
43132
43133 #undef $ac_func
43134
43135 /* Override any GCC internal prototype to avoid an error.
43136    Use char because int might match the return type of a GCC
43137    builtin and then its argument prototype would still apply.  */
43138 #ifdef __cplusplus
43139 extern "C"
43140 #endif
43141 char $ac_func ();
43142 /* The GNU C library defines this for functions which it implements
43143     to always fail with ENOSYS.  Some functions are actually named
43144     something starting with __ and the normal name is an alias.  */
43145 #if defined __stub_$ac_func || defined __stub___$ac_func
43146 choke me
43147 #endif
43148
43149 int
43150 main ()
43151 {
43152 return $ac_func ();
43153   ;
43154   return 0;
43155 }
43156 _ACEOF
43157 rm -f conftest.$ac_objext conftest$ac_exeext
43158 if { (ac_try="$ac_link"
43159 case "(($ac_try" in
43160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43161   *) ac_try_echo=$ac_try;;
43162 esac
43163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43164   (eval "$ac_link") 2>conftest.er1
43165   ac_status=$?
43166   grep -v '^ *+' conftest.er1 >conftest.err
43167   rm -f conftest.er1
43168   cat conftest.err >&5
43169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43170   (exit $ac_status); } && {
43171          test -z "$ac_c_werror_flag" ||
43172          test ! -s conftest.err
43173        } && test -s conftest$ac_exeext &&
43174        $as_test_x conftest$ac_exeext; then
43175   eval "$as_ac_var=yes"
43176 else
43177   echo "$as_me: failed program was:" >&5
43178 sed 's/^/| /' conftest.$ac_ext >&5
43179
43180         eval "$as_ac_var=no"
43181 fi
43182
43183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43184       conftest$ac_exeext conftest.$ac_ext
43185 fi
43186 ac_res=`eval echo '${'$as_ac_var'}'`
43187                { echo "$as_me:$LINENO: result: $ac_res" >&5
43188 echo "${ECHO_T}$ac_res" >&6; }
43189 if test `eval echo '${'$as_ac_var'}'` = yes; then
43190   cat >>confdefs.h <<_ACEOF
43191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43192 _ACEOF
43193
43194 fi
43195 done
43196
43197
43198     if test "$ac_cv_func_localtime" = "yes"; then
43199         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43200 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
43201 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43202   echo $ECHO_N "(cached) $ECHO_C" >&6
43203 else
43204
43205             cat >conftest.$ac_ext <<_ACEOF
43206 /* confdefs.h.  */
43207 _ACEOF
43208 cat confdefs.h >>conftest.$ac_ext
43209 cat >>conftest.$ac_ext <<_ACEOF
43210 /* end confdefs.h.  */
43211
43212                     #include <time.h>
43213
43214 int
43215 main ()
43216 {
43217
43218                     struct tm tm;
43219                     tm.tm_gmtoff++;
43220
43221   ;
43222   return 0;
43223 }
43224 _ACEOF
43225 rm -f conftest.$ac_objext
43226 if { (ac_try="$ac_compile"
43227 case "(($ac_try" in
43228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43229   *) ac_try_echo=$ac_try;;
43230 esac
43231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43232   (eval "$ac_compile") 2>conftest.er1
43233   ac_status=$?
43234   grep -v '^ *+' conftest.er1 >conftest.err
43235   rm -f conftest.er1
43236   cat conftest.err >&5
43237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238   (exit $ac_status); } && {
43239          test -z "$ac_c_werror_flag" ||
43240          test ! -s conftest.err
43241        } && test -s conftest.$ac_objext; then
43242
43243                     wx_cv_struct_tm_has_gmtoff=yes
43244
43245 else
43246   echo "$as_me: failed program was:" >&5
43247 sed 's/^/| /' conftest.$ac_ext >&5
43248
43249         wx_cv_struct_tm_has_gmtoff=no
43250
43251 fi
43252
43253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43254
43255 fi
43256 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43257 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
43258     fi
43259
43260     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43261         cat >>confdefs.h <<\_ACEOF
43262 #define WX_GMTOFF_IN_TM 1
43263 _ACEOF
43264
43265     fi
43266
43267
43268
43269 for ac_func in gettimeofday ftime
43270 do
43271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43275   echo $ECHO_N "(cached) $ECHO_C" >&6
43276 else
43277   cat >conftest.$ac_ext <<_ACEOF
43278 /* confdefs.h.  */
43279 _ACEOF
43280 cat confdefs.h >>conftest.$ac_ext
43281 cat >>conftest.$ac_ext <<_ACEOF
43282 /* end confdefs.h.  */
43283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43285 #define $ac_func innocuous_$ac_func
43286
43287 /* System header to define __stub macros and hopefully few prototypes,
43288     which can conflict with char $ac_func (); below.
43289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43290     <limits.h> exists even on freestanding compilers.  */
43291
43292 #ifdef __STDC__
43293 # include <limits.h>
43294 #else
43295 # include <assert.h>
43296 #endif
43297
43298 #undef $ac_func
43299
43300 /* Override any GCC internal prototype to avoid an error.
43301    Use char because int might match the return type of a GCC
43302    builtin and then its argument prototype would still apply.  */
43303 #ifdef __cplusplus
43304 extern "C"
43305 #endif
43306 char $ac_func ();
43307 /* The GNU C library defines this for functions which it implements
43308     to always fail with ENOSYS.  Some functions are actually named
43309     something starting with __ and the normal name is an alias.  */
43310 #if defined __stub_$ac_func || defined __stub___$ac_func
43311 choke me
43312 #endif
43313
43314 int
43315 main ()
43316 {
43317 return $ac_func ();
43318   ;
43319   return 0;
43320 }
43321 _ACEOF
43322 rm -f conftest.$ac_objext conftest$ac_exeext
43323 if { (ac_try="$ac_link"
43324 case "(($ac_try" in
43325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43326   *) ac_try_echo=$ac_try;;
43327 esac
43328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43329   (eval "$ac_link") 2>conftest.er1
43330   ac_status=$?
43331   grep -v '^ *+' conftest.er1 >conftest.err
43332   rm -f conftest.er1
43333   cat conftest.err >&5
43334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43335   (exit $ac_status); } && {
43336          test -z "$ac_c_werror_flag" ||
43337          test ! -s conftest.err
43338        } && test -s conftest$ac_exeext &&
43339        $as_test_x conftest$ac_exeext; then
43340   eval "$as_ac_var=yes"
43341 else
43342   echo "$as_me: failed program was:" >&5
43343 sed 's/^/| /' conftest.$ac_ext >&5
43344
43345         eval "$as_ac_var=no"
43346 fi
43347
43348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43349       conftest$ac_exeext conftest.$ac_ext
43350 fi
43351 ac_res=`eval echo '${'$as_ac_var'}'`
43352                { echo "$as_me:$LINENO: result: $ac_res" >&5
43353 echo "${ECHO_T}$ac_res" >&6; }
43354 if test `eval echo '${'$as_ac_var'}'` = yes; then
43355   cat >>confdefs.h <<_ACEOF
43356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43357 _ACEOF
43358  break
43359 fi
43360 done
43361
43362
43363     if test "$ac_cv_func_gettimeofday" = "yes"; then
43364         { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43365 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43366 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43367   echo $ECHO_N "(cached) $ECHO_C" >&6
43368 else
43369
43370                         cat >conftest.$ac_ext <<_ACEOF
43371 /* confdefs.h.  */
43372 _ACEOF
43373 cat confdefs.h >>conftest.$ac_ext
43374 cat >>conftest.$ac_ext <<_ACEOF
43375 /* end confdefs.h.  */
43376
43377                     #include <sys/time.h>
43378                     #include <unistd.h>
43379
43380 int
43381 main ()
43382 {
43383
43384                     struct timeval tv;
43385                     gettimeofday(&tv, NULL);
43386
43387   ;
43388   return 0;
43389 }
43390 _ACEOF
43391 rm -f conftest.$ac_objext
43392 if { (ac_try="$ac_compile"
43393 case "(($ac_try" in
43394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43395   *) ac_try_echo=$ac_try;;
43396 esac
43397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43398   (eval "$ac_compile") 2>conftest.er1
43399   ac_status=$?
43400   grep -v '^ *+' conftest.er1 >conftest.err
43401   rm -f conftest.er1
43402   cat conftest.err >&5
43403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43404   (exit $ac_status); } && {
43405          test -z "$ac_c_werror_flag" ||
43406          test ! -s conftest.err
43407        } && test -s conftest.$ac_objext; then
43408   wx_cv_func_gettimeofday_has_2_args=yes
43409 else
43410   echo "$as_me: failed program was:" >&5
43411 sed 's/^/| /' conftest.$ac_ext >&5
43412
43413         cat >conftest.$ac_ext <<_ACEOF
43414 /* confdefs.h.  */
43415 _ACEOF
43416 cat confdefs.h >>conftest.$ac_ext
43417 cat >>conftest.$ac_ext <<_ACEOF
43418 /* end confdefs.h.  */
43419
43420                         #include <sys/time.h>
43421                         #include <unistd.h>
43422
43423 int
43424 main ()
43425 {
43426
43427                         struct timeval tv;
43428                         gettimeofday(&tv);
43429
43430   ;
43431   return 0;
43432 }
43433 _ACEOF
43434 rm -f conftest.$ac_objext
43435 if { (ac_try="$ac_compile"
43436 case "(($ac_try" in
43437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43438   *) ac_try_echo=$ac_try;;
43439 esac
43440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43441   (eval "$ac_compile") 2>conftest.er1
43442   ac_status=$?
43443   grep -v '^ *+' conftest.er1 >conftest.err
43444   rm -f conftest.er1
43445   cat conftest.err >&5
43446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43447   (exit $ac_status); } && {
43448          test -z "$ac_c_werror_flag" ||
43449          test ! -s conftest.err
43450        } && test -s conftest.$ac_objext; then
43451   wx_cv_func_gettimeofday_has_2_args=no
43452 else
43453   echo "$as_me: failed program was:" >&5
43454 sed 's/^/| /' conftest.$ac_ext >&5
43455
43456
43457                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43458 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43459                         wx_cv_func_gettimeofday_has_2_args=unknown
43460
43461
43462 fi
43463
43464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43465
43466 fi
43467
43468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43469
43470 fi
43471 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43472 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43473
43474         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43475             cat >>confdefs.h <<\_ACEOF
43476 #define WX_GETTIMEOFDAY_NO_TZ 1
43477 _ACEOF
43478
43479         fi
43480     fi
43481
43482     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43483 fi
43484
43485
43486 if test "$wxUSE_SOCKETS" = "yes"; then
43487     if test "$wxUSE_MGL" = "1"; then
43488         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43489 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43490         wxUSE_SOCKETS="no"
43491     fi
43492 fi
43493
43494 if test "$wxUSE_SOCKETS" = "yes"; then
43495         if test "$TOOLKIT" != "MSW"; then
43496                 { echo "$as_me:$LINENO: checking for socket" >&5
43497 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
43498 if test "${ac_cv_func_socket+set}" = set; then
43499   echo $ECHO_N "(cached) $ECHO_C" >&6
43500 else
43501   cat >conftest.$ac_ext <<_ACEOF
43502 /* confdefs.h.  */
43503 _ACEOF
43504 cat confdefs.h >>conftest.$ac_ext
43505 cat >>conftest.$ac_ext <<_ACEOF
43506 /* end confdefs.h.  */
43507 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
43508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43509 #define socket innocuous_socket
43510
43511 /* System header to define __stub macros and hopefully few prototypes,
43512     which can conflict with char socket (); below.
43513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43514     <limits.h> exists even on freestanding compilers.  */
43515
43516 #ifdef __STDC__
43517 # include <limits.h>
43518 #else
43519 # include <assert.h>
43520 #endif
43521
43522 #undef socket
43523
43524 /* Override any GCC internal prototype to avoid an error.
43525    Use char because int might match the return type of a GCC
43526    builtin and then its argument prototype would still apply.  */
43527 #ifdef __cplusplus
43528 extern "C"
43529 #endif
43530 char socket ();
43531 /* The GNU C library defines this for functions which it implements
43532     to always fail with ENOSYS.  Some functions are actually named
43533     something starting with __ and the normal name is an alias.  */
43534 #if defined __stub_socket || defined __stub___socket
43535 choke me
43536 #endif
43537
43538 int
43539 main ()
43540 {
43541 return socket ();
43542   ;
43543   return 0;
43544 }
43545 _ACEOF
43546 rm -f conftest.$ac_objext conftest$ac_exeext
43547 if { (ac_try="$ac_link"
43548 case "(($ac_try" in
43549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43550   *) ac_try_echo=$ac_try;;
43551 esac
43552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43553   (eval "$ac_link") 2>conftest.er1
43554   ac_status=$?
43555   grep -v '^ *+' conftest.er1 >conftest.err
43556   rm -f conftest.er1
43557   cat conftest.err >&5
43558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559   (exit $ac_status); } && {
43560          test -z "$ac_c_werror_flag" ||
43561          test ! -s conftest.err
43562        } && test -s conftest$ac_exeext &&
43563        $as_test_x conftest$ac_exeext; then
43564   ac_cv_func_socket=yes
43565 else
43566   echo "$as_me: failed program was:" >&5
43567 sed 's/^/| /' conftest.$ac_ext >&5
43568
43569         ac_cv_func_socket=no
43570 fi
43571
43572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43573       conftest$ac_exeext conftest.$ac_ext
43574 fi
43575 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43576 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
43577 if test $ac_cv_func_socket = yes; then
43578   :
43579 else
43580
43581                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43582 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
43583 if test "${ac_cv_lib_socket_socket+set}" = set; then
43584   echo $ECHO_N "(cached) $ECHO_C" >&6
43585 else
43586   ac_check_lib_save_LIBS=$LIBS
43587 LIBS="-lsocket  $LIBS"
43588 cat >conftest.$ac_ext <<_ACEOF
43589 /* confdefs.h.  */
43590 _ACEOF
43591 cat confdefs.h >>conftest.$ac_ext
43592 cat >>conftest.$ac_ext <<_ACEOF
43593 /* end confdefs.h.  */
43594
43595 /* Override any GCC internal prototype to avoid an error.
43596    Use char because int might match the return type of a GCC
43597    builtin and then its argument prototype would still apply.  */
43598 #ifdef __cplusplus
43599 extern "C"
43600 #endif
43601 char socket ();
43602 int
43603 main ()
43604 {
43605 return socket ();
43606   ;
43607   return 0;
43608 }
43609 _ACEOF
43610 rm -f conftest.$ac_objext conftest$ac_exeext
43611 if { (ac_try="$ac_link"
43612 case "(($ac_try" in
43613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43614   *) ac_try_echo=$ac_try;;
43615 esac
43616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43617   (eval "$ac_link") 2>conftest.er1
43618   ac_status=$?
43619   grep -v '^ *+' conftest.er1 >conftest.err
43620   rm -f conftest.er1
43621   cat conftest.err >&5
43622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43623   (exit $ac_status); } && {
43624          test -z "$ac_c_werror_flag" ||
43625          test ! -s conftest.err
43626        } && test -s conftest$ac_exeext &&
43627        $as_test_x conftest$ac_exeext; then
43628   ac_cv_lib_socket_socket=yes
43629 else
43630   echo "$as_me: failed program was:" >&5
43631 sed 's/^/| /' conftest.$ac_ext >&5
43632
43633         ac_cv_lib_socket_socket=no
43634 fi
43635
43636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43637       conftest$ac_exeext conftest.$ac_ext
43638 LIBS=$ac_check_lib_save_LIBS
43639 fi
43640 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43641 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
43642 if test $ac_cv_lib_socket_socket = yes; then
43643   if test "$INET_LINK" != " -lsocket"; then
43644                         INET_LINK="$INET_LINK -lsocket"
43645                     fi
43646 else
43647
43648                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43649 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43650                         wxUSE_SOCKETS=no
43651
43652
43653 fi
43654
43655
43656
43657 fi
43658
43659     fi
43660 fi
43661
43662 if test "$wxUSE_SOCKETS" = "yes" ; then
43663                 if test "$TOOLKIT" != "MSW"; then
43664                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
43665 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
43666 if test "${wx_cv_type_getsockname3+set}" = set; then
43667   echo $ECHO_N "(cached) $ECHO_C" >&6
43668 else
43669
43670                 ac_ext=cpp
43671 ac_cpp='$CXXCPP $CPPFLAGS'
43672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43675
43676                 cat >conftest.$ac_ext <<_ACEOF
43677 /* confdefs.h.  */
43678 _ACEOF
43679 cat confdefs.h >>conftest.$ac_ext
43680 cat >>conftest.$ac_ext <<_ACEOF
43681 /* end confdefs.h.  */
43682
43683                         #include <sys/types.h>
43684                         #include <sys/socket.h>
43685
43686 int
43687 main ()
43688 {
43689
43690                         socklen_t len;
43691                         getsockname(0, 0, &len);
43692
43693   ;
43694   return 0;
43695 }
43696 _ACEOF
43697 rm -f conftest.$ac_objext
43698 if { (ac_try="$ac_compile"
43699 case "(($ac_try" in
43700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43701   *) ac_try_echo=$ac_try;;
43702 esac
43703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43704   (eval "$ac_compile") 2>conftest.er1
43705   ac_status=$?
43706   grep -v '^ *+' conftest.er1 >conftest.err
43707   rm -f conftest.er1
43708   cat conftest.err >&5
43709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43710   (exit $ac_status); } && {
43711          test -z "$ac_cxx_werror_flag" ||
43712          test ! -s conftest.err
43713        } && test -s conftest.$ac_objext; then
43714   wx_cv_type_getsockname3=socklen_t
43715 else
43716   echo "$as_me: failed program was:" >&5
43717 sed 's/^/| /' conftest.$ac_ext >&5
43718
43719
43720                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
43721                         if test "$GCC" = yes ; then
43722                             CFLAGS="-Werror $CFLAGS"
43723                         fi
43724
43725                         cat >conftest.$ac_ext <<_ACEOF
43726 /* confdefs.h.  */
43727 _ACEOF
43728 cat confdefs.h >>conftest.$ac_ext
43729 cat >>conftest.$ac_ext <<_ACEOF
43730 /* end confdefs.h.  */
43731
43732                                 #include <sys/types.h>
43733                                 #include <sys/socket.h>
43734
43735 int
43736 main ()
43737 {
43738
43739                                 size_t len;
43740                                 getsockname(0, 0, &len);
43741
43742   ;
43743   return 0;
43744 }
43745 _ACEOF
43746 rm -f conftest.$ac_objext
43747 if { (ac_try="$ac_compile"
43748 case "(($ac_try" in
43749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43750   *) ac_try_echo=$ac_try;;
43751 esac
43752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43753   (eval "$ac_compile") 2>conftest.er1
43754   ac_status=$?
43755   grep -v '^ *+' conftest.er1 >conftest.err
43756   rm -f conftest.er1
43757   cat conftest.err >&5
43758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43759   (exit $ac_status); } && {
43760          test -z "$ac_cxx_werror_flag" ||
43761          test ! -s conftest.err
43762        } && test -s conftest.$ac_objext; then
43763   wx_cv_type_getsockname3=size_t
43764 else
43765   echo "$as_me: failed program was:" >&5
43766 sed 's/^/| /' conftest.$ac_ext >&5
43767
43768         cat >conftest.$ac_ext <<_ACEOF
43769 /* confdefs.h.  */
43770 _ACEOF
43771 cat confdefs.h >>conftest.$ac_ext
43772 cat >>conftest.$ac_ext <<_ACEOF
43773 /* end confdefs.h.  */
43774
43775                                     #include <sys/types.h>
43776                                     #include <sys/socket.h>
43777
43778 int
43779 main ()
43780 {
43781
43782                                     int len;
43783                                     getsockname(0, 0, &len);
43784
43785   ;
43786   return 0;
43787 }
43788 _ACEOF
43789 rm -f conftest.$ac_objext
43790 if { (ac_try="$ac_compile"
43791 case "(($ac_try" in
43792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43793   *) ac_try_echo=$ac_try;;
43794 esac
43795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43796   (eval "$ac_compile") 2>conftest.er1
43797   ac_status=$?
43798   grep -v '^ *+' conftest.er1 >conftest.err
43799   rm -f conftest.er1
43800   cat conftest.err >&5
43801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43802   (exit $ac_status); } && {
43803          test -z "$ac_cxx_werror_flag" ||
43804          test ! -s conftest.err
43805        } && test -s conftest.$ac_objext; then
43806   wx_cv_type_getsockname3=int
43807 else
43808   echo "$as_me: failed program was:" >&5
43809 sed 's/^/| /' conftest.$ac_ext >&5
43810
43811         wx_cv_type_getsockname3=unknown
43812
43813 fi
43814
43815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43816
43817 fi
43818
43819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43820
43821                         CFLAGS="$CFLAGS_OLD"
43822
43823
43824 fi
43825
43826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43827                 ac_ext=c
43828 ac_cpp='$CPP $CPPFLAGS'
43829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43832
43833
43834 fi
43835 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43836 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
43837
43838         if test "$wx_cv_type_getsockname3" = "unknown"; then
43839             wxUSE_SOCKETS=no
43840             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43841 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43842         else
43843             cat >>confdefs.h <<_ACEOF
43844 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
43845 _ACEOF
43846
43847         fi
43848                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43849 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
43850 if test "${wx_cv_type_getsockopt5+set}" = set; then
43851   echo $ECHO_N "(cached) $ECHO_C" >&6
43852 else
43853
43854                                                                                                 ac_ext=cpp
43855 ac_cpp='$CXXCPP $CPPFLAGS'
43856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43859
43860                 cat >conftest.$ac_ext <<_ACEOF
43861 /* confdefs.h.  */
43862 _ACEOF
43863 cat confdefs.h >>conftest.$ac_ext
43864 cat >>conftest.$ac_ext <<_ACEOF
43865 /* end confdefs.h.  */
43866
43867                         #include <sys/types.h>
43868                         #include <sys/socket.h>
43869
43870 int
43871 main ()
43872 {
43873
43874                         socklen_t len;
43875                         getsockopt(0, 0, 0, 0, &len);
43876
43877   ;
43878   return 0;
43879 }
43880 _ACEOF
43881 rm -f conftest.$ac_objext
43882 if { (ac_try="$ac_compile"
43883 case "(($ac_try" in
43884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43885   *) ac_try_echo=$ac_try;;
43886 esac
43887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43888   (eval "$ac_compile") 2>conftest.er1
43889   ac_status=$?
43890   grep -v '^ *+' conftest.er1 >conftest.err
43891   rm -f conftest.er1
43892   cat conftest.err >&5
43893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43894   (exit $ac_status); } && {
43895          test -z "$ac_cxx_werror_flag" ||
43896          test ! -s conftest.err
43897        } && test -s conftest.$ac_objext; then
43898   wx_cv_type_getsockopt5=socklen_t
43899 else
43900   echo "$as_me: failed program was:" >&5
43901 sed 's/^/| /' conftest.$ac_ext >&5
43902
43903
43904                         cat >conftest.$ac_ext <<_ACEOF
43905 /* confdefs.h.  */
43906 _ACEOF
43907 cat confdefs.h >>conftest.$ac_ext
43908 cat >>conftest.$ac_ext <<_ACEOF
43909 /* end confdefs.h.  */
43910
43911                                 #include <sys/types.h>
43912                                 #include <sys/socket.h>
43913
43914 int
43915 main ()
43916 {
43917
43918                                 size_t len;
43919                                 getsockopt(0, 0, 0, 0, &len);
43920
43921   ;
43922   return 0;
43923 }
43924 _ACEOF
43925 rm -f conftest.$ac_objext
43926 if { (ac_try="$ac_compile"
43927 case "(($ac_try" in
43928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43929   *) ac_try_echo=$ac_try;;
43930 esac
43931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43932   (eval "$ac_compile") 2>conftest.er1
43933   ac_status=$?
43934   grep -v '^ *+' conftest.er1 >conftest.err
43935   rm -f conftest.er1
43936   cat conftest.err >&5
43937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43938   (exit $ac_status); } && {
43939          test -z "$ac_cxx_werror_flag" ||
43940          test ! -s conftest.err
43941        } && test -s conftest.$ac_objext; then
43942   wx_cv_type_getsockopt5=size_t
43943 else
43944   echo "$as_me: failed program was:" >&5
43945 sed 's/^/| /' conftest.$ac_ext >&5
43946
43947         cat >conftest.$ac_ext <<_ACEOF
43948 /* confdefs.h.  */
43949 _ACEOF
43950 cat confdefs.h >>conftest.$ac_ext
43951 cat >>conftest.$ac_ext <<_ACEOF
43952 /* end confdefs.h.  */
43953
43954                                     #include <sys/types.h>
43955                                     #include <sys/socket.h>
43956
43957 int
43958 main ()
43959 {
43960
43961                                     int len;
43962                                     getsockopt(0, 0, 0, 0, &len);
43963
43964   ;
43965   return 0;
43966 }
43967 _ACEOF
43968 rm -f conftest.$ac_objext
43969 if { (ac_try="$ac_compile"
43970 case "(($ac_try" in
43971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43972   *) ac_try_echo=$ac_try;;
43973 esac
43974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43975   (eval "$ac_compile") 2>conftest.er1
43976   ac_status=$?
43977   grep -v '^ *+' conftest.er1 >conftest.err
43978   rm -f conftest.er1
43979   cat conftest.err >&5
43980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43981   (exit $ac_status); } && {
43982          test -z "$ac_cxx_werror_flag" ||
43983          test ! -s conftest.err
43984        } && test -s conftest.$ac_objext; then
43985   wx_cv_type_getsockopt5=int
43986 else
43987   echo "$as_me: failed program was:" >&5
43988 sed 's/^/| /' conftest.$ac_ext >&5
43989
43990         wx_cv_type_getsockopt5=unknown
43991
43992 fi
43993
43994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43995
43996 fi
43997
43998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43999
44000
44001 fi
44002
44003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44004                 ac_ext=c
44005 ac_cpp='$CPP $CPPFLAGS'
44006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44009
44010
44011 fi
44012 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44013 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44014
44015         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44016             wxUSE_SOCKETS=no
44017             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44018 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44019         else
44020             cat >>confdefs.h <<_ACEOF
44021 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44022 _ACEOF
44023
44024         fi
44025     fi
44026 fi
44027
44028 if test "$wxUSE_SOCKETS" = "yes" ; then
44029     cat >>confdefs.h <<\_ACEOF
44030 #define wxUSE_SOCKETS 1
44031 _ACEOF
44032
44033     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44034 fi
44035
44036 if test "$wxUSE_PROTOCOL" = "yes"; then
44037     if test "$wxUSE_SOCKETS" != "yes"; then
44038         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44039 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44040         wxUSE_PROTOCOL=no
44041     fi
44042 fi
44043
44044 if test "$wxUSE_PROTOCOL" = "yes"; then
44045     cat >>confdefs.h <<\_ACEOF
44046 #define wxUSE_PROTOCOL 1
44047 _ACEOF
44048
44049
44050     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44051         cat >>confdefs.h <<\_ACEOF
44052 #define wxUSE_PROTOCOL_HTTP 1
44053 _ACEOF
44054
44055     fi
44056     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44057         cat >>confdefs.h <<\_ACEOF
44058 #define wxUSE_PROTOCOL_FTP 1
44059 _ACEOF
44060
44061     fi
44062     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44063         cat >>confdefs.h <<\_ACEOF
44064 #define wxUSE_PROTOCOL_FILE 1
44065 _ACEOF
44066
44067     fi
44068 else
44069     if test "$wxUSE_FS_INET" = "yes"; then
44070         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44071 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44072         wxUSE_FS_INET="no"
44073     fi
44074 fi
44075
44076 if test "$wxUSE_URL" = "yes"; then
44077     if test "$wxUSE_PROTOCOL" != "yes"; then
44078         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44079 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44080         wxUSE_URL=no
44081     fi
44082     if test "$wxUSE_URL" = "yes"; then
44083         cat >>confdefs.h <<\_ACEOF
44084 #define wxUSE_URL 1
44085 _ACEOF
44086
44087     fi
44088 fi
44089
44090 if test "$wxUSE_VARIANT" = "yes"; then
44091     cat >>confdefs.h <<\_ACEOF
44092 #define wxUSE_VARIANT 1
44093 _ACEOF
44094
44095 fi
44096
44097 if test "$wxUSE_FS_INET" = "yes"; then
44098   cat >>confdefs.h <<\_ACEOF
44099 #define wxUSE_FS_INET 1
44100 _ACEOF
44101
44102 fi
44103
44104
44105 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44106     wxUSE_JOYSTICK=no
44107
44108         if test "$TOOLKIT" = "MSW"; then
44109         wxUSE_JOYSTICK=yes
44110
44111         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44112         if test "$USE_DARWIN" = 1; then
44113                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44114 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44115             ac_ext=cpp
44116 ac_cpp='$CXXCPP $CPPFLAGS'
44117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44120
44121             cat >conftest.$ac_ext <<_ACEOF
44122 /* confdefs.h.  */
44123 _ACEOF
44124 cat confdefs.h >>conftest.$ac_ext
44125 cat >>conftest.$ac_ext <<_ACEOF
44126 /* end confdefs.h.  */
44127  #include <IOKit/hid/IOHIDLib.h>
44128 int
44129 main ()
44130 {
44131  IOHIDQueueInterface *qi = NULL;
44132                               IOHIDCallbackFunction cb = NULL;
44133                               qi->setEventCallout(NULL, cb, NULL, NULL);
44134   ;
44135   return 0;
44136 }
44137 _ACEOF
44138 rm -f conftest.$ac_objext
44139 if { (ac_try="$ac_compile"
44140 case "(($ac_try" in
44141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44142   *) ac_try_echo=$ac_try;;
44143 esac
44144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44145   (eval "$ac_compile") 2>conftest.er1
44146   ac_status=$?
44147   grep -v '^ *+' conftest.er1 >conftest.err
44148   rm -f conftest.er1
44149   cat conftest.err >&5
44150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44151   (exit $ac_status); } && {
44152          test -z "$ac_cxx_werror_flag" ||
44153          test ! -s conftest.err
44154        } && test -s conftest.$ac_objext; then
44155    wxUSE_JOYSTICK=yes
44156
44157 else
44158   echo "$as_me: failed program was:" >&5
44159 sed 's/^/| /' conftest.$ac_ext >&5
44160
44161
44162 fi
44163
44164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44165             ac_ext=c
44166 ac_cpp='$CPP $CPPFLAGS'
44167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44170
44171             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44172 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
44173         fi
44174
44175         else
44176                 if test "$wxUSE_MGL" != "1"; then
44177                                                                                     { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
44178 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
44179 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
44180   echo $ECHO_N "(cached) $ECHO_C" >&6
44181 else
44182   cat >conftest.$ac_ext <<_ACEOF
44183 /* confdefs.h.  */
44184 _ACEOF
44185 cat confdefs.h >>conftest.$ac_ext
44186 cat >>conftest.$ac_ext <<_ACEOF
44187 /* end confdefs.h.  */
44188 $ac_includes_default
44189
44190 #include <linux/joystick.h>
44191 _ACEOF
44192 rm -f conftest.$ac_objext
44193 if { (ac_try="$ac_compile"
44194 case "(($ac_try" in
44195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44196   *) ac_try_echo=$ac_try;;
44197 esac
44198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44199   (eval "$ac_compile") 2>conftest.er1
44200   ac_status=$?
44201   grep -v '^ *+' conftest.er1 >conftest.err
44202   rm -f conftest.er1
44203   cat conftest.err >&5
44204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44205   (exit $ac_status); } && {
44206          test -z "$ac_c_werror_flag" ||
44207          test ! -s conftest.err
44208        } && test -s conftest.$ac_objext; then
44209   ac_cv_header_linux_joystick_h=yes
44210 else
44211   echo "$as_me: failed program was:" >&5
44212 sed 's/^/| /' conftest.$ac_ext >&5
44213
44214         ac_cv_header_linux_joystick_h=no
44215 fi
44216
44217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44218 fi
44219 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
44220 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
44221 if test $ac_cv_header_linux_joystick_h = yes; then
44222   wxUSE_JOYSTICK=yes
44223 fi
44224
44225
44226         fi
44227     fi
44228
44229     if test "$wxUSE_JOYSTICK" = "yes"; then
44230         cat >>confdefs.h <<\_ACEOF
44231 #define wxUSE_JOYSTICK 1
44232 _ACEOF
44233
44234         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44235     else
44236         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44237 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
44238     fi
44239 fi
44240
44241
44242
44243 if test "$wxUSE_FONTMAP" = "yes" ; then
44244   cat >>confdefs.h <<\_ACEOF
44245 #define wxUSE_FONTMAP 1
44246 _ACEOF
44247
44248 fi
44249
44250 if test "$wxUSE_UNICODE" = "yes" ; then
44251   cat >>confdefs.h <<\_ACEOF
44252 #define wxUSE_UNICODE 1
44253 _ACEOF
44254
44255
44256   if test "$USE_WIN32" != 1; then
44257       wxUSE_UNICODE_MSLU=no
44258   fi
44259
44260   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44261         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44262 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
44263 if test "${ac_cv_lib_unicows_main+set}" = set; then
44264   echo $ECHO_N "(cached) $ECHO_C" >&6
44265 else
44266   ac_check_lib_save_LIBS=$LIBS
44267 LIBS="-lunicows  $LIBS"
44268 cat >conftest.$ac_ext <<_ACEOF
44269 /* confdefs.h.  */
44270 _ACEOF
44271 cat confdefs.h >>conftest.$ac_ext
44272 cat >>conftest.$ac_ext <<_ACEOF
44273 /* end confdefs.h.  */
44274
44275
44276 int
44277 main ()
44278 {
44279 return main ();
44280   ;
44281   return 0;
44282 }
44283 _ACEOF
44284 rm -f conftest.$ac_objext conftest$ac_exeext
44285 if { (ac_try="$ac_link"
44286 case "(($ac_try" in
44287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44288   *) ac_try_echo=$ac_try;;
44289 esac
44290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44291   (eval "$ac_link") 2>conftest.er1
44292   ac_status=$?
44293   grep -v '^ *+' conftest.er1 >conftest.err
44294   rm -f conftest.er1
44295   cat conftest.err >&5
44296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44297   (exit $ac_status); } && {
44298          test -z "$ac_c_werror_flag" ||
44299          test ! -s conftest.err
44300        } && test -s conftest$ac_exeext &&
44301        $as_test_x conftest$ac_exeext; then
44302   ac_cv_lib_unicows_main=yes
44303 else
44304   echo "$as_me: failed program was:" >&5
44305 sed 's/^/| /' conftest.$ac_ext >&5
44306
44307         ac_cv_lib_unicows_main=no
44308 fi
44309
44310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44311       conftest$ac_exeext conftest.$ac_ext
44312 LIBS=$ac_check_lib_save_LIBS
44313 fi
44314 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44315 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
44316 if test $ac_cv_lib_unicows_main = yes; then
44317
44318                 cat >>confdefs.h <<\_ACEOF
44319 #define wxUSE_UNICODE_MSLU 1
44320 _ACEOF
44321
44322
44323 else
44324
44325                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44326                              Applications will only run on Windows NT/2000/XP!" >&5
44327 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44328                              Applications will only run on Windows NT/2000/XP!" >&2;}
44329                 wxUSE_UNICODE_MSLU=no
44330
44331 fi
44332
44333     fi
44334 fi
44335
44336 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
44337     cat >>confdefs.h <<\_ACEOF
44338 #define wxUSE_UNICODE_UTF8 1
44339 _ACEOF
44340
44341
44342     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
44343         cat >>confdefs.h <<\_ACEOF
44344 #define wxUSE_UTF8_LOCALE_ONLY 1
44345 _ACEOF
44346
44347     fi
44348 fi
44349
44350 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44351   cat >>confdefs.h <<\_ACEOF
44352 #define wxUSE_EXPERIMENTAL_PRINTF 1
44353 _ACEOF
44354
44355 fi
44356
44357
44358 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44359   cat >>confdefs.h <<\_ACEOF
44360 #define wxUSE_POSTSCRIPT 1
44361 _ACEOF
44362
44363 fi
44364
44365 cat >>confdefs.h <<\_ACEOF
44366 #define wxUSE_AFM_FOR_POSTSCRIPT 1
44367 _ACEOF
44368
44369
44370 cat >>confdefs.h <<\_ACEOF
44371 #define wxUSE_NORMALIZED_PS_FONTS 1
44372 _ACEOF
44373
44374
44375
44376 if test "$wxUSE_CONSTRAINTS" = "yes"; then
44377     cat >>confdefs.h <<\_ACEOF
44378 #define wxUSE_CONSTRAINTS 1
44379 _ACEOF
44380
44381     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44382 fi
44383
44384 if test "$wxUSE_MDI" = "yes"; then
44385     cat >>confdefs.h <<\_ACEOF
44386 #define wxUSE_MDI 1
44387 _ACEOF
44388
44389
44390     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44391         cat >>confdefs.h <<\_ACEOF
44392 #define wxUSE_MDI_ARCHITECTURE 1
44393 _ACEOF
44394
44395         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44396     fi
44397 fi
44398
44399 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44400     cat >>confdefs.h <<\_ACEOF
44401 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
44402 _ACEOF
44403
44404     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44405     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44406         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44407     fi
44408 fi
44409
44410 if test "$wxUSE_HELP" = "yes"; then
44411     cat >>confdefs.h <<\_ACEOF
44412 #define wxUSE_HELP 1
44413 _ACEOF
44414
44415     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44416
44417     if test "$wxUSE_MSW" = 1; then
44418       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44419         cat >>confdefs.h <<\_ACEOF
44420 #define wxUSE_MS_HTML_HELP 1
44421 _ACEOF
44422
44423       fi
44424     fi
44425
44426     if test "$wxUSE_WXHTML_HELP" = "yes"; then
44427       if test "$wxUSE_HTML" = "yes"; then
44428         cat >>confdefs.h <<\_ACEOF
44429 #define wxUSE_WXHTML_HELP 1
44430 _ACEOF
44431
44432       else
44433         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44434 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44435         wxUSE_WXHTML_HELP=no
44436       fi
44437     fi
44438 fi
44439
44440 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44441     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44442         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44443 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44444     else
44445         cat >>confdefs.h <<\_ACEOF
44446 #define wxUSE_PRINTING_ARCHITECTURE 1
44447 _ACEOF
44448
44449     fi
44450     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44451 fi
44452
44453
44454
44455 if test "$wxUSE_METAFILE" = "yes"; then
44456     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44457         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44458 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44459         wxUSE_METAFILE=no
44460     fi
44461 fi
44462
44463
44464 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
44465                           -o "$wxUSE_CLIPBOARD"     = "yes" \
44466                           -o "$wxUSE_OLE"     = "yes" \
44467                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44468     { echo "$as_me:$LINENO: checking for ole2.h" >&5
44469 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
44470 if test "${ac_cv_header_ole2_h+set}" = set; then
44471   echo $ECHO_N "(cached) $ECHO_C" >&6
44472 else
44473   cat >conftest.$ac_ext <<_ACEOF
44474 /* confdefs.h.  */
44475 _ACEOF
44476 cat confdefs.h >>conftest.$ac_ext
44477 cat >>conftest.$ac_ext <<_ACEOF
44478 /* end confdefs.h.  */
44479
44480
44481 #include <ole2.h>
44482 _ACEOF
44483 rm -f conftest.$ac_objext
44484 if { (ac_try="$ac_compile"
44485 case "(($ac_try" in
44486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44487   *) ac_try_echo=$ac_try;;
44488 esac
44489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44490   (eval "$ac_compile") 2>conftest.er1
44491   ac_status=$?
44492   grep -v '^ *+' conftest.er1 >conftest.err
44493   rm -f conftest.er1
44494   cat conftest.err >&5
44495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44496   (exit $ac_status); } && {
44497          test -z "$ac_c_werror_flag" ||
44498          test ! -s conftest.err
44499        } && test -s conftest.$ac_objext; then
44500   ac_cv_header_ole2_h=yes
44501 else
44502   echo "$as_me: failed program was:" >&5
44503 sed 's/^/| /' conftest.$ac_ext >&5
44504
44505         ac_cv_header_ole2_h=no
44506 fi
44507
44508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44509 fi
44510 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
44511 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
44512
44513
44514
44515     if test "$ac_cv_header_ole2_h" = "yes" ; then
44516         if test "$GCC" = yes ; then
44517             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44518 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
44519             cat >conftest.$ac_ext <<_ACEOF
44520 /* confdefs.h.  */
44521 _ACEOF
44522 cat confdefs.h >>conftest.$ac_ext
44523 cat >>conftest.$ac_ext <<_ACEOF
44524 /* end confdefs.h.  */
44525 #include <windows.h>
44526                             #include <ole2.h>
44527 int
44528 main ()
44529 {
44530
44531   ;
44532   return 0;
44533 }
44534 _ACEOF
44535 rm -f conftest.$ac_objext
44536 if { (ac_try="$ac_compile"
44537 case "(($ac_try" in
44538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44539   *) ac_try_echo=$ac_try;;
44540 esac
44541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44542   (eval "$ac_compile") 2>conftest.er1
44543   ac_status=$?
44544   grep -v '^ *+' conftest.er1 >conftest.err
44545   rm -f conftest.er1
44546   cat conftest.err >&5
44547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44548   (exit $ac_status); } && {
44549          test -z "$ac_c_werror_flag" ||
44550          test ! -s conftest.err
44551        } && test -s conftest.$ac_objext; then
44552   { echo "$as_me:$LINENO: result: no" >&5
44553 echo "${ECHO_T}no" >&6; }
44554 else
44555   echo "$as_me: failed program was:" >&5
44556 sed 's/^/| /' conftest.$ac_ext >&5
44557
44558         { echo "$as_me:$LINENO: result: yes" >&5
44559 echo "${ECHO_T}yes" >&6; }
44560                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
44561 fi
44562
44563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44564             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44565             if test "$wxUSE_OLE" = "yes" ; then
44566                 cat >>confdefs.h <<\_ACEOF
44567 #define wxUSE_OLE 1
44568 _ACEOF
44569
44570                 cat >>confdefs.h <<\_ACEOF
44571 #define wxUSE_OLE_AUTOMATION 1
44572 _ACEOF
44573
44574                 cat >>confdefs.h <<\_ACEOF
44575 #define wxUSE_ACTIVEX 1
44576 _ACEOF
44577
44578                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
44579             fi
44580         fi
44581
44582                 if test "$wxUSE_DATAOBJ" = "yes" ; then
44583             cat >>confdefs.h <<\_ACEOF
44584 #define wxUSE_DATAOBJ 1
44585 _ACEOF
44586
44587         fi
44588     else
44589         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44590 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44591
44592         wxUSE_CLIPBOARD=no
44593         wxUSE_DRAG_AND_DROP=no
44594         wxUSE_DATAOBJ=no
44595         wxUSE_OLE=no
44596     fi
44597
44598     if test "$wxUSE_METAFILE" = "yes"; then
44599         cat >>confdefs.h <<\_ACEOF
44600 #define wxUSE_METAFILE 1
44601 _ACEOF
44602
44603
44604                 cat >>confdefs.h <<\_ACEOF
44605 #define wxUSE_ENH_METAFILE 1
44606 _ACEOF
44607
44608     fi
44609 fi
44610
44611 if test "$wxUSE_IPC" = "yes"; then
44612     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
44613         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44614 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
44615         wxUSE_IPC=no
44616     fi
44617
44618     if test "$wxUSE_IPC" = "yes"; then
44619         cat >>confdefs.h <<\_ACEOF
44620 #define wxUSE_IPC 1
44621 _ACEOF
44622
44623         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44624     fi
44625 fi
44626
44627 if test "$wxUSE_DATAOBJ" = "yes"; then
44628     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
44629         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
44630 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
44631         wxUSE_DATAOBJ=no
44632     else
44633         cat >>confdefs.h <<\_ACEOF
44634 #define wxUSE_DATAOBJ 1
44635 _ACEOF
44636
44637     fi
44638 else
44639     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44640 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44641     wxUSE_CLIPBOARD=no
44642     wxUSE_DRAG_AND_DROP=no
44643 fi
44644
44645 if test "$wxUSE_CLIPBOARD" = "yes"; then
44646     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
44647         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
44648 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
44649         wxUSE_CLIPBOARD=no
44650     fi
44651
44652     if test "$wxUSE_CLIPBOARD" = "yes"; then
44653         cat >>confdefs.h <<\_ACEOF
44654 #define wxUSE_CLIPBOARD 1
44655 _ACEOF
44656
44657     fi
44658 fi
44659
44660 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44661     if test "$wxUSE_GTK" = 1; then
44662         if test "$WXGTK12" != 1; then
44663             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44664 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44665             wxUSE_DRAG_AND_DROP=no
44666         fi
44667     fi
44668
44669     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
44670             "$wxUSE_DFB" = 1; then
44671         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
44672 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
44673         wxUSE_DRAG_AND_DROP=no
44674     fi
44675
44676     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44677         cat >>confdefs.h <<\_ACEOF
44678 #define wxUSE_DRAG_AND_DROP 1
44679 _ACEOF
44680
44681     fi
44682
44683 fi
44684
44685 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44686     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44687 fi
44688
44689 if test "$wxUSE_SPLINES" = "yes" ; then
44690   cat >>confdefs.h <<\_ACEOF
44691 #define wxUSE_SPLINES 1
44692 _ACEOF
44693
44694 fi
44695
44696 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44697   cat >>confdefs.h <<\_ACEOF
44698 #define wxUSE_MOUSEWHEEL 1
44699 _ACEOF
44700
44701 fi
44702
44703
44704 USES_CONTROLS=0
44705 if test "$wxUSE_CONTROLS" = "yes"; then
44706   USES_CONTROLS=1
44707 fi
44708
44709 if test "$wxUSE_ACCEL" = "yes"; then
44710   cat >>confdefs.h <<\_ACEOF
44711 #define wxUSE_ACCEL 1
44712 _ACEOF
44713
44714   USES_CONTROLS=1
44715 fi
44716
44717 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
44718   cat >>confdefs.h <<\_ACEOF
44719 #define wxUSE_ANIMATIONCTRL 1
44720 _ACEOF
44721
44722   USES_CONTROLS=1
44723   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
44724 fi
44725
44726 if test "$wxUSE_BUTTON" = "yes"; then
44727   cat >>confdefs.h <<\_ACEOF
44728 #define wxUSE_BUTTON 1
44729 _ACEOF
44730
44731   USES_CONTROLS=1
44732 fi
44733
44734 if test "$wxUSE_BMPBUTTON" = "yes"; then
44735   cat >>confdefs.h <<\_ACEOF
44736 #define wxUSE_BMPBUTTON 1
44737 _ACEOF
44738
44739   USES_CONTROLS=1
44740 fi
44741
44742 if test "$wxUSE_CALCTRL" = "yes"; then
44743   cat >>confdefs.h <<\_ACEOF
44744 #define wxUSE_CALENDARCTRL 1
44745 _ACEOF
44746
44747   USES_CONTROLS=1
44748   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44749 fi
44750
44751 if test "$wxUSE_CARET" = "yes"; then
44752   cat >>confdefs.h <<\_ACEOF
44753 #define wxUSE_CARET 1
44754 _ACEOF
44755
44756   USES_CONTROLS=1
44757   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44758 fi
44759
44760 if test "$wxUSE_COLLPANE" = "yes"; then
44761     cat >>confdefs.h <<\_ACEOF
44762 #define wxUSE_COLLPANE 1
44763 _ACEOF
44764
44765     USES_CONTROLS=1
44766     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
44767 fi
44768
44769 if test "$wxUSE_COMBOBOX" = "yes"; then
44770   cat >>confdefs.h <<\_ACEOF
44771 #define wxUSE_COMBOBOX 1
44772 _ACEOF
44773
44774   USES_CONTROLS=1
44775 fi
44776
44777 if test "$wxUSE_COMBOCTRL" = "yes"; then
44778   cat >>confdefs.h <<\_ACEOF
44779 #define wxUSE_COMBOCTRL 1
44780 _ACEOF
44781
44782   USES_CONTROLS=1
44783 fi
44784
44785 if test "$wxUSE_CHOICE" = "yes"; then
44786   cat >>confdefs.h <<\_ACEOF
44787 #define wxUSE_CHOICE 1
44788 _ACEOF
44789
44790   USES_CONTROLS=1
44791 fi
44792
44793 if test "$wxUSE_CHOICEBOOK" = "yes"; then
44794     cat >>confdefs.h <<\_ACEOF
44795 #define wxUSE_CHOICEBOOK 1
44796 _ACEOF
44797
44798     USES_CONTROLS=1
44799 fi
44800
44801 if test "$wxUSE_CHECKBOX" = "yes"; then
44802   cat >>confdefs.h <<\_ACEOF
44803 #define wxUSE_CHECKBOX 1
44804 _ACEOF
44805
44806   USES_CONTROLS=1
44807 fi
44808
44809 if test "$wxUSE_CHECKLST" = "yes"; then
44810   cat >>confdefs.h <<\_ACEOF
44811 #define wxUSE_CHECKLISTBOX 1
44812 _ACEOF
44813
44814   USES_CONTROLS=1
44815   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44816 fi
44817
44818 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44819   cat >>confdefs.h <<\_ACEOF
44820 #define wxUSE_COLOURPICKERCTRL 1
44821 _ACEOF
44822
44823   USES_CONTROLS=1
44824 fi
44825
44826 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44827   cat >>confdefs.h <<\_ACEOF
44828 #define wxUSE_DATEPICKCTRL 1
44829 _ACEOF
44830
44831   USES_CONTROLS=1
44832 fi
44833
44834 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44835   cat >>confdefs.h <<\_ACEOF
44836 #define wxUSE_DIRPICKERCTRL 1
44837 _ACEOF
44838
44839   USES_CONTROLS=1
44840 fi
44841
44842 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44843   cat >>confdefs.h <<\_ACEOF
44844 #define wxUSE_FILEPICKERCTRL 1
44845 _ACEOF
44846
44847   USES_CONTROLS=1
44848 fi
44849
44850 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44851   cat >>confdefs.h <<\_ACEOF
44852 #define wxUSE_FONTPICKERCTRL 1
44853 _ACEOF
44854
44855   USES_CONTROLS=1
44856 fi
44857
44858 if test "$wxUSE_DISPLAY" = "yes"; then
44859     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
44860         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
44861 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
44862         wxUSE_DISPLAY=no
44863     else
44864         cat >>confdefs.h <<\_ACEOF
44865 #define wxUSE_DISPLAY 1
44866 _ACEOF
44867
44868         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
44869     fi
44870 fi
44871
44872 if test "$wxUSE_DETECT_SM" = "yes"; then
44873     cat >>confdefs.h <<\_ACEOF
44874 #define wxUSE_DETECT_SM 1
44875 _ACEOF
44876
44877 fi
44878
44879 if test "$wxUSE_GAUGE" = "yes"; then
44880   cat >>confdefs.h <<\_ACEOF
44881 #define wxUSE_GAUGE 1
44882 _ACEOF
44883
44884   USES_CONTROLS=1
44885 fi
44886
44887 if test "$wxUSE_GRID" = "yes"; then
44888   cat >>confdefs.h <<\_ACEOF
44889 #define wxUSE_GRID 1
44890 _ACEOF
44891
44892   USES_CONTROLS=1
44893   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44894 fi
44895
44896 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44897   cat >>confdefs.h <<\_ACEOF
44898 #define wxUSE_HYPERLINKCTRL 1
44899 _ACEOF
44900
44901   USES_CONTROLS=1
44902 fi
44903
44904 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
44905   cat >>confdefs.h <<\_ACEOF
44906 #define wxUSE_BITMAPCOMBOBOX 1
44907 _ACEOF
44908
44909   USES_CONTROLS=1
44910 fi
44911
44912 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44913   cat >>confdefs.h <<\_ACEOF
44914 #define wxUSE_DATAVIEWCTRL 1
44915 _ACEOF
44916
44917   USES_CONTROLS=1
44918   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44919 fi
44920
44921 if test "$wxUSE_IMAGLIST" = "yes"; then
44922     cat >>confdefs.h <<\_ACEOF
44923 #define wxUSE_IMAGLIST 1
44924 _ACEOF
44925
44926 fi
44927
44928 if test "$wxUSE_LISTBOOK" = "yes"; then
44929     cat >>confdefs.h <<\_ACEOF
44930 #define wxUSE_LISTBOOK 1
44931 _ACEOF
44932
44933     USES_CONTROLS=1
44934 fi
44935
44936 if test "$wxUSE_LISTBOX" = "yes"; then
44937     cat >>confdefs.h <<\_ACEOF
44938 #define wxUSE_LISTBOX 1
44939 _ACEOF
44940
44941     USES_CONTROLS=1
44942     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
44943 fi
44944
44945 if test "$wxUSE_LISTCTRL" = "yes"; then
44946     if test "$wxUSE_IMAGLIST" = "yes"; then
44947         cat >>confdefs.h <<\_ACEOF
44948 #define wxUSE_LISTCTRL 1
44949 _ACEOF
44950
44951         USES_CONTROLS=1
44952         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44953     else
44954         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44955 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44956     fi
44957 fi
44958
44959 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
44960     cat >>confdefs.h <<\_ACEOF
44961 #define wxUSE_EDITABLELISTBOX 1
44962 _ACEOF
44963
44964     USES_CONTROLS=1
44965     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
44966 fi
44967
44968 if test "$wxUSE_NOTEBOOK" = "yes"; then
44969     cat >>confdefs.h <<\_ACEOF
44970 #define wxUSE_NOTEBOOK 1
44971 _ACEOF
44972
44973     USES_CONTROLS=1
44974     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44975 fi
44976
44977 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
44978   cat >>confdefs.h <<\_ACEOF
44979 #define wxUSE_ODCOMBOBOX 1
44980 _ACEOF
44981
44982   USES_CONTROLS=1
44983   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44984 fi
44985
44986
44987 if test "$wxUSE_RADIOBOX" = "yes"; then
44988     cat >>confdefs.h <<\_ACEOF
44989 #define wxUSE_RADIOBOX 1
44990 _ACEOF
44991
44992     USES_CONTROLS=1
44993 fi
44994
44995 if test "$wxUSE_RADIOBTN" = "yes"; then
44996     cat >>confdefs.h <<\_ACEOF
44997 #define wxUSE_RADIOBTN 1
44998 _ACEOF
44999
45000     USES_CONTROLS=1
45001 fi
45002
45003 if test "$wxUSE_SASH" = "yes"; then
45004     cat >>confdefs.h <<\_ACEOF
45005 #define wxUSE_SASH 1
45006 _ACEOF
45007
45008     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45009 fi
45010
45011 if test "$wxUSE_SCROLLBAR" = "yes"; then
45012     cat >>confdefs.h <<\_ACEOF
45013 #define wxUSE_SCROLLBAR 1
45014 _ACEOF
45015
45016     USES_CONTROLS=1
45017     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45018 fi
45019
45020 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45021     cat >>confdefs.h <<\_ACEOF
45022 #define wxUSE_SEARCHCTRL 1
45023 _ACEOF
45024
45025     USES_CONTROLS=1
45026 fi
45027
45028 if test "$wxUSE_SLIDER" = "yes"; then
45029     cat >>confdefs.h <<\_ACEOF
45030 #define wxUSE_SLIDER 1
45031 _ACEOF
45032
45033     USES_CONTROLS=1
45034 fi
45035
45036 if test "$wxUSE_SPINBTN" = "yes"; then
45037     cat >>confdefs.h <<\_ACEOF
45038 #define wxUSE_SPINBTN 1
45039 _ACEOF
45040
45041     USES_CONTROLS=1
45042 fi
45043
45044 if test "$wxUSE_SPINCTRL" = "yes"; then
45045     cat >>confdefs.h <<\_ACEOF
45046 #define wxUSE_SPINCTRL 1
45047 _ACEOF
45048
45049     USES_CONTROLS=1
45050 fi
45051
45052 if test "$wxUSE_SPLITTER" = "yes"; then
45053     cat >>confdefs.h <<\_ACEOF
45054 #define wxUSE_SPLITTER 1
45055 _ACEOF
45056
45057     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45058 fi
45059
45060 if test "$wxUSE_STATBMP" = "yes"; then
45061     cat >>confdefs.h <<\_ACEOF
45062 #define wxUSE_STATBMP 1
45063 _ACEOF
45064
45065     USES_CONTROLS=1
45066 fi
45067
45068 if test "$wxUSE_STATBOX" = "yes"; then
45069     cat >>confdefs.h <<\_ACEOF
45070 #define wxUSE_STATBOX 1
45071 _ACEOF
45072
45073     USES_CONTROLS=1
45074 fi
45075
45076 if test "$wxUSE_STATTEXT" = "yes"; then
45077     cat >>confdefs.h <<\_ACEOF
45078 #define wxUSE_STATTEXT 1
45079 _ACEOF
45080
45081     USES_CONTROLS=1
45082 fi
45083
45084 if test "$wxUSE_STATLINE" = "yes"; then
45085     cat >>confdefs.h <<\_ACEOF
45086 #define wxUSE_STATLINE 1
45087 _ACEOF
45088
45089     USES_CONTROLS=1
45090 fi
45091
45092 if test "$wxUSE_STATUSBAR" = "yes"; then
45093         cat >>confdefs.h <<\_ACEOF
45094 #define wxUSE_NATIVE_STATUSBAR 1
45095 _ACEOF
45096
45097     cat >>confdefs.h <<\_ACEOF
45098 #define wxUSE_STATUSBAR 1
45099 _ACEOF
45100
45101     USES_CONTROLS=1
45102
45103     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45104 fi
45105
45106 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45107     cat >>confdefs.h <<\_ACEOF
45108 #define wxUSE_TAB_DIALOG 1
45109 _ACEOF
45110
45111 fi
45112
45113 if test "$wxUSE_TEXTCTRL" = "yes"; then
45114     cat >>confdefs.h <<\_ACEOF
45115 #define wxUSE_TEXTCTRL 1
45116 _ACEOF
45117
45118     USES_CONTROLS=1
45119     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45120 fi
45121
45122 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45123     if test "$wxUSE_COCOA" = 1 ; then
45124         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45125 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45126         wxUSE_TOGGLEBTN=no
45127     fi
45128
45129     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45130         cat >>confdefs.h <<\_ACEOF
45131 #define wxUSE_TOGGLEBTN 1
45132 _ACEOF
45133
45134         USES_CONTROLS=1
45135     fi
45136 fi
45137
45138 if test "$wxUSE_TOOLBAR" = "yes"; then
45139     cat >>confdefs.h <<\_ACEOF
45140 #define wxUSE_TOOLBAR 1
45141 _ACEOF
45142
45143     USES_CONTROLS=1
45144
45145     if test "$wxUSE_UNIVERSAL" = "yes"; then
45146         wxUSE_TOOLBAR_NATIVE="no"
45147     else
45148         wxUSE_TOOLBAR_NATIVE="yes"
45149         cat >>confdefs.h <<\_ACEOF
45150 #define wxUSE_TOOLBAR_NATIVE 1
45151 _ACEOF
45152
45153     fi
45154
45155     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45156 fi
45157
45158 if test "$wxUSE_TOOLTIPS" = "yes"; then
45159     if test "$wxUSE_MOTIF" = 1; then
45160         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45161 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45162     else
45163         if test "$wxUSE_UNIVERSAL" = "yes"; then
45164             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45165 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45166         else
45167             cat >>confdefs.h <<\_ACEOF
45168 #define wxUSE_TOOLTIPS 1
45169 _ACEOF
45170
45171         fi
45172     fi
45173 fi
45174
45175 if test "$wxUSE_TREEBOOK" = "yes"; then
45176     cat >>confdefs.h <<\_ACEOF
45177 #define wxUSE_TREEBOOK 1
45178 _ACEOF
45179
45180     USES_CONTROLS=1
45181 fi
45182
45183 if test "$wxUSE_TOOLBOOK" = "yes"; then
45184     cat >>confdefs.h <<\_ACEOF
45185 #define wxUSE_TOOLBOOK 1
45186 _ACEOF
45187
45188     USES_CONTROLS=1
45189 fi
45190
45191 if test "$wxUSE_TREECTRL" = "yes"; then
45192     if test "$wxUSE_IMAGLIST" = "yes"; then
45193         cat >>confdefs.h <<\_ACEOF
45194 #define wxUSE_TREECTRL 1
45195 _ACEOF
45196
45197         USES_CONTROLS=1
45198         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45199     else
45200         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45201 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45202     fi
45203 fi
45204
45205 if test "$wxUSE_POPUPWIN" = "yes"; then
45206     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45207         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45208 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45209     else
45210         if test "$wxUSE_PM" = 1; then
45211             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45212 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45213         else
45214             cat >>confdefs.h <<\_ACEOF
45215 #define wxUSE_POPUPWIN 1
45216 _ACEOF
45217
45218             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
45219
45220             USES_CONTROLS=1
45221         fi
45222     fi
45223 fi
45224
45225 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
45226     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
45227         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
45228 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
45229     else
45230         cat >>confdefs.h <<\_ACEOF
45231 #define wxUSE_DIALUP_MANAGER 1
45232 _ACEOF
45233
45234         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45235     fi
45236 fi
45237
45238 if test "$wxUSE_TIPWINDOW" = "yes"; then
45239     if test "$wxUSE_PM" = 1; then
45240         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45241 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45242     else
45243         cat >>confdefs.h <<\_ACEOF
45244 #define wxUSE_TIPWINDOW 1
45245 _ACEOF
45246
45247     fi
45248 fi
45249
45250 if test "$USES_CONTROLS" = 1; then
45251     cat >>confdefs.h <<\_ACEOF
45252 #define wxUSE_CONTROLS 1
45253 _ACEOF
45254
45255 fi
45256
45257
45258 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45259     cat >>confdefs.h <<\_ACEOF
45260 #define wxUSE_ACCESSIBILITY 1
45261 _ACEOF
45262
45263     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45264 fi
45265
45266 if test "$wxUSE_DC_CACHEING" = "yes"; then
45267     cat >>confdefs.h <<\_ACEOF
45268 #define wxUSE_DC_CACHEING 1
45269 _ACEOF
45270
45271 fi
45272
45273 if test "$wxUSE_DRAGIMAGE" = "yes"; then
45274     cat >>confdefs.h <<\_ACEOF
45275 #define wxUSE_DRAGIMAGE 1
45276 _ACEOF
45277
45278     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45279 fi
45280
45281 if test "$wxUSE_EXCEPTIONS" = "yes"; then
45282     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45283         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45284 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45285     else
45286         cat >>confdefs.h <<\_ACEOF
45287 #define wxUSE_EXCEPTIONS 1
45288 _ACEOF
45289
45290         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45291     fi
45292 fi
45293
45294 USE_HTML=0
45295 if test "$wxUSE_HTML" = "yes"; then
45296     cat >>confdefs.h <<\_ACEOF
45297 #define wxUSE_HTML 1
45298 _ACEOF
45299
45300     USE_HTML=1
45301     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
45302     if test "$wxUSE_MAC" = 1; then
45303         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45304     fi
45305 fi
45306 if test "$wxUSE_WEBKIT" = "yes"; then
45307     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
45308         old_CPPFLAGS="$CPPFLAGS"
45309         CPPFLAGS="-x objective-c++ $CPPFLAGS"
45310         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45311 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
45312 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45313   echo $ECHO_N "(cached) $ECHO_C" >&6
45314 else
45315   cat >conftest.$ac_ext <<_ACEOF
45316 /* confdefs.h.  */
45317 _ACEOF
45318 cat confdefs.h >>conftest.$ac_ext
45319 cat >>conftest.$ac_ext <<_ACEOF
45320 /* end confdefs.h.  */
45321
45322                            #include <Carbon/Carbon.h>
45323                            #include <WebKit/WebKit.h>
45324
45325
45326 #include <WebKit/HIWebView.h>
45327 _ACEOF
45328 rm -f conftest.$ac_objext
45329 if { (ac_try="$ac_compile"
45330 case "(($ac_try" in
45331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45332   *) ac_try_echo=$ac_try;;
45333 esac
45334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45335   (eval "$ac_compile") 2>conftest.er1
45336   ac_status=$?
45337   grep -v '^ *+' conftest.er1 >conftest.err
45338   rm -f conftest.er1
45339   cat conftest.err >&5
45340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45341   (exit $ac_status); } && {
45342          test -z "$ac_c_werror_flag" ||
45343          test ! -s conftest.err
45344        } && test -s conftest.$ac_objext; then
45345   ac_cv_header_WebKit_HIWebView_h=yes
45346 else
45347   echo "$as_me: failed program was:" >&5
45348 sed 's/^/| /' conftest.$ac_ext >&5
45349
45350         ac_cv_header_WebKit_HIWebView_h=no
45351 fi
45352
45353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45354 fi
45355 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45356 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
45357 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45358
45359                            cat >>confdefs.h <<\_ACEOF
45360 #define wxUSE_WEBKIT 1
45361 _ACEOF
45362
45363                            WEBKIT_LINK="-framework WebKit"
45364
45365 else
45366
45367                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45368 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45369                            wxUSE_WEBKIT=no
45370
45371 fi
45372
45373
45374         CPPFLAGS="$old_CPPFLAGS"
45375     elif test "$wxUSE_COCOA" = 1; then
45376         cat >>confdefs.h <<\_ACEOF
45377 #define wxUSE_WEBKIT 1
45378 _ACEOF
45379
45380     else
45381         wxUSE_WEBKIT=no
45382     fi
45383 fi
45384
45385 USE_XRC=0
45386 if test "$wxUSE_XRC" = "yes"; then
45387     if test "$wxUSE_XML" != "yes"; then
45388         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45389 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45390         wxUSE_XRC=no
45391     else
45392         cat >>confdefs.h <<\_ACEOF
45393 #define wxUSE_XRC 1
45394 _ACEOF
45395
45396         USE_XRC=1
45397         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45398     fi
45399 fi
45400
45401 USE_AUI=0
45402 if test "$wxUSE_AUI" = "yes"; then
45403    cat >>confdefs.h <<\_ACEOF
45404 #define wxUSE_AUI 1
45405 _ACEOF
45406
45407    USE_AUI=1
45408    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45409 fi
45410
45411 USE_STC=0
45412 if test "$wxUSE_STC" = "yes"; then
45413    cat >>confdefs.h <<\_ACEOF
45414 #define wxUSE_STC 1
45415 _ACEOF
45416
45417    USE_STC=1
45418    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
45419 fi
45420
45421 if test "$wxUSE_MENUS" = "yes"; then
45422     cat >>confdefs.h <<\_ACEOF
45423 #define wxUSE_MENUS 1
45424 _ACEOF
45425
45426     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45427 fi
45428
45429 if test "$wxUSE_METAFILE" = "yes"; then
45430     cat >>confdefs.h <<\_ACEOF
45431 #define wxUSE_METAFILE 1
45432 _ACEOF
45433
45434 fi
45435
45436 if test "$wxUSE_MIMETYPE" = "yes"; then
45437     cat >>confdefs.h <<\_ACEOF
45438 #define wxUSE_MIMETYPE 1
45439 _ACEOF
45440
45441 fi
45442
45443 if test "$wxUSE_MINIFRAME" = "yes"; then
45444     cat >>confdefs.h <<\_ACEOF
45445 #define wxUSE_MINIFRAME 1
45446 _ACEOF
45447
45448     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45449 fi
45450
45451 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45452     cat >>confdefs.h <<\_ACEOF
45453 #define wxUSE_SYSTEM_OPTIONS 1
45454 _ACEOF
45455
45456     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
45457         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
45458         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45459     fi
45460 fi
45461
45462
45463 if test "$wxUSE_VALIDATORS" = "yes"; then
45464     cat >>confdefs.h <<\_ACEOF
45465 #define wxUSE_VALIDATORS 1
45466 _ACEOF
45467
45468     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45469 fi
45470
45471 if test "$wxUSE_PALETTE" = "yes" ; then
45472     if test "$wxUSE_DFB" = 1; then
45473         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
45474 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
45475         wxUSE_PALETTE=no
45476     else
45477         cat >>confdefs.h <<\_ACEOF
45478 #define wxUSE_PALETTE 1
45479 _ACEOF
45480
45481     fi
45482 fi
45483
45484 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45485     LIBS=" -lunicows $LIBS"
45486 fi
45487
45488 USE_RICHTEXT=0
45489 if test "$wxUSE_RICHTEXT" = "yes"; then
45490     cat >>confdefs.h <<\_ACEOF
45491 #define wxUSE_RICHTEXT 1
45492 _ACEOF
45493
45494     USE_RICHTEXT=1
45495     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45496 fi
45497
45498
45499 if test "$wxUSE_IMAGE" = "yes" ; then
45500     cat >>confdefs.h <<\_ACEOF
45501 #define wxUSE_IMAGE 1
45502 _ACEOF
45503
45504
45505     if test "$wxUSE_GIF" = "yes" ; then
45506       cat >>confdefs.h <<\_ACEOF
45507 #define wxUSE_GIF 1
45508 _ACEOF
45509
45510     fi
45511
45512     if test "$wxUSE_PCX" = "yes" ; then
45513       cat >>confdefs.h <<\_ACEOF
45514 #define wxUSE_PCX 1
45515 _ACEOF
45516
45517     fi
45518
45519     if test "$wxUSE_TGA" = "yes" ; then
45520       cat >>confdefs.h <<\_ACEOF
45521 #define wxUSE_TGA 1
45522 _ACEOF
45523
45524     fi
45525
45526     if test "$wxUSE_IFF" = "yes" ; then
45527       cat >>confdefs.h <<\_ACEOF
45528 #define wxUSE_IFF 1
45529 _ACEOF
45530
45531     fi
45532
45533     if test "$wxUSE_PNM" = "yes" ; then
45534       cat >>confdefs.h <<\_ACEOF
45535 #define wxUSE_PNM 1
45536 _ACEOF
45537
45538     fi
45539
45540     if test "$wxUSE_XPM" = "yes" ; then
45541       cat >>confdefs.h <<\_ACEOF
45542 #define wxUSE_XPM 1
45543 _ACEOF
45544
45545     fi
45546
45547     if test "$wxUSE_ICO_CUR" = "yes" ; then
45548       cat >>confdefs.h <<\_ACEOF
45549 #define wxUSE_ICO_CUR 1
45550 _ACEOF
45551
45552     fi
45553 fi
45554
45555
45556 if test "$wxUSE_ABOUTDLG" = "yes"; then
45557     cat >>confdefs.h <<\_ACEOF
45558 #define wxUSE_ABOUTDLG 1
45559 _ACEOF
45560
45561 fi
45562
45563 if test "$wxUSE_CHOICEDLG" = "yes"; then
45564     cat >>confdefs.h <<\_ACEOF
45565 #define wxUSE_CHOICEDLG 1
45566 _ACEOF
45567
45568 fi
45569
45570 if test "$wxUSE_COLOURDLG" = "yes"; then
45571     cat >>confdefs.h <<\_ACEOF
45572 #define wxUSE_COLOURDLG 1
45573 _ACEOF
45574
45575 fi
45576
45577 if test "$wxUSE_FILEDLG" = "yes"; then
45578     cat >>confdefs.h <<\_ACEOF
45579 #define wxUSE_FILEDLG 1
45580 _ACEOF
45581
45582 fi
45583
45584 if test "$wxUSE_FINDREPLDLG" = "yes"; then
45585     cat >>confdefs.h <<\_ACEOF
45586 #define wxUSE_FINDREPLDLG 1
45587 _ACEOF
45588
45589 fi
45590
45591 if test "$wxUSE_FONTDLG" = "yes"; then
45592     cat >>confdefs.h <<\_ACEOF
45593 #define wxUSE_FONTDLG 1
45594 _ACEOF
45595
45596 fi
45597
45598 if test "$wxUSE_DIRDLG" = "yes"; then
45599     if test "$wxUSE_TREECTRL" != "yes"; then
45600         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45601 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45602     else
45603         cat >>confdefs.h <<\_ACEOF
45604 #define wxUSE_DIRDLG 1
45605 _ACEOF
45606
45607     fi
45608 fi
45609
45610 if test "$wxUSE_MSGDLG" = "yes"; then
45611     cat >>confdefs.h <<\_ACEOF
45612 #define wxUSE_MSGDLG 1
45613 _ACEOF
45614
45615 fi
45616
45617 if test "$wxUSE_NUMBERDLG" = "yes"; then
45618     cat >>confdefs.h <<\_ACEOF
45619 #define wxUSE_NUMBERDLG 1
45620 _ACEOF
45621
45622 fi
45623
45624 if test "$wxUSE_PROGRESSDLG" = "yes"; then
45625     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45626        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45627 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45628     else
45629         cat >>confdefs.h <<\_ACEOF
45630 #define wxUSE_PROGRESSDLG 1
45631 _ACEOF
45632
45633     fi
45634 fi
45635
45636 if test "$wxUSE_SPLASH" = "yes"; then
45637     cat >>confdefs.h <<\_ACEOF
45638 #define wxUSE_SPLASH 1
45639 _ACEOF
45640
45641     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
45642 fi
45643
45644 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45645     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45646        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45647 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45648     else
45649         cat >>confdefs.h <<\_ACEOF
45650 #define wxUSE_STARTUP_TIPS 1
45651 _ACEOF
45652
45653     fi
45654 fi
45655
45656 if test "$wxUSE_TEXTDLG" = "yes"; then
45657     cat >>confdefs.h <<\_ACEOF
45658 #define wxUSE_TEXTDLG 1
45659 _ACEOF
45660
45661 fi
45662
45663 if test "$wxUSE_WIZARDDLG" = "yes"; then
45664     cat >>confdefs.h <<\_ACEOF
45665 #define wxUSE_WIZARDDLG 1
45666 _ACEOF
45667
45668     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45669 fi
45670
45671
45672 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
45673    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
45674       cat >>confdefs.h <<\_ACEOF
45675 #define wxUSE_GRAPHICS_CONTEXT 1
45676 _ACEOF
45677
45678    elif test "$wxUSE_GTK" != 1; then
45679             cat >>confdefs.h <<\_ACEOF
45680 #define wxUSE_GRAPHICS_CONTEXT 1
45681 _ACEOF
45682
45683    else
45684
45685 pkg_failed=no
45686 { echo "$as_me:$LINENO: checking for CAIRO" >&5
45687 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
45688
45689 if test -n "$PKG_CONFIG"; then
45690     if test -n "$CAIRO_CFLAGS"; then
45691         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
45692     else
45693         if test -n "$PKG_CONFIG" && \
45694     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
45695   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
45696   ac_status=$?
45697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45698   (exit $ac_status); }; then
45699   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
45700 else
45701   pkg_failed=yes
45702 fi
45703     fi
45704 else
45705         pkg_failed=untried
45706 fi
45707 if test -n "$PKG_CONFIG"; then
45708     if test -n "$CAIRO_LIBS"; then
45709         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
45710     else
45711         if test -n "$PKG_CONFIG" && \
45712     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
45713   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
45714   ac_status=$?
45715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45716   (exit $ac_status); }; then
45717   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
45718 else
45719   pkg_failed=yes
45720 fi
45721     fi
45722 else
45723         pkg_failed=untried
45724 fi
45725
45726
45727
45728 if test $pkg_failed = yes; then
45729
45730 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45731         _pkg_short_errors_supported=yes
45732 else
45733         _pkg_short_errors_supported=no
45734 fi
45735         if test $_pkg_short_errors_supported = yes; then
45736                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
45737         else
45738                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
45739         fi
45740         # Put the nasty error message in config.log where it belongs
45741         echo "$CAIRO_PKG_ERRORS" >&5
45742
45743         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
45744 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
45745
45746 elif test $pkg_failed = untried; then
45747         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
45748 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
45749
45750 else
45751         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
45752         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
45753         { echo "$as_me:$LINENO: result: yes" >&5
45754 echo "${ECHO_T}yes" >&6; }
45755         cat >>confdefs.h <<\_ACEOF
45756 #define wxUSE_GRAPHICS_CONTEXT 1
45757 _ACEOF
45758
45759 fi
45760    fi
45761 fi
45762
45763
45764 USE_MEDIA=0
45765
45766 if test "$wxUSE_MEDIACTRL" = "yes"; then
45767     USE_MEDIA=1
45768
45769                 if test "$wxUSE_GTK" = 1; then
45770         wxUSE_GSTREAMER="no"
45771
45772                                                                 GST_VERSION_MAJOR=0
45773         GST_VERSION_MINOR=10
45774         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45775
45776         if test "$wxUSE_GSTREAMER8" = "no"; then
45777
45778 pkg_failed=no
45779 { echo "$as_me:$LINENO: checking for GST" >&5
45780 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
45781
45782 if test -n "$PKG_CONFIG"; then
45783     if test -n "$GST_CFLAGS"; then
45784         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45785     else
45786         if test -n "$PKG_CONFIG" && \
45787     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45788   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45789   ac_status=$?
45790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45791   (exit $ac_status); }; then
45792   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
45793 else
45794   pkg_failed=yes
45795 fi
45796     fi
45797 else
45798         pkg_failed=untried
45799 fi
45800 if test -n "$PKG_CONFIG"; then
45801     if test -n "$GST_LIBS"; then
45802         pkg_cv_GST_LIBS="$GST_LIBS"
45803     else
45804         if test -n "$PKG_CONFIG" && \
45805     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45806   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45807   ac_status=$?
45808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45809   (exit $ac_status); }; then
45810   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
45811 else
45812   pkg_failed=yes
45813 fi
45814     fi
45815 else
45816         pkg_failed=untried
45817 fi
45818
45819
45820
45821 if test $pkg_failed = yes; then
45822
45823 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45824         _pkg_short_errors_supported=yes
45825 else
45826         _pkg_short_errors_supported=no
45827 fi
45828         if test $_pkg_short_errors_supported = yes; then
45829                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45830         else
45831                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45832         fi
45833         # Put the nasty error message in config.log where it belongs
45834         echo "$GST_PKG_ERRORS" >&5
45835
45836
45837                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45838 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45839                     GST_VERSION_MINOR=8
45840
45841
45842 elif test $pkg_failed = untried; then
45843
45844                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45845 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45846                     GST_VERSION_MINOR=8
45847
45848
45849 else
45850         GST_CFLAGS=$pkg_cv_GST_CFLAGS
45851         GST_LIBS=$pkg_cv_GST_LIBS
45852         { echo "$as_me:$LINENO: result: yes" >&5
45853 echo "${ECHO_T}yes" >&6; }
45854
45855                     wxUSE_GSTREAMER="yes"
45856                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
45857
45858 fi
45859         else
45860                         GST_VERSION_MINOR=8
45861         fi
45862
45863         if test $GST_VERSION_MINOR = "8"; then
45864             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45865
45866 pkg_failed=no
45867 { echo "$as_me:$LINENO: checking for GST" >&5
45868 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
45869
45870 if test -n "$PKG_CONFIG"; then
45871     if test -n "$GST_CFLAGS"; then
45872         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45873     else
45874         if test -n "$PKG_CONFIG" && \
45875     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45876   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45877   ac_status=$?
45878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45879   (exit $ac_status); }; then
45880   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
45881 else
45882   pkg_failed=yes
45883 fi
45884     fi
45885 else
45886         pkg_failed=untried
45887 fi
45888 if test -n "$PKG_CONFIG"; then
45889     if test -n "$GST_LIBS"; then
45890         pkg_cv_GST_LIBS="$GST_LIBS"
45891     else
45892         if test -n "$PKG_CONFIG" && \
45893     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45894   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45895   ac_status=$?
45896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45897   (exit $ac_status); }; then
45898   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
45899 else
45900   pkg_failed=yes
45901 fi
45902     fi
45903 else
45904         pkg_failed=untried
45905 fi
45906
45907
45908
45909 if test $pkg_failed = yes; then
45910
45911 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45912         _pkg_short_errors_supported=yes
45913 else
45914         _pkg_short_errors_supported=no
45915 fi
45916         if test $_pkg_short_errors_supported = yes; then
45917                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45918         else
45919                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45920         fi
45921         # Put the nasty error message in config.log where it belongs
45922         echo "$GST_PKG_ERRORS" >&5
45923
45924
45925                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45926 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
45927
45928 elif test $pkg_failed = untried; then
45929
45930                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45931 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
45932
45933 else
45934         GST_CFLAGS=$pkg_cv_GST_CFLAGS
45935         GST_LIBS=$pkg_cv_GST_LIBS
45936         { echo "$as_me:$LINENO: result: yes" >&5
45937 echo "${ECHO_T}yes" >&6; }
45938         wxUSE_GSTREAMER="yes"
45939 fi
45940         fi
45941
45942
45943         if test "$wxUSE_GSTREAMER" = "yes"; then
45944             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45945             LIBS="$GST_LIBS $LIBS"
45946
45947             cat >>confdefs.h <<\_ACEOF
45948 #define wxUSE_GSTREAMER 1
45949 _ACEOF
45950
45951         else
45952             USE_MEDIA=0
45953         fi
45954     fi
45955
45956     if test $USE_MEDIA = 1; then
45957         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45958         cat >>confdefs.h <<\_ACEOF
45959 #define wxUSE_MEDIACTRL 1
45960 _ACEOF
45961
45962     fi
45963 fi
45964
45965
45966 if test "$cross_compiling" = "yes"; then
45967         OSINFO="\"$host\""
45968 else
45969         OSINFO=`uname -s -r -m`
45970     OSINFO="\"$OSINFO\""
45971 fi
45972
45973 cat >>confdefs.h <<_ACEOF
45974 #define WXWIN_OS_DESCRIPTION $OSINFO
45975 _ACEOF
45976
45977
45978
45979 if test "x$prefix" != "xNONE"; then
45980     wxPREFIX=$prefix
45981 else
45982     wxPREFIX=$ac_default_prefix
45983 fi
45984
45985 cat >>confdefs.h <<_ACEOF
45986 #define wxINSTALL_PREFIX "$wxPREFIX"
45987 _ACEOF
45988
45989
45990
45991
45992 CORE_BASE_LIBS="net base"
45993 CORE_GUI_LIBS="adv core"
45994
45995 if test "$wxUSE_XML" = "yes" ; then
45996     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45997 fi
45998 if test "$wxUSE_ODBC" != "no" ; then
45999     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46000     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46001 fi
46002 if test "$wxUSE_HTML" = "yes" ; then
46003     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46004 fi
46005 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46006     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46007 fi
46008 if test "$wxUSE_XRC" = "yes" ; then
46009     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46010 fi
46011 if test "$wxUSE_AUI" = "yes" ; then
46012     CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46013 fi
46014 if test "$wxUSE_STC" = "yes" ; then
46015     CORE_GUI_LIBS="stc $CORE_GUI_LIBS"
46016 fi
46017
46018 if test "$wxUSE_GUI" != "yes"; then
46019     CORE_GUI_LIBS=""
46020 fi
46021
46022
46023
46024
46025
46026
46027 if test "$wxUSE_MAC" = 1 ; then
46028     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46029         if test "$USE_DARWIN" = 1; then
46030             LDFLAGS="$LDFLAGS -framework QuickTime"
46031         else
46032             LDFLAGS="$LDFLAGS -lQuickTimeLib"
46033         fi
46034     fi
46035     if test "$USE_DARWIN" = 1; then
46036         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46037     else
46038         LDFLAGS="$LDFLAGS -lCarbonLib"
46039     fi
46040 fi
46041 if test "$wxUSE_COCOA" = 1 ; then
46042     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46043     if test "$wxUSE_MEDIACTRL" = "yes"; then
46044         LDFLAGS="$LDFLAGS -framework QuickTime"
46045     fi
46046 fi
46047 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46048     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46049 fi
46050
46051 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46052
46053 if test "$wxUSE_GUI" = "yes"; then
46054
46055
46056         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46057                      dynamic erase event exec font image minimal mobile \
46058                      mobile/wxedit mobile/styles propsize render \
46059                      rotate shaped svg taborder vscroll widgets"
46060
46061     if test "$wxUSE_MONOLITHIC" != "yes"; then
46062         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46063     fi
46064     if test "$TOOLKIT" = "MSW"; then
46065         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46066         if test "$wxUSE_UNIVERSAL" != "yes"; then
46067             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46068         fi
46069     fi
46070     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46071         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46072     fi
46073 else
46074     SAMPLES_SUBDIRS="console"
46075 fi
46076
46077
46078 if test "x$INTELCC" = "xyes" ; then
46079                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46080 elif test "$GCC" = yes ; then
46081     CWARNINGS="-Wall -Wundef"
46082 fi
46083
46084 if test "x$INTELCXX" = "xyes" ; then
46085                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
46086 elif test "$GXX" = yes ; then
46087         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
46088 fi
46089
46090
46091 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46092 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46093
46094
46095 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
46096  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
46097  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46098  $CPPFLAGS `
46099
46100 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
46101 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
46102 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
46103
46104 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46105
46106
46107 if test "x$MWCC" = "xyes"; then
46108
46109             CC="$CC -cwd source -I-"
46110     CXX="$CXX -cwd source -I-"
46111 fi
46112
46113
46114 LIBS=`echo $LIBS`
46115 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46116 EXTRALIBS_XML="$EXPAT_LINK"
46117 EXTRALIBS_HTML="$MSPACK_LINK"
46118 EXTRALIBS_ODBC="$ODBC_LINK"
46119 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
46120 if test "$wxUSE_GUI" = "yes"; then
46121     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
46122 fi
46123 if test "$wxUSE_OPENGL" = "yes"; then
46124     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46125 fi
46126
46127 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
46128
46129 WXCONFIG_LIBS="$LIBS"
46130
46131 if test "$wxUSE_REGEX" = "builtin" ; then
46132     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
46133 fi
46134 if test "$wxUSE_EXPAT" = "builtin" ; then
46135     wxconfig_3rdparty="expat $wxconfig_3rdparty"
46136 fi
46137 if test "$wxUSE_ODBC" = "builtin" ; then
46138     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
46139 fi
46140 if test "$wxUSE_LIBTIFF" = "builtin" ; then
46141     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
46142 fi
46143 if test "$wxUSE_LIBJPEG" = "builtin" ; then
46144     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
46145 fi
46146 if test "$wxUSE_LIBPNG" = "builtin" ; then
46147     wxconfig_3rdparty="png $wxconfig_3rdparty"
46148 fi
46149 if test "$wxUSE_ZLIB" = "builtin" ; then
46150     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
46151 fi
46152
46153 for i in $wxconfig_3rdparty ; do
46154     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
46155 done
46156
46157
46158 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46159     WXUNIV=1
46160
46161     case "$wxUNIV_THEMES" in
46162         ''|all)
46163             cat >>confdefs.h <<\_ACEOF
46164 #define wxUSE_ALL_THEMES 1
46165 _ACEOF
46166
46167             ;;
46168
46169         *)
46170             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
46171                 cat >>confdefs.h <<_ACEOF
46172 #define wxUSE_THEME_$t 1
46173 _ACEOF
46174
46175             done
46176     esac
46177 else
46178     WXUNIV=0
46179 fi
46180
46181
46182
46183
46184
46185
46186
46187
46188
46189 if test $wxUSE_MONOLITHIC = "yes" ; then
46190     MONOLITHIC=1
46191 else
46192     MONOLITHIC=0
46193 fi
46194
46195 if test $wxUSE_PLUGINS = "yes" ; then
46196     USE_PLUGINS=1
46197 else
46198     USE_PLUGINS=0
46199 fi
46200
46201 if test $wxUSE_ODBC != "no" ; then
46202     USE_ODBC=1
46203 else
46204     USE_ODBC=0
46205 fi
46206
46207 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46208     USE_QA=1
46209 else
46210     USE_QA=0
46211 fi
46212
46213 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46214     OFFICIAL_BUILD=1
46215 else
46216     OFFICIAL_BUILD=0
46217 fi
46218
46219
46220
46221
46222
46223
46224
46225
46226
46227
46228
46229
46230
46231
46232
46233
46234
46235
46236
46237
46238
46239
46240
46241
46242
46243
46244 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46245
46246
46247
46248
46249
46250
46251
46252
46253 case "$TOOLKIT" in
46254     GTK)
46255         TOOLKIT_DESC="GTK+"
46256         if test "$WXGTK20" = 1; then
46257             TOOLKIT_DESC="$TOOLKIT_DESC 2"
46258             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46259                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46260             fi
46261             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46262                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46263             fi
46264             if test "$wxUSE_LIBHILDON" = "yes"; then
46265                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46266             fi
46267
46268             if test "$TOOLKIT_EXTRA" != ""; then
46269                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46270             fi
46271         fi
46272         ;;
46273
46274     ?*)
46275         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46276         ;;
46277
46278     *)
46279         TOOLKIT_DESC="base only"
46280         ;;
46281 esac
46282
46283 if test "$wxUSE_WINE" = "yes"; then
46284     BAKEFILE_FORCE_PLATFORM=win32
46285 fi
46286
46287 if test "$wxUSE_MAC" = 1 ; then
46288     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46289                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46290             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46291         else
46292                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46293         fi
46294         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46295         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46296         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46297         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
46298         bk_use_pch=no
46299     fi
46300     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46301     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
46302 fi
46303
46304 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
46305 then
46306     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
46307 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
46308 if test "${wx_cv_gcc_pch_bug+set}" = set; then
46309   echo $ECHO_N "(cached) $ECHO_C" >&6
46310 else
46311
46312             echo '#include <stdio.h>
46313                   const wchar_t test_var[] = L"awidetest";' > conftest.h
46314
46315             echo '#include "conftest.h"
46316                   int main()
46317                   {
46318                      printf("%ls", test_var);
46319                      return 0;
46320                   }' > conftest.cpp
46321
46322             wx_cv_gcc_pch_bug="pch not supported"
46323
46324             if $CXX conftest.h >/dev/null 2>&1
46325             then
46326                 wx_cv_gcc_pch_bug=
46327
46328                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
46329                 then
46330                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
46331                         grep awidetest >/dev/null
46332                     then
46333                         wx_cv_gcc_pch_bug=no
46334                     else
46335                         wx_cv_gcc_pch_bug=yes
46336                     fi
46337                 fi
46338             fi
46339
46340             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
46341
46342 fi
46343 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
46344 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
46345
46346     if test "$wx_cv_gcc_pch_bug" = yes; then
46347                         bk_use_pch=no
46348     fi
46349 fi
46350
46351
46352
46353
46354     if test "x$BAKEFILE_HOST" = "x"; then
46355                if test "x${host}" = "x" ; then
46356                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46357 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46358    { (exit 1); exit 1; }; }
46359                fi
46360
46361         BAKEFILE_HOST="${host}"
46362     fi
46363
46364     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46365
46366     if test -n "$ac_tool_prefix"; then
46367   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46371 if test "${ac_cv_prog_RANLIB+set}" = set; then
46372   echo $ECHO_N "(cached) $ECHO_C" >&6
46373 else
46374   if test -n "$RANLIB"; then
46375   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46376 else
46377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46378 for as_dir in $PATH
46379 do
46380   IFS=$as_save_IFS
46381   test -z "$as_dir" && as_dir=.
46382   for ac_exec_ext in '' $ac_executable_extensions; do
46383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46384     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46386     break 2
46387   fi
46388 done
46389 done
46390 IFS=$as_save_IFS
46391
46392 fi
46393 fi
46394 RANLIB=$ac_cv_prog_RANLIB
46395 if test -n "$RANLIB"; then
46396   { echo "$as_me:$LINENO: result: $RANLIB" >&5
46397 echo "${ECHO_T}$RANLIB" >&6; }
46398 else
46399   { echo "$as_me:$LINENO: result: no" >&5
46400 echo "${ECHO_T}no" >&6; }
46401 fi
46402
46403
46404 fi
46405 if test -z "$ac_cv_prog_RANLIB"; then
46406   ac_ct_RANLIB=$RANLIB
46407   # Extract the first word of "ranlib", so it can be a program name with args.
46408 set dummy ranlib; ac_word=$2
46409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46412   echo $ECHO_N "(cached) $ECHO_C" >&6
46413 else
46414   if test -n "$ac_ct_RANLIB"; then
46415   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46416 else
46417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46418 for as_dir in $PATH
46419 do
46420   IFS=$as_save_IFS
46421   test -z "$as_dir" && as_dir=.
46422   for ac_exec_ext in '' $ac_executable_extensions; do
46423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46424     ac_cv_prog_ac_ct_RANLIB="ranlib"
46425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46426     break 2
46427   fi
46428 done
46429 done
46430 IFS=$as_save_IFS
46431
46432 fi
46433 fi
46434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46435 if test -n "$ac_ct_RANLIB"; then
46436   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46437 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
46438 else
46439   { echo "$as_me:$LINENO: result: no" >&5
46440 echo "${ECHO_T}no" >&6; }
46441 fi
46442
46443   if test "x$ac_ct_RANLIB" = x; then
46444     RANLIB=":"
46445   else
46446     case $cross_compiling:$ac_tool_warned in
46447 yes:)
46448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46449 whose name does not start with the host triplet.  If you think this
46450 configuration is useful to you, please write to autoconf@gnu.org." >&5
46451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46452 whose name does not start with the host triplet.  If you think this
46453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46454 ac_tool_warned=yes ;;
46455 esac
46456     RANLIB=$ac_ct_RANLIB
46457   fi
46458 else
46459   RANLIB="$ac_cv_prog_RANLIB"
46460 fi
46461
46462     # Find a good install program.  We prefer a C program (faster),
46463 # so one script is as good as another.  But avoid the broken or
46464 # incompatible versions:
46465 # SysV /etc/install, /usr/sbin/install
46466 # SunOS /usr/etc/install
46467 # IRIX /sbin/install
46468 # AIX /bin/install
46469 # AmigaOS /C/install, which installs bootblocks on floppy discs
46470 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46471 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
46472 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
46473 # OS/2's system install, which has a completely different semantic
46474 # ./install, which can be erroneously created by make from ./install.sh.
46475 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46476 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
46477 if test -z "$INSTALL"; then
46478 if test "${ac_cv_path_install+set}" = set; then
46479   echo $ECHO_N "(cached) $ECHO_C" >&6
46480 else
46481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46482 for as_dir in $PATH
46483 do
46484   IFS=$as_save_IFS
46485   test -z "$as_dir" && as_dir=.
46486   # Account for people who put trailing slashes in PATH elements.
46487 case $as_dir/ in
46488   ./ | .// | /cC/* | \
46489   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
46490   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
46491   /usr/ucb/* ) ;;
46492   *)
46493     # OSF1 and SCO ODT 3.0 have their own names for install.
46494     # Don't use installbsd from OSF since it installs stuff as root
46495     # by default.
46496     for ac_prog in ginstall scoinst install; do
46497       for ac_exec_ext in '' $ac_executable_extensions; do
46498         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
46499           if test $ac_prog = install &&
46500             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46501             # AIX install.  It has an incompatible calling convention.
46502             :
46503           elif test $ac_prog = install &&
46504             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46505             # program-specific install script used by HP pwplus--don't use.
46506             :
46507           else
46508             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46509             break 3
46510           fi
46511         fi
46512       done
46513     done
46514     ;;
46515 esac
46516 done
46517 IFS=$as_save_IFS
46518
46519
46520 fi
46521   if test "${ac_cv_path_install+set}" = set; then
46522     INSTALL=$ac_cv_path_install
46523   else
46524     # As a last resort, use the slow shell script.  Don't cache a
46525     # value for INSTALL within a source directory, because that will
46526     # break other packages using the cache if that directory is
46527     # removed, or if the value is a relative name.
46528     INSTALL=$ac_install_sh
46529   fi
46530 fi
46531 { echo "$as_me:$LINENO: result: $INSTALL" >&5
46532 echo "${ECHO_T}$INSTALL" >&6; }
46533
46534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46535 # It thinks the first close brace ends the variable substitution.
46536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46537
46538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46539
46540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46541
46542     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
46543 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
46544 LN_S=$as_ln_s
46545 if test "$LN_S" = "ln -s"; then
46546   { echo "$as_me:$LINENO: result: yes" >&5
46547 echo "${ECHO_T}yes" >&6; }
46548 else
46549   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46550 echo "${ECHO_T}no, using $LN_S" >&6; }
46551 fi
46552
46553
46554     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46555 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
46556 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
46557 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
46558   echo $ECHO_N "(cached) $ECHO_C" >&6
46559 else
46560   cat >conftest.make <<\_ACEOF
46561 SHELL = /bin/sh
46562 all:
46563         @echo '@@@%%%=$(MAKE)=@@@%%%'
46564 _ACEOF
46565 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46566 case `${MAKE-make} -f conftest.make 2>/dev/null` in
46567   *@@@%%%=?*=@@@%%%*)
46568     eval ac_cv_prog_make_${ac_make}_set=yes;;
46569   *)
46570     eval ac_cv_prog_make_${ac_make}_set=no;;
46571 esac
46572 rm -f conftest.make
46573 fi
46574 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
46575   { echo "$as_me:$LINENO: result: yes" >&5
46576 echo "${ECHO_T}yes" >&6; }
46577   SET_MAKE=
46578 else
46579   { echo "$as_me:$LINENO: result: no" >&5
46580 echo "${ECHO_T}no" >&6; }
46581   SET_MAKE="MAKE=${MAKE-make}"
46582 fi
46583
46584
46585
46586     if test "x$SUNCXX" = "xyes"; then
46587                                 AR=$CXX
46588         AROPTIONS="-xar -o"
46589
46590     elif test "x$SGICC" = "xyes"; then
46591                 AR=$CXX
46592         AROPTIONS="-ar -o"
46593
46594     else
46595         if test -n "$ac_tool_prefix"; then
46596   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46597 set dummy ${ac_tool_prefix}ar; ac_word=$2
46598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46600 if test "${ac_cv_prog_AR+set}" = set; then
46601   echo $ECHO_N "(cached) $ECHO_C" >&6
46602 else
46603   if test -n "$AR"; then
46604   ac_cv_prog_AR="$AR" # Let the user override the test.
46605 else
46606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46607 for as_dir in $PATH
46608 do
46609   IFS=$as_save_IFS
46610   test -z "$as_dir" && as_dir=.
46611   for ac_exec_ext in '' $ac_executable_extensions; do
46612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46613     ac_cv_prog_AR="${ac_tool_prefix}ar"
46614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46615     break 2
46616   fi
46617 done
46618 done
46619 IFS=$as_save_IFS
46620
46621 fi
46622 fi
46623 AR=$ac_cv_prog_AR
46624 if test -n "$AR"; then
46625   { echo "$as_me:$LINENO: result: $AR" >&5
46626 echo "${ECHO_T}$AR" >&6; }
46627 else
46628   { echo "$as_me:$LINENO: result: no" >&5
46629 echo "${ECHO_T}no" >&6; }
46630 fi
46631
46632
46633 fi
46634 if test -z "$ac_cv_prog_AR"; then
46635   ac_ct_AR=$AR
46636   # Extract the first word of "ar", so it can be a program name with args.
46637 set dummy ar; ac_word=$2
46638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46640 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46641   echo $ECHO_N "(cached) $ECHO_C" >&6
46642 else
46643   if test -n "$ac_ct_AR"; then
46644   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46645 else
46646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46647 for as_dir in $PATH
46648 do
46649   IFS=$as_save_IFS
46650   test -z "$as_dir" && as_dir=.
46651   for ac_exec_ext in '' $ac_executable_extensions; do
46652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46653     ac_cv_prog_ac_ct_AR="ar"
46654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46655     break 2
46656   fi
46657 done
46658 done
46659 IFS=$as_save_IFS
46660
46661 fi
46662 fi
46663 ac_ct_AR=$ac_cv_prog_ac_ct_AR
46664 if test -n "$ac_ct_AR"; then
46665   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46666 echo "${ECHO_T}$ac_ct_AR" >&6; }
46667 else
46668   { echo "$as_me:$LINENO: result: no" >&5
46669 echo "${ECHO_T}no" >&6; }
46670 fi
46671
46672   if test "x$ac_ct_AR" = x; then
46673     AR="ar"
46674   else
46675     case $cross_compiling:$ac_tool_warned in
46676 yes:)
46677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46678 whose name does not start with the host triplet.  If you think this
46679 configuration is useful to you, please write to autoconf@gnu.org." >&5
46680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46681 whose name does not start with the host triplet.  If you think this
46682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46683 ac_tool_warned=yes ;;
46684 esac
46685     AR=$ac_ct_AR
46686   fi
46687 else
46688   AR="$ac_cv_prog_AR"
46689 fi
46690
46691         AROPTIONS=rcu
46692     fi
46693
46694
46695     if test -n "$ac_tool_prefix"; then
46696   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46697 set dummy ${ac_tool_prefix}strip; ac_word=$2
46698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46700 if test "${ac_cv_prog_STRIP+set}" = set; then
46701   echo $ECHO_N "(cached) $ECHO_C" >&6
46702 else
46703   if test -n "$STRIP"; then
46704   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46705 else
46706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46707 for as_dir in $PATH
46708 do
46709   IFS=$as_save_IFS
46710   test -z "$as_dir" && as_dir=.
46711   for ac_exec_ext in '' $ac_executable_extensions; do
46712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46713     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46715     break 2
46716   fi
46717 done
46718 done
46719 IFS=$as_save_IFS
46720
46721 fi
46722 fi
46723 STRIP=$ac_cv_prog_STRIP
46724 if test -n "$STRIP"; then
46725   { echo "$as_me:$LINENO: result: $STRIP" >&5
46726 echo "${ECHO_T}$STRIP" >&6; }
46727 else
46728   { echo "$as_me:$LINENO: result: no" >&5
46729 echo "${ECHO_T}no" >&6; }
46730 fi
46731
46732
46733 fi
46734 if test -z "$ac_cv_prog_STRIP"; then
46735   ac_ct_STRIP=$STRIP
46736   # Extract the first word of "strip", so it can be a program name with args.
46737 set dummy strip; ac_word=$2
46738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46740 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46741   echo $ECHO_N "(cached) $ECHO_C" >&6
46742 else
46743   if test -n "$ac_ct_STRIP"; then
46744   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46745 else
46746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46747 for as_dir in $PATH
46748 do
46749   IFS=$as_save_IFS
46750   test -z "$as_dir" && as_dir=.
46751   for ac_exec_ext in '' $ac_executable_extensions; do
46752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46753     ac_cv_prog_ac_ct_STRIP="strip"
46754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46755     break 2
46756   fi
46757 done
46758 done
46759 IFS=$as_save_IFS
46760
46761 fi
46762 fi
46763 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46764 if test -n "$ac_ct_STRIP"; then
46765   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46766 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
46767 else
46768   { echo "$as_me:$LINENO: result: no" >&5
46769 echo "${ECHO_T}no" >&6; }
46770 fi
46771
46772   if test "x$ac_ct_STRIP" = x; then
46773     STRIP=":"
46774   else
46775     case $cross_compiling:$ac_tool_warned in
46776 yes:)
46777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46778 whose name does not start with the host triplet.  If you think this
46779 configuration is useful to you, please write to autoconf@gnu.org." >&5
46780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46781 whose name does not start with the host triplet.  If you think this
46782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46783 ac_tool_warned=yes ;;
46784 esac
46785     STRIP=$ac_ct_STRIP
46786   fi
46787 else
46788   STRIP="$ac_cv_prog_STRIP"
46789 fi
46790
46791     if test -n "$ac_tool_prefix"; then
46792   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46793 set dummy ${ac_tool_prefix}nm; ac_word=$2
46794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46796 if test "${ac_cv_prog_NM+set}" = set; then
46797   echo $ECHO_N "(cached) $ECHO_C" >&6
46798 else
46799   if test -n "$NM"; then
46800   ac_cv_prog_NM="$NM" # Let the user override the test.
46801 else
46802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46803 for as_dir in $PATH
46804 do
46805   IFS=$as_save_IFS
46806   test -z "$as_dir" && as_dir=.
46807   for ac_exec_ext in '' $ac_executable_extensions; do
46808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46809     ac_cv_prog_NM="${ac_tool_prefix}nm"
46810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46811     break 2
46812   fi
46813 done
46814 done
46815 IFS=$as_save_IFS
46816
46817 fi
46818 fi
46819 NM=$ac_cv_prog_NM
46820 if test -n "$NM"; then
46821   { echo "$as_me:$LINENO: result: $NM" >&5
46822 echo "${ECHO_T}$NM" >&6; }
46823 else
46824   { echo "$as_me:$LINENO: result: no" >&5
46825 echo "${ECHO_T}no" >&6; }
46826 fi
46827
46828
46829 fi
46830 if test -z "$ac_cv_prog_NM"; then
46831   ac_ct_NM=$NM
46832   # Extract the first word of "nm", so it can be a program name with args.
46833 set dummy nm; ac_word=$2
46834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46836 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46837   echo $ECHO_N "(cached) $ECHO_C" >&6
46838 else
46839   if test -n "$ac_ct_NM"; then
46840   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46841 else
46842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46843 for as_dir in $PATH
46844 do
46845   IFS=$as_save_IFS
46846   test -z "$as_dir" && as_dir=.
46847   for ac_exec_ext in '' $ac_executable_extensions; do
46848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46849     ac_cv_prog_ac_ct_NM="nm"
46850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46851     break 2
46852   fi
46853 done
46854 done
46855 IFS=$as_save_IFS
46856
46857 fi
46858 fi
46859 ac_ct_NM=$ac_cv_prog_ac_ct_NM
46860 if test -n "$ac_ct_NM"; then
46861   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46862 echo "${ECHO_T}$ac_ct_NM" >&6; }
46863 else
46864   { echo "$as_me:$LINENO: result: no" >&5
46865 echo "${ECHO_T}no" >&6; }
46866 fi
46867
46868   if test "x$ac_ct_NM" = x; then
46869     NM=":"
46870   else
46871     case $cross_compiling:$ac_tool_warned in
46872 yes:)
46873 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46874 whose name does not start with the host triplet.  If you think this
46875 configuration is useful to you, please write to autoconf@gnu.org." >&5
46876 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46877 whose name does not start with the host triplet.  If you think this
46878 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46879 ac_tool_warned=yes ;;
46880 esac
46881     NM=$ac_ct_NM
46882   fi
46883 else
46884   NM="$ac_cv_prog_NM"
46885 fi
46886
46887
46888     case ${BAKEFILE_HOST} in
46889         *-hp-hpux* )
46890                                     INSTALL_DIR="mkdir -p"
46891             ;;
46892         * )
46893                                     INSTALL_DIR='$(INSTALL) -d'
46894             ;;
46895     esac
46896
46897
46898     LDFLAGS_GUI=
46899     case ${BAKEFILE_HOST} in
46900         *-*-cygwin* | *-*-mingw32* )
46901         LDFLAGS_GUI="-mwindows"
46902     esac
46903
46904
46905     fi
46906
46907         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
46908 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
46909 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46910   echo $ECHO_N "(cached) $ECHO_C" >&6
46911 else
46912
46913         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46914                 egrep -s GNU > /dev/null); then
46915             bakefile_cv_prog_makeisgnu="yes"
46916         else
46917             bakefile_cv_prog_makeisgnu="no"
46918         fi
46919
46920 fi
46921 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46922 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
46923
46924     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46925         IF_GNU_MAKE=""
46926     else
46927         IF_GNU_MAKE="#"
46928     fi
46929
46930
46931
46932     PLATFORM_UNIX=0
46933     PLATFORM_WIN32=0
46934     PLATFORM_MSDOS=0
46935     PLATFORM_MAC=0
46936     PLATFORM_MACOS=0
46937     PLATFORM_MACOSX=0
46938     PLATFORM_OS2=0
46939     PLATFORM_BEOS=0
46940
46941     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46942         case "${BAKEFILE_HOST}" in
46943             *-*-mingw32* )
46944                 PLATFORM_WIN32=1
46945             ;;
46946             *-pc-msdosdjgpp )
46947                 PLATFORM_MSDOS=1
46948             ;;
46949             *-pc-os2_emx | *-pc-os2-emx )
46950                 PLATFORM_OS2=1
46951             ;;
46952             *-*-darwin* )
46953                 PLATFORM_MAC=1
46954                 PLATFORM_MACOSX=1
46955             ;;
46956             *-*-beos* )
46957                 PLATFORM_BEOS=1
46958             ;;
46959             powerpc-apple-macos* )
46960                 PLATFORM_MAC=1
46961                 PLATFORM_MACOS=1
46962             ;;
46963             * )
46964                 PLATFORM_UNIX=1
46965             ;;
46966         esac
46967     else
46968         case "$BAKEFILE_FORCE_PLATFORM" in
46969             win32 )
46970                 PLATFORM_WIN32=1
46971             ;;
46972             msdos )
46973                 PLATFORM_MSDOS=1
46974             ;;
46975             os2 )
46976                 PLATFORM_OS2=1
46977             ;;
46978             darwin )
46979                 PLATFORM_MAC=1
46980                 PLATFORM_MACOSX=1
46981             ;;
46982             unix )
46983                 PLATFORM_UNIX=1
46984             ;;
46985             beos )
46986                 PLATFORM_BEOS=1
46987             ;;
46988             * )
46989                                             ;;
46990         esac
46991     fi
46992
46993
46994
46995
46996
46997
46998
46999
47000
47001
47002
47003     # Check whether --enable-omf was given.
47004 if test "${enable_omf+set}" = set; then
47005   enableval=$enable_omf; bk_os2_use_omf="$enableval"
47006 fi
47007
47008
47009     case "${BAKEFILE_HOST}" in
47010       *-*-darwin* )
47011                         if test "x$GCC" = "xyes"; then
47012             CFLAGS="$CFLAGS -fno-common"
47013             CXXFLAGS="$CXXFLAGS -fno-common"
47014         fi
47015         if test "x$XLCC" = "xyes"; then
47016             CFLAGS="$CFLAGS -qnocommon"
47017             CXXFLAGS="$CXXFLAGS -qnocommon"
47018         fi
47019         ;;
47020
47021       *-pc-os2_emx | *-pc-os2-emx )
47022         if test "x$bk_os2_use_omf" = "xyes" ; then
47023             AR=emxomfar
47024             RANLIB=:
47025             LDFLAGS="-Zomf $LDFLAGS"
47026             CFLAGS="-Zomf $CFLAGS"
47027             CXXFLAGS="-Zomf $CXXFLAGS"
47028             OS2_LIBEXT="lib"
47029         else
47030             OS2_LIBEXT="a"
47031         fi
47032         ;;
47033
47034       i*86-*-beos* )
47035         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47036         ;;
47037     esac
47038
47039
47040     SO_SUFFIX="so"
47041     SO_SUFFIX_MODULE="so"
47042     EXEEXT=""
47043     LIBPREFIX="lib"
47044     LIBEXT=".a"
47045     DLLPREFIX="lib"
47046     DLLPREFIX_MODULE=""
47047     DLLIMP_SUFFIX=""
47048     dlldir="$libdir"
47049
47050     case "${BAKEFILE_HOST}" in
47051         *-hp-hpux* )
47052             SO_SUFFIX="sl"
47053             SO_SUFFIX_MODULE="sl"
47054         ;;
47055         *-*-aix* )
47056                                                                         SO_SUFFIX="a"
47057             SO_SUFFIX_MODULE="a"
47058         ;;
47059         *-*-cygwin* )
47060             SO_SUFFIX="dll"
47061             SO_SUFFIX_MODULE="dll"
47062             DLLIMP_SUFFIX="dll.a"
47063             EXEEXT=".exe"
47064             DLLPREFIX="cyg"
47065             dlldir="$bindir"
47066         ;;
47067         *-*-mingw32* )
47068             SO_SUFFIX="dll"
47069             SO_SUFFIX_MODULE="dll"
47070             DLLIMP_SUFFIX="dll.a"
47071             EXEEXT=".exe"
47072             DLLPREFIX=""
47073             dlldir="$bindir"
47074         ;;
47075         *-pc-msdosdjgpp )
47076             EXEEXT=".exe"
47077             DLLPREFIX=""
47078             dlldir="$bindir"
47079         ;;
47080         *-pc-os2_emx | *-pc-os2-emx )
47081             SO_SUFFIX="dll"
47082             SO_SUFFIX_MODULE="dll"
47083             DLLIMP_SUFFIX=$OS2_LIBEXT
47084             EXEEXT=".exe"
47085             DLLPREFIX=""
47086             LIBPREFIX=""
47087             LIBEXT=".$OS2_LIBEXT"
47088             dlldir="$bindir"
47089         ;;
47090         *-*-darwin* )
47091             SO_SUFFIX="dylib"
47092             SO_SUFFIX_MODULE="bundle"
47093         ;;
47094     esac
47095
47096     if test "x$DLLIMP_SUFFIX" = "x" ; then
47097         DLLIMP_SUFFIX="$SO_SUFFIX"
47098     fi
47099
47100
47101
47102
47103
47104
47105
47106
47107
47108
47109
47110
47111         PIC_FLAG=""
47112     if test "x$GCC" = "xyes"; then
47113                 PIC_FLAG="-fPIC"
47114     fi
47115
47116         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47117     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
47118     WINDOWS_IMPLIB=0
47119
47120     case "${BAKEFILE_HOST}" in
47121       *-hp-hpux* )
47122                 if test "x$GCC" != "xyes"; then
47123                         LDFLAGS="$LDFLAGS -L/usr/lib"
47124
47125             SHARED_LD_CC="${CC} -b -o"
47126             SHARED_LD_CXX="${CXX} -b -o"
47127             PIC_FLAG="+Z"
47128         fi
47129       ;;
47130
47131       *-*-linux* )
47132         if test "$INTELCC" = "yes"; then
47133             PIC_FLAG="-KPIC"
47134         elif test "x$SUNCXX" = "xyes"; then
47135             SHARED_LD_CC="${CC} -G -o"
47136             SHARED_LD_CXX="${CXX} -G -o"
47137             PIC_FLAG="-KPIC"
47138         fi
47139       ;;
47140
47141       *-*-solaris2* )
47142         if test "x$SUNCXX" = xyes ; then
47143             SHARED_LD_CC="${CC} -G -o"
47144             SHARED_LD_CXX="${CXX} -G -o"
47145             PIC_FLAG="-KPIC"
47146         fi
47147       ;;
47148
47149       *-*-darwin* )
47150
47151 D='$'
47152 cat <<EOF >shared-ld-sh
47153 #!/bin/sh
47154 #-----------------------------------------------------------------------------
47155 #-- Name:        distrib/mac/shared-ld-sh
47156 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
47157 #-- Author:      Gilles Depeyrot
47158 #-- Copyright:   (c) 2002 Gilles Depeyrot
47159 #-- Licence:     any use permitted
47160 #-----------------------------------------------------------------------------
47161
47162 verbose=0
47163 args=""
47164 objects=""
47165 linking_flag="-dynamiclib"
47166 ldargs="-r -keep_private_externs -nostdlib"
47167
47168 while test ${D}# -gt 0; do
47169     case ${D}1 in
47170
47171        -v)
47172         verbose=1
47173         ;;
47174
47175        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47176         # collect these options and values
47177         args="${D}{args} ${D}1 ${D}2"
47178         shift
47179         ;;
47180
47181        -s|-Wl,*)
47182         # collect these load args
47183         ldargs="${D}{ldargs} ${D}1"
47184         ;;
47185
47186        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
47187         # collect these options
47188         args="${D}{args} ${D}1"
47189         ;;
47190
47191        -dynamiclib|-bundle)
47192         linking_flag="${D}1"
47193         ;;
47194
47195        -*)
47196         echo "shared-ld: unhandled option '${D}1'"
47197         exit 1
47198         ;;
47199
47200         *.o | *.a | *.dylib)
47201         # collect object files
47202         objects="${D}{objects} ${D}1"
47203         ;;
47204
47205         *)
47206         echo "shared-ld: unhandled argument '${D}1'"
47207         exit 1
47208         ;;
47209
47210     esac
47211     shift
47212 done
47213
47214 status=0
47215
47216 #
47217 # Link one module containing all the others
47218 #
47219 if test ${D}{verbose} = 1; then
47220     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
47221 fi
47222 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
47223 status=${D}?
47224
47225 #
47226 # Link the shared library from the single module created, but only if the
47227 # previous command didn't fail:
47228 #
47229 if test ${D}{status} = 0; then
47230     if test ${D}{verbose} = 1; then
47231         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47232     fi
47233     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47234     status=${D}?
47235 fi
47236
47237 #
47238 # Remove intermediate module
47239 #
47240 rm -f master.${D}${D}.o
47241
47242 exit ${D}status
47243 EOF
47244
47245         chmod +x shared-ld-sh
47246
47247         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47248         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47249
47250
47251                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47252 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
47253 if test "${bakefile_cv_gcc31+set}" = set; then
47254   echo $ECHO_N "(cached) $ECHO_C" >&6
47255 else
47256
47257            cat >conftest.$ac_ext <<_ACEOF
47258 /* confdefs.h.  */
47259 _ACEOF
47260 cat confdefs.h >>conftest.$ac_ext
47261 cat >>conftest.$ac_ext <<_ACEOF
47262 /* end confdefs.h.  */
47263
47264 int
47265 main ()
47266 {
47267
47268                    #if (__GNUC__ < 3) || \
47269                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
47270                        This is old gcc
47271                    #endif
47272
47273   ;
47274   return 0;
47275 }
47276 _ACEOF
47277 rm -f conftest.$ac_objext
47278 if { (ac_try="$ac_compile"
47279 case "(($ac_try" in
47280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47281   *) ac_try_echo=$ac_try;;
47282 esac
47283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47284   (eval "$ac_compile") 2>conftest.er1
47285   ac_status=$?
47286   grep -v '^ *+' conftest.er1 >conftest.err
47287   rm -f conftest.er1
47288   cat conftest.err >&5
47289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47290   (exit $ac_status); } && {
47291          test -z "$ac_c_werror_flag" ||
47292          test ! -s conftest.err
47293        } && test -s conftest.$ac_objext; then
47294
47295                    bakefile_cv_gcc31=yes
47296
47297 else
47298   echo "$as_me: failed program was:" >&5
47299 sed 's/^/| /' conftest.$ac_ext >&5
47300
47301
47302                    bakefile_cv_gcc31=no
47303
47304
47305 fi
47306
47307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47308
47309 fi
47310 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47311 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
47312         if test "$bakefile_cv_gcc31" = "no"; then
47313                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
47314             SHARED_LD_CXX="$SHARED_LD_CC"
47315         else
47316                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
47317             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
47318         fi
47319
47320         if test "x$GCC" == "xyes"; then
47321             PIC_FLAG="-dynamic -fPIC"
47322         fi
47323         if test "x$XLCC" = "xyes"; then
47324             PIC_FLAG="-dynamic -DPIC"
47325         fi
47326       ;;
47327
47328       *-*-aix* )
47329         if test "x$GCC" = "xyes"; then
47330                                                             PIC_FLAG=""
47331
47332                                                                                     case "${BAKEFILE_HOST}" in
47333                 *-*-aix5* )
47334                     LD_EXPFULL="-Wl,-bexpfull"
47335                     ;;
47336             esac
47337
47338             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47339             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47340         else
47341                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
47342 set dummy makeC++SharedLib; ac_word=$2
47343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47345 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47346   echo $ECHO_N "(cached) $ECHO_C" >&6
47347 else
47348   if test -n "$AIX_CXX_LD"; then
47349   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47350 else
47351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47352 for as_dir in $PATH
47353 do
47354   IFS=$as_save_IFS
47355   test -z "$as_dir" && as_dir=.
47356   for ac_exec_ext in '' $ac_executable_extensions; do
47357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47358     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47360     break 2
47361   fi
47362 done
47363 done
47364 IFS=$as_save_IFS
47365
47366   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47367 fi
47368 fi
47369 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47370 if test -n "$AIX_CXX_LD"; then
47371   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47372 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
47373 else
47374   { echo "$as_me:$LINENO: result: no" >&5
47375 echo "${ECHO_T}no" >&6; }
47376 fi
47377
47378
47379             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
47380             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47381         fi
47382       ;;
47383
47384       *-*-beos* )
47385                         SHARED_LD_CC="${LD} -nostart -o"
47386         SHARED_LD_CXX="${LD} -nostart -o"
47387       ;;
47388
47389       *-*-irix* )
47390                 if test "x$GCC" != "xyes"; then
47391             PIC_FLAG="-KPIC"
47392         fi
47393       ;;
47394
47395       *-*-cygwin* | *-*-mingw32* )
47396         PIC_FLAG=""
47397         SHARED_LD_CC="\$(CC) -shared -o"
47398         SHARED_LD_CXX="\$(CXX) -shared -o"
47399         WINDOWS_IMPLIB=1
47400       ;;
47401
47402       *-pc-os2_emx | *-pc-os2-emx )
47403         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47404         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47405         PIC_FLAG=""
47406
47407 D='$'
47408 cat <<EOF >dllar.sh
47409 #!/bin/sh
47410 #
47411 # dllar - a tool to build both a .dll and an .a file
47412 # from a set of object (.o) files for EMX/OS2.
47413 #
47414 #  Written by Andrew Zabolotny, bit@freya.etu.ru
47415 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47416 #
47417 #  This script will accept a set of files on the command line.
47418 #  All the public symbols from the .o files will be exported into
47419 #  a .DEF file, then linker will be run (through gcc) against them to
47420 #  build a shared library consisting of all given .o files. All libraries
47421 #  (.a) will be first decompressed into component .o files then act as
47422 #  described above. You can optionally give a description (-d "description")
47423 #  which will be put into .DLL. To see the list of accepted options (as well
47424 #  as command-line format) simply run this program without options. The .DLL
47425 #  is built to be imported by name (there is no guarantee that new versions
47426 #  of the library you build will have same ordinals for same symbols).
47427 #
47428 #  dllar is free software; you can redistribute it and/or modify
47429 #  it under the terms of the GNU General Public License as published by
47430 #  the Free Software Foundation; either version 2, or (at your option)
47431 #  any later version.
47432 #
47433 #  dllar is distributed in the hope that it will be useful,
47434 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
47435 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47436 #  GNU General Public License for more details.
47437 #
47438 #  You should have received a copy of the GNU General Public License
47439 #  along with dllar; see the file COPYING.  If not, write to the Free
47440 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47441 #  02111-1307, USA.
47442
47443 # To successfuly run this program you will need:
47444 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
47445 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47446 #  - gcc
47447 #    (used to build the .dll)
47448 #  - emxexp
47449 #    (used to create .def file from .o files)
47450 #  - emximp
47451 #    (used to create .a file from .def file)
47452 #  - GNU text utilites (cat, sort, uniq)
47453 #    used to process emxexp output
47454 #  - GNU file utilities (mv, rm)
47455 #  - GNU sed
47456 #  - lxlite (optional, see flag below)
47457 #    (used for general .dll cleanup)
47458 #
47459
47460 flag_USE_LXLITE=1;
47461
47462 #
47463 # helper functions
47464 # basnam, variant of basename, which does _not_ remove the path, _iff_
47465 #                              second argument (suffix to remove) is given
47466 basnam(){
47467     case ${D}# in
47468     1)
47469         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
47470         ;;
47471     2)
47472         echo ${D}1 | sed 's/'${D}2'${D}//'
47473         ;;
47474     *)
47475         echo "error in basnam ${D}*"
47476         exit 8
47477         ;;
47478     esac
47479 }
47480
47481 # Cleanup temporary files and output
47482 CleanUp() {
47483     cd ${D}curDir
47484     for i in ${D}inputFiles ; do
47485         case ${D}i in
47486         *!)
47487             rm -rf \`basnam ${D}i !\`
47488             ;;
47489         *)
47490             ;;
47491         esac
47492     done
47493
47494     # Kill result in case of failure as there is just to many stupid make/nmake
47495     # things out there which doesn't do this.
47496     if [ ${D}# -eq 0 ]; then
47497         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47498     fi
47499 }
47500
47501 # Print usage and exit script with rc=1.
47502 PrintHelp() {
47503  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47504  echo '       [-name-mangler-script script.sh]'
47505  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47506  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
47507  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
47508  echo '       [*.o] [*.a]'
47509  echo '*> "output_file" should have no extension.'
47510  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
47511  echo '   The import library name is derived from this and is set to "name".a,'
47512  echo '   unless overridden by -import'
47513  echo '*> "importlib_name" should have no extension.'
47514  echo '   If it has the .o, or .a extension, it is automatically removed.'
47515  echo '   This name is used as the import library name and may be longer and'
47516  echo '   more descriptive than the DLL name which has to follow the old '
47517  echo '   8.3 convention of FAT.'
47518  echo '*> "script.sh may be given to override the output_file name by a'
47519  echo '   different name. It is mainly useful if the regular make process'
47520  echo '   of some package does not take into account OS/2 restriction of'
47521  echo '   DLL name lengths. It takes the importlib name as input and is'
47522  echo '   supposed to procude a shorter name as output. The script should'
47523  echo '   expect to get importlib_name without extension and should produce'
47524  echo '   a (max.) 8 letter name without extension.'
47525  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
47526  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47527  echo '   These flags will be put at the start of GCC command line.'
47528  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47529  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
47530  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47531  echo '   If the last character of a symbol is "*", all symbols beginning'
47532  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
47533  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
47534  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
47535  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
47536  echo '   C runtime DLLs.'
47537  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
47538  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47539  echo '   unchanged to GCC at the end of command line.'
47540  echo '*> If you create a DLL from a library and you do not specify -o,'
47541  echo '   the basename for DLL and import library will be set to library name,'
47542  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
47543  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47544  echo '   library will be renamed into gcc_s.a.'
47545  echo '--------'
47546  echo 'Example:'
47547  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47548  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47549  CleanUp
47550  exit 1
47551 }
47552
47553 # Execute a command.
47554 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47555 # @Uses    Whatever CleanUp() uses.
47556 doCommand() {
47557     echo "${D}*"
47558     eval ${D}*
47559     rcCmd=${D}?
47560
47561     if [ ${D}rcCmd -ne 0 ]; then
47562         echo "command failed, exit code="${D}rcCmd
47563         CleanUp
47564         exit ${D}rcCmd
47565     fi
47566 }
47567
47568 # main routine
47569 # setup globals
47570 cmdLine=${D}*
47571 outFile=""
47572 outimpFile=""
47573 inputFiles=""
47574 renameScript=""
47575 description=""
47576 CC=gcc.exe
47577 CFLAGS="-s -Zcrtdll"
47578 EXTRA_CFLAGS=""
47579 EXPORT_BY_ORDINALS=0
47580 exclude_symbols=""
47581 library_flags=""
47582 curDir=\`pwd\`
47583 curDirS=curDir
47584 case ${D}curDirS in
47585 */)
47586   ;;
47587 *)
47588   curDirS=${D}{curDirS}"/"
47589   ;;
47590 esac
47591 # Parse commandline
47592 libsToLink=0
47593 omfLinking=0
47594 while [ ${D}1 ]; do
47595     case ${D}1 in
47596     -ord*)
47597         EXPORT_BY_ORDINALS=1;
47598         ;;
47599     -o*)
47600         shift
47601         outFile=${D}1
47602         ;;
47603     -i*)
47604         shift
47605         outimpFile=${D}1
47606         ;;
47607     -name-mangler-script)
47608         shift
47609         renameScript=${D}1
47610         ;;
47611     -d*)
47612         shift
47613         description=${D}1
47614         ;;
47615     -f*)
47616         shift
47617         CFLAGS=${D}1
47618         ;;
47619     -c*)
47620         shift
47621         CC=${D}1
47622         ;;
47623     -h*)
47624         PrintHelp
47625         ;;
47626     -ex*)
47627         shift
47628         exclude_symbols=${D}{exclude_symbols}${D}1" "
47629         ;;
47630     -libf*)
47631         shift
47632         library_flags=${D}{library_flags}${D}1" "
47633         ;;
47634     -nocrt*)
47635         CFLAGS="-s"
47636         ;;
47637     -nolxl*)
47638         flag_USE_LXLITE=0
47639         ;;
47640     -* | /*)
47641         case ${D}1 in
47642         -L* | -l*)
47643             libsToLink=1
47644             ;;
47645         -Zomf)
47646             omfLinking=1
47647             ;;
47648         *)
47649             ;;
47650         esac
47651         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47652         ;;
47653     *.dll)
47654         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47655         if [ ${D}omfLinking -eq 1 ]; then
47656             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47657         else
47658             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47659         fi
47660         ;;
47661     *)
47662         found=0;
47663         if [ ${D}libsToLink -ne 0 ]; then
47664             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47665         else
47666             for file in ${D}1 ; do
47667                 if [ -f ${D}file ]; then
47668                     inputFiles="${D}{inputFiles} ${D}file"
47669                     found=1
47670                 fi
47671             done
47672             if [ ${D}found -eq 0 ]; then
47673                 echo "ERROR: No file(s) found: "${D}1
47674                 exit 8
47675             fi
47676         fi
47677       ;;
47678     esac
47679     shift
47680 done # iterate cmdline words
47681
47682 #
47683 if [ -z "${D}inputFiles" ]; then
47684     echo "dllar: no input files"
47685     PrintHelp
47686 fi
47687
47688 # Now extract all .o files from .a files
47689 newInputFiles=""
47690 for file in ${D}inputFiles ; do
47691     case ${D}file in
47692     *.a | *.lib)
47693         case ${D}file in
47694         *.a)
47695             suffix=".a"
47696             AR="ar"
47697             ;;
47698         *.lib)
47699             suffix=".lib"
47700             AR="emxomfar"
47701             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47702             ;;
47703         *)
47704             ;;
47705         esac
47706         dirname=\`basnam ${D}file ${D}suffix\`"_%"
47707         mkdir ${D}dirname
47708         if [ ${D}? -ne 0 ]; then
47709             echo "Failed to create subdirectory ./${D}dirname"
47710             CleanUp
47711             exit 8;
47712         fi
47713         # Append '!' to indicate archive
47714         newInputFiles="${D}newInputFiles ${D}{dirname}!"
47715         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47716         cd ${D}curDir
47717         found=0;
47718         for subfile in ${D}dirname/*.o* ; do
47719             if [ -f ${D}subfile ]; then
47720                 found=1
47721                 if [ -s ${D}subfile ]; then
47722                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47723                     newInputFiles="${D}newInputFiles ${D}subfile"
47724                 fi
47725             fi
47726         done
47727         if [ ${D}found -eq 0 ]; then
47728             echo "WARNING: there are no files in archive \\'${D}file\\'"
47729         fi
47730         ;;
47731     *)
47732         newInputFiles="${D}{newInputFiles} ${D}file"
47733         ;;
47734     esac
47735 done
47736 inputFiles="${D}newInputFiles"
47737
47738 # Output filename(s).
47739 do_backup=0;
47740 if [ -z ${D}outFile ]; then
47741     do_backup=1;
47742     set outFile ${D}inputFiles; outFile=${D}2
47743 fi
47744
47745 # If it is an archive, remove the '!' and the '_%' suffixes
47746 case ${D}outFile in
47747 *_%!)
47748     outFile=\`basnam ${D}outFile _%!\`
47749     ;;
47750 *)
47751     ;;
47752 esac
47753 case ${D}outFile in
47754 *.dll)
47755     outFile=\`basnam ${D}outFile .dll\`
47756     ;;
47757 *.DLL)
47758     outFile=\`basnam ${D}outFile .DLL\`
47759     ;;
47760 *.o)
47761     outFile=\`basnam ${D}outFile .o\`
47762     ;;
47763 *.obj)
47764     outFile=\`basnam ${D}outFile .obj\`
47765     ;;
47766 *.a)
47767     outFile=\`basnam ${D}outFile .a\`
47768     ;;
47769 *.lib)
47770     outFile=\`basnam ${D}outFile .lib\`
47771     ;;
47772 *)
47773     ;;
47774 esac
47775 case ${D}outimpFile in
47776 *.a)
47777     outimpFile=\`basnam ${D}outimpFile .a\`
47778     ;;
47779 *.lib)
47780     outimpFile=\`basnam ${D}outimpFile .lib\`
47781     ;;
47782 *)
47783     ;;
47784 esac
47785 if [ -z ${D}outimpFile ]; then
47786     outimpFile=${D}outFile
47787 fi
47788 defFile="${D}{outFile}.def"
47789 arcFile="${D}{outimpFile}.a"
47790 arcFile2="${D}{outimpFile}.lib"
47791
47792 #create ${D}dllFile as something matching 8.3 restrictions,
47793 if [ -z ${D}renameScript ] ; then
47794     dllFile="${D}outFile"
47795 else
47796     dllFile=\`${D}renameScript ${D}outimpFile\`
47797 fi
47798
47799 if [ ${D}do_backup -ne 0 ] ; then
47800     if [ -f ${D}arcFile ] ; then
47801         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47802     fi
47803     if [ -f ${D}arcFile2 ] ; then
47804         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47805     fi
47806 fi
47807
47808 # Extract public symbols from all the object files.
47809 tmpdefFile=${D}{defFile}_%
47810 rm -f ${D}tmpdefFile
47811 for file in ${D}inputFiles ; do
47812     case ${D}file in
47813     *!)
47814         ;;
47815     *)
47816         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47817         ;;
47818     esac
47819 done
47820
47821 # Create the def file.
47822 rm -f ${D}defFile
47823 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
47824 dllFile="${D}{dllFile}.dll"
47825 if [ ! -z ${D}description ]; then
47826     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
47827 fi
47828 echo "EXPORTS" >> ${D}defFile
47829
47830 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47831 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47832
47833 # Checks if the export is ok or not.
47834 for word in ${D}exclude_symbols; do
47835     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47836     mv ${D}{tmpdefFile}% ${D}tmpdefFile
47837 done
47838
47839
47840 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47841     sed "=" < ${D}tmpdefFile | \\
47842     sed '
47843       N
47844       : loop
47845       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
47846       t loop
47847     ' > ${D}{tmpdefFile}%
47848     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47849 else
47850     rm -f ${D}{tmpdefFile}%
47851 fi
47852 cat ${D}tmpdefFile >> ${D}defFile
47853 rm -f ${D}tmpdefFile
47854
47855 # Do linking, create implib, and apply lxlite.
47856 gccCmdl="";
47857 for file in ${D}inputFiles ; do
47858     case ${D}file in
47859     *!)
47860         ;;
47861     *)
47862         gccCmdl="${D}gccCmdl ${D}file"
47863         ;;
47864     esac
47865 done
47866 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47867 touch "${D}{outFile}.dll"
47868
47869 doCommand "emximp -o ${D}arcFile ${D}defFile"
47870 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
47871     add_flags="";
47872     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47873         add_flags="-ynd"
47874     fi
47875     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47876 fi
47877 doCommand "emxomf -s -l ${D}arcFile"
47878
47879 # Successful exit.
47880 CleanUp 1
47881 exit 0
47882 EOF
47883
47884         chmod +x dllar.sh
47885       ;;
47886
47887       powerpc-apple-macos* | \
47888       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
47889       *-*-mirbsd* | \
47890       *-*-sunos4* | \
47891       *-*-osf* | \
47892       *-*-dgux5* | \
47893       *-*-sysv5* | \
47894       *-pc-msdosdjgpp )
47895               ;;
47896
47897       *)
47898         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
47899 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
47900    { (exit 1); exit 1; }; }
47901     esac
47902
47903     if test "x$PIC_FLAG" != "x" ; then
47904         PIC_FLAG="$PIC_FLAG -DPIC"
47905     fi
47906
47907     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47908         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47909     fi
47910     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47911         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47912     fi
47913
47914
47915
47916
47917
47918
47919
47920
47921
47922     USE_SOVERSION=0
47923     USE_SOVERLINUX=0
47924     USE_SOVERSOLARIS=0
47925     USE_SOVERCYGWIN=0
47926     USE_SOSYMLINKS=0
47927     USE_MACVERSION=0
47928     SONAME_FLAG=
47929
47930     case "${BAKEFILE_HOST}" in
47931       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
47932         if test "x$SUNCXX" = "xyes"; then
47933             SONAME_FLAG="-h "
47934         else
47935             SONAME_FLAG="-Wl,-soname,"
47936         fi
47937         USE_SOVERSION=1
47938         USE_SOVERLINUX=1
47939         USE_SOSYMLINKS=1
47940       ;;
47941
47942       *-*-solaris2* )
47943         SONAME_FLAG="-h "
47944         USE_SOVERSION=1
47945         USE_SOVERSOLARIS=1
47946         USE_SOSYMLINKS=1
47947       ;;
47948
47949       *-*-darwin* )
47950         USE_MACVERSION=1
47951         USE_SOVERSION=1
47952         USE_SOSYMLINKS=1
47953       ;;
47954
47955       *-*-cygwin* )
47956         USE_SOVERSION=1
47957         USE_SOVERCYGWIN=1
47958       ;;
47959     esac
47960
47961
47962
47963
47964
47965
47966
47967
47968
47969
47970     # Check whether --enable-dependency-tracking was given.
47971 if test "${enable_dependency_tracking+set}" = set; then
47972   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
47973 fi
47974
47975
47976     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47977 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
47978
47979     BK_DEPS=""
47980     if test "x$bk_use_trackdeps" = "xno" ; then
47981         DEPS_TRACKING=0
47982         { echo "$as_me:$LINENO: result: disabled" >&5
47983 echo "${ECHO_T}disabled" >&6; }
47984     else
47985         DEPS_TRACKING=1
47986
47987         if test "x$GCC" = "xyes"; then
47988             DEPSMODE=gcc
47989             case "${BAKEFILE_HOST}" in
47990                 *-*-darwin* )
47991                                                             DEPSFLAG="-no-cpp-precomp -MMD"
47992                 ;;
47993                 * )
47994                     DEPSFLAG="-MMD"
47995                 ;;
47996             esac
47997             { echo "$as_me:$LINENO: result: gcc" >&5
47998 echo "${ECHO_T}gcc" >&6; }
47999         elif test "x$MWCC" = "xyes"; then
48000             DEPSMODE=mwcc
48001             DEPSFLAG="-MM"
48002             { echo "$as_me:$LINENO: result: mwcc" >&5
48003 echo "${ECHO_T}mwcc" >&6; }
48004         elif test "x$SUNCC" = "xyes"; then
48005             DEPSMODE=unixcc
48006             DEPSFLAG="-xM1"
48007             { echo "$as_me:$LINENO: result: Sun cc" >&5
48008 echo "${ECHO_T}Sun cc" >&6; }
48009         elif test "x$SGICC" = "xyes"; then
48010             DEPSMODE=unixcc
48011             DEPSFLAG="-M"
48012             { echo "$as_me:$LINENO: result: SGI cc" >&5
48013 echo "${ECHO_T}SGI cc" >&6; }
48014         elif test "x$HPCC" = "xyes"; then
48015             DEPSMODE=unixcc
48016             DEPSFLAG="+make"
48017             { echo "$as_me:$LINENO: result: HP cc" >&5
48018 echo "${ECHO_T}HP cc" >&6; }
48019         elif test "x$COMPAQCC" = "xyes"; then
48020             DEPSMODE=gcc
48021             DEPSFLAG="-MD"
48022             { echo "$as_me:$LINENO: result: Compaq cc" >&5
48023 echo "${ECHO_T}Compaq cc" >&6; }
48024         else
48025             DEPS_TRACKING=0
48026             { echo "$as_me:$LINENO: result: none" >&5
48027 echo "${ECHO_T}none" >&6; }
48028         fi
48029
48030         if test $DEPS_TRACKING = 1 ; then
48031
48032 D='$'
48033 cat <<EOF >bk-deps
48034 #!/bin/sh
48035
48036 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48037 # script. It is used to track C/C++ files dependencies in portable way.
48038 #
48039 # Permission is given to use this file in any way.
48040
48041 DEPSMODE=${DEPSMODE}
48042 DEPSDIR=.deps
48043 DEPSFLAG="${DEPSFLAG}"
48044
48045 mkdir -p ${D}DEPSDIR
48046
48047 if test ${D}DEPSMODE = gcc ; then
48048     ${D}* ${D}{DEPSFLAG}
48049     status=${D}?
48050     if test ${D}{status} != 0 ; then
48051         exit ${D}{status}
48052     fi
48053     # move created file to the location we want it in:
48054     while test ${D}# -gt 0; do
48055         case "${D}1" in
48056             -o )
48057                 shift
48058                 objfile=${D}1
48059             ;;
48060             -* )
48061             ;;
48062             * )
48063                 srcfile=${D}1
48064             ;;
48065         esac
48066         shift
48067     done
48068     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48069     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
48070     if test -f ${D}depfile ; then
48071         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48072         rm -f ${D}depfile
48073     else
48074         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
48075         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
48076         if test ! -f ${D}depfile ; then
48077             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48078             depfile="${D}objfile.d"
48079         fi
48080         if test -f ${D}depfile ; then
48081             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48082             rm -f ${D}depfile
48083         fi
48084     fi
48085     exit 0
48086 elif test ${D}DEPSMODE = mwcc ; then
48087     ${D}* || exit ${D}?
48088     # Run mwcc again with -MM and redirect into the dep file we want
48089     # NOTE: We can't use shift here because we need ${D}* to be valid
48090     prevarg=
48091     for arg in ${D}* ; do
48092         if test "${D}prevarg" = "-o"; then
48093             objfile=${D}arg
48094         else
48095             case "${D}arg" in
48096                 -* )
48097                 ;;
48098                 * )
48099                     srcfile=${D}arg
48100                 ;;
48101             esac
48102         fi
48103         prevarg="${D}arg"
48104     done
48105     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
48106     exit 0
48107 elif test ${D}DEPSMODE = unixcc; then
48108     ${D}* || exit ${D}?
48109     # Run compiler again with deps flag and redirect into the dep file.
48110     # It doesn't work if the '-o FILE' option is used, but without it the
48111     # dependency file will contain the wrong name for the object. So it is
48112     # removed from the command line, and the dep file is fixed with sed.
48113     cmd=""
48114     while test ${D}# -gt 0; do
48115         case "${D}1" in
48116             -o )
48117                 shift
48118                 objfile=${D}1
48119             ;;
48120             * )
48121                 eval arg${D}#=\\${D}1
48122                 cmd="${D}cmd \\${D}arg${D}#"
48123             ;;
48124         esac
48125         shift
48126     done
48127     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
48128     exit 0
48129 else
48130     ${D}*
48131     exit ${D}?
48132 fi
48133 EOF
48134
48135             chmod +x bk-deps
48136                                     BK_DEPS="`pwd`/bk-deps"
48137         fi
48138     fi
48139
48140
48141
48142
48143
48144     case ${BAKEFILE_HOST} in
48145         *-*-cygwin* | *-*-mingw32* )
48146                         if test -n "$ac_tool_prefix"; then
48147   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48148 set dummy ${ac_tool_prefix}windres; ac_word=$2
48149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48151 if test "${ac_cv_prog_WINDRES+set}" = set; then
48152   echo $ECHO_N "(cached) $ECHO_C" >&6
48153 else
48154   if test -n "$WINDRES"; then
48155   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48156 else
48157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48158 for as_dir in $PATH
48159 do
48160   IFS=$as_save_IFS
48161   test -z "$as_dir" && as_dir=.
48162   for ac_exec_ext in '' $ac_executable_extensions; do
48163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48164     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48166     break 2
48167   fi
48168 done
48169 done
48170 IFS=$as_save_IFS
48171
48172 fi
48173 fi
48174 WINDRES=$ac_cv_prog_WINDRES
48175 if test -n "$WINDRES"; then
48176   { echo "$as_me:$LINENO: result: $WINDRES" >&5
48177 echo "${ECHO_T}$WINDRES" >&6; }
48178 else
48179   { echo "$as_me:$LINENO: result: no" >&5
48180 echo "${ECHO_T}no" >&6; }
48181 fi
48182
48183
48184 fi
48185 if test -z "$ac_cv_prog_WINDRES"; then
48186   ac_ct_WINDRES=$WINDRES
48187   # Extract the first word of "windres", so it can be a program name with args.
48188 set dummy windres; ac_word=$2
48189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48191 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
48192   echo $ECHO_N "(cached) $ECHO_C" >&6
48193 else
48194   if test -n "$ac_ct_WINDRES"; then
48195   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
48196 else
48197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48198 for as_dir in $PATH
48199 do
48200   IFS=$as_save_IFS
48201   test -z "$as_dir" && as_dir=.
48202   for ac_exec_ext in '' $ac_executable_extensions; do
48203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48204     ac_cv_prog_ac_ct_WINDRES="windres"
48205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48206     break 2
48207   fi
48208 done
48209 done
48210 IFS=$as_save_IFS
48211
48212 fi
48213 fi
48214 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48215 if test -n "$ac_ct_WINDRES"; then
48216   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48217 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
48218 else
48219   { echo "$as_me:$LINENO: result: no" >&5
48220 echo "${ECHO_T}no" >&6; }
48221 fi
48222
48223   if test "x$ac_ct_WINDRES" = x; then
48224     WINDRES=""
48225   else
48226     case $cross_compiling:$ac_tool_warned in
48227 yes:)
48228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48229 whose name does not start with the host triplet.  If you think this
48230 configuration is useful to you, please write to autoconf@gnu.org." >&5
48231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48232 whose name does not start with the host triplet.  If you think this
48233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48234 ac_tool_warned=yes ;;
48235 esac
48236     WINDRES=$ac_ct_WINDRES
48237   fi
48238 else
48239   WINDRES="$ac_cv_prog_WINDRES"
48240 fi
48241
48242          ;;
48243
48244       *-*-darwin* | powerpc-apple-macos* )
48245             # Extract the first word of "Rez", so it can be a program name with args.
48246 set dummy Rez; ac_word=$2
48247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48249 if test "${ac_cv_prog_REZ+set}" = set; then
48250   echo $ECHO_N "(cached) $ECHO_C" >&6
48251 else
48252   if test -n "$REZ"; then
48253   ac_cv_prog_REZ="$REZ" # Let the user override the test.
48254 else
48255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48256 for as_dir in $PATH
48257 do
48258   IFS=$as_save_IFS
48259   test -z "$as_dir" && as_dir=.
48260   for ac_exec_ext in '' $ac_executable_extensions; do
48261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48262     ac_cv_prog_REZ="Rez"
48263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48264     break 2
48265   fi
48266 done
48267 done
48268 IFS=$as_save_IFS
48269
48270   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
48271 fi
48272 fi
48273 REZ=$ac_cv_prog_REZ
48274 if test -n "$REZ"; then
48275   { echo "$as_me:$LINENO: result: $REZ" >&5
48276 echo "${ECHO_T}$REZ" >&6; }
48277 else
48278   { echo "$as_me:$LINENO: result: no" >&5
48279 echo "${ECHO_T}no" >&6; }
48280 fi
48281
48282
48283             # Extract the first word of "SetFile", so it can be a program name with args.
48284 set dummy SetFile; ac_word=$2
48285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48287 if test "${ac_cv_prog_SETFILE+set}" = set; then
48288   echo $ECHO_N "(cached) $ECHO_C" >&6
48289 else
48290   if test -n "$SETFILE"; then
48291   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48292 else
48293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48294 for as_dir in $PATH
48295 do
48296   IFS=$as_save_IFS
48297   test -z "$as_dir" && as_dir=.
48298   for ac_exec_ext in '' $ac_executable_extensions; do
48299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48300     ac_cv_prog_SETFILE="SetFile"
48301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48302     break 2
48303   fi
48304 done
48305 done
48306 IFS=$as_save_IFS
48307
48308   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48309 fi
48310 fi
48311 SETFILE=$ac_cv_prog_SETFILE
48312 if test -n "$SETFILE"; then
48313   { echo "$as_me:$LINENO: result: $SETFILE" >&5
48314 echo "${ECHO_T}$SETFILE" >&6; }
48315 else
48316   { echo "$as_me:$LINENO: result: no" >&5
48317 echo "${ECHO_T}no" >&6; }
48318 fi
48319
48320
48321         ;;
48322     esac
48323
48324
48325
48326
48327
48328
48329     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
48330
48331
48332 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
48333
48334
48335
48336     # Check whether --enable-precomp-headers was given.
48337 if test "${enable_precomp_headers+set}" = set; then
48338   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
48339 fi
48340
48341
48342     GCC_PCH=0
48343     ICC_PCH=0
48344     USE_PCH=0
48345     BK_MAKE_PCH=""
48346
48347     case ${BAKEFILE_HOST} in
48348         *-*-cygwin* )
48349                                                 bk_use_pch="no"
48350             ;;
48351     esac
48352
48353     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48354         if test "x$GCC" = "xyes"; then
48355                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48356 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
48357             cat >conftest.$ac_ext <<_ACEOF
48358 /* confdefs.h.  */
48359 _ACEOF
48360 cat confdefs.h >>conftest.$ac_ext
48361 cat >>conftest.$ac_ext <<_ACEOF
48362 /* end confdefs.h.  */
48363
48364 int
48365 main ()
48366 {
48367
48368                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
48369                         There is no PCH support
48370                     #endif
48371                     #if (__GNUC__ < 3)
48372                         There is no PCH support
48373                     #endif
48374                     #if (__GNUC__ == 3) && \
48375                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
48376                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48377                        ( defined(__INTEL_COMPILER) )
48378                         There is no PCH support
48379                     #endif
48380
48381   ;
48382   return 0;
48383 }
48384 _ACEOF
48385 rm -f conftest.$ac_objext
48386 if { (ac_try="$ac_compile"
48387 case "(($ac_try" in
48388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48389   *) ac_try_echo=$ac_try;;
48390 esac
48391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48392   (eval "$ac_compile") 2>conftest.er1
48393   ac_status=$?
48394   grep -v '^ *+' conftest.er1 >conftest.err
48395   rm -f conftest.er1
48396   cat conftest.err >&5
48397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48398   (exit $ac_status); } && {
48399          test -z "$ac_c_werror_flag" ||
48400          test ! -s conftest.err
48401        } && test -s conftest.$ac_objext; then
48402
48403                     { echo "$as_me:$LINENO: result: yes" >&5
48404 echo "${ECHO_T}yes" >&6; }
48405                     GCC_PCH=1
48406
48407 else
48408   echo "$as_me: failed program was:" >&5
48409 sed 's/^/| /' conftest.$ac_ext >&5
48410
48411
48412                     cat >conftest.$ac_ext <<_ACEOF
48413 /* confdefs.h.  */
48414 _ACEOF
48415 cat confdefs.h >>conftest.$ac_ext
48416 cat >>conftest.$ac_ext <<_ACEOF
48417 /* end confdefs.h.  */
48418
48419 int
48420 main ()
48421 {
48422
48423                             #if !defined(__INTEL_COMPILER) || \
48424                                 (__INTEL_COMPILER < 800)
48425                                 There is no PCH support
48426                             #endif
48427
48428   ;
48429   return 0;
48430 }
48431 _ACEOF
48432 rm -f conftest.$ac_objext
48433 if { (ac_try="$ac_compile"
48434 case "(($ac_try" in
48435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48436   *) ac_try_echo=$ac_try;;
48437 esac
48438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48439   (eval "$ac_compile") 2>conftest.er1
48440   ac_status=$?
48441   grep -v '^ *+' conftest.er1 >conftest.err
48442   rm -f conftest.er1
48443   cat conftest.err >&5
48444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48445   (exit $ac_status); } && {
48446          test -z "$ac_c_werror_flag" ||
48447          test ! -s conftest.err
48448        } && test -s conftest.$ac_objext; then
48449
48450                             { echo "$as_me:$LINENO: result: yes" >&5
48451 echo "${ECHO_T}yes" >&6; }
48452                             ICC_PCH=1
48453
48454 else
48455   echo "$as_me: failed program was:" >&5
48456 sed 's/^/| /' conftest.$ac_ext >&5
48457
48458
48459                             { echo "$as_me:$LINENO: result: no" >&5
48460 echo "${ECHO_T}no" >&6; }
48461
48462 fi
48463
48464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48465
48466 fi
48467
48468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48469             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48470                 USE_PCH=1
48471
48472 D='$'
48473 cat <<EOF >bk-make-pch
48474 #!/bin/sh
48475
48476 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48477 # script. It is used to generated precompiled headers.
48478 #
48479 # Permission is given to use this file in any way.
48480
48481 outfile="${D}{1}"
48482 header="${D}{2}"
48483 shift
48484 shift
48485
48486 compiler=""
48487 headerfile=""
48488
48489 while test ${D}{#} -gt 0; do
48490     add_to_cmdline=1
48491     case "${D}{1}" in
48492         -I* )
48493             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48494             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48495                 headerfile="${D}{incdir}/${D}{header}"
48496             fi
48497         ;;
48498         -use-pch|-use_pch )
48499             shift
48500             add_to_cmdline=0
48501         ;;
48502     esac
48503     if test ${D}add_to_cmdline = 1 ; then
48504         compiler="${D}{compiler} ${D}{1}"
48505     fi
48506     shift
48507 done
48508
48509 if test "x${D}{headerfile}" = "x" ; then
48510     echo "error: can't find header ${D}{header} in include paths" >&2
48511 else
48512     if test -f ${D}{outfile} ; then
48513         rm -f ${D}{outfile}
48514     else
48515         mkdir -p \`dirname ${D}{outfile}\`
48516     fi
48517     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
48518     mkdir -p .deps
48519     if test "x${GCC_PCH}" = "x1" ; then
48520         # can do this because gcc is >= 3.4:
48521         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48522     elif test "x${ICC_PCH}" = "x1" ; then
48523         filename=pch_gen-${D}${D}
48524         file=${D}{filename}.c
48525         dfile=${D}{filename}.d
48526         cat > ${D}file <<EOT
48527 #include "${D}header"
48528 EOT
48529         # using -MF icc complains about differing command lines in creation/use
48530         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48531           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48532           rm -f ${D}file ${D}dfile ${D}{filename}.o
48533     fi
48534     exit ${D}{?}
48535 fi
48536 EOF
48537
48538                 chmod +x bk-make-pch
48539                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
48540             fi
48541         fi
48542     fi
48543
48544
48545
48546
48547
48548     COND_BUILD_DEBUG="#"
48549     if test "x$BUILD" = "xdebug" ; then
48550         COND_BUILD_DEBUG=""
48551     fi
48552
48553     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48554     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48555         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48556     fi
48557
48558     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48559     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48560         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48561     fi
48562
48563     COND_BUILD_DEBUG_UNICODE_0="#"
48564     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48565         COND_BUILD_DEBUG_UNICODE_0=""
48566     fi
48567
48568     COND_BUILD_DEBUG_UNICODE_1="#"
48569     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48570         COND_BUILD_DEBUG_UNICODE_1=""
48571     fi
48572
48573     COND_BUILD_RELEASE="#"
48574     if test "x$BUILD" = "xrelease" ; then
48575         COND_BUILD_RELEASE=""
48576     fi
48577
48578     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48579     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48580         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48581     fi
48582
48583     COND_BUILD_RELEASE_UNICODE_0="#"
48584     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48585         COND_BUILD_RELEASE_UNICODE_0=""
48586     fi
48587
48588     COND_BUILD_RELEASE_UNICODE_1="#"
48589     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48590         COND_BUILD_RELEASE_UNICODE_1=""
48591     fi
48592
48593     COND_DEBUG_FLAG_1="#"
48594     if test "x$DEBUG_FLAG" = "x1" ; then
48595         COND_DEBUG_FLAG_1=""
48596     fi
48597
48598     COND_DEBUG_INFO_0="#"
48599     if test "x$DEBUG_INFO" = "x0" ; then
48600         COND_DEBUG_INFO_0=""
48601     fi
48602
48603     COND_DEBUG_INFO_1="#"
48604     if test "x$DEBUG_INFO" = "x1" ; then
48605         COND_DEBUG_INFO_1=""
48606     fi
48607
48608     COND_DEPS_TRACKING_0="#"
48609     if test "x$DEPS_TRACKING" = "x0" ; then
48610         COND_DEPS_TRACKING_0=""
48611     fi
48612
48613     COND_DEPS_TRACKING_1="#"
48614     if test "x$DEPS_TRACKING" = "x1" ; then
48615         COND_DEPS_TRACKING_1=""
48616     fi
48617
48618     COND_GCC_PCH_1="#"
48619     if test "x$GCC_PCH" = "x1" ; then
48620         COND_GCC_PCH_1=""
48621     fi
48622
48623     COND_ICC_PCH_1="#"
48624     if test "x$ICC_PCH" = "x1" ; then
48625         COND_ICC_PCH_1=""
48626     fi
48627
48628     COND_MONOLITHIC_0="#"
48629     if test "x$MONOLITHIC" = "x0" ; then
48630         COND_MONOLITHIC_0=""
48631     fi
48632
48633     COND_MONOLITHIC_0_SHARED_0="#"
48634     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48635         COND_MONOLITHIC_0_SHARED_0=""
48636     fi
48637
48638     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48639     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48640         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48641     fi
48642
48643     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48644     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48645         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48646     fi
48647
48648     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48649     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48650         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48651     fi
48652
48653     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48654     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48655         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48656     fi
48657
48658     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48659     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48660         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48661     fi
48662
48663     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48664     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48665         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48666     fi
48667
48668     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48669     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48670         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48671     fi
48672
48673     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48674     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48675         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48676     fi
48677
48678     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
48679     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
48680         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
48681     fi
48682
48683     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48684     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48685         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48686     fi
48687
48688     COND_MONOLITHIC_0_SHARED_1="#"
48689     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48690         COND_MONOLITHIC_0_SHARED_1=""
48691     fi
48692
48693     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48694     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48695         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48696     fi
48697
48698     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48699     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48700         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48701     fi
48702
48703     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48704     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48705         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48706     fi
48707
48708     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48709     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48710         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48711     fi
48712
48713     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48714     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48715         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48716     fi
48717
48718     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48719     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48720         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48721     fi
48722
48723     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48724     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48725         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48726     fi
48727
48728     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48729     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48730         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48731     fi
48732
48733     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
48734     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
48735         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
48736     fi
48737
48738     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48739     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48740         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48741     fi
48742
48743     COND_MONOLITHIC_0_USE_AUI_1="#"
48744     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
48745         COND_MONOLITHIC_0_USE_AUI_1=""
48746     fi
48747
48748     COND_MONOLITHIC_0_USE_GUI_1="#"
48749     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
48750         COND_MONOLITHIC_0_USE_GUI_1=""
48751     fi
48752
48753     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
48754     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48755         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
48756     fi
48757
48758     COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
48759     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48760         COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
48761     fi
48762
48763     COND_MONOLITHIC_0_USE_HTML_1="#"
48764     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
48765         COND_MONOLITHIC_0_USE_HTML_1=""
48766     fi
48767
48768     COND_MONOLITHIC_0_USE_MEDIA_1="#"
48769     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48770         COND_MONOLITHIC_0_USE_MEDIA_1=""
48771     fi
48772
48773     COND_MONOLITHIC_0_USE_ODBC_1="#"
48774     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48775         COND_MONOLITHIC_0_USE_ODBC_1=""
48776     fi
48777
48778     COND_MONOLITHIC_0_USE_QA_1="#"
48779     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
48780         COND_MONOLITHIC_0_USE_QA_1=""
48781     fi
48782
48783     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
48784     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48785         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
48786     fi
48787
48788     COND_MONOLITHIC_0_USE_STC_1="#"
48789     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
48790         COND_MONOLITHIC_0_USE_STC_1=""
48791     fi
48792
48793     COND_MONOLITHIC_0_USE_XRC_1="#"
48794     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
48795         COND_MONOLITHIC_0_USE_XRC_1=""
48796     fi
48797
48798     COND_MONOLITHIC_1="#"
48799     if test "x$MONOLITHIC" = "x1" ; then
48800         COND_MONOLITHIC_1=""
48801     fi
48802
48803     COND_MONOLITHIC_1_SHARED_0="#"
48804     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48805         COND_MONOLITHIC_1_SHARED_0=""
48806     fi
48807
48808     COND_MONOLITHIC_1_SHARED_1="#"
48809     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48810         COND_MONOLITHIC_1_SHARED_1=""
48811     fi
48812
48813     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48814     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48815         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48816     fi
48817
48818     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48819     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48820         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48821     fi
48822
48823     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48824     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48825         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48826     fi
48827
48828     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48829     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48830         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48831     fi
48832
48833     COND_PLATFORM_MACOSX_1="#"
48834     if test "x$PLATFORM_MACOSX" = "x1" ; then
48835         COND_PLATFORM_MACOSX_1=""
48836     fi
48837
48838     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48839     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48840         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48841     fi
48842
48843     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48844     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48845         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48846     fi
48847
48848     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48849     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48850         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48851     fi
48852
48853     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48854     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48855         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48856     fi
48857
48858     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48859     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48860         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48861     fi
48862
48863     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48864     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48865         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48866     fi
48867
48868     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48869     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48870         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48871     fi
48872
48873     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48874     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48875         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48876     fi
48877
48878     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48879     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48880         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48881     fi
48882
48883     COND_PLATFORM_MACOS_1="#"
48884     if test "x$PLATFORM_MACOS" = "x1" ; then
48885         COND_PLATFORM_MACOS_1=""
48886     fi
48887
48888     COND_PLATFORM_MAC_1="#"
48889     if test "x$PLATFORM_MAC" = "x1" ; then
48890         COND_PLATFORM_MAC_1=""
48891     fi
48892
48893     COND_PLATFORM_MSDOS_0="#"
48894     if test "x$PLATFORM_MSDOS" = "x0" ; then
48895         COND_PLATFORM_MSDOS_0=""
48896     fi
48897
48898     COND_PLATFORM_MSDOS_1="#"
48899     if test "x$PLATFORM_MSDOS" = "x1" ; then
48900         COND_PLATFORM_MSDOS_1=""
48901     fi
48902
48903     COND_PLATFORM_OS2_1="#"
48904     if test "x$PLATFORM_OS2" = "x1" ; then
48905         COND_PLATFORM_OS2_1=""
48906     fi
48907
48908     COND_PLATFORM_UNIX_0="#"
48909     if test "x$PLATFORM_UNIX" = "x0" ; then
48910         COND_PLATFORM_UNIX_0=""
48911     fi
48912
48913     COND_PLATFORM_UNIX_1="#"
48914     if test "x$PLATFORM_UNIX" = "x1" ; then
48915         COND_PLATFORM_UNIX_1=""
48916     fi
48917
48918     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
48919     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
48920         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
48921     fi
48922
48923     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
48924     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48925         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
48926     fi
48927
48928     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48929     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48930         COND_PLATFORM_UNIX_1_USE_GUI_1=""
48931     fi
48932
48933     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48934     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48935         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48936     fi
48937
48938     COND_PLATFORM_WIN32_0="#"
48939     if test "x$PLATFORM_WIN32" = "x0" ; then
48940         COND_PLATFORM_WIN32_0=""
48941     fi
48942
48943     COND_PLATFORM_WIN32_1="#"
48944     if test "x$PLATFORM_WIN32" = "x1" ; then
48945         COND_PLATFORM_WIN32_1=""
48946     fi
48947
48948     COND_SHARED_0="#"
48949     if test "x$SHARED" = "x0" ; then
48950         COND_SHARED_0=""
48951     fi
48952
48953     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48954     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48955         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48956     fi
48957
48958     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48959     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48960         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48961     fi
48962
48963     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48964     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48965         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48966     fi
48967
48968     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48969     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48970         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48971     fi
48972
48973     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48974     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48975         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48976     fi
48977
48978     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48979     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48980         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48981     fi
48982
48983     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48984     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48985         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48986     fi
48987
48988     COND_SHARED_0_USE_STC_1="#"
48989     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
48990         COND_SHARED_0_USE_STC_1=""
48991     fi
48992
48993     COND_SHARED_0_USE_XRC_1="#"
48994     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48995         COND_SHARED_0_USE_XRC_1=""
48996     fi
48997
48998     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48999     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49000         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49001     fi
49002
49003     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49004     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49005         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49006     fi
49007
49008     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49009     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49010         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49011     fi
49012
49013     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49014     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49015         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49016     fi
49017
49018     COND_SHARED_1="#"
49019     if test "x$SHARED" = "x1" ; then
49020         COND_SHARED_1=""
49021     fi
49022
49023     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49024     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49025         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49026     fi
49027
49028     COND_SHARED_1_USE_XRC_1="#"
49029     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49030         COND_SHARED_1_USE_XRC_1=""
49031     fi
49032
49033     COND_TOOLKIT_="#"
49034     if test "x$TOOLKIT" = "x" ; then
49035         COND_TOOLKIT_=""
49036     fi
49037
49038     COND_TOOLKIT_COCOA="#"
49039     if test "x$TOOLKIT" = "xCOCOA" ; then
49040         COND_TOOLKIT_COCOA=""
49041     fi
49042
49043     COND_TOOLKIT_COCOA_USE_GUI_1="#"
49044     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49045         COND_TOOLKIT_COCOA_USE_GUI_1=""
49046     fi
49047
49048     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49049     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49050         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49051     fi
49052
49053     COND_TOOLKIT_DFB="#"
49054     if test "x$TOOLKIT" = "xDFB" ; then
49055         COND_TOOLKIT_DFB=""
49056     fi
49057
49058     COND_TOOLKIT_DFB_USE_GUI_1="#"
49059     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49060         COND_TOOLKIT_DFB_USE_GUI_1=""
49061     fi
49062
49063     COND_TOOLKIT_GTK="#"
49064     if test "x$TOOLKIT" = "xGTK" ; then
49065         COND_TOOLKIT_GTK=""
49066     fi
49067
49068     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49069     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49070         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49071     fi
49072
49073     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49074     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49075         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49076     fi
49077
49078     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49079     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49080         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49081     fi
49082
49083     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49084     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49085         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49086     fi
49087
49088     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49089     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49090         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49091     fi
49092
49093     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49094     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49095         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49096     fi
49097
49098     COND_TOOLKIT_GTK_USE_GUI_1="#"
49099     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49100         COND_TOOLKIT_GTK_USE_GUI_1=""
49101     fi
49102
49103     COND_TOOLKIT_MAC="#"
49104     if test "x$TOOLKIT" = "xMAC" ; then
49105         COND_TOOLKIT_MAC=""
49106     fi
49107
49108     COND_TOOLKIT_MAC_USE_GUI_1="#"
49109     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49110         COND_TOOLKIT_MAC_USE_GUI_1=""
49111     fi
49112
49113     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49114     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49115         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49116     fi
49117
49118     COND_TOOLKIT_MGL="#"
49119     if test "x$TOOLKIT" = "xMGL" ; then
49120         COND_TOOLKIT_MGL=""
49121     fi
49122
49123     COND_TOOLKIT_MGL_USE_GUI_1="#"
49124     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49125         COND_TOOLKIT_MGL_USE_GUI_1=""
49126     fi
49127
49128     COND_TOOLKIT_MOTIF="#"
49129     if test "x$TOOLKIT" = "xMOTIF" ; then
49130         COND_TOOLKIT_MOTIF=""
49131     fi
49132
49133     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49134     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49135         COND_TOOLKIT_MOTIF_USE_GUI_1=""
49136     fi
49137
49138     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49139     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49140         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49141     fi
49142
49143     COND_TOOLKIT_MSW="#"
49144     if test "x$TOOLKIT" = "xMSW" ; then
49145         COND_TOOLKIT_MSW=""
49146     fi
49147
49148     COND_TOOLKIT_MSW_USE_GUI_1="#"
49149     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49150         COND_TOOLKIT_MSW_USE_GUI_1=""
49151     fi
49152
49153     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49154     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49155         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49156     fi
49157
49158     COND_TOOLKIT_MSW_WXUNIV_0="#"
49159     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49160         COND_TOOLKIT_MSW_WXUNIV_0=""
49161     fi
49162
49163     COND_TOOLKIT_PM="#"
49164     if test "x$TOOLKIT" = "xPM" ; then
49165         COND_TOOLKIT_PM=""
49166     fi
49167
49168     COND_TOOLKIT_PM_USE_GUI_1="#"
49169     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49170         COND_TOOLKIT_PM_USE_GUI_1=""
49171     fi
49172
49173     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49174     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49175         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49176     fi
49177
49178     COND_TOOLKIT_WINCE="#"
49179     if test "x$TOOLKIT" = "xWINCE" ; then
49180         COND_TOOLKIT_WINCE=""
49181     fi
49182
49183     COND_TOOLKIT_WINCE_USE_GUI_1="#"
49184     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49185         COND_TOOLKIT_WINCE_USE_GUI_1=""
49186     fi
49187
49188     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49189     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49190         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49191     fi
49192
49193     COND_TOOLKIT_WINCE_WXUNIV_0="#"
49194     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49195         COND_TOOLKIT_WINCE_WXUNIV_0=""
49196     fi
49197
49198     COND_TOOLKIT_X11="#"
49199     if test "x$TOOLKIT" = "xX11" ; then
49200         COND_TOOLKIT_X11=""
49201     fi
49202
49203     COND_TOOLKIT_X11_USE_GUI_1="#"
49204     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49205         COND_TOOLKIT_X11_USE_GUI_1=""
49206     fi
49207
49208     COND_UNICODE_1="#"
49209     if test "x$UNICODE" = "x1" ; then
49210         COND_UNICODE_1=""
49211     fi
49212
49213     COND_USE_EXCEPTIONS_0="#"
49214     if test "x$USE_EXCEPTIONS" = "x0" ; then
49215         COND_USE_EXCEPTIONS_0=""
49216     fi
49217
49218     COND_USE_EXCEPTIONS_1="#"
49219     if test "x$USE_EXCEPTIONS" = "x1" ; then
49220         COND_USE_EXCEPTIONS_1=""
49221     fi
49222
49223     COND_USE_GUI_0="#"
49224     if test "x$USE_GUI" = "x0" ; then
49225         COND_USE_GUI_0=""
49226     fi
49227
49228     COND_USE_GUI_1="#"
49229     if test "x$USE_GUI" = "x1" ; then
49230         COND_USE_GUI_1=""
49231     fi
49232
49233     COND_USE_GUI_1_USE_OPENGL_1="#"
49234     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49235         COND_USE_GUI_1_USE_OPENGL_1=""
49236     fi
49237
49238     COND_USE_GUI_1_WXUNIV_0="#"
49239     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49240         COND_USE_GUI_1_WXUNIV_0=""
49241     fi
49242
49243     COND_USE_GUI_1_WXUNIV_1="#"
49244     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49245         COND_USE_GUI_1_WXUNIV_1=""
49246     fi
49247
49248     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49249     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49250         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49251     fi
49252
49253     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49254     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49255         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49256     fi
49257
49258     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49259     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49260         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49261     fi
49262
49263     COND_USE_ODBC_1="#"
49264     if test "x$USE_ODBC" = "x1" ; then
49265         COND_USE_ODBC_1=""
49266     fi
49267
49268     COND_USE_OPENGL_1="#"
49269     if test "x$USE_OPENGL" = "x1" ; then
49270         COND_USE_OPENGL_1=""
49271     fi
49272
49273     COND_USE_PCH_1="#"
49274     if test "x$USE_PCH" = "x1" ; then
49275         COND_USE_PCH_1=""
49276     fi
49277
49278     COND_USE_PLUGINS_0="#"
49279     if test "x$USE_PLUGINS" = "x0" ; then
49280         COND_USE_PLUGINS_0=""
49281     fi
49282
49283     COND_USE_RTTI_0="#"
49284     if test "x$USE_RTTI" = "x0" ; then
49285         COND_USE_RTTI_0=""
49286     fi
49287
49288     COND_USE_RTTI_1="#"
49289     if test "x$USE_RTTI" = "x1" ; then
49290         COND_USE_RTTI_1=""
49291     fi
49292
49293     COND_USE_SOSYMLINKS_1="#"
49294     if test "x$USE_SOSYMLINKS" = "x1" ; then
49295         COND_USE_SOSYMLINKS_1=""
49296     fi
49297
49298     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49299     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49300         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49301     fi
49302
49303     COND_USE_SOVERLINUX_1="#"
49304     if test "x$USE_SOVERLINUX" = "x1" ; then
49305         COND_USE_SOVERLINUX_1=""
49306     fi
49307
49308     COND_USE_SOVERSION_0="#"
49309     if test "x$USE_SOVERSION" = "x0" ; then
49310         COND_USE_SOVERSION_0=""
49311     fi
49312
49313     COND_USE_SOVERSOLARIS_1="#"
49314     if test "x$USE_SOVERSOLARIS" = "x1" ; then
49315         COND_USE_SOVERSOLARIS_1=""
49316     fi
49317
49318     COND_USE_STC_1="#"
49319     if test "x$USE_STC" = "x1" ; then
49320         COND_USE_STC_1=""
49321     fi
49322
49323     COND_USE_THREADS_0="#"
49324     if test "x$USE_THREADS" = "x0" ; then
49325         COND_USE_THREADS_0=""
49326     fi
49327
49328     COND_USE_THREADS_1="#"
49329     if test "x$USE_THREADS" = "x1" ; then
49330         COND_USE_THREADS_1=""
49331     fi
49332
49333     COND_USE_XRC_1="#"
49334     if test "x$USE_XRC" = "x1" ; then
49335         COND_USE_XRC_1=""
49336     fi
49337
49338     COND_WINDOWS_IMPLIB_1="#"
49339     if test "x$WINDOWS_IMPLIB" = "x1" ; then
49340         COND_WINDOWS_IMPLIB_1=""
49341     fi
49342
49343     COND_WITH_PLUGIN_SDL_1="#"
49344     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49345         COND_WITH_PLUGIN_SDL_1=""
49346     fi
49347
49348     COND_WXUNIV_0="#"
49349     if test "x$WXUNIV" = "x0" ; then
49350         COND_WXUNIV_0=""
49351     fi
49352
49353     COND_WXUNIV_1="#"
49354     if test "x$WXUNIV" = "x1" ; then
49355         COND_WXUNIV_1=""
49356     fi
49357
49358     COND_WXUSE_EXPAT_BUILTIN="#"
49359     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49360         COND_WXUSE_EXPAT_BUILTIN=""
49361     fi
49362
49363     COND_WXUSE_LIBJPEG_BUILTIN="#"
49364     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49365         COND_WXUSE_LIBJPEG_BUILTIN=""
49366     fi
49367
49368     COND_WXUSE_LIBPNG_BUILTIN="#"
49369     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49370         COND_WXUSE_LIBPNG_BUILTIN=""
49371     fi
49372
49373     COND_WXUSE_LIBTIFF_BUILTIN="#"
49374     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49375         COND_WXUSE_LIBTIFF_BUILTIN=""
49376     fi
49377
49378     COND_WXUSE_ODBC_BUILTIN="#"
49379     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49380         COND_WXUSE_ODBC_BUILTIN=""
49381     fi
49382
49383     COND_WXUSE_REGEX_BUILTIN="#"
49384     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49385         COND_WXUSE_REGEX_BUILTIN=""
49386     fi
49387
49388     COND_WXUSE_ZLIB_BUILTIN="#"
49389     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49390         COND_WXUSE_ZLIB_BUILTIN=""
49391     fi
49392
49393
49394
49395     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49396         { { 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
49397 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;}
49398    { (exit 1); exit 1; }; }
49399     fi
49400
49401     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49402         { { 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
49403 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;}
49404    { (exit 1); exit 1; }; }
49405     fi
49406
49407
49408 if test $GCC_PCH = 1
49409 then
49410     if test "$wx_cv_gcc_pch_bug" = yes; then
49411         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
49412 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
49413         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
49414 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
49415         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
49416 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
49417     fi
49418
49419     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
49420 fi
49421
49422
49423 if test "$wxUSE_MAC" = 1 ; then
49424     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
49425         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49426         mv temp bk-deps
49427         chmod +x bk-deps
49428     fi
49429 fi
49430
49431 if test "$wxUSE_SHARED" = "yes"; then
49432
49433                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49434     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49435
49436                 case "${host}" in
49437       *-pc-os2_emx | *-pc-os2-emx )
49438         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49439         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49440         cp -p ${srcdir}/src/os2/dllnames.sh .
49441         cp -p ${srcdir}/src/os2/dllar.sh .
49442       ;;
49443     esac
49444 else
49445
49446         EXE_LINKER="$CXX -o"
49447
49448 fi
49449 if test "$wxUSE_OMF" = "yes"; then
49450     case "${host}" in
49451       *-pc-os2_emx | *-pc-os2-emx )
49452         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49453         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49454         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49455       ;;
49456     esac
49457 fi
49458
49459 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
49460
49461
49462 case "${host}" in
49463     *-*-solaris2* )
49464                         if "$GCC" = yes; then
49465             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
49466             LIBS=`echo $LIBS | sed 's/-mt//'`
49467             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
49468         fi
49469         ;;
49470
49471     *-*-linux* )
49472                         if test "x$SUNCXX" = xyes; then
49473             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
49474             LIBS=`echo $LIBS | sed 's/-pthread//'`
49475             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
49476         fi
49477         ;;
49478 esac
49479
49480 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49481
49482
49483
49484
49485
49486
49487
49488
49489
49490
49491
49492
49493
49494
49495
49496
49497
49498
49499
49500
49501
49502
49503
49504
49505
49506
49507
49508
49509
49510
49511
49512
49513
49514
49515
49516
49517
49518
49519
49520
49521
49522
49523
49524
49525
49526
49527
49528
49529
49530
49531
49532
49533
49534
49535
49536
49537
49538
49539
49540
49541
49542 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49543 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49544 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49545 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49546   echo $ECHO_N "(cached) $ECHO_C" >&6
49547 else
49548   cat >conftest.make <<\_ACEOF
49549 SHELL = /bin/sh
49550 all:
49551         @echo '@@@%%%=$(MAKE)=@@@%%%'
49552 _ACEOF
49553 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49554 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49555   *@@@%%%=?*=@@@%%%*)
49556     eval ac_cv_prog_make_${ac_make}_set=yes;;
49557   *)
49558     eval ac_cv_prog_make_${ac_make}_set=no;;
49559 esac
49560 rm -f conftest.make
49561 fi
49562 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49563   { echo "$as_me:$LINENO: result: yes" >&5
49564 echo "${ECHO_T}yes" >&6; }
49565   SET_MAKE=
49566 else
49567   { echo "$as_me:$LINENO: result: no" >&5
49568 echo "${ECHO_T}no" >&6; }
49569   SET_MAKE="MAKE=${MAKE-make}"
49570 fi
49571
49572
49573
49574 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49575
49576
49577 if test "$USE_WIN32" = 1; then
49578     ac_config_commands="$ac_config_commands
49579             rcdefs.h
49580         "
49581
49582 fi
49583
49584 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
49585
49586
49587 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
49588
49589
49590 if test "$wx_cv_version_script" = "yes"; then
49591     ac_config_files="$ac_config_files version-script"
49592
49593 fi
49594 ac_config_files="$ac_config_files Makefile"
49595
49596
49597 ac_config_commands="$ac_config_commands wx-config"
49598
49599
49600
49601 if test "$wxWITH_SUBDIRS" != "no"; then
49602 if test "$wxUSE_GUI" = "yes"; then
49603     SUBDIRS="samples demos utils"
49604 else         SUBDIRS="samples utils"
49605 fi
49606
49607
49608
49609 # Check whether --with-cppunit-prefix was given.
49610 if test "${with_cppunit_prefix+set}" = set; then
49611   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
49612 else
49613   cppunit_config_prefix=""
49614 fi
49615
49616
49617 # Check whether --with-cppunit-exec-prefix was given.
49618 if test "${with_cppunit_exec_prefix+set}" = set; then
49619   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
49620 else
49621   cppunit_config_exec_prefix=""
49622 fi
49623
49624
49625   if test x$cppunit_config_exec_prefix != x ; then
49626      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49627      if test x${CPPUNIT_CONFIG+set} != xset ; then
49628         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49629      fi
49630   fi
49631   if test x$cppunit_config_prefix != x ; then
49632      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49633      if test x${CPPUNIT_CONFIG+set} != xset ; then
49634         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49635      fi
49636   fi
49637
49638   # Extract the first word of "cppunit-config", so it can be a program name with args.
49639 set dummy cppunit-config; ac_word=$2
49640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49642 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49643   echo $ECHO_N "(cached) $ECHO_C" >&6
49644 else
49645   case $CPPUNIT_CONFIG in
49646   [\\/]* | ?:[\\/]*)
49647   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49648   ;;
49649   *)
49650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49651 for as_dir in $PATH
49652 do
49653   IFS=$as_save_IFS
49654   test -z "$as_dir" && as_dir=.
49655   for ac_exec_ext in '' $ac_executable_extensions; do
49656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49657     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49659     break 2
49660   fi
49661 done
49662 done
49663 IFS=$as_save_IFS
49664
49665   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49666   ;;
49667 esac
49668 fi
49669 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49670 if test -n "$CPPUNIT_CONFIG"; then
49671   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49672 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
49673 else
49674   { echo "$as_me:$LINENO: result: no" >&5
49675 echo "${ECHO_T}no" >&6; }
49676 fi
49677
49678
49679   cppunit_version_min=1.8.0
49680
49681   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49682 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
49683   no_cppunit=""
49684   if test "$CPPUNIT_CONFIG" = "no" ; then
49685     { echo "$as_me:$LINENO: result: no" >&5
49686 echo "${ECHO_T}no" >&6; }
49687     no_cppunit=yes
49688   else
49689     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49690     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49691     cppunit_version=`$CPPUNIT_CONFIG --version`
49692
49693     cppunit_major_version=`echo $cppunit_version | \
49694            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49695     cppunit_minor_version=`echo $cppunit_version | \
49696            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49697     cppunit_micro_version=`echo $cppunit_version | \
49698            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49699
49700     cppunit_major_min=`echo $cppunit_version_min | \
49701            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49702     cppunit_minor_min=`echo $cppunit_version_min | \
49703            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49704     cppunit_micro_min=`echo $cppunit_version_min | \
49705            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49706
49707     cppunit_version_proper=`expr \
49708         $cppunit_major_version \> $cppunit_major_min \| \
49709         $cppunit_major_version \= $cppunit_major_min \& \
49710         $cppunit_minor_version \> $cppunit_minor_min \| \
49711         $cppunit_major_version \= $cppunit_major_min \& \
49712         $cppunit_minor_version \= $cppunit_minor_min \& \
49713         $cppunit_micro_version \>= $cppunit_micro_min `
49714
49715     if test "$cppunit_version_proper" = "1" ; then
49716       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49717 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
49718     else
49719       { echo "$as_me:$LINENO: result: no" >&5
49720 echo "${ECHO_T}no" >&6; }
49721       no_cppunit=yes
49722     fi
49723   fi
49724
49725   if test "x$no_cppunit" = x ; then
49726      SUBDIRS="$SUBDIRS tests"
49727   else
49728      CPPUNIT_CFLAGS=""
49729      CPPUNIT_LIBS=""
49730      :
49731   fi
49732
49733
49734
49735
49736
49737 for subdir in `echo $SUBDIRS`; do
49738     if test -d ${srcdir}/${subdir} ; then
49739         if test "$wxUSE_GUI" = "yes"; then
49740             if test ${subdir} = "samples"; then
49741                                                 makefiles="samples/Makefile.in $makefiles"
49742                 for sample in `echo $SAMPLES_SUBDIRS`; do
49743                     if test -d $srcdir/samples/$sample; then
49744                         makefiles="samples/$sample/Makefile.in $makefiles"
49745                     fi
49746                 done
49747             else
49748                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49749                 eval "disabled=\$$disabled_var"
49750                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49751                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
49752             fi
49753         else                                     if test ${subdir} = "samples"; then
49754                 makefiles="samples/Makefile.in samples/console/Makefile.in"
49755             elif test ${subdir} = "utils"; then
49756                 makefiles=""
49757                 for util in HelpGen tex2rtf ; do
49758                     if test -d $srcdir/utils/$util ; then
49759                         makefiles="utils/$util/Makefile.in \
49760                                    utils/$util/src/Makefile.in \
49761                                    $makefiles"
49762                     fi
49763                 done
49764             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49765             fi
49766         fi
49767
49768         for mkin in $makefiles ; do
49769             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49770             ac_config_files="$ac_config_files $mk"
49771
49772         done
49773     fi
49774 done
49775 fi
49776 cat >confcache <<\_ACEOF
49777 # This file is a shell script that caches the results of configure
49778 # tests run on this system so they can be shared between configure
49779 # scripts and configure runs, see configure's option --config-cache.
49780 # It is not useful on other systems.  If it contains results you don't
49781 # want to keep, you may remove or edit it.
49782 #
49783 # config.status only pays attention to the cache file if you give it
49784 # the --recheck option to rerun configure.
49785 #
49786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49788 # following values.
49789
49790 _ACEOF
49791
49792 # The following way of writing the cache mishandles newlines in values,
49793 # but we know of no workaround that is simple, portable, and efficient.
49794 # So, we kill variables containing newlines.
49795 # Ultrix sh set writes to stderr and can't be redirected directly,
49796 # and sets the high bit in the cache file unless we assign to the vars.
49797 (
49798   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49799     eval ac_val=\$$ac_var
49800     case $ac_val in #(
49801     *${as_nl}*)
49802       case $ac_var in #(
49803       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
49804 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
49805       esac
49806       case $ac_var in #(
49807       _ | IFS | as_nl) ;; #(
49808       *) $as_unset $ac_var ;;
49809       esac ;;
49810     esac
49811   done
49812
49813   (set) 2>&1 |
49814     case $as_nl`(ac_space=' '; set) 2>&1` in #(
49815     *${as_nl}ac_space=\ *)
49816       # `set' does not quote correctly, so add quotes (double-quote
49817       # substitution turns \\\\ into \\, and sed turns \\ into \).
49818       sed -n \
49819         "s/'/'\\\\''/g;
49820           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49821       ;; #(
49822     *)
49823       # `set' quotes correctly as required by POSIX, so do not add quotes.
49824       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49825       ;;
49826     esac |
49827     sort
49828 ) |
49829   sed '
49830      /^ac_cv_env_/b end
49831      t clear
49832      :clear
49833      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49834      t end
49835      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49836      :end' >>confcache
49837 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49838   if test -w "$cache_file"; then
49839     test "x$cache_file" != "x/dev/null" &&
49840       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
49841 echo "$as_me: updating cache $cache_file" >&6;}
49842     cat confcache >$cache_file
49843   else
49844     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
49845 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49846   fi
49847 fi
49848 rm -f confcache
49849
49850 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49851 # Let make expand exec_prefix.
49852 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49853
49854 DEFS=-DHAVE_CONFIG_H
49855
49856 ac_libobjs=
49857 ac_ltlibobjs=
49858 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49859   # 1. Remove the extension, and $U if already installed.
49860   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49861   ac_i=`echo "$ac_i" | sed "$ac_script"`
49862   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
49863   #    will be set to the directory where LIBOBJS objects are built.
49864   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49865   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
49866 done
49867 LIBOBJS=$ac_libobjs
49868
49869 LTLIBOBJS=$ac_ltlibobjs
49870
49871
49872
49873 : ${CONFIG_STATUS=./config.status}
49874 ac_clean_files_save=$ac_clean_files
49875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49876 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49877 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49878 cat >$CONFIG_STATUS <<_ACEOF
49879 #! $SHELL
49880 # Generated by $as_me.
49881 # Run this file to recreate the current configuration.
49882 # Compiler output produced by configure, useful for debugging
49883 # configure, is in config.log if it exists.
49884
49885 debug=false
49886 ac_cs_recheck=false
49887 ac_cs_silent=false
49888 SHELL=\${CONFIG_SHELL-$SHELL}
49889 _ACEOF
49890
49891 cat >>$CONFIG_STATUS <<\_ACEOF
49892 ## --------------------- ##
49893 ## M4sh Initialization.  ##
49894 ## --------------------- ##
49895
49896 # Be more Bourne compatible
49897 DUALCASE=1; export DUALCASE # for MKS sh
49898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49899   emulate sh
49900   NULLCMD=:
49901   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49902   # is contrary to our usage.  Disable this feature.
49903   alias -g '${1+"$@"}'='"$@"'
49904   setopt NO_GLOB_SUBST
49905 else
49906   case `(set -o) 2>/dev/null` in
49907   *posix*) set -o posix ;;
49908 esac
49909
49910 fi
49911
49912
49913
49914
49915 # PATH needs CR
49916 # Avoid depending upon Character Ranges.
49917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49920 as_cr_digits='0123456789'
49921 as_cr_alnum=$as_cr_Letters$as_cr_digits
49922
49923 # The user is always right.
49924 if test "${PATH_SEPARATOR+set}" != set; then
49925   echo "#! /bin/sh" >conf$$.sh
49926   echo  "exit 0"   >>conf$$.sh
49927   chmod +x conf$$.sh
49928   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49929     PATH_SEPARATOR=';'
49930   else
49931     PATH_SEPARATOR=:
49932   fi
49933   rm -f conf$$.sh
49934 fi
49935
49936 # Support unset when possible.
49937 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49938   as_unset=unset
49939 else
49940   as_unset=false
49941 fi
49942
49943
49944 # IFS
49945 # We need space, tab and new line, in precisely that order.  Quoting is
49946 # there to prevent editors from complaining about space-tab.
49947 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
49948 # splitting by setting IFS to empty value.)
49949 as_nl='
49950 '
49951 IFS=" ""        $as_nl"
49952
49953 # Find who we are.  Look in the path if we contain no directory separator.
49954 case $0 in
49955   *[\\/]* ) as_myself=$0 ;;
49956   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49957 for as_dir in $PATH
49958 do
49959   IFS=$as_save_IFS
49960   test -z "$as_dir" && as_dir=.
49961   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49962 done
49963 IFS=$as_save_IFS
49964
49965      ;;
49966 esac
49967 # We did not find ourselves, most probably we were run as `sh COMMAND'
49968 # in which case we are not to be found in the path.
49969 if test "x$as_myself" = x; then
49970   as_myself=$0
49971 fi
49972 if test ! -f "$as_myself"; then
49973   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
49974   { (exit 1); exit 1; }
49975 fi
49976
49977 # Work around bugs in pre-3.0 UWIN ksh.
49978 for as_var in ENV MAIL MAILPATH
49979 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49980 done
49981 PS1='$ '
49982 PS2='> '
49983 PS4='+ '
49984
49985 # NLS nuisances.
49986 for as_var in \
49987   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49988   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49989   LC_TELEPHONE LC_TIME
49990 do
49991   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49992     eval $as_var=C; export $as_var
49993   else
49994     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49995   fi
49996 done
49997
49998 # Required to use basename.
49999 if expr a : '\(a\)' >/dev/null 2>&1 &&
50000    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50001   as_expr=expr
50002 else
50003   as_expr=false
50004 fi
50005
50006 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50007   as_basename=basename
50008 else
50009   as_basename=false
50010 fi
50011
50012
50013 # Name of the executable.
50014 as_me=`$as_basename -- "$0" ||
50015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50016          X"$0" : 'X\(//\)$' \| \
50017          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50018 echo X/"$0" |
50019     sed '/^.*\/\([^/][^/]*\)\/*$/{
50020             s//\1/
50021             q
50022           }
50023           /^X\/\(\/\/\)$/{
50024             s//\1/
50025             q
50026           }
50027           /^X\/\(\/\).*/{
50028             s//\1/
50029             q
50030           }
50031           s/.*/./; q'`
50032
50033 # CDPATH.
50034 $as_unset CDPATH
50035
50036
50037
50038   as_lineno_1=$LINENO
50039   as_lineno_2=$LINENO
50040   test "x$as_lineno_1" != "x$as_lineno_2" &&
50041   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
50042
50043   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50044   # uniformly replaced by the line number.  The first 'sed' inserts a
50045   # line-number line after each line using $LINENO; the second 'sed'
50046   # does the real work.  The second script uses 'N' to pair each
50047   # line-number line with the line containing $LINENO, and appends
50048   # trailing '-' during substitution so that $LINENO is not a special
50049   # case at line end.
50050   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50051   # scripts with optimization help from Paolo Bonzini.  Blame Lee
50052   # E. McMahon (1931-1989) for sed's syntax.  :-)
50053   sed -n '
50054     p
50055     /[$]LINENO/=
50056   ' <$as_myself |
50057     sed '
50058       s/[$]LINENO.*/&-/
50059       t lineno
50060       b
50061       :lineno
50062       N
50063       :loop
50064       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50065       t loop
50066       s/-\n.*//
50067     ' >$as_me.lineno &&
50068   chmod +x "$as_me.lineno" ||
50069     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
50070    { (exit 1); exit 1; }; }
50071
50072   # Don't try to exec as it changes $[0], causing all sort of problems
50073   # (the dirname of $[0] is not the place where we might find the
50074   # original and so on.  Autoconf is especially sensitive to this).
50075   . "./$as_me.lineno"
50076   # Exit status is that of the last command.
50077   exit
50078 }
50079
50080
50081 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50082   as_dirname=dirname
50083 else
50084   as_dirname=false
50085 fi
50086
50087 ECHO_C= ECHO_N= ECHO_T=
50088 case `echo -n x` in
50089 -n*)
50090   case `echo 'x\c'` in
50091   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
50092   *)   ECHO_C='\c';;
50093   esac;;
50094 *)
50095   ECHO_N='-n';;
50096 esac
50097
50098 if expr a : '\(a\)' >/dev/null 2>&1 &&
50099    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50100   as_expr=expr
50101 else
50102   as_expr=false
50103 fi
50104
50105 rm -f conf$$ conf$$.exe conf$$.file
50106 if test -d conf$$.dir; then
50107   rm -f conf$$.dir/conf$$.file
50108 else
50109   rm -f conf$$.dir
50110   mkdir conf$$.dir
50111 fi
50112 echo >conf$$.file
50113 if ln -s conf$$.file conf$$ 2>/dev/null; then
50114   as_ln_s='ln -s'
50115   # ... but there are two gotchas:
50116   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50117   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50118   # In both cases, we have to default to `cp -p'.
50119   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50120     as_ln_s='cp -p'
50121 elif ln conf$$.file conf$$ 2>/dev/null; then
50122   as_ln_s=ln
50123 else
50124   as_ln_s='cp -p'
50125 fi
50126 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50127 rmdir conf$$.dir 2>/dev/null
50128
50129 if mkdir -p . 2>/dev/null; then
50130   as_mkdir_p=:
50131 else
50132   test -d ./-p && rmdir ./-p
50133   as_mkdir_p=false
50134 fi
50135
50136 if test -x / >/dev/null 2>&1; then
50137   as_test_x='test -x'
50138 else
50139   if ls -dL / >/dev/null 2>&1; then
50140     as_ls_L_option=L
50141   else
50142     as_ls_L_option=
50143   fi
50144   as_test_x='
50145     eval sh -c '\''
50146       if test -d "$1"; then
50147         test -d "$1/.";
50148       else
50149         case $1 in
50150         -*)set "./$1";;
50151         esac;
50152         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
50153         ???[sx]*):;;*)false;;esac;fi
50154     '\'' sh
50155   '
50156 fi
50157 as_executable_p=$as_test_x
50158
50159 # Sed expression to map a string onto a valid CPP name.
50160 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50161
50162 # Sed expression to map a string onto a valid variable name.
50163 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50164
50165
50166 exec 6>&1
50167
50168 # Save the log message, to keep $[0] and so on meaningful, and to
50169 # report actual input values of CONFIG_FILES etc. instead of their
50170 # values after options handling.
50171 ac_log="
50172 This file was extended by wxWidgets $as_me 2.9.0, which was
50173 generated by GNU Autoconf 2.61.  Invocation command line was
50174
50175   CONFIG_FILES    = $CONFIG_FILES
50176   CONFIG_HEADERS  = $CONFIG_HEADERS
50177   CONFIG_LINKS    = $CONFIG_LINKS
50178   CONFIG_COMMANDS = $CONFIG_COMMANDS
50179   $ $0 $@
50180
50181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
50182 "
50183
50184 _ACEOF
50185
50186 cat >>$CONFIG_STATUS <<_ACEOF
50187 # Files that config.status was made for.
50188 config_files="$ac_config_files"
50189 config_headers="$ac_config_headers"
50190 config_commands="$ac_config_commands"
50191
50192 _ACEOF
50193
50194 cat >>$CONFIG_STATUS <<\_ACEOF
50195 ac_cs_usage="\
50196 \`$as_me' instantiates files from templates according to the
50197 current configuration.
50198
50199 Usage: $0 [OPTIONS] [FILE]...
50200
50201   -h, --help       print this help, then exit
50202   -V, --version    print version number and configuration settings, then exit
50203   -q, --quiet      do not print progress messages
50204   -d, --debug      don't remove temporary files
50205       --recheck    update $as_me by reconfiguring in the same conditions
50206   --file=FILE[:TEMPLATE]
50207                    instantiate the configuration file FILE
50208   --header=FILE[:TEMPLATE]
50209                    instantiate the configuration header FILE
50210
50211 Configuration files:
50212 $config_files
50213
50214 Configuration headers:
50215 $config_headers
50216
50217 Configuration commands:
50218 $config_commands
50219
50220 Report bugs to <bug-autoconf@gnu.org>."
50221
50222 _ACEOF
50223 cat >>$CONFIG_STATUS <<_ACEOF
50224 ac_cs_version="\\
50225 wxWidgets config.status 2.9.0
50226 configured by $0, generated by GNU Autoconf 2.61,
50227   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
50228
50229 Copyright (C) 2006 Free Software Foundation, Inc.
50230 This config.status script is free software; the Free Software Foundation
50231 gives unlimited permission to copy, distribute and modify it."
50232
50233 ac_pwd='$ac_pwd'
50234 srcdir='$srcdir'
50235 INSTALL='$INSTALL'
50236 _ACEOF
50237
50238 cat >>$CONFIG_STATUS <<\_ACEOF
50239 # If no file are specified by the user, then we need to provide default
50240 # value.  By we need to know if files were specified by the user.
50241 ac_need_defaults=:
50242 while test $# != 0
50243 do
50244   case $1 in
50245   --*=*)
50246     ac_option=`expr "X$1" : 'X\([^=]*\)='`
50247     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
50248     ac_shift=:
50249     ;;
50250   *)
50251     ac_option=$1
50252     ac_optarg=$2
50253     ac_shift=shift
50254     ;;
50255   esac
50256
50257   case $ac_option in
50258   # Handling of the options.
50259   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50260     ac_cs_recheck=: ;;
50261   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
50262     echo "$ac_cs_version"; exit ;;
50263   --debug | --debu | --deb | --de | --d | -d )
50264     debug=: ;;
50265   --file | --fil | --fi | --f )
50266     $ac_shift
50267     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50268     ac_need_defaults=false;;
50269   --header | --heade | --head | --hea )
50270     $ac_shift
50271     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50272     ac_need_defaults=false;;
50273   --he | --h)
50274     # Conflict between --help and --header
50275     { echo "$as_me: error: ambiguous option: $1
50276 Try \`$0 --help' for more information." >&2
50277    { (exit 1); exit 1; }; };;
50278   --help | --hel | -h )
50279     echo "$ac_cs_usage"; exit ;;
50280   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50281   | -silent | --silent | --silen | --sile | --sil | --si | --s)
50282     ac_cs_silent=: ;;
50283
50284   # This is an error.
50285   -*) { echo "$as_me: error: unrecognized option: $1
50286 Try \`$0 --help' for more information." >&2
50287    { (exit 1); exit 1; }; } ;;
50288
50289   *) ac_config_targets="$ac_config_targets $1"
50290      ac_need_defaults=false ;;
50291
50292   esac
50293   shift
50294 done
50295
50296 ac_configure_extra_args=
50297
50298 if $ac_cs_silent; then
50299   exec 6>/dev/null
50300   ac_configure_extra_args="$ac_configure_extra_args --silent"
50301 fi
50302
50303 _ACEOF
50304 cat >>$CONFIG_STATUS <<_ACEOF
50305 if \$ac_cs_recheck; then
50306   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50307   CONFIG_SHELL=$SHELL
50308   export CONFIG_SHELL
50309   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50310 fi
50311
50312 _ACEOF
50313 cat >>$CONFIG_STATUS <<\_ACEOF
50314 exec 5>>config.log
50315 {
50316   echo
50317   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50318 ## Running $as_me. ##
50319 _ASBOX
50320   echo "$ac_log"
50321 } >&5
50322
50323 _ACEOF
50324 cat >>$CONFIG_STATUS <<_ACEOF
50325 #
50326 # INIT-COMMANDS
50327 #
50328
50329             CPP="$CPP"
50330             infile="$srcdir/include/wx/msw/genrcdefs.h"
50331             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50332
50333
50334  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50335  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50336  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50337                      LN_S="${LN_S}"
50338
50339
50340 _ACEOF
50341
50342 cat >>$CONFIG_STATUS <<\_ACEOF
50343
50344 # Handling of arguments.
50345 for ac_config_target in $ac_config_targets
50346 do
50347   case $ac_config_target in
50348     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
50349     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
50350     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50351     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
50352     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
50353     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50354     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50355     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
50356
50357   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50358 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50359    { (exit 1); exit 1; }; };;
50360   esac
50361 done
50362
50363
50364 # If the user did not use the arguments to specify the items to instantiate,
50365 # then the envvar interface is used.  Set only those that are not.
50366 # We use the long form for the default assignment because of an extremely
50367 # bizarre bug on SunOS 4.1.3.
50368 if $ac_need_defaults; then
50369   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50370   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50371   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50372 fi
50373
50374 # Have a temporary directory for convenience.  Make it in the build tree
50375 # simply because there is no reason against having it here, and in addition,
50376 # creating and moving files from /tmp can sometimes cause problems.
50377 # Hook for its removal unless debugging.
50378 # Note that there is a small window in which the directory will not be cleaned:
50379 # after its creation but before its name has been assigned to `$tmp'.
50380 $debug ||
50381 {
50382   tmp=
50383   trap 'exit_status=$?
50384   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
50385 ' 0
50386   trap '{ (exit 1); exit 1; }' 1 2 13 15
50387 }
50388 # Create a (secure) tmp directory for tmp files.
50389
50390 {
50391   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
50392   test -n "$tmp" && test -d "$tmp"
50393 }  ||
50394 {
50395   tmp=./conf$$-$RANDOM
50396   (umask 077 && mkdir "$tmp")
50397 } ||
50398 {
50399    echo "$me: cannot create a temporary directory in ." >&2
50400    { (exit 1); exit 1; }
50401 }
50402
50403 #
50404 # Set up the sed scripts for CONFIG_FILES section.
50405 #
50406
50407 # No need to generate the scripts if there are no CONFIG_FILES.
50408 # This happens for instance when ./config.status config.h
50409 if test -n "$CONFIG_FILES"; then
50410
50411 _ACEOF
50412
50413
50414
50415 ac_delim='%!_!# '
50416 for ac_last_try in false false false false false :; do
50417   cat >conf$$subs.sed <<_ACEOF
50418 SHELL!$SHELL$ac_delim
50419 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
50420 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
50421 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
50422 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
50423 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
50424 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
50425 exec_prefix!$exec_prefix$ac_delim
50426 prefix!$prefix$ac_delim
50427 program_transform_name!$program_transform_name$ac_delim
50428 bindir!$bindir$ac_delim
50429 sbindir!$sbindir$ac_delim
50430 libexecdir!$libexecdir$ac_delim
50431 datarootdir!$datarootdir$ac_delim
50432 datadir!$datadir$ac_delim
50433 sysconfdir!$sysconfdir$ac_delim
50434 sharedstatedir!$sharedstatedir$ac_delim
50435 localstatedir!$localstatedir$ac_delim
50436 includedir!$includedir$ac_delim
50437 oldincludedir!$oldincludedir$ac_delim
50438 docdir!$docdir$ac_delim
50439 infodir!$infodir$ac_delim
50440 htmldir!$htmldir$ac_delim
50441 dvidir!$dvidir$ac_delim
50442 pdfdir!$pdfdir$ac_delim
50443 psdir!$psdir$ac_delim
50444 libdir!$libdir$ac_delim
50445 localedir!$localedir$ac_delim
50446 mandir!$mandir$ac_delim
50447 DEFS!$DEFS$ac_delim
50448 ECHO_C!$ECHO_C$ac_delim
50449 ECHO_N!$ECHO_N$ac_delim
50450 ECHO_T!$ECHO_T$ac_delim
50451 LIBS!$LIBS$ac_delim
50452 build_alias!$build_alias$ac_delim
50453 host_alias!$host_alias$ac_delim
50454 target_alias!$target_alias$ac_delim
50455 build!$build$ac_delim
50456 build_cpu!$build_cpu$ac_delim
50457 build_vendor!$build_vendor$ac_delim
50458 build_os!$build_os$ac_delim
50459 host!$host$ac_delim
50460 host_cpu!$host_cpu$ac_delim
50461 host_vendor!$host_vendor$ac_delim
50462 host_os!$host_os$ac_delim
50463 target!$target$ac_delim
50464 target_cpu!$target_cpu$ac_delim
50465 target_vendor!$target_vendor$ac_delim
50466 target_os!$target_os$ac_delim
50467 wx_top_builddir!$wx_top_builddir$ac_delim
50468 CC!$CC$ac_delim
50469 CFLAGS!$CFLAGS$ac_delim
50470 LDFLAGS!$LDFLAGS$ac_delim
50471 CPPFLAGS!$CPPFLAGS$ac_delim
50472 ac_ct_CC!$ac_ct_CC$ac_delim
50473 EXEEXT!$EXEEXT$ac_delim
50474 OBJEXT!$OBJEXT$ac_delim
50475 CPP!$CPP$ac_delim
50476 GREP!$GREP$ac_delim
50477 EGREP!$EGREP$ac_delim
50478 CXX!$CXX$ac_delim
50479 CXXFLAGS!$CXXFLAGS$ac_delim
50480 ac_ct_CXX!$ac_ct_CXX$ac_delim
50481 RANLIB!$RANLIB$ac_delim
50482 AR!$AR$ac_delim
50483 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
50484 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
50485 INSTALL_DATA!$INSTALL_DATA$ac_delim
50486 STRIP!$STRIP$ac_delim
50487 WINDRES!$WINDRES$ac_delim
50488 DLLTOOL!$DLLTOOL$ac_delim
50489 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
50490 LN_S!$LN_S$ac_delim
50491 subdirs!$subdirs$ac_delim
50492 PKG_CONFIG!$PKG_CONFIG$ac_delim
50493 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
50494 GTK_LIBS!$GTK_LIBS$ac_delim
50495 GTK_CONFIG!$GTK_CONFIG$ac_delim
50496 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
50497 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
50498 XMKMF!$XMKMF$ac_delim
50499 X_CFLAGS!$X_CFLAGS$ac_delim
50500 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
50501 X_LIBS!$X_LIBS$ac_delim
50502 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
50503 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
50504 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
50505 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
50506 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
50507 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
50508 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
50509 REZ!$REZ$ac_delim
50510 DEREZ!$DEREZ$ac_delim
50511 SETFILE!$SETFILE$ac_delim
50512 LIBICONV!$LIBICONV$ac_delim
50513 SDL_CONFIG!$SDL_CONFIG$ac_delim
50514 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
50515 _ACEOF
50516
50517   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50518     break
50519   elif $ac_last_try; then
50520     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50521 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50522    { (exit 1); exit 1; }; }
50523   else
50524     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50525   fi
50526 done
50527
50528 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50529 if test -n "$ac_eof"; then
50530   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50531   ac_eof=`expr $ac_eof + 1`
50532 fi
50533
50534 cat >>$CONFIG_STATUS <<_ACEOF
50535 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
50536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50537 _ACEOF
50538 sed '
50539 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50540 s/^/s,@/; s/!/@,|#_!!_#|/
50541 :n
50542 t n
50543 s/'"$ac_delim"'$/,g/; t
50544 s/$/\\/; p
50545 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50546 ' >>$CONFIG_STATUS <conf$$subs.sed
50547 rm -f conf$$subs.sed
50548 cat >>$CONFIG_STATUS <<_ACEOF
50549 CEOF$ac_eof
50550 _ACEOF
50551
50552
50553 ac_delim='%!_!# '
50554 for ac_last_try in false false false false false :; do
50555   cat >conf$$subs.sed <<_ACEOF
50556 SDL_LIBS!$SDL_LIBS$ac_delim
50557 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
50558 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
50559 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
50560 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
50561 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
50562 HILDON_LIBS!$HILDON_LIBS$ac_delim
50563 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
50564 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
50565 GST_CFLAGS!$GST_CFLAGS$ac_delim
50566 GST_LIBS!$GST_LIBS$ac_delim
50567 CORE_BASE_LIBS!$CORE_BASE_LIBS$ac_delim
50568 CORE_GUI_LIBS!$CORE_GUI_LIBS$ac_delim
50569 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
50570 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
50571 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
50572 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
50573 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
50574 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
50575 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
50576 VENDOR!$VENDOR$ac_delim
50577 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
50578 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
50579 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
50580 WXUNIV!$WXUNIV$ac_delim
50581 MONOLITHIC!$MONOLITHIC$ac_delim
50582 USE_PLUGINS!$USE_PLUGINS$ac_delim
50583 CXXWARNINGS!$CXXWARNINGS$ac_delim
50584 EXTRALIBS!$EXTRALIBS$ac_delim
50585 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
50586 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
50587 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
50588 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
50589 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
50590 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
50591 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
50592 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
50593 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
50594 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
50595 UNICODE!$UNICODE$ac_delim
50596 BUILD!$BUILD$ac_delim
50597 DEBUG_INFO!$DEBUG_INFO$ac_delim
50598 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
50599 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
50600 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
50601 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
50602 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
50603 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
50604 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
50605 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
50606 SET_MAKE!$SET_MAKE$ac_delim
50607 MAKE_SET!$MAKE_SET$ac_delim
50608 AROPTIONS!$AROPTIONS$ac_delim
50609 NM!$NM$ac_delim
50610 INSTALL_DIR!$INSTALL_DIR$ac_delim
50611 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
50612 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
50613 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
50614 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
50615 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
50616 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
50617 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
50618 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
50619 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
50620 SO_SUFFIX!$SO_SUFFIX$ac_delim
50621 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
50622 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
50623 LIBPREFIX!$LIBPREFIX$ac_delim
50624 LIBEXT!$LIBEXT$ac_delim
50625 DLLPREFIX!$DLLPREFIX$ac_delim
50626 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
50627 dlldir!$dlldir$ac_delim
50628 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
50629 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
50630 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
50631 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
50632 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
50633 PIC_FLAG!$PIC_FLAG$ac_delim
50634 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
50635 USE_SOVERSION!$USE_SOVERSION$ac_delim
50636 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
50637 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
50638 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
50639 USE_MACVERSION!$USE_MACVERSION$ac_delim
50640 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
50641 SONAME_FLAG!$SONAME_FLAG$ac_delim
50642 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
50643 BK_DEPS!$BK_DEPS$ac_delim
50644 GCC_PCH!$GCC_PCH$ac_delim
50645 ICC_PCH!$ICC_PCH$ac_delim
50646 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
50647 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
50648 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
50649 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
50650 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
50651 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
50652 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
50653 _ACEOF
50654
50655   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50656     break
50657   elif $ac_last_try; then
50658     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50659 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50660    { (exit 1); exit 1; }; }
50661   else
50662     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50663   fi
50664 done
50665
50666 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50667 if test -n "$ac_eof"; then
50668   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50669   ac_eof=`expr $ac_eof + 1`
50670 fi
50671
50672 cat >>$CONFIG_STATUS <<_ACEOF
50673 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
50674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50675 _ACEOF
50676 sed '
50677 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50678 s/^/s,@/; s/!/@,|#_!!_#|/
50679 :n
50680 t n
50681 s/'"$ac_delim"'$/,g/; t
50682 s/$/\\/; p
50683 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50684 ' >>$CONFIG_STATUS <conf$$subs.sed
50685 rm -f conf$$subs.sed
50686 cat >>$CONFIG_STATUS <<_ACEOF
50687 CEOF$ac_eof
50688 _ACEOF
50689
50690
50691 ac_delim='%!_!# '
50692 for ac_last_try in false false false false false :; do
50693   cat >conf$$subs.sed <<_ACEOF
50694 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
50695 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
50696 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
50697 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
50698 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
50699 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
50700 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
50701 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
50702 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
50703 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
50704 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
50705 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
50706 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
50707 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
50708 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
50709 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
50710 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
50711 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
50712 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
50713 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
50714 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
50715 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
50716 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
50717 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
50718 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
50719 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
50720 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
50721 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
50722 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
50723 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
50724 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
50725 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
50726 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
50727 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
50728 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
50729 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
50730 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1$ac_delim
50731 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
50732 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
50733 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
50734 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
50735 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
50736 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
50737 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
50738 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
50739 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
50740 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
50741 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
50742 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
50743 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
50744 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
50745 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
50746 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
50747 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
50748 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
50749 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
50750 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
50751 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
50752 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
50753 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
50754 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
50755 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
50756 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
50757 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
50758 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
50759 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
50760 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
50761 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
50762 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
50763 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
50764 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
50765 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
50766 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
50767 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
50768 COND_SHARED_0!$COND_SHARED_0$ac_delim
50769 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
50770 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
50771 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
50772 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
50773 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
50774 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
50775 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
50776 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
50777 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
50778 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
50779 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
50780 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
50781 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
50782 COND_SHARED_1!$COND_SHARED_1$ac_delim
50783 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
50784 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
50785 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
50786 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
50787 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
50788 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
50789 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
50790 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
50791 _ACEOF
50792
50793   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50794     break
50795   elif $ac_last_try; then
50796     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50797 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50798    { (exit 1); exit 1; }; }
50799   else
50800     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50801   fi
50802 done
50803
50804 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50805 if test -n "$ac_eof"; then
50806   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50807   ac_eof=`expr $ac_eof + 1`
50808 fi
50809
50810 cat >>$CONFIG_STATUS <<_ACEOF
50811 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
50812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50813 _ACEOF
50814 sed '
50815 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50816 s/^/s,@/; s/!/@,|#_!!_#|/
50817 :n
50818 t n
50819 s/'"$ac_delim"'$/,g/; t
50820 s/$/\\/; p
50821 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50822 ' >>$CONFIG_STATUS <conf$$subs.sed
50823 rm -f conf$$subs.sed
50824 cat >>$CONFIG_STATUS <<_ACEOF
50825 CEOF$ac_eof
50826 _ACEOF
50827
50828
50829 ac_delim='%!_!# '
50830 for ac_last_try in false false false false false :; do
50831   cat >conf$$subs.sed <<_ACEOF
50832 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
50833 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
50834 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
50835 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
50836 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
50837 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
50838 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
50839 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
50840 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
50841 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
50842 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
50843 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
50844 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
50845 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
50846 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
50847 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
50848 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
50849 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
50850 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
50851 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
50852 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
50853 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
50854 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
50855 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
50856 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
50857 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
50858 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
50859 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
50860 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
50861 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
50862 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
50863 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
50864 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
50865 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
50866 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
50867 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
50868 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
50869 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
50870 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
50871 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
50872 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
50873 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
50874 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
50875 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
50876 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
50877 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
50878 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
50879 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
50880 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
50881 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
50882 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
50883 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
50884 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
50885 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
50886 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
50887 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
50888 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
50889 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
50890 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
50891 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
50892 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
50893 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
50894 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
50895 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
50896 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
50897 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
50898 SHARED!$SHARED$ac_delim
50899 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
50900 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
50901 USE_GUI!$USE_GUI$ac_delim
50902 AFMINSTALL!$AFMINSTALL$ac_delim
50903 WIN32INSTALL!$WIN32INSTALL$ac_delim
50904 TOOLKIT!$TOOLKIT$ac_delim
50905 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
50906 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
50907 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
50908 cross_compiling!$cross_compiling$ac_delim
50909 WIDGET_SET!$WIDGET_SET$ac_delim
50910 WX_RELEASE!$WX_RELEASE$ac_delim
50911 WX_VERSION!$WX_VERSION$ac_delim
50912 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
50913 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
50914 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
50915 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
50916 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
50917 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
50918 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
50919 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
50920 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
50921 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
50922 EXE_LINKER!$EXE_LINKER$ac_delim
50923 GUIDIST!$GUIDIST$ac_delim
50924 DISTDIR!$DISTDIR$ac_delim
50925 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
50926 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
50927 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
50928 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
50929 _ACEOF
50930
50931   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50932     break
50933   elif $ac_last_try; then
50934     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50935 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50936    { (exit 1); exit 1; }; }
50937   else
50938     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50939   fi
50940 done
50941
50942 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50943 if test -n "$ac_eof"; then
50944   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50945   ac_eof=`expr $ac_eof + 1`
50946 fi
50947
50948 cat >>$CONFIG_STATUS <<_ACEOF
50949 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
50950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50951 _ACEOF
50952 sed '
50953 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50954 s/^/s,@/; s/!/@,|#_!!_#|/
50955 :n
50956 t n
50957 s/'"$ac_delim"'$/,g/; t
50958 s/$/\\/; p
50959 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50960 ' >>$CONFIG_STATUS <conf$$subs.sed
50961 rm -f conf$$subs.sed
50962 cat >>$CONFIG_STATUS <<_ACEOF
50963 CEOF$ac_eof
50964 _ACEOF
50965
50966
50967 ac_delim='%!_!# '
50968 for ac_last_try in false false false false false :; do
50969   cat >conf$$subs.sed <<_ACEOF
50970 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
50971 RESCOMP!$RESCOMP$ac_delim
50972 RESFLAGS!$RESFLAGS$ac_delim
50973 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
50974 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
50975 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
50976 LIBWXMACRES!$LIBWXMACRES$ac_delim
50977 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
50978 MACSETFILE!$MACSETFILE$ac_delim
50979 GCC!$GCC$ac_delim
50980 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
50981 LIBOBJS!$LIBOBJS$ac_delim
50982 LTLIBOBJS!$LTLIBOBJS$ac_delim
50983 _ACEOF
50984
50985   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
50986     break
50987   elif $ac_last_try; then
50988     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50989 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50990    { (exit 1); exit 1; }; }
50991   else
50992     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50993   fi
50994 done
50995
50996 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50997 if test -n "$ac_eof"; then
50998   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50999   ac_eof=`expr $ac_eof + 1`
51000 fi
51001
51002 cat >>$CONFIG_STATUS <<_ACEOF
51003 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
51004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
51005 _ACEOF
51006 sed '
51007 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51008 s/^/s,@/; s/!/@,|#_!!_#|/
51009 :n
51010 t n
51011 s/'"$ac_delim"'$/,g/; t
51012 s/$/\\/; p
51013 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51014 ' >>$CONFIG_STATUS <conf$$subs.sed
51015 rm -f conf$$subs.sed
51016 cat >>$CONFIG_STATUS <<_ACEOF
51017 :end
51018 s/|#_!!_#|//g
51019 CEOF$ac_eof
51020 _ACEOF
51021
51022
51023 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51024 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51025 # trailing colons and then remove the whole line if VPATH becomes empty
51026 # (actually we leave an empty line to preserve line numbers).
51027 if test "x$srcdir" = x.; then
51028   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51029 s/:*\$(srcdir):*/:/
51030 s/:*\${srcdir}:*/:/
51031 s/:*@srcdir@:*/:/
51032 s/^\([^=]*=[     ]*\):*/\1/
51033 s/:*$//
51034 s/^[^=]*=[       ]*$//
51035 }'
51036 fi
51037
51038 cat >>$CONFIG_STATUS <<\_ACEOF
51039 fi # test -n "$CONFIG_FILES"
51040
51041
51042 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
51043 do
51044   case $ac_tag in
51045   :[FHLC]) ac_mode=$ac_tag; continue;;
51046   esac
51047   case $ac_mode$ac_tag in
51048   :[FHL]*:*);;
51049   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
51050 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
51051    { (exit 1); exit 1; }; };;
51052   :[FH]-) ac_tag=-:-;;
51053   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51054   esac
51055   ac_save_IFS=$IFS
51056   IFS=:
51057   set x $ac_tag
51058   IFS=$ac_save_IFS
51059   shift
51060   ac_file=$1
51061   shift
51062
51063   case $ac_mode in
51064   :L) ac_source=$1;;
51065   :[FH])
51066     ac_file_inputs=
51067     for ac_f
51068     do
51069       case $ac_f in
51070       -) ac_f="$tmp/stdin";;
51071       *) # Look for the file first in the build tree, then in the source tree
51072          # (if the path is not absolute).  The absolute path cannot be DOS-style,
51073          # because $ac_f cannot contain `:'.
51074          test -f "$ac_f" ||
51075            case $ac_f in
51076            [\\/$]*) false;;
51077            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51078            esac ||
51079            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
51080 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
51081    { (exit 1); exit 1; }; };;
51082       esac
51083       ac_file_inputs="$ac_file_inputs $ac_f"
51084     done
51085
51086     # Let's still pretend it is `configure' which instantiates (i.e., don't
51087     # use $as_me), people would be surprised to read:
51088     #    /* config.h.  Generated by config.status.  */
51089     configure_input="Generated from "`IFS=:
51090           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
51091     if test x"$ac_file" != x-; then
51092       configure_input="$ac_file.  $configure_input"
51093       { echo "$as_me:$LINENO: creating $ac_file" >&5
51094 echo "$as_me: creating $ac_file" >&6;}
51095     fi
51096
51097     case $ac_tag in
51098     *:-:* | *:-) cat >"$tmp/stdin";;
51099     esac
51100     ;;
51101   esac
51102
51103   ac_dir=`$as_dirname -- "$ac_file" ||
51104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51105          X"$ac_file" : 'X\(//\)[^/]' \| \
51106          X"$ac_file" : 'X\(//\)$' \| \
51107          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51108 echo X"$ac_file" |
51109     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51110             s//\1/
51111             q
51112           }
51113           /^X\(\/\/\)[^/].*/{
51114             s//\1/
51115             q
51116           }
51117           /^X\(\/\/\)$/{
51118             s//\1/
51119             q
51120           }
51121           /^X\(\/\).*/{
51122             s//\1/
51123             q
51124           }
51125           s/.*/./; q'`
51126   { as_dir="$ac_dir"
51127   case $as_dir in #(
51128   -*) as_dir=./$as_dir;;
51129   esac
51130   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51131     as_dirs=
51132     while :; do
51133       case $as_dir in #(
51134       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51135       *) as_qdir=$as_dir;;
51136       esac
51137       as_dirs="'$as_qdir' $as_dirs"
51138       as_dir=`$as_dirname -- "$as_dir" ||
51139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51140          X"$as_dir" : 'X\(//\)[^/]' \| \
51141          X"$as_dir" : 'X\(//\)$' \| \
51142          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51143 echo X"$as_dir" |
51144     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51145             s//\1/
51146             q
51147           }
51148           /^X\(\/\/\)[^/].*/{
51149             s//\1/
51150             q
51151           }
51152           /^X\(\/\/\)$/{
51153             s//\1/
51154             q
51155           }
51156           /^X\(\/\).*/{
51157             s//\1/
51158             q
51159           }
51160           s/.*/./; q'`
51161       test -d "$as_dir" && break
51162     done
51163     test -z "$as_dirs" || eval "mkdir $as_dirs"
51164   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51165 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51166    { (exit 1); exit 1; }; }; }
51167   ac_builddir=.
51168
51169 case "$ac_dir" in
51170 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51171 *)
51172   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51173   # A ".." for each directory in $ac_dir_suffix.
51174   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
51175   case $ac_top_builddir_sub in
51176   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51177   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51178   esac ;;
51179 esac
51180 ac_abs_top_builddir=$ac_pwd
51181 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51182 # for backward compatibility:
51183 ac_top_builddir=$ac_top_build_prefix
51184
51185 case $srcdir in
51186   .)  # We are building in place.
51187     ac_srcdir=.
51188     ac_top_srcdir=$ac_top_builddir_sub
51189     ac_abs_top_srcdir=$ac_pwd ;;
51190   [\\/]* | ?:[\\/]* )  # Absolute name.
51191     ac_srcdir=$srcdir$ac_dir_suffix;
51192     ac_top_srcdir=$srcdir
51193     ac_abs_top_srcdir=$srcdir ;;
51194   *) # Relative name.
51195     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51196     ac_top_srcdir=$ac_top_build_prefix$srcdir
51197     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51198 esac
51199 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51200
51201
51202   case $ac_mode in
51203   :F)
51204   #
51205   # CONFIG_FILE
51206   #
51207
51208   case $INSTALL in
51209   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51210   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
51211   esac
51212 _ACEOF
51213
51214 cat >>$CONFIG_STATUS <<\_ACEOF
51215 # If the template does not know about datarootdir, expand it.
51216 # FIXME: This hack should be removed a few years after 2.60.
51217 ac_datarootdir_hack=; ac_datarootdir_seen=
51218
51219 case `sed -n '/datarootdir/ {
51220   p
51221   q
51222 }
51223 /@datadir@/p
51224 /@docdir@/p
51225 /@infodir@/p
51226 /@localedir@/p
51227 /@mandir@/p
51228 ' $ac_file_inputs` in
51229 *datarootdir*) ac_datarootdir_seen=yes;;
51230 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
51231   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
51232 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
51233 _ACEOF
51234 cat >>$CONFIG_STATUS <<_ACEOF
51235   ac_datarootdir_hack='
51236   s&@datadir@&$datadir&g
51237   s&@docdir@&$docdir&g
51238   s&@infodir@&$infodir&g
51239   s&@localedir@&$localedir&g
51240   s&@mandir@&$mandir&g
51241     s&\\\${datarootdir}&$datarootdir&g' ;;
51242 esac
51243 _ACEOF
51244
51245 # Neutralize VPATH when `$srcdir' = `.'.
51246 # Shell code in configure.ac might set extrasub.
51247 # FIXME: do we really want to maintain this feature?
51248 cat >>$CONFIG_STATUS <<_ACEOF
51249   sed "$ac_vpsub
51250 $extrasub
51251 _ACEOF
51252 cat >>$CONFIG_STATUS <<\_ACEOF
51253 :t
51254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51255 s&@configure_input@&$configure_input&;t t
51256 s&@top_builddir@&$ac_top_builddir_sub&;t t
51257 s&@srcdir@&$ac_srcdir&;t t
51258 s&@abs_srcdir@&$ac_abs_srcdir&;t t
51259 s&@top_srcdir@&$ac_top_srcdir&;t t
51260 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
51261 s&@builddir@&$ac_builddir&;t t
51262 s&@abs_builddir@&$ac_abs_builddir&;t t
51263 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
51264 s&@INSTALL@&$ac_INSTALL&;t t
51265 $ac_datarootdir_hack
51266 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" >$tmp/out
51267
51268 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
51269   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
51270   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
51271   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51272 which seems to be undefined.  Please make sure it is defined." >&5
51273 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51274 which seems to be undefined.  Please make sure it is defined." >&2;}
51275
51276   rm -f "$tmp/stdin"
51277   case $ac_file in
51278   -) cat "$tmp/out"; rm -f "$tmp/out";;
51279   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
51280   esac
51281  ;;
51282   :H)
51283   #
51284   # CONFIG_HEADER
51285   #
51286 _ACEOF
51287
51288 # Transform confdefs.h into a sed script `conftest.defines', that
51289 # substitutes the proper values into config.h.in to produce config.h.
51290 rm -f conftest.defines conftest.tail
51291 # First, append a space to every undef/define line, to ease matching.
51292 echo 's/$/ /' >conftest.defines
51293 # Then, protect against being on the right side of a sed subst, or in
51294 # an unquoted here document, in config.status.  If some macros were
51295 # called several times there might be several #defines for the same
51296 # symbol, which is useless.  But do not sort them, since the last
51297 # AC_DEFINE must be honored.
51298 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
51299 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
51300 # NAME is the cpp macro being defined, VALUE is the value it is being given.
51301 # PARAMS is the parameter list in the macro definition--in most cases, it's
51302 # just an empty string.
51303 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
51304 ac_dB='\\)[      (].*,\\1define\\2'
51305 ac_dC=' '
51306 ac_dD=' ,'
51307
51308 uniq confdefs.h |
51309   sed -n '
51310         t rset
51311         :rset
51312         s/^[     ]*#[    ]*define[       ][      ]*//
51313         t ok
51314         d
51315         :ok
51316         s/[\\&,]/\\&/g
51317         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
51318         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
51319   ' >>conftest.defines
51320
51321 # Remove the space that was appended to ease matching.
51322 # Then replace #undef with comments.  This is necessary, for
51323 # example, in the case of _POSIX_SOURCE, which is predefined and required
51324 # on some systems where configure will not decide to define it.
51325 # (The regexp can be short, since the line contains either #define or #undef.)
51326 echo 's/ $//
51327 s,^[     #]*u.*,/* & */,' >>conftest.defines
51328
51329 # Break up conftest.defines:
51330 ac_max_sed_lines=50
51331
51332 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
51333 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
51334 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
51335 # et cetera.
51336 ac_in='$ac_file_inputs'
51337 ac_out='"$tmp/out1"'
51338 ac_nxt='"$tmp/out2"'
51339
51340 while :
51341 do
51342   # Write a here document:
51343     cat >>$CONFIG_STATUS <<_ACEOF
51344     # First, check the format of the line:
51345     cat >"\$tmp/defines.sed" <<\\CEOF
51346 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
51347 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
51348 b
51349 :def
51350 _ACEOF
51351   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
51352   echo 'CEOF
51353     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
51354   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
51355   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
51356   grep . conftest.tail >/dev/null || break
51357   rm -f conftest.defines
51358   mv conftest.tail conftest.defines
51359 done
51360 rm -f conftest.defines conftest.tail
51361
51362 echo "ac_result=$ac_in" >>$CONFIG_STATUS
51363 cat >>$CONFIG_STATUS <<\_ACEOF
51364   if test x"$ac_file" != x-; then
51365     echo "/* $configure_input  */" >"$tmp/config.h"
51366     cat "$ac_result" >>"$tmp/config.h"
51367     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
51368       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51369 echo "$as_me: $ac_file is unchanged" >&6;}
51370     else
51371       rm -f $ac_file
51372       mv "$tmp/config.h" $ac_file
51373     fi
51374   else
51375     echo "/* $configure_input  */"
51376     cat "$ac_result"
51377   fi
51378   rm -f "$tmp/out12"
51379  ;;
51380
51381   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
51382 echo "$as_me: executing $ac_file commands" >&6;}
51383  ;;
51384   esac
51385
51386
51387   case $ac_file$ac_mode in
51388     "rcdefs.h":C)
51389             mkdir -p $outdir &&
51390             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51391          ;;
51392     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
51393     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
51394     "wx-config":C)  rm -f wx-config
51395                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51396                     ;;
51397
51398   esac
51399 done # for ac_tag
51400
51401
51402 { (exit 0); exit 0; }
51403 _ACEOF
51404 chmod +x $CONFIG_STATUS
51405 ac_clean_files=$ac_clean_files_save
51406
51407
51408 # configure is writing to config.log, and then calls config.status.
51409 # config.status does its own redirection, appending to config.log.
51410 # Unfortunately, on DOS this fails, as config.log is still kept open
51411 # by configure, so config.status won't be able to write to it; its
51412 # output is simply discarded.  So we exec the FD to /dev/null,
51413 # effectively closing config.log, so it can be properly (re)opened and
51414 # appended to by config.status.  When coming back to configure, we
51415 # need to make the FD available again.
51416 if test "$no_create" != yes; then
51417   ac_cs_success=:
51418   ac_config_status_args=
51419   test "$silent" = yes &&
51420     ac_config_status_args="$ac_config_status_args --quiet"
51421   exec 5>/dev/null
51422   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51423   exec 5>>config.log
51424   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51425   # would make configure fail if this is the last instruction.
51426   $ac_cs_success || { (exit 1); exit 1; }
51427 fi
51428
51429 #
51430 # CONFIG_SUBDIRS section.
51431 #
51432 if test "$no_recursion" != yes; then
51433
51434   # Remove --cache-file and --srcdir arguments so they do not pile up.
51435   ac_sub_configure_args=
51436   ac_prev=
51437   eval "set x $ac_configure_args"
51438   shift
51439   for ac_arg
51440   do
51441     if test -n "$ac_prev"; then
51442       ac_prev=
51443       continue
51444     fi
51445     case $ac_arg in
51446     -cache-file | --cache-file | --cache-fil | --cache-fi \
51447     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51448       ac_prev=cache_file ;;
51449     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51450     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51451     | --c=*)
51452       ;;
51453     --config-cache | -C)
51454       ;;
51455     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51456       ac_prev=srcdir ;;
51457     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51458       ;;
51459     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51460       ac_prev=prefix ;;
51461     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51462       ;;
51463     *)
51464       case $ac_arg in
51465       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
51466       esac
51467       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
51468     esac
51469   done
51470
51471   # Always prepend --prefix to ensure using the same prefix
51472   # in subdir configurations.
51473   ac_arg="--prefix=$prefix"
51474   case $ac_arg in
51475   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
51476   esac
51477   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
51478
51479   # Pass --silent
51480   if test "$silent" = yes; then
51481     ac_sub_configure_args="--silent $ac_sub_configure_args"
51482   fi
51483
51484   ac_popdir=`pwd`
51485   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51486
51487     # Do not complain, so a configure script can configure whichever
51488     # parts of a large source tree are present.
51489     test -d "$srcdir/$ac_dir" || continue
51490
51491     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
51492     echo "$as_me:$LINENO: $ac_msg" >&5
51493     echo "$ac_msg" >&6
51494     { as_dir="$ac_dir"
51495   case $as_dir in #(
51496   -*) as_dir=./$as_dir;;
51497   esac
51498   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51499     as_dirs=
51500     while :; do
51501       case $as_dir in #(
51502       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51503       *) as_qdir=$as_dir;;
51504       esac
51505       as_dirs="'$as_qdir' $as_dirs"
51506       as_dir=`$as_dirname -- "$as_dir" ||
51507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51508          X"$as_dir" : 'X\(//\)[^/]' \| \
51509          X"$as_dir" : 'X\(//\)$' \| \
51510          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51511 echo X"$as_dir" |
51512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51513             s//\1/
51514             q
51515           }
51516           /^X\(\/\/\)[^/].*/{
51517             s//\1/
51518             q
51519           }
51520           /^X\(\/\/\)$/{
51521             s//\1/
51522             q
51523           }
51524           /^X\(\/\).*/{
51525             s//\1/
51526             q
51527           }
51528           s/.*/./; q'`
51529       test -d "$as_dir" && break
51530     done
51531     test -z "$as_dirs" || eval "mkdir $as_dirs"
51532   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51533 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51534    { (exit 1); exit 1; }; }; }
51535     ac_builddir=.
51536
51537 case "$ac_dir" in
51538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51539 *)
51540   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51541   # A ".." for each directory in $ac_dir_suffix.
51542   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
51543   case $ac_top_builddir_sub in
51544   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51545   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51546   esac ;;
51547 esac
51548 ac_abs_top_builddir=$ac_pwd
51549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51550 # for backward compatibility:
51551 ac_top_builddir=$ac_top_build_prefix
51552
51553 case $srcdir in
51554   .)  # We are building in place.
51555     ac_srcdir=.
51556     ac_top_srcdir=$ac_top_builddir_sub
51557     ac_abs_top_srcdir=$ac_pwd ;;
51558   [\\/]* | ?:[\\/]* )  # Absolute name.
51559     ac_srcdir=$srcdir$ac_dir_suffix;
51560     ac_top_srcdir=$srcdir
51561     ac_abs_top_srcdir=$srcdir ;;
51562   *) # Relative name.
51563     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51564     ac_top_srcdir=$ac_top_build_prefix$srcdir
51565     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51566 esac
51567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51568
51569
51570     cd "$ac_dir"
51571
51572     # Check for guested configure; otherwise get Cygnus style configure.
51573     if test -f "$ac_srcdir/configure.gnu"; then
51574       ac_sub_configure=$ac_srcdir/configure.gnu
51575     elif test -f "$ac_srcdir/configure"; then
51576       ac_sub_configure=$ac_srcdir/configure
51577     elif test -f "$ac_srcdir/configure.in"; then
51578       # This should be Cygnus configure.
51579       ac_sub_configure=$ac_aux_dir/configure
51580     else
51581       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51582 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51583       ac_sub_configure=
51584     fi
51585
51586     # The recursion is here.
51587     if test -n "$ac_sub_configure"; then
51588       # Make the cache file name correct relative to the subdirectory.
51589       case $cache_file in
51590       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51591       *) # Relative name.
51592         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
51593       esac
51594
51595       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51596 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51597       # The eval makes quoting arguments work.
51598       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
51599            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
51600         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
51601 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51602    { (exit 1); exit 1; }; }
51603     fi
51604
51605     cd "$ac_popdir"
51606   done
51607 fi
51608
51609
51610 echo
51611 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
51612 echo ""
51613 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
51614 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
51615
51616 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
51617 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
51618 echo -n "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}"
51619 if test "$wxUSE_UNICODE" = "yes"; then
51620     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
51621         echo " (using UTF-8)"
51622     else
51623         echo " (using wchar_t)"
51624     fi
51625 else
51626     echo
51627 fi
51628
51629 echo "  What level of wxWidgets compatibility should be enabled?"
51630 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
51631 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
51632
51633 echo "  Which libraries should wxWidgets use?"
51634 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
51635 echo "                                       png                ${wxUSE_LIBPNG-none}"
51636 echo "                                       regex              ${wxUSE_REGEX}"
51637 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
51638 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51639 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
51640 fi
51641 echo "                                       zlib               ${wxUSE_ZLIB}"
51642 echo "                                       odbc               ${wxUSE_ODBC}"
51643 echo "                                       expat              ${wxUSE_EXPAT}"
51644 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
51645 echo "                                       sdl                ${wxUSE_LIBSDL}"
51646
51647 echo ""
51648