Add WX_FIND_LIB() function to simplify testing for libraries in configure.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.3.
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.3'
579 PACKAGE_STRING='wxWidgets 2.9.3'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 wx_top_builddir
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CXX
676 CXXFLAGS
677 ac_ct_CXX
678 AR
679 OSX_SW_VERS
680 CXXCPP
681 subdirs
682 PKG_CONFIG
683 GTK_CFLAGS
684 GTK_LIBS
685 GTK_CONFIG
686 DIRECTFB_CFLAGS
687 DIRECTFB_LIBS
688 XMKMF
689 X_CFLAGS
690 X_PRE_LIBS
691 X_LIBS
692 X_EXTRA_LIBS
693 PANGOX_CFLAGS
694 PANGOX_LIBS
695 PANGOFT2_CFLAGS
696 PANGOFT2_LIBS
697 PANGOXFT_CFLAGS
698 PANGOXFT_LIBS
699 Xinerama_CFLAGS
700 Xinerama_LIBS
701 Xxf86vm_CFLAGS
702 Xxf86vm_LIBS
703 SM_CFLAGS
704 SM_LIBS
705 GL_CFLAGS
706 GL_LIBS
707 GLU_CFLAGS
708 GLU_LIBS
709 MesaGL_CFLAGS
710 MesaGL_LIBS
711 CFLAGS_VISIBILITY
712 CXXFLAGS_VISIBILITY
713 LIBICONV
714 GXX_VERSION
715 SDL_CONFIG
716 SDL_CFLAGS
717 SDL_LIBS
718 GTKPRINT_CFLAGS
719 GTKPRINT_LIBS
720 LIBGNOMEPRINTUI_CFLAGS
721 LIBGNOMEPRINTUI_LIBS
722 GNOMEVFS_CFLAGS
723 GNOMEVFS_LIBS
724 HILDON_CFLAGS
725 HILDON_LIBS
726 HILDON2_CFLAGS
727 HILDON2_LIBS
728 PYTHON
729 COND_PYTHON
730 CAIRO_CFLAGS
731 CAIRO_LIBS
732 GST_CFLAGS
733 GST_LIBS
734 ALL_WX_LIBS
735 BUILT_WX_LIBS
736 STD_BASE_LIBS
737 STD_GUI_LIBS
738 wxUSE_ZLIB
739 wxUSE_REGEX
740 wxUSE_EXPAT
741 wxUSE_LIBJPEG
742 wxUSE_LIBPNG
743 wxUSE_LIBTIFF
744 VENDOR
745 OFFICIAL_BUILD
746 WX_FLAVOUR
747 WX_LIB_FLAVOUR
748 WXUNIV
749 MONOLITHIC
750 USE_PLUGINS
751 CXXWARNINGS
752 EXTRALIBS
753 EXTRALIBS_XML
754 EXTRALIBS_HTML
755 EXTRALIBS_MEDIA
756 EXTRALIBS_GUI
757 EXTRALIBS_OPENGL
758 EXTRALIBS_SDL
759 EXTRALIBS_STC
760 WITH_PLUGIN_SDL
761 EXTRALIBS_GTKPRINT
762 EXTRALIBS_GNOMEPRINT
763 EXTRALIBS_GNOMEVFS
764 EXTRALIBS_HILDON
765 UNICODE
766 DEBUG_INFO
767 DEBUG_FLAG
768 TOOLKIT_LOWERCASE
769 TOOLKIT_VERSION
770 DYLIB_RPATH_INSTALL
771 DYLIB_RPATH_POSTLINK
772 SAMPLES_RPATH_FLAG
773 HEADER_PAD_OPTION
774 HOST_SUFFIX
775 CPPUNIT_CFLAGS
776 CPPUNIT_LIBS
777 RANLIB
778 INSTALL_PROGRAM
779 INSTALL_SCRIPT
780 INSTALL_DATA
781 LN_S
782 SET_MAKE
783 MAKE_SET
784 AROPTIONS
785 STRIP
786 NM
787 INSTALL_DIR
788 LDFLAGS_GUI
789 IF_GNU_MAKE
790 PLATFORM_UNIX
791 PLATFORM_WIN32
792 PLATFORM_MSDOS
793 PLATFORM_MAC
794 PLATFORM_MACOS
795 PLATFORM_MACOSX
796 PLATFORM_OS2
797 PLATFORM_BEOS
798 SO_SUFFIX
799 SO_SUFFIX_MODULE
800 DLLIMP_SUFFIX
801 LIBPREFIX
802 LIBEXT
803 DLLPREFIX
804 DLLPREFIX_MODULE
805 dlldir
806 AIX_CXX_LD
807 SHARED_LD_CC
808 SHARED_LD_CXX
809 SHARED_LD_MODULE_CC
810 SHARED_LD_MODULE_CXX
811 PIC_FLAG
812 WINDOWS_IMPLIB
813 USE_SOVERSION
814 USE_SOVERLINUX
815 USE_SOVERSOLARIS
816 USE_SOVERCYGWIN
817 USE_MACVERSION
818 USE_SOTWOSYMLINKS
819 SONAME_FLAG
820 DEPS_TRACKING
821 BK_DEPS
822 WINDRES
823 REZ
824 SETFILE
825 OBJCXXFLAGS
826 GCC_PCH
827 ICC_PCH
828 ICC_PCH_CREATE_SWITCH
829 ICC_PCH_USE_SWITCH
830 BK_MAKE_PCH
831 COND_BUILD_DEBUG
832 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
833 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
834 COND_BUILD_DEBUG_UNICODE_0
835 COND_BUILD_DEBUG_UNICODE_1
836 COND_BUILD_RELEASE
837 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
838 COND_BUILD_RELEASE_UNICODE_0
839 COND_BUILD_RELEASE_UNICODE_1
840 COND_BUILD_debug
841 COND_BUILD_debug_DEBUG_FLAG_default
842 COND_BUILD_debug_DEBUG_INFO_default
843 COND_BUILD_debug_UNICODE_0
844 COND_BUILD_debug_UNICODE_1
845 COND_BUILD_release
846 COND_BUILD_release_DEBUG_INFO_default
847 COND_BUILD_release_UNICODE_0
848 COND_BUILD_release_UNICODE_1
849 COND_DEBUG_FLAG_0
850 COND_DEBUG_FLAG_1
851 COND_DEBUG_INFO_0
852 COND_DEBUG_INFO_1
853 COND_DEPS_TRACKING_0
854 COND_DEPS_TRACKING_1
855 COND_GCC_PCH_1
856 COND_ICC_PCH_1
857 COND_MONOLITHIC_0
858 COND_MONOLITHIC_0_SHARED_0
859 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
860 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
861 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
862 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
863 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
864 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1
865 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
866 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
867 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
868 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
869 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
870 COND_MONOLITHIC_0_SHARED_1
871 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
872 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
873 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
874 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
875 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
876 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1
877 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
878 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
879 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
880 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
881 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
882 COND_MONOLITHIC_0_USE_AUI_1
883 COND_MONOLITHIC_0_USE_GUI_1
884 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
885 COND_MONOLITHIC_0_USE_HTML_1
886 COND_MONOLITHIC_0_USE_MEDIA_1
887 COND_MONOLITHIC_0_USE_PROPGRID_1
888 COND_MONOLITHIC_0_USE_QA_1
889 COND_MONOLITHIC_0_USE_RIBBON_1
890 COND_MONOLITHIC_0_USE_RICHTEXT_1
891 COND_MONOLITHIC_0_USE_STC_1
892 COND_MONOLITHIC_0_USE_WEBVIEW_1
893 COND_MONOLITHIC_0_USE_XRC_1
894 COND_MONOLITHIC_1
895 COND_MONOLITHIC_1_SHARED_0
896 COND_MONOLITHIC_1_SHARED_1
897 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
898 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
899 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
900 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
901 COND_PLATFORM_MACOSX_1
902 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
903 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
904 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
905 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
906 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
907 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
908 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
909 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
910 COND_PLATFORM_MACOSX_1_USE_GUI_1
911 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
912 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
913 COND_PLATFORM_MACOS_1
914 COND_PLATFORM_MAC_0
915 COND_PLATFORM_MAC_1
916 COND_PLATFORM_MSDOS_0
917 COND_PLATFORM_MSDOS_1
918 COND_PLATFORM_OS2_1
919 COND_PLATFORM_UNIX_0
920 COND_PLATFORM_UNIX_1
921 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
922 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
923 COND_PLATFORM_UNIX_1_USE_GUI_1
924 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
925 COND_PLATFORM_WIN32_0
926 COND_PLATFORM_WIN32_1
927 COND_PLATFORM_WIN32_1_SHARED_0
928 COND_SHARED_0
929 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
930 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
931 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
932 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
933 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
934 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
935 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
936 COND_SHARED_0_USE_STC_1
937 COND_SHARED_0_wxUSE_EXPAT_builtin
938 COND_SHARED_0_wxUSE_REGEX_builtin
939 COND_SHARED_0_wxUSE_ZLIB_builtin
940 COND_SHARED_1
941 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
942 COND_TOOLKIT_
943 COND_TOOLKIT_COCOA
944 COND_TOOLKIT_COCOA_USE_GUI_1
945 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
946 COND_TOOLKIT_DFB
947 COND_TOOLKIT_DFB_USE_GUI_1
948 COND_TOOLKIT_GTK
949 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
950 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
951 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
952 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
953 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
954 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
955 COND_TOOLKIT_GTK_USE_GUI_1
956 COND_TOOLKIT_MAC
957 COND_TOOLKIT_MGL
958 COND_TOOLKIT_MGL_USE_GUI_1
959 COND_TOOLKIT_MOTIF
960 COND_TOOLKIT_MOTIF_USE_GUI_1
961 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
962 COND_TOOLKIT_MSW
963 COND_TOOLKIT_MSW_USE_GUI_1
964 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
965 COND_TOOLKIT_MSW_WXUNIV_0
966 COND_TOOLKIT_OSX_CARBON
967 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
968 COND_TOOLKIT_OSX_COCOA
969 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
970 COND_TOOLKIT_OSX_IPHONE
971 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
972 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
973 COND_TOOLKIT_PM
974 COND_TOOLKIT_PM_USE_GUI_1
975 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
976 COND_TOOLKIT_WINCE
977 COND_TOOLKIT_WINCE_USE_GUI_1
978 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
979 COND_TOOLKIT_WINCE_WXUNIV_0
980 COND_TOOLKIT_X11
981 COND_TOOLKIT_X11_USE_GUI_1
982 COND_UNICODE_1
983 COND_USE_CAIRO_1
984 COND_USE_EXCEPTIONS_0
985 COND_USE_EXCEPTIONS_1
986 COND_USE_GUI_0
987 COND_USE_GUI_1
988 COND_USE_GUI_1_USE_OPENGL_1
989 COND_USE_GUI_1_WXUNIV_0
990 COND_USE_GUI_1_WXUNIV_1
991 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
992 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
993 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
994 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
995 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
996 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
997 COND_USE_OPENGL_1
998 COND_USE_PCH_1
999 COND_USE_PLUGINS_0
1000 COND_USE_RTTI_0
1001 COND_USE_RTTI_1
1002 COND_USE_SOTWOSYMLINKS_1
1003 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
1004 COND_USE_SOVERLINUX_1
1005 COND_USE_SOVERSION_0
1006 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
1007 COND_USE_SOVERSOLARIS_1
1008 COND_USE_STC_1
1009 COND_USE_THREADS_0
1010 COND_USE_THREADS_1
1011 COND_USE_XRC_1
1012 COND_WINDOWS_IMPLIB_1
1013 COND_WITH_PLUGIN_SDL_1
1014 COND_WXUNIV_0
1015 COND_WXUNIV_1
1016 COND_WXUSE_EXPAT_BUILTIN
1017 COND_WXUSE_LIBJPEG_BUILTIN
1018 COND_WXUSE_LIBPNG_BUILTIN
1019 COND_WXUSE_LIBTIFF_BUILTIN
1020 COND_WXUSE_REGEX_BUILTIN
1021 COND_WXUSE_ZLIB_BUILTIN
1022 COND_wxUSE_EXPAT_builtin
1023 COND_wxUSE_LIBJPEG_builtin
1024 COND_wxUSE_LIBPNG_builtin
1025 COND_wxUSE_LIBTIFF_builtin
1026 COND_wxUSE_REGEX_builtin
1027 COND_wxUSE_ZLIB_builtin
1028 DEREZ
1029 SHARED
1030 WX_LIBRARY_BASENAME_NOGUI
1031 WX_LIBRARY_BASENAME_GUI
1032 USE_GUI
1033 AFMINSTALL
1034 WIN32INSTALL
1035 TOOLKIT
1036 TOOLKIT_DIR
1037 TOOLCHAIN_NAME
1038 TOOLCHAIN_FULLNAME
1039 cross_compiling
1040 WIDGET_SET
1041 WX_RELEASE
1042 WX_VERSION
1043 WX_SUBVERSION
1044 WX_CHARTYPE
1045 WXCONFIG_CPPFLAGS
1046 WXCONFIG_CFLAGS
1047 WXCONFIG_CXXFLAGS
1048 WXCONFIG_LIBS
1049 WXCONFIG_RPATH
1050 WXCONFIG_LDFLAGS
1051 WXCONFIG_LDFLAGS_GUI
1052 WXCONFIG_RESFLAGS
1053 GUIDIST
1054 DISTDIR
1055 SAMPLES_SUBDIRS
1056 LDFLAGS_GL
1057 OPENGL_LIBS
1058 DMALLOC_LIBS
1059 WX_VERSION_TAG
1060 RESCOMP
1061 RESFLAGS
1062 RESPROGRAMOBJ
1063 WX_RESOURCES_MACOSX_ASCII
1064 WX_RESOURCES_MACOSX_DATA
1065 LIBWXMACRES
1066 POSTLINK_COMMAND
1067 MACSETFILE
1068 GCC
1069 DLLTOOL
1070 CPPUNIT_CONFIG
1071 LIBOBJS
1072 LTLIBOBJS'
1073 ac_subst_files=''
1074       ac_precious_vars='build_alias
1075 host_alias
1076 target_alias
1077 CC
1078 CFLAGS
1079 LDFLAGS
1080 LIBS
1081 CPPFLAGS
1082 CPP
1083 CXX
1084 CXXFLAGS
1085 CCC
1086 CXXCPP
1087 PKG_CONFIG
1088 DIRECTFB_CFLAGS
1089 DIRECTFB_LIBS
1090 XMKMF
1091 PANGOX_CFLAGS
1092 PANGOX_LIBS
1093 PANGOFT2_CFLAGS
1094 PANGOFT2_LIBS
1095 PANGOXFT_CFLAGS
1096 PANGOXFT_LIBS
1097 Xinerama_CFLAGS
1098 Xinerama_LIBS
1099 Xxf86vm_CFLAGS
1100 Xxf86vm_LIBS
1101 SM_CFLAGS
1102 SM_LIBS
1103 GL_CFLAGS
1104 GL_LIBS
1105 GLU_CFLAGS
1106 GLU_LIBS
1107 MesaGL_CFLAGS
1108 MesaGL_LIBS
1109 GTKPRINT_CFLAGS
1110 GTKPRINT_LIBS
1111 LIBGNOMEPRINTUI_CFLAGS
1112 LIBGNOMEPRINTUI_LIBS
1113 GNOMEVFS_CFLAGS
1114 GNOMEVFS_LIBS
1115 HILDON_CFLAGS
1116 HILDON_LIBS
1117 HILDON2_CFLAGS
1118 HILDON2_LIBS
1119 CAIRO_CFLAGS
1120 CAIRO_LIBS
1121 GST_CFLAGS
1122 GST_LIBS'
1123 ac_subdirs_all='src/tiff
1124 src/expat'
1125
1126 # Initialize some variables set by options.
1127 ac_init_help=
1128 ac_init_version=false
1129 # The variables have the same names as the options, with
1130 # dashes changed to underlines.
1131 cache_file=/dev/null
1132 exec_prefix=NONE
1133 no_create=
1134 no_recursion=
1135 prefix=NONE
1136 program_prefix=NONE
1137 program_suffix=NONE
1138 program_transform_name=s,x,x,
1139 silent=
1140 site=
1141 srcdir=
1142 verbose=
1143 x_includes=NONE
1144 x_libraries=NONE
1145
1146 # Installation directory options.
1147 # These are left unexpanded so users can "make install exec_prefix=/foo"
1148 # and all the variables that are supposed to be based on exec_prefix
1149 # by default will actually change.
1150 # Use braces instead of parens because sh, perl, etc. also accept them.
1151 # (The list follows the same order as the GNU Coding Standards.)
1152 bindir='${exec_prefix}/bin'
1153 sbindir='${exec_prefix}/sbin'
1154 libexecdir='${exec_prefix}/libexec'
1155 datarootdir='${prefix}/share'
1156 datadir='${datarootdir}'
1157 sysconfdir='${prefix}/etc'
1158 sharedstatedir='${prefix}/com'
1159 localstatedir='${prefix}/var'
1160 includedir='${prefix}/include'
1161 oldincludedir='/usr/include'
1162 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1163 infodir='${datarootdir}/info'
1164 htmldir='${docdir}'
1165 dvidir='${docdir}'
1166 pdfdir='${docdir}'
1167 psdir='${docdir}'
1168 libdir='${exec_prefix}/lib'
1169 localedir='${datarootdir}/locale'
1170 mandir='${datarootdir}/man'
1171
1172 ac_prev=
1173 ac_dashdash=
1174 for ac_option
1175 do
1176   # If the previous option needs an argument, assign it.
1177   if test -n "$ac_prev"; then
1178     eval $ac_prev=\$ac_option
1179     ac_prev=
1180     continue
1181   fi
1182
1183   case $ac_option in
1184   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1185   *)    ac_optarg=yes ;;
1186   esac
1187
1188   # Accept the important Cygnus configure options, so we can diagnose typos.
1189
1190   case $ac_dashdash$ac_option in
1191   --)
1192     ac_dashdash=yes ;;
1193
1194   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1195     ac_prev=bindir ;;
1196   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1197     bindir=$ac_optarg ;;
1198
1199   -build | --build | --buil | --bui | --bu)
1200     ac_prev=build_alias ;;
1201   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1202     build_alias=$ac_optarg ;;
1203
1204   -cache-file | --cache-file | --cache-fil | --cache-fi \
1205   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1206     ac_prev=cache_file ;;
1207   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1208   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1209     cache_file=$ac_optarg ;;
1210
1211   --config-cache | -C)
1212     cache_file=config.cache ;;
1213
1214   -datadir | --datadir | --datadi | --datad)
1215     ac_prev=datadir ;;
1216   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1217     datadir=$ac_optarg ;;
1218
1219   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1220   | --dataroo | --dataro | --datar)
1221     ac_prev=datarootdir ;;
1222   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1223   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1224     datarootdir=$ac_optarg ;;
1225
1226   -disable-* | --disable-*)
1227     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1228     # Reject names that are not valid shell variable names.
1229     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1231    { (exit 1); exit 1; }; }
1232     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1233     eval enable_$ac_feature=no ;;
1234
1235   -docdir | --docdir | --docdi | --doc | --do)
1236     ac_prev=docdir ;;
1237   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1238     docdir=$ac_optarg ;;
1239
1240   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1241     ac_prev=dvidir ;;
1242   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1243     dvidir=$ac_optarg ;;
1244
1245   -enable-* | --enable-*)
1246     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1247     # Reject names that are not valid shell variable names.
1248     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1250    { (exit 1); exit 1; }; }
1251     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1252     eval enable_$ac_feature=\$ac_optarg ;;
1253
1254   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1255   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1256   | --exec | --exe | --ex)
1257     ac_prev=exec_prefix ;;
1258   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1259   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1260   | --exec=* | --exe=* | --ex=*)
1261     exec_prefix=$ac_optarg ;;
1262
1263   -gas | --gas | --ga | --g)
1264     # Obsolete; use --with-gas.
1265     with_gas=yes ;;
1266
1267   -help | --help | --hel | --he | -h)
1268     ac_init_help=long ;;
1269   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1270     ac_init_help=recursive ;;
1271   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1272     ac_init_help=short ;;
1273
1274   -host | --host | --hos | --ho)
1275     ac_prev=host_alias ;;
1276   -host=* | --host=* | --hos=* | --ho=*)
1277     host_alias=$ac_optarg ;;
1278
1279   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1280     ac_prev=htmldir ;;
1281   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1282   | --ht=*)
1283     htmldir=$ac_optarg ;;
1284
1285   -includedir | --includedir | --includedi | --included | --include \
1286   | --includ | --inclu | --incl | --inc)
1287     ac_prev=includedir ;;
1288   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1289   | --includ=* | --inclu=* | --incl=* | --inc=*)
1290     includedir=$ac_optarg ;;
1291
1292   -infodir | --infodir | --infodi | --infod | --info | --inf)
1293     ac_prev=infodir ;;
1294   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1295     infodir=$ac_optarg ;;
1296
1297   -libdir | --libdir | --libdi | --libd)
1298     ac_prev=libdir ;;
1299   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1300     libdir=$ac_optarg ;;
1301
1302   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1303   | --libexe | --libex | --libe)
1304     ac_prev=libexecdir ;;
1305   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1306   | --libexe=* | --libex=* | --libe=*)
1307     libexecdir=$ac_optarg ;;
1308
1309   -localedir | --localedir | --localedi | --localed | --locale)
1310     ac_prev=localedir ;;
1311   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1312     localedir=$ac_optarg ;;
1313
1314   -localstatedir | --localstatedir | --localstatedi | --localstated \
1315   | --localstate | --localstat | --localsta | --localst | --locals)
1316     ac_prev=localstatedir ;;
1317   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1318   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1319     localstatedir=$ac_optarg ;;
1320
1321   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1322     ac_prev=mandir ;;
1323   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1324     mandir=$ac_optarg ;;
1325
1326   -nfp | --nfp | --nf)
1327     # Obsolete; use --without-fp.
1328     with_fp=no ;;
1329
1330   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1331   | --no-cr | --no-c | -n)
1332     no_create=yes ;;
1333
1334   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1335   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1336     no_recursion=yes ;;
1337
1338   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1339   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1340   | --oldin | --oldi | --old | --ol | --o)
1341     ac_prev=oldincludedir ;;
1342   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1343   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1344   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1345     oldincludedir=$ac_optarg ;;
1346
1347   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1348     ac_prev=prefix ;;
1349   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1350     prefix=$ac_optarg ;;
1351
1352   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1353   | --program-pre | --program-pr | --program-p)
1354     ac_prev=program_prefix ;;
1355   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1356   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1357     program_prefix=$ac_optarg ;;
1358
1359   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1360   | --program-suf | --program-su | --program-s)
1361     ac_prev=program_suffix ;;
1362   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1363   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1364     program_suffix=$ac_optarg ;;
1365
1366   -program-transform-name | --program-transform-name \
1367   | --program-transform-nam | --program-transform-na \
1368   | --program-transform-n | --program-transform- \
1369   | --program-transform | --program-transfor \
1370   | --program-transfo | --program-transf \
1371   | --program-trans | --program-tran \
1372   | --progr-tra | --program-tr | --program-t)
1373     ac_prev=program_transform_name ;;
1374   -program-transform-name=* | --program-transform-name=* \
1375   | --program-transform-nam=* | --program-transform-na=* \
1376   | --program-transform-n=* | --program-transform-=* \
1377   | --program-transform=* | --program-transfor=* \
1378   | --program-transfo=* | --program-transf=* \
1379   | --program-trans=* | --program-tran=* \
1380   | --progr-tra=* | --program-tr=* | --program-t=*)
1381     program_transform_name=$ac_optarg ;;
1382
1383   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1384     ac_prev=pdfdir ;;
1385   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1386     pdfdir=$ac_optarg ;;
1387
1388   -psdir | --psdir | --psdi | --psd | --ps)
1389     ac_prev=psdir ;;
1390   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1391     psdir=$ac_optarg ;;
1392
1393   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1394   | -silent | --silent | --silen | --sile | --sil)
1395     silent=yes ;;
1396
1397   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1398     ac_prev=sbindir ;;
1399   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1400   | --sbi=* | --sb=*)
1401     sbindir=$ac_optarg ;;
1402
1403   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1404   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1405   | --sharedst | --shareds | --shared | --share | --shar \
1406   | --sha | --sh)
1407     ac_prev=sharedstatedir ;;
1408   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1409   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1410   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1411   | --sha=* | --sh=*)
1412     sharedstatedir=$ac_optarg ;;
1413
1414   -site | --site | --sit)
1415     ac_prev=site ;;
1416   -site=* | --site=* | --sit=*)
1417     site=$ac_optarg ;;
1418
1419   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1420     ac_prev=srcdir ;;
1421   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1422     srcdir=$ac_optarg ;;
1423
1424   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1425   | --syscon | --sysco | --sysc | --sys | --sy)
1426     ac_prev=sysconfdir ;;
1427   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1428   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1429     sysconfdir=$ac_optarg ;;
1430
1431   -target | --target | --targe | --targ | --tar | --ta | --t)
1432     ac_prev=target_alias ;;
1433   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1434     target_alias=$ac_optarg ;;
1435
1436   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1437     verbose=yes ;;
1438
1439   -version | --version | --versio | --versi | --vers | -V)
1440     ac_init_version=: ;;
1441
1442   -with-* | --with-*)
1443     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1444     # Reject names that are not valid shell variable names.
1445     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1446       { echo "$as_me: error: invalid package name: $ac_package" >&2
1447    { (exit 1); exit 1; }; }
1448     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1449     eval with_$ac_package=\$ac_optarg ;;
1450
1451   -without-* | --without-*)
1452     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1453     # Reject names that are not valid shell variable names.
1454     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1455       { echo "$as_me: error: invalid package name: $ac_package" >&2
1456    { (exit 1); exit 1; }; }
1457     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1458     eval with_$ac_package=no ;;
1459
1460   --x)
1461     # Obsolete; use --with-x.
1462     with_x=yes ;;
1463
1464   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1465   | --x-incl | --x-inc | --x-in | --x-i)
1466     ac_prev=x_includes ;;
1467   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1468   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1469     x_includes=$ac_optarg ;;
1470
1471   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1472   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1473     ac_prev=x_libraries ;;
1474   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1475   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1476     x_libraries=$ac_optarg ;;
1477
1478   -*) { echo "$as_me: error: unrecognized option: $ac_option
1479 Try \`$0 --help' for more information." >&2
1480    { (exit 1); exit 1; }; }
1481     ;;
1482
1483   *=*)
1484     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1485     # Reject names that are not valid shell variable names.
1486     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1487       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1488    { (exit 1); exit 1; }; }
1489     eval $ac_envvar=\$ac_optarg
1490     export $ac_envvar ;;
1491
1492   *)
1493     # FIXME: should be removed in autoconf 3.0.
1494     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1495     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1496       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1497     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1498     ;;
1499
1500   esac
1501 done
1502
1503 if test -n "$ac_prev"; then
1504   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1505   { echo "$as_me: error: missing argument to $ac_option" >&2
1506    { (exit 1); exit 1; }; }
1507 fi
1508
1509 # Be sure to have absolute directory names.
1510 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1511                 datadir sysconfdir sharedstatedir localstatedir includedir \
1512                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1513                 libdir localedir mandir
1514 do
1515   eval ac_val=\$$ac_var
1516   case $ac_val in
1517     [\\/$]* | ?:[\\/]* )  continue;;
1518     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1519   esac
1520   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1521    { (exit 1); exit 1; }; }
1522 done
1523
1524 # There might be people who depend on the old broken behavior: `$host'
1525 # used to hold the argument of --host etc.
1526 # FIXME: To remove some day.
1527 build=$build_alias
1528 host=$host_alias
1529 target=$target_alias
1530
1531 # FIXME: To remove some day.
1532 if test "x$host_alias" != x; then
1533   if test "x$build_alias" = x; then
1534     cross_compiling=maybe
1535     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1536     If a cross compiler is detected then cross compile mode will be used." >&2
1537   elif test "x$build_alias" != "x$host_alias"; then
1538     cross_compiling=yes
1539   fi
1540 fi
1541
1542 ac_tool_prefix=
1543 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1544
1545 test "$silent" = yes && exec 6>/dev/null
1546
1547
1548 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1549 ac_ls_di=`ls -di .` &&
1550 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1551   { echo "$as_me: error: Working directory cannot be determined" >&2
1552    { (exit 1); exit 1; }; }
1553 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1554   { echo "$as_me: error: pwd does not report name of working directory" >&2
1555    { (exit 1); exit 1; }; }
1556
1557
1558 # Find the source files, if location was not specified.
1559 if test -z "$srcdir"; then
1560   ac_srcdir_defaulted=yes
1561   # Try the directory containing this script, then the parent directory.
1562   ac_confdir=`$as_dirname -- "$0" ||
1563 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1564          X"$0" : 'X\(//\)[^/]' \| \
1565          X"$0" : 'X\(//\)$' \| \
1566          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1567 echo X"$0" |
1568     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1569             s//\1/
1570             q
1571           }
1572           /^X\(\/\/\)[^/].*/{
1573             s//\1/
1574             q
1575           }
1576           /^X\(\/\/\)$/{
1577             s//\1/
1578             q
1579           }
1580           /^X\(\/\).*/{
1581             s//\1/
1582             q
1583           }
1584           s/.*/./; q'`
1585   srcdir=$ac_confdir
1586   if test ! -r "$srcdir/$ac_unique_file"; then
1587     srcdir=..
1588   fi
1589 else
1590   ac_srcdir_defaulted=no
1591 fi
1592 if test ! -r "$srcdir/$ac_unique_file"; then
1593   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1594   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1595    { (exit 1); exit 1; }; }
1596 fi
1597 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1598 ac_abs_confdir=`(
1599         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1600    { (exit 1); exit 1; }; }
1601         pwd)`
1602 # When building in place, set srcdir=.
1603 if test "$ac_abs_confdir" = "$ac_pwd"; then
1604   srcdir=.
1605 fi
1606 # Remove unnecessary trailing slashes from srcdir.
1607 # Double slashes in file names in object file debugging info
1608 # mess up M-x gdb in Emacs.
1609 case $srcdir in
1610 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1611 esac
1612 for ac_var in $ac_precious_vars; do
1613   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1614   eval ac_env_${ac_var}_value=\$${ac_var}
1615   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1616   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1617 done
1618
1619 #
1620 # Report the --help message.
1621 #
1622 if test "$ac_init_help" = "long"; then
1623   # Omit some internal or obsolete options to make the list less imposing.
1624   # This message is too long to be a string in the A/UX 3.1 sh.
1625   cat <<_ACEOF
1626 \`configure' configures wxWidgets 2.9.3 to adapt to many kinds of systems.
1627
1628 Usage: $0 [OPTION]... [VAR=VALUE]...
1629
1630 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1631 VAR=VALUE.  See below for descriptions of some of the useful variables.
1632
1633 Defaults for the options are specified in brackets.
1634
1635 Configuration:
1636   -h, --help              display this help and exit
1637       --help=short        display options specific to this package
1638       --help=recursive    display the short help of all the included packages
1639   -V, --version           display version information and exit
1640   -q, --quiet, --silent   do not print \`checking...' messages
1641       --cache-file=FILE   cache test results in FILE [disabled]
1642   -C, --config-cache      alias for \`--cache-file=config.cache'
1643   -n, --no-create         do not create output files
1644       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1645
1646 Installation directories:
1647   --prefix=PREFIX         install architecture-independent files in PREFIX
1648                           [$ac_default_prefix]
1649   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1650                           [PREFIX]
1651
1652 By default, \`make install' will install all the files in
1653 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1654 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1655 for instance \`--prefix=\$HOME'.
1656
1657 For better control, use the options below.
1658
1659 Fine tuning of the installation directories:
1660   --bindir=DIR           user executables [EPREFIX/bin]
1661   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1662   --libexecdir=DIR       program executables [EPREFIX/libexec]
1663   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1664   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1665   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1666   --libdir=DIR           object code libraries [EPREFIX/lib]
1667   --includedir=DIR       C header files [PREFIX/include]
1668   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1669   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1670   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1671   --infodir=DIR          info documentation [DATAROOTDIR/info]
1672   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1673   --mandir=DIR           man documentation [DATAROOTDIR/man]
1674   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1675   --htmldir=DIR          html documentation [DOCDIR]
1676   --dvidir=DIR           dvi documentation [DOCDIR]
1677   --pdfdir=DIR           pdf documentation [DOCDIR]
1678   --psdir=DIR            ps documentation [DOCDIR]
1679 _ACEOF
1680
1681   cat <<\_ACEOF
1682
1683 X features:
1684   --x-includes=DIR    X include files are in DIR
1685   --x-libraries=DIR   X library files are in DIR
1686
1687 System types:
1688   --build=BUILD     configure for building on BUILD [guessed]
1689   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1690 _ACEOF
1691 fi
1692
1693 if test -n "$ac_init_help"; then
1694   case $ac_init_help in
1695      short | recursive ) echo "Configuration of wxWidgets 2.9.3:";;
1696    esac
1697   cat <<\_ACEOF
1698
1699 Optional Features:
1700   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1701   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1702   --disable-gui           don't build GUI parts of the library
1703   --enable-monolithic     build wxWidgets as single library
1704   --enable-plugins        build parts of wxWidgets as loadable components
1705   --enable-official_build official build of wxWidgets (win32 DLL only)
1706   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1707   --disable-all-features  disable all optional features to build minimal library
1708   --enable-universal      use wxWidgets GUI controls instead of native ones
1709   --enable-nanox          use NanoX
1710   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1711   --enable-gpe            use GNOME PDA Environment features if possible
1712   --enable-debug          build library for debugging
1713   --disable-debug_flag    disable all debugging support
1714   --enable-debug_info     generate debug information
1715   --enable-debug_gdb      create code with extra GDB debugging information
1716   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1717   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1718   --disable-shared        create static library instead of shared
1719   --enable-stl            use standard C++ classes for everything
1720   --enable-std_containers use standard C++ container classes
1721   --enable-std_iostreams  use standard C++ stream classes
1722   --enable-std_string     use standard C++ string classes
1723  --enable-std_string_conv_in_wxstring     provide implicit conversion to std::string in wxString
1724   --disable-unicode       compile without Unicode support
1725   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1726   --enable-utf8           use UTF-8 representation for strings (Unix only)
1727   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1728   --enable-extended_rtti  use extended RTTI (XTI)
1729   --enable-omf            use OMF object format
1730   --disable-optimise      compile without optimisations
1731   --enable-profile        create code with profiling information
1732   --enable-no_rtti        create code without RTTI information
1733   --enable-no_exceptions  create code without C++ exceptions handling
1734   --enable-permissive     compile code disregarding strict ANSI
1735   --enable-no_deps        create code without dependency information
1736   --disable-vararg_macros don't use vararg macros, even if they are supported
1737   --enable-universal_binary  create universal binary with Mac PPC and i386 (and x86_64 if using Cocoa) architectures
1738   --enable-macosx_arch=ARCH  build for just the specified architecture
1739   --enable-compat26       enable wxWidgets 2.6 compatibility
1740   --disable-compat28      disable wxWidgets 2.8 compatibility
1741   --disable-rpath         disable use of rpath for uninstalled builds
1742   --enable-objc_uniquifying enable Objective-C class name uniquifying
1743   --disable-visibility    disable use of ELF symbols visibility even if supported
1744   --disable-tls           disable use of compiler TLS support
1745   --enable-intl           use internationalization system
1746   --enable-xlocale        use x-locale support (requires wxLocale)
1747   --enable-config         use wxConfig (and derived) classes
1748   --enable-protocols      use wxProtocol and derived classes
1749   --enable-ftp            use wxFTP (requires wxProtocol
1750   --enable-http           use wxHTTP (requires wxProtocol
1751   --enable-fileproto      use wxFileProto class (requires wxProtocol
1752   --enable-sockets        use socket/network classes
1753   --enable-ipv6           enable IPv6 support in wxSocket
1754   --enable-ole            use OLE classes (Win32 only)
1755   --enable-dataobj        use data object classes
1756   --enable-ipc            use interprocess communication (wxSocket etc.)
1757   --enable-baseevtloop    use event loop in console programs too
1758   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1759   --enable-selectloop     use wxSelectDispatcher class
1760   --enable-any            use wxAny class
1761   --enable-apple_ieee     use the Apple IEEE codec
1762   --enable-arcstream      use wxArchive streams
1763   --enable-base64         use base64 encoding/decoding functions
1764   --enable-backtrace      use wxStackWalker class for getting backtraces
1765   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1766   --enable-cmdline        use wxCmdLineParser class
1767   --enable-datetime       use wxDateTime class
1768   --enable-debugreport    use wxDebugReport class
1769   --enable-dialupman      use dialup network classes
1770   --enable-dynlib         use wxLibrary class for DLL loading
1771   --enable-dynamicloader  use (new) wxDynamicLibrary class
1772   --enable-exceptions     build exception-safe library
1773   --enable-ffile          use wxFFile class
1774   --enable-file           use wxFile class
1775   --enable-filehistory    use wxFileHistory class
1776   --enable-filesystem     use virtual file systems classes
1777   --enable-fontenum       use wxFontEnumerator class
1778   --enable-fontmap        use font encodings conversion classes
1779   --enable-fs_archive     use virtual archive filesystems
1780   --enable-fs_inet        use virtual HTTP/FTP filesystems
1781   --enable-fs_zip         now replaced by fs_archive
1782   --enable-fswatcher      use wxFileSystemWatcher class
1783   --enable-geometry       use geometry class
1784   --enable-log            use logging system
1785   --enable-longlong       use wxLongLong class
1786   --enable-mimetype       use wxMimeTypesManager
1787   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1788   --enable-snglinst       use wxSingleInstanceChecker class
1789   --enable-sound          use wxSound class
1790   --enable-stdpaths       use wxStandardPaths class
1791   --enable-stopwatch      use wxStopWatch class
1792   --enable-streams        use wxStream etc classes
1793   --enable-sysoptions     use wxSystemOptions
1794   --enable-tarstream      use wxTar streams
1795   --enable-textbuf        use wxTextBuffer class
1796   --enable-textfile       use wxTextFile class
1797   --enable-timer          use wxTimer class
1798   --enable-variant        use wxVariant class
1799   --enable-zipstream      use wxZip streams
1800   --enable-url            use wxURL class
1801   --enable-protocol       use wxProtocol class
1802   --enable-protocol-http  HTTP support in wxProtocol
1803   --enable-protocol-ftp   FTP support in wxProtocol
1804   --enable-protocol-file  FILE support in wxProtocol
1805   --enable-threads        use threads
1806   --enable-iniconf        use wxIniConfig (Win32 only)
1807   --enable-regkey         use wxRegKey class (Win32 only)
1808   --enable-docview        use document view architecture
1809   --enable-help           use help subsystem
1810   --enable-mshtmlhelp     use MS HTML Help (win32)
1811   --enable-html           use wxHTML sub-library
1812   --enable-htmlhelp       use wxHTML-based help
1813   --enable-xrc            use XRC resources sub-library
1814   --enable-aui            use AUI docking library
1815   --enable-propgrid       use wxPropertyGrid library
1816   --enable-ribbon         use wxRibbon library
1817   --enable-stc            use wxStyledTextCtrl library
1818   --enable-constraints    use layout-constraints system
1819   --enable-loggui         use standard GUI logger
1820   --enable-logwin         use wxLogWindow
1821   --enable-logdialog      use wxLogDialog
1822   --enable-mdi            use multiple document interface architecture
1823   --enable-mdidoc         use docview architecture with MDI
1824   --enable-mediactrl      use wxMediaCtrl class
1825   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1826   --enable-richtext       use wxRichTextCtrl
1827   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1828   --enable-printarch      use printing architecture
1829   --enable-svg            use wxSVGFileDC device context
1830   --enable-webkit         use wxWebKitCtrl (Mac-only, use wxWebView instead)
1831   --enable-webview        use wxWebView library
1832   --enable-graphics_ctx   use graphics context 2D drawing API
1833   --enable-clipboard      use wxClipboard class
1834   --enable-dnd            use Drag'n'Drop classes
1835   --disable-controls      disable compilation of all standard controls
1836   --enable-markup         support wxControl::SetLabelMarkup
1837   --enable-accel          use accelerators
1838   --enable-animatectrl    use wxAnimationCtrl class
1839   --enable-bannerwindow   use wxBannerWindow class
1840   --enable-artstd         use standard XPM icons in wxArtProvider
1841   --enable-arttango       use Tango icons in wxArtProvider
1842   --enable-bmpbutton      use wxBitmapButton class
1843   --enable-bmpcombobox    use wxBitmapComboBox class
1844   --enable-button         use wxButton class
1845   --enable-calendar       use wxCalendarCtrl class
1846   --enable-caret          use wxCaret class
1847   --enable-checkbox       use wxCheckBox class
1848   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1849   --enable-choice         use wxChoice class
1850   --enable-choicebook     use wxChoicebook class
1851   --enable-collpane       use wxCollapsiblePane class
1852   --enable-colourpicker   use wxColourPickerCtrl class
1853   --enable-combobox       use wxComboBox class
1854   --enable-comboctrl      use wxComboCtrl class
1855   --enable-commandlinkbutton      use wxCommmandLinkButton class
1856   --enable-dataviewctrl   use wxDataViewCtrl class
1857   --enable-datepick       use wxDatePickerCtrl class
1858   --enable-detect_sm      use code to detect X11 session manager
1859   --enable-dirpicker      use wxDirPickerCtrl class
1860   --enable-display        use wxDisplay class
1861   --enable-editablebox    use wxEditableListBox class
1862   --enable-filectrl       use wxFileCtrl class
1863   --enable-filepicker     use wxFilePickerCtrl class
1864   --enable-fontpicker     use wxFontPickerCtrl class
1865   --enable-gauge          use wxGauge class
1866   --enable-grid           use wxGrid class
1867   --enable-headerctrl     use wxHeaderCtrl class
1868   --enable-hyperlink      use wxHyperlinkCtrl class
1869   --enable-imaglist       use wxImageList class
1870   --enable-infobar        use wxInfoBar class
1871   --enable-listbook       use wxListbook class
1872   --enable-listbox        use wxListBox class
1873   --enable-listctrl       use wxListCtrl class
1874   --enable-notebook       use wxNotebook class
1875   --enable-notifmsg       use wxNotificationMessage class
1876   --enable-odcombobox     use wxOwnerDrawnComboBox class
1877   --enable-popupwin       use wxPopUpWindow class
1878   --enable-radiobox       use wxRadioBox class
1879   --enable-radiobtn       use wxRadioButton class
1880   --enable-richmsgdlg     use wxRichMessageDialog class
1881   --enable-richtooltip    use wxRichToolTip class
1882   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1883   --enable-sash           use wxSashWindow class
1884   --enable-scrollbar      use wxScrollBar class and scrollable windows
1885   --enable-searchctrl     use wxSearchCtrl class
1886   --enable-slider         use wxSlider class
1887   --enable-spinbtn        use wxSpinButton class
1888   --enable-spinctrl       use wxSpinCtrl class
1889   --enable-splitter       use wxSplitterWindow class
1890   --enable-statbmp        use wxStaticBitmap class
1891   --enable-statbox        use wxStaticBox class
1892   --enable-statline       use wxStaticLine class
1893   --enable-stattext       use wxStaticText class
1894   --enable-statusbar      use wxStatusBar class
1895   --enable-taskbaricon    use wxTaskBarIcon class
1896   --enable-tbarnative     use native wxToolBar class
1897   --enable-textctrl       use wxTextCtrl class
1898   --enable-timepick       use wxTimePickerCtrl class
1899   --enable-tipwindow      use wxTipWindow class
1900   --enable-togglebtn      use wxToggleButton class
1901   --enable-toolbar        use wxToolBar class
1902   --enable-toolbook       use wxToolbook class
1903   --enable-treebook       use wxTreebook class
1904   --enable-treectrl       use wxTreeCtrl class
1905   --enable-treelist       use wxTreeListCtrl class
1906   --enable-commondlg      use all common dialogs
1907   --enable-aboutdlg       use wxAboutBox
1908   --enable-choicedlg      use wxChoiceDialog
1909   --enable-coldlg         use wxColourDialog
1910   --enable-filedlg        use wxFileDialog
1911   --enable-finddlg        use wxFindReplaceDialog
1912   --enable-fontdlg        use wxFontDialog
1913   --enable-dirdlg         use wxDirDialog
1914   --enable-msgdlg         use wxMessageDialog
1915   --enable-numberdlg      use wxNumberEntryDialog
1916   --enable-splash         use wxSplashScreen
1917   --enable-textdlg        use wxTextDialog
1918   --enable-tipdlg         use startup tips
1919   --enable-progressdlg    use wxProgressDialog
1920   --enable-wizarddlg      use wxWizard
1921   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1922   --enable-miniframe      use wxMiniFrame class
1923   --enable-tooltips       use wxToolTip class
1924   --enable-splines        use spline drawing code
1925   --enable-mousewheel     use mousewheel
1926   --enable-validators     use wxValidator and derived classes
1927   --enable-busyinfo       use wxBusyInfo
1928   --enable-hotkey         use wxWindow::RegisterHotKey()
1929   --enable-joystick       use wxJoystick
1930   --enable-metafiles      use wxMetaFile
1931   --enable-dragimage      use wxDragImage
1932   --enable-accessibility  enable accessibility support
1933   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1934   --enable-dctransform    use wxDC::SetTransformMatrix and related
1935   --enable-webview-webkit use wxWebView WebKit backend
1936   --enable-palette        use wxPalette class
1937   --enable-image          use wxImage class
1938   --enable-gif            use gif images (GIF file format)
1939   --enable-pcx            use pcx images (PCX file format)
1940   --enable-tga            use tga images (TGA file format)
1941   --enable-iff            use iff images (IFF file format)
1942   --enable-pnm            use pnm images (PNM file format)
1943   --enable-xpm            use xpm images (XPM file format)
1944   --enable-ico_cur        use Windows ICO and CUR formats
1945   --enable-dccache        cache temporary wxDC objects (Win32 only)
1946   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1947   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1948   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1949   --enable-wxdib          use wxDIB class (Win32 only)
1950   --enable-webview-ie     use wxWebView IE backend (Win32 only)
1951   --enable-autoidman      use automatic ids management
1952   --disable-largefile     omit support for large files
1953   --disable-gtktest       do not try to compile and run a test GTK+ program
1954   --disable-gtktest       Do not try to compile and run a test GTK program
1955   --disable-sdltest       Do not try to compile and run a test SDL program
1956   --enable-omf            use OMF object format (OS/2)
1957   --disable-dependency-tracking
1958                           don't use dependency tracking even if the compiler
1959                           can
1960   --disable-precomp-headers
1961                           don't use precompiled headers even if compiler can
1962
1963 Optional Packages:
1964   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1965   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1966   --without-subdirs       don't generate makefiles for samples/demos/...
1967   --with-flavour=NAME     specify a name to identify this build
1968   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1969   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1970   --with-motif            use Motif/Lesstif
1971   --with-osx_carbon       use Mac OS X (Carbon)
1972   --with-osx_cocoa        use Mac OS X (Cocoa)
1973   --with-osx_iphone       use iPhone OS X port
1974   --with-osx              use Mac OS X (default port, currently Carbon)
1975   --with-carbon           same as --with-osx_carbon
1976   --with-cocoa            same as --with-osx_cocoa
1977   --with-iphone           same as --with-osx_iphone
1978   --with-mac              same as --with-osx
1979   --with-old_cocoa        use old, deprecated, Cocoa port
1980   --with-wine             use Wine
1981   --with-msw              use MS-Windows
1982   --with-pm               use OS/2 Presentation Manager
1983   --with-mgl              use SciTech MGL
1984   --with-directfb         use DirectFB
1985   --with-microwin         use MicroWindows
1986   --with-x11              use X11
1987   --with-libpng           use libpng (PNG image format)
1988   --with-libjpeg          use libjpeg (JPEG file format)
1989   --with-libtiff          use libtiff (TIFF file format)
1990   --with-libxpm           use libxpm (XPM file format)
1991   --with-libiconv         use libiconv (character conversion)
1992   --with-libmspack        use libmspack (CHM help files loading)
1993   --without-gtkprint      don't use GTK printing support
1994   --without-gnomeprint    don't use GNOME printing libraries
1995   --with-gnomevfs         use GNOME VFS for associating MIME types
1996   --with-hildon           use Hildon framework for Nokia 770/800/810
1997   --with-opengl           use OpenGL (or Mesa)
1998   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1999   --with-sdl              use SDL for audio on Unix
2000   --with-regex            enable support for wxRegEx class
2001   --with-zlib             use zlib for LZW compression
2002   --with-expat            enable XML support using expat parser
2003   --with-macosx-sdk=PATH  use an OS X SDK at PATH
2004   --with-macosx-version-min=VER   build binaries which require at least this OS X version
2005   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
2006   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
2007   --with-x                use the X Window System
2008   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
2009   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
2010   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
2011   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
2012   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
2013
2014 Some influential environment variables:
2015   CC          C compiler command
2016   CFLAGS      C compiler flags
2017   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2018               nonstandard directory <lib dir>
2019   LIBS        libraries to pass to the linker, e.g. -l<library>
2020   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2021               you have headers in a nonstandard directory <include dir>
2022   CPP         C preprocessor
2023   CXX         C++ compiler command
2024   CXXFLAGS    C++ compiler flags
2025   CXXCPP      C++ preprocessor
2026   PKG_CONFIG  path to pkg-config utility
2027   DIRECTFB_CFLAGS
2028               C compiler flags for DIRECTFB, overriding pkg-config
2029   DIRECTFB_LIBS
2030               linker flags for DIRECTFB, overriding pkg-config
2031   XMKMF       Path to xmkmf, Makefile generator for X Window System
2032   PANGOX_CFLAGS
2033               C compiler flags for PANGOX, overriding pkg-config
2034   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2035   PANGOFT2_CFLAGS
2036               C compiler flags for PANGOFT2, overriding pkg-config
2037   PANGOFT2_LIBS
2038               linker flags for PANGOFT2, overriding pkg-config
2039   PANGOXFT_CFLAGS
2040               C compiler flags for PANGOXFT, overriding pkg-config
2041   PANGOXFT_LIBS
2042               linker flags for PANGOXFT, overriding pkg-config
2043   Xinerama_CFLAGS
2044               C compiler flags for Xinerama, overriding pkg-config
2045   Xinerama_LIBS
2046               linker flags for Xinerama, overriding pkg-config
2047   Xxf86vm_CFLAGS
2048               C compiler flags for Xxf86vm, overriding pkg-config
2049   Xxf86vm_LIBS
2050               linker flags for Xxf86vm, overriding pkg-config
2051   SM_CFLAGS   C compiler flags for SM, overriding pkg-config
2052   SM_LIBS     linker flags for SM, overriding pkg-config
2053   GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2054   GL_LIBS     linker flags for GL, overriding pkg-config
2055   GLU_CFLAGS  C compiler flags for GLU, overriding pkg-config
2056   GLU_LIBS    linker flags for GLU, overriding pkg-config
2057   MesaGL_CFLAGS
2058               C compiler flags for MesaGL, overriding pkg-config
2059   MesaGL_LIBS linker flags for MesaGL, overriding pkg-config
2060   GTKPRINT_CFLAGS
2061               C compiler flags for GTKPRINT, overriding pkg-config
2062   GTKPRINT_LIBS
2063               linker flags for GTKPRINT, overriding pkg-config
2064   LIBGNOMEPRINTUI_CFLAGS
2065               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2066   LIBGNOMEPRINTUI_LIBS
2067               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2068   GNOMEVFS_CFLAGS
2069               C compiler flags for GNOMEVFS, overriding pkg-config
2070   GNOMEVFS_LIBS
2071               linker flags for GNOMEVFS, overriding pkg-config
2072   HILDON_CFLAGS
2073               C compiler flags for HILDON, overriding pkg-config
2074   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2075   HILDON2_CFLAGS
2076               C compiler flags for HILDON2, overriding pkg-config
2077   HILDON2_LIBS
2078               linker flags for HILDON2, overriding pkg-config
2079   CAIRO_CFLAGS
2080               C compiler flags for CAIRO, overriding pkg-config
2081   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2082   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2083   GST_LIBS    linker flags for GST, overriding pkg-config
2084
2085 Use these variables to override the choices made by `configure' or to help
2086 it to find libraries and programs with nonstandard names/locations.
2087
2088 Report bugs to <wx-dev@lists.wxwidgets.org>.
2089 _ACEOF
2090 ac_status=$?
2091 fi
2092
2093 if test "$ac_init_help" = "recursive"; then
2094   # If there are subdirs, report their specific --help.
2095   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2096     test -d "$ac_dir" || continue
2097     ac_builddir=.
2098
2099 case "$ac_dir" in
2100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2101 *)
2102   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2103   # A ".." for each directory in $ac_dir_suffix.
2104   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2105   case $ac_top_builddir_sub in
2106   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2107   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2108   esac ;;
2109 esac
2110 ac_abs_top_builddir=$ac_pwd
2111 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2112 # for backward compatibility:
2113 ac_top_builddir=$ac_top_build_prefix
2114
2115 case $srcdir in
2116   .)  # We are building in place.
2117     ac_srcdir=.
2118     ac_top_srcdir=$ac_top_builddir_sub
2119     ac_abs_top_srcdir=$ac_pwd ;;
2120   [\\/]* | ?:[\\/]* )  # Absolute name.
2121     ac_srcdir=$srcdir$ac_dir_suffix;
2122     ac_top_srcdir=$srcdir
2123     ac_abs_top_srcdir=$srcdir ;;
2124   *) # Relative name.
2125     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2126     ac_top_srcdir=$ac_top_build_prefix$srcdir
2127     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2128 esac
2129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2130
2131     cd "$ac_dir" || { ac_status=$?; continue; }
2132     # Check for guested configure.
2133     if test -f "$ac_srcdir/configure.gnu"; then
2134       echo &&
2135       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2136     elif test -f "$ac_srcdir/configure"; then
2137       echo &&
2138       $SHELL "$ac_srcdir/configure" --help=recursive
2139     else
2140       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2141     fi || ac_status=$?
2142     cd "$ac_pwd" || { ac_status=$?; break; }
2143   done
2144 fi
2145
2146 test -n "$ac_init_help" && exit $ac_status
2147 if $ac_init_version; then
2148   cat <<\_ACEOF
2149 wxWidgets configure 2.9.3
2150 generated by GNU Autoconf 2.61
2151
2152 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2153 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2154 This configure script is free software; the Free Software Foundation
2155 gives unlimited permission to copy, distribute and modify it.
2156 _ACEOF
2157   exit
2158 fi
2159 cat >config.log <<_ACEOF
2160 This file contains any messages produced by compilers while
2161 running configure, to aid debugging if configure makes a mistake.
2162
2163 It was created by wxWidgets $as_me 2.9.3, which was
2164 generated by GNU Autoconf 2.61.  Invocation command line was
2165
2166   $ $0 $@
2167
2168 _ACEOF
2169 exec 5>>config.log
2170 {
2171 cat <<_ASUNAME
2172 ## --------- ##
2173 ## Platform. ##
2174 ## --------- ##
2175
2176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181
2182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2184
2185 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2186 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2189 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2190 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2191 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2192
2193 _ASUNAME
2194
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198   IFS=$as_save_IFS
2199   test -z "$as_dir" && as_dir=.
2200   echo "PATH: $as_dir"
2201 done
2202 IFS=$as_save_IFS
2203
2204 } >&5
2205
2206 cat >&5 <<_ACEOF
2207
2208
2209 ## ----------- ##
2210 ## Core tests. ##
2211 ## ----------- ##
2212
2213 _ACEOF
2214
2215
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2221 ac_configure_args=
2222 ac_configure_args0=
2223 ac_configure_args1=
2224 ac_must_keep_next=false
2225 for ac_pass in 1 2
2226 do
2227   for ac_arg
2228   do
2229     case $ac_arg in
2230     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232     | -silent | --silent | --silen | --sile | --sil)
2233       continue ;;
2234     *\'*)
2235       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236     esac
2237     case $ac_pass in
2238     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2239     2)
2240       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2241       if test $ac_must_keep_next = true; then
2242         ac_must_keep_next=false # Got value, back to normal.
2243       else
2244         case $ac_arg in
2245           *=* | --config-cache | -C | -disable-* | --disable-* \
2246           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248           | -with-* | --with-* | -without-* | --without-* | --x)
2249             case "$ac_configure_args0 " in
2250               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251             esac
2252             ;;
2253           -* ) ac_must_keep_next=true ;;
2254         esac
2255       fi
2256       ac_configure_args="$ac_configure_args '$ac_arg'"
2257       ;;
2258     esac
2259   done
2260 done
2261 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2262 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2263
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log.  We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2270   # Save into config.log some information that might help in debugging.
2271   {
2272     echo
2273
2274     cat <<\_ASBOX
2275 ## ---------------- ##
2276 ## Cache variables. ##
2277 ## ---------------- ##
2278 _ASBOX
2279     echo
2280     # The following way of writing the cache mishandles newlines in values,
2281 (
2282   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2283     eval ac_val=\$$ac_var
2284     case $ac_val in #(
2285     *${as_nl}*)
2286       case $ac_var in #(
2287       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2288 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2289       esac
2290       case $ac_var in #(
2291       _ | IFS | as_nl) ;; #(
2292       *) $as_unset $ac_var ;;
2293       esac ;;
2294     esac
2295   done
2296   (set) 2>&1 |
2297     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2298     *${as_nl}ac_space=\ *)
2299       sed -n \
2300         "s/'\''/'\''\\\\'\'''\''/g;
2301           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2302       ;; #(
2303     *)
2304       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2305       ;;
2306     esac |
2307     sort
2308 )
2309     echo
2310
2311     cat <<\_ASBOX
2312 ## ----------------- ##
2313 ## Output variables. ##
2314 ## ----------------- ##
2315 _ASBOX
2316     echo
2317     for ac_var in $ac_subst_vars
2318     do
2319       eval ac_val=\$$ac_var
2320       case $ac_val in
2321       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322       esac
2323       echo "$ac_var='\''$ac_val'\''"
2324     done | sort
2325     echo
2326
2327     if test -n "$ac_subst_files"; then
2328       cat <<\_ASBOX
2329 ## ------------------- ##
2330 ## File substitutions. ##
2331 ## ------------------- ##
2332 _ASBOX
2333       echo
2334       for ac_var in $ac_subst_files
2335       do
2336         eval ac_val=\$$ac_var
2337         case $ac_val in
2338         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339         esac
2340         echo "$ac_var='\''$ac_val'\''"
2341       done | sort
2342       echo
2343     fi
2344
2345     if test -s confdefs.h; then
2346       cat <<\_ASBOX
2347 ## ----------- ##
2348 ## confdefs.h. ##
2349 ## ----------- ##
2350 _ASBOX
2351       echo
2352       cat confdefs.h
2353       echo
2354     fi
2355     test "$ac_signal" != 0 &&
2356       echo "$as_me: caught signal $ac_signal"
2357     echo "$as_me: exit $exit_status"
2358   } >&5
2359   rm -f core *.core core.conftest.* &&
2360     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2361     exit $exit_status
2362 ' 0
2363 for ac_signal in 1 2 13 15; do
2364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2365 done
2366 ac_signal=0
2367
2368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2369 rm -f -r conftest* confdefs.h
2370
2371 # Predefined preprocessor variables.
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_NAME "$PACKAGE_NAME"
2375 _ACEOF
2376
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2380 _ACEOF
2381
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2385 _ACEOF
2386
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_STRING "$PACKAGE_STRING"
2390 _ACEOF
2391
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2395 _ACEOF
2396
2397
2398 # Let the site file select an alternate cache file if it wants to.
2399 # Prefer explicitly selected file to automatically selected ones.
2400 if test -n "$CONFIG_SITE"; then
2401   set x "$CONFIG_SITE"
2402 elif test "x$prefix" != xNONE; then
2403   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2404 else
2405   set x "$ac_default_prefix/share/config.site" \
2406         "$ac_default_prefix/etc/config.site"
2407 fi
2408 shift
2409 for ac_site_file
2410 do
2411   if test -r "$ac_site_file"; then
2412     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2413 echo "$as_me: loading site script $ac_site_file" >&6;}
2414     sed 's/^/| /' "$ac_site_file" >&5
2415     . "$ac_site_file"
2416   fi
2417 done
2418
2419 if test -r "$cache_file"; then
2420   # Some versions of bash will fail to source /dev/null (special
2421   # files actually), so we avoid doing that.
2422   if test -f "$cache_file"; then
2423     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2424 echo "$as_me: loading cache $cache_file" >&6;}
2425     case $cache_file in
2426       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427       *)                      . "./$cache_file";;
2428     esac
2429   fi
2430 else
2431   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2432 echo "$as_me: creating cache $cache_file" >&6;}
2433   >$cache_file
2434 fi
2435
2436 # Check that the precious variables saved in the cache have kept the same
2437 # value.
2438 ac_cache_corrupted=false
2439 for ac_var in $ac_precious_vars; do
2440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441   eval ac_new_set=\$ac_env_${ac_var}_set
2442   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443   eval ac_new_val=\$ac_env_${ac_var}_value
2444   case $ac_old_set,$ac_new_set in
2445     set,)
2446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448       ac_cache_corrupted=: ;;
2449     ,set)
2450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452       ac_cache_corrupted=: ;;
2453     ,);;
2454     *)
2455       if test "x$ac_old_val" != "x$ac_new_val"; then
2456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2459 echo "$as_me:   former value:  $ac_old_val" >&2;}
2460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2461 echo "$as_me:   current value: $ac_new_val" >&2;}
2462         ac_cache_corrupted=:
2463       fi;;
2464   esac
2465   # Pass precious variables to config.status.
2466   if test "$ac_new_set" = set; then
2467     case $ac_new_val in
2468     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2469     *) ac_arg=$ac_var=$ac_new_val ;;
2470     esac
2471     case " $ac_configure_args " in
2472       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2473       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2474     esac
2475   fi
2476 done
2477 if $ac_cache_corrupted; then
2478   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2480   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2482    { (exit 1); exit 1; }; }
2483 fi
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509 ac_ext=c
2510 ac_cpp='$CPP $CPPFLAGS'
2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
2515
2516
2517
2518
2519 ac_aux_dir=
2520 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2521   if test -f "$ac_dir/install-sh"; then
2522     ac_aux_dir=$ac_dir
2523     ac_install_sh="$ac_aux_dir/install-sh -c"
2524     break
2525   elif test -f "$ac_dir/install.sh"; then
2526     ac_aux_dir=$ac_dir
2527     ac_install_sh="$ac_aux_dir/install.sh -c"
2528     break
2529   elif test -f "$ac_dir/shtool"; then
2530     ac_aux_dir=$ac_dir
2531     ac_install_sh="$ac_aux_dir/shtool install -c"
2532     break
2533   fi
2534 done
2535 if test -z "$ac_aux_dir"; then
2536   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2537 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2538    { (exit 1); exit 1; }; }
2539 fi
2540
2541 # These three variables are undocumented and unsupported,
2542 # and are intended to be withdrawn in a future Autoconf release.
2543 # They can cause serious problems if a builder's source tree is in a directory
2544 # whose full name contains unusual characters.
2545 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2546 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2547 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2548
2549
2550 # Make sure we can run config.sub.
2551 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2552   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2553 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2554    { (exit 1); exit 1; }; }
2555
2556 { echo "$as_me:$LINENO: checking build system type" >&5
2557 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2558 if test "${ac_cv_build+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   ac_build_alias=$build_alias
2562 test "x$ac_build_alias" = x &&
2563   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2564 test "x$ac_build_alias" = x &&
2565   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2566 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2567    { (exit 1); exit 1; }; }
2568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2569   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2570 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2571    { (exit 1); exit 1; }; }
2572
2573 fi
2574 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2575 echo "${ECHO_T}$ac_cv_build" >&6; }
2576 case $ac_cv_build in
2577 *-*-*) ;;
2578 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2579 echo "$as_me: error: invalid value of canonical build" >&2;}
2580    { (exit 1); exit 1; }; };;
2581 esac
2582 build=$ac_cv_build
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_build
2585 shift
2586 build_cpu=$1
2587 build_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 build_os=$*
2592 IFS=$ac_save_IFS
2593 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2594
2595
2596 { echo "$as_me:$LINENO: checking host system type" >&5
2597 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2598 if test "${ac_cv_host+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   if test "x$host_alias" = x; then
2602   ac_cv_host=$ac_cv_build
2603 else
2604   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2605     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2606 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2607    { (exit 1); exit 1; }; }
2608 fi
2609
2610 fi
2611 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2612 echo "${ECHO_T}$ac_cv_host" >&6; }
2613 case $ac_cv_host in
2614 *-*-*) ;;
2615 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2616 echo "$as_me: error: invalid value of canonical host" >&2;}
2617    { (exit 1); exit 1; }; };;
2618 esac
2619 host=$ac_cv_host
2620 ac_save_IFS=$IFS; IFS='-'
2621 set x $ac_cv_host
2622 shift
2623 host_cpu=$1
2624 host_vendor=$2
2625 shift; shift
2626 # Remember, the first character of IFS is used to create $*,
2627 # except with old shells:
2628 host_os=$*
2629 IFS=$ac_save_IFS
2630 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2631
2632
2633
2634 if test "$cross_compiling" != "no"; then
2635     HOST_PREFIX="${host_alias}-"
2636     HOST_SUFFIX="-$host_alias"
2637 else
2638     HOST_PREFIX=
2639     HOST_SUFFIX=
2640 fi
2641
2642
2643 wx_major_version_number=2
2644 wx_minor_version_number=9
2645 wx_release_number=3
2646 wx_subrelease_number=0
2647
2648 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2649 WX_VERSION=$WX_RELEASE.$wx_release_number
2650 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2651
2652 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2653
2654
2655 wx_top_builddir="`pwd`"
2656
2657
2658
2659
2660 USE_UNIX=1
2661 USE_OS2=0
2662 USE_WIN32=0
2663 USE_DOS=0
2664 USE_BEOS=0
2665 USE_MAC=0
2666
2667 USE_AIX=
2668 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2669 USE_GNU=                            USE_HPUX=
2670 USE_LINUX=
2671 USE_NETBSD=
2672 USE_OPENBSD=
2673 USE_OSF=                            USE_SGI=
2674 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2675 USE_ULTRIX=
2676 USE_UNIXWARE=
2677
2678 USE_ALPHA=
2679
2680 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2681
2682 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2683
2684 DEFAULT_wxUSE_OLD_COCOA=0
2685 DEFAULT_wxUSE_GTK=0
2686 DEFAULT_wxUSE_OSX_CARBON=0
2687 DEFAULT_wxUSE_OSX_COCOA=0
2688 DEFAULT_wxUSE_OSX_IPHONE=0
2689 DEFAULT_wxUSE_MGL=0
2690 DEFAULT_wxUSE_MICROWIN=0
2691 DEFAULT_wxUSE_MOTIF=0
2692 DEFAULT_wxUSE_MSW=0
2693 DEFAULT_wxUSE_PM=0
2694 DEFAULT_wxUSE_X11=0
2695 DEFAULT_wxUSE_DFB=0
2696
2697 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2698 DEFAULT_DEFAULT_wxUSE_GTK=0
2699 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2700 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2701 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2702 DEFAULT_DEFAULT_wxUSE_MGL=0
2703 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2704 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2705 DEFAULT_DEFAULT_wxUSE_MSW=0
2706 DEFAULT_DEFAULT_wxUSE_PM=0
2707 DEFAULT_DEFAULT_wxUSE_X11=0
2708 DEFAULT_DEFAULT_wxUSE_DFB=0
2709
2710 PROGRAM_EXT=
2711 SAMPLES_RPATH_FLAG=
2712 DYLIB_RPATH_INSTALL=
2713 DYLIB_RPATH_POSTLINK=
2714
2715 DEFAULT_STD_FLAG=yes
2716
2717 case "${host}" in
2718   *-hp-hpux* )
2719     USE_HPUX=1
2720     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2721     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2722     cat >>confdefs.h <<\_ACEOF
2723 #define __HPUX__ 1
2724 _ACEOF
2725
2726
2727             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2728   ;;
2729   *-*-linux* )
2730     USE_LINUX=1
2731     cat >>confdefs.h <<\_ACEOF
2732 #define __LINUX__ 1
2733 _ACEOF
2734
2735     TMP=`uname -m`
2736     if test "x$TMP" = "xalpha"; then
2737       USE_ALPHA=1
2738       cat >>confdefs.h <<\_ACEOF
2739 #define __ALPHA__ 1
2740 _ACEOF
2741
2742     fi
2743     DEFAULT_DEFAULT_wxUSE_GTK=1
2744   ;;
2745   *-*-gnu* | *-*-k*bsd*-gnu )
2746     USE_GNU=1
2747     TMP=`uname -m`
2748     if test "x$TMP" = "xalpha"; then
2749       USE_ALPHA=1
2750       cat >>confdefs.h <<\_ACEOF
2751 #define __ALPHA__ 1
2752 _ACEOF
2753
2754     fi
2755     DEFAULT_DEFAULT_wxUSE_GTK=1
2756   ;;
2757   *-*-irix5* | *-*-irix6* )
2758     USE_SGI=1
2759     USE_SVR4=1
2760     cat >>confdefs.h <<\_ACEOF
2761 #define __SGI__ 1
2762 _ACEOF
2763
2764     cat >>confdefs.h <<\_ACEOF
2765 #define __SVR4__ 1
2766 _ACEOF
2767
2768     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2769   ;;
2770   *-*-qnx*)
2771     USE_QNX=1
2772     cat >>confdefs.h <<\_ACEOF
2773 #define __QNX__ 1
2774 _ACEOF
2775
2776     DEFAULT_DEFAULT_wxUSE_X11=1
2777   ;;
2778   *-*-solaris2* )
2779     USE_SUN=1
2780     USE_SOLARIS=1
2781     USE_SVR4=1
2782     cat >>confdefs.h <<\_ACEOF
2783 #define __SUN__ 1
2784 _ACEOF
2785
2786     cat >>confdefs.h <<\_ACEOF
2787 #define __SOLARIS__ 1
2788 _ACEOF
2789
2790     cat >>confdefs.h <<\_ACEOF
2791 #define __SVR4__ 1
2792 _ACEOF
2793
2794     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2795     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2796   ;;
2797   *-*-sunos4* )
2798     USE_SUN=1
2799     USE_SUNOS=1
2800     USE_BSD=1
2801     cat >>confdefs.h <<\_ACEOF
2802 #define __SUN__ 1
2803 _ACEOF
2804
2805     cat >>confdefs.h <<\_ACEOF
2806 #define __SUNOS__ 1
2807 _ACEOF
2808
2809     cat >>confdefs.h <<\_ACEOF
2810 #define __BSD__ 1
2811 _ACEOF
2812
2813     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2814   ;;
2815   *-*-freebsd*)
2816     USE_BSD=1
2817     USE_FREEBSD=1
2818     cat >>confdefs.h <<\_ACEOF
2819 #define __FREEBSD__ 1
2820 _ACEOF
2821
2822     cat >>confdefs.h <<\_ACEOF
2823 #define __BSD__ 1
2824 _ACEOF
2825
2826     DEFAULT_DEFAULT_wxUSE_GTK=1
2827   ;;
2828   *-*-openbsd*|*-*-mirbsd*)
2829     USE_BSD=1
2830     USE_OPENBSD=1
2831     cat >>confdefs.h <<\_ACEOF
2832 #define __OPENBSD__ 1
2833 _ACEOF
2834
2835     cat >>confdefs.h <<\_ACEOF
2836 #define __BSD__ 1
2837 _ACEOF
2838
2839     DEFAULT_DEFAULT_wxUSE_GTK=1
2840   ;;
2841   *-*-netbsd*)
2842     USE_BSD=1
2843     USE_NETBSD=1
2844     cat >>confdefs.h <<\_ACEOF
2845 #define __NETBSD__ 1
2846 _ACEOF
2847
2848     cat >>confdefs.h <<\_ACEOF
2849 #define __BSD__ 1
2850 _ACEOF
2851
2852     DEFAULT_DEFAULT_wxUSE_GTK=1
2853     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2854
2855             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2856   ;;
2857   *-*-osf* )
2858     USE_ALPHA=1
2859     USE_OSF=1
2860     cat >>confdefs.h <<\_ACEOF
2861 #define __ALPHA__ 1
2862 _ACEOF
2863
2864     cat >>confdefs.h <<\_ACEOF
2865 #define __OSF__ 1
2866 _ACEOF
2867
2868     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2869     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2870   ;;
2871   *-*-dgux5* )
2872     USE_ALPHA=1
2873     USE_SVR4=1
2874     cat >>confdefs.h <<\_ACEOF
2875 #define __ALPHA__ 1
2876 _ACEOF
2877
2878     cat >>confdefs.h <<\_ACEOF
2879 #define __SVR4__ 1
2880 _ACEOF
2881
2882     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2883   ;;
2884   *-*-sysv5* )
2885     USE_SYSV=1
2886     USE_SVR4=1
2887     cat >>confdefs.h <<\_ACEOF
2888 #define __SYSV__ 1
2889 _ACEOF
2890
2891     cat >>confdefs.h <<\_ACEOF
2892 #define __SVR4__ 1
2893 _ACEOF
2894
2895     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2896   ;;
2897   *-*-aix* )
2898     USE_AIX=1
2899     USE_SYSV=1
2900     USE_SVR4=1
2901     cat >>confdefs.h <<\_ACEOF
2902 #define __AIX__ 1
2903 _ACEOF
2904
2905     cat >>confdefs.h <<\_ACEOF
2906 #define __SYSV__ 1
2907 _ACEOF
2908
2909     cat >>confdefs.h <<\_ACEOF
2910 #define __SVR4__ 1
2911 _ACEOF
2912
2913     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2914   ;;
2915
2916   *-*-*UnixWare*)
2917     USE_SYSV=1
2918     USE_SVR4=1
2919     USE_UNIXWARE=1
2920     cat >>confdefs.h <<\_ACEOF
2921 #define __UNIXWARE__ 1
2922 _ACEOF
2923
2924   ;;
2925
2926   *-*-cygwin* | *-*-mingw32* )
2927                 PROGRAM_EXT=".exe"
2928     DEFAULT_DEFAULT_wxUSE_MSW=1
2929   ;;
2930
2931   *-pc-msdosdjgpp )
2932     USE_UNIX=0
2933     USE_DOS=1
2934     cat >>confdefs.h <<\_ACEOF
2935 #define __DOS__ 1
2936 _ACEOF
2937
2938     PROGRAM_EXT=".exe"
2939     DEFAULT_DEFAULT_wxUSE_MGL=1
2940   ;;
2941
2942   *-pc-os2_emx | *-pc-os2-emx )
2943     cat >>confdefs.h <<\_ACEOF
2944 #define __EMX__ 1
2945 _ACEOF
2946
2947     USE_OS2=1
2948     cat >>confdefs.h <<\_ACEOF
2949 #define __OS2__ 1
2950 _ACEOF
2951
2952     PROGRAM_EXT=".exe"
2953     DEFAULT_DEFAULT_wxUSE_PM=1
2954         CXX=gcc
2955     LDFLAGS="$LDFLAGS -Zcrtdll"
2956                         ac_executable_extensions=".exe"
2957     export ac_executable_extensions
2958             ac_save_IFS="$IFS"
2959     IFS='\\'
2960     ac_TEMP_PATH=
2961     for ac_dir in $PATH; do
2962       IFS=$ac_save_IFS
2963       if test -z "$ac_TEMP_PATH"; then
2964         ac_TEMP_PATH="$ac_dir"
2965       else
2966         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2967       fi
2968     done
2969     export PATH="$ac_TEMP_PATH"
2970     unset ac_TEMP_PATH
2971     DEFAULT_STD_FLAG=no
2972   ;;
2973
2974   arm-apple-darwin*)
2975         USE_BSD=1
2976     USE_DARWIN=1
2977     cat >>confdefs.h <<\_ACEOF
2978 #define __BSD__ 1
2979 _ACEOF
2980
2981     cat >>confdefs.h <<\_ACEOF
2982 #define __DARWIN__ 1
2983 _ACEOF
2984
2985     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2986   ;;
2987
2988   *-*-darwin* )
2989         USE_BSD=1
2990     USE_DARWIN=1
2991     cat >>confdefs.h <<\_ACEOF
2992 #define __BSD__ 1
2993 _ACEOF
2994
2995     cat >>confdefs.h <<\_ACEOF
2996 #define __DARWIN__ 1
2997 _ACEOF
2998
2999     cat >>confdefs.h <<\_ACEOF
3000 #define TARGET_CARBON 1
3001 _ACEOF
3002
3003     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
3004   ;;
3005
3006   *-*-beos* )
3007         USE_BEOS=1
3008     cat >>confdefs.h <<\_ACEOF
3009 #define __BEOS__ 1
3010 _ACEOF
3011
3012   ;;
3013
3014   *)
3015     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
3016 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
3017     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
3018 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
3019
3020     DEFAULT_DEFAULT_wxUSE_X11=1
3021     DEFAULT_wxUSE_SHARED=no
3022 esac
3023
3024
3025
3026 DEFAULT_wxUSE_ALL_FEATURES=yes
3027
3028 DEFAULT_wxUSE_STD_CONTAINERS=no
3029 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
3030 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
3031
3032 DEFAULT_wxUSE_DMALLOC=no
3033 DEFAULT_wxUSE_LIBGNOMEVFS=no
3034 DEFAULT_wxUSE_LIBHILDON=no
3035 DEFAULT_wxUSE_LIBHILDON2=no
3036 DEFAULT_wxUSE_LIBMSPACK=no
3037 DEFAULT_wxUSE_LIBSDL=no
3038
3039 DEFAULT_wxUSE_ACCESSIBILITY=no
3040 DEFAULT_wxUSE_IPV6=no
3041 DEFAULT_wxUSE_GSTREAMER8=no
3042
3043 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
3044 DEFAULT_wxUSE_UNICODE_UTF8=auto
3045 DEFAULT_wxUSE_OPENGL=auto
3046 DEFAULT_wxUSE_MEDIACTRL=auto
3047 DEFAULT_wxUSE_COMPILER_TLS=auto
3048 DEFAULT_wxUSE_HOTKEY=auto
3049 DEFAULT_wxUSE_METAFILE=auto
3050
3051 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
3052
3053 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3054 DEFAULT_wxUSE_MAC_ARCH=no
3055
3056 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3057
3058 DEFAULT_wxUSE_GTK2=yes
3059
3060 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3061
3062
3063
3064
3065
3066           enablestring=disable
3067           defaultval=
3068           if test -z "$defaultval"; then
3069               if test x"$enablestring" = xdisable; then
3070                   defaultval=yes
3071               else
3072                   defaultval=no
3073               fi
3074           fi
3075
3076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3077 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3078           # Check whether --enable-gui was given.
3079 if test "${enable_gui+set}" = set; then
3080   enableval=$enable_gui;
3081                           if test "$enableval" = yes; then
3082                             wx_cv_use_gui='wxUSE_GUI=yes'
3083                           else
3084                             wx_cv_use_gui='wxUSE_GUI=no'
3085                           fi
3086
3087 else
3088
3089                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3090
3091 fi
3092
3093
3094           eval "$wx_cv_use_gui"
3095
3096           if test x"$enablestring" = xdisable; then
3097             if test $wxUSE_GUI = no; then
3098               result=yes
3099             else
3100               result=no
3101             fi
3102           else
3103             result=$wxUSE_GUI
3104           fi
3105
3106           { echo "$as_me:$LINENO: result: $result" >&5
3107 echo "${ECHO_T}$result" >&6; }
3108
3109
3110           enablestring=
3111           defaultval=
3112           if test -z "$defaultval"; then
3113               if test x"$enablestring" = xdisable; then
3114                   defaultval=yes
3115               else
3116                   defaultval=no
3117               fi
3118           fi
3119
3120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3121 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3122           # Check whether --enable-monolithic was given.
3123 if test "${enable_monolithic+set}" = set; then
3124   enableval=$enable_monolithic;
3125                           if test "$enableval" = yes; then
3126                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3127                           else
3128                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3129                           fi
3130
3131 else
3132
3133                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3134
3135 fi
3136
3137
3138           eval "$wx_cv_use_monolithic"
3139
3140           if test x"$enablestring" = xdisable; then
3141             if test $wxUSE_MONOLITHIC = no; then
3142               result=yes
3143             else
3144               result=no
3145             fi
3146           else
3147             result=$wxUSE_MONOLITHIC
3148           fi
3149
3150           { echo "$as_me:$LINENO: result: $result" >&5
3151 echo "${ECHO_T}$result" >&6; }
3152
3153
3154           enablestring=
3155           defaultval=
3156           if test -z "$defaultval"; then
3157               if test x"$enablestring" = xdisable; then
3158                   defaultval=yes
3159               else
3160                   defaultval=no
3161               fi
3162           fi
3163
3164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3165 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3166           # Check whether --enable-plugins was given.
3167 if test "${enable_plugins+set}" = set; then
3168   enableval=$enable_plugins;
3169                           if test "$enableval" = yes; then
3170                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3171                           else
3172                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3173                           fi
3174
3175 else
3176
3177                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3178
3179 fi
3180
3181
3182           eval "$wx_cv_use_plugins"
3183
3184           if test x"$enablestring" = xdisable; then
3185             if test $wxUSE_PLUGINS = no; then
3186               result=yes
3187             else
3188               result=no
3189             fi
3190           else
3191             result=$wxUSE_PLUGINS
3192           fi
3193
3194           { echo "$as_me:$LINENO: result: $result" >&5
3195 echo "${ECHO_T}$result" >&6; }
3196
3197
3198           withstring=without
3199           defaultval=$wxUSE_ALL_FEATURES
3200           if test -z "$defaultval"; then
3201               if test x"$withstring" = xwithout; then
3202                   defaultval=yes
3203               else
3204                   defaultval=no
3205               fi
3206           fi
3207           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3208 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3209
3210 # Check whether --with-subdirs was given.
3211 if test "${with_subdirs+set}" = set; then
3212   withval=$with_subdirs;
3213                         if test "$withval" = yes; then
3214                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3215                         else
3216                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3217                         fi
3218
3219 else
3220
3221                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3222
3223 fi
3224
3225
3226           eval "$wx_cv_use_subdirs"
3227
3228           if test x"$withstring" = xwithout; then
3229             if test $wxWITH_SUBDIRS = yes; then
3230               result=no
3231             else
3232               result=yes
3233             fi
3234           else
3235             result=$wxWITH_SUBDIRS
3236           fi
3237
3238           { echo "$as_me:$LINENO: result: $result" >&5
3239 echo "${ECHO_T}$result" >&6; }
3240
3241
3242 # Check whether --with-flavour was given.
3243 if test "${with_flavour+set}" = set; then
3244   withval=$with_flavour; WX_FLAVOUR="$withval"
3245 fi
3246
3247
3248           enablestring=
3249           defaultval=
3250           if test -z "$defaultval"; then
3251               if test x"$enablestring" = xdisable; then
3252                   defaultval=yes
3253               else
3254                   defaultval=no
3255               fi
3256           fi
3257
3258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3259 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3260           # Check whether --enable-official_build was given.
3261 if test "${enable_official_build+set}" = set; then
3262   enableval=$enable_official_build;
3263                           if test "$enableval" = yes; then
3264                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3265                           else
3266                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3267                           fi
3268
3269 else
3270
3271                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3272
3273 fi
3274
3275
3276           eval "$wx_cv_use_official_build"
3277
3278           if test x"$enablestring" = xdisable; then
3279             if test $wxUSE_OFFICIAL_BUILD = no; then
3280               result=yes
3281             else
3282               result=no
3283             fi
3284           else
3285             result=$wxUSE_OFFICIAL_BUILD
3286           fi
3287
3288           { echo "$as_me:$LINENO: result: $result" >&5
3289 echo "${ECHO_T}$result" >&6; }
3290
3291 # Check whether --enable-vendor was given.
3292 if test "${enable_vendor+set}" = set; then
3293   enableval=$enable_vendor; VENDOR="$enableval"
3294 fi
3295
3296 if test "x$VENDOR" = "x"; then
3297     VENDOR="custom"
3298 fi
3299
3300
3301           enablestring=disable
3302           defaultval=
3303           if test -z "$defaultval"; then
3304               if test x"$enablestring" = xdisable; then
3305                   defaultval=yes
3306               else
3307                   defaultval=no
3308               fi
3309           fi
3310
3311           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3312 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3313           # Check whether --enable-all-features was given.
3314 if test "${enable_all_features+set}" = set; then
3315   enableval=$enable_all_features;
3316                           if test "$enableval" = yes; then
3317                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3318                           else
3319                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3320                           fi
3321
3322 else
3323
3324                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3325
3326 fi
3327
3328
3329           eval "$wx_cv_use_all_features"
3330
3331           if test x"$enablestring" = xdisable; then
3332             if test $wxUSE_ALL_FEATURES = no; then
3333               result=yes
3334             else
3335               result=no
3336             fi
3337           else
3338             result=$wxUSE_ALL_FEATURES
3339           fi
3340
3341           { echo "$as_me:$LINENO: result: $result" >&5
3342 echo "${ECHO_T}$result" >&6; }
3343
3344
3345 if test "$wxUSE_ALL_FEATURES" = "no"; then
3346                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3347     DEFAULT_wxUSE_MEDIACTRL=no
3348 fi
3349
3350
3351 if test "$wxUSE_GUI" = "yes"; then
3352
3353
3354           enablestring=
3355           defaultval=
3356           if test -z "$defaultval"; then
3357               if test x"$enablestring" = xdisable; then
3358                   defaultval=yes
3359               else
3360                   defaultval=no
3361               fi
3362           fi
3363
3364           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3365 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3366           # Check whether --enable-universal was given.
3367 if test "${enable_universal+set}" = set; then
3368   enableval=$enable_universal;
3369                           if test "$enableval" = yes; then
3370                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3371                           else
3372                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3373                           fi
3374
3375 else
3376
3377                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3378
3379 fi
3380
3381
3382           eval "$wx_cv_use_universal"
3383
3384           if test x"$enablestring" = xdisable; then
3385             if test $wxUSE_UNIVERSAL = no; then
3386               result=yes
3387             else
3388               result=no
3389             fi
3390           else
3391             result=$wxUSE_UNIVERSAL
3392           fi
3393
3394           { echo "$as_me:$LINENO: result: $result" >&5
3395 echo "${ECHO_T}$result" >&6; }
3396
3397 if test "$wxUSE_UNIVERSAL" = "yes"; then
3398
3399 # Check whether --with-themes was given.
3400 if test "${with_themes+set}" = set; then
3401   withval=$with_themes; wxUNIV_THEMES="$withval"
3402 fi
3403
3404 fi
3405
3406
3407 # Check whether --with-gtk was given.
3408 if test "${with_gtk+set}" = set; then
3409   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3410 fi
3411
3412
3413 # Check whether --with-motif was given.
3414 if test "${with_motif+set}" = set; then
3415   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3416 fi
3417
3418
3419 # Check whether --with-osx_carbon was given.
3420 if test "${with_osx_carbon+set}" = set; then
3421   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3422 fi
3423
3424
3425 # Check whether --with-osx_cocoa was given.
3426 if test "${with_osx_cocoa+set}" = set; then
3427   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3428 fi
3429
3430
3431 # Check whether --with-osx_iphone was given.
3432 if test "${with_osx_iphone+set}" = set; then
3433   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3434 fi
3435
3436
3437 # Check whether --with-osx was given.
3438 if test "${with_osx+set}" = set; then
3439   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3440 fi
3441
3442
3443 # Check whether --with-carbon was given.
3444 if test "${with_carbon+set}" = set; then
3445   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3446 fi
3447
3448
3449 # Check whether --with-cocoa was given.
3450 if test "${with_cocoa+set}" = set; then
3451   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3452 fi
3453
3454
3455 # Check whether --with-iphone was given.
3456 if test "${with_iphone+set}" = set; then
3457   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3458 fi
3459
3460
3461 # Check whether --with-mac was given.
3462 if test "${with_mac+set}" = set; then
3463   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3464 fi
3465
3466
3467 # Check whether --with-old_cocoa was given.
3468 if test "${with_old_cocoa+set}" = set; then
3469   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3470 fi
3471
3472
3473 # Check whether --with-wine was given.
3474 if test "${with_wine+set}" = set; then
3475   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3476 fi
3477
3478
3479 # Check whether --with-msw was given.
3480 if test "${with_msw+set}" = set; then
3481   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3482 fi
3483
3484
3485 # Check whether --with-pm was given.
3486 if test "${with_pm+set}" = set; then
3487   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3488 fi
3489
3490
3491 # Check whether --with-mgl was given.
3492 if test "${with_mgl+set}" = set; then
3493   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3494 fi
3495
3496
3497 # Check whether --with-directfb was given.
3498 if test "${with_directfb+set}" = set; then
3499   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3500 fi
3501
3502
3503 # Check whether --with-microwin was given.
3504 if test "${with_microwin+set}" = set; then
3505   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3506 fi
3507
3508
3509 # Check whether --with-x11 was given.
3510 if test "${with_x11+set}" = set; then
3511   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3512 fi
3513
3514
3515           enablestring=
3516           defaultval=
3517           if test -z "$defaultval"; then
3518               if test x"$enablestring" = xdisable; then
3519                   defaultval=yes
3520               else
3521                   defaultval=no
3522               fi
3523           fi
3524
3525           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3526 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3527           # Check whether --enable-nanox was given.
3528 if test "${enable_nanox+set}" = set; then
3529   enableval=$enable_nanox;
3530                           if test "$enableval" = yes; then
3531                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3532                           else
3533                             wx_cv_use_nanox='wxUSE_NANOX=no'
3534                           fi
3535
3536 else
3537
3538                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3539
3540 fi
3541
3542
3543           eval "$wx_cv_use_nanox"
3544
3545           if test x"$enablestring" = xdisable; then
3546             if test $wxUSE_NANOX = no; then
3547               result=yes
3548             else
3549               result=no
3550             fi
3551           else
3552             result=$wxUSE_NANOX
3553           fi
3554
3555           { echo "$as_me:$LINENO: result: $result" >&5
3556 echo "${ECHO_T}$result" >&6; }
3557
3558
3559 # Check whether --enable-gtk2 was given.
3560 if test "${enable_gtk2+set}" = set; then
3561   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3562 fi
3563
3564
3565           enablestring=
3566           defaultval=
3567           if test -z "$defaultval"; then
3568               if test x"$enablestring" = xdisable; then
3569                   defaultval=yes
3570               else
3571                   defaultval=no
3572               fi
3573           fi
3574
3575           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3576 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3577           # Check whether --enable-gpe was given.
3578 if test "${enable_gpe+set}" = set; then
3579   enableval=$enable_gpe;
3580                           if test "$enableval" = yes; then
3581                             wx_cv_use_gpe='wxUSE_GPE=yes'
3582                           else
3583                             wx_cv_use_gpe='wxUSE_GPE=no'
3584                           fi
3585
3586 else
3587
3588                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3589
3590 fi
3591
3592
3593           eval "$wx_cv_use_gpe"
3594
3595           if test x"$enablestring" = xdisable; then
3596             if test $wxUSE_GPE = no; then
3597               result=yes
3598             else
3599               result=no
3600             fi
3601           else
3602             result=$wxUSE_GPE
3603           fi
3604
3605           { echo "$as_me:$LINENO: result: $result" >&5
3606 echo "${ECHO_T}$result" >&6; }
3607
3608
3609
3610 { echo "$as_me:$LINENO: checking for toolkit" >&5
3611 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3612
3613
3614
3615 # In Wine, we need to default to MSW, not GTK or MOTIF
3616 if test "$wxUSE_WINE" = "yes"; then
3617     DEFAULT_DEFAULT_wxUSE_GTK=0
3618     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3619     DEFAULT_DEFAULT_wxUSE_MSW=1
3620     wxUSE_SHARED=no
3621     CC=${CC:-winegcc}
3622     CXX=${CXX:-wineg++}
3623 fi
3624
3625
3626 if test "$wxUSE_GUI" = "yes"; then
3627
3628     if test "$USE_BEOS" = 1; then
3629         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3630 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3631    { (exit 1); exit 1; }; }
3632     fi
3633
3634     if test "$TOOLKIT_GIVEN" = 1; then
3635             for toolkit in $ALL_TOOLKITS; do
3636         var=wxUSE_$toolkit
3637         eval "value=\$${var}"
3638         if test "x$value" = "xno"; then
3639           eval "$var=0"
3640         elif test "x$value" != "x"; then
3641           eval "$var=1"
3642         fi
3643
3644         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3645           eval "wx${toolkit}_VERSION=$value"
3646         fi
3647       done
3648     else
3649             for toolkit in $ALL_TOOLKITS; do
3650         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3651         eval "wxUSE_$toolkit=\$${var}"
3652       done
3653     fi
3654
3655             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3656                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3657                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3658
3659         case "${host}" in
3660       *-pc-os2_emx | *-pc-os2-emx )
3661         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3662     esac
3663
3664     case "$NUM_TOOLKITS" in
3665       1)
3666       ;;
3667       0)
3668         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3669 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3670    { (exit 1); exit 1; }; }
3671       ;;
3672       *)
3673         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3674 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3675    { (exit 1); exit 1; }; }
3676     esac
3677
3678     # to be removed when --disable-gtk2 isn't needed
3679     if test "x$wxUSE_GTK2" = "xyes"; then
3680         wxGTK_VERSION=2
3681         wxUSE_GTK1=0
3682     elif test "x$wxUSE_GTK2" = "xno"; then
3683         wxGTK_VERSION=1
3684         wxUSE_GTK1=1
3685     fi
3686
3687     for toolkit in $ALL_TOOLKITS; do
3688         var=wxUSE_$toolkit
3689         eval "value=\$${var}"
3690         if test "$value" = 1; then
3691           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3692           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3693 echo "${ECHO_T}$toolkit_echo" >&6; }
3694         fi
3695     done
3696 else
3697     if test "x$host_alias" != "x"; then
3698         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3699 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3700     else
3701         { echo "$as_me:$LINENO: result: base only" >&5
3702 echo "${ECHO_T}base only" >&6; }
3703     fi
3704 fi
3705
3706 wxUSE_MAC=0
3707 if test "$wxUSE_OSX_CARBON" = 1 \
3708        -o "$wxUSE_OSX_COCOA" = 1 \
3709        -o "$wxUSE_OSX_IPHONE" = 1; then
3710     wxUSE_MAC=1
3711 fi
3712
3713
3714
3715           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3716 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3717
3718 # Check whether --with-libpng was given.
3719 if test "${with_libpng+set}" = set; then
3720   withval=$with_libpng;
3721                         if test "$withval" = yes; then
3722                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3723                         elif test "$withval" = no; then
3724                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3725                         elif test "$withval" = sys; then
3726                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3727                         elif test "$withval" = builtin; then
3728                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3729                         else
3730                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3731 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3732    { (exit 1); exit 1; }; }
3733                         fi
3734
3735 else
3736
3737                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3738
3739 fi
3740
3741
3742           eval "$wx_cv_use_libpng"
3743
3744           if test "$wxUSE_LIBPNG" = yes; then
3745             { echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6; }
3747           elif test "$wxUSE_LIBPNG" = no; then
3748             { echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6; }
3750           elif test "$wxUSE_LIBPNG" = sys; then
3751             { echo "$as_me:$LINENO: result: system version" >&5
3752 echo "${ECHO_T}system version" >&6; }
3753           elif test "$wxUSE_LIBPNG" = builtin; then
3754             { echo "$as_me:$LINENO: result: builtin version" >&5
3755 echo "${ECHO_T}builtin version" >&6; }
3756           else
3757             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3758 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3759    { (exit 1); exit 1; }; }
3760           fi
3761
3762
3763           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3764 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3765
3766 # Check whether --with-libjpeg was given.
3767 if test "${with_libjpeg+set}" = set; then
3768   withval=$with_libjpeg;
3769                         if test "$withval" = yes; then
3770                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3771                         elif test "$withval" = no; then
3772                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3773                         elif test "$withval" = sys; then
3774                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3775                         elif test "$withval" = builtin; then
3776                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3777                         else
3778                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3779 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3780    { (exit 1); exit 1; }; }
3781                         fi
3782
3783 else
3784
3785                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3786
3787 fi
3788
3789
3790           eval "$wx_cv_use_libjpeg"
3791
3792           if test "$wxUSE_LIBJPEG" = yes; then
3793             { echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6; }
3795           elif test "$wxUSE_LIBJPEG" = no; then
3796             { echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6; }
3798           elif test "$wxUSE_LIBJPEG" = sys; then
3799             { echo "$as_me:$LINENO: result: system version" >&5
3800 echo "${ECHO_T}system version" >&6; }
3801           elif test "$wxUSE_LIBJPEG" = builtin; then
3802             { echo "$as_me:$LINENO: result: builtin version" >&5
3803 echo "${ECHO_T}builtin version" >&6; }
3804           else
3805             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3806 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3807    { (exit 1); exit 1; }; }
3808           fi
3809
3810
3811           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3812 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3813
3814 # Check whether --with-libtiff was given.
3815 if test "${with_libtiff+set}" = set; then
3816   withval=$with_libtiff;
3817                         if test "$withval" = yes; then
3818                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3819                         elif test "$withval" = no; then
3820                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3821                         elif test "$withval" = sys; then
3822                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3823                         elif test "$withval" = builtin; then
3824                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3825                         else
3826                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3827 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3828    { (exit 1); exit 1; }; }
3829                         fi
3830
3831 else
3832
3833                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3834
3835 fi
3836
3837
3838           eval "$wx_cv_use_libtiff"
3839
3840           if test "$wxUSE_LIBTIFF" = yes; then
3841             { echo "$as_me:$LINENO: result: yes" >&5
3842 echo "${ECHO_T}yes" >&6; }
3843           elif test "$wxUSE_LIBTIFF" = no; then
3844             { echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6; }
3846           elif test "$wxUSE_LIBTIFF" = sys; then
3847             { echo "$as_me:$LINENO: result: system version" >&5
3848 echo "${ECHO_T}system version" >&6; }
3849           elif test "$wxUSE_LIBTIFF" = builtin; then
3850             { echo "$as_me:$LINENO: result: builtin version" >&5
3851 echo "${ECHO_T}builtin version" >&6; }
3852           else
3853             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3854 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3855    { (exit 1); exit 1; }; }
3856           fi
3857
3858
3859           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3860 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3861
3862 # Check whether --with-libxpm was given.
3863 if test "${with_libxpm+set}" = set; then
3864   withval=$with_libxpm;
3865                         if test "$withval" = yes; then
3866                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3867                         elif test "$withval" = no; then
3868                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3869                         elif test "$withval" = sys; then
3870                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3871                         elif test "$withval" = builtin; then
3872                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3873                         else
3874                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3875 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3876    { (exit 1); exit 1; }; }
3877                         fi
3878
3879 else
3880
3881                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3882
3883 fi
3884
3885
3886           eval "$wx_cv_use_libxpm"
3887
3888           if test "$wxUSE_LIBXPM" = yes; then
3889             { echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6; }
3891           elif test "$wxUSE_LIBXPM" = no; then
3892             { echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6; }
3894           elif test "$wxUSE_LIBXPM" = sys; then
3895             { echo "$as_me:$LINENO: result: system version" >&5
3896 echo "${ECHO_T}system version" >&6; }
3897           elif test "$wxUSE_LIBXPM" = builtin; then
3898             { echo "$as_me:$LINENO: result: builtin version" >&5
3899 echo "${ECHO_T}builtin version" >&6; }
3900           else
3901             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3902 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3903    { (exit 1); exit 1; }; }
3904           fi
3905
3906
3907           withstring=
3908           defaultval=$wxUSE_ALL_FEATURES
3909           if test -z "$defaultval"; then
3910               if test x"$withstring" = xwithout; then
3911                   defaultval=yes
3912               else
3913                   defaultval=no
3914               fi
3915           fi
3916           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3917 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3918
3919 # Check whether --with-libiconv was given.
3920 if test "${with_libiconv+set}" = set; then
3921   withval=$with_libiconv;
3922                         if test "$withval" = yes; then
3923                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3924                         else
3925                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3926                         fi
3927
3928 else
3929
3930                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3931
3932 fi
3933
3934
3935           eval "$wx_cv_use_libiconv"
3936
3937           if test x"$withstring" = xwithout; then
3938             if test $wxUSE_LIBICONV = yes; then
3939               result=no
3940             else
3941               result=yes
3942             fi
3943           else
3944             result=$wxUSE_LIBICONV
3945           fi
3946
3947           { echo "$as_me:$LINENO: result: $result" >&5
3948 echo "${ECHO_T}$result" >&6; }
3949
3950
3951           withstring=
3952           defaultval=$wxUSE_ALL_FEATURES
3953           if test -z "$defaultval"; then
3954               if test x"$withstring" = xwithout; then
3955                   defaultval=yes
3956               else
3957                   defaultval=no
3958               fi
3959           fi
3960           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3961 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3962
3963 # Check whether --with-libmspack was given.
3964 if test "${with_libmspack+set}" = set; then
3965   withval=$with_libmspack;
3966                         if test "$withval" = yes; then
3967                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3968                         else
3969                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3970                         fi
3971
3972 else
3973
3974                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3975
3976 fi
3977
3978
3979           eval "$wx_cv_use_libmspack"
3980
3981           if test x"$withstring" = xwithout; then
3982             if test $wxUSE_LIBMSPACK = yes; then
3983               result=no
3984             else
3985               result=yes
3986             fi
3987           else
3988             result=$wxUSE_LIBMSPACK
3989           fi
3990
3991           { echo "$as_me:$LINENO: result: $result" >&5
3992 echo "${ECHO_T}$result" >&6; }
3993
3994
3995           withstring=without
3996           defaultval=$wxUSE_ALL_FEATURES
3997           if test -z "$defaultval"; then
3998               if test x"$withstring" = xwithout; then
3999                   defaultval=yes
4000               else
4001                   defaultval=no
4002               fi
4003           fi
4004           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
4005 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
4006
4007 # Check whether --with-gtkprint was given.
4008 if test "${with_gtkprint+set}" = set; then
4009   withval=$with_gtkprint;
4010                         if test "$withval" = yes; then
4011                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
4012                         else
4013                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
4014                         fi
4015
4016 else
4017
4018                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
4019
4020 fi
4021
4022
4023           eval "$wx_cv_use_gtkprint"
4024
4025           if test x"$withstring" = xwithout; then
4026             if test $wxUSE_GTKPRINT = yes; then
4027               result=no
4028             else
4029               result=yes
4030             fi
4031           else
4032             result=$wxUSE_GTKPRINT
4033           fi
4034
4035           { echo "$as_me:$LINENO: result: $result" >&5
4036 echo "${ECHO_T}$result" >&6; }
4037
4038
4039           withstring=without
4040           defaultval=$wxUSE_ALL_FEATURES
4041           if test -z "$defaultval"; then
4042               if test x"$withstring" = xwithout; then
4043                   defaultval=yes
4044               else
4045                   defaultval=no
4046               fi
4047           fi
4048           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
4049 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
4050
4051 # Check whether --with-gnomeprint was given.
4052 if test "${with_gnomeprint+set}" = set; then
4053   withval=$with_gnomeprint;
4054                         if test "$withval" = yes; then
4055                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4056                         else
4057                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4058                         fi
4059
4060 else
4061
4062                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4063
4064 fi
4065
4066
4067           eval "$wx_cv_use_gnomeprint"
4068
4069           if test x"$withstring" = xwithout; then
4070             if test $wxUSE_LIBGNOMEPRINT = yes; then
4071               result=no
4072             else
4073               result=yes
4074             fi
4075           else
4076             result=$wxUSE_LIBGNOMEPRINT
4077           fi
4078
4079           { echo "$as_me:$LINENO: result: $result" >&5
4080 echo "${ECHO_T}$result" >&6; }
4081
4082
4083           withstring=
4084           defaultval=$wxUSE_ALL_FEATURES
4085           if test -z "$defaultval"; then
4086               if test x"$withstring" = xwithout; then
4087                   defaultval=yes
4088               else
4089                   defaultval=no
4090               fi
4091           fi
4092           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4093 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4094
4095 # Check whether --with-gnomevfs was given.
4096 if test "${with_gnomevfs+set}" = set; then
4097   withval=$with_gnomevfs;
4098                         if test "$withval" = yes; then
4099                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4100                         else
4101                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4102                         fi
4103
4104 else
4105
4106                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4107
4108 fi
4109
4110
4111           eval "$wx_cv_use_gnomevfs"
4112
4113           if test x"$withstring" = xwithout; then
4114             if test $wxUSE_LIBGNOMEVFS = yes; then
4115               result=no
4116             else
4117               result=yes
4118             fi
4119           else
4120             result=$wxUSE_LIBGNOMEVFS
4121           fi
4122
4123           { echo "$as_me:$LINENO: result: $result" >&5
4124 echo "${ECHO_T}$result" >&6; }
4125
4126
4127           withstring=
4128           defaultval=$wxUSE_ALL_FEATURES
4129           if test -z "$defaultval"; then
4130               if test x"$withstring" = xwithout; then
4131                   defaultval=yes
4132               else
4133                   defaultval=no
4134               fi
4135           fi
4136           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4137 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4138
4139 # Check whether --with-hildon was given.
4140 if test "${with_hildon+set}" = set; then
4141   withval=$with_hildon;
4142                         if test "$withval" = yes; then
4143                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4144                         else
4145                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4146                         fi
4147
4148 else
4149
4150                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4151
4152 fi
4153
4154
4155           eval "$wx_cv_use_hildon"
4156
4157           if test x"$withstring" = xwithout; then
4158             if test $wxUSE_LIBHILDON = yes; then
4159               result=no
4160             else
4161               result=yes
4162             fi
4163           else
4164             result=$wxUSE_LIBHILDON
4165           fi
4166
4167           { echo "$as_me:$LINENO: result: $result" >&5
4168 echo "${ECHO_T}$result" >&6; }
4169
4170
4171           withstring=
4172           defaultval=$wxUSE_ALL_FEATURES
4173           if test -z "$defaultval"; then
4174               if test x"$withstring" = xwithout; then
4175                   defaultval=yes
4176               else
4177                   defaultval=no
4178               fi
4179           fi
4180           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4181 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4182
4183 # Check whether --with-opengl was given.
4184 if test "${with_opengl+set}" = set; then
4185   withval=$with_opengl;
4186                         if test "$withval" = yes; then
4187                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4188                         else
4189                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4190                         fi
4191
4192 else
4193
4194                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4195
4196 fi
4197
4198
4199           eval "$wx_cv_use_opengl"
4200
4201           if test x"$withstring" = xwithout; then
4202             if test $wxUSE_OPENGL = yes; then
4203               result=no
4204             else
4205               result=yes
4206             fi
4207           else
4208             result=$wxUSE_OPENGL
4209           fi
4210
4211           { echo "$as_me:$LINENO: result: $result" >&5
4212 echo "${ECHO_T}$result" >&6; }
4213
4214
4215 fi
4216
4217
4218           withstring=
4219           defaultval=$wxUSE_ALL_FEATURES
4220           if test -z "$defaultval"; then
4221               if test x"$withstring" = xwithout; then
4222                   defaultval=yes
4223               else
4224                   defaultval=no
4225               fi
4226           fi
4227           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4228 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4229
4230 # Check whether --with-dmalloc was given.
4231 if test "${with_dmalloc+set}" = set; then
4232   withval=$with_dmalloc;
4233                         if test "$withval" = yes; then
4234                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4235                         else
4236                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4237                         fi
4238
4239 else
4240
4241                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4242
4243 fi
4244
4245
4246           eval "$wx_cv_use_dmalloc"
4247
4248           if test x"$withstring" = xwithout; then
4249             if test $wxUSE_DMALLOC = yes; then
4250               result=no
4251             else
4252               result=yes
4253             fi
4254           else
4255             result=$wxUSE_DMALLOC
4256           fi
4257
4258           { echo "$as_me:$LINENO: result: $result" >&5
4259 echo "${ECHO_T}$result" >&6; }
4260
4261
4262           withstring=
4263           defaultval=$wxUSE_ALL_FEATURES
4264           if test -z "$defaultval"; then
4265               if test x"$withstring" = xwithout; then
4266                   defaultval=yes
4267               else
4268                   defaultval=no
4269               fi
4270           fi
4271           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4272 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4273
4274 # Check whether --with-sdl was given.
4275 if test "${with_sdl+set}" = set; then
4276   withval=$with_sdl;
4277                         if test "$withval" = yes; then
4278                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4279                         else
4280                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4281                         fi
4282
4283 else
4284
4285                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4286
4287 fi
4288
4289
4290           eval "$wx_cv_use_sdl"
4291
4292           if test x"$withstring" = xwithout; then
4293             if test $wxUSE_LIBSDL = yes; then
4294               result=no
4295             else
4296               result=yes
4297             fi
4298           else
4299             result=$wxUSE_LIBSDL
4300           fi
4301
4302           { echo "$as_me:$LINENO: result: $result" >&5
4303 echo "${ECHO_T}$result" >&6; }
4304
4305
4306           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4307 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4308
4309 # Check whether --with-regex was given.
4310 if test "${with_regex+set}" = set; then
4311   withval=$with_regex;
4312                         if test "$withval" = yes; then
4313                           wx_cv_use_regex='wxUSE_REGEX=yes'
4314                         elif test "$withval" = no; then
4315                           wx_cv_use_regex='wxUSE_REGEX=no'
4316                         elif test "$withval" = sys; then
4317                           wx_cv_use_regex='wxUSE_REGEX=sys'
4318                         elif test "$withval" = builtin; then
4319                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4320                         else
4321                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4322 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4323    { (exit 1); exit 1; }; }
4324                         fi
4325
4326 else
4327
4328                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4329
4330 fi
4331
4332
4333           eval "$wx_cv_use_regex"
4334
4335           if test "$wxUSE_REGEX" = yes; then
4336             { echo "$as_me:$LINENO: result: yes" >&5
4337 echo "${ECHO_T}yes" >&6; }
4338           elif test "$wxUSE_REGEX" = no; then
4339             { echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6; }
4341           elif test "$wxUSE_REGEX" = sys; then
4342             { echo "$as_me:$LINENO: result: system version" >&5
4343 echo "${ECHO_T}system version" >&6; }
4344           elif test "$wxUSE_REGEX" = builtin; then
4345             { echo "$as_me:$LINENO: result: builtin version" >&5
4346 echo "${ECHO_T}builtin version" >&6; }
4347           else
4348             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4349 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4350    { (exit 1); exit 1; }; }
4351           fi
4352
4353
4354           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4355 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4356
4357 # Check whether --with-zlib was given.
4358 if test "${with_zlib+set}" = set; then
4359   withval=$with_zlib;
4360                         if test "$withval" = yes; then
4361                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4362                         elif test "$withval" = no; then
4363                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4364                         elif test "$withval" = sys; then
4365                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4366                         elif test "$withval" = builtin; then
4367                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4368                         else
4369                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4370 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4371    { (exit 1); exit 1; }; }
4372                         fi
4373
4374 else
4375
4376                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4377
4378 fi
4379
4380
4381           eval "$wx_cv_use_zlib"
4382
4383           if test "$wxUSE_ZLIB" = yes; then
4384             { echo "$as_me:$LINENO: result: yes" >&5
4385 echo "${ECHO_T}yes" >&6; }
4386           elif test "$wxUSE_ZLIB" = no; then
4387             { echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6; }
4389           elif test "$wxUSE_ZLIB" = sys; then
4390             { echo "$as_me:$LINENO: result: system version" >&5
4391 echo "${ECHO_T}system version" >&6; }
4392           elif test "$wxUSE_ZLIB" = builtin; then
4393             { echo "$as_me:$LINENO: result: builtin version" >&5
4394 echo "${ECHO_T}builtin version" >&6; }
4395           else
4396             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4397 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4398    { (exit 1); exit 1; }; }
4399           fi
4400
4401
4402           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4403 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4404
4405 # Check whether --with-expat was given.
4406 if test "${with_expat+set}" = set; then
4407   withval=$with_expat;
4408                         if test "$withval" = yes; then
4409                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4410                         elif test "$withval" = no; then
4411                           wx_cv_use_expat='wxUSE_EXPAT=no'
4412                         elif test "$withval" = sys; then
4413                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4414                         elif test "$withval" = builtin; then
4415                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4416                         else
4417                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4418 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4419    { (exit 1); exit 1; }; }
4420                         fi
4421
4422 else
4423
4424                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4425
4426 fi
4427
4428
4429           eval "$wx_cv_use_expat"
4430
4431           if test "$wxUSE_EXPAT" = yes; then
4432             { echo "$as_me:$LINENO: result: yes" >&5
4433 echo "${ECHO_T}yes" >&6; }
4434           elif test "$wxUSE_EXPAT" = no; then
4435             { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4437           elif test "$wxUSE_EXPAT" = sys; then
4438             { echo "$as_me:$LINENO: result: system version" >&5
4439 echo "${ECHO_T}system version" >&6; }
4440           elif test "$wxUSE_EXPAT" = builtin; then
4441             { echo "$as_me:$LINENO: result: builtin version" >&5
4442 echo "${ECHO_T}builtin version" >&6; }
4443           else
4444             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4445 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4446    { (exit 1); exit 1; }; }
4447           fi
4448
4449
4450 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4451 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4452
4453 # Check whether --with-macosx-sdk was given.
4454 if test "${with_macosx_sdk+set}" = set; then
4455   withval=$with_macosx_sdk;
4456         wxUSE_MACOSX_SDK=$withval
4457         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4458
4459 fi
4460
4461 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4462 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4463
4464 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4465 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4466
4467 # Check whether --with-macosx-version-min was given.
4468 if test "${with_macosx_version_min+set}" = set; then
4469   withval=$with_macosx_version_min;
4470         wxUSE_MACOSX_VERSION_MIN=$withval
4471         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4472
4473 fi
4474
4475 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4476 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4477
4478
4479 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4480 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4481 # Check whether --enable-debug was given.
4482 if test "${enable_debug+set}" = set; then
4483   enableval=$enable_debug;
4484         if test "$enableval" = yes; then
4485             wxUSE_DEBUG=yes
4486         elif test "$enableval" = no; then
4487             wxUSE_DEBUG=no
4488         elif test "$enableval" = max; then
4489             wxUSE_DEBUG=yes
4490             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4491         else
4492             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4493 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4494    { (exit 1); exit 1; }; }
4495         fi
4496
4497 else
4498   wxUSE_DEBUG=default
4499
4500 fi
4501
4502
4503 case "$wxUSE_DEBUG" in
4504     yes)
4505                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4506         DEFAULT_wxUSE_DEBUG_INFO=yes
4507
4508                         DEFAULT_wxUSE_OPTIMISE=no
4509         ;;
4510
4511     no)
4512                         DEFAULT_wxUSE_DEBUG_FLAG=no
4513         DEFAULT_wxUSE_DEBUG_INFO=no
4514         ;;
4515
4516     default)
4517                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4518         DEFAULT_wxUSE_DEBUG_INFO=no
4519         ;;
4520 esac
4521
4522
4523           enablestring=disable
4524           defaultval=
4525           if test -z "$defaultval"; then
4526               if test x"$enablestring" = xdisable; then
4527                   defaultval=yes
4528               else
4529                   defaultval=no
4530               fi
4531           fi
4532
4533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4534 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4535           # Check whether --enable-debug_flag was given.
4536 if test "${enable_debug_flag+set}" = set; then
4537   enableval=$enable_debug_flag;
4538                           if test "$enableval" = yes; then
4539                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4540                           else
4541                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4542                           fi
4543
4544 else
4545
4546                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4547
4548 fi
4549
4550
4551           eval "$wx_cv_use_debug_flag"
4552
4553           if test x"$enablestring" = xdisable; then
4554             if test $wxUSE_DEBUG_FLAG = no; then
4555               result=yes
4556             else
4557               result=no
4558             fi
4559           else
4560             result=$wxUSE_DEBUG_FLAG
4561           fi
4562
4563           { echo "$as_me:$LINENO: result: $result" >&5
4564 echo "${ECHO_T}$result" >&6; }
4565
4566
4567           enablestring=
4568           defaultval=
4569           if test -z "$defaultval"; then
4570               if test x"$enablestring" = xdisable; then
4571                   defaultval=yes
4572               else
4573                   defaultval=no
4574               fi
4575           fi
4576
4577           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4578 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4579           # Check whether --enable-debug_info was given.
4580 if test "${enable_debug_info+set}" = set; then
4581   enableval=$enable_debug_info;
4582                           if test "$enableval" = yes; then
4583                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4584                           else
4585                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4586                           fi
4587
4588 else
4589
4590                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4591
4592 fi
4593
4594
4595           eval "$wx_cv_use_debug_info"
4596
4597           if test x"$enablestring" = xdisable; then
4598             if test $wxUSE_DEBUG_INFO = no; then
4599               result=yes
4600             else
4601               result=no
4602             fi
4603           else
4604             result=$wxUSE_DEBUG_INFO
4605           fi
4606
4607           { echo "$as_me:$LINENO: result: $result" >&5
4608 echo "${ECHO_T}$result" >&6; }
4609
4610
4611
4612
4613           enablestring=
4614           defaultval=
4615           if test -z "$defaultval"; then
4616               if test x"$enablestring" = xdisable; then
4617                   defaultval=yes
4618               else
4619                   defaultval=no
4620               fi
4621           fi
4622
4623           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4624 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4625           # Check whether --enable-debug_gdb was given.
4626 if test "${enable_debug_gdb+set}" = set; then
4627   enableval=$enable_debug_gdb;
4628                           if test "$enableval" = yes; then
4629                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4630                           else
4631                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4632                           fi
4633
4634 else
4635
4636                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4637
4638 fi
4639
4640
4641           eval "$wx_cv_use_debug_gdb"
4642
4643           if test x"$enablestring" = xdisable; then
4644             if test $wxUSE_DEBUG_GDB = no; then
4645               result=yes
4646             else
4647               result=no
4648             fi
4649           else
4650             result=$wxUSE_DEBUG_GDB
4651           fi
4652
4653           { echo "$as_me:$LINENO: result: $result" >&5
4654 echo "${ECHO_T}$result" >&6; }
4655
4656
4657           enablestring=
4658           defaultval=
4659           if test -z "$defaultval"; then
4660               if test x"$enablestring" = xdisable; then
4661                   defaultval=yes
4662               else
4663                   defaultval=no
4664               fi
4665           fi
4666
4667           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4668 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4669           # Check whether --enable-debug_cntxt was given.
4670 if test "${enable_debug_cntxt+set}" = set; then
4671   enableval=$enable_debug_cntxt;
4672                           if test "$enableval" = yes; then
4673                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4674                           else
4675                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4676                           fi
4677
4678 else
4679
4680                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4681
4682 fi
4683
4684
4685           eval "$wx_cv_use_debug_cntxt"
4686
4687           if test x"$enablestring" = xdisable; then
4688             if test $wxUSE_DEBUG_CONTEXT = no; then
4689               result=yes
4690             else
4691               result=no
4692             fi
4693           else
4694             result=$wxUSE_DEBUG_CONTEXT
4695           fi
4696
4697           { echo "$as_me:$LINENO: result: $result" >&5
4698 echo "${ECHO_T}$result" >&6; }
4699
4700
4701           enablestring=
4702           defaultval=
4703           if test -z "$defaultval"; then
4704               if test x"$enablestring" = xdisable; then
4705                   defaultval=yes
4706               else
4707                   defaultval=no
4708               fi
4709           fi
4710
4711           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4712 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4713           # Check whether --enable-mem_tracing was given.
4714 if test "${enable_mem_tracing+set}" = set; then
4715   enableval=$enable_mem_tracing;
4716                           if test "$enableval" = yes; then
4717                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4718                           else
4719                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4720                           fi
4721
4722 else
4723
4724                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4725
4726 fi
4727
4728
4729           eval "$wx_cv_use_mem_tracing"
4730
4731           if test x"$enablestring" = xdisable; then
4732             if test $wxUSE_MEM_TRACING = no; then
4733               result=yes
4734             else
4735               result=no
4736             fi
4737           else
4738             result=$wxUSE_MEM_TRACING
4739           fi
4740
4741           { echo "$as_me:$LINENO: result: $result" >&5
4742 echo "${ECHO_T}$result" >&6; }
4743
4744
4745
4746
4747           enablestring=disable
4748           defaultval=
4749           if test -z "$defaultval"; then
4750               if test x"$enablestring" = xdisable; then
4751                   defaultval=yes
4752               else
4753                   defaultval=no
4754               fi
4755           fi
4756
4757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4758 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4759           # Check whether --enable-shared was given.
4760 if test "${enable_shared+set}" = set; then
4761   enableval=$enable_shared;
4762                           if test "$enableval" = yes; then
4763                             wx_cv_use_shared='wxUSE_SHARED=yes'
4764                           else
4765                             wx_cv_use_shared='wxUSE_SHARED=no'
4766                           fi
4767
4768 else
4769
4770                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4771
4772 fi
4773
4774
4775           eval "$wx_cv_use_shared"
4776
4777           if test x"$enablestring" = xdisable; then
4778             if test $wxUSE_SHARED = no; then
4779               result=yes
4780             else
4781               result=no
4782             fi
4783           else
4784             result=$wxUSE_SHARED
4785           fi
4786
4787           { echo "$as_me:$LINENO: result: $result" >&5
4788 echo "${ECHO_T}$result" >&6; }
4789
4790
4791           enablestring=
4792           defaultval=
4793           if test -z "$defaultval"; then
4794               if test x"$enablestring" = xdisable; then
4795                   defaultval=yes
4796               else
4797                   defaultval=no
4798               fi
4799           fi
4800
4801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4802 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4803           # Check whether --enable-stl was given.
4804 if test "${enable_stl+set}" = set; then
4805   enableval=$enable_stl;
4806                           if test "$enableval" = yes; then
4807                             wx_cv_use_stl='wxUSE_STL=yes'
4808                           else
4809                             wx_cv_use_stl='wxUSE_STL=no'
4810                           fi
4811
4812 else
4813
4814                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4815
4816 fi
4817
4818
4819           eval "$wx_cv_use_stl"
4820
4821           if test x"$enablestring" = xdisable; then
4822             if test $wxUSE_STL = no; then
4823               result=yes
4824             else
4825               result=no
4826             fi
4827           else
4828             result=$wxUSE_STL
4829           fi
4830
4831           { echo "$as_me:$LINENO: result: $result" >&5
4832 echo "${ECHO_T}$result" >&6; }
4833
4834 if test "$wxUSE_STL" = "yes"; then
4835     DEFAULT_wxUSE_STD_CONTAINERS=yes
4836     DEFAULT_wxUSE_STD_IOSTREAM=yes
4837     DEFAULT_wxUSE_STD_STRING=yes
4838 fi
4839
4840           enablestring=
4841           defaultval=
4842           if test -z "$defaultval"; then
4843               if test x"$enablestring" = xdisable; then
4844                   defaultval=yes
4845               else
4846                   defaultval=no
4847               fi
4848           fi
4849
4850           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_containers" >&5
4851 echo $ECHO_N "checking for --${enablestring:-enable}-std_containers... $ECHO_C" >&6; }
4852           # Check whether --enable-std_containers was given.
4853 if test "${enable_std_containers+set}" = set; then
4854   enableval=$enable_std_containers;
4855                           if test "$enableval" = yes; then
4856                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes'
4857                           else
4858                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no'
4859                           fi
4860
4861 else
4862
4863                           wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}"
4864
4865 fi
4866
4867
4868           eval "$wx_cv_use_std_containers"
4869
4870           if test x"$enablestring" = xdisable; then
4871             if test $wxUSE_STD_CONTAINERS = no; then
4872               result=yes
4873             else
4874               result=no
4875             fi
4876           else
4877             result=$wxUSE_STD_CONTAINERS
4878           fi
4879
4880           { echo "$as_me:$LINENO: result: $result" >&5
4881 echo "${ECHO_T}$result" >&6; }
4882
4883
4884           enablestring=
4885           defaultval=
4886           if test -z "$defaultval"; then
4887               if test x"$enablestring" = xdisable; then
4888                   defaultval=yes
4889               else
4890                   defaultval=no
4891               fi
4892           fi
4893
4894           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4895 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4896           # Check whether --enable-std_iostreams was given.
4897 if test "${enable_std_iostreams+set}" = set; then
4898   enableval=$enable_std_iostreams;
4899                           if test "$enableval" = yes; then
4900                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4901                           else
4902                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4903                           fi
4904
4905 else
4906
4907                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4908
4909 fi
4910
4911
4912           eval "$wx_cv_use_std_iostreams"
4913
4914           if test x"$enablestring" = xdisable; then
4915             if test $wxUSE_STD_IOSTREAM = no; then
4916               result=yes
4917             else
4918               result=no
4919             fi
4920           else
4921             result=$wxUSE_STD_IOSTREAM
4922           fi
4923
4924           { echo "$as_me:$LINENO: result: $result" >&5
4925 echo "${ECHO_T}$result" >&6; }
4926
4927
4928           enablestring=
4929           defaultval=
4930           if test -z "$defaultval"; then
4931               if test x"$enablestring" = xdisable; then
4932                   defaultval=yes
4933               else
4934                   defaultval=no
4935               fi
4936           fi
4937
4938           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4939 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4940           # Check whether --enable-std_string was given.
4941 if test "${enable_std_string+set}" = set; then
4942   enableval=$enable_std_string;
4943                           if test "$enableval" = yes; then
4944                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4945                           else
4946                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4947                           fi
4948
4949 else
4950
4951                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4952
4953 fi
4954
4955
4956           eval "$wx_cv_use_std_string"
4957
4958           if test x"$enablestring" = xdisable; then
4959             if test $wxUSE_STD_STRING = no; then
4960               result=yes
4961             else
4962               result=no
4963             fi
4964           else
4965             result=$wxUSE_STD_STRING
4966           fi
4967
4968           { echo "$as_me:$LINENO: result: $result" >&5
4969 echo "${ECHO_T}$result" >&6; }
4970
4971
4972           enablestring=
4973           defaultval=
4974           if test -z "$defaultval"; then
4975               if test x"$enablestring" = xdisable; then
4976                   defaultval=yes
4977               else
4978                   defaultval=no
4979               fi
4980           fi
4981
4982           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5
4983 echo $ECHO_N "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... $ECHO_C" >&6; }
4984           # Check whether --enable-std_string_conv_in_wxstring was given.
4985 if test "${enable_std_string_conv_in_wxstring+set}" = set; then
4986   enableval=$enable_std_string_conv_in_wxstring;
4987                           if test "$enableval" = yes; then
4988                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes'
4989                           else
4990                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no'
4991                           fi
4992
4993 else
4994
4995                           wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}"
4996
4997 fi
4998
4999
5000           eval "$wx_cv_use_std_string_conv_in_wxstring"
5001
5002           if test x"$enablestring" = xdisable; then
5003             if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then
5004               result=yes
5005             else
5006               result=no
5007             fi
5008           else
5009             result=$wxUSE_STD_STRING_CONV_IN_WXSTRING
5010           fi
5011
5012           { echo "$as_me:$LINENO: result: $result" >&5
5013 echo "${ECHO_T}$result" >&6; }
5014
5015
5016           enablestring=disable
5017           defaultval=
5018           if test -z "$defaultval"; then
5019               if test x"$enablestring" = xdisable; then
5020                   defaultval=yes
5021               else
5022                   defaultval=no
5023               fi
5024           fi
5025
5026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5027 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
5028           # Check whether --enable-unicode was given.
5029 if test "${enable_unicode+set}" = set; then
5030   enableval=$enable_unicode;
5031                           if test "$enableval" = yes; then
5032                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
5033                           else
5034                             wx_cv_use_unicode='wxUSE_UNICODE=no'
5035                           fi
5036
5037 else
5038
5039                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
5040
5041 fi
5042
5043
5044           eval "$wx_cv_use_unicode"
5045
5046           if test x"$enablestring" = xdisable; then
5047             if test $wxUSE_UNICODE = no; then
5048               result=yes
5049             else
5050               result=no
5051             fi
5052           else
5053             result=$wxUSE_UNICODE
5054           fi
5055
5056           { echo "$as_me:$LINENO: result: $result" >&5
5057 echo "${ECHO_T}$result" >&6; }
5058
5059
5060           enablestring=
5061           defaultval=
5062           if test -z "$defaultval"; then
5063               if test x"$enablestring" = xdisable; then
5064                   defaultval=yes
5065               else
5066                   defaultval=no
5067               fi
5068           fi
5069
5070           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5071 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
5072           # Check whether --enable-mslu was given.
5073 if test "${enable_mslu+set}" = set; then
5074   enableval=$enable_mslu;
5075                           if test "$enableval" = yes; then
5076                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5077                           else
5078                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5079                           fi
5080
5081 else
5082
5083                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5084
5085 fi
5086
5087
5088           eval "$wx_cv_use_mslu"
5089
5090           if test x"$enablestring" = xdisable; then
5091             if test $wxUSE_UNICODE_MSLU = no; then
5092               result=yes
5093             else
5094               result=no
5095             fi
5096           else
5097             result=$wxUSE_UNICODE_MSLU
5098           fi
5099
5100           { echo "$as_me:$LINENO: result: $result" >&5
5101 echo "${ECHO_T}$result" >&6; }
5102
5103
5104           enablestring=
5105           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5106 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5107           # Check whether --enable-utf8 was given.
5108 if test "${enable_utf8+set}" = set; then
5109   enableval=$enable_utf8;
5110                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5111
5112 else
5113
5114                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5115
5116 fi
5117
5118
5119           eval "$wx_cv_use_utf8"
5120
5121           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5122 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5123
5124
5125           enablestring=
5126           defaultval=
5127           if test -z "$defaultval"; then
5128               if test x"$enablestring" = xdisable; then
5129                   defaultval=yes
5130               else
5131                   defaultval=no
5132               fi
5133           fi
5134
5135           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5136 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5137           # Check whether --enable-utf8only was given.
5138 if test "${enable_utf8only+set}" = set; then
5139   enableval=$enable_utf8only;
5140                           if test "$enableval" = yes; then
5141                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5142                           else
5143                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5144                           fi
5145
5146 else
5147
5148                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5149
5150 fi
5151
5152
5153           eval "$wx_cv_use_utf8only"
5154
5155           if test x"$enablestring" = xdisable; then
5156             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5157               result=yes
5158             else
5159               result=no
5160             fi
5161           else
5162             result=$wxUSE_UNICODE_UTF8_LOCALE
5163           fi
5164
5165           { echo "$as_me:$LINENO: result: $result" >&5
5166 echo "${ECHO_T}$result" >&6; }
5167
5168
5169           enablestring=
5170           defaultval=
5171           if test -z "$defaultval"; then
5172               if test x"$enablestring" = xdisable; then
5173                   defaultval=yes
5174               else
5175                   defaultval=no
5176               fi
5177           fi
5178
5179           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5180 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5181           # Check whether --enable-extended_rtti was given.
5182 if test "${enable_extended_rtti+set}" = set; then
5183   enableval=$enable_extended_rtti;
5184                           if test "$enableval" = yes; then
5185                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5186                           else
5187                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5188                           fi
5189
5190 else
5191
5192                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5193
5194 fi
5195
5196
5197           eval "$wx_cv_use_extended_rtti"
5198
5199           if test x"$enablestring" = xdisable; then
5200             if test $wxUSE_EXTENDED_RTTI = no; then
5201               result=yes
5202             else
5203               result=no
5204             fi
5205           else
5206             result=$wxUSE_EXTENDED_RTTI
5207           fi
5208
5209           { echo "$as_me:$LINENO: result: $result" >&5
5210 echo "${ECHO_T}$result" >&6; }
5211
5212 if test "$USE_OS2" = 1; then
5213     DEFAULT_wxUSE_OMF=no
5214
5215           enablestring=
5216           defaultval=
5217           if test -z "$defaultval"; then
5218               if test x"$enablestring" = xdisable; then
5219                   defaultval=yes
5220               else
5221                   defaultval=no
5222               fi
5223           fi
5224
5225           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5226 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5227           # Check whether --enable-omf was given.
5228 if test "${enable_omf+set}" = set; then
5229   enableval=$enable_omf;
5230                           if test "$enableval" = yes; then
5231                             wx_cv_use_omf='wxUSE_OMF=yes'
5232                           else
5233                             wx_cv_use_omf='wxUSE_OMF=no'
5234                           fi
5235
5236 else
5237
5238                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5239
5240 fi
5241
5242
5243           eval "$wx_cv_use_omf"
5244
5245           if test x"$enablestring" = xdisable; then
5246             if test $wxUSE_OMF = no; then
5247               result=yes
5248             else
5249               result=no
5250             fi
5251           else
5252             result=$wxUSE_OMF
5253           fi
5254
5255           { echo "$as_me:$LINENO: result: $result" >&5
5256 echo "${ECHO_T}$result" >&6; }
5257
5258 fi
5259
5260
5261           enablestring=disable
5262           defaultval=
5263           if test -z "$defaultval"; then
5264               if test x"$enablestring" = xdisable; then
5265                   defaultval=yes
5266               else
5267                   defaultval=no
5268               fi
5269           fi
5270
5271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5272 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5273           # Check whether --enable-optimise was given.
5274 if test "${enable_optimise+set}" = set; then
5275   enableval=$enable_optimise;
5276                           if test "$enableval" = yes; then
5277                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5278                           else
5279                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5280                           fi
5281
5282 else
5283
5284                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5285
5286 fi
5287
5288
5289           eval "$wx_cv_use_optimise"
5290
5291           if test x"$enablestring" = xdisable; then
5292             if test $wxUSE_OPTIMISE = no; then
5293               result=yes
5294             else
5295               result=no
5296             fi
5297           else
5298             result=$wxUSE_OPTIMISE
5299           fi
5300
5301           { echo "$as_me:$LINENO: result: $result" >&5
5302 echo "${ECHO_T}$result" >&6; }
5303
5304
5305
5306           enablestring=
5307           defaultval=
5308           if test -z "$defaultval"; then
5309               if test x"$enablestring" = xdisable; then
5310                   defaultval=yes
5311               else
5312                   defaultval=no
5313               fi
5314           fi
5315
5316           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5317 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5318           # Check whether --enable-profile was given.
5319 if test "${enable_profile+set}" = set; then
5320   enableval=$enable_profile;
5321                           if test "$enableval" = yes; then
5322                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5323                           else
5324                             wx_cv_use_profile='wxUSE_PROFILE=no'
5325                           fi
5326
5327 else
5328
5329                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5330
5331 fi
5332
5333
5334           eval "$wx_cv_use_profile"
5335
5336           if test x"$enablestring" = xdisable; then
5337             if test $wxUSE_PROFILE = no; then
5338               result=yes
5339             else
5340               result=no
5341             fi
5342           else
5343             result=$wxUSE_PROFILE
5344           fi
5345
5346           { echo "$as_me:$LINENO: result: $result" >&5
5347 echo "${ECHO_T}$result" >&6; }
5348
5349
5350           enablestring=
5351           defaultval=
5352           if test -z "$defaultval"; then
5353               if test x"$enablestring" = xdisable; then
5354                   defaultval=yes
5355               else
5356                   defaultval=no
5357               fi
5358           fi
5359
5360           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5361 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5362           # Check whether --enable-no_rtti was given.
5363 if test "${enable_no_rtti+set}" = set; then
5364   enableval=$enable_no_rtti;
5365                           if test "$enableval" = yes; then
5366                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5367                           else
5368                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5369                           fi
5370
5371 else
5372
5373                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5374
5375 fi
5376
5377
5378           eval "$wx_cv_use_no_rtti"
5379
5380           if test x"$enablestring" = xdisable; then
5381             if test $wxUSE_NO_RTTI = no; then
5382               result=yes
5383             else
5384               result=no
5385             fi
5386           else
5387             result=$wxUSE_NO_RTTI
5388           fi
5389
5390           { echo "$as_me:$LINENO: result: $result" >&5
5391 echo "${ECHO_T}$result" >&6; }
5392
5393
5394           enablestring=
5395           defaultval=
5396           if test -z "$defaultval"; then
5397               if test x"$enablestring" = xdisable; then
5398                   defaultval=yes
5399               else
5400                   defaultval=no
5401               fi
5402           fi
5403
5404           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5405 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5406           # Check whether --enable-no_exceptions was given.
5407 if test "${enable_no_exceptions+set}" = set; then
5408   enableval=$enable_no_exceptions;
5409                           if test "$enableval" = yes; then
5410                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5411                           else
5412                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5413                           fi
5414
5415 else
5416
5417                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5418
5419 fi
5420
5421
5422           eval "$wx_cv_use_no_exceptions"
5423
5424           if test x"$enablestring" = xdisable; then
5425             if test $wxUSE_NO_EXCEPTIONS = no; then
5426               result=yes
5427             else
5428               result=no
5429             fi
5430           else
5431             result=$wxUSE_NO_EXCEPTIONS
5432           fi
5433
5434           { echo "$as_me:$LINENO: result: $result" >&5
5435 echo "${ECHO_T}$result" >&6; }
5436
5437
5438           enablestring=
5439           defaultval=
5440           if test -z "$defaultval"; then
5441               if test x"$enablestring" = xdisable; then
5442                   defaultval=yes
5443               else
5444                   defaultval=no
5445               fi
5446           fi
5447
5448           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5449 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5450           # Check whether --enable-permissive was given.
5451 if test "${enable_permissive+set}" = set; then
5452   enableval=$enable_permissive;
5453                           if test "$enableval" = yes; then
5454                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5455                           else
5456                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5457                           fi
5458
5459 else
5460
5461                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5462
5463 fi
5464
5465
5466           eval "$wx_cv_use_permissive"
5467
5468           if test x"$enablestring" = xdisable; then
5469             if test $wxUSE_PERMISSIVE = no; then
5470               result=yes
5471             else
5472               result=no
5473             fi
5474           else
5475             result=$wxUSE_PERMISSIVE
5476           fi
5477
5478           { echo "$as_me:$LINENO: result: $result" >&5
5479 echo "${ECHO_T}$result" >&6; }
5480
5481
5482           enablestring=
5483           defaultval=
5484           if test -z "$defaultval"; then
5485               if test x"$enablestring" = xdisable; then
5486                   defaultval=yes
5487               else
5488                   defaultval=no
5489               fi
5490           fi
5491
5492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5493 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5494           # Check whether --enable-no_deps was given.
5495 if test "${enable_no_deps+set}" = set; then
5496   enableval=$enable_no_deps;
5497                           if test "$enableval" = yes; then
5498                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5499                           else
5500                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5501                           fi
5502
5503 else
5504
5505                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5506
5507 fi
5508
5509
5510           eval "$wx_cv_use_no_deps"
5511
5512           if test x"$enablestring" = xdisable; then
5513             if test $wxUSE_NO_DEPS = no; then
5514               result=yes
5515             else
5516               result=no
5517             fi
5518           else
5519             result=$wxUSE_NO_DEPS
5520           fi
5521
5522           { echo "$as_me:$LINENO: result: $result" >&5
5523 echo "${ECHO_T}$result" >&6; }
5524
5525
5526           enablestring=disable
5527           defaultval=
5528           if test -z "$defaultval"; then
5529               if test x"$enablestring" = xdisable; then
5530                   defaultval=yes
5531               else
5532                   defaultval=no
5533               fi
5534           fi
5535
5536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5537 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5538           # Check whether --enable-vararg_macros was given.
5539 if test "${enable_vararg_macros+set}" = set; then
5540   enableval=$enable_vararg_macros;
5541                           if test "$enableval" = yes; then
5542                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5543                           else
5544                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5545                           fi
5546
5547 else
5548
5549                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5550
5551 fi
5552
5553
5554           eval "$wx_cv_use_vararg_macros"
5555
5556           if test x"$enablestring" = xdisable; then
5557             if test $wxUSE_VARARG_MACROS = no; then
5558               result=yes
5559             else
5560               result=no
5561             fi
5562           else
5563             result=$wxUSE_VARARG_MACROS
5564           fi
5565
5566           { echo "$as_me:$LINENO: result: $result" >&5
5567 echo "${ECHO_T}$result" >&6; }
5568
5569
5570
5571           enablestring=
5572           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5573 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5574           # Check whether --enable-universal_binary was given.
5575 if test "${enable_universal_binary+set}" = set; then
5576   enableval=$enable_universal_binary;
5577                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5578
5579 else
5580
5581                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5582
5583 fi
5584
5585
5586           eval "$wx_cv_use_universal_binary"
5587
5588           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5589 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5590
5591
5592           enablestring=
5593           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5594 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5595           # Check whether --enable-macosx_arch was given.
5596 if test "${enable_macosx_arch+set}" = set; then
5597   enableval=$enable_macosx_arch;
5598                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5599
5600 else
5601
5602                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5603
5604 fi
5605
5606
5607           eval "$wx_cv_use_macosx_arch"
5608
5609           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5610 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5611
5612
5613
5614           enablestring=
5615           defaultval=
5616           if test -z "$defaultval"; then
5617               if test x"$enablestring" = xdisable; then
5618                   defaultval=yes
5619               else
5620                   defaultval=no
5621               fi
5622           fi
5623
5624           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5625 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5626           # Check whether --enable-compat26 was given.
5627 if test "${enable_compat26+set}" = set; then
5628   enableval=$enable_compat26;
5629                           if test "$enableval" = yes; then
5630                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5631                           else
5632                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5633                           fi
5634
5635 else
5636
5637                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5638
5639 fi
5640
5641
5642           eval "$wx_cv_use_compat26"
5643
5644           if test x"$enablestring" = xdisable; then
5645             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5646               result=yes
5647             else
5648               result=no
5649             fi
5650           else
5651             result=$WXWIN_COMPATIBILITY_2_6
5652           fi
5653
5654           { echo "$as_me:$LINENO: result: $result" >&5
5655 echo "${ECHO_T}$result" >&6; }
5656
5657
5658           enablestring=disable
5659           defaultval=
5660           if test -z "$defaultval"; then
5661               if test x"$enablestring" = xdisable; then
5662                   defaultval=yes
5663               else
5664                   defaultval=no
5665               fi
5666           fi
5667
5668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5669 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5670           # Check whether --enable-compat28 was given.
5671 if test "${enable_compat28+set}" = set; then
5672   enableval=$enable_compat28;
5673                           if test "$enableval" = yes; then
5674                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5675                           else
5676                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5677                           fi
5678
5679 else
5680
5681                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5682
5683 fi
5684
5685
5686           eval "$wx_cv_use_compat28"
5687
5688           if test x"$enablestring" = xdisable; then
5689             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5690               result=yes
5691             else
5692               result=no
5693             fi
5694           else
5695             result=$WXWIN_COMPATIBILITY_2_8
5696           fi
5697
5698           { echo "$as_me:$LINENO: result: $result" >&5
5699 echo "${ECHO_T}$result" >&6; }
5700
5701
5702
5703           enablestring=disable
5704           defaultval=
5705           if test -z "$defaultval"; then
5706               if test x"$enablestring" = xdisable; then
5707                   defaultval=yes
5708               else
5709                   defaultval=no
5710               fi
5711           fi
5712
5713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5714 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5715           # Check whether --enable-rpath was given.
5716 if test "${enable_rpath+set}" = set; then
5717   enableval=$enable_rpath;
5718                           if test "$enableval" = yes; then
5719                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5720                           else
5721                             wx_cv_use_rpath='wxUSE_RPATH=no'
5722                           fi
5723
5724 else
5725
5726                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5727
5728 fi
5729
5730
5731           eval "$wx_cv_use_rpath"
5732
5733           if test x"$enablestring" = xdisable; then
5734             if test $wxUSE_RPATH = no; then
5735               result=yes
5736             else
5737               result=no
5738             fi
5739           else
5740             result=$wxUSE_RPATH
5741           fi
5742
5743           { echo "$as_me:$LINENO: result: $result" >&5
5744 echo "${ECHO_T}$result" >&6; }
5745
5746
5747
5748           enablestring=
5749           defaultval=
5750           if test -z "$defaultval"; then
5751               if test x"$enablestring" = xdisable; then
5752                   defaultval=yes
5753               else
5754                   defaultval=no
5755               fi
5756           fi
5757
5758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5759 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5760           # Check whether --enable-objc_uniquifying was given.
5761 if test "${enable_objc_uniquifying+set}" = set; then
5762   enableval=$enable_objc_uniquifying;
5763                           if test "$enableval" = yes; then
5764                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5765                           else
5766                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5767                           fi
5768
5769 else
5770
5771                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5772
5773 fi
5774
5775
5776           eval "$wx_cv_use_objc_uniquifying"
5777
5778           if test x"$enablestring" = xdisable; then
5779             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5780               result=yes
5781             else
5782               result=no
5783             fi
5784           else
5785             result=$wxUSE_OBJC_UNIQUIFYING
5786           fi
5787
5788           { echo "$as_me:$LINENO: result: $result" >&5
5789 echo "${ECHO_T}$result" >&6; }
5790
5791
5792
5793           enablestring=disable
5794           defaultval=
5795           if test -z "$defaultval"; then
5796               if test x"$enablestring" = xdisable; then
5797                   defaultval=yes
5798               else
5799                   defaultval=no
5800               fi
5801           fi
5802
5803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5804 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5805           # Check whether --enable-visibility was given.
5806 if test "${enable_visibility+set}" = set; then
5807   enableval=$enable_visibility;
5808                           if test "$enableval" = yes; then
5809                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5810                           else
5811                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5812                           fi
5813
5814 else
5815
5816                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5817
5818 fi
5819
5820
5821           eval "$wx_cv_use_visibility"
5822
5823           if test x"$enablestring" = xdisable; then
5824             if test $wxUSE_VISIBILITY = no; then
5825               result=yes
5826             else
5827               result=no
5828             fi
5829           else
5830             result=$wxUSE_VISIBILITY
5831           fi
5832
5833           { echo "$as_me:$LINENO: result: $result" >&5
5834 echo "${ECHO_T}$result" >&6; }
5835
5836
5837           enablestring=disable
5838           defaultval=
5839           if test -z "$defaultval"; then
5840               if test x"$enablestring" = xdisable; then
5841                   defaultval=yes
5842               else
5843                   defaultval=no
5844               fi
5845           fi
5846
5847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5848 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5849           # Check whether --enable-tls was given.
5850 if test "${enable_tls+set}" = set; then
5851   enableval=$enable_tls;
5852                           if test "$enableval" = yes; then
5853                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5854                           else
5855                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5856                           fi
5857
5858 else
5859
5860                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5861
5862 fi
5863
5864
5865           eval "$wx_cv_use_tls"
5866
5867           if test x"$enablestring" = xdisable; then
5868             if test $wxUSE_COMPILER_TLS = no; then
5869               result=yes
5870             else
5871               result=no
5872             fi
5873           else
5874             result=$wxUSE_COMPILER_TLS
5875           fi
5876
5877           { echo "$as_me:$LINENO: result: $result" >&5
5878 echo "${ECHO_T}$result" >&6; }
5879
5880
5881
5882
5883           enablestring=
5884           defaultval=$wxUSE_ALL_FEATURES
5885           if test -z "$defaultval"; then
5886               if test x"$enablestring" = xdisable; then
5887                   defaultval=yes
5888               else
5889                   defaultval=no
5890               fi
5891           fi
5892
5893           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5894 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5895           # Check whether --enable-intl was given.
5896 if test "${enable_intl+set}" = set; then
5897   enableval=$enable_intl;
5898                           if test "$enableval" = yes; then
5899                             wx_cv_use_intl='wxUSE_INTL=yes'
5900                           else
5901                             wx_cv_use_intl='wxUSE_INTL=no'
5902                           fi
5903
5904 else
5905
5906                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5907
5908 fi
5909
5910
5911           eval "$wx_cv_use_intl"
5912
5913           if test x"$enablestring" = xdisable; then
5914             if test $wxUSE_INTL = no; then
5915               result=yes
5916             else
5917               result=no
5918             fi
5919           else
5920             result=$wxUSE_INTL
5921           fi
5922
5923           { echo "$as_me:$LINENO: result: $result" >&5
5924 echo "${ECHO_T}$result" >&6; }
5925
5926
5927           enablestring=
5928           defaultval=$wxUSE_ALL_FEATURES
5929           if test -z "$defaultval"; then
5930               if test x"$enablestring" = xdisable; then
5931                   defaultval=yes
5932               else
5933                   defaultval=no
5934               fi
5935           fi
5936
5937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5938 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5939           # Check whether --enable-xlocale was given.
5940 if test "${enable_xlocale+set}" = set; then
5941   enableval=$enable_xlocale;
5942                           if test "$enableval" = yes; then
5943                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5944                           else
5945                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5946                           fi
5947
5948 else
5949
5950                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5951
5952 fi
5953
5954
5955           eval "$wx_cv_use_xlocale"
5956
5957           if test x"$enablestring" = xdisable; then
5958             if test $wxUSE_XLOCALE = no; then
5959               result=yes
5960             else
5961               result=no
5962             fi
5963           else
5964             result=$wxUSE_XLOCALE
5965           fi
5966
5967           { echo "$as_me:$LINENO: result: $result" >&5
5968 echo "${ECHO_T}$result" >&6; }
5969
5970
5971           enablestring=
5972           defaultval=$wxUSE_ALL_FEATURES
5973           if test -z "$defaultval"; then
5974               if test x"$enablestring" = xdisable; then
5975                   defaultval=yes
5976               else
5977                   defaultval=no
5978               fi
5979           fi
5980
5981           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5982 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5983           # Check whether --enable-config was given.
5984 if test "${enable_config+set}" = set; then
5985   enableval=$enable_config;
5986                           if test "$enableval" = yes; then
5987                             wx_cv_use_config='wxUSE_CONFIG=yes'
5988                           else
5989                             wx_cv_use_config='wxUSE_CONFIG=no'
5990                           fi
5991
5992 else
5993
5994                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5995
5996 fi
5997
5998
5999           eval "$wx_cv_use_config"
6000
6001           if test x"$enablestring" = xdisable; then
6002             if test $wxUSE_CONFIG = no; then
6003               result=yes
6004             else
6005               result=no
6006             fi
6007           else
6008             result=$wxUSE_CONFIG
6009           fi
6010
6011           { echo "$as_me:$LINENO: result: $result" >&5
6012 echo "${ECHO_T}$result" >&6; }
6013
6014
6015
6016           enablestring=
6017           defaultval=$wxUSE_ALL_FEATURES
6018           if test -z "$defaultval"; then
6019               if test x"$enablestring" = xdisable; then
6020                   defaultval=yes
6021               else
6022                   defaultval=no
6023               fi
6024           fi
6025
6026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6027 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6028           # Check whether --enable-protocols was given.
6029 if test "${enable_protocols+set}" = set; then
6030   enableval=$enable_protocols;
6031                           if test "$enableval" = yes; then
6032                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6033                           else
6034                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6035                           fi
6036
6037 else
6038
6039                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6040
6041 fi
6042
6043
6044           eval "$wx_cv_use_protocols"
6045
6046           if test x"$enablestring" = xdisable; then
6047             if test $wxUSE_PROTOCOL = no; then
6048               result=yes
6049             else
6050               result=no
6051             fi
6052           else
6053             result=$wxUSE_PROTOCOL
6054           fi
6055
6056           { echo "$as_me:$LINENO: result: $result" >&5
6057 echo "${ECHO_T}$result" >&6; }
6058
6059
6060           enablestring=
6061           defaultval=$wxUSE_ALL_FEATURES
6062           if test -z "$defaultval"; then
6063               if test x"$enablestring" = xdisable; then
6064                   defaultval=yes
6065               else
6066                   defaultval=no
6067               fi
6068           fi
6069
6070           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6071 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6072           # Check whether --enable-ftp was given.
6073 if test "${enable_ftp+set}" = set; then
6074   enableval=$enable_ftp;
6075                           if test "$enableval" = yes; then
6076                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6077                           else
6078                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6079                           fi
6080
6081 else
6082
6083                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6084
6085 fi
6086
6087
6088           eval "$wx_cv_use_ftp"
6089
6090           if test x"$enablestring" = xdisable; then
6091             if test $wxUSE_PROTOCOL_FTP = no; then
6092               result=yes
6093             else
6094               result=no
6095             fi
6096           else
6097             result=$wxUSE_PROTOCOL_FTP
6098           fi
6099
6100           { echo "$as_me:$LINENO: result: $result" >&5
6101 echo "${ECHO_T}$result" >&6; }
6102
6103
6104           enablestring=
6105           defaultval=$wxUSE_ALL_FEATURES
6106           if test -z "$defaultval"; then
6107               if test x"$enablestring" = xdisable; then
6108                   defaultval=yes
6109               else
6110                   defaultval=no
6111               fi
6112           fi
6113
6114           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6115 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6116           # Check whether --enable-http was given.
6117 if test "${enable_http+set}" = set; then
6118   enableval=$enable_http;
6119                           if test "$enableval" = yes; then
6120                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6121                           else
6122                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6123                           fi
6124
6125 else
6126
6127                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6128
6129 fi
6130
6131
6132           eval "$wx_cv_use_http"
6133
6134           if test x"$enablestring" = xdisable; then
6135             if test $wxUSE_PROTOCOL_HTTP = no; then
6136               result=yes
6137             else
6138               result=no
6139             fi
6140           else
6141             result=$wxUSE_PROTOCOL_HTTP
6142           fi
6143
6144           { echo "$as_me:$LINENO: result: $result" >&5
6145 echo "${ECHO_T}$result" >&6; }
6146
6147
6148           enablestring=
6149           defaultval=$wxUSE_ALL_FEATURES
6150           if test -z "$defaultval"; then
6151               if test x"$enablestring" = xdisable; then
6152                   defaultval=yes
6153               else
6154                   defaultval=no
6155               fi
6156           fi
6157
6158           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6159 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6160           # Check whether --enable-fileproto was given.
6161 if test "${enable_fileproto+set}" = set; then
6162   enableval=$enable_fileproto;
6163                           if test "$enableval" = yes; then
6164                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6165                           else
6166                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6167                           fi
6168
6169 else
6170
6171                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6172
6173 fi
6174
6175
6176           eval "$wx_cv_use_fileproto"
6177
6178           if test x"$enablestring" = xdisable; then
6179             if test $wxUSE_PROTOCOL_FILE = no; then
6180               result=yes
6181             else
6182               result=no
6183             fi
6184           else
6185             result=$wxUSE_PROTOCOL_FILE
6186           fi
6187
6188           { echo "$as_me:$LINENO: result: $result" >&5
6189 echo "${ECHO_T}$result" >&6; }
6190
6191
6192           enablestring=
6193           defaultval=$wxUSE_ALL_FEATURES
6194           if test -z "$defaultval"; then
6195               if test x"$enablestring" = xdisable; then
6196                   defaultval=yes
6197               else
6198                   defaultval=no
6199               fi
6200           fi
6201
6202           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6203 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6204           # Check whether --enable-sockets was given.
6205 if test "${enable_sockets+set}" = set; then
6206   enableval=$enable_sockets;
6207                           if test "$enableval" = yes; then
6208                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6209                           else
6210                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6211                           fi
6212
6213 else
6214
6215                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6216
6217 fi
6218
6219
6220           eval "$wx_cv_use_sockets"
6221
6222           if test x"$enablestring" = xdisable; then
6223             if test $wxUSE_SOCKETS = no; then
6224               result=yes
6225             else
6226               result=no
6227             fi
6228           else
6229             result=$wxUSE_SOCKETS
6230           fi
6231
6232           { echo "$as_me:$LINENO: result: $result" >&5
6233 echo "${ECHO_T}$result" >&6; }
6234
6235
6236           enablestring=
6237           defaultval=$wxUSE_ALL_FEATURES
6238           if test -z "$defaultval"; then
6239               if test x"$enablestring" = xdisable; then
6240                   defaultval=yes
6241               else
6242                   defaultval=no
6243               fi
6244           fi
6245
6246           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6247 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6248           # Check whether --enable-ipv6 was given.
6249 if test "${enable_ipv6+set}" = set; then
6250   enableval=$enable_ipv6;
6251                           if test "$enableval" = yes; then
6252                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6253                           else
6254                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6255                           fi
6256
6257 else
6258
6259                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6260
6261 fi
6262
6263
6264           eval "$wx_cv_use_ipv6"
6265
6266           if test x"$enablestring" = xdisable; then
6267             if test $wxUSE_IPV6 = no; then
6268               result=yes
6269             else
6270               result=no
6271             fi
6272           else
6273             result=$wxUSE_IPV6
6274           fi
6275
6276           { echo "$as_me:$LINENO: result: $result" >&5
6277 echo "${ECHO_T}$result" >&6; }
6278
6279
6280           enablestring=
6281           defaultval=$wxUSE_ALL_FEATURES
6282           if test -z "$defaultval"; then
6283               if test x"$enablestring" = xdisable; then
6284                   defaultval=yes
6285               else
6286                   defaultval=no
6287               fi
6288           fi
6289
6290           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6291 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6292           # Check whether --enable-ole was given.
6293 if test "${enable_ole+set}" = set; then
6294   enableval=$enable_ole;
6295                           if test "$enableval" = yes; then
6296                             wx_cv_use_ole='wxUSE_OLE=yes'
6297                           else
6298                             wx_cv_use_ole='wxUSE_OLE=no'
6299                           fi
6300
6301 else
6302
6303                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6304
6305 fi
6306
6307
6308           eval "$wx_cv_use_ole"
6309
6310           if test x"$enablestring" = xdisable; then
6311             if test $wxUSE_OLE = no; then
6312               result=yes
6313             else
6314               result=no
6315             fi
6316           else
6317             result=$wxUSE_OLE
6318           fi
6319
6320           { echo "$as_me:$LINENO: result: $result" >&5
6321 echo "${ECHO_T}$result" >&6; }
6322
6323
6324           enablestring=
6325           defaultval=$wxUSE_ALL_FEATURES
6326           if test -z "$defaultval"; then
6327               if test x"$enablestring" = xdisable; then
6328                   defaultval=yes
6329               else
6330                   defaultval=no
6331               fi
6332           fi
6333
6334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6335 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6336           # Check whether --enable-dataobj was given.
6337 if test "${enable_dataobj+set}" = set; then
6338   enableval=$enable_dataobj;
6339                           if test "$enableval" = yes; then
6340                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6341                           else
6342                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6343                           fi
6344
6345 else
6346
6347                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6348
6349 fi
6350
6351
6352           eval "$wx_cv_use_dataobj"
6353
6354           if test x"$enablestring" = xdisable; then
6355             if test $wxUSE_DATAOBJ = no; then
6356               result=yes
6357             else
6358               result=no
6359             fi
6360           else
6361             result=$wxUSE_DATAOBJ
6362           fi
6363
6364           { echo "$as_me:$LINENO: result: $result" >&5
6365 echo "${ECHO_T}$result" >&6; }
6366
6367
6368
6369           enablestring=
6370           defaultval=$wxUSE_ALL_FEATURES
6371           if test -z "$defaultval"; then
6372               if test x"$enablestring" = xdisable; then
6373                   defaultval=yes
6374               else
6375                   defaultval=no
6376               fi
6377           fi
6378
6379           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6380 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6381           # Check whether --enable-ipc was given.
6382 if test "${enable_ipc+set}" = set; then
6383   enableval=$enable_ipc;
6384                           if test "$enableval" = yes; then
6385                             wx_cv_use_ipc='wxUSE_IPC=yes'
6386                           else
6387                             wx_cv_use_ipc='wxUSE_IPC=no'
6388                           fi
6389
6390 else
6391
6392                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6393
6394 fi
6395
6396
6397           eval "$wx_cv_use_ipc"
6398
6399           if test x"$enablestring" = xdisable; then
6400             if test $wxUSE_IPC = no; then
6401               result=yes
6402             else
6403               result=no
6404             fi
6405           else
6406             result=$wxUSE_IPC
6407           fi
6408
6409           { echo "$as_me:$LINENO: result: $result" >&5
6410 echo "${ECHO_T}$result" >&6; }
6411
6412
6413
6414           enablestring=
6415           defaultval=$wxUSE_ALL_FEATURES
6416           if test -z "$defaultval"; then
6417               if test x"$enablestring" = xdisable; then
6418                   defaultval=yes
6419               else
6420                   defaultval=no
6421               fi
6422           fi
6423
6424           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6425 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6426           # Check whether --enable-baseevtloop was given.
6427 if test "${enable_baseevtloop+set}" = set; then
6428   enableval=$enable_baseevtloop;
6429                           if test "$enableval" = yes; then
6430                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6431                           else
6432                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6433                           fi
6434
6435 else
6436
6437                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6438
6439 fi
6440
6441
6442           eval "$wx_cv_use_baseevtloop"
6443
6444           if test x"$enablestring" = xdisable; then
6445             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6446               result=yes
6447             else
6448               result=no
6449             fi
6450           else
6451             result=$wxUSE_CONSOLE_EVENTLOOP
6452           fi
6453
6454           { echo "$as_me:$LINENO: result: $result" >&5
6455 echo "${ECHO_T}$result" >&6; }
6456
6457
6458           enablestring=
6459           defaultval=$wxUSE_ALL_FEATURES
6460           if test -z "$defaultval"; then
6461               if test x"$enablestring" = xdisable; then
6462                   defaultval=yes
6463               else
6464                   defaultval=no
6465               fi
6466           fi
6467
6468           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6469 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6470           # Check whether --enable-epollloop was given.
6471 if test "${enable_epollloop+set}" = set; then
6472   enableval=$enable_epollloop;
6473                           if test "$enableval" = yes; then
6474                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6475                           else
6476                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6477                           fi
6478
6479 else
6480
6481                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6482
6483 fi
6484
6485
6486           eval "$wx_cv_use_epollloop"
6487
6488           if test x"$enablestring" = xdisable; then
6489             if test $wxUSE_EPOLL_DISPATCHER = no; then
6490               result=yes
6491             else
6492               result=no
6493             fi
6494           else
6495             result=$wxUSE_EPOLL_DISPATCHER
6496           fi
6497
6498           { echo "$as_me:$LINENO: result: $result" >&5
6499 echo "${ECHO_T}$result" >&6; }
6500
6501
6502           enablestring=
6503           defaultval=$wxUSE_ALL_FEATURES
6504           if test -z "$defaultval"; then
6505               if test x"$enablestring" = xdisable; then
6506                   defaultval=yes
6507               else
6508                   defaultval=no
6509               fi
6510           fi
6511
6512           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6513 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6514           # Check whether --enable-selectloop was given.
6515 if test "${enable_selectloop+set}" = set; then
6516   enableval=$enable_selectloop;
6517                           if test "$enableval" = yes; then
6518                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6519                           else
6520                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6521                           fi
6522
6523 else
6524
6525                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6526
6527 fi
6528
6529
6530           eval "$wx_cv_use_selectloop"
6531
6532           if test x"$enablestring" = xdisable; then
6533             if test $wxUSE_SELECT_DISPATCHER = no; then
6534               result=yes
6535             else
6536               result=no
6537             fi
6538           else
6539             result=$wxUSE_SELECT_DISPATCHER
6540           fi
6541
6542           { echo "$as_me:$LINENO: result: $result" >&5
6543 echo "${ECHO_T}$result" >&6; }
6544
6545
6546
6547           enablestring=
6548           defaultval=$wxUSE_ALL_FEATURES
6549           if test -z "$defaultval"; then
6550               if test x"$enablestring" = xdisable; then
6551                   defaultval=yes
6552               else
6553                   defaultval=no
6554               fi
6555           fi
6556
6557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6558 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6559           # Check whether --enable-any was given.
6560 if test "${enable_any+set}" = set; then
6561   enableval=$enable_any;
6562                           if test "$enableval" = yes; then
6563                             wx_cv_use_any='wxUSE_ANY=yes'
6564                           else
6565                             wx_cv_use_any='wxUSE_ANY=no'
6566                           fi
6567
6568 else
6569
6570                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6571
6572 fi
6573
6574
6575           eval "$wx_cv_use_any"
6576
6577           if test x"$enablestring" = xdisable; then
6578             if test $wxUSE_ANY = no; then
6579               result=yes
6580             else
6581               result=no
6582             fi
6583           else
6584             result=$wxUSE_ANY
6585           fi
6586
6587           { echo "$as_me:$LINENO: result: $result" >&5
6588 echo "${ECHO_T}$result" >&6; }
6589
6590
6591           enablestring=
6592           defaultval=$wxUSE_ALL_FEATURES
6593           if test -z "$defaultval"; then
6594               if test x"$enablestring" = xdisable; then
6595                   defaultval=yes
6596               else
6597                   defaultval=no
6598               fi
6599           fi
6600
6601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6602 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6603           # Check whether --enable-apple_ieee was given.
6604 if test "${enable_apple_ieee+set}" = set; then
6605   enableval=$enable_apple_ieee;
6606                           if test "$enableval" = yes; then
6607                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6608                           else
6609                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6610                           fi
6611
6612 else
6613
6614                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6615
6616 fi
6617
6618
6619           eval "$wx_cv_use_apple_ieee"
6620
6621           if test x"$enablestring" = xdisable; then
6622             if test $wxUSE_APPLE_IEEE = no; then
6623               result=yes
6624             else
6625               result=no
6626             fi
6627           else
6628             result=$wxUSE_APPLE_IEEE
6629           fi
6630
6631           { echo "$as_me:$LINENO: result: $result" >&5
6632 echo "${ECHO_T}$result" >&6; }
6633
6634
6635           enablestring=
6636           defaultval=$wxUSE_ALL_FEATURES
6637           if test -z "$defaultval"; then
6638               if test x"$enablestring" = xdisable; then
6639                   defaultval=yes
6640               else
6641                   defaultval=no
6642               fi
6643           fi
6644
6645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6646 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6647           # Check whether --enable-arcstream was given.
6648 if test "${enable_arcstream+set}" = set; then
6649   enableval=$enable_arcstream;
6650                           if test "$enableval" = yes; then
6651                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6652                           else
6653                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6654                           fi
6655
6656 else
6657
6658                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6659
6660 fi
6661
6662
6663           eval "$wx_cv_use_arcstream"
6664
6665           if test x"$enablestring" = xdisable; then
6666             if test $wxUSE_ARCHIVE_STREAMS = no; then
6667               result=yes
6668             else
6669               result=no
6670             fi
6671           else
6672             result=$wxUSE_ARCHIVE_STREAMS
6673           fi
6674
6675           { echo "$as_me:$LINENO: result: $result" >&5
6676 echo "${ECHO_T}$result" >&6; }
6677
6678
6679           enablestring=
6680           defaultval=$wxUSE_ALL_FEATURES
6681           if test -z "$defaultval"; then
6682               if test x"$enablestring" = xdisable; then
6683                   defaultval=yes
6684               else
6685                   defaultval=no
6686               fi
6687           fi
6688
6689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6690 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6691           # Check whether --enable-base64 was given.
6692 if test "${enable_base64+set}" = set; then
6693   enableval=$enable_base64;
6694                           if test "$enableval" = yes; then
6695                             wx_cv_use_base64='wxUSE_BASE64=yes'
6696                           else
6697                             wx_cv_use_base64='wxUSE_BASE64=no'
6698                           fi
6699
6700 else
6701
6702                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6703
6704 fi
6705
6706
6707           eval "$wx_cv_use_base64"
6708
6709           if test x"$enablestring" = xdisable; then
6710             if test $wxUSE_BASE64 = no; then
6711               result=yes
6712             else
6713               result=no
6714             fi
6715           else
6716             result=$wxUSE_BASE64
6717           fi
6718
6719           { echo "$as_me:$LINENO: result: $result" >&5
6720 echo "${ECHO_T}$result" >&6; }
6721
6722
6723           enablestring=
6724           defaultval=$wxUSE_ALL_FEATURES
6725           if test -z "$defaultval"; then
6726               if test x"$enablestring" = xdisable; then
6727                   defaultval=yes
6728               else
6729                   defaultval=no
6730               fi
6731           fi
6732
6733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6734 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6735           # Check whether --enable-backtrace was given.
6736 if test "${enable_backtrace+set}" = set; then
6737   enableval=$enable_backtrace;
6738                           if test "$enableval" = yes; then
6739                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6740                           else
6741                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6742                           fi
6743
6744 else
6745
6746                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6747
6748 fi
6749
6750
6751           eval "$wx_cv_use_backtrace"
6752
6753           if test x"$enablestring" = xdisable; then
6754             if test $wxUSE_STACKWALKER = no; then
6755               result=yes
6756             else
6757               result=no
6758             fi
6759           else
6760             result=$wxUSE_STACKWALKER
6761           fi
6762
6763           { echo "$as_me:$LINENO: result: $result" >&5
6764 echo "${ECHO_T}$result" >&6; }
6765
6766
6767           enablestring=
6768           defaultval=$wxUSE_ALL_FEATURES
6769           if test -z "$defaultval"; then
6770               if test x"$enablestring" = xdisable; then
6771                   defaultval=yes
6772               else
6773                   defaultval=no
6774               fi
6775           fi
6776
6777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6778 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6779           # Check whether --enable-catch_segvs was given.
6780 if test "${enable_catch_segvs+set}" = set; then
6781   enableval=$enable_catch_segvs;
6782                           if test "$enableval" = yes; then
6783                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6784                           else
6785                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6786                           fi
6787
6788 else
6789
6790                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6791
6792 fi
6793
6794
6795           eval "$wx_cv_use_catch_segvs"
6796
6797           if test x"$enablestring" = xdisable; then
6798             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6799               result=yes
6800             else
6801               result=no
6802             fi
6803           else
6804             result=$wxUSE_ON_FATAL_EXCEPTION
6805           fi
6806
6807           { echo "$as_me:$LINENO: result: $result" >&5
6808 echo "${ECHO_T}$result" >&6; }
6809
6810
6811           enablestring=
6812           defaultval=$wxUSE_ALL_FEATURES
6813           if test -z "$defaultval"; then
6814               if test x"$enablestring" = xdisable; then
6815                   defaultval=yes
6816               else
6817                   defaultval=no
6818               fi
6819           fi
6820
6821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6822 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6823           # Check whether --enable-cmdline was given.
6824 if test "${enable_cmdline+set}" = set; then
6825   enableval=$enable_cmdline;
6826                           if test "$enableval" = yes; then
6827                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6828                           else
6829                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6830                           fi
6831
6832 else
6833
6834                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6835
6836 fi
6837
6838
6839           eval "$wx_cv_use_cmdline"
6840
6841           if test x"$enablestring" = xdisable; then
6842             if test $wxUSE_CMDLINE_PARSER = no; then
6843               result=yes
6844             else
6845               result=no
6846             fi
6847           else
6848             result=$wxUSE_CMDLINE_PARSER
6849           fi
6850
6851           { echo "$as_me:$LINENO: result: $result" >&5
6852 echo "${ECHO_T}$result" >&6; }
6853
6854
6855           enablestring=
6856           defaultval=$wxUSE_ALL_FEATURES
6857           if test -z "$defaultval"; then
6858               if test x"$enablestring" = xdisable; then
6859                   defaultval=yes
6860               else
6861                   defaultval=no
6862               fi
6863           fi
6864
6865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6866 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6867           # Check whether --enable-datetime was given.
6868 if test "${enable_datetime+set}" = set; then
6869   enableval=$enable_datetime;
6870                           if test "$enableval" = yes; then
6871                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6872                           else
6873                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6874                           fi
6875
6876 else
6877
6878                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6879
6880 fi
6881
6882
6883           eval "$wx_cv_use_datetime"
6884
6885           if test x"$enablestring" = xdisable; then
6886             if test $wxUSE_DATETIME = no; then
6887               result=yes
6888             else
6889               result=no
6890             fi
6891           else
6892             result=$wxUSE_DATETIME
6893           fi
6894
6895           { echo "$as_me:$LINENO: result: $result" >&5
6896 echo "${ECHO_T}$result" >&6; }
6897
6898
6899           enablestring=
6900           defaultval=$wxUSE_ALL_FEATURES
6901           if test -z "$defaultval"; then
6902               if test x"$enablestring" = xdisable; then
6903                   defaultval=yes
6904               else
6905                   defaultval=no
6906               fi
6907           fi
6908
6909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6910 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6911           # Check whether --enable-debugreport was given.
6912 if test "${enable_debugreport+set}" = set; then
6913   enableval=$enable_debugreport;
6914                           if test "$enableval" = yes; then
6915                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6916                           else
6917                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6918                           fi
6919
6920 else
6921
6922                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6923
6924 fi
6925
6926
6927           eval "$wx_cv_use_debugreport"
6928
6929           if test x"$enablestring" = xdisable; then
6930             if test $wxUSE_DEBUGREPORT = no; then
6931               result=yes
6932             else
6933               result=no
6934             fi
6935           else
6936             result=$wxUSE_DEBUGREPORT
6937           fi
6938
6939           { echo "$as_me:$LINENO: result: $result" >&5
6940 echo "${ECHO_T}$result" >&6; }
6941
6942
6943           enablestring=
6944           defaultval=$wxUSE_ALL_FEATURES
6945           if test -z "$defaultval"; then
6946               if test x"$enablestring" = xdisable; then
6947                   defaultval=yes
6948               else
6949                   defaultval=no
6950               fi
6951           fi
6952
6953           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6954 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6955           # Check whether --enable-dialupman was given.
6956 if test "${enable_dialupman+set}" = set; then
6957   enableval=$enable_dialupman;
6958                           if test "$enableval" = yes; then
6959                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6960                           else
6961                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6962                           fi
6963
6964 else
6965
6966                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6967
6968 fi
6969
6970
6971           eval "$wx_cv_use_dialupman"
6972
6973           if test x"$enablestring" = xdisable; then
6974             if test $wxUSE_DIALUP_MANAGER = no; then
6975               result=yes
6976             else
6977               result=no
6978             fi
6979           else
6980             result=$wxUSE_DIALUP_MANAGER
6981           fi
6982
6983           { echo "$as_me:$LINENO: result: $result" >&5
6984 echo "${ECHO_T}$result" >&6; }
6985
6986
6987           enablestring=
6988           defaultval=$wxUSE_ALL_FEATURES
6989           if test -z "$defaultval"; then
6990               if test x"$enablestring" = xdisable; then
6991                   defaultval=yes
6992               else
6993                   defaultval=no
6994               fi
6995           fi
6996
6997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6998 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6999           # Check whether --enable-dynlib was given.
7000 if test "${enable_dynlib+set}" = set; then
7001   enableval=$enable_dynlib;
7002                           if test "$enableval" = yes; then
7003                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7004                           else
7005                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7006                           fi
7007
7008 else
7009
7010                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7011
7012 fi
7013
7014
7015           eval "$wx_cv_use_dynlib"
7016
7017           if test x"$enablestring" = xdisable; then
7018             if test $wxUSE_DYNLIB_CLASS = no; then
7019               result=yes
7020             else
7021               result=no
7022             fi
7023           else
7024             result=$wxUSE_DYNLIB_CLASS
7025           fi
7026
7027           { echo "$as_me:$LINENO: result: $result" >&5
7028 echo "${ECHO_T}$result" >&6; }
7029
7030
7031           enablestring=
7032           defaultval=$wxUSE_ALL_FEATURES
7033           if test -z "$defaultval"; then
7034               if test x"$enablestring" = xdisable; then
7035                   defaultval=yes
7036               else
7037                   defaultval=no
7038               fi
7039           fi
7040
7041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7042 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7043           # Check whether --enable-dynamicloader was given.
7044 if test "${enable_dynamicloader+set}" = set; then
7045   enableval=$enable_dynamicloader;
7046                           if test "$enableval" = yes; then
7047                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7048                           else
7049                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7050                           fi
7051
7052 else
7053
7054                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7055
7056 fi
7057
7058
7059           eval "$wx_cv_use_dynamicloader"
7060
7061           if test x"$enablestring" = xdisable; then
7062             if test $wxUSE_DYNAMIC_LOADER = no; then
7063               result=yes
7064             else
7065               result=no
7066             fi
7067           else
7068             result=$wxUSE_DYNAMIC_LOADER
7069           fi
7070
7071           { echo "$as_me:$LINENO: result: $result" >&5
7072 echo "${ECHO_T}$result" >&6; }
7073
7074
7075           enablestring=
7076           defaultval=$wxUSE_ALL_FEATURES
7077           if test -z "$defaultval"; then
7078               if test x"$enablestring" = xdisable; then
7079                   defaultval=yes
7080               else
7081                   defaultval=no
7082               fi
7083           fi
7084
7085           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7086 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7087           # Check whether --enable-exceptions was given.
7088 if test "${enable_exceptions+set}" = set; then
7089   enableval=$enable_exceptions;
7090                           if test "$enableval" = yes; then
7091                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7092                           else
7093                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7094                           fi
7095
7096 else
7097
7098                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7099
7100 fi
7101
7102
7103           eval "$wx_cv_use_exceptions"
7104
7105           if test x"$enablestring" = xdisable; then
7106             if test $wxUSE_EXCEPTIONS = no; then
7107               result=yes
7108             else
7109               result=no
7110             fi
7111           else
7112             result=$wxUSE_EXCEPTIONS
7113           fi
7114
7115           { echo "$as_me:$LINENO: result: $result" >&5
7116 echo "${ECHO_T}$result" >&6; }
7117
7118
7119           enablestring=
7120           defaultval=$wxUSE_ALL_FEATURES
7121           if test -z "$defaultval"; then
7122               if test x"$enablestring" = xdisable; then
7123                   defaultval=yes
7124               else
7125                   defaultval=no
7126               fi
7127           fi
7128
7129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7130 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7131           # Check whether --enable-ffile was given.
7132 if test "${enable_ffile+set}" = set; then
7133   enableval=$enable_ffile;
7134                           if test "$enableval" = yes; then
7135                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7136                           else
7137                             wx_cv_use_ffile='wxUSE_FFILE=no'
7138                           fi
7139
7140 else
7141
7142                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7143
7144 fi
7145
7146
7147           eval "$wx_cv_use_ffile"
7148
7149           if test x"$enablestring" = xdisable; then
7150             if test $wxUSE_FFILE = no; then
7151               result=yes
7152             else
7153               result=no
7154             fi
7155           else
7156             result=$wxUSE_FFILE
7157           fi
7158
7159           { echo "$as_me:$LINENO: result: $result" >&5
7160 echo "${ECHO_T}$result" >&6; }
7161
7162
7163           enablestring=
7164           defaultval=$wxUSE_ALL_FEATURES
7165           if test -z "$defaultval"; then
7166               if test x"$enablestring" = xdisable; then
7167                   defaultval=yes
7168               else
7169                   defaultval=no
7170               fi
7171           fi
7172
7173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7174 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7175           # Check whether --enable-file was given.
7176 if test "${enable_file+set}" = set; then
7177   enableval=$enable_file;
7178                           if test "$enableval" = yes; then
7179                             wx_cv_use_file='wxUSE_FILE=yes'
7180                           else
7181                             wx_cv_use_file='wxUSE_FILE=no'
7182                           fi
7183
7184 else
7185
7186                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7187
7188 fi
7189
7190
7191           eval "$wx_cv_use_file"
7192
7193           if test x"$enablestring" = xdisable; then
7194             if test $wxUSE_FILE = no; then
7195               result=yes
7196             else
7197               result=no
7198             fi
7199           else
7200             result=$wxUSE_FILE
7201           fi
7202
7203           { echo "$as_me:$LINENO: result: $result" >&5
7204 echo "${ECHO_T}$result" >&6; }
7205
7206
7207           enablestring=
7208           defaultval=$wxUSE_ALL_FEATURES
7209           if test -z "$defaultval"; then
7210               if test x"$enablestring" = xdisable; then
7211                   defaultval=yes
7212               else
7213                   defaultval=no
7214               fi
7215           fi
7216
7217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7218 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7219           # Check whether --enable-filehistory was given.
7220 if test "${enable_filehistory+set}" = set; then
7221   enableval=$enable_filehistory;
7222                           if test "$enableval" = yes; then
7223                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7224                           else
7225                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7226                           fi
7227
7228 else
7229
7230                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7231
7232 fi
7233
7234
7235           eval "$wx_cv_use_filehistory"
7236
7237           if test x"$enablestring" = xdisable; then
7238             if test $wxUSE_FILE_HISTORY = no; then
7239               result=yes
7240             else
7241               result=no
7242             fi
7243           else
7244             result=$wxUSE_FILE_HISTORY
7245           fi
7246
7247           { echo "$as_me:$LINENO: result: $result" >&5
7248 echo "${ECHO_T}$result" >&6; }
7249
7250
7251           enablestring=
7252           defaultval=$wxUSE_ALL_FEATURES
7253           if test -z "$defaultval"; then
7254               if test x"$enablestring" = xdisable; then
7255                   defaultval=yes
7256               else
7257                   defaultval=no
7258               fi
7259           fi
7260
7261           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7262 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7263           # Check whether --enable-filesystem was given.
7264 if test "${enable_filesystem+set}" = set; then
7265   enableval=$enable_filesystem;
7266                           if test "$enableval" = yes; then
7267                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7268                           else
7269                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7270                           fi
7271
7272 else
7273
7274                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7275
7276 fi
7277
7278
7279           eval "$wx_cv_use_filesystem"
7280
7281           if test x"$enablestring" = xdisable; then
7282             if test $wxUSE_FILESYSTEM = no; then
7283               result=yes
7284             else
7285               result=no
7286             fi
7287           else
7288             result=$wxUSE_FILESYSTEM
7289           fi
7290
7291           { echo "$as_me:$LINENO: result: $result" >&5
7292 echo "${ECHO_T}$result" >&6; }
7293
7294
7295           enablestring=
7296           defaultval=$wxUSE_ALL_FEATURES
7297           if test -z "$defaultval"; then
7298               if test x"$enablestring" = xdisable; then
7299                   defaultval=yes
7300               else
7301                   defaultval=no
7302               fi
7303           fi
7304
7305           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7306 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7307           # Check whether --enable-fontenum was given.
7308 if test "${enable_fontenum+set}" = set; then
7309   enableval=$enable_fontenum;
7310                           if test "$enableval" = yes; then
7311                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7312                           else
7313                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7314                           fi
7315
7316 else
7317
7318                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7319
7320 fi
7321
7322
7323           eval "$wx_cv_use_fontenum"
7324
7325           if test x"$enablestring" = xdisable; then
7326             if test $wxUSE_FONTENUM = no; then
7327               result=yes
7328             else
7329               result=no
7330             fi
7331           else
7332             result=$wxUSE_FONTENUM
7333           fi
7334
7335           { echo "$as_me:$LINENO: result: $result" >&5
7336 echo "${ECHO_T}$result" >&6; }
7337
7338
7339           enablestring=
7340           defaultval=$wxUSE_ALL_FEATURES
7341           if test -z "$defaultval"; then
7342               if test x"$enablestring" = xdisable; then
7343                   defaultval=yes
7344               else
7345                   defaultval=no
7346               fi
7347           fi
7348
7349           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7350 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7351           # Check whether --enable-fontmap was given.
7352 if test "${enable_fontmap+set}" = set; then
7353   enableval=$enable_fontmap;
7354                           if test "$enableval" = yes; then
7355                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7356                           else
7357                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7358                           fi
7359
7360 else
7361
7362                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7363
7364 fi
7365
7366
7367           eval "$wx_cv_use_fontmap"
7368
7369           if test x"$enablestring" = xdisable; then
7370             if test $wxUSE_FONTMAP = no; then
7371               result=yes
7372             else
7373               result=no
7374             fi
7375           else
7376             result=$wxUSE_FONTMAP
7377           fi
7378
7379           { echo "$as_me:$LINENO: result: $result" >&5
7380 echo "${ECHO_T}$result" >&6; }
7381
7382
7383           enablestring=
7384           defaultval=$wxUSE_ALL_FEATURES
7385           if test -z "$defaultval"; then
7386               if test x"$enablestring" = xdisable; then
7387                   defaultval=yes
7388               else
7389                   defaultval=no
7390               fi
7391           fi
7392
7393           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7394 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7395           # Check whether --enable-fs_archive was given.
7396 if test "${enable_fs_archive+set}" = set; then
7397   enableval=$enable_fs_archive;
7398                           if test "$enableval" = yes; then
7399                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7400                           else
7401                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7402                           fi
7403
7404 else
7405
7406                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7407
7408 fi
7409
7410
7411           eval "$wx_cv_use_fs_archive"
7412
7413           if test x"$enablestring" = xdisable; then
7414             if test $wxUSE_FS_ARCHIVE = no; then
7415               result=yes
7416             else
7417               result=no
7418             fi
7419           else
7420             result=$wxUSE_FS_ARCHIVE
7421           fi
7422
7423           { echo "$as_me:$LINENO: result: $result" >&5
7424 echo "${ECHO_T}$result" >&6; }
7425
7426
7427           enablestring=
7428           defaultval=$wxUSE_ALL_FEATURES
7429           if test -z "$defaultval"; then
7430               if test x"$enablestring" = xdisable; then
7431                   defaultval=yes
7432               else
7433                   defaultval=no
7434               fi
7435           fi
7436
7437           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7438 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7439           # Check whether --enable-fs_inet was given.
7440 if test "${enable_fs_inet+set}" = set; then
7441   enableval=$enable_fs_inet;
7442                           if test "$enableval" = yes; then
7443                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7444                           else
7445                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7446                           fi
7447
7448 else
7449
7450                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7451
7452 fi
7453
7454
7455           eval "$wx_cv_use_fs_inet"
7456
7457           if test x"$enablestring" = xdisable; then
7458             if test $wxUSE_FS_INET = no; then
7459               result=yes
7460             else
7461               result=no
7462             fi
7463           else
7464             result=$wxUSE_FS_INET
7465           fi
7466
7467           { echo "$as_me:$LINENO: result: $result" >&5
7468 echo "${ECHO_T}$result" >&6; }
7469
7470
7471           enablestring=
7472           defaultval=$wxUSE_ALL_FEATURES
7473           if test -z "$defaultval"; then
7474               if test x"$enablestring" = xdisable; then
7475                   defaultval=yes
7476               else
7477                   defaultval=no
7478               fi
7479           fi
7480
7481           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7482 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7483           # Check whether --enable-fs_zip was given.
7484 if test "${enable_fs_zip+set}" = set; then
7485   enableval=$enable_fs_zip;
7486                           if test "$enableval" = yes; then
7487                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7488                           else
7489                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7490                           fi
7491
7492 else
7493
7494                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7495
7496 fi
7497
7498
7499           eval "$wx_cv_use_fs_zip"
7500
7501           if test x"$enablestring" = xdisable; then
7502             if test $wxUSE_FS_ZIP = no; then
7503               result=yes
7504             else
7505               result=no
7506             fi
7507           else
7508             result=$wxUSE_FS_ZIP
7509           fi
7510
7511           { echo "$as_me:$LINENO: result: $result" >&5
7512 echo "${ECHO_T}$result" >&6; }
7513
7514
7515           enablestring=
7516           defaultval=$wxUSE_ALL_FEATURES
7517           if test -z "$defaultval"; then
7518               if test x"$enablestring" = xdisable; then
7519                   defaultval=yes
7520               else
7521                   defaultval=no
7522               fi
7523           fi
7524
7525           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7526 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7527           # Check whether --enable-fswatcher was given.
7528 if test "${enable_fswatcher+set}" = set; then
7529   enableval=$enable_fswatcher;
7530                           if test "$enableval" = yes; then
7531                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7532                           else
7533                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7534                           fi
7535
7536 else
7537
7538                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7539
7540 fi
7541
7542
7543           eval "$wx_cv_use_fswatcher"
7544
7545           if test x"$enablestring" = xdisable; then
7546             if test $wxUSE_FSWATCHER = no; then
7547               result=yes
7548             else
7549               result=no
7550             fi
7551           else
7552             result=$wxUSE_FSWATCHER
7553           fi
7554
7555           { echo "$as_me:$LINENO: result: $result" >&5
7556 echo "${ECHO_T}$result" >&6; }
7557
7558
7559           enablestring=
7560           defaultval=$wxUSE_ALL_FEATURES
7561           if test -z "$defaultval"; then
7562               if test x"$enablestring" = xdisable; then
7563                   defaultval=yes
7564               else
7565                   defaultval=no
7566               fi
7567           fi
7568
7569           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7570 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7571           # Check whether --enable-geometry was given.
7572 if test "${enable_geometry+set}" = set; then
7573   enableval=$enable_geometry;
7574                           if test "$enableval" = yes; then
7575                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7576                           else
7577                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7578                           fi
7579
7580 else
7581
7582                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7583
7584 fi
7585
7586
7587           eval "$wx_cv_use_geometry"
7588
7589           if test x"$enablestring" = xdisable; then
7590             if test $wxUSE_GEOMETRY = no; then
7591               result=yes
7592             else
7593               result=no
7594             fi
7595           else
7596             result=$wxUSE_GEOMETRY
7597           fi
7598
7599           { echo "$as_me:$LINENO: result: $result" >&5
7600 echo "${ECHO_T}$result" >&6; }
7601
7602
7603           enablestring=
7604           defaultval=$wxUSE_ALL_FEATURES
7605           if test -z "$defaultval"; then
7606               if test x"$enablestring" = xdisable; then
7607                   defaultval=yes
7608               else
7609                   defaultval=no
7610               fi
7611           fi
7612
7613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7614 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7615           # Check whether --enable-log was given.
7616 if test "${enable_log+set}" = set; then
7617   enableval=$enable_log;
7618                           if test "$enableval" = yes; then
7619                             wx_cv_use_log='wxUSE_LOG=yes'
7620                           else
7621                             wx_cv_use_log='wxUSE_LOG=no'
7622                           fi
7623
7624 else
7625
7626                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7627
7628 fi
7629
7630
7631           eval "$wx_cv_use_log"
7632
7633           if test x"$enablestring" = xdisable; then
7634             if test $wxUSE_LOG = no; then
7635               result=yes
7636             else
7637               result=no
7638             fi
7639           else
7640             result=$wxUSE_LOG
7641           fi
7642
7643           { echo "$as_me:$LINENO: result: $result" >&5
7644 echo "${ECHO_T}$result" >&6; }
7645
7646
7647           enablestring=
7648           defaultval=$wxUSE_ALL_FEATURES
7649           if test -z "$defaultval"; then
7650               if test x"$enablestring" = xdisable; then
7651                   defaultval=yes
7652               else
7653                   defaultval=no
7654               fi
7655           fi
7656
7657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7658 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7659           # Check whether --enable-longlong was given.
7660 if test "${enable_longlong+set}" = set; then
7661   enableval=$enable_longlong;
7662                           if test "$enableval" = yes; then
7663                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7664                           else
7665                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7666                           fi
7667
7668 else
7669
7670                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7671
7672 fi
7673
7674
7675           eval "$wx_cv_use_longlong"
7676
7677           if test x"$enablestring" = xdisable; then
7678             if test $wxUSE_LONGLONG = no; then
7679               result=yes
7680             else
7681               result=no
7682             fi
7683           else
7684             result=$wxUSE_LONGLONG
7685           fi
7686
7687           { echo "$as_me:$LINENO: result: $result" >&5
7688 echo "${ECHO_T}$result" >&6; }
7689
7690
7691           enablestring=
7692           defaultval=$wxUSE_ALL_FEATURES
7693           if test -z "$defaultval"; then
7694               if test x"$enablestring" = xdisable; then
7695                   defaultval=yes
7696               else
7697                   defaultval=no
7698               fi
7699           fi
7700
7701           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7702 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7703           # Check whether --enable-mimetype was given.
7704 if test "${enable_mimetype+set}" = set; then
7705   enableval=$enable_mimetype;
7706                           if test "$enableval" = yes; then
7707                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7708                           else
7709                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7710                           fi
7711
7712 else
7713
7714                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7715
7716 fi
7717
7718
7719           eval "$wx_cv_use_mimetype"
7720
7721           if test x"$enablestring" = xdisable; then
7722             if test $wxUSE_MIMETYPE = no; then
7723               result=yes
7724             else
7725               result=no
7726             fi
7727           else
7728             result=$wxUSE_MIMETYPE
7729           fi
7730
7731           { echo "$as_me:$LINENO: result: $result" >&5
7732 echo "${ECHO_T}$result" >&6; }
7733
7734
7735           enablestring=
7736           defaultval=$wxUSE_ALL_FEATURES
7737           if test -z "$defaultval"; then
7738               if test x"$enablestring" = xdisable; then
7739                   defaultval=yes
7740               else
7741                   defaultval=no
7742               fi
7743           fi
7744
7745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7746 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7747           # Check whether --enable-printfposparam was given.
7748 if test "${enable_printfposparam+set}" = set; then
7749   enableval=$enable_printfposparam;
7750                           if test "$enableval" = yes; then
7751                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7752                           else
7753                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7754                           fi
7755
7756 else
7757
7758                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7759
7760 fi
7761
7762
7763           eval "$wx_cv_use_printfposparam"
7764
7765           if test x"$enablestring" = xdisable; then
7766             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7767               result=yes
7768             else
7769               result=no
7770             fi
7771           else
7772             result=$wxUSE_PRINTF_POS_PARAMS
7773           fi
7774
7775           { echo "$as_me:$LINENO: result: $result" >&5
7776 echo "${ECHO_T}$result" >&6; }
7777
7778
7779           enablestring=
7780           defaultval=$wxUSE_ALL_FEATURES
7781           if test -z "$defaultval"; then
7782               if test x"$enablestring" = xdisable; then
7783                   defaultval=yes
7784               else
7785                   defaultval=no
7786               fi
7787           fi
7788
7789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7790 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7791           # Check whether --enable-snglinst was given.
7792 if test "${enable_snglinst+set}" = set; then
7793   enableval=$enable_snglinst;
7794                           if test "$enableval" = yes; then
7795                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7796                           else
7797                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7798                           fi
7799
7800 else
7801
7802                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7803
7804 fi
7805
7806
7807           eval "$wx_cv_use_snglinst"
7808
7809           if test x"$enablestring" = xdisable; then
7810             if test $wxUSE_SNGLINST_CHECKER = no; then
7811               result=yes
7812             else
7813               result=no
7814             fi
7815           else
7816             result=$wxUSE_SNGLINST_CHECKER
7817           fi
7818
7819           { echo "$as_me:$LINENO: result: $result" >&5
7820 echo "${ECHO_T}$result" >&6; }
7821
7822
7823           enablestring=
7824           defaultval=$wxUSE_ALL_FEATURES
7825           if test -z "$defaultval"; then
7826               if test x"$enablestring" = xdisable; then
7827                   defaultval=yes
7828               else
7829                   defaultval=no
7830               fi
7831           fi
7832
7833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7834 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7835           # Check whether --enable-sound was given.
7836 if test "${enable_sound+set}" = set; then
7837   enableval=$enable_sound;
7838                           if test "$enableval" = yes; then
7839                             wx_cv_use_sound='wxUSE_SOUND=yes'
7840                           else
7841                             wx_cv_use_sound='wxUSE_SOUND=no'
7842                           fi
7843
7844 else
7845
7846                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7847
7848 fi
7849
7850
7851           eval "$wx_cv_use_sound"
7852
7853           if test x"$enablestring" = xdisable; then
7854             if test $wxUSE_SOUND = no; then
7855               result=yes
7856             else
7857               result=no
7858             fi
7859           else
7860             result=$wxUSE_SOUND
7861           fi
7862
7863           { echo "$as_me:$LINENO: result: $result" >&5
7864 echo "${ECHO_T}$result" >&6; }
7865
7866
7867           enablestring=
7868           defaultval=$wxUSE_ALL_FEATURES
7869           if test -z "$defaultval"; then
7870               if test x"$enablestring" = xdisable; then
7871                   defaultval=yes
7872               else
7873                   defaultval=no
7874               fi
7875           fi
7876
7877           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7878 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7879           # Check whether --enable-stdpaths was given.
7880 if test "${enable_stdpaths+set}" = set; then
7881   enableval=$enable_stdpaths;
7882                           if test "$enableval" = yes; then
7883                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7884                           else
7885                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7886                           fi
7887
7888 else
7889
7890                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7891
7892 fi
7893
7894
7895           eval "$wx_cv_use_stdpaths"
7896
7897           if test x"$enablestring" = xdisable; then
7898             if test $wxUSE_STDPATHS = no; then
7899               result=yes
7900             else
7901               result=no
7902             fi
7903           else
7904             result=$wxUSE_STDPATHS
7905           fi
7906
7907           { echo "$as_me:$LINENO: result: $result" >&5
7908 echo "${ECHO_T}$result" >&6; }
7909
7910
7911           enablestring=
7912           defaultval=$wxUSE_ALL_FEATURES
7913           if test -z "$defaultval"; then
7914               if test x"$enablestring" = xdisable; then
7915                   defaultval=yes
7916               else
7917                   defaultval=no
7918               fi
7919           fi
7920
7921           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7922 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7923           # Check whether --enable-stopwatch was given.
7924 if test "${enable_stopwatch+set}" = set; then
7925   enableval=$enable_stopwatch;
7926                           if test "$enableval" = yes; then
7927                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7928                           else
7929                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7930                           fi
7931
7932 else
7933
7934                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7935
7936 fi
7937
7938
7939           eval "$wx_cv_use_stopwatch"
7940
7941           if test x"$enablestring" = xdisable; then
7942             if test $wxUSE_STOPWATCH = no; then
7943               result=yes
7944             else
7945               result=no
7946             fi
7947           else
7948             result=$wxUSE_STOPWATCH
7949           fi
7950
7951           { echo "$as_me:$LINENO: result: $result" >&5
7952 echo "${ECHO_T}$result" >&6; }
7953
7954
7955           enablestring=
7956           defaultval=$wxUSE_ALL_FEATURES
7957           if test -z "$defaultval"; then
7958               if test x"$enablestring" = xdisable; then
7959                   defaultval=yes
7960               else
7961                   defaultval=no
7962               fi
7963           fi
7964
7965           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7966 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7967           # Check whether --enable-streams was given.
7968 if test "${enable_streams+set}" = set; then
7969   enableval=$enable_streams;
7970                           if test "$enableval" = yes; then
7971                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7972                           else
7973                             wx_cv_use_streams='wxUSE_STREAMS=no'
7974                           fi
7975
7976 else
7977
7978                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7979
7980 fi
7981
7982
7983           eval "$wx_cv_use_streams"
7984
7985           if test x"$enablestring" = xdisable; then
7986             if test $wxUSE_STREAMS = no; then
7987               result=yes
7988             else
7989               result=no
7990             fi
7991           else
7992             result=$wxUSE_STREAMS
7993           fi
7994
7995           { echo "$as_me:$LINENO: result: $result" >&5
7996 echo "${ECHO_T}$result" >&6; }
7997
7998
7999           enablestring=
8000           defaultval=$wxUSE_ALL_FEATURES
8001           if test -z "$defaultval"; then
8002               if test x"$enablestring" = xdisable; then
8003                   defaultval=yes
8004               else
8005                   defaultval=no
8006               fi
8007           fi
8008
8009           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
8010 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
8011           # Check whether --enable-sysoptions was given.
8012 if test "${enable_sysoptions+set}" = set; then
8013   enableval=$enable_sysoptions;
8014                           if test "$enableval" = yes; then
8015                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
8016                           else
8017                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
8018                           fi
8019
8020 else
8021
8022                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8023
8024 fi
8025
8026
8027           eval "$wx_cv_use_sysoptions"
8028
8029           if test x"$enablestring" = xdisable; then
8030             if test $wxUSE_SYSTEM_OPTIONS = no; then
8031               result=yes
8032             else
8033               result=no
8034             fi
8035           else
8036             result=$wxUSE_SYSTEM_OPTIONS
8037           fi
8038
8039           { echo "$as_me:$LINENO: result: $result" >&5
8040 echo "${ECHO_T}$result" >&6; }
8041
8042
8043           enablestring=
8044           defaultval=$wxUSE_ALL_FEATURES
8045           if test -z "$defaultval"; then
8046               if test x"$enablestring" = xdisable; then
8047                   defaultval=yes
8048               else
8049                   defaultval=no
8050               fi
8051           fi
8052
8053           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8054 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8055           # Check whether --enable-tarstream was given.
8056 if test "${enable_tarstream+set}" = set; then
8057   enableval=$enable_tarstream;
8058                           if test "$enableval" = yes; then
8059                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8060                           else
8061                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8062                           fi
8063
8064 else
8065
8066                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8067
8068 fi
8069
8070
8071           eval "$wx_cv_use_tarstream"
8072
8073           if test x"$enablestring" = xdisable; then
8074             if test $wxUSE_TARSTREAM = no; then
8075               result=yes
8076             else
8077               result=no
8078             fi
8079           else
8080             result=$wxUSE_TARSTREAM
8081           fi
8082
8083           { echo "$as_me:$LINENO: result: $result" >&5
8084 echo "${ECHO_T}$result" >&6; }
8085
8086
8087           enablestring=
8088           defaultval=$wxUSE_ALL_FEATURES
8089           if test -z "$defaultval"; then
8090               if test x"$enablestring" = xdisable; then
8091                   defaultval=yes
8092               else
8093                   defaultval=no
8094               fi
8095           fi
8096
8097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8098 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8099           # Check whether --enable-textbuf was given.
8100 if test "${enable_textbuf+set}" = set; then
8101   enableval=$enable_textbuf;
8102                           if test "$enableval" = yes; then
8103                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8104                           else
8105                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8106                           fi
8107
8108 else
8109
8110                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8111
8112 fi
8113
8114
8115           eval "$wx_cv_use_textbuf"
8116
8117           if test x"$enablestring" = xdisable; then
8118             if test $wxUSE_TEXTBUFFER = no; then
8119               result=yes
8120             else
8121               result=no
8122             fi
8123           else
8124             result=$wxUSE_TEXTBUFFER
8125           fi
8126
8127           { echo "$as_me:$LINENO: result: $result" >&5
8128 echo "${ECHO_T}$result" >&6; }
8129
8130
8131           enablestring=
8132           defaultval=$wxUSE_ALL_FEATURES
8133           if test -z "$defaultval"; then
8134               if test x"$enablestring" = xdisable; then
8135                   defaultval=yes
8136               else
8137                   defaultval=no
8138               fi
8139           fi
8140
8141           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8142 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8143           # Check whether --enable-textfile was given.
8144 if test "${enable_textfile+set}" = set; then
8145   enableval=$enable_textfile;
8146                           if test "$enableval" = yes; then
8147                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8148                           else
8149                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8150                           fi
8151
8152 else
8153
8154                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8155
8156 fi
8157
8158
8159           eval "$wx_cv_use_textfile"
8160
8161           if test x"$enablestring" = xdisable; then
8162             if test $wxUSE_TEXTFILE = no; then
8163               result=yes
8164             else
8165               result=no
8166             fi
8167           else
8168             result=$wxUSE_TEXTFILE
8169           fi
8170
8171           { echo "$as_me:$LINENO: result: $result" >&5
8172 echo "${ECHO_T}$result" >&6; }
8173
8174
8175           enablestring=
8176           defaultval=$wxUSE_ALL_FEATURES
8177           if test -z "$defaultval"; then
8178               if test x"$enablestring" = xdisable; then
8179                   defaultval=yes
8180               else
8181                   defaultval=no
8182               fi
8183           fi
8184
8185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8186 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8187           # Check whether --enable-timer was given.
8188 if test "${enable_timer+set}" = set; then
8189   enableval=$enable_timer;
8190                           if test "$enableval" = yes; then
8191                             wx_cv_use_timer='wxUSE_TIMER=yes'
8192                           else
8193                             wx_cv_use_timer='wxUSE_TIMER=no'
8194                           fi
8195
8196 else
8197
8198                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8199
8200 fi
8201
8202
8203           eval "$wx_cv_use_timer"
8204
8205           if test x"$enablestring" = xdisable; then
8206             if test $wxUSE_TIMER = no; then
8207               result=yes
8208             else
8209               result=no
8210             fi
8211           else
8212             result=$wxUSE_TIMER
8213           fi
8214
8215           { echo "$as_me:$LINENO: result: $result" >&5
8216 echo "${ECHO_T}$result" >&6; }
8217
8218
8219           enablestring=
8220           defaultval=$wxUSE_ALL_FEATURES
8221           if test -z "$defaultval"; then
8222               if test x"$enablestring" = xdisable; then
8223                   defaultval=yes
8224               else
8225                   defaultval=no
8226               fi
8227           fi
8228
8229           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8230 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8231           # Check whether --enable-variant was given.
8232 if test "${enable_variant+set}" = set; then
8233   enableval=$enable_variant;
8234                           if test "$enableval" = yes; then
8235                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8236                           else
8237                             wx_cv_use_variant='wxUSE_VARIANT=no'
8238                           fi
8239
8240 else
8241
8242                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8243
8244 fi
8245
8246
8247           eval "$wx_cv_use_variant"
8248
8249           if test x"$enablestring" = xdisable; then
8250             if test $wxUSE_VARIANT = no; then
8251               result=yes
8252             else
8253               result=no
8254             fi
8255           else
8256             result=$wxUSE_VARIANT
8257           fi
8258
8259           { echo "$as_me:$LINENO: result: $result" >&5
8260 echo "${ECHO_T}$result" >&6; }
8261
8262
8263           enablestring=
8264           defaultval=$wxUSE_ALL_FEATURES
8265           if test -z "$defaultval"; then
8266               if test x"$enablestring" = xdisable; then
8267                   defaultval=yes
8268               else
8269                   defaultval=no
8270               fi
8271           fi
8272
8273           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8274 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8275           # Check whether --enable-zipstream was given.
8276 if test "${enable_zipstream+set}" = set; then
8277   enableval=$enable_zipstream;
8278                           if test "$enableval" = yes; then
8279                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8280                           else
8281                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8282                           fi
8283
8284 else
8285
8286                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8287
8288 fi
8289
8290
8291           eval "$wx_cv_use_zipstream"
8292
8293           if test x"$enablestring" = xdisable; then
8294             if test $wxUSE_ZIPSTREAM = no; then
8295               result=yes
8296             else
8297               result=no
8298             fi
8299           else
8300             result=$wxUSE_ZIPSTREAM
8301           fi
8302
8303           { echo "$as_me:$LINENO: result: $result" >&5
8304 echo "${ECHO_T}$result" >&6; }
8305
8306
8307
8308           enablestring=
8309           defaultval=$wxUSE_ALL_FEATURES
8310           if test -z "$defaultval"; then
8311               if test x"$enablestring" = xdisable; then
8312                   defaultval=yes
8313               else
8314                   defaultval=no
8315               fi
8316           fi
8317
8318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8319 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8320           # Check whether --enable-url was given.
8321 if test "${enable_url+set}" = set; then
8322   enableval=$enable_url;
8323                           if test "$enableval" = yes; then
8324                             wx_cv_use_url='wxUSE_URL=yes'
8325                           else
8326                             wx_cv_use_url='wxUSE_URL=no'
8327                           fi
8328
8329 else
8330
8331                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8332
8333 fi
8334
8335
8336           eval "$wx_cv_use_url"
8337
8338           if test x"$enablestring" = xdisable; then
8339             if test $wxUSE_URL = no; then
8340               result=yes
8341             else
8342               result=no
8343             fi
8344           else
8345             result=$wxUSE_URL
8346           fi
8347
8348           { echo "$as_me:$LINENO: result: $result" >&5
8349 echo "${ECHO_T}$result" >&6; }
8350
8351
8352           enablestring=
8353           defaultval=$wxUSE_ALL_FEATURES
8354           if test -z "$defaultval"; then
8355               if test x"$enablestring" = xdisable; then
8356                   defaultval=yes
8357               else
8358                   defaultval=no
8359               fi
8360           fi
8361
8362           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8363 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8364           # Check whether --enable-protocol was given.
8365 if test "${enable_protocol+set}" = set; then
8366   enableval=$enable_protocol;
8367                           if test "$enableval" = yes; then
8368                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8369                           else
8370                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8371                           fi
8372
8373 else
8374
8375                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8376
8377 fi
8378
8379
8380           eval "$wx_cv_use_protocol"
8381
8382           if test x"$enablestring" = xdisable; then
8383             if test $wxUSE_PROTOCOL = no; then
8384               result=yes
8385             else
8386               result=no
8387             fi
8388           else
8389             result=$wxUSE_PROTOCOL
8390           fi
8391
8392           { echo "$as_me:$LINENO: result: $result" >&5
8393 echo "${ECHO_T}$result" >&6; }
8394
8395
8396           enablestring=
8397           defaultval=$wxUSE_ALL_FEATURES
8398           if test -z "$defaultval"; then
8399               if test x"$enablestring" = xdisable; then
8400                   defaultval=yes
8401               else
8402                   defaultval=no
8403               fi
8404           fi
8405
8406           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8407 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8408           # Check whether --enable-protocol_http was given.
8409 if test "${enable_protocol_http+set}" = set; then
8410   enableval=$enable_protocol_http;
8411                           if test "$enableval" = yes; then
8412                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8413                           else
8414                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8415                           fi
8416
8417 else
8418
8419                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8420
8421 fi
8422
8423
8424           eval "$wx_cv_use_protocol_http"
8425
8426           if test x"$enablestring" = xdisable; then
8427             if test $wxUSE_PROTOCOL_HTTP = no; then
8428               result=yes
8429             else
8430               result=no
8431             fi
8432           else
8433             result=$wxUSE_PROTOCOL_HTTP
8434           fi
8435
8436           { echo "$as_me:$LINENO: result: $result" >&5
8437 echo "${ECHO_T}$result" >&6; }
8438
8439
8440           enablestring=
8441           defaultval=$wxUSE_ALL_FEATURES
8442           if test -z "$defaultval"; then
8443               if test x"$enablestring" = xdisable; then
8444                   defaultval=yes
8445               else
8446                   defaultval=no
8447               fi
8448           fi
8449
8450           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8451 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8452           # Check whether --enable-protocol_ftp was given.
8453 if test "${enable_protocol_ftp+set}" = set; then
8454   enableval=$enable_protocol_ftp;
8455                           if test "$enableval" = yes; then
8456                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8457                           else
8458                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8459                           fi
8460
8461 else
8462
8463                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8464
8465 fi
8466
8467
8468           eval "$wx_cv_use_protocol_ftp"
8469
8470           if test x"$enablestring" = xdisable; then
8471             if test $wxUSE_PROTOCOL_FTP = no; then
8472               result=yes
8473             else
8474               result=no
8475             fi
8476           else
8477             result=$wxUSE_PROTOCOL_FTP
8478           fi
8479
8480           { echo "$as_me:$LINENO: result: $result" >&5
8481 echo "${ECHO_T}$result" >&6; }
8482
8483
8484           enablestring=
8485           defaultval=$wxUSE_ALL_FEATURES
8486           if test -z "$defaultval"; then
8487               if test x"$enablestring" = xdisable; then
8488                   defaultval=yes
8489               else
8490                   defaultval=no
8491               fi
8492           fi
8493
8494           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8495 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8496           # Check whether --enable-protocol_file was given.
8497 if test "${enable_protocol_file+set}" = set; then
8498   enableval=$enable_protocol_file;
8499                           if test "$enableval" = yes; then
8500                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8501                           else
8502                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8503                           fi
8504
8505 else
8506
8507                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8508
8509 fi
8510
8511
8512           eval "$wx_cv_use_protocol_file"
8513
8514           if test x"$enablestring" = xdisable; then
8515             if test $wxUSE_PROTOCOL_FILE = no; then
8516               result=yes
8517             else
8518               result=no
8519             fi
8520           else
8521             result=$wxUSE_PROTOCOL_FILE
8522           fi
8523
8524           { echo "$as_me:$LINENO: result: $result" >&5
8525 echo "${ECHO_T}$result" >&6; }
8526
8527
8528
8529           enablestring=
8530           defaultval=$wxUSE_ALL_FEATURES
8531           if test -z "$defaultval"; then
8532               if test x"$enablestring" = xdisable; then
8533                   defaultval=yes
8534               else
8535                   defaultval=no
8536               fi
8537           fi
8538
8539           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8540 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8541           # Check whether --enable-threads was given.
8542 if test "${enable_threads+set}" = set; then
8543   enableval=$enable_threads;
8544                           if test "$enableval" = yes; then
8545                             wx_cv_use_threads='wxUSE_THREADS=yes'
8546                           else
8547                             wx_cv_use_threads='wxUSE_THREADS=no'
8548                           fi
8549
8550 else
8551
8552                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8553
8554 fi
8555
8556
8557           eval "$wx_cv_use_threads"
8558
8559           if test x"$enablestring" = xdisable; then
8560             if test $wxUSE_THREADS = no; then
8561               result=yes
8562             else
8563               result=no
8564             fi
8565           else
8566             result=$wxUSE_THREADS
8567           fi
8568
8569           { echo "$as_me:$LINENO: result: $result" >&5
8570 echo "${ECHO_T}$result" >&6; }
8571
8572
8573
8574           enablestring=
8575           defaultval=
8576           if test -z "$defaultval"; then
8577               if test x"$enablestring" = xdisable; then
8578                   defaultval=yes
8579               else
8580                   defaultval=no
8581               fi
8582           fi
8583
8584           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8585 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8586           # Check whether --enable-iniconf was given.
8587 if test "${enable_iniconf+set}" = set; then
8588   enableval=$enable_iniconf;
8589                           if test "$enableval" = yes; then
8590                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8591                           else
8592                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8593                           fi
8594
8595 else
8596
8597                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8598
8599 fi
8600
8601
8602           eval "$wx_cv_use_iniconf"
8603
8604           if test x"$enablestring" = xdisable; then
8605             if test $wxUSE_INICONF = no; then
8606               result=yes
8607             else
8608               result=no
8609             fi
8610           else
8611             result=$wxUSE_INICONF
8612           fi
8613
8614           { echo "$as_me:$LINENO: result: $result" >&5
8615 echo "${ECHO_T}$result" >&6; }
8616
8617
8618           enablestring=
8619           defaultval=$wxUSE_ALL_FEATURES
8620           if test -z "$defaultval"; then
8621               if test x"$enablestring" = xdisable; then
8622                   defaultval=yes
8623               else
8624                   defaultval=no
8625               fi
8626           fi
8627
8628           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8629 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8630           # Check whether --enable-regkey was given.
8631 if test "${enable_regkey+set}" = set; then
8632   enableval=$enable_regkey;
8633                           if test "$enableval" = yes; then
8634                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8635                           else
8636                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8637                           fi
8638
8639 else
8640
8641                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8642
8643 fi
8644
8645
8646           eval "$wx_cv_use_regkey"
8647
8648           if test x"$enablestring" = xdisable; then
8649             if test $wxUSE_REGKEY = no; then
8650               result=yes
8651             else
8652               result=no
8653             fi
8654           else
8655             result=$wxUSE_REGKEY
8656           fi
8657
8658           { echo "$as_me:$LINENO: result: $result" >&5
8659 echo "${ECHO_T}$result" >&6; }
8660
8661
8662 if test "$wxUSE_GUI" = "yes"; then
8663
8664
8665
8666           enablestring=
8667           defaultval=$wxUSE_ALL_FEATURES
8668           if test -z "$defaultval"; then
8669               if test x"$enablestring" = xdisable; then
8670                   defaultval=yes
8671               else
8672                   defaultval=no
8673               fi
8674           fi
8675
8676           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8677 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8678           # Check whether --enable-docview was given.
8679 if test "${enable_docview+set}" = set; then
8680   enableval=$enable_docview;
8681                           if test "$enableval" = yes; then
8682                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8683                           else
8684                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8685                           fi
8686
8687 else
8688
8689                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8690
8691 fi
8692
8693
8694           eval "$wx_cv_use_docview"
8695
8696           if test x"$enablestring" = xdisable; then
8697             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8698               result=yes
8699             else
8700               result=no
8701             fi
8702           else
8703             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8704           fi
8705
8706           { echo "$as_me:$LINENO: result: $result" >&5
8707 echo "${ECHO_T}$result" >&6; }
8708
8709
8710           enablestring=
8711           defaultval=$wxUSE_ALL_FEATURES
8712           if test -z "$defaultval"; then
8713               if test x"$enablestring" = xdisable; then
8714                   defaultval=yes
8715               else
8716                   defaultval=no
8717               fi
8718           fi
8719
8720           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8721 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8722           # Check whether --enable-help was given.
8723 if test "${enable_help+set}" = set; then
8724   enableval=$enable_help;
8725                           if test "$enableval" = yes; then
8726                             wx_cv_use_help='wxUSE_HELP=yes'
8727                           else
8728                             wx_cv_use_help='wxUSE_HELP=no'
8729                           fi
8730
8731 else
8732
8733                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8734
8735 fi
8736
8737
8738           eval "$wx_cv_use_help"
8739
8740           if test x"$enablestring" = xdisable; then
8741             if test $wxUSE_HELP = no; then
8742               result=yes
8743             else
8744               result=no
8745             fi
8746           else
8747             result=$wxUSE_HELP
8748           fi
8749
8750           { echo "$as_me:$LINENO: result: $result" >&5
8751 echo "${ECHO_T}$result" >&6; }
8752
8753
8754           enablestring=
8755           defaultval=$wxUSE_ALL_FEATURES
8756           if test -z "$defaultval"; then
8757               if test x"$enablestring" = xdisable; then
8758                   defaultval=yes
8759               else
8760                   defaultval=no
8761               fi
8762           fi
8763
8764           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8765 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8766           # Check whether --enable-mshtmlhelp was given.
8767 if test "${enable_mshtmlhelp+set}" = set; then
8768   enableval=$enable_mshtmlhelp;
8769                           if test "$enableval" = yes; then
8770                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8771                           else
8772                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8773                           fi
8774
8775 else
8776
8777                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8778
8779 fi
8780
8781
8782           eval "$wx_cv_use_mshtmlhelp"
8783
8784           if test x"$enablestring" = xdisable; then
8785             if test $wxUSE_MS_HTML_HELP = no; then
8786               result=yes
8787             else
8788               result=no
8789             fi
8790           else
8791             result=$wxUSE_MS_HTML_HELP
8792           fi
8793
8794           { echo "$as_me:$LINENO: result: $result" >&5
8795 echo "${ECHO_T}$result" >&6; }
8796
8797
8798           enablestring=
8799           defaultval=$wxUSE_ALL_FEATURES
8800           if test -z "$defaultval"; then
8801               if test x"$enablestring" = xdisable; then
8802                   defaultval=yes
8803               else
8804                   defaultval=no
8805               fi
8806           fi
8807
8808           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8809 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8810           # Check whether --enable-html was given.
8811 if test "${enable_html+set}" = set; then
8812   enableval=$enable_html;
8813                           if test "$enableval" = yes; then
8814                             wx_cv_use_html='wxUSE_HTML=yes'
8815                           else
8816                             wx_cv_use_html='wxUSE_HTML=no'
8817                           fi
8818
8819 else
8820
8821                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8822
8823 fi
8824
8825
8826           eval "$wx_cv_use_html"
8827
8828           if test x"$enablestring" = xdisable; then
8829             if test $wxUSE_HTML = no; then
8830               result=yes
8831             else
8832               result=no
8833             fi
8834           else
8835             result=$wxUSE_HTML
8836           fi
8837
8838           { echo "$as_me:$LINENO: result: $result" >&5
8839 echo "${ECHO_T}$result" >&6; }
8840
8841
8842           enablestring=
8843           defaultval=$wxUSE_ALL_FEATURES
8844           if test -z "$defaultval"; then
8845               if test x"$enablestring" = xdisable; then
8846                   defaultval=yes
8847               else
8848                   defaultval=no
8849               fi
8850           fi
8851
8852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8853 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8854           # Check whether --enable-htmlhelp was given.
8855 if test "${enable_htmlhelp+set}" = set; then
8856   enableval=$enable_htmlhelp;
8857                           if test "$enableval" = yes; then
8858                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8859                           else
8860                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8861                           fi
8862
8863 else
8864
8865                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8866
8867 fi
8868
8869
8870           eval "$wx_cv_use_htmlhelp"
8871
8872           if test x"$enablestring" = xdisable; then
8873             if test $wxUSE_WXHTML_HELP = no; then
8874               result=yes
8875             else
8876               result=no
8877             fi
8878           else
8879             result=$wxUSE_WXHTML_HELP
8880           fi
8881
8882           { echo "$as_me:$LINENO: result: $result" >&5
8883 echo "${ECHO_T}$result" >&6; }
8884
8885
8886           enablestring=
8887           defaultval=$wxUSE_ALL_FEATURES
8888           if test -z "$defaultval"; then
8889               if test x"$enablestring" = xdisable; then
8890                   defaultval=yes
8891               else
8892                   defaultval=no
8893               fi
8894           fi
8895
8896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8897 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8898           # Check whether --enable-xrc was given.
8899 if test "${enable_xrc+set}" = set; then
8900   enableval=$enable_xrc;
8901                           if test "$enableval" = yes; then
8902                             wx_cv_use_xrc='wxUSE_XRC=yes'
8903                           else
8904                             wx_cv_use_xrc='wxUSE_XRC=no'
8905                           fi
8906
8907 else
8908
8909                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8910
8911 fi
8912
8913
8914           eval "$wx_cv_use_xrc"
8915
8916           if test x"$enablestring" = xdisable; then
8917             if test $wxUSE_XRC = no; then
8918               result=yes
8919             else
8920               result=no
8921             fi
8922           else
8923             result=$wxUSE_XRC
8924           fi
8925
8926           { echo "$as_me:$LINENO: result: $result" >&5
8927 echo "${ECHO_T}$result" >&6; }
8928
8929
8930           enablestring=
8931           defaultval=$wxUSE_ALL_FEATURES
8932           if test -z "$defaultval"; then
8933               if test x"$enablestring" = xdisable; then
8934                   defaultval=yes
8935               else
8936                   defaultval=no
8937               fi
8938           fi
8939
8940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8941 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8942           # Check whether --enable-aui was given.
8943 if test "${enable_aui+set}" = set; then
8944   enableval=$enable_aui;
8945                           if test "$enableval" = yes; then
8946                             wx_cv_use_aui='wxUSE_AUI=yes'
8947                           else
8948                             wx_cv_use_aui='wxUSE_AUI=no'
8949                           fi
8950
8951 else
8952
8953                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8954
8955 fi
8956
8957
8958           eval "$wx_cv_use_aui"
8959
8960           if test x"$enablestring" = xdisable; then
8961             if test $wxUSE_AUI = no; then
8962               result=yes
8963             else
8964               result=no
8965             fi
8966           else
8967             result=$wxUSE_AUI
8968           fi
8969
8970           { echo "$as_me:$LINENO: result: $result" >&5
8971 echo "${ECHO_T}$result" >&6; }
8972
8973
8974           enablestring=
8975           defaultval=$wxUSE_ALL_FEATURES
8976           if test -z "$defaultval"; then
8977               if test x"$enablestring" = xdisable; then
8978                   defaultval=yes
8979               else
8980                   defaultval=no
8981               fi
8982           fi
8983
8984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8985 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8986           # Check whether --enable-propgrid was given.
8987 if test "${enable_propgrid+set}" = set; then
8988   enableval=$enable_propgrid;
8989                           if test "$enableval" = yes; then
8990                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8991                           else
8992                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8993                           fi
8994
8995 else
8996
8997                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8998
8999 fi
9000
9001
9002           eval "$wx_cv_use_propgrid"
9003
9004           if test x"$enablestring" = xdisable; then
9005             if test $wxUSE_PROPGRID = no; then
9006               result=yes
9007             else
9008               result=no
9009             fi
9010           else
9011             result=$wxUSE_PROPGRID
9012           fi
9013
9014           { echo "$as_me:$LINENO: result: $result" >&5
9015 echo "${ECHO_T}$result" >&6; }
9016
9017
9018           enablestring=
9019           defaultval=$wxUSE_ALL_FEATURES
9020           if test -z "$defaultval"; then
9021               if test x"$enablestring" = xdisable; then
9022                   defaultval=yes
9023               else
9024                   defaultval=no
9025               fi
9026           fi
9027
9028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
9029 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
9030           # Check whether --enable-ribbon was given.
9031 if test "${enable_ribbon+set}" = set; then
9032   enableval=$enable_ribbon;
9033                           if test "$enableval" = yes; then
9034                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
9035                           else
9036                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
9037                           fi
9038
9039 else
9040
9041                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
9042
9043 fi
9044
9045
9046           eval "$wx_cv_use_ribbon"
9047
9048           if test x"$enablestring" = xdisable; then
9049             if test $wxUSE_RIBBON = no; then
9050               result=yes
9051             else
9052               result=no
9053             fi
9054           else
9055             result=$wxUSE_RIBBON
9056           fi
9057
9058           { echo "$as_me:$LINENO: result: $result" >&5
9059 echo "${ECHO_T}$result" >&6; }
9060
9061
9062           enablestring=
9063           defaultval=$wxUSE_ALL_FEATURES
9064           if test -z "$defaultval"; then
9065               if test x"$enablestring" = xdisable; then
9066                   defaultval=yes
9067               else
9068                   defaultval=no
9069               fi
9070           fi
9071
9072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9073 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9074           # Check whether --enable-stc was given.
9075 if test "${enable_stc+set}" = set; then
9076   enableval=$enable_stc;
9077                           if test "$enableval" = yes; then
9078                             wx_cv_use_stc='wxUSE_STC=yes'
9079                           else
9080                             wx_cv_use_stc='wxUSE_STC=no'
9081                           fi
9082
9083 else
9084
9085                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9086
9087 fi
9088
9089
9090           eval "$wx_cv_use_stc"
9091
9092           if test x"$enablestring" = xdisable; then
9093             if test $wxUSE_STC = no; then
9094               result=yes
9095             else
9096               result=no
9097             fi
9098           else
9099             result=$wxUSE_STC
9100           fi
9101
9102           { echo "$as_me:$LINENO: result: $result" >&5
9103 echo "${ECHO_T}$result" >&6; }
9104
9105
9106           enablestring=
9107           defaultval=$wxUSE_ALL_FEATURES
9108           if test -z "$defaultval"; then
9109               if test x"$enablestring" = xdisable; then
9110                   defaultval=yes
9111               else
9112                   defaultval=no
9113               fi
9114           fi
9115
9116           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9117 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9118           # Check whether --enable-constraints was given.
9119 if test "${enable_constraints+set}" = set; then
9120   enableval=$enable_constraints;
9121                           if test "$enableval" = yes; then
9122                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9123                           else
9124                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9125                           fi
9126
9127 else
9128
9129                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9130
9131 fi
9132
9133
9134           eval "$wx_cv_use_constraints"
9135
9136           if test x"$enablestring" = xdisable; then
9137             if test $wxUSE_CONSTRAINTS = no; then
9138               result=yes
9139             else
9140               result=no
9141             fi
9142           else
9143             result=$wxUSE_CONSTRAINTS
9144           fi
9145
9146           { echo "$as_me:$LINENO: result: $result" >&5
9147 echo "${ECHO_T}$result" >&6; }
9148
9149
9150           enablestring=
9151           defaultval=$wxUSE_ALL_FEATURES
9152           if test -z "$defaultval"; then
9153               if test x"$enablestring" = xdisable; then
9154                   defaultval=yes
9155               else
9156                   defaultval=no
9157               fi
9158           fi
9159
9160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9161 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9162           # Check whether --enable-loggui was given.
9163 if test "${enable_loggui+set}" = set; then
9164   enableval=$enable_loggui;
9165                           if test "$enableval" = yes; then
9166                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9167                           else
9168                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9169                           fi
9170
9171 else
9172
9173                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9174
9175 fi
9176
9177
9178           eval "$wx_cv_use_loggui"
9179
9180           if test x"$enablestring" = xdisable; then
9181             if test $wxUSE_LOGGUI = no; then
9182               result=yes
9183             else
9184               result=no
9185             fi
9186           else
9187             result=$wxUSE_LOGGUI
9188           fi
9189
9190           { echo "$as_me:$LINENO: result: $result" >&5
9191 echo "${ECHO_T}$result" >&6; }
9192
9193
9194           enablestring=
9195           defaultval=$wxUSE_ALL_FEATURES
9196           if test -z "$defaultval"; then
9197               if test x"$enablestring" = xdisable; then
9198                   defaultval=yes
9199               else
9200                   defaultval=no
9201               fi
9202           fi
9203
9204           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9205 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9206           # Check whether --enable-logwin was given.
9207 if test "${enable_logwin+set}" = set; then
9208   enableval=$enable_logwin;
9209                           if test "$enableval" = yes; then
9210                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9211                           else
9212                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9213                           fi
9214
9215 else
9216
9217                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9218
9219 fi
9220
9221
9222           eval "$wx_cv_use_logwin"
9223
9224           if test x"$enablestring" = xdisable; then
9225             if test $wxUSE_LOGWINDOW = no; then
9226               result=yes
9227             else
9228               result=no
9229             fi
9230           else
9231             result=$wxUSE_LOGWINDOW
9232           fi
9233
9234           { echo "$as_me:$LINENO: result: $result" >&5
9235 echo "${ECHO_T}$result" >&6; }
9236
9237
9238           enablestring=
9239           defaultval=$wxUSE_ALL_FEATURES
9240           if test -z "$defaultval"; then
9241               if test x"$enablestring" = xdisable; then
9242                   defaultval=yes
9243               else
9244                   defaultval=no
9245               fi
9246           fi
9247
9248           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9249 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9250           # Check whether --enable-logdialog was given.
9251 if test "${enable_logdialog+set}" = set; then
9252   enableval=$enable_logdialog;
9253                           if test "$enableval" = yes; then
9254                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9255                           else
9256                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9257                           fi
9258
9259 else
9260
9261                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9262
9263 fi
9264
9265
9266           eval "$wx_cv_use_logdialog"
9267
9268           if test x"$enablestring" = xdisable; then
9269             if test $wxUSE_LOGDIALOG = no; then
9270               result=yes
9271             else
9272               result=no
9273             fi
9274           else
9275             result=$wxUSE_LOGDIALOG
9276           fi
9277
9278           { echo "$as_me:$LINENO: result: $result" >&5
9279 echo "${ECHO_T}$result" >&6; }
9280
9281
9282           enablestring=
9283           defaultval=$wxUSE_ALL_FEATURES
9284           if test -z "$defaultval"; then
9285               if test x"$enablestring" = xdisable; then
9286                   defaultval=yes
9287               else
9288                   defaultval=no
9289               fi
9290           fi
9291
9292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9293 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9294           # Check whether --enable-mdi was given.
9295 if test "${enable_mdi+set}" = set; then
9296   enableval=$enable_mdi;
9297                           if test "$enableval" = yes; then
9298                             wx_cv_use_mdi='wxUSE_MDI=yes'
9299                           else
9300                             wx_cv_use_mdi='wxUSE_MDI=no'
9301                           fi
9302
9303 else
9304
9305                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9306
9307 fi
9308
9309
9310           eval "$wx_cv_use_mdi"
9311
9312           if test x"$enablestring" = xdisable; then
9313             if test $wxUSE_MDI = no; then
9314               result=yes
9315             else
9316               result=no
9317             fi
9318           else
9319             result=$wxUSE_MDI
9320           fi
9321
9322           { echo "$as_me:$LINENO: result: $result" >&5
9323 echo "${ECHO_T}$result" >&6; }
9324
9325
9326           enablestring=
9327           defaultval=$wxUSE_ALL_FEATURES
9328           if test -z "$defaultval"; then
9329               if test x"$enablestring" = xdisable; then
9330                   defaultval=yes
9331               else
9332                   defaultval=no
9333               fi
9334           fi
9335
9336           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9337 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9338           # Check whether --enable-mdidoc was given.
9339 if test "${enable_mdidoc+set}" = set; then
9340   enableval=$enable_mdidoc;
9341                           if test "$enableval" = yes; then
9342                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9343                           else
9344                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9345                           fi
9346
9347 else
9348
9349                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9350
9351 fi
9352
9353
9354           eval "$wx_cv_use_mdidoc"
9355
9356           if test x"$enablestring" = xdisable; then
9357             if test $wxUSE_MDI_ARCHITECTURE = no; then
9358               result=yes
9359             else
9360               result=no
9361             fi
9362           else
9363             result=$wxUSE_MDI_ARCHITECTURE
9364           fi
9365
9366           { echo "$as_me:$LINENO: result: $result" >&5
9367 echo "${ECHO_T}$result" >&6; }
9368
9369
9370           enablestring=
9371           defaultval=$wxUSE_ALL_FEATURES
9372           if test -z "$defaultval"; then
9373               if test x"$enablestring" = xdisable; then
9374                   defaultval=yes
9375               else
9376                   defaultval=no
9377               fi
9378           fi
9379
9380           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9381 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9382           # Check whether --enable-mediactrl was given.
9383 if test "${enable_mediactrl+set}" = set; then
9384   enableval=$enable_mediactrl;
9385                           if test "$enableval" = yes; then
9386                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9387                           else
9388                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9389                           fi
9390
9391 else
9392
9393                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9394
9395 fi
9396
9397
9398           eval "$wx_cv_use_mediactrl"
9399
9400           if test x"$enablestring" = xdisable; then
9401             if test $wxUSE_MEDIACTRL = no; then
9402               result=yes
9403             else
9404               result=no
9405             fi
9406           else
9407             result=$wxUSE_MEDIACTRL
9408           fi
9409
9410           { echo "$as_me:$LINENO: result: $result" >&5
9411 echo "${ECHO_T}$result" >&6; }
9412
9413
9414           enablestring=
9415           defaultval=$wxUSE_ALL_FEATURES
9416           if test -z "$defaultval"; then
9417               if test x"$enablestring" = xdisable; then
9418                   defaultval=yes
9419               else
9420                   defaultval=no
9421               fi
9422           fi
9423
9424           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9425 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9426           # Check whether --enable-gstreamer8 was given.
9427 if test "${enable_gstreamer8+set}" = set; then
9428   enableval=$enable_gstreamer8;
9429                           if test "$enableval" = yes; then
9430                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9431                           else
9432                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9433                           fi
9434
9435 else
9436
9437                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9438
9439 fi
9440
9441
9442           eval "$wx_cv_use_gstreamer8"
9443
9444           if test x"$enablestring" = xdisable; then
9445             if test $wxUSE_GSTREAMER8 = no; then
9446               result=yes
9447             else
9448               result=no
9449             fi
9450           else
9451             result=$wxUSE_GSTREAMER8
9452           fi
9453
9454           { echo "$as_me:$LINENO: result: $result" >&5
9455 echo "${ECHO_T}$result" >&6; }
9456
9457
9458           enablestring=
9459           defaultval=$wxUSE_ALL_FEATURES
9460           if test -z "$defaultval"; then
9461               if test x"$enablestring" = xdisable; then
9462                   defaultval=yes
9463               else
9464                   defaultval=no
9465               fi
9466           fi
9467
9468           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9469 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9470           # Check whether --enable-richtext was given.
9471 if test "${enable_richtext+set}" = set; then
9472   enableval=$enable_richtext;
9473                           if test "$enableval" = yes; then
9474                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9475                           else
9476                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9477                           fi
9478
9479 else
9480
9481                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9482
9483 fi
9484
9485
9486           eval "$wx_cv_use_richtext"
9487
9488           if test x"$enablestring" = xdisable; then
9489             if test $wxUSE_RICHTEXT = no; then
9490               result=yes
9491             else
9492               result=no
9493             fi
9494           else
9495             result=$wxUSE_RICHTEXT
9496           fi
9497
9498           { echo "$as_me:$LINENO: result: $result" >&5
9499 echo "${ECHO_T}$result" >&6; }
9500
9501
9502           enablestring=
9503           defaultval=$wxUSE_ALL_FEATURES
9504           if test -z "$defaultval"; then
9505               if test x"$enablestring" = xdisable; then
9506                   defaultval=yes
9507               else
9508                   defaultval=no
9509               fi
9510           fi
9511
9512           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9513 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9514           # Check whether --enable-postscript was given.
9515 if test "${enable_postscript+set}" = set; then
9516   enableval=$enable_postscript;
9517                           if test "$enableval" = yes; then
9518                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9519                           else
9520                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9521                           fi
9522
9523 else
9524
9525                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9526
9527 fi
9528
9529
9530           eval "$wx_cv_use_postscript"
9531
9532           if test x"$enablestring" = xdisable; then
9533             if test $wxUSE_POSTSCRIPT = no; then
9534               result=yes
9535             else
9536               result=no
9537             fi
9538           else
9539             result=$wxUSE_POSTSCRIPT
9540           fi
9541
9542           { echo "$as_me:$LINENO: result: $result" >&5
9543 echo "${ECHO_T}$result" >&6; }
9544
9545
9546           enablestring=
9547           defaultval=$wxUSE_ALL_FEATURES
9548           if test -z "$defaultval"; then
9549               if test x"$enablestring" = xdisable; then
9550                   defaultval=yes
9551               else
9552                   defaultval=no
9553               fi
9554           fi
9555
9556           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9557 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9558           # Check whether --enable-printarch was given.
9559 if test "${enable_printarch+set}" = set; then
9560   enableval=$enable_printarch;
9561                           if test "$enableval" = yes; then
9562                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9563                           else
9564                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9565                           fi
9566
9567 else
9568
9569                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9570
9571 fi
9572
9573
9574           eval "$wx_cv_use_printarch"
9575
9576           if test x"$enablestring" = xdisable; then
9577             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9578               result=yes
9579             else
9580               result=no
9581             fi
9582           else
9583             result=$wxUSE_PRINTING_ARCHITECTURE
9584           fi
9585
9586           { echo "$as_me:$LINENO: result: $result" >&5
9587 echo "${ECHO_T}$result" >&6; }
9588
9589
9590           enablestring=
9591           defaultval=$wxUSE_ALL_FEATURES
9592           if test -z "$defaultval"; then
9593               if test x"$enablestring" = xdisable; then
9594                   defaultval=yes
9595               else
9596                   defaultval=no
9597               fi
9598           fi
9599
9600           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9601 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9602           # Check whether --enable-svg was given.
9603 if test "${enable_svg+set}" = set; then
9604   enableval=$enable_svg;
9605                           if test "$enableval" = yes; then
9606                             wx_cv_use_svg='wxUSE_SVG=yes'
9607                           else
9608                             wx_cv_use_svg='wxUSE_SVG=no'
9609                           fi
9610
9611 else
9612
9613                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9614
9615 fi
9616
9617
9618           eval "$wx_cv_use_svg"
9619
9620           if test x"$enablestring" = xdisable; then
9621             if test $wxUSE_SVG = no; then
9622               result=yes
9623             else
9624               result=no
9625             fi
9626           else
9627             result=$wxUSE_SVG
9628           fi
9629
9630           { echo "$as_me:$LINENO: result: $result" >&5
9631 echo "${ECHO_T}$result" >&6; }
9632
9633
9634           enablestring=
9635           defaultval=$wxUSE_ALL_FEATURES
9636           if test -z "$defaultval"; then
9637               if test x"$enablestring" = xdisable; then
9638                   defaultval=yes
9639               else
9640                   defaultval=no
9641               fi
9642           fi
9643
9644           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9645 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9646           # Check whether --enable-webkit was given.
9647 if test "${enable_webkit+set}" = set; then
9648   enableval=$enable_webkit;
9649                           if test "$enableval" = yes; then
9650                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9651                           else
9652                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9653                           fi
9654
9655 else
9656
9657                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9658
9659 fi
9660
9661
9662           eval "$wx_cv_use_webkit"
9663
9664           if test x"$enablestring" = xdisable; then
9665             if test $wxUSE_WEBKIT = no; then
9666               result=yes
9667             else
9668               result=no
9669             fi
9670           else
9671             result=$wxUSE_WEBKIT
9672           fi
9673
9674           { echo "$as_me:$LINENO: result: $result" >&5
9675 echo "${ECHO_T}$result" >&6; }
9676
9677
9678           enablestring=
9679           defaultval=$wxUSE_ALL_FEATURES
9680           if test -z "$defaultval"; then
9681               if test x"$enablestring" = xdisable; then
9682                   defaultval=yes
9683               else
9684                   defaultval=no
9685               fi
9686           fi
9687
9688           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webview" >&5
9689 echo $ECHO_N "checking for --${enablestring:-enable}-webview... $ECHO_C" >&6; }
9690           # Check whether --enable-webview was given.
9691 if test "${enable_webview+set}" = set; then
9692   enableval=$enable_webview;
9693                           if test "$enableval" = yes; then
9694                             wx_cv_use_webview='wxUSE_WEBVIEW=yes'
9695                           else
9696                             wx_cv_use_webview='wxUSE_WEBVIEW=no'
9697                           fi
9698
9699 else
9700
9701                           wx_cv_use_webview='wxUSE_WEBVIEW=${'DEFAULT_wxUSE_WEBVIEW":-$defaultval}"
9702
9703 fi
9704
9705
9706           eval "$wx_cv_use_webview"
9707
9708           if test x"$enablestring" = xdisable; then
9709             if test $wxUSE_WEBVIEW = no; then
9710               result=yes
9711             else
9712               result=no
9713             fi
9714           else
9715             result=$wxUSE_WEBVIEW
9716           fi
9717
9718           { echo "$as_me:$LINENO: result: $result" >&5
9719 echo "${ECHO_T}$result" >&6; }
9720
9721
9722 if test "$wxUSE_MAC" != 1; then
9723
9724           enablestring=
9725           defaultval=$wxUSE_ALL_FEATURES
9726           if test -z "$defaultval"; then
9727               if test x"$enablestring" = xdisable; then
9728                   defaultval=yes
9729               else
9730                   defaultval=no
9731               fi
9732           fi
9733
9734           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9735 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9736           # Check whether --enable-graphics_ctx was given.
9737 if test "${enable_graphics_ctx+set}" = set; then
9738   enableval=$enable_graphics_ctx;
9739                           if test "$enableval" = yes; then
9740                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9741                           else
9742                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9743                           fi
9744
9745 else
9746
9747                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9748
9749 fi
9750
9751
9752           eval "$wx_cv_use_graphics_ctx"
9753
9754           if test x"$enablestring" = xdisable; then
9755             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9756               result=yes
9757             else
9758               result=no
9759             fi
9760           else
9761             result=$wxUSE_GRAPHICS_CONTEXT
9762           fi
9763
9764           { echo "$as_me:$LINENO: result: $result" >&5
9765 echo "${ECHO_T}$result" >&6; }
9766
9767 fi
9768
9769
9770
9771           enablestring=
9772           defaultval=$wxUSE_ALL_FEATURES
9773           if test -z "$defaultval"; then
9774               if test x"$enablestring" = xdisable; then
9775                   defaultval=yes
9776               else
9777                   defaultval=no
9778               fi
9779           fi
9780
9781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9782 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9783           # Check whether --enable-clipboard was given.
9784 if test "${enable_clipboard+set}" = set; then
9785   enableval=$enable_clipboard;
9786                           if test "$enableval" = yes; then
9787                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9788                           else
9789                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9790                           fi
9791
9792 else
9793
9794                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9795
9796 fi
9797
9798
9799           eval "$wx_cv_use_clipboard"
9800
9801           if test x"$enablestring" = xdisable; then
9802             if test $wxUSE_CLIPBOARD = no; then
9803               result=yes
9804             else
9805               result=no
9806             fi
9807           else
9808             result=$wxUSE_CLIPBOARD
9809           fi
9810
9811           { echo "$as_me:$LINENO: result: $result" >&5
9812 echo "${ECHO_T}$result" >&6; }
9813
9814
9815           enablestring=
9816           defaultval=$wxUSE_ALL_FEATURES
9817           if test -z "$defaultval"; then
9818               if test x"$enablestring" = xdisable; then
9819                   defaultval=yes
9820               else
9821                   defaultval=no
9822               fi
9823           fi
9824
9825           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9826 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9827           # Check whether --enable-dnd was given.
9828 if test "${enable_dnd+set}" = set; then
9829   enableval=$enable_dnd;
9830                           if test "$enableval" = yes; then
9831                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9832                           else
9833                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9834                           fi
9835
9836 else
9837
9838                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9839
9840 fi
9841
9842
9843           eval "$wx_cv_use_dnd"
9844
9845           if test x"$enablestring" = xdisable; then
9846             if test $wxUSE_DRAG_AND_DROP = no; then
9847               result=yes
9848             else
9849               result=no
9850             fi
9851           else
9852             result=$wxUSE_DRAG_AND_DROP
9853           fi
9854
9855           { echo "$as_me:$LINENO: result: $result" >&5
9856 echo "${ECHO_T}$result" >&6; }
9857
9858
9859
9860 DEFAULT_wxUSE_CONTROLS=none
9861
9862           enablestring=disable
9863           defaultval=
9864           if test -z "$defaultval"; then
9865               if test x"$enablestring" = xdisable; then
9866                   defaultval=yes
9867               else
9868                   defaultval=no
9869               fi
9870           fi
9871
9872           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9873 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9874           # Check whether --enable-controls was given.
9875 if test "${enable_controls+set}" = set; then
9876   enableval=$enable_controls;
9877                           if test "$enableval" = yes; then
9878                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9879                           else
9880                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9881                           fi
9882
9883 else
9884
9885                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9886
9887 fi
9888
9889
9890           eval "$wx_cv_use_controls"
9891
9892           if test x"$enablestring" = xdisable; then
9893             if test $wxUSE_CONTROLS = no; then
9894               result=yes
9895             else
9896               result=no
9897             fi
9898           else
9899             result=$wxUSE_CONTROLS
9900           fi
9901
9902           { echo "$as_me:$LINENO: result: $result" >&5
9903 echo "${ECHO_T}$result" >&6; }
9904
9905
9906 if test "$wxUSE_CONTROLS" = "no"; then
9907     DEFAULT_wxUSE_ACCEL=no
9908     DEFAULT_wxUSE_ANIMATIONCTRL=no
9909     DEFAULT_wxUSE_BANNERWINDOW=no
9910     DEFAULT_wxUSE_BMPBUTTON=no
9911     DEFAULT_wxUSE_BUTTON=no
9912     DEFAULT_wxUSE_CALCTRL=no
9913     DEFAULT_wxUSE_CARET=no
9914     DEFAULT_wxUSE_CHECKBOX=no
9915     DEFAULT_wxUSE_CHECKLISTBOX=no
9916     DEFAULT_wxUSE_CHOICE=no
9917     DEFAULT_wxUSE_CHOICEBOOK=no
9918     DEFAULT_wxUSE_COLLPANE=no
9919     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9920     DEFAULT_wxUSE_COMBOBOX=no
9921     DEFAULT_wxUSE_COMBOBOX=no
9922     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9923     DEFAULT_wxUSE_DATAVIEWCTRL=no
9924     DEFAULT_wxUSE_DATEPICKCTRL=no
9925     DEFAULT_wxUSE_DETECT_SM=no
9926     DEFAULT_wxUSE_DIRPICKERCTRL=no
9927     DEFAULT_wxUSE_DISPLAY=no
9928     DEFAULT_wxUSE_FILECTRL=no
9929     DEFAULT_wxUSE_FILEPICKERCTRL=no
9930     DEFAULT_wxUSE_FONTPICKERCTRL=no
9931     DEFAULT_wxUSE_GAUGE=no
9932     DEFAULT_wxUSE_GRID=no
9933     DEFAULT_wxUSE_HEADERCTRL=no
9934     DEFAULT_wxUSE_HYPERLINKCTRL=no
9935     DEFAULT_wxUSE_IMAGLIST=no
9936     DEFAULT_wxUSE_LISTBOOK=no
9937     DEFAULT_wxUSE_LISTBOX=no
9938     DEFAULT_wxUSE_LISTCTRL=no
9939     DEFAULT_wxUSE_MARKUP=no
9940     DEFAULT_wxUSE_NOTEBOOK=no
9941     DEFAULT_wxUSE_POPUPWIN=no
9942     DEFAULT_wxUSE_RADIOBOX=no
9943     DEFAULT_wxUSE_RADIOBTN=no
9944     DEFAULT_wxUSE_RICHMSGDLG=no
9945     DEFAULT_wxUSE_RICHTOOLTIP=no
9946     DEFAULT_wxUSE_REARRANGECTRL=no
9947     DEFAULT_wxUSE_SASH=no
9948     DEFAULT_wxUSE_SCROLLBAR=no
9949     DEFAULT_wxUSE_SEARCHCTRL=no
9950     DEFAULT_wxUSE_SLIDER=no
9951     DEFAULT_wxUSE_SPINBTN=no
9952     DEFAULT_wxUSE_SPINCTRL=no
9953     DEFAULT_wxUSE_SPLITTER=no
9954     DEFAULT_wxUSE_STATBMP=no
9955     DEFAULT_wxUSE_STATBOX=no
9956     DEFAULT_wxUSE_STATLINE=no
9957     DEFAULT_wxUSE_STATUSBAR=no
9958     DEFAULT_wxUSE_TIMEPICKCTRL=no
9959     DEFAULT_wxUSE_TIPWINDOW=no
9960     DEFAULT_wxUSE_TOGGLEBTN=no
9961     DEFAULT_wxUSE_TOOLBAR=no
9962     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9963     DEFAULT_wxUSE_TOOLBOOK=no
9964     DEFAULT_wxUSE_TOOLTIPS=no
9965     DEFAULT_wxUSE_TREEBOOK=no
9966     DEFAULT_wxUSE_TREECTRL=no
9967     DEFAULT_wxUSE_TREELISTCTRL=no
9968 fi
9969
9970
9971           enablestring=
9972           defaultval=$wxUSE_ALL_FEATURES
9973           if test -z "$defaultval"; then
9974               if test x"$enablestring" = xdisable; then
9975                   defaultval=yes
9976               else
9977                   defaultval=no
9978               fi
9979           fi
9980
9981           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9982 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9983           # Check whether --enable-markup was given.
9984 if test "${enable_markup+set}" = set; then
9985   enableval=$enable_markup;
9986                           if test "$enableval" = yes; then
9987                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9988                           else
9989                             wx_cv_use_markup='wxUSE_MARKUP=no'
9990                           fi
9991
9992 else
9993
9994                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9995
9996 fi
9997
9998
9999           eval "$wx_cv_use_markup"
10000
10001           if test x"$enablestring" = xdisable; then
10002             if test $wxUSE_MARKUP = no; then
10003               result=yes
10004             else
10005               result=no
10006             fi
10007           else
10008             result=$wxUSE_MARKUP
10009           fi
10010
10011           { echo "$as_me:$LINENO: result: $result" >&5
10012 echo "${ECHO_T}$result" >&6; }
10013
10014
10015
10016           enablestring=
10017           defaultval=$wxUSE_ALL_FEATURES
10018           if test -z "$defaultval"; then
10019               if test x"$enablestring" = xdisable; then
10020                   defaultval=yes
10021               else
10022                   defaultval=no
10023               fi
10024           fi
10025
10026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10027 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10028           # Check whether --enable-accel was given.
10029 if test "${enable_accel+set}" = set; then
10030   enableval=$enable_accel;
10031                           if test "$enableval" = yes; then
10032                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10033                           else
10034                             wx_cv_use_accel='wxUSE_ACCEL=no'
10035                           fi
10036
10037 else
10038
10039                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10040
10041 fi
10042
10043
10044           eval "$wx_cv_use_accel"
10045
10046           if test x"$enablestring" = xdisable; then
10047             if test $wxUSE_ACCEL = no; then
10048               result=yes
10049             else
10050               result=no
10051             fi
10052           else
10053             result=$wxUSE_ACCEL
10054           fi
10055
10056           { echo "$as_me:$LINENO: result: $result" >&5
10057 echo "${ECHO_T}$result" >&6; }
10058
10059
10060           enablestring=
10061           defaultval=$wxUSE_ALL_FEATURES
10062           if test -z "$defaultval"; then
10063               if test x"$enablestring" = xdisable; then
10064                   defaultval=yes
10065               else
10066                   defaultval=no
10067               fi
10068           fi
10069
10070           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10071 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10072           # Check whether --enable-animatectrl was given.
10073 if test "${enable_animatectrl+set}" = set; then
10074   enableval=$enable_animatectrl;
10075                           if test "$enableval" = yes; then
10076                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10077                           else
10078                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10079                           fi
10080
10081 else
10082
10083                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10084
10085 fi
10086
10087
10088           eval "$wx_cv_use_animatectrl"
10089
10090           if test x"$enablestring" = xdisable; then
10091             if test $wxUSE_ANIMATIONCTRL = no; then
10092               result=yes
10093             else
10094               result=no
10095             fi
10096           else
10097             result=$wxUSE_ANIMATIONCTRL
10098           fi
10099
10100           { echo "$as_me:$LINENO: result: $result" >&5
10101 echo "${ECHO_T}$result" >&6; }
10102
10103
10104           enablestring=
10105           defaultval=$wxUSE_ALL_FEATURES
10106           if test -z "$defaultval"; then
10107               if test x"$enablestring" = xdisable; then
10108                   defaultval=yes
10109               else
10110                   defaultval=no
10111               fi
10112           fi
10113
10114           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bannerwindow" >&5
10115 echo $ECHO_N "checking for --${enablestring:-enable}-bannerwindow... $ECHO_C" >&6; }
10116           # Check whether --enable-bannerwindow was given.
10117 if test "${enable_bannerwindow+set}" = set; then
10118   enableval=$enable_bannerwindow;
10119                           if test "$enableval" = yes; then
10120                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=yes'
10121                           else
10122                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=no'
10123                           fi
10124
10125 else
10126
10127                           wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=${'DEFAULT_wxUSE_BANNERWINDOW":-$defaultval}"
10128
10129 fi
10130
10131
10132           eval "$wx_cv_use_bannerwindow"
10133
10134           if test x"$enablestring" = xdisable; then
10135             if test $wxUSE_BANNERWINDOW = no; then
10136               result=yes
10137             else
10138               result=no
10139             fi
10140           else
10141             result=$wxUSE_BANNERWINDOW
10142           fi
10143
10144           { echo "$as_me:$LINENO: result: $result" >&5
10145 echo "${ECHO_T}$result" >&6; }
10146
10147
10148           enablestring=
10149           defaultval=$wxUSE_ALL_FEATURES
10150           if test -z "$defaultval"; then
10151               if test x"$enablestring" = xdisable; then
10152                   defaultval=yes
10153               else
10154                   defaultval=no
10155               fi
10156           fi
10157
10158           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
10159 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
10160           # Check whether --enable-artstd was given.
10161 if test "${enable_artstd+set}" = set; then
10162   enableval=$enable_artstd;
10163                           if test "$enableval" = yes; then
10164                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
10165                           else
10166                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
10167                           fi
10168
10169 else
10170
10171                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
10172
10173 fi
10174
10175
10176           eval "$wx_cv_use_artstd"
10177
10178           if test x"$enablestring" = xdisable; then
10179             if test $wxUSE_ARTPROVIDER_STD = no; then
10180               result=yes
10181             else
10182               result=no
10183             fi
10184           else
10185             result=$wxUSE_ARTPROVIDER_STD
10186           fi
10187
10188           { echo "$as_me:$LINENO: result: $result" >&5
10189 echo "${ECHO_T}$result" >&6; }
10190
10191
10192           enablestring=
10193           defaultval=$wxUSE_ALL_FEATURES
10194           if test -z "$defaultval"; then
10195               if test x"$enablestring" = xdisable; then
10196                   defaultval=yes
10197               else
10198                   defaultval=no
10199               fi
10200           fi
10201
10202           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10203 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10204           # Check whether --enable-arttango was given.
10205 if test "${enable_arttango+set}" = set; then
10206   enableval=$enable_arttango;
10207                           if test "$enableval" = yes; then
10208                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10209                           else
10210                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10211                           fi
10212
10213 else
10214
10215                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10216
10217 fi
10218
10219
10220           eval "$wx_cv_use_arttango"
10221
10222           if test x"$enablestring" = xdisable; then
10223             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10224               result=yes
10225             else
10226               result=no
10227             fi
10228           else
10229             result=$wxUSE_ARTPROVIDER_TANGO
10230           fi
10231
10232           { echo "$as_me:$LINENO: result: $result" >&5
10233 echo "${ECHO_T}$result" >&6; }
10234
10235
10236           enablestring=
10237           defaultval=$wxUSE_ALL_FEATURES
10238           if test -z "$defaultval"; then
10239               if test x"$enablestring" = xdisable; then
10240                   defaultval=yes
10241               else
10242                   defaultval=no
10243               fi
10244           fi
10245
10246           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10247 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10248           # Check whether --enable-bmpbutton was given.
10249 if test "${enable_bmpbutton+set}" = set; then
10250   enableval=$enable_bmpbutton;
10251                           if test "$enableval" = yes; then
10252                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10253                           else
10254                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10255                           fi
10256
10257 else
10258
10259                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10260
10261 fi
10262
10263
10264           eval "$wx_cv_use_bmpbutton"
10265
10266           if test x"$enablestring" = xdisable; then
10267             if test $wxUSE_BMPBUTTON = no; then
10268               result=yes
10269             else
10270               result=no
10271             fi
10272           else
10273             result=$wxUSE_BMPBUTTON
10274           fi
10275
10276           { echo "$as_me:$LINENO: result: $result" >&5
10277 echo "${ECHO_T}$result" >&6; }
10278
10279
10280           enablestring=
10281           defaultval=$wxUSE_ALL_FEATURES
10282           if test -z "$defaultval"; then
10283               if test x"$enablestring" = xdisable; then
10284                   defaultval=yes
10285               else
10286                   defaultval=no
10287               fi
10288           fi
10289
10290           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10291 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10292           # Check whether --enable-bmpcombobox was given.
10293 if test "${enable_bmpcombobox+set}" = set; then
10294   enableval=$enable_bmpcombobox;
10295                           if test "$enableval" = yes; then
10296                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10297                           else
10298                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10299                           fi
10300
10301 else
10302
10303                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10304
10305 fi
10306
10307
10308           eval "$wx_cv_use_bmpcombobox"
10309
10310           if test x"$enablestring" = xdisable; then
10311             if test $wxUSE_BITMAPCOMBOBOX = no; then
10312               result=yes
10313             else
10314               result=no
10315             fi
10316           else
10317             result=$wxUSE_BITMAPCOMBOBOX
10318           fi
10319
10320           { echo "$as_me:$LINENO: result: $result" >&5
10321 echo "${ECHO_T}$result" >&6; }
10322
10323
10324           enablestring=
10325           defaultval=$wxUSE_ALL_FEATURES
10326           if test -z "$defaultval"; then
10327               if test x"$enablestring" = xdisable; then
10328                   defaultval=yes
10329               else
10330                   defaultval=no
10331               fi
10332           fi
10333
10334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10335 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10336           # Check whether --enable-button was given.
10337 if test "${enable_button+set}" = set; then
10338   enableval=$enable_button;
10339                           if test "$enableval" = yes; then
10340                             wx_cv_use_button='wxUSE_BUTTON=yes'
10341                           else
10342                             wx_cv_use_button='wxUSE_BUTTON=no'
10343                           fi
10344
10345 else
10346
10347                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10348
10349 fi
10350
10351
10352           eval "$wx_cv_use_button"
10353
10354           if test x"$enablestring" = xdisable; then
10355             if test $wxUSE_BUTTON = no; then
10356               result=yes
10357             else
10358               result=no
10359             fi
10360           else
10361             result=$wxUSE_BUTTON
10362           fi
10363
10364           { echo "$as_me:$LINENO: result: $result" >&5
10365 echo "${ECHO_T}$result" >&6; }
10366
10367
10368           enablestring=
10369           defaultval=$wxUSE_ALL_FEATURES
10370           if test -z "$defaultval"; then
10371               if test x"$enablestring" = xdisable; then
10372                   defaultval=yes
10373               else
10374                   defaultval=no
10375               fi
10376           fi
10377
10378           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10379 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10380           # Check whether --enable-calendar was given.
10381 if test "${enable_calendar+set}" = set; then
10382   enableval=$enable_calendar;
10383                           if test "$enableval" = yes; then
10384                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10385                           else
10386                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10387                           fi
10388
10389 else
10390
10391                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10392
10393 fi
10394
10395
10396           eval "$wx_cv_use_calendar"
10397
10398           if test x"$enablestring" = xdisable; then
10399             if test $wxUSE_CALCTRL = no; then
10400               result=yes
10401             else
10402               result=no
10403             fi
10404           else
10405             result=$wxUSE_CALCTRL
10406           fi
10407
10408           { echo "$as_me:$LINENO: result: $result" >&5
10409 echo "${ECHO_T}$result" >&6; }
10410
10411
10412           enablestring=
10413           defaultval=$wxUSE_ALL_FEATURES
10414           if test -z "$defaultval"; then
10415               if test x"$enablestring" = xdisable; then
10416                   defaultval=yes
10417               else
10418                   defaultval=no
10419               fi
10420           fi
10421
10422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10423 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10424           # Check whether --enable-caret was given.
10425 if test "${enable_caret+set}" = set; then
10426   enableval=$enable_caret;
10427                           if test "$enableval" = yes; then
10428                             wx_cv_use_caret='wxUSE_CARET=yes'
10429                           else
10430                             wx_cv_use_caret='wxUSE_CARET=no'
10431                           fi
10432
10433 else
10434
10435                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10436
10437 fi
10438
10439
10440           eval "$wx_cv_use_caret"
10441
10442           if test x"$enablestring" = xdisable; then
10443             if test $wxUSE_CARET = no; then
10444               result=yes
10445             else
10446               result=no
10447             fi
10448           else
10449             result=$wxUSE_CARET
10450           fi
10451
10452           { echo "$as_me:$LINENO: result: $result" >&5
10453 echo "${ECHO_T}$result" >&6; }
10454
10455
10456           enablestring=
10457           defaultval=$wxUSE_ALL_FEATURES
10458           if test -z "$defaultval"; then
10459               if test x"$enablestring" = xdisable; then
10460                   defaultval=yes
10461               else
10462                   defaultval=no
10463               fi
10464           fi
10465
10466           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10467 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10468           # Check whether --enable-checkbox was given.
10469 if test "${enable_checkbox+set}" = set; then
10470   enableval=$enable_checkbox;
10471                           if test "$enableval" = yes; then
10472                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10473                           else
10474                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10475                           fi
10476
10477 else
10478
10479                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10480
10481 fi
10482
10483
10484           eval "$wx_cv_use_checkbox"
10485
10486           if test x"$enablestring" = xdisable; then
10487             if test $wxUSE_CHECKBOX = no; then
10488               result=yes
10489             else
10490               result=no
10491             fi
10492           else
10493             result=$wxUSE_CHECKBOX
10494           fi
10495
10496           { echo "$as_me:$LINENO: result: $result" >&5
10497 echo "${ECHO_T}$result" >&6; }
10498
10499
10500           enablestring=
10501           defaultval=$wxUSE_ALL_FEATURES
10502           if test -z "$defaultval"; then
10503               if test x"$enablestring" = xdisable; then
10504                   defaultval=yes
10505               else
10506                   defaultval=no
10507               fi
10508           fi
10509
10510           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10511 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10512           # Check whether --enable-checklst was given.
10513 if test "${enable_checklst+set}" = set; then
10514   enableval=$enable_checklst;
10515                           if test "$enableval" = yes; then
10516                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10517                           else
10518                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10519                           fi
10520
10521 else
10522
10523                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10524
10525 fi
10526
10527
10528           eval "$wx_cv_use_checklst"
10529
10530           if test x"$enablestring" = xdisable; then
10531             if test $wxUSE_CHECKLST = no; then
10532               result=yes
10533             else
10534               result=no
10535             fi
10536           else
10537             result=$wxUSE_CHECKLST
10538           fi
10539
10540           { echo "$as_me:$LINENO: result: $result" >&5
10541 echo "${ECHO_T}$result" >&6; }
10542
10543
10544           enablestring=
10545           defaultval=$wxUSE_ALL_FEATURES
10546           if test -z "$defaultval"; then
10547               if test x"$enablestring" = xdisable; then
10548                   defaultval=yes
10549               else
10550                   defaultval=no
10551               fi
10552           fi
10553
10554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10555 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10556           # Check whether --enable-choice was given.
10557 if test "${enable_choice+set}" = set; then
10558   enableval=$enable_choice;
10559                           if test "$enableval" = yes; then
10560                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10561                           else
10562                             wx_cv_use_choice='wxUSE_CHOICE=no'
10563                           fi
10564
10565 else
10566
10567                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10568
10569 fi
10570
10571
10572           eval "$wx_cv_use_choice"
10573
10574           if test x"$enablestring" = xdisable; then
10575             if test $wxUSE_CHOICE = no; then
10576               result=yes
10577             else
10578               result=no
10579             fi
10580           else
10581             result=$wxUSE_CHOICE
10582           fi
10583
10584           { echo "$as_me:$LINENO: result: $result" >&5
10585 echo "${ECHO_T}$result" >&6; }
10586
10587
10588           enablestring=
10589           defaultval=$wxUSE_ALL_FEATURES
10590           if test -z "$defaultval"; then
10591               if test x"$enablestring" = xdisable; then
10592                   defaultval=yes
10593               else
10594                   defaultval=no
10595               fi
10596           fi
10597
10598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10599 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10600           # Check whether --enable-choicebook was given.
10601 if test "${enable_choicebook+set}" = set; then
10602   enableval=$enable_choicebook;
10603                           if test "$enableval" = yes; then
10604                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10605                           else
10606                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10607                           fi
10608
10609 else
10610
10611                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10612
10613 fi
10614
10615
10616           eval "$wx_cv_use_choicebook"
10617
10618           if test x"$enablestring" = xdisable; then
10619             if test $wxUSE_CHOICEBOOK = no; then
10620               result=yes
10621             else
10622               result=no
10623             fi
10624           else
10625             result=$wxUSE_CHOICEBOOK
10626           fi
10627
10628           { echo "$as_me:$LINENO: result: $result" >&5
10629 echo "${ECHO_T}$result" >&6; }
10630
10631
10632           enablestring=
10633           defaultval=$wxUSE_ALL_FEATURES
10634           if test -z "$defaultval"; then
10635               if test x"$enablestring" = xdisable; then
10636                   defaultval=yes
10637               else
10638                   defaultval=no
10639               fi
10640           fi
10641
10642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10643 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10644           # Check whether --enable-collpane was given.
10645 if test "${enable_collpane+set}" = set; then
10646   enableval=$enable_collpane;
10647                           if test "$enableval" = yes; then
10648                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10649                           else
10650                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10651                           fi
10652
10653 else
10654
10655                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10656
10657 fi
10658
10659
10660           eval "$wx_cv_use_collpane"
10661
10662           if test x"$enablestring" = xdisable; then
10663             if test $wxUSE_COLLPANE = no; then
10664               result=yes
10665             else
10666               result=no
10667             fi
10668           else
10669             result=$wxUSE_COLLPANE
10670           fi
10671
10672           { echo "$as_me:$LINENO: result: $result" >&5
10673 echo "${ECHO_T}$result" >&6; }
10674
10675
10676           enablestring=
10677           defaultval=$wxUSE_ALL_FEATURES
10678           if test -z "$defaultval"; then
10679               if test x"$enablestring" = xdisable; then
10680                   defaultval=yes
10681               else
10682                   defaultval=no
10683               fi
10684           fi
10685
10686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10687 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10688           # Check whether --enable-colourpicker was given.
10689 if test "${enable_colourpicker+set}" = set; then
10690   enableval=$enable_colourpicker;
10691                           if test "$enableval" = yes; then
10692                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10693                           else
10694                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10695                           fi
10696
10697 else
10698
10699                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10700
10701 fi
10702
10703
10704           eval "$wx_cv_use_colourpicker"
10705
10706           if test x"$enablestring" = xdisable; then
10707             if test $wxUSE_COLOURPICKERCTRL = no; then
10708               result=yes
10709             else
10710               result=no
10711             fi
10712           else
10713             result=$wxUSE_COLOURPICKERCTRL
10714           fi
10715
10716           { echo "$as_me:$LINENO: result: $result" >&5
10717 echo "${ECHO_T}$result" >&6; }
10718
10719
10720           enablestring=
10721           defaultval=$wxUSE_ALL_FEATURES
10722           if test -z "$defaultval"; then
10723               if test x"$enablestring" = xdisable; then
10724                   defaultval=yes
10725               else
10726                   defaultval=no
10727               fi
10728           fi
10729
10730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10731 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10732           # Check whether --enable-combobox was given.
10733 if test "${enable_combobox+set}" = set; then
10734   enableval=$enable_combobox;
10735                           if test "$enableval" = yes; then
10736                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10737                           else
10738                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10739                           fi
10740
10741 else
10742
10743                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10744
10745 fi
10746
10747
10748           eval "$wx_cv_use_combobox"
10749
10750           if test x"$enablestring" = xdisable; then
10751             if test $wxUSE_COMBOBOX = no; then
10752               result=yes
10753             else
10754               result=no
10755             fi
10756           else
10757             result=$wxUSE_COMBOBOX
10758           fi
10759
10760           { echo "$as_me:$LINENO: result: $result" >&5
10761 echo "${ECHO_T}$result" >&6; }
10762
10763
10764           enablestring=
10765           defaultval=$wxUSE_ALL_FEATURES
10766           if test -z "$defaultval"; then
10767               if test x"$enablestring" = xdisable; then
10768                   defaultval=yes
10769               else
10770                   defaultval=no
10771               fi
10772           fi
10773
10774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10775 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10776           # Check whether --enable-comboctrl was given.
10777 if test "${enable_comboctrl+set}" = set; then
10778   enableval=$enable_comboctrl;
10779                           if test "$enableval" = yes; then
10780                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10781                           else
10782                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10783                           fi
10784
10785 else
10786
10787                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10788
10789 fi
10790
10791
10792           eval "$wx_cv_use_comboctrl"
10793
10794           if test x"$enablestring" = xdisable; then
10795             if test $wxUSE_COMBOCTRL = no; then
10796               result=yes
10797             else
10798               result=no
10799             fi
10800           else
10801             result=$wxUSE_COMBOCTRL
10802           fi
10803
10804           { echo "$as_me:$LINENO: result: $result" >&5
10805 echo "${ECHO_T}$result" >&6; }
10806
10807
10808           enablestring=
10809           defaultval=$wxUSE_ALL_FEATURES
10810           if test -z "$defaultval"; then
10811               if test x"$enablestring" = xdisable; then
10812                   defaultval=yes
10813               else
10814                   defaultval=no
10815               fi
10816           fi
10817
10818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10819 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10820           # Check whether --enable-commandlinkbutton was given.
10821 if test "${enable_commandlinkbutton+set}" = set; then
10822   enableval=$enable_commandlinkbutton;
10823                           if test "$enableval" = yes; then
10824                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10825                           else
10826                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10827                           fi
10828
10829 else
10830
10831                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10832
10833 fi
10834
10835
10836           eval "$wx_cv_use_commandlinkbutton"
10837
10838           if test x"$enablestring" = xdisable; then
10839             if test $wxUSE_COMMANDLINKBUTTON = no; then
10840               result=yes
10841             else
10842               result=no
10843             fi
10844           else
10845             result=$wxUSE_COMMANDLINKBUTTON
10846           fi
10847
10848           { echo "$as_me:$LINENO: result: $result" >&5
10849 echo "${ECHO_T}$result" >&6; }
10850
10851
10852           enablestring=
10853           defaultval=$wxUSE_ALL_FEATURES
10854           if test -z "$defaultval"; then
10855               if test x"$enablestring" = xdisable; then
10856                   defaultval=yes
10857               else
10858                   defaultval=no
10859               fi
10860           fi
10861
10862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10863 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10864           # Check whether --enable-dataviewctrl was given.
10865 if test "${enable_dataviewctrl+set}" = set; then
10866   enableval=$enable_dataviewctrl;
10867                           if test "$enableval" = yes; then
10868                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10869                           else
10870                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10871                           fi
10872
10873 else
10874
10875                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10876
10877 fi
10878
10879
10880           eval "$wx_cv_use_dataviewctrl"
10881
10882           if test x"$enablestring" = xdisable; then
10883             if test $wxUSE_DATAVIEWCTRL = no; then
10884               result=yes
10885             else
10886               result=no
10887             fi
10888           else
10889             result=$wxUSE_DATAVIEWCTRL
10890           fi
10891
10892           { echo "$as_me:$LINENO: result: $result" >&5
10893 echo "${ECHO_T}$result" >&6; }
10894
10895
10896           enablestring=
10897           defaultval=$wxUSE_ALL_FEATURES
10898           if test -z "$defaultval"; then
10899               if test x"$enablestring" = xdisable; then
10900                   defaultval=yes
10901               else
10902                   defaultval=no
10903               fi
10904           fi
10905
10906           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10907 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10908           # Check whether --enable-datepick was given.
10909 if test "${enable_datepick+set}" = set; then
10910   enableval=$enable_datepick;
10911                           if test "$enableval" = yes; then
10912                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10913                           else
10914                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10915                           fi
10916
10917 else
10918
10919                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10920
10921 fi
10922
10923
10924           eval "$wx_cv_use_datepick"
10925
10926           if test x"$enablestring" = xdisable; then
10927             if test $wxUSE_DATEPICKCTRL = no; then
10928               result=yes
10929             else
10930               result=no
10931             fi
10932           else
10933             result=$wxUSE_DATEPICKCTRL
10934           fi
10935
10936           { echo "$as_me:$LINENO: result: $result" >&5
10937 echo "${ECHO_T}$result" >&6; }
10938
10939
10940           enablestring=
10941           defaultval=$wxUSE_ALL_FEATURES
10942           if test -z "$defaultval"; then
10943               if test x"$enablestring" = xdisable; then
10944                   defaultval=yes
10945               else
10946                   defaultval=no
10947               fi
10948           fi
10949
10950           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10951 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10952           # Check whether --enable-detect_sm was given.
10953 if test "${enable_detect_sm+set}" = set; then
10954   enableval=$enable_detect_sm;
10955                           if test "$enableval" = yes; then
10956                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10957                           else
10958                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10959                           fi
10960
10961 else
10962
10963                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10964
10965 fi
10966
10967
10968           eval "$wx_cv_use_detect_sm"
10969
10970           if test x"$enablestring" = xdisable; then
10971             if test $wxUSE_DETECT_SM = no; then
10972               result=yes
10973             else
10974               result=no
10975             fi
10976           else
10977             result=$wxUSE_DETECT_SM
10978           fi
10979
10980           { echo "$as_me:$LINENO: result: $result" >&5
10981 echo "${ECHO_T}$result" >&6; }
10982
10983
10984           enablestring=
10985           defaultval=$wxUSE_ALL_FEATURES
10986           if test -z "$defaultval"; then
10987               if test x"$enablestring" = xdisable; then
10988                   defaultval=yes
10989               else
10990                   defaultval=no
10991               fi
10992           fi
10993
10994           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10995 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10996           # Check whether --enable-dirpicker was given.
10997 if test "${enable_dirpicker+set}" = set; then
10998   enableval=$enable_dirpicker;
10999                           if test "$enableval" = yes; then
11000                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11001                           else
11002                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11003                           fi
11004
11005 else
11006
11007                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11008
11009 fi
11010
11011
11012           eval "$wx_cv_use_dirpicker"
11013
11014           if test x"$enablestring" = xdisable; then
11015             if test $wxUSE_DIRPICKERCTRL = no; then
11016               result=yes
11017             else
11018               result=no
11019             fi
11020           else
11021             result=$wxUSE_DIRPICKERCTRL
11022           fi
11023
11024           { echo "$as_me:$LINENO: result: $result" >&5
11025 echo "${ECHO_T}$result" >&6; }
11026
11027
11028           enablestring=
11029           defaultval=$wxUSE_ALL_FEATURES
11030           if test -z "$defaultval"; then
11031               if test x"$enablestring" = xdisable; then
11032                   defaultval=yes
11033               else
11034                   defaultval=no
11035               fi
11036           fi
11037
11038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11039 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11040           # Check whether --enable-display was given.
11041 if test "${enable_display+set}" = set; then
11042   enableval=$enable_display;
11043                           if test "$enableval" = yes; then
11044                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11045                           else
11046                             wx_cv_use_display='wxUSE_DISPLAY=no'
11047                           fi
11048
11049 else
11050
11051                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11052
11053 fi
11054
11055
11056           eval "$wx_cv_use_display"
11057
11058           if test x"$enablestring" = xdisable; then
11059             if test $wxUSE_DISPLAY = no; then
11060               result=yes
11061             else
11062               result=no
11063             fi
11064           else
11065             result=$wxUSE_DISPLAY
11066           fi
11067
11068           { echo "$as_me:$LINENO: result: $result" >&5
11069 echo "${ECHO_T}$result" >&6; }
11070
11071
11072           enablestring=
11073           defaultval=$wxUSE_ALL_FEATURES
11074           if test -z "$defaultval"; then
11075               if test x"$enablestring" = xdisable; then
11076                   defaultval=yes
11077               else
11078                   defaultval=no
11079               fi
11080           fi
11081
11082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11083 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11084           # Check whether --enable-editablebox was given.
11085 if test "${enable_editablebox+set}" = set; then
11086   enableval=$enable_editablebox;
11087                           if test "$enableval" = yes; then
11088                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11089                           else
11090                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11091                           fi
11092
11093 else
11094
11095                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11096
11097 fi
11098
11099
11100           eval "$wx_cv_use_editablebox"
11101
11102           if test x"$enablestring" = xdisable; then
11103             if test $wxUSE_EDITABLELISTBOX = no; then
11104               result=yes
11105             else
11106               result=no
11107             fi
11108           else
11109             result=$wxUSE_EDITABLELISTBOX
11110           fi
11111
11112           { echo "$as_me:$LINENO: result: $result" >&5
11113 echo "${ECHO_T}$result" >&6; }
11114
11115
11116           enablestring=
11117           defaultval=$wxUSE_ALL_FEATURES
11118           if test -z "$defaultval"; then
11119               if test x"$enablestring" = xdisable; then
11120                   defaultval=yes
11121               else
11122                   defaultval=no
11123               fi
11124           fi
11125
11126           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
11127 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
11128           # Check whether --enable-filectrl was given.
11129 if test "${enable_filectrl+set}" = set; then
11130   enableval=$enable_filectrl;
11131                           if test "$enableval" = yes; then
11132                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
11133                           else
11134                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
11135                           fi
11136
11137 else
11138
11139                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
11140
11141 fi
11142
11143
11144           eval "$wx_cv_use_filectrl"
11145
11146           if test x"$enablestring" = xdisable; then
11147             if test $wxUSE_FILECTRL = no; then
11148               result=yes
11149             else
11150               result=no
11151             fi
11152           else
11153             result=$wxUSE_FILECTRL
11154           fi
11155
11156           { echo "$as_me:$LINENO: result: $result" >&5
11157 echo "${ECHO_T}$result" >&6; }
11158
11159
11160           enablestring=
11161           defaultval=$wxUSE_ALL_FEATURES
11162           if test -z "$defaultval"; then
11163               if test x"$enablestring" = xdisable; then
11164                   defaultval=yes
11165               else
11166                   defaultval=no
11167               fi
11168           fi
11169
11170           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11171 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11172           # Check whether --enable-filepicker was given.
11173 if test "${enable_filepicker+set}" = set; then
11174   enableval=$enable_filepicker;
11175                           if test "$enableval" = yes; then
11176                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11177                           else
11178                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11179                           fi
11180
11181 else
11182
11183                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11184
11185 fi
11186
11187
11188           eval "$wx_cv_use_filepicker"
11189
11190           if test x"$enablestring" = xdisable; then
11191             if test $wxUSE_FILEPICKERCTRL = no; then
11192               result=yes
11193             else
11194               result=no
11195             fi
11196           else
11197             result=$wxUSE_FILEPICKERCTRL
11198           fi
11199
11200           { echo "$as_me:$LINENO: result: $result" >&5
11201 echo "${ECHO_T}$result" >&6; }
11202
11203
11204           enablestring=
11205           defaultval=$wxUSE_ALL_FEATURES
11206           if test -z "$defaultval"; then
11207               if test x"$enablestring" = xdisable; then
11208                   defaultval=yes
11209               else
11210                   defaultval=no
11211               fi
11212           fi
11213
11214           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11215 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11216           # Check whether --enable-fontpicker was given.
11217 if test "${enable_fontpicker+set}" = set; then
11218   enableval=$enable_fontpicker;
11219                           if test "$enableval" = yes; then
11220                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11221                           else
11222                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11223                           fi
11224
11225 else
11226
11227                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11228
11229 fi
11230
11231
11232           eval "$wx_cv_use_fontpicker"
11233
11234           if test x"$enablestring" = xdisable; then
11235             if test $wxUSE_FONTPICKERCTRL = no; then
11236               result=yes
11237             else
11238               result=no
11239             fi
11240           else
11241             result=$wxUSE_FONTPICKERCTRL
11242           fi
11243
11244           { echo "$as_me:$LINENO: result: $result" >&5
11245 echo "${ECHO_T}$result" >&6; }
11246
11247
11248           enablestring=
11249           defaultval=$wxUSE_ALL_FEATURES
11250           if test -z "$defaultval"; then
11251               if test x"$enablestring" = xdisable; then
11252                   defaultval=yes
11253               else
11254                   defaultval=no
11255               fi
11256           fi
11257
11258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11259 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11260           # Check whether --enable-gauge was given.
11261 if test "${enable_gauge+set}" = set; then
11262   enableval=$enable_gauge;
11263                           if test "$enableval" = yes; then
11264                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11265                           else
11266                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11267                           fi
11268
11269 else
11270
11271                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11272
11273 fi
11274
11275
11276           eval "$wx_cv_use_gauge"
11277
11278           if test x"$enablestring" = xdisable; then
11279             if test $wxUSE_GAUGE = no; then
11280               result=yes
11281             else
11282               result=no
11283             fi
11284           else
11285             result=$wxUSE_GAUGE
11286           fi
11287
11288           { echo "$as_me:$LINENO: result: $result" >&5
11289 echo "${ECHO_T}$result" >&6; }
11290
11291
11292           enablestring=
11293           defaultval=$wxUSE_ALL_FEATURES
11294           if test -z "$defaultval"; then
11295               if test x"$enablestring" = xdisable; then
11296                   defaultval=yes
11297               else
11298                   defaultval=no
11299               fi
11300           fi
11301
11302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11303 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11304           # Check whether --enable-grid was given.
11305 if test "${enable_grid+set}" = set; then
11306   enableval=$enable_grid;
11307                           if test "$enableval" = yes; then
11308                             wx_cv_use_grid='wxUSE_GRID=yes'
11309                           else
11310                             wx_cv_use_grid='wxUSE_GRID=no'
11311                           fi
11312
11313 else
11314
11315                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11316
11317 fi
11318
11319
11320           eval "$wx_cv_use_grid"
11321
11322           if test x"$enablestring" = xdisable; then
11323             if test $wxUSE_GRID = no; then
11324               result=yes
11325             else
11326               result=no
11327             fi
11328           else
11329             result=$wxUSE_GRID
11330           fi
11331
11332           { echo "$as_me:$LINENO: result: $result" >&5
11333 echo "${ECHO_T}$result" >&6; }
11334
11335
11336           enablestring=
11337           defaultval=$wxUSE_ALL_FEATURES
11338           if test -z "$defaultval"; then
11339               if test x"$enablestring" = xdisable; then
11340                   defaultval=yes
11341               else
11342                   defaultval=no
11343               fi
11344           fi
11345
11346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11347 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11348           # Check whether --enable-headerctrl was given.
11349 if test "${enable_headerctrl+set}" = set; then
11350   enableval=$enable_headerctrl;
11351                           if test "$enableval" = yes; then
11352                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11353                           else
11354                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11355                           fi
11356
11357 else
11358
11359                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11360
11361 fi
11362
11363
11364           eval "$wx_cv_use_headerctrl"
11365
11366           if test x"$enablestring" = xdisable; then
11367             if test $wxUSE_HEADERCTRL = no; then
11368               result=yes
11369             else
11370               result=no
11371             fi
11372           else
11373             result=$wxUSE_HEADERCTRL
11374           fi
11375
11376           { echo "$as_me:$LINENO: result: $result" >&5
11377 echo "${ECHO_T}$result" >&6; }
11378
11379
11380           enablestring=
11381           defaultval=$wxUSE_ALL_FEATURES
11382           if test -z "$defaultval"; then
11383               if test x"$enablestring" = xdisable; then
11384                   defaultval=yes
11385               else
11386                   defaultval=no
11387               fi
11388           fi
11389
11390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11391 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11392           # Check whether --enable-hyperlink was given.
11393 if test "${enable_hyperlink+set}" = set; then
11394   enableval=$enable_hyperlink;
11395                           if test "$enableval" = yes; then
11396                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11397                           else
11398                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11399                           fi
11400
11401 else
11402
11403                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11404
11405 fi
11406
11407
11408           eval "$wx_cv_use_hyperlink"
11409
11410           if test x"$enablestring" = xdisable; then
11411             if test $wxUSE_HYPERLINKCTRL = no; then
11412               result=yes
11413             else
11414               result=no
11415             fi
11416           else
11417             result=$wxUSE_HYPERLINKCTRL
11418           fi
11419
11420           { echo "$as_me:$LINENO: result: $result" >&5
11421 echo "${ECHO_T}$result" >&6; }
11422
11423
11424           enablestring=
11425           defaultval=$wxUSE_ALL_FEATURES
11426           if test -z "$defaultval"; then
11427               if test x"$enablestring" = xdisable; then
11428                   defaultval=yes
11429               else
11430                   defaultval=no
11431               fi
11432           fi
11433
11434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11435 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11436           # Check whether --enable-imaglist was given.
11437 if test "${enable_imaglist+set}" = set; then
11438   enableval=$enable_imaglist;
11439                           if test "$enableval" = yes; then
11440                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11441                           else
11442                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11443                           fi
11444
11445 else
11446
11447                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11448
11449 fi
11450
11451
11452           eval "$wx_cv_use_imaglist"
11453
11454           if test x"$enablestring" = xdisable; then
11455             if test $wxUSE_IMAGLIST = no; then
11456               result=yes
11457             else
11458               result=no
11459             fi
11460           else
11461             result=$wxUSE_IMAGLIST
11462           fi
11463
11464           { echo "$as_me:$LINENO: result: $result" >&5
11465 echo "${ECHO_T}$result" >&6; }
11466
11467
11468           enablestring=
11469           defaultval=$wxUSE_ALL_FEATURES
11470           if test -z "$defaultval"; then
11471               if test x"$enablestring" = xdisable; then
11472                   defaultval=yes
11473               else
11474                   defaultval=no
11475               fi
11476           fi
11477
11478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11479 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11480           # Check whether --enable-infobar was given.
11481 if test "${enable_infobar+set}" = set; then
11482   enableval=$enable_infobar;
11483                           if test "$enableval" = yes; then
11484                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11485                           else
11486                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11487                           fi
11488
11489 else
11490
11491                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11492
11493 fi
11494
11495
11496           eval "$wx_cv_use_infobar"
11497
11498           if test x"$enablestring" = xdisable; then
11499             if test $wxUSE_INFOBAR = no; then
11500               result=yes
11501             else
11502               result=no
11503             fi
11504           else
11505             result=$wxUSE_INFOBAR
11506           fi
11507
11508           { echo "$as_me:$LINENO: result: $result" >&5
11509 echo "${ECHO_T}$result" >&6; }
11510
11511
11512           enablestring=
11513           defaultval=$wxUSE_ALL_FEATURES
11514           if test -z "$defaultval"; then
11515               if test x"$enablestring" = xdisable; then
11516                   defaultval=yes
11517               else
11518                   defaultval=no
11519               fi
11520           fi
11521
11522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11523 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11524           # Check whether --enable-listbook was given.
11525 if test "${enable_listbook+set}" = set; then
11526   enableval=$enable_listbook;
11527                           if test "$enableval" = yes; then
11528                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11529                           else
11530                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11531                           fi
11532
11533 else
11534
11535                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11536
11537 fi
11538
11539
11540           eval "$wx_cv_use_listbook"
11541
11542           if test x"$enablestring" = xdisable; then
11543             if test $wxUSE_LISTBOOK = no; then
11544               result=yes
11545             else
11546               result=no
11547             fi
11548           else
11549             result=$wxUSE_LISTBOOK
11550           fi
11551
11552           { echo "$as_me:$LINENO: result: $result" >&5
11553 echo "${ECHO_T}$result" >&6; }
11554
11555
11556           enablestring=
11557           defaultval=$wxUSE_ALL_FEATURES
11558           if test -z "$defaultval"; then
11559               if test x"$enablestring" = xdisable; then
11560                   defaultval=yes
11561               else
11562                   defaultval=no
11563               fi
11564           fi
11565
11566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11567 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11568           # Check whether --enable-listbox was given.
11569 if test "${enable_listbox+set}" = set; then
11570   enableval=$enable_listbox;
11571                           if test "$enableval" = yes; then
11572                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11573                           else
11574                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11575                           fi
11576
11577 else
11578
11579                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11580
11581 fi
11582
11583
11584           eval "$wx_cv_use_listbox"
11585
11586           if test x"$enablestring" = xdisable; then
11587             if test $wxUSE_LISTBOX = no; then
11588               result=yes
11589             else
11590               result=no
11591             fi
11592           else
11593             result=$wxUSE_LISTBOX
11594           fi
11595
11596           { echo "$as_me:$LINENO: result: $result" >&5
11597 echo "${ECHO_T}$result" >&6; }
11598
11599
11600           enablestring=
11601           defaultval=$wxUSE_ALL_FEATURES
11602           if test -z "$defaultval"; then
11603               if test x"$enablestring" = xdisable; then
11604                   defaultval=yes
11605               else
11606                   defaultval=no
11607               fi
11608           fi
11609
11610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11611 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11612           # Check whether --enable-listctrl was given.
11613 if test "${enable_listctrl+set}" = set; then
11614   enableval=$enable_listctrl;
11615                           if test "$enableval" = yes; then
11616                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11617                           else
11618                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11619                           fi
11620
11621 else
11622
11623                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11624
11625 fi
11626
11627
11628           eval "$wx_cv_use_listctrl"
11629
11630           if test x"$enablestring" = xdisable; then
11631             if test $wxUSE_LISTCTRL = no; then
11632               result=yes
11633             else
11634               result=no
11635             fi
11636           else
11637             result=$wxUSE_LISTCTRL
11638           fi
11639
11640           { echo "$as_me:$LINENO: result: $result" >&5
11641 echo "${ECHO_T}$result" >&6; }
11642
11643
11644           enablestring=
11645           defaultval=$wxUSE_ALL_FEATURES
11646           if test -z "$defaultval"; then
11647               if test x"$enablestring" = xdisable; then
11648                   defaultval=yes
11649               else
11650                   defaultval=no
11651               fi
11652           fi
11653
11654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11655 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11656           # Check whether --enable-notebook was given.
11657 if test "${enable_notebook+set}" = set; then
11658   enableval=$enable_notebook;
11659                           if test "$enableval" = yes; then
11660                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11661                           else
11662                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11663                           fi
11664
11665 else
11666
11667                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11668
11669 fi
11670
11671
11672           eval "$wx_cv_use_notebook"
11673
11674           if test x"$enablestring" = xdisable; then
11675             if test $wxUSE_NOTEBOOK = no; then
11676               result=yes
11677             else
11678               result=no
11679             fi
11680           else
11681             result=$wxUSE_NOTEBOOK
11682           fi
11683
11684           { echo "$as_me:$LINENO: result: $result" >&5
11685 echo "${ECHO_T}$result" >&6; }
11686
11687
11688           enablestring=
11689           defaultval=$wxUSE_ALL_FEATURES
11690           if test -z "$defaultval"; then
11691               if test x"$enablestring" = xdisable; then
11692                   defaultval=yes
11693               else
11694                   defaultval=no
11695               fi
11696           fi
11697
11698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11699 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11700           # Check whether --enable-notifmsg was given.
11701 if test "${enable_notifmsg+set}" = set; then
11702   enableval=$enable_notifmsg;
11703                           if test "$enableval" = yes; then
11704                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11705                           else
11706                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11707                           fi
11708
11709 else
11710
11711                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11712
11713 fi
11714
11715
11716           eval "$wx_cv_use_notifmsg"
11717
11718           if test x"$enablestring" = xdisable; then
11719             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11720               result=yes
11721             else
11722               result=no
11723             fi
11724           else
11725             result=$wxUSE_NOTIFICATION_MESSAGE
11726           fi
11727
11728           { echo "$as_me:$LINENO: result: $result" >&5
11729 echo "${ECHO_T}$result" >&6; }
11730
11731
11732           enablestring=
11733           defaultval=$wxUSE_ALL_FEATURES
11734           if test -z "$defaultval"; then
11735               if test x"$enablestring" = xdisable; then
11736                   defaultval=yes
11737               else
11738                   defaultval=no
11739               fi
11740           fi
11741
11742           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11743 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11744           # Check whether --enable-odcombobox was given.
11745 if test "${enable_odcombobox+set}" = set; then
11746   enableval=$enable_odcombobox;
11747                           if test "$enableval" = yes; then
11748                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11749                           else
11750                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11751                           fi
11752
11753 else
11754
11755                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11756
11757 fi
11758
11759
11760           eval "$wx_cv_use_odcombobox"
11761
11762           if test x"$enablestring" = xdisable; then
11763             if test $wxUSE_ODCOMBOBOX = no; then
11764               result=yes
11765             else
11766               result=no
11767             fi
11768           else
11769             result=$wxUSE_ODCOMBOBOX
11770           fi
11771
11772           { echo "$as_me:$LINENO: result: $result" >&5
11773 echo "${ECHO_T}$result" >&6; }
11774
11775
11776           enablestring=
11777           defaultval=$wxUSE_ALL_FEATURES
11778           if test -z "$defaultval"; then
11779               if test x"$enablestring" = xdisable; then
11780                   defaultval=yes
11781               else
11782                   defaultval=no
11783               fi
11784           fi
11785
11786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11787 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11788           # Check whether --enable-popupwin was given.
11789 if test "${enable_popupwin+set}" = set; then
11790   enableval=$enable_popupwin;
11791                           if test "$enableval" = yes; then
11792                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11793                           else
11794                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11795                           fi
11796
11797 else
11798
11799                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11800
11801 fi
11802
11803
11804           eval "$wx_cv_use_popupwin"
11805
11806           if test x"$enablestring" = xdisable; then
11807             if test $wxUSE_POPUPWIN = no; then
11808               result=yes
11809             else
11810               result=no
11811             fi
11812           else
11813             result=$wxUSE_POPUPWIN
11814           fi
11815
11816           { echo "$as_me:$LINENO: result: $result" >&5
11817 echo "${ECHO_T}$result" >&6; }
11818
11819
11820           enablestring=
11821           defaultval=$wxUSE_ALL_FEATURES
11822           if test -z "$defaultval"; then
11823               if test x"$enablestring" = xdisable; then
11824                   defaultval=yes
11825               else
11826                   defaultval=no
11827               fi
11828           fi
11829
11830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11831 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11832           # Check whether --enable-radiobox was given.
11833 if test "${enable_radiobox+set}" = set; then
11834   enableval=$enable_radiobox;
11835                           if test "$enableval" = yes; then
11836                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11837                           else
11838                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11839                           fi
11840
11841 else
11842
11843                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11844
11845 fi
11846
11847
11848           eval "$wx_cv_use_radiobox"
11849
11850           if test x"$enablestring" = xdisable; then
11851             if test $wxUSE_RADIOBOX = no; then
11852               result=yes
11853             else
11854               result=no
11855             fi
11856           else
11857             result=$wxUSE_RADIOBOX
11858           fi
11859
11860           { echo "$as_me:$LINENO: result: $result" >&5
11861 echo "${ECHO_T}$result" >&6; }
11862
11863
11864           enablestring=
11865           defaultval=$wxUSE_ALL_FEATURES
11866           if test -z "$defaultval"; then
11867               if test x"$enablestring" = xdisable; then
11868                   defaultval=yes
11869               else
11870                   defaultval=no
11871               fi
11872           fi
11873
11874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11875 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11876           # Check whether --enable-radiobtn was given.
11877 if test "${enable_radiobtn+set}" = set; then
11878   enableval=$enable_radiobtn;
11879                           if test "$enableval" = yes; then
11880                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11881                           else
11882                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11883                           fi
11884
11885 else
11886
11887                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11888
11889 fi
11890
11891
11892           eval "$wx_cv_use_radiobtn"
11893
11894           if test x"$enablestring" = xdisable; then
11895             if test $wxUSE_RADIOBTN = no; then
11896               result=yes
11897             else
11898               result=no
11899             fi
11900           else
11901             result=$wxUSE_RADIOBTN
11902           fi
11903
11904           { echo "$as_me:$LINENO: result: $result" >&5
11905 echo "${ECHO_T}$result" >&6; }
11906
11907
11908           enablestring=
11909           defaultval=$wxUSE_ALL_FEATURES
11910           if test -z "$defaultval"; then
11911               if test x"$enablestring" = xdisable; then
11912                   defaultval=yes
11913               else
11914                   defaultval=no
11915               fi
11916           fi
11917
11918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11919 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11920           # Check whether --enable-richmsgdlg was given.
11921 if test "${enable_richmsgdlg+set}" = set; then
11922   enableval=$enable_richmsgdlg;
11923                           if test "$enableval" = yes; then
11924                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11925                           else
11926                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11927                           fi
11928
11929 else
11930
11931                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11932
11933 fi
11934
11935
11936           eval "$wx_cv_use_richmsgdlg"
11937
11938           if test x"$enablestring" = xdisable; then
11939             if test $wxUSE_RICHMSGDLG = no; then
11940               result=yes
11941             else
11942               result=no
11943             fi
11944           else
11945             result=$wxUSE_RICHMSGDLG
11946           fi
11947
11948           { echo "$as_me:$LINENO: result: $result" >&5
11949 echo "${ECHO_T}$result" >&6; }
11950
11951
11952           enablestring=
11953           defaultval=$wxUSE_ALL_FEATURES
11954           if test -z "$defaultval"; then
11955               if test x"$enablestring" = xdisable; then
11956                   defaultval=yes
11957               else
11958                   defaultval=no
11959               fi
11960           fi
11961
11962           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtooltip" >&5
11963 echo $ECHO_N "checking for --${enablestring:-enable}-richtooltip... $ECHO_C" >&6; }
11964           # Check whether --enable-richtooltip was given.
11965 if test "${enable_richtooltip+set}" = set; then
11966   enableval=$enable_richtooltip;
11967                           if test "$enableval" = yes; then
11968                             wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=yes'
11969                           else
11970                             wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=no'
11971                           fi
11972
11973 else
11974
11975                           wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=${'DEFAULT_wxUSE_RICHTOOLTIP":-$defaultval}"
11976
11977 fi
11978
11979
11980           eval "$wx_cv_use_richtooltip"
11981
11982           if test x"$enablestring" = xdisable; then
11983             if test $wxUSE_RICHTOOLTIP = no; then
11984               result=yes
11985             else
11986               result=no
11987             fi
11988           else
11989             result=$wxUSE_RICHTOOLTIP
11990           fi
11991
11992           { echo "$as_me:$LINENO: result: $result" >&5
11993 echo "${ECHO_T}$result" >&6; }
11994
11995
11996           enablestring=
11997           defaultval=$wxUSE_ALL_FEATURES
11998           if test -z "$defaultval"; then
11999               if test x"$enablestring" = xdisable; then
12000                   defaultval=yes
12001               else
12002                   defaultval=no
12003               fi
12004           fi
12005
12006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
12007 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
12008           # Check whether --enable-rearrangectrl was given.
12009 if test "${enable_rearrangectrl+set}" = set; then
12010   enableval=$enable_rearrangectrl;
12011                           if test "$enableval" = yes; then
12012                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
12013                           else
12014                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
12015                           fi
12016
12017 else
12018
12019                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
12020
12021 fi
12022
12023
12024           eval "$wx_cv_use_rearrangectrl"
12025
12026           if test x"$enablestring" = xdisable; then
12027             if test $wxUSE_REARRANGECTRL = no; then
12028               result=yes
12029             else
12030               result=no
12031             fi
12032           else
12033             result=$wxUSE_REARRANGECTRL
12034           fi
12035
12036           { echo "$as_me:$LINENO: result: $result" >&5
12037 echo "${ECHO_T}$result" >&6; }
12038
12039
12040           enablestring=
12041           defaultval=$wxUSE_ALL_FEATURES
12042           if test -z "$defaultval"; then
12043               if test x"$enablestring" = xdisable; then
12044                   defaultval=yes
12045               else
12046                   defaultval=no
12047               fi
12048           fi
12049
12050           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12051 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12052           # Check whether --enable-sash was given.
12053 if test "${enable_sash+set}" = set; then
12054   enableval=$enable_sash;
12055                           if test "$enableval" = yes; then
12056                             wx_cv_use_sash='wxUSE_SASH=yes'
12057                           else
12058                             wx_cv_use_sash='wxUSE_SASH=no'
12059                           fi
12060
12061 else
12062
12063                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12064
12065 fi
12066
12067
12068           eval "$wx_cv_use_sash"
12069
12070           if test x"$enablestring" = xdisable; then
12071             if test $wxUSE_SASH = no; then
12072               result=yes
12073             else
12074               result=no
12075             fi
12076           else
12077             result=$wxUSE_SASH
12078           fi
12079
12080           { echo "$as_me:$LINENO: result: $result" >&5
12081 echo "${ECHO_T}$result" >&6; }
12082
12083
12084           enablestring=
12085           defaultval=$wxUSE_ALL_FEATURES
12086           if test -z "$defaultval"; then
12087               if test x"$enablestring" = xdisable; then
12088                   defaultval=yes
12089               else
12090                   defaultval=no
12091               fi
12092           fi
12093
12094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12095 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12096           # Check whether --enable-scrollbar was given.
12097 if test "${enable_scrollbar+set}" = set; then
12098   enableval=$enable_scrollbar;
12099                           if test "$enableval" = yes; then
12100                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12101                           else
12102                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12103                           fi
12104
12105 else
12106
12107                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12108
12109 fi
12110
12111
12112           eval "$wx_cv_use_scrollbar"
12113
12114           if test x"$enablestring" = xdisable; then
12115             if test $wxUSE_SCROLLBAR = no; then
12116               result=yes
12117             else
12118               result=no
12119             fi
12120           else
12121             result=$wxUSE_SCROLLBAR
12122           fi
12123
12124           { echo "$as_me:$LINENO: result: $result" >&5
12125 echo "${ECHO_T}$result" >&6; }
12126
12127
12128           enablestring=
12129           defaultval=$wxUSE_ALL_FEATURES
12130           if test -z "$defaultval"; then
12131               if test x"$enablestring" = xdisable; then
12132                   defaultval=yes
12133               else
12134                   defaultval=no
12135               fi
12136           fi
12137
12138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12139 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12140           # Check whether --enable-searchctrl was given.
12141 if test "${enable_searchctrl+set}" = set; then
12142   enableval=$enable_searchctrl;
12143                           if test "$enableval" = yes; then
12144                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12145                           else
12146                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12147                           fi
12148
12149 else
12150
12151                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12152
12153 fi
12154
12155
12156           eval "$wx_cv_use_searchctrl"
12157
12158           if test x"$enablestring" = xdisable; then
12159             if test $wxUSE_SEARCHCTRL = no; then
12160               result=yes
12161             else
12162               result=no
12163             fi
12164           else
12165             result=$wxUSE_SEARCHCTRL
12166           fi
12167
12168           { echo "$as_me:$LINENO: result: $result" >&5
12169 echo "${ECHO_T}$result" >&6; }
12170
12171
12172           enablestring=
12173           defaultval=$wxUSE_ALL_FEATURES
12174           if test -z "$defaultval"; then
12175               if test x"$enablestring" = xdisable; then
12176                   defaultval=yes
12177               else
12178                   defaultval=no
12179               fi
12180           fi
12181
12182           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12183 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12184           # Check whether --enable-slider was given.
12185 if test "${enable_slider+set}" = set; then
12186   enableval=$enable_slider;
12187                           if test "$enableval" = yes; then
12188                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12189                           else
12190                             wx_cv_use_slider='wxUSE_SLIDER=no'
12191                           fi
12192
12193 else
12194
12195                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12196
12197 fi
12198
12199
12200           eval "$wx_cv_use_slider"
12201
12202           if test x"$enablestring" = xdisable; then
12203             if test $wxUSE_SLIDER = no; then
12204               result=yes
12205             else
12206               result=no
12207             fi
12208           else
12209             result=$wxUSE_SLIDER
12210           fi
12211
12212           { echo "$as_me:$LINENO: result: $result" >&5
12213 echo "${ECHO_T}$result" >&6; }
12214
12215
12216           enablestring=
12217           defaultval=$wxUSE_ALL_FEATURES
12218           if test -z "$defaultval"; then
12219               if test x"$enablestring" = xdisable; then
12220                   defaultval=yes
12221               else
12222                   defaultval=no
12223               fi
12224           fi
12225
12226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12227 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12228           # Check whether --enable-spinbtn was given.
12229 if test "${enable_spinbtn+set}" = set; then
12230   enableval=$enable_spinbtn;
12231                           if test "$enableval" = yes; then
12232                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12233                           else
12234                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12235                           fi
12236
12237 else
12238
12239                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12240
12241 fi
12242
12243
12244           eval "$wx_cv_use_spinbtn"
12245
12246           if test x"$enablestring" = xdisable; then
12247             if test $wxUSE_SPINBTN = no; then
12248               result=yes
12249             else
12250               result=no
12251             fi
12252           else
12253             result=$wxUSE_SPINBTN
12254           fi
12255
12256           { echo "$as_me:$LINENO: result: $result" >&5
12257 echo "${ECHO_T}$result" >&6; }
12258
12259
12260           enablestring=
12261           defaultval=$wxUSE_ALL_FEATURES
12262           if test -z "$defaultval"; then
12263               if test x"$enablestring" = xdisable; then
12264                   defaultval=yes
12265               else
12266                   defaultval=no
12267               fi
12268           fi
12269
12270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12271 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12272           # Check whether --enable-spinctrl was given.
12273 if test "${enable_spinctrl+set}" = set; then
12274   enableval=$enable_spinctrl;
12275                           if test "$enableval" = yes; then
12276                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12277                           else
12278                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12279                           fi
12280
12281 else
12282
12283                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12284
12285 fi
12286
12287
12288           eval "$wx_cv_use_spinctrl"
12289
12290           if test x"$enablestring" = xdisable; then
12291             if test $wxUSE_SPINCTRL = no; then
12292               result=yes
12293             else
12294               result=no
12295             fi
12296           else
12297             result=$wxUSE_SPINCTRL
12298           fi
12299
12300           { echo "$as_me:$LINENO: result: $result" >&5
12301 echo "${ECHO_T}$result" >&6; }
12302
12303
12304           enablestring=
12305           defaultval=$wxUSE_ALL_FEATURES
12306           if test -z "$defaultval"; then
12307               if test x"$enablestring" = xdisable; then
12308                   defaultval=yes
12309               else
12310                   defaultval=no
12311               fi
12312           fi
12313
12314           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12315 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12316           # Check whether --enable-splitter was given.
12317 if test "${enable_splitter+set}" = set; then
12318   enableval=$enable_splitter;
12319                           if test "$enableval" = yes; then
12320                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12321                           else
12322                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12323                           fi
12324
12325 else
12326
12327                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12328
12329 fi
12330
12331
12332           eval "$wx_cv_use_splitter"
12333
12334           if test x"$enablestring" = xdisable; then
12335             if test $wxUSE_SPLITTER = no; then
12336               result=yes
12337             else
12338               result=no
12339             fi
12340           else
12341             result=$wxUSE_SPLITTER
12342           fi
12343
12344           { echo "$as_me:$LINENO: result: $result" >&5
12345 echo "${ECHO_T}$result" >&6; }
12346
12347
12348           enablestring=
12349           defaultval=$wxUSE_ALL_FEATURES
12350           if test -z "$defaultval"; then
12351               if test x"$enablestring" = xdisable; then
12352                   defaultval=yes
12353               else
12354                   defaultval=no
12355               fi
12356           fi
12357
12358           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12359 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12360           # Check whether --enable-statbmp was given.
12361 if test "${enable_statbmp+set}" = set; then
12362   enableval=$enable_statbmp;
12363                           if test "$enableval" = yes; then
12364                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12365                           else
12366                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12367                           fi
12368
12369 else
12370
12371                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12372
12373 fi
12374
12375
12376           eval "$wx_cv_use_statbmp"
12377
12378           if test x"$enablestring" = xdisable; then
12379             if test $wxUSE_STATBMP = no; then
12380               result=yes
12381             else
12382               result=no
12383             fi
12384           else
12385             result=$wxUSE_STATBMP
12386           fi
12387
12388           { echo "$as_me:$LINENO: result: $result" >&5
12389 echo "${ECHO_T}$result" >&6; }
12390
12391
12392           enablestring=
12393           defaultval=$wxUSE_ALL_FEATURES
12394           if test -z "$defaultval"; then
12395               if test x"$enablestring" = xdisable; then
12396                   defaultval=yes
12397               else
12398                   defaultval=no
12399               fi
12400           fi
12401
12402           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12403 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12404           # Check whether --enable-statbox was given.
12405 if test "${enable_statbox+set}" = set; then
12406   enableval=$enable_statbox;
12407                           if test "$enableval" = yes; then
12408                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12409                           else
12410                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12411                           fi
12412
12413 else
12414
12415                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12416
12417 fi
12418
12419
12420           eval "$wx_cv_use_statbox"
12421
12422           if test x"$enablestring" = xdisable; then
12423             if test $wxUSE_STATBOX = no; then
12424               result=yes
12425             else
12426               result=no
12427             fi
12428           else
12429             result=$wxUSE_STATBOX
12430           fi
12431
12432           { echo "$as_me:$LINENO: result: $result" >&5
12433 echo "${ECHO_T}$result" >&6; }
12434
12435
12436           enablestring=
12437           defaultval=$wxUSE_ALL_FEATURES
12438           if test -z "$defaultval"; then
12439               if test x"$enablestring" = xdisable; then
12440                   defaultval=yes
12441               else
12442                   defaultval=no
12443               fi
12444           fi
12445
12446           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12447 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12448           # Check whether --enable-statline was given.
12449 if test "${enable_statline+set}" = set; then
12450   enableval=$enable_statline;
12451                           if test "$enableval" = yes; then
12452                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12453                           else
12454                             wx_cv_use_statline='wxUSE_STATLINE=no'
12455                           fi
12456
12457 else
12458
12459                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12460
12461 fi
12462
12463
12464           eval "$wx_cv_use_statline"
12465
12466           if test x"$enablestring" = xdisable; then
12467             if test $wxUSE_STATLINE = no; then
12468               result=yes
12469             else
12470               result=no
12471             fi
12472           else
12473             result=$wxUSE_STATLINE
12474           fi
12475
12476           { echo "$as_me:$LINENO: result: $result" >&5
12477 echo "${ECHO_T}$result" >&6; }
12478
12479
12480           enablestring=
12481           defaultval=$wxUSE_ALL_FEATURES
12482           if test -z "$defaultval"; then
12483               if test x"$enablestring" = xdisable; then
12484                   defaultval=yes
12485               else
12486                   defaultval=no
12487               fi
12488           fi
12489
12490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12491 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12492           # Check whether --enable-stattext was given.
12493 if test "${enable_stattext+set}" = set; then
12494   enableval=$enable_stattext;
12495                           if test "$enableval" = yes; then
12496                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12497                           else
12498                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12499                           fi
12500
12501 else
12502
12503                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12504
12505 fi
12506
12507
12508           eval "$wx_cv_use_stattext"
12509
12510           if test x"$enablestring" = xdisable; then
12511             if test $wxUSE_STATTEXT = no; then
12512               result=yes
12513             else
12514               result=no
12515             fi
12516           else
12517             result=$wxUSE_STATTEXT
12518           fi
12519
12520           { echo "$as_me:$LINENO: result: $result" >&5
12521 echo "${ECHO_T}$result" >&6; }
12522
12523
12524           enablestring=
12525           defaultval=$wxUSE_ALL_FEATURES
12526           if test -z "$defaultval"; then
12527               if test x"$enablestring" = xdisable; then
12528                   defaultval=yes
12529               else
12530                   defaultval=no
12531               fi
12532           fi
12533
12534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12535 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12536           # Check whether --enable-statusbar was given.
12537 if test "${enable_statusbar+set}" = set; then
12538   enableval=$enable_statusbar;
12539                           if test "$enableval" = yes; then
12540                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12541                           else
12542                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12543                           fi
12544
12545 else
12546
12547                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12548
12549 fi
12550
12551
12552           eval "$wx_cv_use_statusbar"
12553
12554           if test x"$enablestring" = xdisable; then
12555             if test $wxUSE_STATUSBAR = no; then
12556               result=yes
12557             else
12558               result=no
12559             fi
12560           else
12561             result=$wxUSE_STATUSBAR
12562           fi
12563
12564           { echo "$as_me:$LINENO: result: $result" >&5
12565 echo "${ECHO_T}$result" >&6; }
12566
12567
12568           enablestring=
12569           defaultval=$wxUSE_ALL_FEATURES
12570           if test -z "$defaultval"; then
12571               if test x"$enablestring" = xdisable; then
12572                   defaultval=yes
12573               else
12574                   defaultval=no
12575               fi
12576           fi
12577
12578           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12579 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12580           # Check whether --enable-taskbaricon was given.
12581 if test "${enable_taskbaricon+set}" = set; then
12582   enableval=$enable_taskbaricon;
12583                           if test "$enableval" = yes; then
12584                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12585                           else
12586                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12587                           fi
12588
12589 else
12590
12591                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12592
12593 fi
12594
12595
12596           eval "$wx_cv_use_taskbaricon"
12597
12598           if test x"$enablestring" = xdisable; then
12599             if test $wxUSE_TASKBARICON = no; then
12600               result=yes
12601             else
12602               result=no
12603             fi
12604           else
12605             result=$wxUSE_TASKBARICON
12606           fi
12607
12608           { echo "$as_me:$LINENO: result: $result" >&5
12609 echo "${ECHO_T}$result" >&6; }
12610
12611
12612           enablestring=
12613           defaultval=$wxUSE_ALL_FEATURES
12614           if test -z "$defaultval"; then
12615               if test x"$enablestring" = xdisable; then
12616                   defaultval=yes
12617               else
12618                   defaultval=no
12619               fi
12620           fi
12621
12622           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12623 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12624           # Check whether --enable-tbarnative was given.
12625 if test "${enable_tbarnative+set}" = set; then
12626   enableval=$enable_tbarnative;
12627                           if test "$enableval" = yes; then
12628                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12629                           else
12630                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12631                           fi
12632
12633 else
12634
12635                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12636
12637 fi
12638
12639
12640           eval "$wx_cv_use_tbarnative"
12641
12642           if test x"$enablestring" = xdisable; then
12643             if test $wxUSE_TOOLBAR_NATIVE = no; then
12644               result=yes
12645             else
12646               result=no
12647             fi
12648           else
12649             result=$wxUSE_TOOLBAR_NATIVE
12650           fi
12651
12652           { echo "$as_me:$LINENO: result: $result" >&5
12653 echo "${ECHO_T}$result" >&6; }
12654
12655
12656           enablestring=
12657           defaultval=$wxUSE_ALL_FEATURES
12658           if test -z "$defaultval"; then
12659               if test x"$enablestring" = xdisable; then
12660                   defaultval=yes
12661               else
12662                   defaultval=no
12663               fi
12664           fi
12665
12666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12667 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12668           # Check whether --enable-textctrl was given.
12669 if test "${enable_textctrl+set}" = set; then
12670   enableval=$enable_textctrl;
12671                           if test "$enableval" = yes; then
12672                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12673                           else
12674                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12675                           fi
12676
12677 else
12678
12679                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12680
12681 fi
12682
12683
12684           eval "$wx_cv_use_textctrl"
12685
12686           if test x"$enablestring" = xdisable; then
12687             if test $wxUSE_TEXTCTRL = no; then
12688               result=yes
12689             else
12690               result=no
12691             fi
12692           else
12693             result=$wxUSE_TEXTCTRL
12694           fi
12695
12696           { echo "$as_me:$LINENO: result: $result" >&5
12697 echo "${ECHO_T}$result" >&6; }
12698
12699
12700           enablestring=
12701           defaultval=$wxUSE_ALL_FEATURES
12702           if test -z "$defaultval"; then
12703               if test x"$enablestring" = xdisable; then
12704                   defaultval=yes
12705               else
12706                   defaultval=no
12707               fi
12708           fi
12709
12710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
12711 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
12712           # Check whether --enable-datepick was given.
12713 if test "${enable_datepick+set}" = set; then
12714   enableval=$enable_datepick;
12715                           if test "$enableval" = yes; then
12716                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=yes'
12717                           else
12718                             wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=no'
12719                           fi
12720
12721 else
12722
12723                           wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=${'DEFAULT_wxUSE_TIMEPICKCTRL":-$defaultval}"
12724
12725 fi
12726
12727
12728           eval "$wx_cv_use_datepick"
12729
12730           if test x"$enablestring" = xdisable; then
12731             if test $wxUSE_TIMEPICKCTRL = no; then
12732               result=yes
12733             else
12734               result=no
12735             fi
12736           else
12737             result=$wxUSE_TIMEPICKCTRL
12738           fi
12739
12740           { echo "$as_me:$LINENO: result: $result" >&5
12741 echo "${ECHO_T}$result" >&6; }
12742
12743
12744           enablestring=
12745           defaultval=$wxUSE_ALL_FEATURES
12746           if test -z "$defaultval"; then
12747               if test x"$enablestring" = xdisable; then
12748                   defaultval=yes
12749               else
12750                   defaultval=no
12751               fi
12752           fi
12753
12754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12755 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12756           # Check whether --enable-tipwindow was given.
12757 if test "${enable_tipwindow+set}" = set; then
12758   enableval=$enable_tipwindow;
12759                           if test "$enableval" = yes; then
12760                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12761                           else
12762                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12763                           fi
12764
12765 else
12766
12767                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12768
12769 fi
12770
12771
12772           eval "$wx_cv_use_tipwindow"
12773
12774           if test x"$enablestring" = xdisable; then
12775             if test $wxUSE_TIPWINDOW = no; then
12776               result=yes
12777             else
12778               result=no
12779             fi
12780           else
12781             result=$wxUSE_TIPWINDOW
12782           fi
12783
12784           { echo "$as_me:$LINENO: result: $result" >&5
12785 echo "${ECHO_T}$result" >&6; }
12786
12787
12788           enablestring=
12789           defaultval=$wxUSE_ALL_FEATURES
12790           if test -z "$defaultval"; then
12791               if test x"$enablestring" = xdisable; then
12792                   defaultval=yes
12793               else
12794                   defaultval=no
12795               fi
12796           fi
12797
12798           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12799 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12800           # Check whether --enable-togglebtn was given.
12801 if test "${enable_togglebtn+set}" = set; then
12802   enableval=$enable_togglebtn;
12803                           if test "$enableval" = yes; then
12804                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12805                           else
12806                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12807                           fi
12808
12809 else
12810
12811                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12812
12813 fi
12814
12815
12816           eval "$wx_cv_use_togglebtn"
12817
12818           if test x"$enablestring" = xdisable; then
12819             if test $wxUSE_TOGGLEBTN = no; then
12820               result=yes
12821             else
12822               result=no
12823             fi
12824           else
12825             result=$wxUSE_TOGGLEBTN
12826           fi
12827
12828           { echo "$as_me:$LINENO: result: $result" >&5
12829 echo "${ECHO_T}$result" >&6; }
12830
12831
12832           enablestring=
12833           defaultval=$wxUSE_ALL_FEATURES
12834           if test -z "$defaultval"; then
12835               if test x"$enablestring" = xdisable; then
12836                   defaultval=yes
12837               else
12838                   defaultval=no
12839               fi
12840           fi
12841
12842           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12843 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12844           # Check whether --enable-toolbar was given.
12845 if test "${enable_toolbar+set}" = set; then
12846   enableval=$enable_toolbar;
12847                           if test "$enableval" = yes; then
12848                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12849                           else
12850                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12851                           fi
12852
12853 else
12854
12855                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12856
12857 fi
12858
12859
12860           eval "$wx_cv_use_toolbar"
12861
12862           if test x"$enablestring" = xdisable; then
12863             if test $wxUSE_TOOLBAR = no; then
12864               result=yes
12865             else
12866               result=no
12867             fi
12868           else
12869             result=$wxUSE_TOOLBAR
12870           fi
12871
12872           { echo "$as_me:$LINENO: result: $result" >&5
12873 echo "${ECHO_T}$result" >&6; }
12874
12875
12876           enablestring=
12877           defaultval=$wxUSE_ALL_FEATURES
12878           if test -z "$defaultval"; then
12879               if test x"$enablestring" = xdisable; then
12880                   defaultval=yes
12881               else
12882                   defaultval=no
12883               fi
12884           fi
12885
12886           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12887 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12888           # Check whether --enable-toolbook was given.
12889 if test "${enable_toolbook+set}" = set; then
12890   enableval=$enable_toolbook;
12891                           if test "$enableval" = yes; then
12892                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12893                           else
12894                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12895                           fi
12896
12897 else
12898
12899                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12900
12901 fi
12902
12903
12904           eval "$wx_cv_use_toolbook"
12905
12906           if test x"$enablestring" = xdisable; then
12907             if test $wxUSE_TOOLBOOK = no; then
12908               result=yes
12909             else
12910               result=no
12911             fi
12912           else
12913             result=$wxUSE_TOOLBOOK
12914           fi
12915
12916           { echo "$as_me:$LINENO: result: $result" >&5
12917 echo "${ECHO_T}$result" >&6; }
12918
12919
12920           enablestring=
12921           defaultval=$wxUSE_ALL_FEATURES
12922           if test -z "$defaultval"; then
12923               if test x"$enablestring" = xdisable; then
12924                   defaultval=yes
12925               else
12926                   defaultval=no
12927               fi
12928           fi
12929
12930           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12931 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12932           # Check whether --enable-treebook was given.
12933 if test "${enable_treebook+set}" = set; then
12934   enableval=$enable_treebook;
12935                           if test "$enableval" = yes; then
12936                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12937                           else
12938                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12939                           fi
12940
12941 else
12942
12943                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12944
12945 fi
12946
12947
12948           eval "$wx_cv_use_treebook"
12949
12950           if test x"$enablestring" = xdisable; then
12951             if test $wxUSE_TREEBOOK = no; then
12952               result=yes
12953             else
12954               result=no
12955             fi
12956           else
12957             result=$wxUSE_TREEBOOK
12958           fi
12959
12960           { echo "$as_me:$LINENO: result: $result" >&5
12961 echo "${ECHO_T}$result" >&6; }
12962
12963
12964           enablestring=
12965           defaultval=$wxUSE_ALL_FEATURES
12966           if test -z "$defaultval"; then
12967               if test x"$enablestring" = xdisable; then
12968                   defaultval=yes
12969               else
12970                   defaultval=no
12971               fi
12972           fi
12973
12974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12975 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12976           # Check whether --enable-treectrl was given.
12977 if test "${enable_treectrl+set}" = set; then
12978   enableval=$enable_treectrl;
12979                           if test "$enableval" = yes; then
12980                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12981                           else
12982                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12983                           fi
12984
12985 else
12986
12987                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12988
12989 fi
12990
12991
12992           eval "$wx_cv_use_treectrl"
12993
12994           if test x"$enablestring" = xdisable; then
12995             if test $wxUSE_TREECTRL = no; then
12996               result=yes
12997             else
12998               result=no
12999             fi
13000           else
13001             result=$wxUSE_TREECTRL
13002           fi
13003
13004           { echo "$as_me:$LINENO: result: $result" >&5
13005 echo "${ECHO_T}$result" >&6; }
13006
13007
13008           enablestring=
13009           defaultval=$wxUSE_ALL_FEATURES
13010           if test -z "$defaultval"; then
13011               if test x"$enablestring" = xdisable; then
13012                   defaultval=yes
13013               else
13014                   defaultval=no
13015               fi
13016           fi
13017
13018           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treelist" >&5
13019 echo $ECHO_N "checking for --${enablestring:-enable}-treelist... $ECHO_C" >&6; }
13020           # Check whether --enable-treelist was given.
13021 if test "${enable_treelist+set}" = set; then
13022   enableval=$enable_treelist;
13023                           if test "$enableval" = yes; then
13024                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=yes'
13025                           else
13026                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=no'
13027                           fi
13028
13029 else
13030
13031                           wx_cv_use_treelist='wxUSE_TREELISTCTRL=${'DEFAULT_wxUSE_TREELISTCTRL":-$defaultval}"
13032
13033 fi
13034
13035
13036           eval "$wx_cv_use_treelist"
13037
13038           if test x"$enablestring" = xdisable; then
13039             if test $wxUSE_TREELISTCTRL = no; then
13040               result=yes
13041             else
13042               result=no
13043             fi
13044           else
13045             result=$wxUSE_TREELISTCTRL
13046           fi
13047
13048           { echo "$as_me:$LINENO: result: $result" >&5
13049 echo "${ECHO_T}$result" >&6; }
13050
13051
13052
13053
13054           enablestring=
13055           defaultval=$wxUSE_ALL_FEATURES
13056           if test -z "$defaultval"; then
13057               if test x"$enablestring" = xdisable; then
13058                   defaultval=yes
13059               else
13060                   defaultval=no
13061               fi
13062           fi
13063
13064           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
13065 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
13066           # Check whether --enable-commondlg was given.
13067 if test "${enable_commondlg+set}" = set; then
13068   enableval=$enable_commondlg;
13069                           if test "$enableval" = yes; then
13070                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
13071                           else
13072                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
13073                           fi
13074
13075 else
13076
13077                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
13078
13079 fi
13080
13081
13082           eval "$wx_cv_use_commondlg"
13083
13084           if test x"$enablestring" = xdisable; then
13085             if test $wxUSE_COMMONDLGS = no; then
13086               result=yes
13087             else
13088               result=no
13089             fi
13090           else
13091             result=$wxUSE_COMMONDLGS
13092           fi
13093
13094           { echo "$as_me:$LINENO: result: $result" >&5
13095 echo "${ECHO_T}$result" >&6; }
13096
13097
13098           enablestring=
13099           defaultval=$wxUSE_ALL_FEATURES
13100           if test -z "$defaultval"; then
13101               if test x"$enablestring" = xdisable; then
13102                   defaultval=yes
13103               else
13104                   defaultval=no
13105               fi
13106           fi
13107
13108           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13109 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13110           # Check whether --enable-aboutdlg was given.
13111 if test "${enable_aboutdlg+set}" = set; then
13112   enableval=$enable_aboutdlg;
13113                           if test "$enableval" = yes; then
13114                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13115                           else
13116                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13117                           fi
13118
13119 else
13120
13121                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13122
13123 fi
13124
13125
13126           eval "$wx_cv_use_aboutdlg"
13127
13128           if test x"$enablestring" = xdisable; then
13129             if test $wxUSE_ABOUTDLG = no; then
13130               result=yes
13131             else
13132               result=no
13133             fi
13134           else
13135             result=$wxUSE_ABOUTDLG
13136           fi
13137
13138           { echo "$as_me:$LINENO: result: $result" >&5
13139 echo "${ECHO_T}$result" >&6; }
13140
13141
13142           enablestring=
13143           defaultval=$wxUSE_ALL_FEATURES
13144           if test -z "$defaultval"; then
13145               if test x"$enablestring" = xdisable; then
13146                   defaultval=yes
13147               else
13148                   defaultval=no
13149               fi
13150           fi
13151
13152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13153 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13154           # Check whether --enable-choicedlg was given.
13155 if test "${enable_choicedlg+set}" = set; then
13156   enableval=$enable_choicedlg;
13157                           if test "$enableval" = yes; then
13158                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13159                           else
13160                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13161                           fi
13162
13163 else
13164
13165                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13166
13167 fi
13168
13169
13170           eval "$wx_cv_use_choicedlg"
13171
13172           if test x"$enablestring" = xdisable; then
13173             if test $wxUSE_CHOICEDLG = no; then
13174               result=yes
13175             else
13176               result=no
13177             fi
13178           else
13179             result=$wxUSE_CHOICEDLG
13180           fi
13181
13182           { echo "$as_me:$LINENO: result: $result" >&5
13183 echo "${ECHO_T}$result" >&6; }
13184
13185
13186           enablestring=
13187           defaultval=$wxUSE_ALL_FEATURES
13188           if test -z "$defaultval"; then
13189               if test x"$enablestring" = xdisable; then
13190                   defaultval=yes
13191               else
13192                   defaultval=no
13193               fi
13194           fi
13195
13196           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13197 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13198           # Check whether --enable-coldlg was given.
13199 if test "${enable_coldlg+set}" = set; then
13200   enableval=$enable_coldlg;
13201                           if test "$enableval" = yes; then
13202                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13203                           else
13204                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13205                           fi
13206
13207 else
13208
13209                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13210
13211 fi
13212
13213
13214           eval "$wx_cv_use_coldlg"
13215
13216           if test x"$enablestring" = xdisable; then
13217             if test $wxUSE_COLOURDLG = no; then
13218               result=yes
13219             else
13220               result=no
13221             fi
13222           else
13223             result=$wxUSE_COLOURDLG
13224           fi
13225
13226           { echo "$as_me:$LINENO: result: $result" >&5
13227 echo "${ECHO_T}$result" >&6; }
13228
13229
13230           enablestring=
13231           defaultval=$wxUSE_ALL_FEATURES
13232           if test -z "$defaultval"; then
13233               if test x"$enablestring" = xdisable; then
13234                   defaultval=yes
13235               else
13236                   defaultval=no
13237               fi
13238           fi
13239
13240           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13241 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13242           # Check whether --enable-filedlg was given.
13243 if test "${enable_filedlg+set}" = set; then
13244   enableval=$enable_filedlg;
13245                           if test "$enableval" = yes; then
13246                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13247                           else
13248                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13249                           fi
13250
13251 else
13252
13253                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13254
13255 fi
13256
13257
13258           eval "$wx_cv_use_filedlg"
13259
13260           if test x"$enablestring" = xdisable; then
13261             if test $wxUSE_FILEDLG = no; then
13262               result=yes
13263             else
13264               result=no
13265             fi
13266           else
13267             result=$wxUSE_FILEDLG
13268           fi
13269
13270           { echo "$as_me:$LINENO: result: $result" >&5
13271 echo "${ECHO_T}$result" >&6; }
13272
13273
13274           enablestring=
13275           defaultval=$wxUSE_ALL_FEATURES
13276           if test -z "$defaultval"; then
13277               if test x"$enablestring" = xdisable; then
13278                   defaultval=yes
13279               else
13280                   defaultval=no
13281               fi
13282           fi
13283
13284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13285 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13286           # Check whether --enable-finddlg was given.
13287 if test "${enable_finddlg+set}" = set; then
13288   enableval=$enable_finddlg;
13289                           if test "$enableval" = yes; then
13290                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13291                           else
13292                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13293                           fi
13294
13295 else
13296
13297                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13298
13299 fi
13300
13301
13302           eval "$wx_cv_use_finddlg"
13303
13304           if test x"$enablestring" = xdisable; then
13305             if test $wxUSE_FINDREPLDLG = no; then
13306               result=yes
13307             else
13308               result=no
13309             fi
13310           else
13311             result=$wxUSE_FINDREPLDLG
13312           fi
13313
13314           { echo "$as_me:$LINENO: result: $result" >&5
13315 echo "${ECHO_T}$result" >&6; }
13316
13317
13318           enablestring=
13319           defaultval=$wxUSE_ALL_FEATURES
13320           if test -z "$defaultval"; then
13321               if test x"$enablestring" = xdisable; then
13322                   defaultval=yes
13323               else
13324                   defaultval=no
13325               fi
13326           fi
13327
13328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13329 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13330           # Check whether --enable-fontdlg was given.
13331 if test "${enable_fontdlg+set}" = set; then
13332   enableval=$enable_fontdlg;
13333                           if test "$enableval" = yes; then
13334                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13335                           else
13336                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13337                           fi
13338
13339 else
13340
13341                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13342
13343 fi
13344
13345
13346           eval "$wx_cv_use_fontdlg"
13347
13348           if test x"$enablestring" = xdisable; then
13349             if test $wxUSE_FONTDLG = no; then
13350               result=yes
13351             else
13352               result=no
13353             fi
13354           else
13355             result=$wxUSE_FONTDLG
13356           fi
13357
13358           { echo "$as_me:$LINENO: result: $result" >&5
13359 echo "${ECHO_T}$result" >&6; }
13360
13361
13362           enablestring=
13363           defaultval=$wxUSE_ALL_FEATURES
13364           if test -z "$defaultval"; then
13365               if test x"$enablestring" = xdisable; then
13366                   defaultval=yes
13367               else
13368                   defaultval=no
13369               fi
13370           fi
13371
13372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13373 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13374           # Check whether --enable-dirdlg was given.
13375 if test "${enable_dirdlg+set}" = set; then
13376   enableval=$enable_dirdlg;
13377                           if test "$enableval" = yes; then
13378                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13379                           else
13380                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13381                           fi
13382
13383 else
13384
13385                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13386
13387 fi
13388
13389
13390           eval "$wx_cv_use_dirdlg"
13391
13392           if test x"$enablestring" = xdisable; then
13393             if test $wxUSE_DIRDLG = no; then
13394               result=yes
13395             else
13396               result=no
13397             fi
13398           else
13399             result=$wxUSE_DIRDLG
13400           fi
13401
13402           { echo "$as_me:$LINENO: result: $result" >&5
13403 echo "${ECHO_T}$result" >&6; }
13404
13405
13406           enablestring=
13407           defaultval=$wxUSE_ALL_FEATURES
13408           if test -z "$defaultval"; then
13409               if test x"$enablestring" = xdisable; then
13410                   defaultval=yes
13411               else
13412                   defaultval=no
13413               fi
13414           fi
13415
13416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13417 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13418           # Check whether --enable-msgdlg was given.
13419 if test "${enable_msgdlg+set}" = set; then
13420   enableval=$enable_msgdlg;
13421                           if test "$enableval" = yes; then
13422                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13423                           else
13424                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13425                           fi
13426
13427 else
13428
13429                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13430
13431 fi
13432
13433
13434           eval "$wx_cv_use_msgdlg"
13435
13436           if test x"$enablestring" = xdisable; then
13437             if test $wxUSE_MSGDLG = no; then
13438               result=yes
13439             else
13440               result=no
13441             fi
13442           else
13443             result=$wxUSE_MSGDLG
13444           fi
13445
13446           { echo "$as_me:$LINENO: result: $result" >&5
13447 echo "${ECHO_T}$result" >&6; }
13448
13449
13450           enablestring=
13451           defaultval=$wxUSE_ALL_FEATURES
13452           if test -z "$defaultval"; then
13453               if test x"$enablestring" = xdisable; then
13454                   defaultval=yes
13455               else
13456                   defaultval=no
13457               fi
13458           fi
13459
13460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13461 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13462           # Check whether --enable-numberdlg was given.
13463 if test "${enable_numberdlg+set}" = set; then
13464   enableval=$enable_numberdlg;
13465                           if test "$enableval" = yes; then
13466                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13467                           else
13468                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13469                           fi
13470
13471 else
13472
13473                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13474
13475 fi
13476
13477
13478           eval "$wx_cv_use_numberdlg"
13479
13480           if test x"$enablestring" = xdisable; then
13481             if test $wxUSE_NUMBERDLG = no; then
13482               result=yes
13483             else
13484               result=no
13485             fi
13486           else
13487             result=$wxUSE_NUMBERDLG
13488           fi
13489
13490           { echo "$as_me:$LINENO: result: $result" >&5
13491 echo "${ECHO_T}$result" >&6; }
13492
13493
13494           enablestring=
13495           defaultval=$wxUSE_ALL_FEATURES
13496           if test -z "$defaultval"; then
13497               if test x"$enablestring" = xdisable; then
13498                   defaultval=yes
13499               else
13500                   defaultval=no
13501               fi
13502           fi
13503
13504           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13505 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13506           # Check whether --enable-splash was given.
13507 if test "${enable_splash+set}" = set; then
13508   enableval=$enable_splash;
13509                           if test "$enableval" = yes; then
13510                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13511                           else
13512                             wx_cv_use_splash='wxUSE_SPLASH=no'
13513                           fi
13514
13515 else
13516
13517                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13518
13519 fi
13520
13521
13522           eval "$wx_cv_use_splash"
13523
13524           if test x"$enablestring" = xdisable; then
13525             if test $wxUSE_SPLASH = no; then
13526               result=yes
13527             else
13528               result=no
13529             fi
13530           else
13531             result=$wxUSE_SPLASH
13532           fi
13533
13534           { echo "$as_me:$LINENO: result: $result" >&5
13535 echo "${ECHO_T}$result" >&6; }
13536
13537
13538           enablestring=
13539           defaultval=$wxUSE_ALL_FEATURES
13540           if test -z "$defaultval"; then
13541               if test x"$enablestring" = xdisable; then
13542                   defaultval=yes
13543               else
13544                   defaultval=no
13545               fi
13546           fi
13547
13548           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13549 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13550           # Check whether --enable-textdlg was given.
13551 if test "${enable_textdlg+set}" = set; then
13552   enableval=$enable_textdlg;
13553                           if test "$enableval" = yes; then
13554                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13555                           else
13556                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13557                           fi
13558
13559 else
13560
13561                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13562
13563 fi
13564
13565
13566           eval "$wx_cv_use_textdlg"
13567
13568           if test x"$enablestring" = xdisable; then
13569             if test $wxUSE_TEXTDLG = no; then
13570               result=yes
13571             else
13572               result=no
13573             fi
13574           else
13575             result=$wxUSE_TEXTDLG
13576           fi
13577
13578           { echo "$as_me:$LINENO: result: $result" >&5
13579 echo "${ECHO_T}$result" >&6; }
13580
13581
13582           enablestring=
13583           defaultval=$wxUSE_ALL_FEATURES
13584           if test -z "$defaultval"; then
13585               if test x"$enablestring" = xdisable; then
13586                   defaultval=yes
13587               else
13588                   defaultval=no
13589               fi
13590           fi
13591
13592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13593 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13594           # Check whether --enable-tipdlg was given.
13595 if test "${enable_tipdlg+set}" = set; then
13596   enableval=$enable_tipdlg;
13597                           if test "$enableval" = yes; then
13598                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13599                           else
13600                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13601                           fi
13602
13603 else
13604
13605                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13606
13607 fi
13608
13609
13610           eval "$wx_cv_use_tipdlg"
13611
13612           if test x"$enablestring" = xdisable; then
13613             if test $wxUSE_STARTUP_TIPS = no; then
13614               result=yes
13615             else
13616               result=no
13617             fi
13618           else
13619             result=$wxUSE_STARTUP_TIPS
13620           fi
13621
13622           { echo "$as_me:$LINENO: result: $result" >&5
13623 echo "${ECHO_T}$result" >&6; }
13624
13625
13626           enablestring=
13627           defaultval=$wxUSE_ALL_FEATURES
13628           if test -z "$defaultval"; then
13629               if test x"$enablestring" = xdisable; then
13630                   defaultval=yes
13631               else
13632                   defaultval=no
13633               fi
13634           fi
13635
13636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13637 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13638           # Check whether --enable-progressdlg was given.
13639 if test "${enable_progressdlg+set}" = set; then
13640   enableval=$enable_progressdlg;
13641                           if test "$enableval" = yes; then
13642                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13643                           else
13644                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13645                           fi
13646
13647 else
13648
13649                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13650
13651 fi
13652
13653
13654           eval "$wx_cv_use_progressdlg"
13655
13656           if test x"$enablestring" = xdisable; then
13657             if test $wxUSE_PROGRESSDLG = no; then
13658               result=yes
13659             else
13660               result=no
13661             fi
13662           else
13663             result=$wxUSE_PROGRESSDLG
13664           fi
13665
13666           { echo "$as_me:$LINENO: result: $result" >&5
13667 echo "${ECHO_T}$result" >&6; }
13668
13669
13670           enablestring=
13671           defaultval=$wxUSE_ALL_FEATURES
13672           if test -z "$defaultval"; then
13673               if test x"$enablestring" = xdisable; then
13674                   defaultval=yes
13675               else
13676                   defaultval=no
13677               fi
13678           fi
13679
13680           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13681 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13682           # Check whether --enable-wizarddlg was given.
13683 if test "${enable_wizarddlg+set}" = set; then
13684   enableval=$enable_wizarddlg;
13685                           if test "$enableval" = yes; then
13686                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13687                           else
13688                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13689                           fi
13690
13691 else
13692
13693                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13694
13695 fi
13696
13697
13698           eval "$wx_cv_use_wizarddlg"
13699
13700           if test x"$enablestring" = xdisable; then
13701             if test $wxUSE_WIZARDDLG = no; then
13702               result=yes
13703             else
13704               result=no
13705             fi
13706           else
13707             result=$wxUSE_WIZARDDLG
13708           fi
13709
13710           { echo "$as_me:$LINENO: result: $result" >&5
13711 echo "${ECHO_T}$result" >&6; }
13712
13713
13714
13715
13716           enablestring=
13717           defaultval=$wxUSE_ALL_FEATURES
13718           if test -z "$defaultval"; then
13719               if test x"$enablestring" = xdisable; then
13720                   defaultval=yes
13721               else
13722                   defaultval=no
13723               fi
13724           fi
13725
13726           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13727 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13728           # Check whether --enable-menus was given.
13729 if test "${enable_menus+set}" = set; then
13730   enableval=$enable_menus;
13731                           if test "$enableval" = yes; then
13732                             wx_cv_use_menus='wxUSE_MENUS=yes'
13733                           else
13734                             wx_cv_use_menus='wxUSE_MENUS=no'
13735                           fi
13736
13737 else
13738
13739                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13740
13741 fi
13742
13743
13744           eval "$wx_cv_use_menus"
13745
13746           if test x"$enablestring" = xdisable; then
13747             if test $wxUSE_MENUS = no; then
13748               result=yes
13749             else
13750               result=no
13751             fi
13752           else
13753             result=$wxUSE_MENUS
13754           fi
13755
13756           { echo "$as_me:$LINENO: result: $result" >&5
13757 echo "${ECHO_T}$result" >&6; }
13758
13759
13760           enablestring=
13761           defaultval=$wxUSE_ALL_FEATURES
13762           if test -z "$defaultval"; then
13763               if test x"$enablestring" = xdisable; then
13764                   defaultval=yes
13765               else
13766                   defaultval=no
13767               fi
13768           fi
13769
13770           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13771 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13772           # Check whether --enable-miniframe was given.
13773 if test "${enable_miniframe+set}" = set; then
13774   enableval=$enable_miniframe;
13775                           if test "$enableval" = yes; then
13776                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13777                           else
13778                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13779                           fi
13780
13781 else
13782
13783                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13784
13785 fi
13786
13787
13788           eval "$wx_cv_use_miniframe"
13789
13790           if test x"$enablestring" = xdisable; then
13791             if test $wxUSE_MINIFRAME = no; then
13792               result=yes
13793             else
13794               result=no
13795             fi
13796           else
13797             result=$wxUSE_MINIFRAME
13798           fi
13799
13800           { echo "$as_me:$LINENO: result: $result" >&5
13801 echo "${ECHO_T}$result" >&6; }
13802
13803
13804           enablestring=
13805           defaultval=$wxUSE_ALL_FEATURES
13806           if test -z "$defaultval"; then
13807               if test x"$enablestring" = xdisable; then
13808                   defaultval=yes
13809               else
13810                   defaultval=no
13811               fi
13812           fi
13813
13814           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13815 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13816           # Check whether --enable-tooltips was given.
13817 if test "${enable_tooltips+set}" = set; then
13818   enableval=$enable_tooltips;
13819                           if test "$enableval" = yes; then
13820                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13821                           else
13822                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13823                           fi
13824
13825 else
13826
13827                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13828
13829 fi
13830
13831
13832           eval "$wx_cv_use_tooltips"
13833
13834           if test x"$enablestring" = xdisable; then
13835             if test $wxUSE_TOOLTIPS = no; then
13836               result=yes
13837             else
13838               result=no
13839             fi
13840           else
13841             result=$wxUSE_TOOLTIPS
13842           fi
13843
13844           { echo "$as_me:$LINENO: result: $result" >&5
13845 echo "${ECHO_T}$result" >&6; }
13846
13847
13848           enablestring=
13849           defaultval=$wxUSE_ALL_FEATURES
13850           if test -z "$defaultval"; then
13851               if test x"$enablestring" = xdisable; then
13852                   defaultval=yes
13853               else
13854                   defaultval=no
13855               fi
13856           fi
13857
13858           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13859 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13860           # Check whether --enable-splines was given.
13861 if test "${enable_splines+set}" = set; then
13862   enableval=$enable_splines;
13863                           if test "$enableval" = yes; then
13864                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13865                           else
13866                             wx_cv_use_splines='wxUSE_SPLINES=no'
13867                           fi
13868
13869 else
13870
13871                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13872
13873 fi
13874
13875
13876           eval "$wx_cv_use_splines"
13877
13878           if test x"$enablestring" = xdisable; then
13879             if test $wxUSE_SPLINES = no; then
13880               result=yes
13881             else
13882               result=no
13883             fi
13884           else
13885             result=$wxUSE_SPLINES
13886           fi
13887
13888           { echo "$as_me:$LINENO: result: $result" >&5
13889 echo "${ECHO_T}$result" >&6; }
13890
13891
13892           enablestring=
13893           defaultval=$wxUSE_ALL_FEATURES
13894           if test -z "$defaultval"; then
13895               if test x"$enablestring" = xdisable; then
13896                   defaultval=yes
13897               else
13898                   defaultval=no
13899               fi
13900           fi
13901
13902           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13903 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13904           # Check whether --enable-mousewheel was given.
13905 if test "${enable_mousewheel+set}" = set; then
13906   enableval=$enable_mousewheel;
13907                           if test "$enableval" = yes; then
13908                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13909                           else
13910                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13911                           fi
13912
13913 else
13914
13915                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13916
13917 fi
13918
13919
13920           eval "$wx_cv_use_mousewheel"
13921
13922           if test x"$enablestring" = xdisable; then
13923             if test $wxUSE_MOUSEWHEEL = no; then
13924               result=yes
13925             else
13926               result=no
13927             fi
13928           else
13929             result=$wxUSE_MOUSEWHEEL
13930           fi
13931
13932           { echo "$as_me:$LINENO: result: $result" >&5
13933 echo "${ECHO_T}$result" >&6; }
13934
13935
13936           enablestring=
13937           defaultval=$wxUSE_ALL_FEATURES
13938           if test -z "$defaultval"; then
13939               if test x"$enablestring" = xdisable; then
13940                   defaultval=yes
13941               else
13942                   defaultval=no
13943               fi
13944           fi
13945
13946           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13947 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13948           # Check whether --enable-validators was given.
13949 if test "${enable_validators+set}" = set; then
13950   enableval=$enable_validators;
13951                           if test "$enableval" = yes; then
13952                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13953                           else
13954                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13955                           fi
13956
13957 else
13958
13959                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13960
13961 fi
13962
13963
13964           eval "$wx_cv_use_validators"
13965
13966           if test x"$enablestring" = xdisable; then
13967             if test $wxUSE_VALIDATORS = no; then
13968               result=yes
13969             else
13970               result=no
13971             fi
13972           else
13973             result=$wxUSE_VALIDATORS
13974           fi
13975
13976           { echo "$as_me:$LINENO: result: $result" >&5
13977 echo "${ECHO_T}$result" >&6; }
13978
13979
13980           enablestring=
13981           defaultval=$wxUSE_ALL_FEATURES
13982           if test -z "$defaultval"; then
13983               if test x"$enablestring" = xdisable; then
13984                   defaultval=yes
13985               else
13986                   defaultval=no
13987               fi
13988           fi
13989
13990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13991 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13992           # Check whether --enable-busyinfo was given.
13993 if test "${enable_busyinfo+set}" = set; then
13994   enableval=$enable_busyinfo;
13995                           if test "$enableval" = yes; then
13996                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13997                           else
13998                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13999                           fi
14000
14001 else
14002
14003                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
14004
14005 fi
14006
14007
14008           eval "$wx_cv_use_busyinfo"
14009
14010           if test x"$enablestring" = xdisable; then
14011             if test $wxUSE_BUSYINFO = no; then
14012               result=yes
14013             else
14014               result=no
14015             fi
14016           else
14017             result=$wxUSE_BUSYINFO
14018           fi
14019
14020           { echo "$as_me:$LINENO: result: $result" >&5
14021 echo "${ECHO_T}$result" >&6; }
14022
14023
14024           enablestring=
14025           defaultval=$wxUSE_ALL_FEATURES
14026           if test -z "$defaultval"; then
14027               if test x"$enablestring" = xdisable; then
14028                   defaultval=yes
14029               else
14030                   defaultval=no
14031               fi
14032           fi
14033
14034           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hotkey" >&5
14035 echo $ECHO_N "checking for --${enablestring:-enable}-hotkey... $ECHO_C" >&6; }
14036           # Check whether --enable-hotkey was given.
14037 if test "${enable_hotkey+set}" = set; then
14038   enableval=$enable_hotkey;
14039                           if test "$enableval" = yes; then
14040                             wx_cv_use_hotkey='wxUSE_HOTKEY=yes'
14041                           else
14042                             wx_cv_use_hotkey='wxUSE_HOTKEY=no'
14043                           fi
14044
14045 else
14046
14047                           wx_cv_use_hotkey='wxUSE_HOTKEY=${'DEFAULT_wxUSE_HOTKEY":-$defaultval}"
14048
14049 fi
14050
14051
14052           eval "$wx_cv_use_hotkey"
14053
14054           if test x"$enablestring" = xdisable; then
14055             if test $wxUSE_HOTKEY = no; then
14056               result=yes
14057             else
14058               result=no
14059             fi
14060           else
14061             result=$wxUSE_HOTKEY
14062           fi
14063
14064           { echo "$as_me:$LINENO: result: $result" >&5
14065 echo "${ECHO_T}$result" >&6; }
14066
14067
14068           enablestring=
14069           defaultval=$wxUSE_ALL_FEATURES
14070           if test -z "$defaultval"; then
14071               if test x"$enablestring" = xdisable; then
14072                   defaultval=yes
14073               else
14074                   defaultval=no
14075               fi
14076           fi
14077
14078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
14079 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
14080           # Check whether --enable-joystick was given.
14081 if test "${enable_joystick+set}" = set; then
14082   enableval=$enable_joystick;
14083                           if test "$enableval" = yes; then
14084                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
14085                           else
14086                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14087                           fi
14088
14089 else
14090
14091                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14092
14093 fi
14094
14095
14096           eval "$wx_cv_use_joystick"
14097
14098           if test x"$enablestring" = xdisable; then
14099             if test $wxUSE_JOYSTICK = no; then
14100               result=yes
14101             else
14102               result=no
14103             fi
14104           else
14105             result=$wxUSE_JOYSTICK
14106           fi
14107
14108           { echo "$as_me:$LINENO: result: $result" >&5
14109 echo "${ECHO_T}$result" >&6; }
14110
14111
14112           enablestring=
14113           defaultval=$wxUSE_ALL_FEATURES
14114           if test -z "$defaultval"; then
14115               if test x"$enablestring" = xdisable; then
14116                   defaultval=yes
14117               else
14118                   defaultval=no
14119               fi
14120           fi
14121
14122           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14123 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14124           # Check whether --enable-metafile was given.
14125 if test "${enable_metafile+set}" = set; then
14126   enableval=$enable_metafile;
14127                           if test "$enableval" = yes; then
14128                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14129                           else
14130                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14131                           fi
14132
14133 else
14134
14135                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14136
14137 fi
14138
14139
14140           eval "$wx_cv_use_metafile"
14141
14142           if test x"$enablestring" = xdisable; then
14143             if test $wxUSE_METAFILE = no; then
14144               result=yes
14145             else
14146               result=no
14147             fi
14148           else
14149             result=$wxUSE_METAFILE
14150           fi
14151
14152           { echo "$as_me:$LINENO: result: $result" >&5
14153 echo "${ECHO_T}$result" >&6; }
14154
14155
14156           enablestring=
14157           defaultval=$wxUSE_ALL_FEATURES
14158           if test -z "$defaultval"; then
14159               if test x"$enablestring" = xdisable; then
14160                   defaultval=yes
14161               else
14162                   defaultval=no
14163               fi
14164           fi
14165
14166           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14167 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14168           # Check whether --enable-dragimage was given.
14169 if test "${enable_dragimage+set}" = set; then
14170   enableval=$enable_dragimage;
14171                           if test "$enableval" = yes; then
14172                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14173                           else
14174                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14175                           fi
14176
14177 else
14178
14179                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
14180
14181 fi
14182
14183
14184           eval "$wx_cv_use_dragimage"
14185
14186           if test x"$enablestring" = xdisable; then
14187             if test $wxUSE_DRAGIMAGE = no; then
14188               result=yes
14189             else
14190               result=no
14191             fi
14192           else
14193             result=$wxUSE_DRAGIMAGE
14194           fi
14195
14196           { echo "$as_me:$LINENO: result: $result" >&5
14197 echo "${ECHO_T}$result" >&6; }
14198
14199
14200           enablestring=
14201           defaultval=$wxUSE_ALL_FEATURES
14202           if test -z "$defaultval"; then
14203               if test x"$enablestring" = xdisable; then
14204                   defaultval=yes
14205               else
14206                   defaultval=no
14207               fi
14208           fi
14209
14210           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14211 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14212           # Check whether --enable-accessibility was given.
14213 if test "${enable_accessibility+set}" = set; then
14214   enableval=$enable_accessibility;
14215                           if test "$enableval" = yes; then
14216                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
14217                           else
14218                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
14219                           fi
14220
14221 else
14222
14223                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
14224
14225 fi
14226
14227
14228           eval "$wx_cv_use_accessibility"
14229
14230           if test x"$enablestring" = xdisable; then
14231             if test $wxUSE_ACCESSIBILITY = no; then
14232               result=yes
14233             else
14234               result=no
14235             fi
14236           else
14237             result=$wxUSE_ACCESSIBILITY
14238           fi
14239
14240           { echo "$as_me:$LINENO: result: $result" >&5
14241 echo "${ECHO_T}$result" >&6; }
14242
14243
14244           enablestring=
14245           defaultval=$wxUSE_ALL_FEATURES
14246           if test -z "$defaultval"; then
14247               if test x"$enablestring" = xdisable; then
14248                   defaultval=yes
14249               else
14250                   defaultval=no
14251               fi
14252           fi
14253
14254           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
14255 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
14256           # Check whether --enable-uiactionsim was given.
14257 if test "${enable_uiactionsim+set}" = set; then
14258   enableval=$enable_uiactionsim;
14259                           if test "$enableval" = yes; then
14260                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
14261                           else
14262                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
14263                           fi
14264
14265 else
14266
14267                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
14268
14269 fi
14270
14271
14272           eval "$wx_cv_use_uiactionsim"
14273
14274           if test x"$enablestring" = xdisable; then
14275             if test $wxUSE_UIACTIONSIMULATOR = no; then
14276               result=yes
14277             else
14278               result=no
14279             fi
14280           else
14281             result=$wxUSE_UIACTIONSIMULATOR
14282           fi
14283
14284           { echo "$as_me:$LINENO: result: $result" >&5
14285 echo "${ECHO_T}$result" >&6; }
14286
14287
14288           enablestring=
14289           defaultval=$wxUSE_ALL_FEATURES
14290           if test -z "$defaultval"; then
14291               if test x"$enablestring" = xdisable; then
14292                   defaultval=yes
14293               else
14294                   defaultval=no
14295               fi
14296           fi
14297
14298           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dctransform" >&5
14299 echo $ECHO_N "checking for --${enablestring:-enable}-dctransform... $ECHO_C" >&6; }
14300           # Check whether --enable-dctransform was given.
14301 if test "${enable_dctransform+set}" = set; then
14302   enableval=$enable_dctransform;
14303                           if test "$enableval" = yes; then
14304                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes'
14305                           else
14306                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no'
14307                           fi
14308
14309 else
14310
14311                           wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}"
14312
14313 fi
14314
14315
14316           eval "$wx_cv_use_dctransform"
14317
14318           if test x"$enablestring" = xdisable; then
14319             if test $wxUSE_DC_TRANSFORM_MATRIX = no; then
14320               result=yes
14321             else
14322               result=no
14323             fi
14324           else
14325             result=$wxUSE_DC_TRANSFORM_MATRIX
14326           fi
14327
14328           { echo "$as_me:$LINENO: result: $result" >&5
14329 echo "${ECHO_T}$result" >&6; }
14330
14331
14332           enablestring=
14333           defaultval=$wxUSE_ALL_FEATURES
14334           if test -z "$defaultval"; then
14335               if test x"$enablestring" = xdisable; then
14336                   defaultval=yes
14337               else
14338                   defaultval=no
14339               fi
14340           fi
14341
14342           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewwebkit" >&5
14343 echo $ECHO_N "checking for --${enablestring:-enable}-webviewwebkit... $ECHO_C" >&6; }
14344           # Check whether --enable-webviewwebkit was given.
14345 if test "${enable_webviewwebkit+set}" = set; then
14346   enableval=$enable_webviewwebkit;
14347                           if test "$enableval" = yes; then
14348                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=yes'
14349                           else
14350                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=no'
14351                           fi
14352
14353 else
14354
14355                           wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=${'DEFAULT_wxUSE_WEBVIEW_WEBKIT":-$defaultval}"
14356
14357 fi
14358
14359
14360           eval "$wx_cv_use_webviewwebkit"
14361
14362           if test x"$enablestring" = xdisable; then
14363             if test $wxUSE_WEBVIEW_WEBKIT = no; then
14364               result=yes
14365             else
14366               result=no
14367             fi
14368           else
14369             result=$wxUSE_WEBVIEW_WEBKIT
14370           fi
14371
14372           { echo "$as_me:$LINENO: result: $result" >&5
14373 echo "${ECHO_T}$result" >&6; }
14374
14375
14376
14377
14378           enablestring=
14379           defaultval=$wxUSE_ALL_FEATURES
14380           if test -z "$defaultval"; then
14381               if test x"$enablestring" = xdisable; then
14382                   defaultval=yes
14383               else
14384                   defaultval=no
14385               fi
14386           fi
14387
14388           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14389 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14390           # Check whether --enable-palette was given.
14391 if test "${enable_palette+set}" = set; then
14392   enableval=$enable_palette;
14393                           if test "$enableval" = yes; then
14394                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14395                           else
14396                             wx_cv_use_palette='wxUSE_PALETTE=no'
14397                           fi
14398
14399 else
14400
14401                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14402
14403 fi
14404
14405
14406           eval "$wx_cv_use_palette"
14407
14408           if test x"$enablestring" = xdisable; then
14409             if test $wxUSE_PALETTE = no; then
14410               result=yes
14411             else
14412               result=no
14413             fi
14414           else
14415             result=$wxUSE_PALETTE
14416           fi
14417
14418           { echo "$as_me:$LINENO: result: $result" >&5
14419 echo "${ECHO_T}$result" >&6; }
14420
14421
14422           enablestring=
14423           defaultval=$wxUSE_ALL_FEATURES
14424           if test -z "$defaultval"; then
14425               if test x"$enablestring" = xdisable; then
14426                   defaultval=yes
14427               else
14428                   defaultval=no
14429               fi
14430           fi
14431
14432           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14433 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14434           # Check whether --enable-image was given.
14435 if test "${enable_image+set}" = set; then
14436   enableval=$enable_image;
14437                           if test "$enableval" = yes; then
14438                             wx_cv_use_image='wxUSE_IMAGE=yes'
14439                           else
14440                             wx_cv_use_image='wxUSE_IMAGE=no'
14441                           fi
14442
14443 else
14444
14445                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14446
14447 fi
14448
14449
14450           eval "$wx_cv_use_image"
14451
14452           if test x"$enablestring" = xdisable; then
14453             if test $wxUSE_IMAGE = no; then
14454               result=yes
14455             else
14456               result=no
14457             fi
14458           else
14459             result=$wxUSE_IMAGE
14460           fi
14461
14462           { echo "$as_me:$LINENO: result: $result" >&5
14463 echo "${ECHO_T}$result" >&6; }
14464
14465
14466           enablestring=
14467           defaultval=$wxUSE_ALL_FEATURES
14468           if test -z "$defaultval"; then
14469               if test x"$enablestring" = xdisable; then
14470                   defaultval=yes
14471               else
14472                   defaultval=no
14473               fi
14474           fi
14475
14476           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14477 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14478           # Check whether --enable-gif was given.
14479 if test "${enable_gif+set}" = set; then
14480   enableval=$enable_gif;
14481                           if test "$enableval" = yes; then
14482                             wx_cv_use_gif='wxUSE_GIF=yes'
14483                           else
14484                             wx_cv_use_gif='wxUSE_GIF=no'
14485                           fi
14486
14487 else
14488
14489                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14490
14491 fi
14492
14493
14494           eval "$wx_cv_use_gif"
14495
14496           if test x"$enablestring" = xdisable; then
14497             if test $wxUSE_GIF = no; then
14498               result=yes
14499             else
14500               result=no
14501             fi
14502           else
14503             result=$wxUSE_GIF
14504           fi
14505
14506           { echo "$as_me:$LINENO: result: $result" >&5
14507 echo "${ECHO_T}$result" >&6; }
14508
14509
14510           enablestring=
14511           defaultval=$wxUSE_ALL_FEATURES
14512           if test -z "$defaultval"; then
14513               if test x"$enablestring" = xdisable; then
14514                   defaultval=yes
14515               else
14516                   defaultval=no
14517               fi
14518           fi
14519
14520           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14521 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14522           # Check whether --enable-pcx was given.
14523 if test "${enable_pcx+set}" = set; then
14524   enableval=$enable_pcx;
14525                           if test "$enableval" = yes; then
14526                             wx_cv_use_pcx='wxUSE_PCX=yes'
14527                           else
14528                             wx_cv_use_pcx='wxUSE_PCX=no'
14529                           fi
14530
14531 else
14532
14533                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14534
14535 fi
14536
14537
14538           eval "$wx_cv_use_pcx"
14539
14540           if test x"$enablestring" = xdisable; then
14541             if test $wxUSE_PCX = no; then
14542               result=yes
14543             else
14544               result=no
14545             fi
14546           else
14547             result=$wxUSE_PCX
14548           fi
14549
14550           { echo "$as_me:$LINENO: result: $result" >&5
14551 echo "${ECHO_T}$result" >&6; }
14552
14553
14554           enablestring=
14555           defaultval=$wxUSE_ALL_FEATURES
14556           if test -z "$defaultval"; then
14557               if test x"$enablestring" = xdisable; then
14558                   defaultval=yes
14559               else
14560                   defaultval=no
14561               fi
14562           fi
14563
14564           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14565 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14566           # Check whether --enable-tga was given.
14567 if test "${enable_tga+set}" = set; then
14568   enableval=$enable_tga;
14569                           if test "$enableval" = yes; then
14570                             wx_cv_use_tga='wxUSE_TGA=yes'
14571                           else
14572                             wx_cv_use_tga='wxUSE_TGA=no'
14573                           fi
14574
14575 else
14576
14577                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14578
14579 fi
14580
14581
14582           eval "$wx_cv_use_tga"
14583
14584           if test x"$enablestring" = xdisable; then
14585             if test $wxUSE_TGA = no; then
14586               result=yes
14587             else
14588               result=no
14589             fi
14590           else
14591             result=$wxUSE_TGA
14592           fi
14593
14594           { echo "$as_me:$LINENO: result: $result" >&5
14595 echo "${ECHO_T}$result" >&6; }
14596
14597
14598           enablestring=
14599           defaultval=$wxUSE_ALL_FEATURES
14600           if test -z "$defaultval"; then
14601               if test x"$enablestring" = xdisable; then
14602                   defaultval=yes
14603               else
14604                   defaultval=no
14605               fi
14606           fi
14607
14608           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14609 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14610           # Check whether --enable-iff was given.
14611 if test "${enable_iff+set}" = set; then
14612   enableval=$enable_iff;
14613                           if test "$enableval" = yes; then
14614                             wx_cv_use_iff='wxUSE_IFF=yes'
14615                           else
14616                             wx_cv_use_iff='wxUSE_IFF=no'
14617                           fi
14618
14619 else
14620
14621                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14622
14623 fi
14624
14625
14626           eval "$wx_cv_use_iff"
14627
14628           if test x"$enablestring" = xdisable; then
14629             if test $wxUSE_IFF = no; then
14630               result=yes
14631             else
14632               result=no
14633             fi
14634           else
14635             result=$wxUSE_IFF
14636           fi
14637
14638           { echo "$as_me:$LINENO: result: $result" >&5
14639 echo "${ECHO_T}$result" >&6; }
14640
14641
14642           enablestring=
14643           defaultval=$wxUSE_ALL_FEATURES
14644           if test -z "$defaultval"; then
14645               if test x"$enablestring" = xdisable; then
14646                   defaultval=yes
14647               else
14648                   defaultval=no
14649               fi
14650           fi
14651
14652           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14653 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14654           # Check whether --enable-pnm was given.
14655 if test "${enable_pnm+set}" = set; then
14656   enableval=$enable_pnm;
14657                           if test "$enableval" = yes; then
14658                             wx_cv_use_pnm='wxUSE_PNM=yes'
14659                           else
14660                             wx_cv_use_pnm='wxUSE_PNM=no'
14661                           fi
14662
14663 else
14664
14665                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14666
14667 fi
14668
14669
14670           eval "$wx_cv_use_pnm"
14671
14672           if test x"$enablestring" = xdisable; then
14673             if test $wxUSE_PNM = no; then
14674               result=yes
14675             else
14676               result=no
14677             fi
14678           else
14679             result=$wxUSE_PNM
14680           fi
14681
14682           { echo "$as_me:$LINENO: result: $result" >&5
14683 echo "${ECHO_T}$result" >&6; }
14684
14685
14686           enablestring=
14687           defaultval=$wxUSE_ALL_FEATURES
14688           if test -z "$defaultval"; then
14689               if test x"$enablestring" = xdisable; then
14690                   defaultval=yes
14691               else
14692                   defaultval=no
14693               fi
14694           fi
14695
14696           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14697 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14698           # Check whether --enable-xpm was given.
14699 if test "${enable_xpm+set}" = set; then
14700   enableval=$enable_xpm;
14701                           if test "$enableval" = yes; then
14702                             wx_cv_use_xpm='wxUSE_XPM=yes'
14703                           else
14704                             wx_cv_use_xpm='wxUSE_XPM=no'
14705                           fi
14706
14707 else
14708
14709                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14710
14711 fi
14712
14713
14714           eval "$wx_cv_use_xpm"
14715
14716           if test x"$enablestring" = xdisable; then
14717             if test $wxUSE_XPM = no; then
14718               result=yes
14719             else
14720               result=no
14721             fi
14722           else
14723             result=$wxUSE_XPM
14724           fi
14725
14726           { echo "$as_me:$LINENO: result: $result" >&5
14727 echo "${ECHO_T}$result" >&6; }
14728
14729
14730           enablestring=
14731           defaultval=$wxUSE_ALL_FEATURES
14732           if test -z "$defaultval"; then
14733               if test x"$enablestring" = xdisable; then
14734                   defaultval=yes
14735               else
14736                   defaultval=no
14737               fi
14738           fi
14739
14740           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14741 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14742           # Check whether --enable-ico_cur was given.
14743 if test "${enable_ico_cur+set}" = set; then
14744   enableval=$enable_ico_cur;
14745                           if test "$enableval" = yes; then
14746                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14747                           else
14748                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14749                           fi
14750
14751 else
14752
14753                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14754
14755 fi
14756
14757
14758           eval "$wx_cv_use_ico_cur"
14759
14760           if test x"$enablestring" = xdisable; then
14761             if test $wxUSE_ICO_CUR = no; then
14762               result=yes
14763             else
14764               result=no
14765             fi
14766           else
14767             result=$wxUSE_ICO_CUR
14768           fi
14769
14770           { echo "$as_me:$LINENO: result: $result" >&5
14771 echo "${ECHO_T}$result" >&6; }
14772
14773
14774
14775
14776           enablestring=
14777           defaultval=$wxUSE_ALL_FEATURES
14778           if test -z "$defaultval"; then
14779               if test x"$enablestring" = xdisable; then
14780                   defaultval=yes
14781               else
14782                   defaultval=no
14783               fi
14784           fi
14785
14786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14787 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14788           # Check whether --enable-dccache was given.
14789 if test "${enable_dccache+set}" = set; then
14790   enableval=$enable_dccache;
14791                           if test "$enableval" = yes; then
14792                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14793                           else
14794                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14795                           fi
14796
14797 else
14798
14799                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14800
14801 fi
14802
14803
14804           eval "$wx_cv_use_dccache"
14805
14806           if test x"$enablestring" = xdisable; then
14807             if test $wxUSE_DC_CACHEING = no; then
14808               result=yes
14809             else
14810               result=no
14811             fi
14812           else
14813             result=$wxUSE_DC_CACHEING
14814           fi
14815
14816           { echo "$as_me:$LINENO: result: $result" >&5
14817 echo "${ECHO_T}$result" >&6; }
14818
14819
14820           enablestring=
14821           defaultval=$wxUSE_ALL_FEATURES
14822           if test -z "$defaultval"; then
14823               if test x"$enablestring" = xdisable; then
14824                   defaultval=yes
14825               else
14826                   defaultval=no
14827               fi
14828           fi
14829
14830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14831 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14832           # Check whether --enable-ps-in-msw was given.
14833 if test "${enable_ps_in_msw+set}" = set; then
14834   enableval=$enable_ps_in_msw;
14835                           if test "$enableval" = yes; then
14836                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14837                           else
14838                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14839                           fi
14840
14841 else
14842
14843                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14844
14845 fi
14846
14847
14848           eval "$wx_cv_use_ps_in_msw"
14849
14850           if test x"$enablestring" = xdisable; then
14851             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14852               result=yes
14853             else
14854               result=no
14855             fi
14856           else
14857             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14858           fi
14859
14860           { echo "$as_me:$LINENO: result: $result" >&5
14861 echo "${ECHO_T}$result" >&6; }
14862
14863
14864           enablestring=
14865           defaultval=$wxUSE_ALL_FEATURES
14866           if test -z "$defaultval"; then
14867               if test x"$enablestring" = xdisable; then
14868                   defaultval=yes
14869               else
14870                   defaultval=no
14871               fi
14872           fi
14873
14874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14875 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14876           # Check whether --enable-ownerdrawn was given.
14877 if test "${enable_ownerdrawn+set}" = set; then
14878   enableval=$enable_ownerdrawn;
14879                           if test "$enableval" = yes; then
14880                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14881                           else
14882                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14883                           fi
14884
14885 else
14886
14887                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14888
14889 fi
14890
14891
14892           eval "$wx_cv_use_ownerdrawn"
14893
14894           if test x"$enablestring" = xdisable; then
14895             if test $wxUSE_OWNER_DRAWN = no; then
14896               result=yes
14897             else
14898               result=no
14899             fi
14900           else
14901             result=$wxUSE_OWNER_DRAWN
14902           fi
14903
14904           { echo "$as_me:$LINENO: result: $result" >&5
14905 echo "${ECHO_T}$result" >&6; }
14906
14907
14908           enablestring=
14909           defaultval=$wxUSE_ALL_FEATURES
14910           if test -z "$defaultval"; then
14911               if test x"$enablestring" = xdisable; then
14912                   defaultval=yes
14913               else
14914                   defaultval=no
14915               fi
14916           fi
14917
14918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14919 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14920           # Check whether --enable-uxtheme was given.
14921 if test "${enable_uxtheme+set}" = set; then
14922   enableval=$enable_uxtheme;
14923                           if test "$enableval" = yes; then
14924                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14925                           else
14926                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14927                           fi
14928
14929 else
14930
14931                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14932
14933 fi
14934
14935
14936           eval "$wx_cv_use_uxtheme"
14937
14938           if test x"$enablestring" = xdisable; then
14939             if test $wxUSE_UXTHEME = no; then
14940               result=yes
14941             else
14942               result=no
14943             fi
14944           else
14945             result=$wxUSE_UXTHEME
14946           fi
14947
14948           { echo "$as_me:$LINENO: result: $result" >&5
14949 echo "${ECHO_T}$result" >&6; }
14950
14951
14952           enablestring=
14953           defaultval=$wxUSE_ALL_FEATURES
14954           if test -z "$defaultval"; then
14955               if test x"$enablestring" = xdisable; then
14956                   defaultval=yes
14957               else
14958                   defaultval=no
14959               fi
14960           fi
14961
14962           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14963 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14964           # Check whether --enable-wxdib was given.
14965 if test "${enable_wxdib+set}" = set; then
14966   enableval=$enable_wxdib;
14967                           if test "$enableval" = yes; then
14968                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14969                           else
14970                             wx_cv_use_wxdib='wxUSE_DIB=no'
14971                           fi
14972
14973 else
14974
14975                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14976
14977 fi
14978
14979
14980           eval "$wx_cv_use_wxdib"
14981
14982           if test x"$enablestring" = xdisable; then
14983             if test $wxUSE_DIB = no; then
14984               result=yes
14985             else
14986               result=no
14987             fi
14988           else
14989             result=$wxUSE_DIB
14990           fi
14991
14992           { echo "$as_me:$LINENO: result: $result" >&5
14993 echo "${ECHO_T}$result" >&6; }
14994
14995
14996           enablestring=
14997           defaultval=$wxUSE_ALL_FEATURES
14998           if test -z "$defaultval"; then
14999               if test x"$enablestring" = xdisable; then
15000                   defaultval=yes
15001               else
15002                   defaultval=no
15003               fi
15004           fi
15005
15006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewie" >&5
15007 echo $ECHO_N "checking for --${enablestring:-enable}-webviewie... $ECHO_C" >&6; }
15008           # Check whether --enable-webviewie was given.
15009 if test "${enable_webviewie+set}" = set; then
15010   enableval=$enable_webviewie;
15011                           if test "$enableval" = yes; then
15012                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=yes'
15013                           else
15014                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=no'
15015                           fi
15016
15017 else
15018
15019                           wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=${'DEFAULT_wxUSE_WEBVIEW_IE":-$defaultval}"
15020
15021 fi
15022
15023
15024           eval "$wx_cv_use_webviewie"
15025
15026           if test x"$enablestring" = xdisable; then
15027             if test $wxUSE_WEBVIEW_IE = no; then
15028               result=yes
15029             else
15030               result=no
15031             fi
15032           else
15033             result=$wxUSE_WEBVIEW_IE
15034           fi
15035
15036           { echo "$as_me:$LINENO: result: $result" >&5
15037 echo "${ECHO_T}$result" >&6; }
15038
15039
15040 if test "$wxUSE_MSW" != 1; then
15041     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
15042 fi
15043
15044
15045           enablestring=
15046           defaultval=$wxUSE_ALL_FEATURES
15047           if test -z "$defaultval"; then
15048               if test x"$enablestring" = xdisable; then
15049                   defaultval=yes
15050               else
15051                   defaultval=no
15052               fi
15053           fi
15054
15055           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
15056 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
15057           # Check whether --enable-autoidman was given.
15058 if test "${enable_autoidman+set}" = set; then
15059   enableval=$enable_autoidman;
15060                           if test "$enableval" = yes; then
15061                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
15062                           else
15063                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
15064                           fi
15065
15066 else
15067
15068                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
15069
15070 fi
15071
15072
15073           eval "$wx_cv_use_autoidman"
15074
15075           if test x"$enablestring" = xdisable; then
15076             if test $wxUSE_AUTOID_MANAGEMENT = no; then
15077               result=yes
15078             else
15079               result=no
15080             fi
15081           else
15082             result=$wxUSE_AUTOID_MANAGEMENT
15083           fi
15084
15085           { echo "$as_me:$LINENO: result: $result" >&5
15086 echo "${ECHO_T}$result" >&6; }
15087
15088
15089 fi
15090
15091
15092 cat >confcache <<\_ACEOF
15093 # This file is a shell script that caches the results of configure
15094 # tests run on this system so they can be shared between configure
15095 # scripts and configure runs, see configure's option --config-cache.
15096 # It is not useful on other systems.  If it contains results you don't
15097 # want to keep, you may remove or edit it.
15098 #
15099 # config.status only pays attention to the cache file if you give it
15100 # the --recheck option to rerun configure.
15101 #
15102 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15103 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15104 # following values.
15105
15106 _ACEOF
15107
15108 # The following way of writing the cache mishandles newlines in values,
15109 # but we know of no workaround that is simple, portable, and efficient.
15110 # So, we kill variables containing newlines.
15111 # Ultrix sh set writes to stderr and can't be redirected directly,
15112 # and sets the high bit in the cache file unless we assign to the vars.
15113 (
15114   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15115     eval ac_val=\$$ac_var
15116     case $ac_val in #(
15117     *${as_nl}*)
15118       case $ac_var in #(
15119       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15120 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15121       esac
15122       case $ac_var in #(
15123       _ | IFS | as_nl) ;; #(
15124       *) $as_unset $ac_var ;;
15125       esac ;;
15126     esac
15127   done
15128
15129   (set) 2>&1 |
15130     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15131     *${as_nl}ac_space=\ *)
15132       # `set' does not quote correctly, so add quotes (double-quote
15133       # substitution turns \\\\ into \\, and sed turns \\ into \).
15134       sed -n \
15135         "s/'/'\\\\''/g;
15136           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15137       ;; #(
15138     *)
15139       # `set' quotes correctly as required by POSIX, so do not add quotes.
15140       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15141       ;;
15142     esac |
15143     sort
15144 ) |
15145   sed '
15146      /^ac_cv_env_/b end
15147      t clear
15148      :clear
15149      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15150      t end
15151      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15152      :end' >>confcache
15153 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15154   if test -w "$cache_file"; then
15155     test "x$cache_file" != "x/dev/null" &&
15156       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15157 echo "$as_me: updating cache $cache_file" >&6;}
15158     cat confcache >$cache_file
15159   else
15160     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15161 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15162   fi
15163 fi
15164 rm -f confcache
15165
15166 CFLAGS=${CFLAGS:=}
15167 ac_ext=c
15168 ac_cpp='$CPP $CPPFLAGS'
15169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15172 if test -n "$ac_tool_prefix"; then
15173   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15177 if test "${ac_cv_prog_CC+set}" = set; then
15178   echo $ECHO_N "(cached) $ECHO_C" >&6
15179 else
15180   if test -n "$CC"; then
15181   ac_cv_prog_CC="$CC" # Let the user override the test.
15182 else
15183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15184 for as_dir in $PATH
15185 do
15186   IFS=$as_save_IFS
15187   test -z "$as_dir" && as_dir=.
15188   for ac_exec_ext in '' $ac_executable_extensions; do
15189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15190     ac_cv_prog_CC="${ac_tool_prefix}gcc"
15191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15192     break 2
15193   fi
15194 done
15195 done
15196 IFS=$as_save_IFS
15197
15198 fi
15199 fi
15200 CC=$ac_cv_prog_CC
15201 if test -n "$CC"; then
15202   { echo "$as_me:$LINENO: result: $CC" >&5
15203 echo "${ECHO_T}$CC" >&6; }
15204 else
15205   { echo "$as_me:$LINENO: result: no" >&5
15206 echo "${ECHO_T}no" >&6; }
15207 fi
15208
15209
15210 fi
15211 if test -z "$ac_cv_prog_CC"; then
15212   ac_ct_CC=$CC
15213   # Extract the first word of "gcc", so it can be a program name with args.
15214 set dummy gcc; ac_word=$2
15215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15217 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15218   echo $ECHO_N "(cached) $ECHO_C" >&6
15219 else
15220   if test -n "$ac_ct_CC"; then
15221   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15222 else
15223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15224 for as_dir in $PATH
15225 do
15226   IFS=$as_save_IFS
15227   test -z "$as_dir" && as_dir=.
15228   for ac_exec_ext in '' $ac_executable_extensions; do
15229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15230     ac_cv_prog_ac_ct_CC="gcc"
15231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15232     break 2
15233   fi
15234 done
15235 done
15236 IFS=$as_save_IFS
15237
15238 fi
15239 fi
15240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15241 if test -n "$ac_ct_CC"; then
15242   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15243 echo "${ECHO_T}$ac_ct_CC" >&6; }
15244 else
15245   { echo "$as_me:$LINENO: result: no" >&5
15246 echo "${ECHO_T}no" >&6; }
15247 fi
15248
15249   if test "x$ac_ct_CC" = x; then
15250     CC=""
15251   else
15252     case $cross_compiling:$ac_tool_warned in
15253 yes:)
15254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15255 whose name does not start with the host triplet.  If you think this
15256 configuration is useful to you, please write to autoconf@gnu.org." >&5
15257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15258 whose name does not start with the host triplet.  If you think this
15259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15260 ac_tool_warned=yes ;;
15261 esac
15262     CC=$ac_ct_CC
15263   fi
15264 else
15265   CC="$ac_cv_prog_CC"
15266 fi
15267
15268 if test -z "$CC"; then
15269           if test -n "$ac_tool_prefix"; then
15270     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15271 set dummy ${ac_tool_prefix}cc; ac_word=$2
15272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15274 if test "${ac_cv_prog_CC+set}" = set; then
15275   echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277   if test -n "$CC"; then
15278   ac_cv_prog_CC="$CC" # Let the user override the test.
15279 else
15280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281 for as_dir in $PATH
15282 do
15283   IFS=$as_save_IFS
15284   test -z "$as_dir" && as_dir=.
15285   for ac_exec_ext in '' $ac_executable_extensions; do
15286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15287     ac_cv_prog_CC="${ac_tool_prefix}cc"
15288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15289     break 2
15290   fi
15291 done
15292 done
15293 IFS=$as_save_IFS
15294
15295 fi
15296 fi
15297 CC=$ac_cv_prog_CC
15298 if test -n "$CC"; then
15299   { echo "$as_me:$LINENO: result: $CC" >&5
15300 echo "${ECHO_T}$CC" >&6; }
15301 else
15302   { echo "$as_me:$LINENO: result: no" >&5
15303 echo "${ECHO_T}no" >&6; }
15304 fi
15305
15306
15307   fi
15308 fi
15309 if test -z "$CC"; then
15310   # Extract the first word of "cc", so it can be a program name with args.
15311 set dummy cc; ac_word=$2
15312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15314 if test "${ac_cv_prog_CC+set}" = set; then
15315   echo $ECHO_N "(cached) $ECHO_C" >&6
15316 else
15317   if test -n "$CC"; then
15318   ac_cv_prog_CC="$CC" # Let the user override the test.
15319 else
15320   ac_prog_rejected=no
15321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15322 for as_dir in $PATH
15323 do
15324   IFS=$as_save_IFS
15325   test -z "$as_dir" && as_dir=.
15326   for ac_exec_ext in '' $ac_executable_extensions; do
15327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15328     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15329        ac_prog_rejected=yes
15330        continue
15331      fi
15332     ac_cv_prog_CC="cc"
15333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15334     break 2
15335   fi
15336 done
15337 done
15338 IFS=$as_save_IFS
15339
15340 if test $ac_prog_rejected = yes; then
15341   # We found a bogon in the path, so make sure we never use it.
15342   set dummy $ac_cv_prog_CC
15343   shift
15344   if test $# != 0; then
15345     # We chose a different compiler from the bogus one.
15346     # However, it has the same basename, so the bogon will be chosen
15347     # first if we set CC to just the basename; use the full file name.
15348     shift
15349     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15350   fi
15351 fi
15352 fi
15353 fi
15354 CC=$ac_cv_prog_CC
15355 if test -n "$CC"; then
15356   { echo "$as_me:$LINENO: result: $CC" >&5
15357 echo "${ECHO_T}$CC" >&6; }
15358 else
15359   { echo "$as_me:$LINENO: result: no" >&5
15360 echo "${ECHO_T}no" >&6; }
15361 fi
15362
15363
15364 fi
15365 if test -z "$CC"; then
15366   if test -n "$ac_tool_prefix"; then
15367   for ac_prog in cl.exe
15368   do
15369     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15373 if test "${ac_cv_prog_CC+set}" = set; then
15374   echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376   if test -n "$CC"; then
15377   ac_cv_prog_CC="$CC" # Let the user override the test.
15378 else
15379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15380 for as_dir in $PATH
15381 do
15382   IFS=$as_save_IFS
15383   test -z "$as_dir" && as_dir=.
15384   for ac_exec_ext in '' $ac_executable_extensions; do
15385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15386     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15388     break 2
15389   fi
15390 done
15391 done
15392 IFS=$as_save_IFS
15393
15394 fi
15395 fi
15396 CC=$ac_cv_prog_CC
15397 if test -n "$CC"; then
15398   { echo "$as_me:$LINENO: result: $CC" >&5
15399 echo "${ECHO_T}$CC" >&6; }
15400 else
15401   { echo "$as_me:$LINENO: result: no" >&5
15402 echo "${ECHO_T}no" >&6; }
15403 fi
15404
15405
15406     test -n "$CC" && break
15407   done
15408 fi
15409 if test -z "$CC"; then
15410   ac_ct_CC=$CC
15411   for ac_prog in cl.exe
15412 do
15413   # Extract the first word of "$ac_prog", so it can be a program name with args.
15414 set dummy $ac_prog; ac_word=$2
15415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   if test -n "$ac_ct_CC"; then
15421   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15422 else
15423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15424 for as_dir in $PATH
15425 do
15426   IFS=$as_save_IFS
15427   test -z "$as_dir" && as_dir=.
15428   for ac_exec_ext in '' $ac_executable_extensions; do
15429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15430     ac_cv_prog_ac_ct_CC="$ac_prog"
15431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15432     break 2
15433   fi
15434 done
15435 done
15436 IFS=$as_save_IFS
15437
15438 fi
15439 fi
15440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15441 if test -n "$ac_ct_CC"; then
15442   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15443 echo "${ECHO_T}$ac_ct_CC" >&6; }
15444 else
15445   { echo "$as_me:$LINENO: result: no" >&5
15446 echo "${ECHO_T}no" >&6; }
15447 fi
15448
15449
15450   test -n "$ac_ct_CC" && break
15451 done
15452
15453   if test "x$ac_ct_CC" = x; then
15454     CC=""
15455   else
15456     case $cross_compiling:$ac_tool_warned in
15457 yes:)
15458 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15459 whose name does not start with the host triplet.  If you think this
15460 configuration is useful to you, please write to autoconf@gnu.org." >&5
15461 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15462 whose name does not start with the host triplet.  If you think this
15463 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15464 ac_tool_warned=yes ;;
15465 esac
15466     CC=$ac_ct_CC
15467   fi
15468 fi
15469
15470 fi
15471
15472
15473 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15474 See \`config.log' for more details." >&5
15475 echo "$as_me: error: no acceptable C compiler found in \$PATH
15476 See \`config.log' for more details." >&2;}
15477    { (exit 1); exit 1; }; }
15478
15479 # Provide some information about the compiler.
15480 echo "$as_me:$LINENO: checking for C compiler version" >&5
15481 ac_compiler=`set X $ac_compile; echo $2`
15482 { (ac_try="$ac_compiler --version >&5"
15483 case "(($ac_try" in
15484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485   *) ac_try_echo=$ac_try;;
15486 esac
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488   (eval "$ac_compiler --version >&5") 2>&5
15489   ac_status=$?
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); }
15492 { (ac_try="$ac_compiler -v >&5"
15493 case "(($ac_try" in
15494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495   *) ac_try_echo=$ac_try;;
15496 esac
15497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15498   (eval "$ac_compiler -v >&5") 2>&5
15499   ac_status=$?
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); }
15502 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }
15512
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h.  */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h.  */
15519
15520 int
15521 main ()
15522 {
15523
15524   ;
15525   return 0;
15526 }
15527 _ACEOF
15528 ac_clean_files_save=$ac_clean_files
15529 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15530 # Try to create an executable without -o first, disregard a.out.
15531 # It will help us diagnose broken compilers, and finding out an intuition
15532 # of exeext.
15533 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15534 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15535 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15536 #
15537 # List of possible output files, starting from the most likely.
15538 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15539 # only as a last resort.  b.out is created by i960 compilers.
15540 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15541 #
15542 # The IRIX 6 linker writes into existing files which may not be
15543 # executable, retaining their permissions.  Remove them first so a
15544 # subsequent execution test works.
15545 ac_rmfiles=
15546 for ac_file in $ac_files
15547 do
15548   case $ac_file in
15549     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15550     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15551   esac
15552 done
15553 rm -f $ac_rmfiles
15554
15555 if { (ac_try="$ac_link_default"
15556 case "(($ac_try" in
15557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558   *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561   (eval "$ac_link_default") 2>&5
15562   ac_status=$?
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); }; then
15565   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15566 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15567 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15568 # so that the user can short-circuit this test for compilers unknown to
15569 # Autoconf.
15570 for ac_file in $ac_files ''
15571 do
15572   test -f "$ac_file" || continue
15573   case $ac_file in
15574     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15575         ;;
15576     [ab].out )
15577         # We found the default executable, but exeext='' is most
15578         # certainly right.
15579         break;;
15580     *.* )
15581         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15582         then :; else
15583            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15584         fi
15585         # We set ac_cv_exeext here because the later test for it is not
15586         # safe: cross compilers may not add the suffix if given an `-o'
15587         # argument, so we may need to know it at that point already.
15588         # Even if this section looks crufty: it has the advantage of
15589         # actually working.
15590         break;;
15591     * )
15592         break;;
15593   esac
15594 done
15595 test "$ac_cv_exeext" = no && ac_cv_exeext=
15596
15597 else
15598   ac_file=''
15599 fi
15600
15601 { echo "$as_me:$LINENO: result: $ac_file" >&5
15602 echo "${ECHO_T}$ac_file" >&6; }
15603 if test -z "$ac_file"; then
15604   echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15606
15607 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15608 See \`config.log' for more details." >&5
15609 echo "$as_me: error: C compiler cannot create executables
15610 See \`config.log' for more details." >&2;}
15611    { (exit 77); exit 77; }; }
15612 fi
15613
15614 ac_exeext=$ac_cv_exeext
15615
15616 # Check that the compiler produces executables we can run.  If not, either
15617 # the compiler is broken, or we cross compile.
15618 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15619 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15621 # If not cross compiling, check that we can run a simple program.
15622 if test "$cross_compiling" != yes; then
15623   if { ac_try='./$ac_file'
15624   { (case "(($ac_try" in
15625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15626   *) ac_try_echo=$ac_try;;
15627 esac
15628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15629   (eval "$ac_try") 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); }; }; then
15633     cross_compiling=no
15634   else
15635     if test "$cross_compiling" = maybe; then
15636         cross_compiling=yes
15637     else
15638         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15639 If you meant to cross compile, use \`--host'.
15640 See \`config.log' for more details." >&5
15641 echo "$as_me: error: cannot run C compiled programs.
15642 If you meant to cross compile, use \`--host'.
15643 See \`config.log' for more details." >&2;}
15644    { (exit 1); exit 1; }; }
15645     fi
15646   fi
15647 fi
15648 { echo "$as_me:$LINENO: result: yes" >&5
15649 echo "${ECHO_T}yes" >&6; }
15650
15651 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15652 ac_clean_files=$ac_clean_files_save
15653 # Check that the compiler produces executables we can run.  If not, either
15654 # the compiler is broken, or we cross compile.
15655 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15656 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15657 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15658 echo "${ECHO_T}$cross_compiling" >&6; }
15659
15660 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15661 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15662 if { (ac_try="$ac_link"
15663 case "(($ac_try" in
15664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665   *) ac_try_echo=$ac_try;;
15666 esac
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668   (eval "$ac_link") 2>&5
15669   ac_status=$?
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); }; then
15672   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15673 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15674 # work properly (i.e., refer to `conftest.exe'), while it won't with
15675 # `rm'.
15676 for ac_file in conftest.exe conftest conftest.*; do
15677   test -f "$ac_file" || continue
15678   case $ac_file in
15679     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15680     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15681           break;;
15682     * ) break;;
15683   esac
15684 done
15685 else
15686   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15687 See \`config.log' for more details." >&5
15688 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15689 See \`config.log' for more details." >&2;}
15690    { (exit 1); exit 1; }; }
15691 fi
15692
15693 rm -f conftest$ac_cv_exeext
15694 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15695 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15696
15697 rm -f conftest.$ac_ext
15698 EXEEXT=$ac_cv_exeext
15699 ac_exeext=$EXEEXT
15700 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15701 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15702 if test "${ac_cv_objext+set}" = set; then
15703   echo $ECHO_N "(cached) $ECHO_C" >&6
15704 else
15705   cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h.  */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h.  */
15711
15712 int
15713 main ()
15714 {
15715
15716   ;
15717   return 0;
15718 }
15719 _ACEOF
15720 rm -f conftest.o conftest.obj
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724   *) ac_try_echo=$ac_try;;
15725 esac
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727   (eval "$ac_compile") 2>&5
15728   ac_status=$?
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); }; then
15731   for ac_file in conftest.o conftest.obj conftest.*; do
15732   test -f "$ac_file" || continue;
15733   case $ac_file in
15734     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15735     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15736        break;;
15737   esac
15738 done
15739 else
15740   echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15742
15743 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15744 See \`config.log' for more details." >&5
15745 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15746 See \`config.log' for more details." >&2;}
15747    { (exit 1); exit 1; }; }
15748 fi
15749
15750 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15751 fi
15752 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15753 echo "${ECHO_T}$ac_cv_objext" >&6; }
15754 OBJEXT=$ac_cv_objext
15755 ac_objext=$OBJEXT
15756 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15757 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15758 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761   cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h.  */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h.  */
15767
15768 int
15769 main ()
15770 {
15771 #ifndef __GNUC__
15772        choke me
15773 #endif
15774
15775   ;
15776   return 0;
15777 }
15778 _ACEOF
15779 rm -f conftest.$ac_objext
15780 if { (ac_try="$ac_compile"
15781 case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_compile") 2>conftest.er1
15787   ac_status=$?
15788   grep -v '^ *+' conftest.er1 >conftest.err
15789   rm -f conftest.er1
15790   cat conftest.err >&5
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); } && {
15793          test -z "$ac_c_werror_flag" ||
15794          test ! -s conftest.err
15795        } && test -s conftest.$ac_objext; then
15796   ac_compiler_gnu=yes
15797 else
15798   echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15800
15801         ac_compiler_gnu=no
15802 fi
15803
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15806
15807 fi
15808 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15809 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15810 GCC=`test $ac_compiler_gnu = yes && echo yes`
15811 ac_test_CFLAGS=${CFLAGS+set}
15812 ac_save_CFLAGS=$CFLAGS
15813 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15814 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15815 if test "${ac_cv_prog_cc_g+set}" = set; then
15816   echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818   ac_save_c_werror_flag=$ac_c_werror_flag
15819    ac_c_werror_flag=yes
15820    ac_cv_prog_cc_g=no
15821    CFLAGS="-g"
15822    cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h.  */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h.  */
15828
15829 int
15830 main ()
15831 {
15832
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext
15838 if { (ac_try="$ac_compile"
15839 case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_compile") 2>conftest.er1
15845   ac_status=$?
15846   grep -v '^ *+' conftest.er1 >conftest.err
15847   rm -f conftest.er1
15848   cat conftest.err >&5
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } && {
15851          test -z "$ac_c_werror_flag" ||
15852          test ! -s conftest.err
15853        } && test -s conftest.$ac_objext; then
15854   ac_cv_prog_cc_g=yes
15855 else
15856   echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859         CFLAGS=""
15860       cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h.  */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h.  */
15866
15867 int
15868 main ()
15869 {
15870
15871   ;
15872   return 0;
15873 }
15874 _ACEOF
15875 rm -f conftest.$ac_objext
15876 if { (ac_try="$ac_compile"
15877 case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882   (eval "$ac_compile") 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } && {
15889          test -z "$ac_c_werror_flag" ||
15890          test ! -s conftest.err
15891        } && test -s conftest.$ac_objext; then
15892   :
15893 else
15894   echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897         ac_c_werror_flag=$ac_save_c_werror_flag
15898          CFLAGS="-g"
15899          cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905
15906 int
15907 main ()
15908 {
15909
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext
15915 if { (ac_try="$ac_compile"
15916 case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921   (eval "$ac_compile") 2>conftest.er1
15922   ac_status=$?
15923   grep -v '^ *+' conftest.er1 >conftest.err
15924   rm -f conftest.er1
15925   cat conftest.err >&5
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); } && {
15928          test -z "$ac_c_werror_flag" ||
15929          test ! -s conftest.err
15930        } && test -s conftest.$ac_objext; then
15931   ac_cv_prog_cc_g=yes
15932 else
15933   echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15935
15936
15937 fi
15938
15939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15940 fi
15941
15942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15943 fi
15944
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946    ac_c_werror_flag=$ac_save_c_werror_flag
15947 fi
15948 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15949 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15950 if test "$ac_test_CFLAGS" = set; then
15951   CFLAGS=$ac_save_CFLAGS
15952 elif test $ac_cv_prog_cc_g = yes; then
15953   if test "$GCC" = yes; then
15954     CFLAGS="-g -O2"
15955   else
15956     CFLAGS="-g"
15957   fi
15958 else
15959   if test "$GCC" = yes; then
15960     CFLAGS="-O2"
15961   else
15962     CFLAGS=
15963   fi
15964 fi
15965 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15966 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15967 if test "${ac_cv_prog_cc_c89+set}" = set; then
15968   echo $ECHO_N "(cached) $ECHO_C" >&6
15969 else
15970   ac_cv_prog_cc_c89=no
15971 ac_save_CC=$CC
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 #include <stdarg.h>
15979 #include <stdio.h>
15980 #include <sys/types.h>
15981 #include <sys/stat.h>
15982 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15983 struct buf { int x; };
15984 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15985 static char *e (p, i)
15986      char **p;
15987      int i;
15988 {
15989   return p[i];
15990 }
15991 static char *f (char * (*g) (char **, int), char **p, ...)
15992 {
15993   char *s;
15994   va_list v;
15995   va_start (v,p);
15996   s = g (p, va_arg (v,int));
15997   va_end (v);
15998   return s;
15999 }
16000
16001 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16002    function prototypes and stuff, but not '\xHH' hex character constants.
16003    These don't provoke an error unfortunately, instead are silently treated
16004    as 'x'.  The following induces an error, until -std is added to get
16005    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16006    array size at least.  It's necessary to write '\x00'==0 to get something
16007    that's true only with -std.  */
16008 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16009
16010 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16011    inside strings and character constants.  */
16012 #define FOO(x) 'x'
16013 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16014
16015 int test (int i, double x);
16016 struct s1 {int (*f) (int a);};
16017 struct s2 {int (*f) (double a);};
16018 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16019 int argc;
16020 char **argv;
16021 int
16022 main ()
16023 {
16024 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16025   ;
16026   return 0;
16027 }
16028 _ACEOF
16029 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16030         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16031 do
16032   CC="$ac_save_CC $ac_arg"
16033   rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037   *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040   (eval "$ac_compile") 2>conftest.er1
16041   ac_status=$?
16042   grep -v '^ *+' conftest.er1 >conftest.err
16043   rm -f conftest.er1
16044   cat conftest.err >&5
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); } && {
16047          test -z "$ac_c_werror_flag" ||
16048          test ! -s conftest.err
16049        } && test -s conftest.$ac_objext; then
16050   ac_cv_prog_cc_c89=$ac_arg
16051 else
16052   echo "$as_me: failed program was:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16054
16055
16056 fi
16057
16058 rm -f core conftest.err conftest.$ac_objext
16059   test "x$ac_cv_prog_cc_c89" != "xno" && break
16060 done
16061 rm -f conftest.$ac_ext
16062 CC=$ac_save_CC
16063
16064 fi
16065 # AC_CACHE_VAL
16066 case "x$ac_cv_prog_cc_c89" in
16067   x)
16068     { echo "$as_me:$LINENO: result: none needed" >&5
16069 echo "${ECHO_T}none needed" >&6; } ;;
16070   xno)
16071     { echo "$as_me:$LINENO: result: unsupported" >&5
16072 echo "${ECHO_T}unsupported" >&6; } ;;
16073   *)
16074     CC="$CC $ac_cv_prog_cc_c89"
16075     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
16076 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
16077 esac
16078
16079
16080 ac_ext=c
16081 ac_cpp='$CPP $CPPFLAGS'
16082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16085
16086
16087
16088
16089
16090
16091
16092
16093     ac_ext=c
16094 ac_cpp='$CPP $CPPFLAGS'
16095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16098
16099     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
16100 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
16101 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
16102   echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104   cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h.  */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h.  */
16110
16111 int
16112 main ()
16113 {
16114
16115              #ifndef __INTEL_COMPILER
16116                 choke me
16117              #endif
16118
16119   ;
16120   return 0;
16121 }
16122 _ACEOF
16123 rm -f conftest.$ac_objext
16124 if { (ac_try="$ac_compile"
16125 case "(($ac_try" in
16126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127   *) ac_try_echo=$ac_try;;
16128 esac
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130   (eval "$ac_compile") 2>conftest.er1
16131   ac_status=$?
16132   grep -v '^ *+' conftest.er1 >conftest.err
16133   rm -f conftest.er1
16134   cat conftest.err >&5
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   (exit $ac_status); } && {
16137          test -z "$ac_c_werror_flag" ||
16138          test ! -s conftest.err
16139        } && test -s conftest.$ac_objext; then
16140   bakefile_cv_c_compiler___INTEL_COMPILER=yes
16141 else
16142   echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145         bakefile_cv_c_compiler___INTEL_COMPILER=no
16146
16147 fi
16148
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150
16151
16152 fi
16153 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
16154 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
16155     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
16156         :; INTELCC=yes
16157     else
16158         :;
16159     fi
16160     ac_ext=c
16161 ac_cpp='$CPP $CPPFLAGS'
16162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16165
16166
16167
16168
16169         if test "$INTELCC" = "yes"; then
16170
16171
16172     ac_ext=c
16173 ac_cpp='$CPP $CPPFLAGS'
16174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16177
16178     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
16179 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
16180 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16181   echo $ECHO_N "(cached) $ECHO_C" >&6
16182 else
16183   cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h.  */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h.  */
16189
16190 int
16191 main ()
16192 {
16193
16194              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16195                 choke me
16196              #endif
16197
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext
16203 if { (ac_try="$ac_compile"
16204 case "(($ac_try" in
16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206   *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209   (eval "$ac_compile") 2>conftest.er1
16210   ac_status=$?
16211   grep -v '^ *+' conftest.er1 >conftest.err
16212   rm -f conftest.er1
16213   cat conftest.err >&5
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } && {
16216          test -z "$ac_c_werror_flag" ||
16217          test ! -s conftest.err
16218        } && test -s conftest.$ac_objext; then
16219   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
16220 else
16221   echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16223
16224         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
16225
16226 fi
16227
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229
16230
16231 fi
16232 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
16233 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
16234     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
16235         :; INTELCC8=yes
16236     else
16237         :;
16238     fi
16239     ac_ext=c
16240 ac_cpp='$CPP $CPPFLAGS'
16241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16244
16245
16246
16247
16248
16249     ac_ext=c
16250 ac_cpp='$CPP $CPPFLAGS'
16251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16254
16255     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
16256 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
16257 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
16258   echo $ECHO_N "(cached) $ECHO_C" >&6
16259 else
16260   cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h.  */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h.  */
16266
16267 int
16268 main ()
16269 {
16270
16271              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
16272                 choke me
16273              #endif
16274
16275   ;
16276   return 0;
16277 }
16278 _ACEOF
16279 rm -f conftest.$ac_objext
16280 if { (ac_try="$ac_compile"
16281 case "(($ac_try" in
16282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283   *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286   (eval "$ac_compile") 2>conftest.er1
16287   ac_status=$?
16288   grep -v '^ *+' conftest.er1 >conftest.err
16289   rm -f conftest.er1
16290   cat conftest.err >&5
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); } && {
16293          test -z "$ac_c_werror_flag" ||
16294          test ! -s conftest.err
16295        } && test -s conftest.$ac_objext; then
16296   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
16297 else
16298   echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16300
16301         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
16302
16303 fi
16304
16305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16306
16307
16308 fi
16309 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
16310 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
16311     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
16312         :; INTELCC10=yes
16313     else
16314         :;
16315     fi
16316     ac_ext=c
16317 ac_cpp='$CPP $CPPFLAGS'
16318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16321
16322
16323
16324     fi
16325
16326         if test "x$GCC" != "xyes"; then
16327         if test "xCC" = "xC"; then
16328             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16329 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16330 if test "${bakefile_cv_c_exto+set}" = set; then
16331   echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333   cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h.  */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h.  */
16339
16340 int
16341 main ()
16342 {
16343
16344   ;
16345   return 0;
16346 }
16347 _ACEOF
16348 rm -f conftest.$ac_objext conftest.$ac_ext.o
16349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16350   (eval $ac_compile) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; then
16354   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16355     case $ac_file in
16356         conftest.$ac_ext.o)
16357             bakefile_cv_c_exto="-ext o"
16358             ;;
16359         *)
16360             ;;
16361     esac
16362 done
16363 else
16364   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16365 See \`config.log' for more details." >&5
16366 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16367 See \`config.log' for more details." >&2;}
16368    { (exit 1); exit 1; }; }
16369
16370 fi
16371
16372 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16373
16374 fi
16375 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16376 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16377 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16378     if test "c" = "c"; then
16379         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16380     fi
16381     if test "c" = "cxx"; then
16382         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16383     fi
16384 fi
16385
16386             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16387                 unset ac_cv_prog_cc_g
16388                 ac_test_CFLAGS=${CFLAGS+set}
16389 ac_save_CFLAGS=$CFLAGS
16390 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16391 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16392 if test "${ac_cv_prog_cc_g+set}" = set; then
16393   echo $ECHO_N "(cached) $ECHO_C" >&6
16394 else
16395   ac_save_c_werror_flag=$ac_c_werror_flag
16396    ac_c_werror_flag=yes
16397    ac_cv_prog_cc_g=no
16398    CFLAGS="-g"
16399    cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h.  */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h.  */
16405
16406 int
16407 main ()
16408 {
16409
16410   ;
16411   return 0;
16412 }
16413 _ACEOF
16414 rm -f conftest.$ac_objext
16415 if { (ac_try="$ac_compile"
16416 case "(($ac_try" in
16417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418   *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421   (eval "$ac_compile") 2>conftest.er1
16422   ac_status=$?
16423   grep -v '^ *+' conftest.er1 >conftest.err
16424   rm -f conftest.er1
16425   cat conftest.err >&5
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); } && {
16428          test -z "$ac_c_werror_flag" ||
16429          test ! -s conftest.err
16430        } && test -s conftest.$ac_objext; then
16431   ac_cv_prog_cc_g=yes
16432 else
16433   echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16435
16436         CFLAGS=""
16437       cat >conftest.$ac_ext <<_ACEOF
16438 /* confdefs.h.  */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h.  */
16443
16444 int
16445 main ()
16446 {
16447
16448   ;
16449   return 0;
16450 }
16451 _ACEOF
16452 rm -f conftest.$ac_objext
16453 if { (ac_try="$ac_compile"
16454 case "(($ac_try" in
16455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456   *) ac_try_echo=$ac_try;;
16457 esac
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459   (eval "$ac_compile") 2>conftest.er1
16460   ac_status=$?
16461   grep -v '^ *+' conftest.er1 >conftest.err
16462   rm -f conftest.er1
16463   cat conftest.err >&5
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); } && {
16466          test -z "$ac_c_werror_flag" ||
16467          test ! -s conftest.err
16468        } && test -s conftest.$ac_objext; then
16469   :
16470 else
16471   echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16473
16474         ac_c_werror_flag=$ac_save_c_werror_flag
16475          CFLAGS="-g"
16476          cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h.  */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h.  */
16482
16483 int
16484 main ()
16485 {
16486
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 rm -f conftest.$ac_objext
16492 if { (ac_try="$ac_compile"
16493 case "(($ac_try" in
16494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495   *) ac_try_echo=$ac_try;;
16496 esac
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498   (eval "$ac_compile") 2>conftest.er1
16499   ac_status=$?
16500   grep -v '^ *+' conftest.er1 >conftest.err
16501   rm -f conftest.er1
16502   cat conftest.err >&5
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); } && {
16505          test -z "$ac_c_werror_flag" ||
16506          test ! -s conftest.err
16507        } && test -s conftest.$ac_objext; then
16508   ac_cv_prog_cc_g=yes
16509 else
16510   echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513
16514 fi
16515
16516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517 fi
16518
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521
16522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523    ac_c_werror_flag=$ac_save_c_werror_flag
16524 fi
16525 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16526 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16527 if test "$ac_test_CFLAGS" = set; then
16528   CFLAGS=$ac_save_CFLAGS
16529 elif test $ac_cv_prog_cc_g = yes; then
16530   if test "$GCC" = yes; then
16531     CFLAGS="-g -O2"
16532   else
16533     CFLAGS="-g"
16534   fi
16535 else
16536   if test "$GCC" = yes; then
16537     CFLAGS="-O2"
16538   else
16539     CFLAGS=
16540   fi
16541 fi
16542             fi
16543         fi
16544
16545                         case `uname -s` in
16546             AIX*)
16547
16548
16549     ac_ext=c
16550 ac_cpp='$CPP $CPPFLAGS'
16551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16554
16555     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16556 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16557 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16558   echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560   cat >conftest.$ac_ext <<_ACEOF
16561 /* confdefs.h.  */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h.  */
16566
16567 int
16568 main ()
16569 {
16570
16571              #ifndef __xlC__
16572                 choke me
16573              #endif
16574
16575   ;
16576   return 0;
16577 }
16578 _ACEOF
16579 rm -f conftest.$ac_objext
16580 if { (ac_try="$ac_compile"
16581 case "(($ac_try" in
16582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583   *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586   (eval "$ac_compile") 2>conftest.er1
16587   ac_status=$?
16588   grep -v '^ *+' conftest.er1 >conftest.err
16589   rm -f conftest.er1
16590   cat conftest.err >&5
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); } && {
16593          test -z "$ac_c_werror_flag" ||
16594          test ! -s conftest.err
16595        } && test -s conftest.$ac_objext; then
16596   bakefile_cv_c_compiler___xlC__=yes
16597 else
16598   echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16600
16601         bakefile_cv_c_compiler___xlC__=no
16602
16603 fi
16604
16605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606
16607
16608 fi
16609 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16610 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16611     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16612         :; XLCC=yes
16613     else
16614         :;
16615     fi
16616     ac_ext=c
16617 ac_cpp='$CPP $CPPFLAGS'
16618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16621
16622
16623
16624                 ;;
16625
16626             Darwin)
16627
16628
16629     ac_ext=c
16630 ac_cpp='$CPP $CPPFLAGS'
16631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16634
16635     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16636 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16637 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640   cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646
16647 int
16648 main ()
16649 {
16650
16651              #ifndef __MWERKS__
16652                 choke me
16653              #endif
16654
16655   ;
16656   return 0;
16657 }
16658 _ACEOF
16659 rm -f conftest.$ac_objext
16660 if { (ac_try="$ac_compile"
16661 case "(($ac_try" in
16662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663   *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666   (eval "$ac_compile") 2>conftest.er1
16667   ac_status=$?
16668   grep -v '^ *+' conftest.er1 >conftest.err
16669   rm -f conftest.er1
16670   cat conftest.err >&5
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); } && {
16673          test -z "$ac_c_werror_flag" ||
16674          test ! -s conftest.err
16675        } && test -s conftest.$ac_objext; then
16676   bakefile_cv_c_compiler___MWERKS__=yes
16677 else
16678   echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681         bakefile_cv_c_compiler___MWERKS__=no
16682
16683 fi
16684
16685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686
16687
16688 fi
16689 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16690 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16691     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16692         :; MWCC=yes
16693     else
16694         :;
16695     fi
16696     ac_ext=c
16697 ac_cpp='$CPP $CPPFLAGS'
16698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16701
16702
16703
16704                 if test "$MWCC" != "yes"; then
16705
16706
16707     ac_ext=c
16708 ac_cpp='$CPP $CPPFLAGS'
16709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16712
16713     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16714 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16715 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16716   echo $ECHO_N "(cached) $ECHO_C" >&6
16717 else
16718   cat >conftest.$ac_ext <<_ACEOF
16719 /* confdefs.h.  */
16720 _ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h.  */
16724
16725 int
16726 main ()
16727 {
16728
16729              #ifndef __xlC__
16730                 choke me
16731              #endif
16732
16733   ;
16734   return 0;
16735 }
16736 _ACEOF
16737 rm -f conftest.$ac_objext
16738 if { (ac_try="$ac_compile"
16739 case "(($ac_try" in
16740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741   *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744   (eval "$ac_compile") 2>conftest.er1
16745   ac_status=$?
16746   grep -v '^ *+' conftest.er1 >conftest.err
16747   rm -f conftest.er1
16748   cat conftest.err >&5
16749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750   (exit $ac_status); } && {
16751          test -z "$ac_c_werror_flag" ||
16752          test ! -s conftest.err
16753        } && test -s conftest.$ac_objext; then
16754   bakefile_cv_c_compiler___xlC__=yes
16755 else
16756   echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759         bakefile_cv_c_compiler___xlC__=no
16760
16761 fi
16762
16763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16764
16765
16766 fi
16767 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16768 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16769     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16770         :; XLCC=yes
16771     else
16772         :;
16773     fi
16774     ac_ext=c
16775 ac_cpp='$CPP $CPPFLAGS'
16776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16779
16780
16781
16782                 fi
16783                 ;;
16784
16785             IRIX*)
16786
16787
16788     ac_ext=c
16789 ac_cpp='$CPP $CPPFLAGS'
16790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16793
16794     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16795 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16796 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16797   echo $ECHO_N "(cached) $ECHO_C" >&6
16798 else
16799   cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h.  */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h.  */
16805
16806 int
16807 main ()
16808 {
16809
16810              #ifndef _SGI_COMPILER_VERSION
16811                 choke me
16812              #endif
16813
16814   ;
16815   return 0;
16816 }
16817 _ACEOF
16818 rm -f conftest.$ac_objext
16819 if { (ac_try="$ac_compile"
16820 case "(($ac_try" in
16821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822   *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825   (eval "$ac_compile") 2>conftest.er1
16826   ac_status=$?
16827   grep -v '^ *+' conftest.er1 >conftest.err
16828   rm -f conftest.er1
16829   cat conftest.err >&5
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); } && {
16832          test -z "$ac_c_werror_flag" ||
16833          test ! -s conftest.err
16834        } && test -s conftest.$ac_objext; then
16835   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16836 else
16837   echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16839
16840         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16841
16842 fi
16843
16844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16845
16846
16847 fi
16848 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16849 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16850     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16851         :; SGICC=yes
16852     else
16853         :;
16854     fi
16855     ac_ext=c
16856 ac_cpp='$CPP $CPPFLAGS'
16857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16860
16861
16862
16863                 ;;
16864
16865             Linux*)
16866                                                 if test "$INTELCC" != "yes"; then
16867
16868
16869     ac_ext=c
16870 ac_cpp='$CPP $CPPFLAGS'
16871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16874
16875     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16876 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16877 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16878   echo $ECHO_N "(cached) $ECHO_C" >&6
16879 else
16880   cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h.  */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h.  */
16886
16887 int
16888 main ()
16889 {
16890
16891              #ifndef __SUNPRO_C
16892                 choke me
16893              #endif
16894
16895   ;
16896   return 0;
16897 }
16898 _ACEOF
16899 rm -f conftest.$ac_objext
16900 if { (ac_try="$ac_compile"
16901 case "(($ac_try" in
16902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16903   *) ac_try_echo=$ac_try;;
16904 esac
16905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16906   (eval "$ac_compile") 2>conftest.er1
16907   ac_status=$?
16908   grep -v '^ *+' conftest.er1 >conftest.err
16909   rm -f conftest.er1
16910   cat conftest.err >&5
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); } && {
16913          test -z "$ac_c_werror_flag" ||
16914          test ! -s conftest.err
16915        } && test -s conftest.$ac_objext; then
16916   bakefile_cv_c_compiler___SUNPRO_C=yes
16917 else
16918   echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921         bakefile_cv_c_compiler___SUNPRO_C=no
16922
16923 fi
16924
16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926
16927
16928 fi
16929 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16930 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16931     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16932         :; SUNCC=yes
16933     else
16934         :;
16935     fi
16936     ac_ext=c
16937 ac_cpp='$CPP $CPPFLAGS'
16938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16941
16942
16943
16944                 fi
16945                 ;;
16946
16947             HP-UX*)
16948
16949
16950     ac_ext=c
16951 ac_cpp='$CPP $CPPFLAGS'
16952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16955
16956     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16957 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16958 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16959   echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961   cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967
16968 int
16969 main ()
16970 {
16971
16972              #ifndef __HP_cc
16973                 choke me
16974              #endif
16975
16976   ;
16977   return 0;
16978 }
16979 _ACEOF
16980 rm -f conftest.$ac_objext
16981 if { (ac_try="$ac_compile"
16982 case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987   (eval "$ac_compile") 2>conftest.er1
16988   ac_status=$?
16989   grep -v '^ *+' conftest.er1 >conftest.err
16990   rm -f conftest.er1
16991   cat conftest.err >&5
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } && {
16994          test -z "$ac_c_werror_flag" ||
16995          test ! -s conftest.err
16996        } && test -s conftest.$ac_objext; then
16997   bakefile_cv_c_compiler___HP_cc=yes
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002         bakefile_cv_c_compiler___HP_cc=no
17003
17004 fi
17005
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007
17008
17009 fi
17010 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
17011 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
17012     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
17013         :; HPCC=yes
17014     else
17015         :;
17016     fi
17017     ac_ext=c
17018 ac_cpp='$CPP $CPPFLAGS'
17019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17022
17023
17024
17025                 ;;
17026
17027             OSF1)
17028
17029
17030     ac_ext=c
17031 ac_cpp='$CPP $CPPFLAGS'
17032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17035
17036     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
17037 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
17038 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
17039   echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041   cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047
17048 int
17049 main ()
17050 {
17051
17052              #ifndef __DECC
17053                 choke me
17054              #endif
17055
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest.$ac_objext
17061 if { (ac_try="$ac_compile"
17062 case "(($ac_try" in
17063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064   *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067   (eval "$ac_compile") 2>conftest.er1
17068   ac_status=$?
17069   grep -v '^ *+' conftest.er1 >conftest.err
17070   rm -f conftest.er1
17071   cat conftest.err >&5
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); } && {
17074          test -z "$ac_c_werror_flag" ||
17075          test ! -s conftest.err
17076        } && test -s conftest.$ac_objext; then
17077   bakefile_cv_c_compiler___DECC=yes
17078 else
17079   echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17081
17082         bakefile_cv_c_compiler___DECC=no
17083
17084 fi
17085
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087
17088
17089 fi
17090 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17091 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17092     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17093         :; COMPAQCC=yes
17094     else
17095         :;
17096     fi
17097     ac_ext=c
17098 ac_cpp='$CPP $CPPFLAGS'
17099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17102
17103
17104
17105                 ;;
17106
17107             SunOS)
17108
17109
17110     ac_ext=c
17111 ac_cpp='$CPP $CPPFLAGS'
17112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17115
17116     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17117 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17118 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17119   echo $ECHO_N "(cached) $ECHO_C" >&6
17120 else
17121   cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127
17128 int
17129 main ()
17130 {
17131
17132              #ifndef __SUNPRO_C
17133                 choke me
17134              #endif
17135
17136   ;
17137   return 0;
17138 }
17139 _ACEOF
17140 rm -f conftest.$ac_objext
17141 if { (ac_try="$ac_compile"
17142 case "(($ac_try" in
17143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144   *) ac_try_echo=$ac_try;;
17145 esac
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147   (eval "$ac_compile") 2>conftest.er1
17148   ac_status=$?
17149   grep -v '^ *+' conftest.er1 >conftest.err
17150   rm -f conftest.er1
17151   cat conftest.err >&5
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); } && {
17154          test -z "$ac_c_werror_flag" ||
17155          test ! -s conftest.err
17156        } && test -s conftest.$ac_objext; then
17157   bakefile_cv_c_compiler___SUNPRO_C=yes
17158 else
17159   echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162         bakefile_cv_c_compiler___SUNPRO_C=no
17163
17164 fi
17165
17166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17167
17168
17169 fi
17170 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17171 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17172     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17173         :; SUNCC=yes
17174     else
17175         :;
17176     fi
17177     ac_ext=c
17178 ac_cpp='$CPP $CPPFLAGS'
17179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17182
17183
17184
17185                 ;;
17186         esac
17187     fi
17188
17189
17190
17191 ac_ext=c
17192 ac_cpp='$CPP $CPPFLAGS'
17193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17196 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17197 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17198 # On Suns, sometimes $CPP names a directory.
17199 if test -n "$CPP" && test -d "$CPP"; then
17200   CPP=
17201 fi
17202 if test -z "$CPP"; then
17203   if test "${ac_cv_prog_CPP+set}" = set; then
17204   echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206       # Double quotes because CPP needs to be expanded
17207     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17208     do
17209       ac_preproc_ok=false
17210 for ac_c_preproc_warn_flag in '' yes
17211 do
17212   # Use a header file that comes with gcc, so configuring glibc
17213   # with a fresh cross-compiler works.
17214   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17215   # <limits.h> exists even on freestanding compilers.
17216   # On the NeXT, cc -E runs the code through the compiler's parser,
17217   # not just through cpp. "Syntax error" is here to catch this case.
17218   cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h.  */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h.  */
17224 #ifdef __STDC__
17225 # include <limits.h>
17226 #else
17227 # include <assert.h>
17228 #endif
17229                      Syntax error
17230 _ACEOF
17231 if { (ac_try="$ac_cpp conftest.$ac_ext"
17232 case "(($ac_try" in
17233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234   *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17238   ac_status=$?
17239   grep -v '^ *+' conftest.er1 >conftest.err
17240   rm -f conftest.er1
17241   cat conftest.err >&5
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); } >/dev/null && {
17244          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17245          test ! -s conftest.err
17246        }; then
17247   :
17248 else
17249   echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252   # Broken: fails on valid input.
17253 continue
17254 fi
17255
17256 rm -f conftest.err conftest.$ac_ext
17257
17258   # OK, works on sane cases.  Now check whether nonexistent headers
17259   # can be detected and how.
17260   cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h.  */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h.  */
17266 #include <ac_nonexistent.h>
17267 _ACEOF
17268 if { (ac_try="$ac_cpp conftest.$ac_ext"
17269 case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17275   ac_status=$?
17276   grep -v '^ *+' conftest.er1 >conftest.err
17277   rm -f conftest.er1
17278   cat conftest.err >&5
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); } >/dev/null && {
17281          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17282          test ! -s conftest.err
17283        }; then
17284   # Broken: success on invalid input.
17285 continue
17286 else
17287   echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290   # Passes both tests.
17291 ac_preproc_ok=:
17292 break
17293 fi
17294
17295 rm -f conftest.err conftest.$ac_ext
17296
17297 done
17298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17299 rm -f conftest.err conftest.$ac_ext
17300 if $ac_preproc_ok; then
17301   break
17302 fi
17303
17304     done
17305     ac_cv_prog_CPP=$CPP
17306
17307 fi
17308   CPP=$ac_cv_prog_CPP
17309 else
17310   ac_cv_prog_CPP=$CPP
17311 fi
17312 { echo "$as_me:$LINENO: result: $CPP" >&5
17313 echo "${ECHO_T}$CPP" >&6; }
17314 ac_preproc_ok=false
17315 for ac_c_preproc_warn_flag in '' yes
17316 do
17317   # Use a header file that comes with gcc, so configuring glibc
17318   # with a fresh cross-compiler works.
17319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320   # <limits.h> exists even on freestanding compilers.
17321   # On the NeXT, cc -E runs the code through the compiler's parser,
17322   # not just through cpp. "Syntax error" is here to catch this case.
17323   cat >conftest.$ac_ext <<_ACEOF
17324 /* confdefs.h.  */
17325 _ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h.  */
17329 #ifdef __STDC__
17330 # include <limits.h>
17331 #else
17332 # include <assert.h>
17333 #endif
17334                      Syntax error
17335 _ACEOF
17336 if { (ac_try="$ac_cpp conftest.$ac_ext"
17337 case "(($ac_try" in
17338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339   *) ac_try_echo=$ac_try;;
17340 esac
17341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17343   ac_status=$?
17344   grep -v '^ *+' conftest.er1 >conftest.err
17345   rm -f conftest.er1
17346   cat conftest.err >&5
17347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); } >/dev/null && {
17349          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17350          test ! -s conftest.err
17351        }; then
17352   :
17353 else
17354   echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17356
17357   # Broken: fails on valid input.
17358 continue
17359 fi
17360
17361 rm -f conftest.err conftest.$ac_ext
17362
17363   # OK, works on sane cases.  Now check whether nonexistent headers
17364   # can be detected and how.
17365   cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h.  */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h.  */
17371 #include <ac_nonexistent.h>
17372 _ACEOF
17373 if { (ac_try="$ac_cpp conftest.$ac_ext"
17374 case "(($ac_try" in
17375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376   *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17380   ac_status=$?
17381   grep -v '^ *+' conftest.er1 >conftest.err
17382   rm -f conftest.er1
17383   cat conftest.err >&5
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); } >/dev/null && {
17386          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17387          test ! -s conftest.err
17388        }; then
17389   # Broken: success on invalid input.
17390 continue
17391 else
17392   echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17394
17395   # Passes both tests.
17396 ac_preproc_ok=:
17397 break
17398 fi
17399
17400 rm -f conftest.err conftest.$ac_ext
17401
17402 done
17403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17404 rm -f conftest.err conftest.$ac_ext
17405 if $ac_preproc_ok; then
17406   :
17407 else
17408   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17409 See \`config.log' for more details." >&5
17410 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17411 See \`config.log' for more details." >&2;}
17412    { (exit 1); exit 1; }; }
17413 fi
17414
17415 ac_ext=c
17416 ac_cpp='$CPP $CPPFLAGS'
17417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17420
17421
17422 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17423 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17424 if test "${ac_cv_path_GREP+set}" = set; then
17425   echo $ECHO_N "(cached) $ECHO_C" >&6
17426 else
17427   # Extract the first word of "grep ggrep" to use in msg output
17428 if test -z "$GREP"; then
17429 set dummy grep ggrep; ac_prog_name=$2
17430 if test "${ac_cv_path_GREP+set}" = set; then
17431   echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433   ac_path_GREP_found=false
17434 # Loop through the user's path and test for each of PROGNAME-LIST
17435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17436 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17437 do
17438   IFS=$as_save_IFS
17439   test -z "$as_dir" && as_dir=.
17440   for ac_prog in grep ggrep; do
17441   for ac_exec_ext in '' $ac_executable_extensions; do
17442     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17443     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17444     # Check for GNU ac_path_GREP and select it if it is found.
17445   # Check for GNU $ac_path_GREP
17446 case `"$ac_path_GREP" --version 2>&1` in
17447 *GNU*)
17448   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17449 *)
17450   ac_count=0
17451   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17452   while :
17453   do
17454     cat "conftest.in" "conftest.in" >"conftest.tmp"
17455     mv "conftest.tmp" "conftest.in"
17456     cp "conftest.in" "conftest.nl"
17457     echo 'GREP' >> "conftest.nl"
17458     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17459     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17460     ac_count=`expr $ac_count + 1`
17461     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17462       # Best one so far, save it but keep looking for a better one
17463       ac_cv_path_GREP="$ac_path_GREP"
17464       ac_path_GREP_max=$ac_count
17465     fi
17466     # 10*(2^10) chars as input seems more than enough
17467     test $ac_count -gt 10 && break
17468   done
17469   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17470 esac
17471
17472
17473     $ac_path_GREP_found && break 3
17474   done
17475 done
17476
17477 done
17478 IFS=$as_save_IFS
17479
17480
17481 fi
17482
17483 GREP="$ac_cv_path_GREP"
17484 if test -z "$GREP"; then
17485   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17486 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17487    { (exit 1); exit 1; }; }
17488 fi
17489
17490 else
17491   ac_cv_path_GREP=$GREP
17492 fi
17493
17494
17495 fi
17496 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17497 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17498  GREP="$ac_cv_path_GREP"
17499
17500
17501 { echo "$as_me:$LINENO: checking for egrep" >&5
17502 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17503 if test "${ac_cv_path_EGREP+set}" = set; then
17504   echo $ECHO_N "(cached) $ECHO_C" >&6
17505 else
17506   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17507    then ac_cv_path_EGREP="$GREP -E"
17508    else
17509      # Extract the first word of "egrep" to use in msg output
17510 if test -z "$EGREP"; then
17511 set dummy egrep; ac_prog_name=$2
17512 if test "${ac_cv_path_EGREP+set}" = set; then
17513   echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515   ac_path_EGREP_found=false
17516 # Loop through the user's path and test for each of PROGNAME-LIST
17517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17519 do
17520   IFS=$as_save_IFS
17521   test -z "$as_dir" && as_dir=.
17522   for ac_prog in egrep; do
17523   for ac_exec_ext in '' $ac_executable_extensions; do
17524     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17525     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17526     # Check for GNU ac_path_EGREP and select it if it is found.
17527   # Check for GNU $ac_path_EGREP
17528 case `"$ac_path_EGREP" --version 2>&1` in
17529 *GNU*)
17530   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17531 *)
17532   ac_count=0
17533   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17534   while :
17535   do
17536     cat "conftest.in" "conftest.in" >"conftest.tmp"
17537     mv "conftest.tmp" "conftest.in"
17538     cp "conftest.in" "conftest.nl"
17539     echo 'EGREP' >> "conftest.nl"
17540     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17541     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17542     ac_count=`expr $ac_count + 1`
17543     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17544       # Best one so far, save it but keep looking for a better one
17545       ac_cv_path_EGREP="$ac_path_EGREP"
17546       ac_path_EGREP_max=$ac_count
17547     fi
17548     # 10*(2^10) chars as input seems more than enough
17549     test $ac_count -gt 10 && break
17550   done
17551   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17552 esac
17553
17554
17555     $ac_path_EGREP_found && break 3
17556   done
17557 done
17558
17559 done
17560 IFS=$as_save_IFS
17561
17562
17563 fi
17564
17565 EGREP="$ac_cv_path_EGREP"
17566 if test -z "$EGREP"; then
17567   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17568 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17569    { (exit 1); exit 1; }; }
17570 fi
17571
17572 else
17573   ac_cv_path_EGREP=$EGREP
17574 fi
17575
17576
17577    fi
17578 fi
17579 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17580 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17581  EGREP="$ac_cv_path_EGREP"
17582
17583
17584 if test $ac_cv_c_compiler_gnu = yes; then
17585     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17586 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17587 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17588   echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590     ac_pattern="Autoconf.*'x'"
17591   cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597 #include <sgtty.h>
17598 Autoconf TIOCGETP
17599 _ACEOF
17600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17601   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17602   ac_cv_prog_gcc_traditional=yes
17603 else
17604   ac_cv_prog_gcc_traditional=no
17605 fi
17606 rm -f conftest*
17607
17608
17609   if test $ac_cv_prog_gcc_traditional = no; then
17610     cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h.  */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h.  */
17616 #include <termio.h>
17617 Autoconf TCGETA
17618 _ACEOF
17619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17620   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17621   ac_cv_prog_gcc_traditional=yes
17622 fi
17623 rm -f conftest*
17624
17625   fi
17626 fi
17627 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17628 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17629   if test $ac_cv_prog_gcc_traditional = yes; then
17630     CC="$CC -traditional"
17631   fi
17632 fi
17633
17634
17635 CXXFLAGS=${CXXFLAGS:=}
17636 ac_ext=cpp
17637 ac_cpp='$CXXCPP $CPPFLAGS'
17638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17641 if test -z "$CXX"; then
17642   if test -n "$CCC"; then
17643     CXX=$CCC
17644   else
17645     if test -n "$ac_tool_prefix"; then
17646   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17647   do
17648     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17652 if test "${ac_cv_prog_CXX+set}" = set; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655   if test -n "$CXX"; then
17656   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17657 else
17658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17659 for as_dir in $PATH
17660 do
17661   IFS=$as_save_IFS
17662   test -z "$as_dir" && as_dir=.
17663   for ac_exec_ext in '' $ac_executable_extensions; do
17664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17665     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17667     break 2
17668   fi
17669 done
17670 done
17671 IFS=$as_save_IFS
17672
17673 fi
17674 fi
17675 CXX=$ac_cv_prog_CXX
17676 if test -n "$CXX"; then
17677   { echo "$as_me:$LINENO: result: $CXX" >&5
17678 echo "${ECHO_T}$CXX" >&6; }
17679 else
17680   { echo "$as_me:$LINENO: result: no" >&5
17681 echo "${ECHO_T}no" >&6; }
17682 fi
17683
17684
17685     test -n "$CXX" && break
17686   done
17687 fi
17688 if test -z "$CXX"; then
17689   ac_ct_CXX=$CXX
17690   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17691 do
17692   # Extract the first word of "$ac_prog", so it can be a program name with args.
17693 set dummy $ac_prog; ac_word=$2
17694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17696 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17697   echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699   if test -n "$ac_ct_CXX"; then
17700   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17701 else
17702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17703 for as_dir in $PATH
17704 do
17705   IFS=$as_save_IFS
17706   test -z "$as_dir" && as_dir=.
17707   for ac_exec_ext in '' $ac_executable_extensions; do
17708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17709     ac_cv_prog_ac_ct_CXX="$ac_prog"
17710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17711     break 2
17712   fi
17713 done
17714 done
17715 IFS=$as_save_IFS
17716
17717 fi
17718 fi
17719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17720 if test -n "$ac_ct_CXX"; then
17721   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17722 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17723 else
17724   { echo "$as_me:$LINENO: result: no" >&5
17725 echo "${ECHO_T}no" >&6; }
17726 fi
17727
17728
17729   test -n "$ac_ct_CXX" && break
17730 done
17731
17732   if test "x$ac_ct_CXX" = x; then
17733     CXX="g++"
17734   else
17735     case $cross_compiling:$ac_tool_warned in
17736 yes:)
17737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17738 whose name does not start with the host triplet.  If you think this
17739 configuration is useful to you, please write to autoconf@gnu.org." >&5
17740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17741 whose name does not start with the host triplet.  If you think this
17742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17743 ac_tool_warned=yes ;;
17744 esac
17745     CXX=$ac_ct_CXX
17746   fi
17747 fi
17748
17749   fi
17750 fi
17751 # Provide some information about the compiler.
17752 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17753 ac_compiler=`set X $ac_compile; echo $2`
17754 { (ac_try="$ac_compiler --version >&5"
17755 case "(($ac_try" in
17756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757   *) ac_try_echo=$ac_try;;
17758 esac
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760   (eval "$ac_compiler --version >&5") 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }
17764 { (ac_try="$ac_compiler -v >&5"
17765 case "(($ac_try" in
17766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767   *) ac_try_echo=$ac_try;;
17768 esac
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770   (eval "$ac_compiler -v >&5") 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }
17774 { (ac_try="$ac_compiler -V >&5"
17775 case "(($ac_try" in
17776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777   *) ac_try_echo=$ac_try;;
17778 esac
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780   (eval "$ac_compiler -V >&5") 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); }
17784
17785 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17786 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17787 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17788   echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790   cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h.  */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h.  */
17796
17797 int
17798 main ()
17799 {
17800 #ifndef __GNUC__
17801        choke me
17802 #endif
17803
17804   ;
17805   return 0;
17806 }
17807 _ACEOF
17808 rm -f conftest.$ac_objext
17809 if { (ac_try="$ac_compile"
17810 case "(($ac_try" in
17811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812   *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815   (eval "$ac_compile") 2>conftest.er1
17816   ac_status=$?
17817   grep -v '^ *+' conftest.er1 >conftest.err
17818   rm -f conftest.er1
17819   cat conftest.err >&5
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); } && {
17822          test -z "$ac_cxx_werror_flag" ||
17823          test ! -s conftest.err
17824        } && test -s conftest.$ac_objext; then
17825   ac_compiler_gnu=yes
17826 else
17827   echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17829
17830         ac_compiler_gnu=no
17831 fi
17832
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17835
17836 fi
17837 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17838 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17839 GXX=`test $ac_compiler_gnu = yes && echo yes`
17840 ac_test_CXXFLAGS=${CXXFLAGS+set}
17841 ac_save_CXXFLAGS=$CXXFLAGS
17842 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17843 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17844 if test "${ac_cv_prog_cxx_g+set}" = set; then
17845   echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17848    ac_cxx_werror_flag=yes
17849    ac_cv_prog_cxx_g=no
17850    CXXFLAGS="-g"
17851    cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h.  */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h.  */
17857
17858 int
17859 main ()
17860 {
17861
17862   ;
17863   return 0;
17864 }
17865 _ACEOF
17866 rm -f conftest.$ac_objext
17867 if { (ac_try="$ac_compile"
17868 case "(($ac_try" in
17869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870   *) ac_try_echo=$ac_try;;
17871 esac
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873   (eval "$ac_compile") 2>conftest.er1
17874   ac_status=$?
17875   grep -v '^ *+' conftest.er1 >conftest.err
17876   rm -f conftest.er1
17877   cat conftest.err >&5
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); } && {
17880          test -z "$ac_cxx_werror_flag" ||
17881          test ! -s conftest.err
17882        } && test -s conftest.$ac_objext; then
17883   ac_cv_prog_cxx_g=yes
17884 else
17885   echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888         CXXFLAGS=""
17889       cat >conftest.$ac_ext <<_ACEOF
17890 /* confdefs.h.  */
17891 _ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h.  */
17895
17896 int
17897 main ()
17898 {
17899
17900   ;
17901   return 0;
17902 }
17903 _ACEOF
17904 rm -f conftest.$ac_objext
17905 if { (ac_try="$ac_compile"
17906 case "(($ac_try" in
17907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908   *) ac_try_echo=$ac_try;;
17909 esac
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911   (eval "$ac_compile") 2>conftest.er1
17912   ac_status=$?
17913   grep -v '^ *+' conftest.er1 >conftest.err
17914   rm -f conftest.er1
17915   cat conftest.err >&5
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); } && {
17918          test -z "$ac_cxx_werror_flag" ||
17919          test ! -s conftest.err
17920        } && test -s conftest.$ac_objext; then
17921   :
17922 else
17923   echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17925
17926         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17927          CXXFLAGS="-g"
17928          cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h.  */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h.  */
17934
17935 int
17936 main ()
17937 {
17938
17939   ;
17940   return 0;
17941 }
17942 _ACEOF
17943 rm -f conftest.$ac_objext
17944 if { (ac_try="$ac_compile"
17945 case "(($ac_try" in
17946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947   *) ac_try_echo=$ac_try;;
17948 esac
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950   (eval "$ac_compile") 2>conftest.er1
17951   ac_status=$?
17952   grep -v '^ *+' conftest.er1 >conftest.err
17953   rm -f conftest.er1
17954   cat conftest.err >&5
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); } && {
17957          test -z "$ac_cxx_werror_flag" ||
17958          test ! -s conftest.err
17959        } && test -s conftest.$ac_objext; then
17960   ac_cv_prog_cxx_g=yes
17961 else
17962   echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965
17966 fi
17967
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969 fi
17970
17971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17972 fi
17973
17974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17975    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17976 fi
17977 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17978 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17979 if test "$ac_test_CXXFLAGS" = set; then
17980   CXXFLAGS=$ac_save_CXXFLAGS
17981 elif test $ac_cv_prog_cxx_g = yes; then
17982   if test "$GXX" = yes; then
17983     CXXFLAGS="-g -O2"
17984   else
17985     CXXFLAGS="-g"
17986   fi
17987 else
17988   if test "$GXX" = yes; then
17989     CXXFLAGS="-O2"
17990   else
17991     CXXFLAGS=
17992   fi
17993 fi
17994 ac_ext=c
17995 ac_cpp='$CPP $CPPFLAGS'
17996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17999
18000
18001
18002
18003
18004
18005
18006
18007     ac_ext=cpp
18008 ac_cpp='$CXXCPP $CPPFLAGS'
18009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18012
18013     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
18014 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
18015 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
18016   echo $ECHO_N "(cached) $ECHO_C" >&6
18017 else
18018   cat >conftest.$ac_ext <<_ACEOF
18019 /* confdefs.h.  */
18020 _ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h.  */
18024
18025 int
18026 main ()
18027 {
18028
18029              #ifndef __INTEL_COMPILER
18030                 choke me
18031              #endif
18032
18033   ;
18034   return 0;
18035 }
18036 _ACEOF
18037 rm -f conftest.$ac_objext
18038 if { (ac_try="$ac_compile"
18039 case "(($ac_try" in
18040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041   *) ac_try_echo=$ac_try;;
18042 esac
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044   (eval "$ac_compile") 2>conftest.er1
18045   ac_status=$?
18046   grep -v '^ *+' conftest.er1 >conftest.err
18047   rm -f conftest.er1
18048   cat conftest.err >&5
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); } && {
18051          test -z "$ac_cxx_werror_flag" ||
18052          test ! -s conftest.err
18053        } && test -s conftest.$ac_objext; then
18054   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
18055 else
18056   echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
18060
18061 fi
18062
18063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064
18065
18066 fi
18067 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
18068 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
18069     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
18070         :; INTELCXX=yes
18071     else
18072         :;
18073     fi
18074     ac_ext=c
18075 ac_cpp='$CPP $CPPFLAGS'
18076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18079
18080
18081
18082
18083         if test "$INTELCXX" = "yes"; then
18084
18085
18086     ac_ext=cpp
18087 ac_cpp='$CXXCPP $CPPFLAGS'
18088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18091
18092     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
18093 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
18094 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
18095   echo $ECHO_N "(cached) $ECHO_C" >&6
18096 else
18097   cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h.  */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h.  */
18103
18104 int
18105 main ()
18106 {
18107
18108              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
18109                 choke me
18110              #endif
18111
18112   ;
18113   return 0;
18114 }
18115 _ACEOF
18116 rm -f conftest.$ac_objext
18117 if { (ac_try="$ac_compile"
18118 case "(($ac_try" in
18119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120   *) ac_try_echo=$ac_try;;
18121 esac
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123   (eval "$ac_compile") 2>conftest.er1
18124   ac_status=$?
18125   grep -v '^ *+' conftest.er1 >conftest.err
18126   rm -f conftest.er1
18127   cat conftest.err >&5
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); } && {
18130          test -z "$ac_cxx_werror_flag" ||
18131          test ! -s conftest.err
18132        } && test -s conftest.$ac_objext; then
18133   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
18134 else
18135   echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18137
18138         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
18139
18140 fi
18141
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143
18144
18145 fi
18146 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
18147 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
18148     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
18149         :; INTELCXX8=yes
18150     else
18151         :;
18152     fi
18153     ac_ext=c
18154 ac_cpp='$CPP $CPPFLAGS'
18155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18158
18159
18160
18161
18162
18163     ac_ext=cpp
18164 ac_cpp='$CXXCPP $CPPFLAGS'
18165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18168
18169     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
18170 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
18171 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
18172   echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174   cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180
18181 int
18182 main ()
18183 {
18184
18185              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
18186                 choke me
18187              #endif
18188
18189   ;
18190   return 0;
18191 }
18192 _ACEOF
18193 rm -f conftest.$ac_objext
18194 if { (ac_try="$ac_compile"
18195 case "(($ac_try" in
18196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197   *) ac_try_echo=$ac_try;;
18198 esac
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200   (eval "$ac_compile") 2>conftest.er1
18201   ac_status=$?
18202   grep -v '^ *+' conftest.er1 >conftest.err
18203   rm -f conftest.er1
18204   cat conftest.err >&5
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); } && {
18207          test -z "$ac_cxx_werror_flag" ||
18208          test ! -s conftest.err
18209        } && test -s conftest.$ac_objext; then
18210   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
18211 else
18212   echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
18216
18217 fi
18218
18219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18220
18221
18222 fi
18223 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
18224 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
18225     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
18226         :; INTELCXX10=yes
18227     else
18228         :;
18229     fi
18230     ac_ext=c
18231 ac_cpp='$CPP $CPPFLAGS'
18232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18235
18236
18237
18238     fi
18239
18240         if test "x$GCXX" != "xyes"; then
18241         if test "xCXX" = "xC"; then
18242             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18243 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18244 if test "${bakefile_cv_c_exto+set}" = set; then
18245   echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247   cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h.  */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h.  */
18253
18254 int
18255 main ()
18256 {
18257
18258   ;
18259   return 0;
18260 }
18261 _ACEOF
18262 rm -f conftest.$ac_objext conftest.$ac_ext.o
18263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18264   (eval $ac_compile) 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); }; then
18268   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18269     case $ac_file in
18270         conftest.$ac_ext.o)
18271             bakefile_cv_c_exto="-ext o"
18272             ;;
18273         *)
18274             ;;
18275     esac
18276 done
18277 else
18278   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18279 See \`config.log' for more details." >&5
18280 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18281 See \`config.log' for more details." >&2;}
18282    { (exit 1); exit 1; }; }
18283
18284 fi
18285
18286 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18287
18288 fi
18289 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18290 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18291 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18292     if test "c" = "c"; then
18293         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18294     fi
18295     if test "c" = "cxx"; then
18296         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18297     fi
18298 fi
18299
18300             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18301                 unset ac_cv_prog_cc_g
18302                 ac_test_CFLAGS=${CFLAGS+set}
18303 ac_save_CFLAGS=$CFLAGS
18304 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18305 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18306 if test "${ac_cv_prog_cc_g+set}" = set; then
18307   echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309   ac_save_c_werror_flag=$ac_c_werror_flag
18310    ac_c_werror_flag=yes
18311    ac_cv_prog_cc_g=no
18312    CFLAGS="-g"
18313    cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h.  */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h.  */
18319
18320 int
18321 main ()
18322 {
18323
18324   ;
18325   return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext
18329 if { (ac_try="$ac_compile"
18330 case "(($ac_try" in
18331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332   *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335   (eval "$ac_compile") 2>conftest.er1
18336   ac_status=$?
18337   grep -v '^ *+' conftest.er1 >conftest.err
18338   rm -f conftest.er1
18339   cat conftest.err >&5
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); } && {
18342          test -z "$ac_c_werror_flag" ||
18343          test ! -s conftest.err
18344        } && test -s conftest.$ac_objext; then
18345   ac_cv_prog_cc_g=yes
18346 else
18347   echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350         CFLAGS=""
18351       cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h.  */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h.  */
18357
18358 int
18359 main ()
18360 {
18361
18362   ;
18363   return 0;
18364 }
18365 _ACEOF
18366 rm -f conftest.$ac_objext
18367 if { (ac_try="$ac_compile"
18368 case "(($ac_try" in
18369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370   *) ac_try_echo=$ac_try;;
18371 esac
18372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373   (eval "$ac_compile") 2>conftest.er1
18374   ac_status=$?
18375   grep -v '^ *+' conftest.er1 >conftest.err
18376   rm -f conftest.er1
18377   cat conftest.err >&5
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); } && {
18380          test -z "$ac_c_werror_flag" ||
18381          test ! -s conftest.err
18382        } && test -s conftest.$ac_objext; then
18383   :
18384 else
18385   echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18387
18388         ac_c_werror_flag=$ac_save_c_werror_flag
18389          CFLAGS="-g"
18390          cat >conftest.$ac_ext <<_ACEOF
18391 /* confdefs.h.  */
18392 _ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h.  */
18396
18397 int
18398 main ()
18399 {
18400
18401   ;
18402   return 0;
18403 }
18404 _ACEOF
18405 rm -f conftest.$ac_objext
18406 if { (ac_try="$ac_compile"
18407 case "(($ac_try" in
18408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409   *) ac_try_echo=$ac_try;;
18410 esac
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412   (eval "$ac_compile") 2>conftest.er1
18413   ac_status=$?
18414   grep -v '^ *+' conftest.er1 >conftest.err
18415   rm -f conftest.er1
18416   cat conftest.err >&5
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); } && {
18419          test -z "$ac_c_werror_flag" ||
18420          test ! -s conftest.err
18421        } && test -s conftest.$ac_objext; then
18422   ac_cv_prog_cc_g=yes
18423 else
18424   echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18426
18427
18428 fi
18429
18430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18431 fi
18432
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434 fi
18435
18436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437    ac_c_werror_flag=$ac_save_c_werror_flag
18438 fi
18439 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18440 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18441 if test "$ac_test_CFLAGS" = set; then
18442   CFLAGS=$ac_save_CFLAGS
18443 elif test $ac_cv_prog_cc_g = yes; then
18444   if test "$GCC" = yes; then
18445     CFLAGS="-g -O2"
18446   else
18447     CFLAGS="-g"
18448   fi
18449 else
18450   if test "$GCC" = yes; then
18451     CFLAGS="-O2"
18452   else
18453     CFLAGS=
18454   fi
18455 fi
18456             fi
18457         fi
18458
18459                         case `uname -s` in
18460             AIX*)
18461
18462
18463     ac_ext=cpp
18464 ac_cpp='$CXXCPP $CPPFLAGS'
18465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18468
18469     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18470 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18471 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474   cat >conftest.$ac_ext <<_ACEOF
18475 /* confdefs.h.  */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h.  */
18480
18481 int
18482 main ()
18483 {
18484
18485              #ifndef __xlC__
18486                 choke me
18487              #endif
18488
18489   ;
18490   return 0;
18491 }
18492 _ACEOF
18493 rm -f conftest.$ac_objext
18494 if { (ac_try="$ac_compile"
18495 case "(($ac_try" in
18496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497   *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500   (eval "$ac_compile") 2>conftest.er1
18501   ac_status=$?
18502   grep -v '^ *+' conftest.er1 >conftest.err
18503   rm -f conftest.er1
18504   cat conftest.err >&5
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); } && {
18507          test -z "$ac_cxx_werror_flag" ||
18508          test ! -s conftest.err
18509        } && test -s conftest.$ac_objext; then
18510   bakefile_cv_cxx_compiler___xlC__=yes
18511 else
18512   echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18514
18515         bakefile_cv_cxx_compiler___xlC__=no
18516
18517 fi
18518
18519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520
18521
18522 fi
18523 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18524 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18525     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18526         :; XLCXX=yes
18527     else
18528         :;
18529     fi
18530     ac_ext=c
18531 ac_cpp='$CPP $CPPFLAGS'
18532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18535
18536
18537
18538                 ;;
18539
18540             Darwin)
18541
18542
18543     ac_ext=cpp
18544 ac_cpp='$CXXCPP $CPPFLAGS'
18545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18548
18549     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18550 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18551 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18552   echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554   cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h.  */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h.  */
18560
18561 int
18562 main ()
18563 {
18564
18565              #ifndef __MWERKS__
18566                 choke me
18567              #endif
18568
18569   ;
18570   return 0;
18571 }
18572 _ACEOF
18573 rm -f conftest.$ac_objext
18574 if { (ac_try="$ac_compile"
18575 case "(($ac_try" in
18576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577   *) ac_try_echo=$ac_try;;
18578 esac
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580   (eval "$ac_compile") 2>conftest.er1
18581   ac_status=$?
18582   grep -v '^ *+' conftest.er1 >conftest.err
18583   rm -f conftest.er1
18584   cat conftest.err >&5
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); } && {
18587          test -z "$ac_cxx_werror_flag" ||
18588          test ! -s conftest.err
18589        } && test -s conftest.$ac_objext; then
18590   bakefile_cv_cxx_compiler___MWERKS__=yes
18591 else
18592   echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18594
18595         bakefile_cv_cxx_compiler___MWERKS__=no
18596
18597 fi
18598
18599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18600
18601
18602 fi
18603 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18604 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18605     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18606         :; MWCXX=yes
18607     else
18608         :;
18609     fi
18610     ac_ext=c
18611 ac_cpp='$CPP $CPPFLAGS'
18612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18615
18616
18617
18618                 if test "$MWCXX" != "yes"; then
18619
18620
18621     ac_ext=cpp
18622 ac_cpp='$CXXCPP $CPPFLAGS'
18623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18626
18627     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18628 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18629 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18630   echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632   cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h.  */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h.  */
18638
18639 int
18640 main ()
18641 {
18642
18643              #ifndef __xlC__
18644                 choke me
18645              #endif
18646
18647   ;
18648   return 0;
18649 }
18650 _ACEOF
18651 rm -f conftest.$ac_objext
18652 if { (ac_try="$ac_compile"
18653 case "(($ac_try" in
18654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18655   *) ac_try_echo=$ac_try;;
18656 esac
18657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18658   (eval "$ac_compile") 2>conftest.er1
18659   ac_status=$?
18660   grep -v '^ *+' conftest.er1 >conftest.err
18661   rm -f conftest.er1
18662   cat conftest.err >&5
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); } && {
18665          test -z "$ac_cxx_werror_flag" ||
18666          test ! -s conftest.err
18667        } && test -s conftest.$ac_objext; then
18668   bakefile_cv_cxx_compiler___xlC__=yes
18669 else
18670   echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673         bakefile_cv_cxx_compiler___xlC__=no
18674
18675 fi
18676
18677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18678
18679
18680 fi
18681 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18682 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18683     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18684         :; XLCXX=yes
18685     else
18686         :;
18687     fi
18688     ac_ext=c
18689 ac_cpp='$CPP $CPPFLAGS'
18690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18693
18694
18695
18696                 fi
18697                 ;;
18698
18699             IRIX*)
18700
18701
18702     ac_ext=cpp
18703 ac_cpp='$CXXCPP $CPPFLAGS'
18704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18707
18708     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18709 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18710 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713   cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h.  */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h.  */
18719
18720 int
18721 main ()
18722 {
18723
18724              #ifndef _SGI_COMPILER_VERSION
18725                 choke me
18726              #endif
18727
18728   ;
18729   return 0;
18730 }
18731 _ACEOF
18732 rm -f conftest.$ac_objext
18733 if { (ac_try="$ac_compile"
18734 case "(($ac_try" in
18735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736   *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739   (eval "$ac_compile") 2>conftest.er1
18740   ac_status=$?
18741   grep -v '^ *+' conftest.er1 >conftest.err
18742   rm -f conftest.er1
18743   cat conftest.err >&5
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); } && {
18746          test -z "$ac_cxx_werror_flag" ||
18747          test ! -s conftest.err
18748        } && test -s conftest.$ac_objext; then
18749   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18750 else
18751   echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18753
18754         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18755
18756 fi
18757
18758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18759
18760
18761 fi
18762 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18763 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18764     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18765         :; SGICXX=yes
18766     else
18767         :;
18768     fi
18769     ac_ext=c
18770 ac_cpp='$CPP $CPPFLAGS'
18771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18774
18775
18776
18777                 ;;
18778
18779             Linux*)
18780                                                 if test "$INTELCXX" != "yes"; then
18781
18782
18783     ac_ext=cpp
18784 ac_cpp='$CXXCPP $CPPFLAGS'
18785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18788
18789     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18790 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18791 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18792   echo $ECHO_N "(cached) $ECHO_C" >&6
18793 else
18794   cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h.  */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h.  */
18800
18801 int
18802 main ()
18803 {
18804
18805              #ifndef __SUNPRO_CC
18806                 choke me
18807              #endif
18808
18809   ;
18810   return 0;
18811 }
18812 _ACEOF
18813 rm -f conftest.$ac_objext
18814 if { (ac_try="$ac_compile"
18815 case "(($ac_try" in
18816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817   *) ac_try_echo=$ac_try;;
18818 esac
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820   (eval "$ac_compile") 2>conftest.er1
18821   ac_status=$?
18822   grep -v '^ *+' conftest.er1 >conftest.err
18823   rm -f conftest.er1
18824   cat conftest.err >&5
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); } && {
18827          test -z "$ac_cxx_werror_flag" ||
18828          test ! -s conftest.err
18829        } && test -s conftest.$ac_objext; then
18830   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18831 else
18832   echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18834
18835         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18836
18837 fi
18838
18839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18840
18841
18842 fi
18843 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18844 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18845     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18846         :; SUNCXX=yes
18847     else
18848         :;
18849     fi
18850     ac_ext=c
18851 ac_cpp='$CPP $CPPFLAGS'
18852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18855
18856
18857
18858                 fi
18859                 ;;
18860
18861             HP-UX*)
18862
18863
18864     ac_ext=cpp
18865 ac_cpp='$CXXCPP $CPPFLAGS'
18866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18869
18870     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18871 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18872 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18873   echo $ECHO_N "(cached) $ECHO_C" >&6
18874 else
18875   cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h.  */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h.  */
18881
18882 int
18883 main ()
18884 {
18885
18886              #ifndef __HP_aCC
18887                 choke me
18888              #endif
18889
18890   ;
18891   return 0;
18892 }
18893 _ACEOF
18894 rm -f conftest.$ac_objext
18895 if { (ac_try="$ac_compile"
18896 case "(($ac_try" in
18897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898   *) ac_try_echo=$ac_try;;
18899 esac
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901   (eval "$ac_compile") 2>conftest.er1
18902   ac_status=$?
18903   grep -v '^ *+' conftest.er1 >conftest.err
18904   rm -f conftest.er1
18905   cat conftest.err >&5
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); } && {
18908          test -z "$ac_cxx_werror_flag" ||
18909          test ! -s conftest.err
18910        } && test -s conftest.$ac_objext; then
18911   bakefile_cv_cxx_compiler___HP_aCC=yes
18912 else
18913   echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916         bakefile_cv_cxx_compiler___HP_aCC=no
18917
18918 fi
18919
18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921
18922
18923 fi
18924 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18925 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18926     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18927         :; HPCXX=yes
18928     else
18929         :;
18930     fi
18931     ac_ext=c
18932 ac_cpp='$CPP $CPPFLAGS'
18933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18936
18937
18938
18939                 ;;
18940
18941             OSF1)
18942
18943
18944     ac_ext=cpp
18945 ac_cpp='$CXXCPP $CPPFLAGS'
18946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18949
18950     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18951 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18952 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955   cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h.  */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h.  */
18961
18962 int
18963 main ()
18964 {
18965
18966              #ifndef __DECCXX
18967                 choke me
18968              #endif
18969
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext
18975 if { (ac_try="$ac_compile"
18976 case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981   (eval "$ac_compile") 2>conftest.er1
18982   ac_status=$?
18983   grep -v '^ *+' conftest.er1 >conftest.err
18984   rm -f conftest.er1
18985   cat conftest.err >&5
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); } && {
18988          test -z "$ac_cxx_werror_flag" ||
18989          test ! -s conftest.err
18990        } && test -s conftest.$ac_objext; then
18991   bakefile_cv_cxx_compiler___DECCXX=yes
18992 else
18993   echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996         bakefile_cv_cxx_compiler___DECCXX=no
18997
18998 fi
18999
19000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001
19002
19003 fi
19004 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
19005 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
19006     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
19007         :; COMPAQCXX=yes
19008     else
19009         :;
19010     fi
19011     ac_ext=c
19012 ac_cpp='$CPP $CPPFLAGS'
19013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19016
19017
19018
19019                 ;;
19020
19021             SunOS)
19022
19023
19024     ac_ext=cpp
19025 ac_cpp='$CXXCPP $CPPFLAGS'
19026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19029
19030     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19031 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19032 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035   cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h.  */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h.  */
19041
19042 int
19043 main ()
19044 {
19045
19046              #ifndef __SUNPRO_CC
19047                 choke me
19048              #endif
19049
19050   ;
19051   return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext
19055 if { (ac_try="$ac_compile"
19056 case "(($ac_try" in
19057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058   *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061   (eval "$ac_compile") 2>conftest.er1
19062   ac_status=$?
19063   grep -v '^ *+' conftest.er1 >conftest.err
19064   rm -f conftest.er1
19065   cat conftest.err >&5
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); } && {
19068          test -z "$ac_cxx_werror_flag" ||
19069          test ! -s conftest.err
19070        } && test -s conftest.$ac_objext; then
19071   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19072 else
19073   echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19075
19076         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19077
19078 fi
19079
19080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19081
19082
19083 fi
19084 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19085 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19086     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19087         :; SUNCXX=yes
19088     else
19089         :;
19090     fi
19091     ac_ext=c
19092 ac_cpp='$CPP $CPPFLAGS'
19093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19096
19097
19098
19099                 ;;
19100         esac
19101     fi
19102
19103
19104
19105 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19106     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19107 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19108    { (exit 1); exit 1; }; }
19109 fi
19110
19111 if test "x$SUNCXX" != xyes; then
19112     if test -n "$ac_tool_prefix"; then
19113   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19114 set dummy ${ac_tool_prefix}ar; ac_word=$2
19115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19117 if test "${ac_cv_prog_AR+set}" = set; then
19118   echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120   if test -n "$AR"; then
19121   ac_cv_prog_AR="$AR" # Let the user override the test.
19122 else
19123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19124 for as_dir in $PATH
19125 do
19126   IFS=$as_save_IFS
19127   test -z "$as_dir" && as_dir=.
19128   for ac_exec_ext in '' $ac_executable_extensions; do
19129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19130     ac_cv_prog_AR="${ac_tool_prefix}ar"
19131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19132     break 2
19133   fi
19134 done
19135 done
19136 IFS=$as_save_IFS
19137
19138 fi
19139 fi
19140 AR=$ac_cv_prog_AR
19141 if test -n "$AR"; then
19142   { echo "$as_me:$LINENO: result: $AR" >&5
19143 echo "${ECHO_T}$AR" >&6; }
19144 else
19145   { echo "$as_me:$LINENO: result: no" >&5
19146 echo "${ECHO_T}no" >&6; }
19147 fi
19148
19149
19150 fi
19151 if test -z "$ac_cv_prog_AR"; then
19152   ac_ct_AR=$AR
19153   # Extract the first word of "ar", so it can be a program name with args.
19154 set dummy ar; ac_word=$2
19155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19157 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19158   echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160   if test -n "$ac_ct_AR"; then
19161   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19162 else
19163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19164 for as_dir in $PATH
19165 do
19166   IFS=$as_save_IFS
19167   test -z "$as_dir" && as_dir=.
19168   for ac_exec_ext in '' $ac_executable_extensions; do
19169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19170     ac_cv_prog_ac_ct_AR="ar"
19171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19172     break 2
19173   fi
19174 done
19175 done
19176 IFS=$as_save_IFS
19177
19178 fi
19179 fi
19180 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19181 if test -n "$ac_ct_AR"; then
19182   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19183 echo "${ECHO_T}$ac_ct_AR" >&6; }
19184 else
19185   { echo "$as_me:$LINENO: result: no" >&5
19186 echo "${ECHO_T}no" >&6; }
19187 fi
19188
19189   if test "x$ac_ct_AR" = x; then
19190     AR=""
19191   else
19192     case $cross_compiling:$ac_tool_warned in
19193 yes:)
19194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19195 whose name does not start with the host triplet.  If you think this
19196 configuration is useful to you, please write to autoconf@gnu.org." >&5
19197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19198 whose name does not start with the host triplet.  If you think this
19199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19200 ac_tool_warned=yes ;;
19201 esac
19202     AR=$ac_ct_AR
19203   fi
19204 else
19205   AR="$ac_cv_prog_AR"
19206 fi
19207
19208     if test "x$AR" = "x" ; then
19209         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19210 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19211    { (exit 1); exit 1; }; }
19212     fi
19213 fi
19214
19215
19216 if test "$wxUSE_MAC" = 1; then
19217
19218 retest_macosx_linking=no
19219
19220 OSX_ARCH_OPTS=""
19221 if test "x$wxUSE_MAC_ARCH" != xno; then
19222     OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
19223 fi
19224
19225     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
19226                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
19227             # Implicitly turn on the new --with-macosx-sdk using the default
19228             # SDK which provides the behaviour this option has always had.
19229             if test "x$wxUSE_MACOSX_SDK" = "x"; then
19230                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
19231 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
19232                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
19233 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
19234                 wxUSE_MACOSX_SDK=yes
19235             fi
19236         else
19237             # Complain to user if he specified an argument to --enable-universal_binary
19238             # and also 1) specified --with-macosx-sdk using the default (yes) or
19239             # 2) specified --with-macosx-sdk using a path or 3) specified
19240             # --without-macosx-sdk (no).
19241             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
19242                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19243 See \`config.log' for more details." >&5
19244 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19245 See \`config.log' for more details." >&2;}
19246    { (exit 1); exit 1; }; }
19247             else
19248                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
19249                 # special-case the empty string because the below test simply
19250                 # converts "no" to the empty string anyway.
19251                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
19252                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
19253 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
19254             fi
19255         fi
19256                 OSX_ARCH_OPTS="-arch ppc -arch i386"
19257         if test "$wxUSE_OSX_COCOA" = 1; then
19258             OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
19259         fi
19260         { echo "$as_me:$LINENO: checking for universal binary architectures" >&5
19261 echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
19262         { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
19263 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
19264
19265                                                                                                                 retest_macosx_linking=yes
19266
19267                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
19268 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
19269         bk_use_pch=no
19270     fi
19271
19272 CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
19273 CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
19274 OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
19275 OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
19276 LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
19277
19278 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
19279     wxUSE_MACOSX_SDK=
19280 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
19281     # TODO: Search for most recent SDK and use it.
19282     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
19283 fi
19284
19285
19286 if test "x$wxUSE_MACOSX_SDK" != "x"; then
19287     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
19288 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
19289     if ! test -d "$wxUSE_MACOSX_SDK"; then
19290         { { echo "$as_me:$LINENO: error: not found
19291 See \`config.log' for more details." >&5
19292 echo "$as_me: error: not found
19293 See \`config.log' for more details." >&2;}
19294    { (exit 1); exit 1; }; }
19295     else
19296         { echo "$as_me:$LINENO: result: exists" >&5
19297 echo "${ECHO_T}exists" >&6; }
19298     fi
19299         MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
19300     retest_macosx_linking=yes
19301             fi
19302
19303 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
19304     wxUSE_MACOSX_VERSION_MIN=
19305 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
19306     if test "x$wxUSE_MACOSX_SDK" != "x"; then
19307         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
19308 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
19309
19310         MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
19311
19312         # If that failed, try again with the new key
19313         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
19314
19315             MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
19316
19317         fi
19318
19319         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
19320             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
19321             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
19322 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
19323         else
19324             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
19325 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
19326             wxUSE_MACOSX_VERSION_MIN=
19327         fi
19328     else
19329         wxUSE_MACOSX_VERSION_MIN=
19330     fi
19331 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
19332     for ac_prog in sw_vers
19333 do
19334   # Extract the first word of "$ac_prog", so it can be a program name with args.
19335 set dummy $ac_prog; ac_word=$2
19336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19338 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
19339   echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341   if test -n "$OSX_SW_VERS"; then
19342   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
19343 else
19344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19345 for as_dir in $PATH
19346 do
19347   IFS=$as_save_IFS
19348   test -z "$as_dir" && as_dir=.
19349   for ac_exec_ext in '' $ac_executable_extensions; do
19350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19351     ac_cv_prog_OSX_SW_VERS="$ac_prog"
19352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19353     break 2
19354   fi
19355 done
19356 done
19357 IFS=$as_save_IFS
19358
19359 fi
19360 fi
19361 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
19362 if test -n "$OSX_SW_VERS"; then
19363   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
19364 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
19365 else
19366   { echo "$as_me:$LINENO: result: no" >&5
19367 echo "${ECHO_T}no" >&6; }
19368 fi
19369
19370
19371   test -n "$OSX_SW_VERS" && break
19372 done
19373
19374     if test "$OSX_SW_VERS" != ""; then
19375         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
19376     else
19377                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
19378 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
19379         OSX_VERSION="10.4"
19380     fi
19381
19382     case "$OSX_VERSION" in
19383         10.4* )
19384             wxUSE_MACOSX_VERSION_MIN=10.4
19385             ;;
19386
19387         * )
19388             if test "$wxUSE_OSX_CARBON" = 1; then
19389                 # otherwise configure stops on leopard for universal_binary
19390                 wxUSE_MACOSX_VERSION_MIN=10.4
19391             else
19392                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
19393                 wxUSE_MACOSX_VERSION_MIN=10.5
19394             fi
19395             ;;
19396     esac
19397 fi
19398
19399 NEEDS_GCC40="no"
19400 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
19401     NEEDS_GCC40="yes"
19402 fi
19403
19404 if test "$wxUSE_OSX_CARBON" = 1; then
19405     NEEDS_GCC40="yes"
19406 fi
19407
19408 if test "x$NEEDS_GCC40" == "xyes"; then
19409     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
19410     # and wants 10.4 compatible code, then 'downgrade' to 4.0
19411     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
19412     if test "x$CC" = "xgcc"; then
19413         CCVERSION=`$CC --version | grep 4.[2-9].`
19414         if test "x$CCVERSION" != "x"; then
19415             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
19416             CC="gcc-4.0"
19417         fi
19418     fi
19419
19420     if test "x$CXX" = "xg++"; then
19421         CCVERSION=`$CXX --version | grep 4.[2-9].`
19422         if test "x$CCVERSION" != "x"; then
19423             CXX="g++-4.0"
19424         fi
19425     fi
19426 fi
19427
19428 if test "x$MACOSX_SDK_OPTS" != "x"; then
19429     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
19430     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
19431     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
19432 fi
19433
19434 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
19435     if test "$wxUSE_OSX_IPHONE" = 1; then
19436         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
19437     else
19438         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
19439     fi
19440     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
19441     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
19442     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
19443     retest_macosx_linking=yes
19444 fi
19445
19446 if test "x$retest_macosx_linking" = "xyes"; then
19447     ac_ext=c
19448 ac_cpp='$CPP $CPPFLAGS'
19449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19452
19453     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
19454 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
19455     cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461
19462 int
19463 main ()
19464 {
19465
19466   ;
19467   return 0;
19468 }
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474   *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477   (eval "$ac_link") 2>conftest.er1
19478   ac_status=$?
19479   grep -v '^ *+' conftest.er1 >conftest.err
19480   rm -f conftest.er1
19481   cat conftest.err >&5
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); } && {
19484          test -z "$ac_c_werror_flag" ||
19485          test ! -s conftest.err
19486        } && test -s conftest$ac_exeext &&
19487        $as_test_x conftest$ac_exeext; then
19488   { echo "$as_me:$LINENO: result: yes" >&5
19489 echo "${ECHO_T}yes" >&6; }
19490 else
19491   echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19495 See \`config.log' for more details." >&5
19496 echo "$as_me: error: no.  Try a different SDK
19497 See \`config.log' for more details." >&2;}
19498    { (exit 1); exit 1; }; }; exit 1
19499 fi
19500
19501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19502       conftest$ac_exeext conftest.$ac_ext
19503     ac_ext=c
19504 ac_cpp='$CPP $CPPFLAGS'
19505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19508
19509
19510     ac_ext=cpp
19511 ac_cpp='$CXXCPP $CPPFLAGS'
19512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19515
19516     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19517 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19518     cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524
19525 int
19526 main ()
19527 {
19528
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_link") 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } && {
19547          test -z "$ac_cxx_werror_flag" ||
19548          test ! -s conftest.err
19549        } && test -s conftest$ac_exeext &&
19550        $as_test_x conftest$ac_exeext; then
19551   { echo "$as_me:$LINENO: result: yes" >&5
19552 echo "${ECHO_T}yes" >&6; }
19553 else
19554   echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19558 See \`config.log' for more details." >&5
19559 echo "$as_me: error: no.  Try a different SDK
19560 See \`config.log' for more details." >&2;}
19561    { (exit 1); exit 1; }; }; exit 1
19562 fi
19563
19564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19565       conftest$ac_exeext conftest.$ac_ext
19566     ac_ext=c
19567 ac_cpp='$CPP $CPPFLAGS'
19568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19571
19572 fi
19573
19574 fi
19575 case "${host}" in
19576
19577                 *-*-darwin* )
19578         INSTALL_PROGRAM="cp -fp"
19579         INSTALL_DATA="cp -fp"
19580         ;;
19581     *)
19582         ;;
19583 esac
19584
19585
19586 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
19587     CXXFLAGS="-qunique $CXXFLAGS"
19588 fi
19589
19590 case "${host}" in
19591   powerpc-*-darwin* )
19592     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19593 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19594     cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600
19601 int
19602 main ()
19603 {
19604 #ifndef __POWERPC__
19605         choke me for lack of PowerPC
19606 #endif
19607
19608   ;
19609   return 0;
19610 }
19611 _ACEOF
19612 rm -f conftest.$ac_objext
19613 if { (ac_try="$ac_compile"
19614 case "(($ac_try" in
19615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616   *) ac_try_echo=$ac_try;;
19617 esac
19618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19619   (eval "$ac_compile") 2>conftest.er1
19620   ac_status=$?
19621   grep -v '^ *+' conftest.er1 >conftest.err
19622   rm -f conftest.er1
19623   cat conftest.err >&5
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); } && {
19626          test -z "$ac_c_werror_flag" ||
19627          test ! -s conftest.err
19628        } && test -s conftest.$ac_objext; then
19629   { echo "$as_me:$LINENO: result: yes" >&5
19630 echo "${ECHO_T}yes" >&6; }
19631 else
19632   echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19634
19635         { echo "$as_me:$LINENO: result: no" >&5
19636 echo "${ECHO_T}no" >&6; }
19637         cat >>confdefs.h <<\_ACEOF
19638 #define __POWERPC__ 1
19639 _ACEOF
19640
19641
19642 fi
19643
19644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19645   ;;
19646 esac
19647
19648 case "${host}" in
19649   *-*-darwin* )
19650     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19651 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19652     cat >conftest.$ac_ext <<_ACEOF
19653 /* confdefs.h.  */
19654 _ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h.  */
19658 #include <CoreFoundation/CFBase.h>
19659
19660 int
19661 main ()
19662 {
19663
19664   ;
19665   return 0;
19666 }
19667 _ACEOF
19668 rm -f conftest.$ac_objext
19669 if { (ac_try="$ac_compile"
19670 case "(($ac_try" in
19671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672   *) ac_try_echo=$ac_try;;
19673 esac
19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675   (eval "$ac_compile") 2>conftest.er1
19676   ac_status=$?
19677   grep -v '^ *+' conftest.er1 >conftest.err
19678   rm -f conftest.er1
19679   cat conftest.err >&5
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } && {
19682          test -z "$ac_c_werror_flag" ||
19683          test ! -s conftest.err
19684        } && test -s conftest.$ac_objext; then
19685   { echo "$as_me:$LINENO: result: yes" >&5
19686 echo "${ECHO_T}yes" >&6; }
19687 else
19688   echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19690
19691         { echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6; }
19693         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19694 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19695         cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h.  */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h.  */
19701 #define __CF_USE_FRAMEWORK_INCLUDES__
19702 #include <CoreFoundation/CFBase.h>
19703
19704 int
19705 main ()
19706 {
19707
19708   ;
19709   return 0;
19710 }
19711 _ACEOF
19712 rm -f conftest.$ac_objext
19713 if { (ac_try="$ac_compile"
19714 case "(($ac_try" in
19715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716   *) ac_try_echo=$ac_try;;
19717 esac
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719   (eval "$ac_compile") 2>conftest.er1
19720   ac_status=$?
19721   grep -v '^ *+' conftest.er1 >conftest.err
19722   rm -f conftest.er1
19723   cat conftest.err >&5
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); } && {
19726          test -z "$ac_c_werror_flag" ||
19727          test ! -s conftest.err
19728        } && test -s conftest.$ac_objext; then
19729   { echo "$as_me:$LINENO: result: yes" >&5
19730 echo "${ECHO_T}yes" >&6; }
19731                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19732 else
19733   echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19735
19736         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19737 See \`config.log' for more details." >&5
19738 echo "$as_me: error: no.  CoreFoundation not available.
19739 See \`config.log' for more details." >&2;}
19740    { (exit 1); exit 1; }; }
19741
19742 fi
19743
19744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745
19746
19747 fi
19748
19749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750   ;;
19751 esac
19752
19753 wants_win32=0
19754 doesnt_want_win32=0
19755 case "${host}" in
19756   *-*-cygwin*)
19757       if test "$wxUSE_MSW" = 1 ; then
19758         wants_win32=1
19759       else
19760                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19761 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19762 if test "${wx_cv_nocygwin+set}" = set; then
19763   echo $ECHO_N "(cached) $ECHO_C" >&6
19764 else
19765
19766                 cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h.  */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h.  */
19772
19773 int
19774 main ()
19775 {
19776
19777                         #ifdef __MINGW32__
19778                             choke me
19779                         #endif
19780
19781   ;
19782   return 0;
19783 }
19784 _ACEOF
19785 rm -f conftest.$ac_objext
19786 if { (ac_try="$ac_compile"
19787 case "(($ac_try" in
19788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789   *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792   (eval "$ac_compile") 2>conftest.er1
19793   ac_status=$?
19794   grep -v '^ *+' conftest.er1 >conftest.err
19795   rm -f conftest.er1
19796   cat conftest.err >&5
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); } && {
19799          test -z "$ac_c_werror_flag" ||
19800          test ! -s conftest.err
19801        } && test -s conftest.$ac_objext; then
19802   wx_cv_nocygwin=no
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807         wx_cv_nocygwin=yes
19808
19809 fi
19810
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812
19813
19814 fi
19815 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19816 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19817
19818         if test "$wx_cv_nocygwin" = "yes"; then
19819             wants_win32=1
19820         else
19821             doesnt_want_win32=1
19822         fi
19823       fi
19824       if test "$wants_win32" = 1 ; then
19825         BAKEFILE_FORCE_PLATFORM=win32
19826       fi
19827   ;;
19828   *-*-mingw*)
19829       wants_win32=1
19830   ;;
19831 esac
19832
19833 if test "$wxUSE_WINE" = "yes"; then
19834     wants_win32=1
19835     LDFLAGS_GUI="-mwindows"
19836 fi
19837
19838 if test "$wants_win32" = 1 ; then
19839     USE_UNIX=0
19840     USE_WIN32=1
19841     cat >>confdefs.h <<\_ACEOF
19842 #define __WIN32__ 1
19843 _ACEOF
19844
19845     cat >>confdefs.h <<\_ACEOF
19846 #define __WIN95__ 1
19847 _ACEOF
19848
19849     cat >>confdefs.h <<\_ACEOF
19850 #define __WINDOWS__ 1
19851 _ACEOF
19852
19853     cat >>confdefs.h <<\_ACEOF
19854 #define __GNUWIN32__ 1
19855 _ACEOF
19856
19857     cat >>confdefs.h <<\_ACEOF
19858 #define STRICT 1
19859 _ACEOF
19860
19861 fi
19862 if test "$doesnt_want_win32" = 1 ; then
19863     USE_UNIX=1
19864     USE_WIN32=0
19865 fi
19866
19867 if test "$USE_UNIX" = 1 ; then
19868     wxUSE_UNIX=yes
19869     cat >>confdefs.h <<\_ACEOF
19870 #define __UNIX__ 1
19871 _ACEOF
19872
19873 fi
19874
19875 case "${host}" in
19876   *-pc-os2_emx | *-pc-os2-emx )
19877                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19878                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19879 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19880 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19881   echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883   ac_check_lib_save_LIBS=$LIBS
19884 LIBS="-lcExt  $LIBS"
19885 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h.  */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h.  */
19891
19892 /* Override any GCC internal prototype to avoid an error.
19893    Use char because int might match the return type of a GCC
19894    builtin and then its argument prototype would still apply.  */
19895 #ifdef __cplusplus
19896 extern "C"
19897 #endif
19898 char drand48 ();
19899 int
19900 main ()
19901 {
19902 return drand48 ();
19903   ;
19904   return 0;
19905 }
19906 _ACEOF
19907 rm -f conftest.$ac_objext conftest$ac_exeext
19908 if { (ac_try="$ac_link"
19909 case "(($ac_try" in
19910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911   *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914   (eval "$ac_link") 2>conftest.er1
19915   ac_status=$?
19916   grep -v '^ *+' conftest.er1 >conftest.err
19917   rm -f conftest.er1
19918   cat conftest.err >&5
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); } && {
19921          test -z "$ac_c_werror_flag" ||
19922          test ! -s conftest.err
19923        } && test -s conftest$ac_exeext &&
19924        $as_test_x conftest$ac_exeext; then
19925   ac_cv_lib_cExt_drand48=yes
19926 else
19927   echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19929
19930         ac_cv_lib_cExt_drand48=no
19931 fi
19932
19933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19934       conftest$ac_exeext conftest.$ac_ext
19935 LIBS=$ac_check_lib_save_LIBS
19936 fi
19937 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19938 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19939 if test $ac_cv_lib_cExt_drand48 = yes; then
19940   LIBS="$LIBS -lcExt"
19941 fi
19942
19943       else
19944                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19945       fi
19946                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19947 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19948 if test "${wx_cv_gccversion+set}" = set; then
19949   echo $ECHO_N "(cached) $ECHO_C" >&6
19950 else
19951
19952           if test "$cross_compiling" = yes; then
19953                 wx_cv_gccversion="EMX2"
19954
19955 else
19956   cat >conftest.$ac_ext <<_ACEOF
19957 /* confdefs.h.  */
19958 _ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h.  */
19962
19963                   #include <stdio.h>
19964
19965                   int main()
19966                   {
19967                       FILE *f=fopen("conftestval", "w");
19968                       if (!f) exit(1);
19969                       fprintf(f,
19970                   #if (__GNUC__ < 3)
19971                               "EMX2"
19972                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19973                               "EMX3"
19974                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19975                               "Innotek5"
19976                   #else
19977                               "Innotek6"
19978                   #endif
19979                       );
19980                       exit(0);
19981                   }
19982
19983 _ACEOF
19984 rm -f conftest$ac_exeext
19985 if { (ac_try="$ac_link"
19986 case "(($ac_try" in
19987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988   *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991   (eval "$ac_link") 2>&5
19992   ac_status=$?
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19995   { (case "(($ac_try" in
19996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997   *) ac_try_echo=$ac_try;;
19998 esac
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000   (eval "$ac_try") 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; }; then
20004   wx_cv_gccversion=`cat conftestval`
20005 else
20006   echo "$as_me: program exited with status $ac_status" >&5
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20009
20010 ( exit $ac_status )
20011 wx_cv_gccversion="EMX2"
20012 fi
20013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20014 fi
20015
20016
20017
20018 fi
20019 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
20020 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
20021       if test "$wx_cv_gccversion" = "EMX2"; then
20022           LIBS="$LIBS -lstdcpp"
20023           LDFLAGS="$LDFLAGS -Zsysv-signals"
20024       else
20025           if test "$wx_cv_gccversion" = "EMX3"; then
20026               LIBS="$LIBS -lstdcxx -lgcc"
20027               LDFLAGS="$LDFLAGS -Zsysv-signals"
20028           else
20029               LIBS="$LIBS -lstdc++"
20030           fi
20031       fi
20032       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
20033         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
20034 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
20035         wxUSE_OMF=yes
20036         enable_omf=yes
20037       fi
20038         ;;
20039   *)
20040
20041       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
20042 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
20043 if test "${ac_cv_string_strcasecmp+set}" = set; then
20044   echo $ECHO_N "(cached) $ECHO_C" >&6
20045 else
20046
20047           cat >conftest.$ac_ext <<_ACEOF
20048 /* confdefs.h.  */
20049 _ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h.  */
20053
20054               #include <string.h>
20055
20056 int
20057 main ()
20058 {
20059
20060                   strcasecmp("foo", "bar");
20061
20062   ;
20063   return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (ac_try="$ac_link"
20068 case "(($ac_try" in
20069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070   *) ac_try_echo=$ac_try;;
20071 esac
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073   (eval "$ac_link") 2>conftest.er1
20074   ac_status=$?
20075   grep -v '^ *+' conftest.er1 >conftest.err
20076   rm -f conftest.er1
20077   cat conftest.err >&5
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); } && {
20080          test -z "$ac_c_werror_flag" ||
20081          test ! -s conftest.err
20082        } && test -s conftest$ac_exeext &&
20083        $as_test_x conftest$ac_exeext; then
20084   ac_cv_string_strcasecmp=yes
20085 else
20086   echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089         ac_cv_string_strcasecmp=no
20090
20091 fi
20092
20093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20094       conftest$ac_exeext conftest.$ac_ext
20095
20096 fi
20097 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
20098 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
20099
20100       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
20101           cat >>confdefs.h <<\_ACEOF
20102 #define HAVE_STRCASECMP_IN_STRING_H 1
20103 _ACEOF
20104
20105       else
20106           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
20107 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
20108 if test "${ac_cv_strings_strcasecmp+set}" = set; then
20109   echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111
20112               cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h.  */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h.  */
20118
20119                   #include <strings.h>
20120
20121 int
20122 main ()
20123 {
20124
20125                       strcasecmp("foo", "bar");
20126
20127   ;
20128   return 0;
20129 }
20130 _ACEOF
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (ac_try="$ac_link"
20133 case "(($ac_try" in
20134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135   *) ac_try_echo=$ac_try;;
20136 esac
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138   (eval "$ac_link") 2>conftest.er1
20139   ac_status=$?
20140   grep -v '^ *+' conftest.er1 >conftest.err
20141   rm -f conftest.er1
20142   cat conftest.err >&5
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } && {
20145          test -z "$ac_c_werror_flag" ||
20146          test ! -s conftest.err
20147        } && test -s conftest$ac_exeext &&
20148        $as_test_x conftest$ac_exeext; then
20149   ac_cv_strings_strcasecmp=yes
20150 else
20151   echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154         ac_cv_strings_strcasecmp=no
20155
20156 fi
20157
20158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20159       conftest$ac_exeext conftest.$ac_ext
20160
20161 fi
20162 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
20163 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
20164
20165           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
20166               cat >>confdefs.h <<\_ACEOF
20167 #define HAVE_STRCASECMP_IN_STRINGS_H 1
20168 _ACEOF
20169
20170           else
20171               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
20172 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
20173    { (exit 1); exit 1; }; }
20174           fi
20175       fi
20176
20177         ;;
20178 esac
20179
20180
20181 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20182 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20183 if test "${ac_cv_header_stdc+set}" = set; then
20184   echo $ECHO_N "(cached) $ECHO_C" >&6
20185 else
20186   cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h.  */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h.  */
20192 #include <stdlib.h>
20193 #include <stdarg.h>
20194 #include <string.h>
20195 #include <float.h>
20196
20197 int
20198 main ()
20199 {
20200
20201   ;
20202   return 0;
20203 }
20204 _ACEOF
20205 rm -f conftest.$ac_objext
20206 if { (ac_try="$ac_compile"
20207 case "(($ac_try" in
20208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209   *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212   (eval "$ac_compile") 2>conftest.er1
20213   ac_status=$?
20214   grep -v '^ *+' conftest.er1 >conftest.err
20215   rm -f conftest.er1
20216   cat conftest.err >&5
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); } && {
20219          test -z "$ac_c_werror_flag" ||
20220          test ! -s conftest.err
20221        } && test -s conftest.$ac_objext; then
20222   ac_cv_header_stdc=yes
20223 else
20224   echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227         ac_cv_header_stdc=no
20228 fi
20229
20230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231
20232 if test $ac_cv_header_stdc = yes; then
20233   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20234   cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h.  */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h.  */
20240 #include <string.h>
20241
20242 _ACEOF
20243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20244   $EGREP "memchr" >/dev/null 2>&1; then
20245   :
20246 else
20247   ac_cv_header_stdc=no
20248 fi
20249 rm -f conftest*
20250
20251 fi
20252
20253 if test $ac_cv_header_stdc = yes; then
20254   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20255   cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h.  */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h.  */
20261 #include <stdlib.h>
20262
20263 _ACEOF
20264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20265   $EGREP "free" >/dev/null 2>&1; then
20266   :
20267 else
20268   ac_cv_header_stdc=no
20269 fi
20270 rm -f conftest*
20271
20272 fi
20273
20274 if test $ac_cv_header_stdc = yes; then
20275   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20276   if test "$cross_compiling" = yes; then
20277   :
20278 else
20279   cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h.  */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h.  */
20285 #include <ctype.h>
20286 #include <stdlib.h>
20287 #if ((' ' & 0x0FF) == 0x020)
20288 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20289 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20290 #else
20291 # define ISLOWER(c) \
20292                    (('a' <= (c) && (c) <= 'i') \
20293                      || ('j' <= (c) && (c) <= 'r') \
20294                      || ('s' <= (c) && (c) <= 'z'))
20295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20296 #endif
20297
20298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20299 int
20300 main ()
20301 {
20302   int i;
20303   for (i = 0; i < 256; i++)
20304     if (XOR (islower (i), ISLOWER (i))
20305         || toupper (i) != TOUPPER (i))
20306       return 2;
20307   return 0;
20308 }
20309 _ACEOF
20310 rm -f conftest$ac_exeext
20311 if { (ac_try="$ac_link"
20312 case "(($ac_try" in
20313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314   *) ac_try_echo=$ac_try;;
20315 esac
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317   (eval "$ac_link") 2>&5
20318   ac_status=$?
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20321   { (case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_try") 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; }; then
20330   :
20331 else
20332   echo "$as_me: program exited with status $ac_status" >&5
20333 echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20335
20336 ( exit $ac_status )
20337 ac_cv_header_stdc=no
20338 fi
20339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20340 fi
20341
20342
20343 fi
20344 fi
20345 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20346 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20347 if test $ac_cv_header_stdc = yes; then
20348
20349 cat >>confdefs.h <<\_ACEOF
20350 #define STDC_HEADERS 1
20351 _ACEOF
20352
20353 fi
20354
20355 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20366                   inttypes.h stdint.h unistd.h
20367 do
20368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20372   echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374   cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h.  */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h.  */
20380 $ac_includes_default
20381
20382 #include <$ac_header>
20383 _ACEOF
20384 rm -f conftest.$ac_objext
20385 if { (ac_try="$ac_compile"
20386 case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391   (eval "$ac_compile") 2>conftest.er1
20392   ac_status=$?
20393   grep -v '^ *+' conftest.er1 >conftest.err
20394   rm -f conftest.er1
20395   cat conftest.err >&5
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); } && {
20398          test -z "$ac_c_werror_flag" ||
20399          test ! -s conftest.err
20400        } && test -s conftest.$ac_objext; then
20401   eval "$as_ac_Header=yes"
20402 else
20403   echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20405
20406         eval "$as_ac_Header=no"
20407 fi
20408
20409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20410 fi
20411 ac_res=`eval echo '${'$as_ac_Header'}'`
20412                { echo "$as_me:$LINENO: result: $ac_res" >&5
20413 echo "${ECHO_T}$ac_res" >&6; }
20414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20415   cat >>confdefs.h <<_ACEOF
20416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20417 _ACEOF
20418
20419 fi
20420
20421 done
20422
20423
20424
20425
20426 for ac_header in langinfo.h wchar.h
20427 do
20428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20432   echo $ECHO_N "(cached) $ECHO_C" >&6
20433 else
20434   cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h.  */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h.  */
20440 $ac_includes_default
20441
20442 #include <$ac_header>
20443 _ACEOF
20444 rm -f conftest.$ac_objext
20445 if { (ac_try="$ac_compile"
20446 case "(($ac_try" in
20447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448   *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451   (eval "$ac_compile") 2>conftest.er1
20452   ac_status=$?
20453   grep -v '^ *+' conftest.er1 >conftest.err
20454   rm -f conftest.er1
20455   cat conftest.err >&5
20456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457   (exit $ac_status); } && {
20458          test -z "$ac_c_werror_flag" ||
20459          test ! -s conftest.err
20460        } && test -s conftest.$ac_objext; then
20461   eval "$as_ac_Header=yes"
20462 else
20463   echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20465
20466         eval "$as_ac_Header=no"
20467 fi
20468
20469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20470 fi
20471 ac_res=`eval echo '${'$as_ac_Header'}'`
20472                { echo "$as_me:$LINENO: result: $ac_res" >&5
20473 echo "${ECHO_T}$ac_res" >&6; }
20474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20475   cat >>confdefs.h <<_ACEOF
20476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20477 _ACEOF
20478
20479 fi
20480
20481 done
20482
20483
20484 if test "$ac_cv_header_wchar_h" != "yes"; then
20485
20486 for ac_header in wcstr.h
20487 do
20488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20492   echo $ECHO_N "(cached) $ECHO_C" >&6
20493 else
20494   cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h.  */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h.  */
20500 $ac_includes_default
20501
20502 #include <$ac_header>
20503 _ACEOF
20504 rm -f conftest.$ac_objext
20505 if { (ac_try="$ac_compile"
20506 case "(($ac_try" in
20507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508   *) ac_try_echo=$ac_try;;
20509 esac
20510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511   (eval "$ac_compile") 2>conftest.er1
20512   ac_status=$?
20513   grep -v '^ *+' conftest.er1 >conftest.err
20514   rm -f conftest.er1
20515   cat conftest.err >&5
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); } && {
20518          test -z "$ac_c_werror_flag" ||
20519          test ! -s conftest.err
20520        } && test -s conftest.$ac_objext; then
20521   eval "$as_ac_Header=yes"
20522 else
20523   echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526         eval "$as_ac_Header=no"
20527 fi
20528
20529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530 fi
20531 ac_res=`eval echo '${'$as_ac_Header'}'`
20532                { echo "$as_me:$LINENO: result: $ac_res" >&5
20533 echo "${ECHO_T}$ac_res" >&6; }
20534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20535   cat >>confdefs.h <<_ACEOF
20536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20537 _ACEOF
20538
20539 fi
20540
20541 done
20542
20543 fi
20544
20545 case "${host}" in
20546   *-pc-os2_emx | *-pc-os2-emx )
20547                   if test $ac_cv_header_langinfo_h = "yes" \
20548                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20549                      -o "$wx_cv_gccversion" = "EMX3" \
20550                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20551           LIBS="$LIBS -lintl"
20552       fi
20553   ;;
20554 esac
20555
20556 if test "$USE_UNIX" = 1 ; then
20557
20558 for ac_header in sys/select.h
20559 do
20560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20564   echo $ECHO_N "(cached) $ECHO_C" >&6
20565 else
20566   cat >conftest.$ac_ext <<_ACEOF
20567 /* confdefs.h.  */
20568 _ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h.  */
20572 $ac_includes_default
20573
20574 #include <$ac_header>
20575 _ACEOF
20576 rm -f conftest.$ac_objext
20577 if { (ac_try="$ac_compile"
20578 case "(($ac_try" in
20579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580   *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583   (eval "$ac_compile") 2>conftest.er1
20584   ac_status=$?
20585   grep -v '^ *+' conftest.er1 >conftest.err
20586   rm -f conftest.er1
20587   cat conftest.err >&5
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); } && {
20590          test -z "$ac_c_werror_flag" ||
20591          test ! -s conftest.err
20592        } && test -s conftest.$ac_objext; then
20593   eval "$as_ac_Header=yes"
20594 else
20595   echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598         eval "$as_ac_Header=no"
20599 fi
20600
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602 fi
20603 ac_res=`eval echo '${'$as_ac_Header'}'`
20604                { echo "$as_me:$LINENO: result: $ac_res" >&5
20605 echo "${ECHO_T}$ac_res" >&6; }
20606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20607   cat >>confdefs.h <<_ACEOF
20608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20609 _ACEOF
20610
20611 fi
20612
20613 done
20614
20615 fi
20616
20617
20618 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20619 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20620 if test "${ac_cv_c_const+set}" = set; then
20621   echo $ECHO_N "(cached) $ECHO_C" >&6
20622 else
20623   cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h.  */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h.  */
20629
20630 int
20631 main ()
20632 {
20633 /* FIXME: Include the comments suggested by Paul. */
20634 #ifndef __cplusplus
20635   /* Ultrix mips cc rejects this.  */
20636   typedef int charset[2];
20637   const charset cs;
20638   /* SunOS 4.1.1 cc rejects this.  */
20639   char const *const *pcpcc;
20640   char **ppc;
20641   /* NEC SVR4.0.2 mips cc rejects this.  */
20642   struct point {int x, y;};
20643   static struct point const zero = {0,0};
20644   /* AIX XL C 1.02.0.0 rejects this.
20645      It does not let you subtract one const X* pointer from another in
20646      an arm of an if-expression whose if-part is not a constant
20647      expression */
20648   const char *g = "string";
20649   pcpcc = &g + (g ? g-g : 0);
20650   /* HPUX 7.0 cc rejects these. */
20651   ++pcpcc;
20652   ppc = (char**) pcpcc;
20653   pcpcc = (char const *const *) ppc;
20654   { /* SCO 3.2v4 cc rejects this.  */
20655     char *t;
20656     char const *s = 0 ? (char *) 0 : (char const *) 0;
20657
20658     *t++ = 0;
20659     if (s) return 0;
20660   }
20661   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20662     int x[] = {25, 17};
20663     const int *foo = &x[0];
20664     ++foo;
20665   }
20666   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20667     typedef const int *iptr;
20668     iptr p = 0;
20669     ++p;
20670   }
20671   { /* AIX XL C 1.02.0.0 rejects this saying
20672        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20673     struct s { int j; const int *ap[3]; };
20674     struct s *b; b->j = 5;
20675   }
20676   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20677     const int foo = 10;
20678     if (!foo) return 0;
20679   }
20680   return !cs[0] && !zero.x;
20681 #endif
20682
20683   ;
20684   return 0;
20685 }
20686 _ACEOF
20687 rm -f conftest.$ac_objext
20688 if { (ac_try="$ac_compile"
20689 case "(($ac_try" in
20690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691   *) ac_try_echo=$ac_try;;
20692 esac
20693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694   (eval "$ac_compile") 2>conftest.er1
20695   ac_status=$?
20696   grep -v '^ *+' conftest.er1 >conftest.err
20697   rm -f conftest.er1
20698   cat conftest.err >&5
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); } && {
20701          test -z "$ac_c_werror_flag" ||
20702          test ! -s conftest.err
20703        } && test -s conftest.$ac_objext; then
20704   ac_cv_c_const=yes
20705 else
20706   echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709         ac_cv_c_const=no
20710 fi
20711
20712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713 fi
20714 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20715 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20716 if test $ac_cv_c_const = no; then
20717
20718 cat >>confdefs.h <<\_ACEOF
20719 #define const
20720 _ACEOF
20721
20722 fi
20723
20724 { echo "$as_me:$LINENO: checking for inline" >&5
20725 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20726 if test "${ac_cv_c_inline+set}" = set; then
20727   echo $ECHO_N "(cached) $ECHO_C" >&6
20728 else
20729   ac_cv_c_inline=no
20730 for ac_kw in inline __inline__ __inline; do
20731   cat >conftest.$ac_ext <<_ACEOF
20732 /* confdefs.h.  */
20733 _ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h.  */
20737 #ifndef __cplusplus
20738 typedef int foo_t;
20739 static $ac_kw foo_t static_foo () {return 0; }
20740 $ac_kw foo_t foo () {return 0; }
20741 #endif
20742
20743 _ACEOF
20744 rm -f conftest.$ac_objext
20745 if { (ac_try="$ac_compile"
20746 case "(($ac_try" in
20747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748   *) ac_try_echo=$ac_try;;
20749 esac
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751   (eval "$ac_compile") 2>conftest.er1
20752   ac_status=$?
20753   grep -v '^ *+' conftest.er1 >conftest.err
20754   rm -f conftest.er1
20755   cat conftest.err >&5
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); } && {
20758          test -z "$ac_c_werror_flag" ||
20759          test ! -s conftest.err
20760        } && test -s conftest.$ac_objext; then
20761   ac_cv_c_inline=$ac_kw
20762 else
20763   echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20765
20766
20767 fi
20768
20769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20770   test "$ac_cv_c_inline" != no && break
20771 done
20772
20773 fi
20774 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20775 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20776
20777
20778 case $ac_cv_c_inline in
20779   inline | yes) ;;
20780   *)
20781     case $ac_cv_c_inline in
20782       no) ac_val=;;
20783       *) ac_val=$ac_cv_c_inline;;
20784     esac
20785     cat >>confdefs.h <<_ACEOF
20786 #ifndef __cplusplus
20787 #define inline $ac_val
20788 #endif
20789 _ACEOF
20790     ;;
20791 esac
20792
20793
20794 { echo "$as_me:$LINENO: checking for short" >&5
20795 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20796 if test "${ac_cv_type_short+set}" = set; then
20797   echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799   cat >conftest.$ac_ext <<_ACEOF
20800 /* confdefs.h.  */
20801 _ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h.  */
20805 $ac_includes_default
20806 typedef short ac__type_new_;
20807 int
20808 main ()
20809 {
20810 if ((ac__type_new_ *) 0)
20811   return 0;
20812 if (sizeof (ac__type_new_))
20813   return 0;
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_cv_type_short=yes
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840         ac_cv_type_short=no
20841 fi
20842
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20844 fi
20845 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20846 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20847
20848 # The cast to long int works around a bug in the HP C Compiler
20849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20851 # This bug is HP SR number 8606223364.
20852 { echo "$as_me:$LINENO: checking size of short" >&5
20853 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20854 if test "${ac_cv_sizeof_short+set}" = set; then
20855   echo $ECHO_N "(cached) $ECHO_C" >&6
20856 else
20857   if test "$cross_compiling" = yes; then
20858   # Depending upon the size, compute the lo and hi bounds.
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h.  */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h.  */
20865 $ac_includes_default
20866    typedef short ac__type_sizeof_;
20867 int
20868 main ()
20869 {
20870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20871 test_array [0] = 0
20872
20873   ;
20874   return 0;
20875 }
20876 _ACEOF
20877 rm -f conftest.$ac_objext
20878 if { (ac_try="$ac_compile"
20879 case "(($ac_try" in
20880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881   *) ac_try_echo=$ac_try;;
20882 esac
20883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884   (eval "$ac_compile") 2>conftest.er1
20885   ac_status=$?
20886   grep -v '^ *+' conftest.er1 >conftest.err
20887   rm -f conftest.er1
20888   cat conftest.err >&5
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); } && {
20891          test -z "$ac_c_werror_flag" ||
20892          test ! -s conftest.err
20893        } && test -s conftest.$ac_objext; then
20894   ac_lo=0 ac_mid=0
20895   while :; do
20896     cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h.  */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h.  */
20902 $ac_includes_default
20903    typedef short ac__type_sizeof_;
20904 int
20905 main ()
20906 {
20907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20908 test_array [0] = 0
20909
20910   ;
20911   return 0;
20912 }
20913 _ACEOF
20914 rm -f conftest.$ac_objext
20915 if { (ac_try="$ac_compile"
20916 case "(($ac_try" in
20917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918   *) ac_try_echo=$ac_try;;
20919 esac
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921   (eval "$ac_compile") 2>conftest.er1
20922   ac_status=$?
20923   grep -v '^ *+' conftest.er1 >conftest.err
20924   rm -f conftest.er1
20925   cat conftest.err >&5
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); } && {
20928          test -z "$ac_c_werror_flag" ||
20929          test ! -s conftest.err
20930        } && test -s conftest.$ac_objext; then
20931   ac_hi=$ac_mid; break
20932 else
20933   echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936         ac_lo=`expr $ac_mid + 1`
20937                         if test $ac_lo -le $ac_mid; then
20938                           ac_lo= ac_hi=
20939                           break
20940                         fi
20941                         ac_mid=`expr 2 '*' $ac_mid + 1`
20942 fi
20943
20944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20945   done
20946 else
20947   echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20949
20950         cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956 $ac_includes_default
20957    typedef short ac__type_sizeof_;
20958 int
20959 main ()
20960 {
20961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20962 test_array [0] = 0
20963
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972   *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975   (eval "$ac_compile") 2>conftest.er1
20976   ac_status=$?
20977   grep -v '^ *+' conftest.er1 >conftest.err
20978   rm -f conftest.er1
20979   cat conftest.err >&5
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } && {
20982          test -z "$ac_c_werror_flag" ||
20983          test ! -s conftest.err
20984        } && test -s conftest.$ac_objext; then
20985   ac_hi=-1 ac_mid=-1
20986   while :; do
20987     cat >conftest.$ac_ext <<_ACEOF
20988 /* confdefs.h.  */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h.  */
20993 $ac_includes_default
20994    typedef short ac__type_sizeof_;
20995 int
20996 main ()
20997 {
20998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20999 test_array [0] = 0
21000
21001   ;
21002   return 0;
21003 }
21004 _ACEOF
21005 rm -f conftest.$ac_objext
21006 if { (ac_try="$ac_compile"
21007 case "(($ac_try" in
21008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009   *) ac_try_echo=$ac_try;;
21010 esac
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012   (eval "$ac_compile") 2>conftest.er1
21013   ac_status=$?
21014   grep -v '^ *+' conftest.er1 >conftest.err
21015   rm -f conftest.er1
21016   cat conftest.err >&5
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); } && {
21019          test -z "$ac_c_werror_flag" ||
21020          test ! -s conftest.err
21021        } && test -s conftest.$ac_objext; then
21022   ac_lo=$ac_mid; break
21023 else
21024   echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21026
21027         ac_hi=`expr '(' $ac_mid ')' - 1`
21028                         if test $ac_mid -le $ac_hi; then
21029                           ac_lo= ac_hi=
21030                           break
21031                         fi
21032                         ac_mid=`expr 2 '*' $ac_mid`
21033 fi
21034
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036   done
21037 else
21038   echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21040
21041         ac_lo= ac_hi=
21042 fi
21043
21044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21045 fi
21046
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 # Binary search between lo and hi bounds.
21049 while test "x$ac_lo" != "x$ac_hi"; do
21050   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21051   cat >conftest.$ac_ext <<_ACEOF
21052 /* confdefs.h.  */
21053 _ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h.  */
21057 $ac_includes_default
21058    typedef short ac__type_sizeof_;
21059 int
21060 main ()
21061 {
21062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21063 test_array [0] = 0
21064
21065   ;
21066   return 0;
21067 }
21068 _ACEOF
21069 rm -f conftest.$ac_objext
21070 if { (ac_try="$ac_compile"
21071 case "(($ac_try" in
21072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073   *) ac_try_echo=$ac_try;;
21074 esac
21075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076   (eval "$ac_compile") 2>conftest.er1
21077   ac_status=$?
21078   grep -v '^ *+' conftest.er1 >conftest.err
21079   rm -f conftest.er1
21080   cat conftest.err >&5
21081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); } && {
21083          test -z "$ac_c_werror_flag" ||
21084          test ! -s conftest.err
21085        } && test -s conftest.$ac_objext; then
21086   ac_hi=$ac_mid
21087 else
21088   echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091         ac_lo=`expr '(' $ac_mid ')' + 1`
21092 fi
21093
21094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095 done
21096 case $ac_lo in
21097 ?*) ac_cv_sizeof_short=$ac_lo;;
21098 '') if test "$ac_cv_type_short" = yes; then
21099      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21100 See \`config.log' for more details." >&5
21101 echo "$as_me: error: cannot compute sizeof (short)
21102 See \`config.log' for more details." >&2;}
21103    { (exit 77); exit 77; }; }
21104    else
21105      ac_cv_sizeof_short=0
21106    fi ;;
21107 esac
21108 else
21109   cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h.  */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h.  */
21115 $ac_includes_default
21116    typedef short ac__type_sizeof_;
21117 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21118 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21119 #include <stdio.h>
21120 #include <stdlib.h>
21121 int
21122 main ()
21123 {
21124
21125   FILE *f = fopen ("conftest.val", "w");
21126   if (! f)
21127     return 1;
21128   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21129     {
21130       long int i = longval ();
21131       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21132         return 1;
21133       fprintf (f, "%ld\n", i);
21134     }
21135   else
21136     {
21137       unsigned long int i = ulongval ();
21138       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21139         return 1;
21140       fprintf (f, "%lu\n", i);
21141     }
21142   return ferror (f) || fclose (f) != 0;
21143
21144   ;
21145   return 0;
21146 }
21147 _ACEOF
21148 rm -f conftest$ac_exeext
21149 if { (ac_try="$ac_link"
21150 case "(($ac_try" in
21151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152   *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155   (eval "$ac_link") 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21159   { (case "(($ac_try" in
21160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161   *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164   (eval "$ac_try") 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); }; }; then
21168   ac_cv_sizeof_short=`cat conftest.val`
21169 else
21170   echo "$as_me: program exited with status $ac_status" >&5
21171 echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21173
21174 ( exit $ac_status )
21175 if test "$ac_cv_type_short" = yes; then
21176      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21177 See \`config.log' for more details." >&5
21178 echo "$as_me: error: cannot compute sizeof (short)
21179 See \`config.log' for more details." >&2;}
21180    { (exit 77); exit 77; }; }
21181    else
21182      ac_cv_sizeof_short=0
21183    fi
21184 fi
21185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21186 fi
21187 rm -f conftest.val
21188 fi
21189 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21190 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21191
21192
21193
21194 cat >>confdefs.h <<_ACEOF
21195 #define SIZEOF_SHORT $ac_cv_sizeof_short
21196 _ACEOF
21197
21198
21199 { echo "$as_me:$LINENO: checking for void *" >&5
21200 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21201 if test "${ac_cv_type_void_p+set}" = set; then
21202   echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204   cat >conftest.$ac_ext <<_ACEOF
21205 /* confdefs.h.  */
21206 _ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h.  */
21210 $ac_includes_default
21211 typedef void * ac__type_new_;
21212 int
21213 main ()
21214 {
21215 if ((ac__type_new_ *) 0)
21216   return 0;
21217 if (sizeof (ac__type_new_))
21218   return 0;
21219   ;
21220   return 0;
21221 }
21222 _ACEOF
21223 rm -f conftest.$ac_objext
21224 if { (ac_try="$ac_compile"
21225 case "(($ac_try" in
21226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227   *) ac_try_echo=$ac_try;;
21228 esac
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230   (eval "$ac_compile") 2>conftest.er1
21231   ac_status=$?
21232   grep -v '^ *+' conftest.er1 >conftest.err
21233   rm -f conftest.er1
21234   cat conftest.err >&5
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } && {
21237          test -z "$ac_c_werror_flag" ||
21238          test ! -s conftest.err
21239        } && test -s conftest.$ac_objext; then
21240   ac_cv_type_void_p=yes
21241 else
21242   echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21244
21245         ac_cv_type_void_p=no
21246 fi
21247
21248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21249 fi
21250 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21251 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21252
21253 # The cast to long int works around a bug in the HP C Compiler
21254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21256 # This bug is HP SR number 8606223364.
21257 { echo "$as_me:$LINENO: checking size of void *" >&5
21258 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21259 if test "${ac_cv_sizeof_void_p+set}" = set; then
21260   echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262   if test "$cross_compiling" = yes; then
21263   # Depending upon the size, compute the lo and hi bounds.
21264 cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h.  */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h.  */
21270 $ac_includes_default
21271    typedef void * ac__type_sizeof_;
21272 int
21273 main ()
21274 {
21275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21276 test_array [0] = 0
21277
21278   ;
21279   return 0;
21280 }
21281 _ACEOF
21282 rm -f conftest.$ac_objext
21283 if { (ac_try="$ac_compile"
21284 case "(($ac_try" in
21285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286   *) ac_try_echo=$ac_try;;
21287 esac
21288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289   (eval "$ac_compile") 2>conftest.er1
21290   ac_status=$?
21291   grep -v '^ *+' conftest.er1 >conftest.err
21292   rm -f conftest.er1
21293   cat conftest.err >&5
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); } && {
21296          test -z "$ac_c_werror_flag" ||
21297          test ! -s conftest.err
21298        } && test -s conftest.$ac_objext; then
21299   ac_lo=0 ac_mid=0
21300   while :; do
21301     cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h.  */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h.  */
21307 $ac_includes_default
21308    typedef void * ac__type_sizeof_;
21309 int
21310 main ()
21311 {
21312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21313 test_array [0] = 0
21314
21315   ;
21316   return 0;
21317 }
21318 _ACEOF
21319 rm -f conftest.$ac_objext
21320 if { (ac_try="$ac_compile"
21321 case "(($ac_try" in
21322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323   *) ac_try_echo=$ac_try;;
21324 esac
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326   (eval "$ac_compile") 2>conftest.er1
21327   ac_status=$?
21328   grep -v '^ *+' conftest.er1 >conftest.err
21329   rm -f conftest.er1
21330   cat conftest.err >&5
21331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332   (exit $ac_status); } && {
21333          test -z "$ac_c_werror_flag" ||
21334          test ! -s conftest.err
21335        } && test -s conftest.$ac_objext; then
21336   ac_hi=$ac_mid; break
21337 else
21338   echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21340
21341         ac_lo=`expr $ac_mid + 1`
21342                         if test $ac_lo -le $ac_mid; then
21343                           ac_lo= ac_hi=
21344                           break
21345                         fi
21346                         ac_mid=`expr 2 '*' $ac_mid + 1`
21347 fi
21348
21349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350   done
21351 else
21352   echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21354
21355         cat >conftest.$ac_ext <<_ACEOF
21356 /* confdefs.h.  */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h.  */
21361 $ac_includes_default
21362    typedef void * ac__type_sizeof_;
21363 int
21364 main ()
21365 {
21366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21367 test_array [0] = 0
21368
21369   ;
21370   return 0;
21371 }
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (ac_try="$ac_compile"
21375 case "(($ac_try" in
21376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377   *) ac_try_echo=$ac_try;;
21378 esac
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380   (eval "$ac_compile") 2>conftest.er1
21381   ac_status=$?
21382   grep -v '^ *+' conftest.er1 >conftest.err
21383   rm -f conftest.er1
21384   cat conftest.err >&5
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); } && {
21387          test -z "$ac_c_werror_flag" ||
21388          test ! -s conftest.err
21389        } && test -s conftest.$ac_objext; then
21390   ac_hi=-1 ac_mid=-1
21391   while :; do
21392     cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h.  */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h.  */
21398 $ac_includes_default
21399    typedef void * ac__type_sizeof_;
21400 int
21401 main ()
21402 {
21403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21404 test_array [0] = 0
21405
21406   ;
21407   return 0;
21408 }
21409 _ACEOF
21410 rm -f conftest.$ac_objext
21411 if { (ac_try="$ac_compile"
21412 case "(($ac_try" in
21413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414   *) ac_try_echo=$ac_try;;
21415 esac
21416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417   (eval "$ac_compile") 2>conftest.er1
21418   ac_status=$?
21419   grep -v '^ *+' conftest.er1 >conftest.err
21420   rm -f conftest.er1
21421   cat conftest.err >&5
21422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423   (exit $ac_status); } && {
21424          test -z "$ac_c_werror_flag" ||
21425          test ! -s conftest.err
21426        } && test -s conftest.$ac_objext; then
21427   ac_lo=$ac_mid; break
21428 else
21429   echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21431
21432         ac_hi=`expr '(' $ac_mid ')' - 1`
21433                         if test $ac_mid -le $ac_hi; then
21434                           ac_lo= ac_hi=
21435                           break
21436                         fi
21437                         ac_mid=`expr 2 '*' $ac_mid`
21438 fi
21439
21440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441   done
21442 else
21443   echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21445
21446         ac_lo= ac_hi=
21447 fi
21448
21449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21450 fi
21451
21452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21453 # Binary search between lo and hi bounds.
21454 while test "x$ac_lo" != "x$ac_hi"; do
21455   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21456   cat >conftest.$ac_ext <<_ACEOF
21457 /* confdefs.h.  */
21458 _ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h.  */
21462 $ac_includes_default
21463    typedef void * ac__type_sizeof_;
21464 int
21465 main ()
21466 {
21467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21468 test_array [0] = 0
21469
21470   ;
21471   return 0;
21472 }
21473 _ACEOF
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478   *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481   (eval "$ac_compile") 2>conftest.er1
21482   ac_status=$?
21483   grep -v '^ *+' conftest.er1 >conftest.err
21484   rm -f conftest.er1
21485   cat conftest.err >&5
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); } && {
21488          test -z "$ac_c_werror_flag" ||
21489          test ! -s conftest.err
21490        } && test -s conftest.$ac_objext; then
21491   ac_hi=$ac_mid
21492 else
21493   echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21495
21496         ac_lo=`expr '(' $ac_mid ')' + 1`
21497 fi
21498
21499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21500 done
21501 case $ac_lo in
21502 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21503 '') if test "$ac_cv_type_void_p" = yes; then
21504      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21505 See \`config.log' for more details." >&5
21506 echo "$as_me: error: cannot compute sizeof (void *)
21507 See \`config.log' for more details." >&2;}
21508    { (exit 77); exit 77; }; }
21509    else
21510      ac_cv_sizeof_void_p=0
21511    fi ;;
21512 esac
21513 else
21514   cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h.  */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h.  */
21520 $ac_includes_default
21521    typedef void * ac__type_sizeof_;
21522 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21523 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21524 #include <stdio.h>
21525 #include <stdlib.h>
21526 int
21527 main ()
21528 {
21529
21530   FILE *f = fopen ("conftest.val", "w");
21531   if (! f)
21532     return 1;
21533   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21534     {
21535       long int i = longval ();
21536       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21537         return 1;
21538       fprintf (f, "%ld\n", i);
21539     }
21540   else
21541     {
21542       unsigned long int i = ulongval ();
21543       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21544         return 1;
21545       fprintf (f, "%lu\n", i);
21546     }
21547   return ferror (f) || fclose (f) != 0;
21548
21549   ;
21550   return 0;
21551 }
21552 _ACEOF
21553 rm -f conftest$ac_exeext
21554 if { (ac_try="$ac_link"
21555 case "(($ac_try" in
21556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557   *) ac_try_echo=$ac_try;;
21558 esac
21559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21560   (eval "$ac_link") 2>&5
21561   ac_status=$?
21562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21564   { (case "(($ac_try" in
21565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566   *) ac_try_echo=$ac_try;;
21567 esac
21568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569   (eval "$ac_try") 2>&5
21570   ac_status=$?
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); }; }; then
21573   ac_cv_sizeof_void_p=`cat conftest.val`
21574 else
21575   echo "$as_me: program exited with status $ac_status" >&5
21576 echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21578
21579 ( exit $ac_status )
21580 if test "$ac_cv_type_void_p" = yes; then
21581      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21582 See \`config.log' for more details." >&5
21583 echo "$as_me: error: cannot compute sizeof (void *)
21584 See \`config.log' for more details." >&2;}
21585    { (exit 77); exit 77; }; }
21586    else
21587      ac_cv_sizeof_void_p=0
21588    fi
21589 fi
21590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21591 fi
21592 rm -f conftest.val
21593 fi
21594 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21595 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21596
21597
21598
21599 cat >>confdefs.h <<_ACEOF
21600 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21601 _ACEOF
21602
21603
21604 { echo "$as_me:$LINENO: checking for int" >&5
21605 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21606 if test "${ac_cv_type_int+set}" = set; then
21607   echo $ECHO_N "(cached) $ECHO_C" >&6
21608 else
21609   cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h.  */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h.  */
21615 $ac_includes_default
21616 typedef int ac__type_new_;
21617 int
21618 main ()
21619 {
21620 if ((ac__type_new_ *) 0)
21621   return 0;
21622 if (sizeof (ac__type_new_))
21623   return 0;
21624   ;
21625   return 0;
21626 }
21627 _ACEOF
21628 rm -f conftest.$ac_objext
21629 if { (ac_try="$ac_compile"
21630 case "(($ac_try" in
21631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632   *) ac_try_echo=$ac_try;;
21633 esac
21634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635   (eval "$ac_compile") 2>conftest.er1
21636   ac_status=$?
21637   grep -v '^ *+' conftest.er1 >conftest.err
21638   rm -f conftest.er1
21639   cat conftest.err >&5
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); } && {
21642          test -z "$ac_c_werror_flag" ||
21643          test ! -s conftest.err
21644        } && test -s conftest.$ac_objext; then
21645   ac_cv_type_int=yes
21646 else
21647   echo "$as_me: failed program was:" >&5
21648 sed 's/^/| /' conftest.$ac_ext >&5
21649
21650         ac_cv_type_int=no
21651 fi
21652
21653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21654 fi
21655 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21656 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21657
21658 # The cast to long int works around a bug in the HP C Compiler
21659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21661 # This bug is HP SR number 8606223364.
21662 { echo "$as_me:$LINENO: checking size of int" >&5
21663 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21664 if test "${ac_cv_sizeof_int+set}" = set; then
21665   echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667   if test "$cross_compiling" = yes; then
21668   # Depending upon the size, compute the lo and hi bounds.
21669 cat >conftest.$ac_ext <<_ACEOF
21670 /* confdefs.h.  */
21671 _ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h.  */
21675 $ac_includes_default
21676    typedef int ac__type_sizeof_;
21677 int
21678 main ()
21679 {
21680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21681 test_array [0] = 0
21682
21683   ;
21684   return 0;
21685 }
21686 _ACEOF
21687 rm -f conftest.$ac_objext
21688 if { (ac_try="$ac_compile"
21689 case "(($ac_try" in
21690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691   *) ac_try_echo=$ac_try;;
21692 esac
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694   (eval "$ac_compile") 2>conftest.er1
21695   ac_status=$?
21696   grep -v '^ *+' conftest.er1 >conftest.err
21697   rm -f conftest.er1
21698   cat conftest.err >&5
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); } && {
21701          test -z "$ac_c_werror_flag" ||
21702          test ! -s conftest.err
21703        } && test -s conftest.$ac_objext; then
21704   ac_lo=0 ac_mid=0
21705   while :; do
21706     cat >conftest.$ac_ext <<_ACEOF
21707 /* confdefs.h.  */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h.  */
21712 $ac_includes_default
21713    typedef int ac__type_sizeof_;
21714 int
21715 main ()
21716 {
21717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21718 test_array [0] = 0
21719
21720   ;
21721   return 0;
21722 }
21723 _ACEOF
21724 rm -f conftest.$ac_objext
21725 if { (ac_try="$ac_compile"
21726 case "(($ac_try" in
21727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728   *) ac_try_echo=$ac_try;;
21729 esac
21730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731   (eval "$ac_compile") 2>conftest.er1
21732   ac_status=$?
21733   grep -v '^ *+' conftest.er1 >conftest.err
21734   rm -f conftest.er1
21735   cat conftest.err >&5
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); } && {
21738          test -z "$ac_c_werror_flag" ||
21739          test ! -s conftest.err
21740        } && test -s conftest.$ac_objext; then
21741   ac_hi=$ac_mid; break
21742 else
21743   echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21745
21746         ac_lo=`expr $ac_mid + 1`
21747                         if test $ac_lo -le $ac_mid; then
21748                           ac_lo= ac_hi=
21749                           break
21750                         fi
21751                         ac_mid=`expr 2 '*' $ac_mid + 1`
21752 fi
21753
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21755   done
21756 else
21757   echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21759
21760         cat >conftest.$ac_ext <<_ACEOF
21761 /* confdefs.h.  */
21762 _ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h.  */
21766 $ac_includes_default
21767    typedef int ac__type_sizeof_;
21768 int
21769 main ()
21770 {
21771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21772 test_array [0] = 0
21773
21774   ;
21775   return 0;
21776 }
21777 _ACEOF
21778 rm -f conftest.$ac_objext
21779 if { (ac_try="$ac_compile"
21780 case "(($ac_try" in
21781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782   *) ac_try_echo=$ac_try;;
21783 esac
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785   (eval "$ac_compile") 2>conftest.er1
21786   ac_status=$?
21787   grep -v '^ *+' conftest.er1 >conftest.err
21788   rm -f conftest.er1
21789   cat conftest.err >&5
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } && {
21792          test -z "$ac_c_werror_flag" ||
21793          test ! -s conftest.err
21794        } && test -s conftest.$ac_objext; then
21795   ac_hi=-1 ac_mid=-1
21796   while :; do
21797     cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h.  */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h.  */
21803 $ac_includes_default
21804    typedef int ac__type_sizeof_;
21805 int
21806 main ()
21807 {
21808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21809 test_array [0] = 0
21810
21811   ;
21812   return 0;
21813 }
21814 _ACEOF
21815 rm -f conftest.$ac_objext
21816 if { (ac_try="$ac_compile"
21817 case "(($ac_try" in
21818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21819   *) ac_try_echo=$ac_try;;
21820 esac
21821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21822   (eval "$ac_compile") 2>conftest.er1
21823   ac_status=$?
21824   grep -v '^ *+' conftest.er1 >conftest.err
21825   rm -f conftest.er1
21826   cat conftest.err >&5
21827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828   (exit $ac_status); } && {
21829          test -z "$ac_c_werror_flag" ||
21830          test ! -s conftest.err
21831        } && test -s conftest.$ac_objext; then
21832   ac_lo=$ac_mid; break
21833 else
21834   echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21836
21837         ac_hi=`expr '(' $ac_mid ')' - 1`
21838                         if test $ac_mid -le $ac_hi; then
21839                           ac_lo= ac_hi=
21840                           break
21841                         fi
21842                         ac_mid=`expr 2 '*' $ac_mid`
21843 fi
21844
21845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21846   done
21847 else
21848   echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21850
21851         ac_lo= ac_hi=
21852 fi
21853
21854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21855 fi
21856
21857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21858 # Binary search between lo and hi bounds.
21859 while test "x$ac_lo" != "x$ac_hi"; do
21860   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21861   cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h.  */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h.  */
21867 $ac_includes_default
21868    typedef int ac__type_sizeof_;
21869 int
21870 main ()
21871 {
21872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21873 test_array [0] = 0
21874
21875   ;
21876   return 0;
21877 }
21878 _ACEOF
21879 rm -f conftest.$ac_objext
21880 if { (ac_try="$ac_compile"
21881 case "(($ac_try" in
21882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883   *) ac_try_echo=$ac_try;;
21884 esac
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886   (eval "$ac_compile") 2>conftest.er1
21887   ac_status=$?
21888   grep -v '^ *+' conftest.er1 >conftest.err
21889   rm -f conftest.er1
21890   cat conftest.err >&5
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); } && {
21893          test -z "$ac_c_werror_flag" ||
21894          test ! -s conftest.err
21895        } && test -s conftest.$ac_objext; then
21896   ac_hi=$ac_mid
21897 else
21898   echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901         ac_lo=`expr '(' $ac_mid ')' + 1`
21902 fi
21903
21904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21905 done
21906 case $ac_lo in
21907 ?*) ac_cv_sizeof_int=$ac_lo;;
21908 '') if test "$ac_cv_type_int" = yes; then
21909      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21910 See \`config.log' for more details." >&5
21911 echo "$as_me: error: cannot compute sizeof (int)
21912 See \`config.log' for more details." >&2;}
21913    { (exit 77); exit 77; }; }
21914    else
21915      ac_cv_sizeof_int=0
21916    fi ;;
21917 esac
21918 else
21919   cat >conftest.$ac_ext <<_ACEOF
21920 /* confdefs.h.  */
21921 _ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h.  */
21925 $ac_includes_default
21926    typedef int ac__type_sizeof_;
21927 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21928 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21929 #include <stdio.h>
21930 #include <stdlib.h>
21931 int
21932 main ()
21933 {
21934
21935   FILE *f = fopen ("conftest.val", "w");
21936   if (! f)
21937     return 1;
21938   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21939     {
21940       long int i = longval ();
21941       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21942         return 1;
21943       fprintf (f, "%ld\n", i);
21944     }
21945   else
21946     {
21947       unsigned long int i = ulongval ();
21948       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21949         return 1;
21950       fprintf (f, "%lu\n", i);
21951     }
21952   return ferror (f) || fclose (f) != 0;
21953
21954   ;
21955   return 0;
21956 }
21957 _ACEOF
21958 rm -f conftest$ac_exeext
21959 if { (ac_try="$ac_link"
21960 case "(($ac_try" in
21961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962   *) ac_try_echo=$ac_try;;
21963 esac
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965   (eval "$ac_link") 2>&5
21966   ac_status=$?
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21969   { (case "(($ac_try" in
21970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971   *) ac_try_echo=$ac_try;;
21972 esac
21973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21974   (eval "$ac_try") 2>&5
21975   ac_status=$?
21976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977   (exit $ac_status); }; }; then
21978   ac_cv_sizeof_int=`cat conftest.val`
21979 else
21980   echo "$as_me: program exited with status $ac_status" >&5
21981 echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21983
21984 ( exit $ac_status )
21985 if test "$ac_cv_type_int" = yes; then
21986      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21987 See \`config.log' for more details." >&5
21988 echo "$as_me: error: cannot compute sizeof (int)
21989 See \`config.log' for more details." >&2;}
21990    { (exit 77); exit 77; }; }
21991    else
21992      ac_cv_sizeof_int=0
21993    fi
21994 fi
21995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21996 fi
21997 rm -f conftest.val
21998 fi
21999 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22000 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22001
22002
22003
22004 cat >>confdefs.h <<_ACEOF
22005 #define SIZEOF_INT $ac_cv_sizeof_int
22006 _ACEOF
22007
22008
22009 { echo "$as_me:$LINENO: checking for long" >&5
22010 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22011 if test "${ac_cv_type_long+set}" = set; then
22012   echo $ECHO_N "(cached) $ECHO_C" >&6
22013 else
22014   cat >conftest.$ac_ext <<_ACEOF
22015 /* confdefs.h.  */
22016 _ACEOF
22017 cat confdefs.h >>conftest.$ac_ext
22018 cat >>conftest.$ac_ext <<_ACEOF
22019 /* end confdefs.h.  */
22020 $ac_includes_default
22021 typedef long ac__type_new_;
22022 int
22023 main ()
22024 {
22025 if ((ac__type_new_ *) 0)
22026   return 0;
22027 if (sizeof (ac__type_new_))
22028   return 0;
22029   ;
22030   return 0;
22031 }
22032 _ACEOF
22033 rm -f conftest.$ac_objext
22034 if { (ac_try="$ac_compile"
22035 case "(($ac_try" in
22036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037   *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040   (eval "$ac_compile") 2>conftest.er1
22041   ac_status=$?
22042   grep -v '^ *+' conftest.er1 >conftest.err
22043   rm -f conftest.er1
22044   cat conftest.err >&5
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); } && {
22047          test -z "$ac_c_werror_flag" ||
22048          test ! -s conftest.err
22049        } && test -s conftest.$ac_objext; then
22050   ac_cv_type_long=yes
22051 else
22052   echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22054
22055         ac_cv_type_long=no
22056 fi
22057
22058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059 fi
22060 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22061 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22062
22063 # The cast to long int works around a bug in the HP C Compiler
22064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22066 # This bug is HP SR number 8606223364.
22067 { echo "$as_me:$LINENO: checking size of long" >&5
22068 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22069 if test "${ac_cv_sizeof_long+set}" = set; then
22070   echo $ECHO_N "(cached) $ECHO_C" >&6
22071 else
22072   if test "$cross_compiling" = yes; then
22073   # Depending upon the size, compute the lo and hi bounds.
22074 cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h.  */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h.  */
22080 $ac_includes_default
22081    typedef long ac__type_sizeof_;
22082 int
22083 main ()
22084 {
22085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22086 test_array [0] = 0
22087
22088   ;
22089   return 0;
22090 }
22091 _ACEOF
22092 rm -f conftest.$ac_objext
22093 if { (ac_try="$ac_compile"
22094 case "(($ac_try" in
22095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096   *) ac_try_echo=$ac_try;;
22097 esac
22098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099   (eval "$ac_compile") 2>conftest.er1
22100   ac_status=$?
22101   grep -v '^ *+' conftest.er1 >conftest.err
22102   rm -f conftest.er1
22103   cat conftest.err >&5
22104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105   (exit $ac_status); } && {
22106          test -z "$ac_c_werror_flag" ||
22107          test ! -s conftest.err
22108        } && test -s conftest.$ac_objext; then
22109   ac_lo=0 ac_mid=0
22110   while :; do
22111     cat >conftest.$ac_ext <<_ACEOF
22112 /* confdefs.h.  */
22113 _ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h.  */
22117 $ac_includes_default
22118    typedef long ac__type_sizeof_;
22119 int
22120 main ()
22121 {
22122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22123 test_array [0] = 0
22124
22125   ;
22126   return 0;
22127 }
22128 _ACEOF
22129 rm -f conftest.$ac_objext
22130 if { (ac_try="$ac_compile"
22131 case "(($ac_try" in
22132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133   *) ac_try_echo=$ac_try;;
22134 esac
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136   (eval "$ac_compile") 2>conftest.er1
22137   ac_status=$?
22138   grep -v '^ *+' conftest.er1 >conftest.err
22139   rm -f conftest.er1
22140   cat conftest.err >&5
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); } && {
22143          test -z "$ac_c_werror_flag" ||
22144          test ! -s conftest.err
22145        } && test -s conftest.$ac_objext; then
22146   ac_hi=$ac_mid; break
22147 else
22148   echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22150
22151         ac_lo=`expr $ac_mid + 1`
22152                         if test $ac_lo -le $ac_mid; then
22153                           ac_lo= ac_hi=
22154                           break
22155                         fi
22156                         ac_mid=`expr 2 '*' $ac_mid + 1`
22157 fi
22158
22159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22160   done
22161 else
22162   echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22164
22165         cat >conftest.$ac_ext <<_ACEOF
22166 /* confdefs.h.  */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h.  */
22171 $ac_includes_default
22172    typedef long ac__type_sizeof_;
22173 int
22174 main ()
22175 {
22176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22177 test_array [0] = 0
22178
22179   ;
22180   return 0;
22181 }
22182 _ACEOF
22183 rm -f conftest.$ac_objext
22184 if { (ac_try="$ac_compile"
22185 case "(($ac_try" in
22186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22187   *) ac_try_echo=$ac_try;;
22188 esac
22189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22190   (eval "$ac_compile") 2>conftest.er1
22191   ac_status=$?
22192   grep -v '^ *+' conftest.er1 >conftest.err
22193   rm -f conftest.er1
22194   cat conftest.err >&5
22195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196   (exit $ac_status); } && {
22197          test -z "$ac_c_werror_flag" ||
22198          test ! -s conftest.err
22199        } && test -s conftest.$ac_objext; then
22200   ac_hi=-1 ac_mid=-1
22201   while :; do
22202     cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h.  */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h.  */
22208 $ac_includes_default
22209    typedef long ac__type_sizeof_;
22210 int
22211 main ()
22212 {
22213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22214 test_array [0] = 0
22215
22216   ;
22217   return 0;
22218 }
22219 _ACEOF
22220 rm -f conftest.$ac_objext
22221 if { (ac_try="$ac_compile"
22222 case "(($ac_try" in
22223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224   *) ac_try_echo=$ac_try;;
22225 esac
22226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22227   (eval "$ac_compile") 2>conftest.er1
22228   ac_status=$?
22229   grep -v '^ *+' conftest.er1 >conftest.err
22230   rm -f conftest.er1
22231   cat conftest.err >&5
22232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233   (exit $ac_status); } && {
22234          test -z "$ac_c_werror_flag" ||
22235          test ! -s conftest.err
22236        } && test -s conftest.$ac_objext; then
22237   ac_lo=$ac_mid; break
22238 else
22239   echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22241
22242         ac_hi=`expr '(' $ac_mid ')' - 1`
22243                         if test $ac_mid -le $ac_hi; then
22244                           ac_lo= ac_hi=
22245                           break
22246                         fi
22247                         ac_mid=`expr 2 '*' $ac_mid`
22248 fi
22249
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22251   done
22252 else
22253   echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22255
22256         ac_lo= ac_hi=
22257 fi
22258
22259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22260 fi
22261
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 # Binary search between lo and hi bounds.
22264 while test "x$ac_lo" != "x$ac_hi"; do
22265   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22266   cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h.  */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h.  */
22272 $ac_includes_default
22273    typedef long ac__type_sizeof_;
22274 int
22275 main ()
22276 {
22277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22278 test_array [0] = 0
22279
22280   ;
22281   return 0;
22282 }
22283 _ACEOF
22284 rm -f conftest.$ac_objext
22285 if { (ac_try="$ac_compile"
22286 case "(($ac_try" in
22287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288   *) ac_try_echo=$ac_try;;
22289 esac
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291   (eval "$ac_compile") 2>conftest.er1
22292   ac_status=$?
22293   grep -v '^ *+' conftest.er1 >conftest.err
22294   rm -f conftest.er1
22295   cat conftest.err >&5
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); } && {
22298          test -z "$ac_c_werror_flag" ||
22299          test ! -s conftest.err
22300        } && test -s conftest.$ac_objext; then
22301   ac_hi=$ac_mid
22302 else
22303   echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22305
22306         ac_lo=`expr '(' $ac_mid ')' + 1`
22307 fi
22308
22309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310 done
22311 case $ac_lo in
22312 ?*) ac_cv_sizeof_long=$ac_lo;;
22313 '') if test "$ac_cv_type_long" = yes; then
22314      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22315 See \`config.log' for more details." >&5
22316 echo "$as_me: error: cannot compute sizeof (long)
22317 See \`config.log' for more details." >&2;}
22318    { (exit 77); exit 77; }; }
22319    else
22320      ac_cv_sizeof_long=0
22321    fi ;;
22322 esac
22323 else
22324   cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h.  */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h.  */
22330 $ac_includes_default
22331    typedef long ac__type_sizeof_;
22332 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22333 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22334 #include <stdio.h>
22335 #include <stdlib.h>
22336 int
22337 main ()
22338 {
22339
22340   FILE *f = fopen ("conftest.val", "w");
22341   if (! f)
22342     return 1;
22343   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22344     {
22345       long int i = longval ();
22346       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22347         return 1;
22348       fprintf (f, "%ld\n", i);
22349     }
22350   else
22351     {
22352       unsigned long int i = ulongval ();
22353       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22354         return 1;
22355       fprintf (f, "%lu\n", i);
22356     }
22357   return ferror (f) || fclose (f) != 0;
22358
22359   ;
22360   return 0;
22361 }
22362 _ACEOF
22363 rm -f conftest$ac_exeext
22364 if { (ac_try="$ac_link"
22365 case "(($ac_try" in
22366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367   *) ac_try_echo=$ac_try;;
22368 esac
22369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370   (eval "$ac_link") 2>&5
22371   ac_status=$?
22372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22374   { (case "(($ac_try" in
22375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376   *) ac_try_echo=$ac_try;;
22377 esac
22378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22379   (eval "$ac_try") 2>&5
22380   ac_status=$?
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); }; }; then
22383   ac_cv_sizeof_long=`cat conftest.val`
22384 else
22385   echo "$as_me: program exited with status $ac_status" >&5
22386 echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22388
22389 ( exit $ac_status )
22390 if test "$ac_cv_type_long" = yes; then
22391      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22392 See \`config.log' for more details." >&5
22393 echo "$as_me: error: cannot compute sizeof (long)
22394 See \`config.log' for more details." >&2;}
22395    { (exit 77); exit 77; }; }
22396    else
22397      ac_cv_sizeof_long=0
22398    fi
22399 fi
22400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22401 fi
22402 rm -f conftest.val
22403 fi
22404 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22405 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22406
22407
22408
22409 cat >>confdefs.h <<_ACEOF
22410 #define SIZEOF_LONG $ac_cv_sizeof_long
22411 _ACEOF
22412
22413
22414 { echo "$as_me:$LINENO: checking for size_t" >&5
22415 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22416 if test "${ac_cv_type_size_t+set}" = set; then
22417   echo $ECHO_N "(cached) $ECHO_C" >&6
22418 else
22419   cat >conftest.$ac_ext <<_ACEOF
22420 /* confdefs.h.  */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h.  */
22425 $ac_includes_default
22426 typedef size_t ac__type_new_;
22427 int
22428 main ()
22429 {
22430 if ((ac__type_new_ *) 0)
22431   return 0;
22432 if (sizeof (ac__type_new_))
22433   return 0;
22434   ;
22435   return 0;
22436 }
22437 _ACEOF
22438 rm -f conftest.$ac_objext
22439 if { (ac_try="$ac_compile"
22440 case "(($ac_try" in
22441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22442   *) ac_try_echo=$ac_try;;
22443 esac
22444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22445   (eval "$ac_compile") 2>conftest.er1
22446   ac_status=$?
22447   grep -v '^ *+' conftest.er1 >conftest.err
22448   rm -f conftest.er1
22449   cat conftest.err >&5
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); } && {
22452          test -z "$ac_c_werror_flag" ||
22453          test ! -s conftest.err
22454        } && test -s conftest.$ac_objext; then
22455   ac_cv_type_size_t=yes
22456 else
22457   echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22459
22460         ac_cv_type_size_t=no
22461 fi
22462
22463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22464 fi
22465 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22466 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22467
22468 # The cast to long int works around a bug in the HP C Compiler
22469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22471 # This bug is HP SR number 8606223364.
22472 { echo "$as_me:$LINENO: checking size of size_t" >&5
22473 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22474 if test "${ac_cv_sizeof_size_t+set}" = set; then
22475   echo $ECHO_N "(cached) $ECHO_C" >&6
22476 else
22477   if test "$cross_compiling" = yes; then
22478   # Depending upon the size, compute the lo and hi bounds.
22479 cat >conftest.$ac_ext <<_ACEOF
22480 /* confdefs.h.  */
22481 _ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h.  */
22485 $ac_includes_default
22486    typedef size_t ac__type_sizeof_;
22487 int
22488 main ()
22489 {
22490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22491 test_array [0] = 0
22492
22493   ;
22494   return 0;
22495 }
22496 _ACEOF
22497 rm -f conftest.$ac_objext
22498 if { (ac_try="$ac_compile"
22499 case "(($ac_try" in
22500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501   *) ac_try_echo=$ac_try;;
22502 esac
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504   (eval "$ac_compile") 2>conftest.er1
22505   ac_status=$?
22506   grep -v '^ *+' conftest.er1 >conftest.err
22507   rm -f conftest.er1
22508   cat conftest.err >&5
22509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510   (exit $ac_status); } && {
22511          test -z "$ac_c_werror_flag" ||
22512          test ! -s conftest.err
22513        } && test -s conftest.$ac_objext; then
22514   ac_lo=0 ac_mid=0
22515   while :; do
22516     cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h.  */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h.  */
22522 $ac_includes_default
22523    typedef size_t ac__type_sizeof_;
22524 int
22525 main ()
22526 {
22527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22528 test_array [0] = 0
22529
22530   ;
22531   return 0;
22532 }
22533 _ACEOF
22534 rm -f conftest.$ac_objext
22535 if { (ac_try="$ac_compile"
22536 case "(($ac_try" in
22537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538   *) ac_try_echo=$ac_try;;
22539 esac
22540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541   (eval "$ac_compile") 2>conftest.er1
22542   ac_status=$?
22543   grep -v '^ *+' conftest.er1 >conftest.err
22544   rm -f conftest.er1
22545   cat conftest.err >&5
22546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547   (exit $ac_status); } && {
22548          test -z "$ac_c_werror_flag" ||
22549          test ! -s conftest.err
22550        } && test -s conftest.$ac_objext; then
22551   ac_hi=$ac_mid; break
22552 else
22553   echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22555
22556         ac_lo=`expr $ac_mid + 1`
22557                         if test $ac_lo -le $ac_mid; then
22558                           ac_lo= ac_hi=
22559                           break
22560                         fi
22561                         ac_mid=`expr 2 '*' $ac_mid + 1`
22562 fi
22563
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565   done
22566 else
22567   echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570         cat >conftest.$ac_ext <<_ACEOF
22571 /* confdefs.h.  */
22572 _ACEOF
22573 cat confdefs.h >>conftest.$ac_ext
22574 cat >>conftest.$ac_ext <<_ACEOF
22575 /* end confdefs.h.  */
22576 $ac_includes_default
22577    typedef size_t ac__type_sizeof_;
22578 int
22579 main ()
22580 {
22581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22582 test_array [0] = 0
22583
22584   ;
22585   return 0;
22586 }
22587 _ACEOF
22588 rm -f conftest.$ac_objext
22589 if { (ac_try="$ac_compile"
22590 case "(($ac_try" in
22591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592   *) ac_try_echo=$ac_try;;
22593 esac
22594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22595   (eval "$ac_compile") 2>conftest.er1
22596   ac_status=$?
22597   grep -v '^ *+' conftest.er1 >conftest.err
22598   rm -f conftest.er1
22599   cat conftest.err >&5
22600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601   (exit $ac_status); } && {
22602          test -z "$ac_c_werror_flag" ||
22603          test ! -s conftest.err
22604        } && test -s conftest.$ac_objext; then
22605   ac_hi=-1 ac_mid=-1
22606   while :; do
22607     cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h.  */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h.  */
22613 $ac_includes_default
22614    typedef size_t ac__type_sizeof_;
22615 int
22616 main ()
22617 {
22618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22619 test_array [0] = 0
22620
22621   ;
22622   return 0;
22623 }
22624 _ACEOF
22625 rm -f conftest.$ac_objext
22626 if { (ac_try="$ac_compile"
22627 case "(($ac_try" in
22628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629   *) ac_try_echo=$ac_try;;
22630 esac
22631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632   (eval "$ac_compile") 2>conftest.er1
22633   ac_status=$?
22634   grep -v '^ *+' conftest.er1 >conftest.err
22635   rm -f conftest.er1
22636   cat conftest.err >&5
22637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638   (exit $ac_status); } && {
22639          test -z "$ac_c_werror_flag" ||
22640          test ! -s conftest.err
22641        } && test -s conftest.$ac_objext; then
22642   ac_lo=$ac_mid; break
22643 else
22644   echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.$ac_ext >&5
22646
22647         ac_hi=`expr '(' $ac_mid ')' - 1`
22648                         if test $ac_mid -le $ac_hi; then
22649                           ac_lo= ac_hi=
22650                           break
22651                         fi
22652                         ac_mid=`expr 2 '*' $ac_mid`
22653 fi
22654
22655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22656   done
22657 else
22658   echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22660
22661         ac_lo= ac_hi=
22662 fi
22663
22664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22665 fi
22666
22667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22668 # Binary search between lo and hi bounds.
22669 while test "x$ac_lo" != "x$ac_hi"; do
22670   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22671   cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h.  */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h.  */
22677 $ac_includes_default
22678    typedef size_t ac__type_sizeof_;
22679 int
22680 main ()
22681 {
22682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22683 test_array [0] = 0
22684
22685   ;
22686   return 0;
22687 }
22688 _ACEOF
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693   *) ac_try_echo=$ac_try;;
22694 esac
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696   (eval "$ac_compile") 2>conftest.er1
22697   ac_status=$?
22698   grep -v '^ *+' conftest.er1 >conftest.err
22699   rm -f conftest.er1
22700   cat conftest.err >&5
22701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702   (exit $ac_status); } && {
22703          test -z "$ac_c_werror_flag" ||
22704          test ! -s conftest.err
22705        } && test -s conftest.$ac_objext; then
22706   ac_hi=$ac_mid
22707 else
22708   echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22710
22711         ac_lo=`expr '(' $ac_mid ')' + 1`
22712 fi
22713
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715 done
22716 case $ac_lo in
22717 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22718 '') if test "$ac_cv_type_size_t" = yes; then
22719      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22720 See \`config.log' for more details." >&5
22721 echo "$as_me: error: cannot compute sizeof (size_t)
22722 See \`config.log' for more details." >&2;}
22723    { (exit 77); exit 77; }; }
22724    else
22725      ac_cv_sizeof_size_t=0
22726    fi ;;
22727 esac
22728 else
22729   cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h.  */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h.  */
22735 $ac_includes_default
22736    typedef size_t ac__type_sizeof_;
22737 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22738 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22739 #include <stdio.h>
22740 #include <stdlib.h>
22741 int
22742 main ()
22743 {
22744
22745   FILE *f = fopen ("conftest.val", "w");
22746   if (! f)
22747     return 1;
22748   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22749     {
22750       long int i = longval ();
22751       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22752         return 1;
22753       fprintf (f, "%ld\n", i);
22754     }
22755   else
22756     {
22757       unsigned long int i = ulongval ();
22758       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22759         return 1;
22760       fprintf (f, "%lu\n", i);
22761     }
22762   return ferror (f) || fclose (f) != 0;
22763
22764   ;
22765   return 0;
22766 }
22767 _ACEOF
22768 rm -f conftest$ac_exeext
22769 if { (ac_try="$ac_link"
22770 case "(($ac_try" in
22771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772   *) ac_try_echo=$ac_try;;
22773 esac
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775   (eval "$ac_link") 2>&5
22776   ac_status=$?
22777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22779   { (case "(($ac_try" in
22780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781   *) ac_try_echo=$ac_try;;
22782 esac
22783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784   (eval "$ac_try") 2>&5
22785   ac_status=$?
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); }; }; then
22788   ac_cv_sizeof_size_t=`cat conftest.val`
22789 else
22790   echo "$as_me: program exited with status $ac_status" >&5
22791 echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22793
22794 ( exit $ac_status )
22795 if test "$ac_cv_type_size_t" = yes; then
22796      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22797 See \`config.log' for more details." >&5
22798 echo "$as_me: error: cannot compute sizeof (size_t)
22799 See \`config.log' for more details." >&2;}
22800    { (exit 77); exit 77; }; }
22801    else
22802      ac_cv_sizeof_size_t=0
22803    fi
22804 fi
22805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22806 fi
22807 rm -f conftest.val
22808 fi
22809 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22810 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22811
22812
22813
22814 cat >>confdefs.h <<_ACEOF
22815 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22816 _ACEOF
22817
22818
22819
22820 case "${host}" in
22821     arm-*-linux* )
22822         { echo "$as_me:$LINENO: checking for long long" >&5
22823 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22824 if test "${ac_cv_type_long_long+set}" = set; then
22825   echo $ECHO_N "(cached) $ECHO_C" >&6
22826 else
22827   cat >conftest.$ac_ext <<_ACEOF
22828 /* confdefs.h.  */
22829 _ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h.  */
22833 $ac_includes_default
22834 typedef long long ac__type_new_;
22835 int
22836 main ()
22837 {
22838 if ((ac__type_new_ *) 0)
22839   return 0;
22840 if (sizeof (ac__type_new_))
22841   return 0;
22842   ;
22843   return 0;
22844 }
22845 _ACEOF
22846 rm -f conftest.$ac_objext
22847 if { (ac_try="$ac_compile"
22848 case "(($ac_try" in
22849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850   *) ac_try_echo=$ac_try;;
22851 esac
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853   (eval "$ac_compile") 2>conftest.er1
22854   ac_status=$?
22855   grep -v '^ *+' conftest.er1 >conftest.err
22856   rm -f conftest.er1
22857   cat conftest.err >&5
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); } && {
22860          test -z "$ac_c_werror_flag" ||
22861          test ! -s conftest.err
22862        } && test -s conftest.$ac_objext; then
22863   ac_cv_type_long_long=yes
22864 else
22865   echo "$as_me: failed program was:" >&5
22866 sed 's/^/| /' conftest.$ac_ext >&5
22867
22868         ac_cv_type_long_long=no
22869 fi
22870
22871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872 fi
22873 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22874 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22875
22876 # The cast to long int works around a bug in the HP C Compiler
22877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22879 # This bug is HP SR number 8606223364.
22880 { echo "$as_me:$LINENO: checking size of long long" >&5
22881 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22882 if test "${ac_cv_sizeof_long_long+set}" = set; then
22883   echo $ECHO_N "(cached) $ECHO_C" >&6
22884 else
22885   if test "$cross_compiling" = yes; then
22886   # Depending upon the size, compute the lo and hi bounds.
22887 cat >conftest.$ac_ext <<_ACEOF
22888 /* confdefs.h.  */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h.  */
22893 $ac_includes_default
22894    typedef long long ac__type_sizeof_;
22895 int
22896 main ()
22897 {
22898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22899 test_array [0] = 0
22900
22901   ;
22902   return 0;
22903 }
22904 _ACEOF
22905 rm -f conftest.$ac_objext
22906 if { (ac_try="$ac_compile"
22907 case "(($ac_try" in
22908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909   *) ac_try_echo=$ac_try;;
22910 esac
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912   (eval "$ac_compile") 2>conftest.er1
22913   ac_status=$?
22914   grep -v '^ *+' conftest.er1 >conftest.err
22915   rm -f conftest.er1
22916   cat conftest.err >&5
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); } && {
22919          test -z "$ac_c_werror_flag" ||
22920          test ! -s conftest.err
22921        } && test -s conftest.$ac_objext; then
22922   ac_lo=0 ac_mid=0
22923   while :; do
22924     cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h.  */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h.  */
22930 $ac_includes_default
22931    typedef long long ac__type_sizeof_;
22932 int
22933 main ()
22934 {
22935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22936 test_array [0] = 0
22937
22938   ;
22939   return 0;
22940 }
22941 _ACEOF
22942 rm -f conftest.$ac_objext
22943 if { (ac_try="$ac_compile"
22944 case "(($ac_try" in
22945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946   *) ac_try_echo=$ac_try;;
22947 esac
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949   (eval "$ac_compile") 2>conftest.er1
22950   ac_status=$?
22951   grep -v '^ *+' conftest.er1 >conftest.err
22952   rm -f conftest.er1
22953   cat conftest.err >&5
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); } && {
22956          test -z "$ac_c_werror_flag" ||
22957          test ! -s conftest.err
22958        } && test -s conftest.$ac_objext; then
22959   ac_hi=$ac_mid; break
22960 else
22961   echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22963
22964         ac_lo=`expr $ac_mid + 1`
22965                         if test $ac_lo -le $ac_mid; then
22966                           ac_lo= ac_hi=
22967                           break
22968                         fi
22969                         ac_mid=`expr 2 '*' $ac_mid + 1`
22970 fi
22971
22972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22973   done
22974 else
22975   echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22977
22978         cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 $ac_includes_default
22985    typedef long long ac__type_sizeof_;
22986 int
22987 main ()
22988 {
22989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22990 test_array [0] = 0
22991
22992   ;
22993   return 0;
22994 }
22995 _ACEOF
22996 rm -f conftest.$ac_objext
22997 if { (ac_try="$ac_compile"
22998 case "(($ac_try" in
22999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000   *) ac_try_echo=$ac_try;;
23001 esac
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003   (eval "$ac_compile") 2>conftest.er1
23004   ac_status=$?
23005   grep -v '^ *+' conftest.er1 >conftest.err
23006   rm -f conftest.er1
23007   cat conftest.err >&5
23008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009   (exit $ac_status); } && {
23010          test -z "$ac_c_werror_flag" ||
23011          test ! -s conftest.err
23012        } && test -s conftest.$ac_objext; then
23013   ac_hi=-1 ac_mid=-1
23014   while :; do
23015     cat >conftest.$ac_ext <<_ACEOF
23016 /* confdefs.h.  */
23017 _ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h.  */
23021 $ac_includes_default
23022    typedef long long ac__type_sizeof_;
23023 int
23024 main ()
23025 {
23026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23027 test_array [0] = 0
23028
23029   ;
23030   return 0;
23031 }
23032 _ACEOF
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037   *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040   (eval "$ac_compile") 2>conftest.er1
23041   ac_status=$?
23042   grep -v '^ *+' conftest.er1 >conftest.err
23043   rm -f conftest.er1
23044   cat conftest.err >&5
23045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046   (exit $ac_status); } && {
23047          test -z "$ac_c_werror_flag" ||
23048          test ! -s conftest.err
23049        } && test -s conftest.$ac_objext; then
23050   ac_lo=$ac_mid; break
23051 else
23052   echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23054
23055         ac_hi=`expr '(' $ac_mid ')' - 1`
23056                         if test $ac_mid -le $ac_hi; then
23057                           ac_lo= ac_hi=
23058                           break
23059                         fi
23060                         ac_mid=`expr 2 '*' $ac_mid`
23061 fi
23062
23063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23064   done
23065 else
23066   echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069         ac_lo= ac_hi=
23070 fi
23071
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23073 fi
23074
23075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23076 # Binary search between lo and hi bounds.
23077 while test "x$ac_lo" != "x$ac_hi"; do
23078   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23079   cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h.  */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h.  */
23085 $ac_includes_default
23086    typedef long long ac__type_sizeof_;
23087 int
23088 main ()
23089 {
23090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23091 test_array [0] = 0
23092
23093   ;
23094   return 0;
23095 }
23096 _ACEOF
23097 rm -f conftest.$ac_objext
23098 if { (ac_try="$ac_compile"
23099 case "(($ac_try" in
23100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23101   *) ac_try_echo=$ac_try;;
23102 esac
23103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23104   (eval "$ac_compile") 2>conftest.er1
23105   ac_status=$?
23106   grep -v '^ *+' conftest.er1 >conftest.err
23107   rm -f conftest.er1
23108   cat conftest.err >&5
23109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110   (exit $ac_status); } && {
23111          test -z "$ac_c_werror_flag" ||
23112          test ! -s conftest.err
23113        } && test -s conftest.$ac_objext; then
23114   ac_hi=$ac_mid
23115 else
23116   echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23118
23119         ac_lo=`expr '(' $ac_mid ')' + 1`
23120 fi
23121
23122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23123 done
23124 case $ac_lo in
23125 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23126 '') if test "$ac_cv_type_long_long" = yes; then
23127      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23128 See \`config.log' for more details." >&5
23129 echo "$as_me: error: cannot compute sizeof (long long)
23130 See \`config.log' for more details." >&2;}
23131    { (exit 77); exit 77; }; }
23132    else
23133      ac_cv_sizeof_long_long=0
23134    fi ;;
23135 esac
23136 else
23137   cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h.  */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h.  */
23143 $ac_includes_default
23144    typedef long long ac__type_sizeof_;
23145 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23146 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23147 #include <stdio.h>
23148 #include <stdlib.h>
23149 int
23150 main ()
23151 {
23152
23153   FILE *f = fopen ("conftest.val", "w");
23154   if (! f)
23155     return 1;
23156   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23157     {
23158       long int i = longval ();
23159       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23160         return 1;
23161       fprintf (f, "%ld\n", i);
23162     }
23163   else
23164     {
23165       unsigned long int i = ulongval ();
23166       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23167         return 1;
23168       fprintf (f, "%lu\n", i);
23169     }
23170   return ferror (f) || fclose (f) != 0;
23171
23172   ;
23173   return 0;
23174 }
23175 _ACEOF
23176 rm -f conftest$ac_exeext
23177 if { (ac_try="$ac_link"
23178 case "(($ac_try" in
23179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180   *) ac_try_echo=$ac_try;;
23181 esac
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183   (eval "$ac_link") 2>&5
23184   ac_status=$?
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23187   { (case "(($ac_try" in
23188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189   *) ac_try_echo=$ac_try;;
23190 esac
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192   (eval "$ac_try") 2>&5
23193   ac_status=$?
23194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195   (exit $ac_status); }; }; then
23196   ac_cv_sizeof_long_long=`cat conftest.val`
23197 else
23198   echo "$as_me: program exited with status $ac_status" >&5
23199 echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23201
23202 ( exit $ac_status )
23203 if test "$ac_cv_type_long_long" = yes; then
23204      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23205 See \`config.log' for more details." >&5
23206 echo "$as_me: error: cannot compute sizeof (long long)
23207 See \`config.log' for more details." >&2;}
23208    { (exit 77); exit 77; }; }
23209    else
23210      ac_cv_sizeof_long_long=0
23211    fi
23212 fi
23213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23214 fi
23215 rm -f conftest.val
23216 fi
23217 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23218 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23219
23220
23221
23222 cat >>confdefs.h <<_ACEOF
23223 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23224 _ACEOF
23225
23226
23227     ;;
23228     *-hp-hpux* )
23229         { echo "$as_me:$LINENO: checking for long long" >&5
23230 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23231 if test "${ac_cv_type_long_long+set}" = set; then
23232   echo $ECHO_N "(cached) $ECHO_C" >&6
23233 else
23234   cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h.  */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h.  */
23240 $ac_includes_default
23241 typedef long long ac__type_new_;
23242 int
23243 main ()
23244 {
23245 if ((ac__type_new_ *) 0)
23246   return 0;
23247 if (sizeof (ac__type_new_))
23248   return 0;
23249   ;
23250   return 0;
23251 }
23252 _ACEOF
23253 rm -f conftest.$ac_objext
23254 if { (ac_try="$ac_compile"
23255 case "(($ac_try" in
23256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23257   *) ac_try_echo=$ac_try;;
23258 esac
23259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23260   (eval "$ac_compile") 2>conftest.er1
23261   ac_status=$?
23262   grep -v '^ *+' conftest.er1 >conftest.err
23263   rm -f conftest.er1
23264   cat conftest.err >&5
23265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266   (exit $ac_status); } && {
23267          test -z "$ac_c_werror_flag" ||
23268          test ! -s conftest.err
23269        } && test -s conftest.$ac_objext; then
23270   ac_cv_type_long_long=yes
23271 else
23272   echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23274
23275         ac_cv_type_long_long=no
23276 fi
23277
23278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23279 fi
23280 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23281 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23282
23283 # The cast to long int works around a bug in the HP C Compiler
23284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23286 # This bug is HP SR number 8606223364.
23287 { echo "$as_me:$LINENO: checking size of long long" >&5
23288 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23289 if test "${ac_cv_sizeof_long_long+set}" = set; then
23290   echo $ECHO_N "(cached) $ECHO_C" >&6
23291 else
23292   if test "$cross_compiling" = yes; then
23293   # Depending upon the size, compute the lo and hi bounds.
23294 cat >conftest.$ac_ext <<_ACEOF
23295 /* confdefs.h.  */
23296 _ACEOF
23297 cat confdefs.h >>conftest.$ac_ext
23298 cat >>conftest.$ac_ext <<_ACEOF
23299 /* end confdefs.h.  */
23300 $ac_includes_default
23301    typedef long long ac__type_sizeof_;
23302 int
23303 main ()
23304 {
23305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23306 test_array [0] = 0
23307
23308   ;
23309   return 0;
23310 }
23311 _ACEOF
23312 rm -f conftest.$ac_objext
23313 if { (ac_try="$ac_compile"
23314 case "(($ac_try" in
23315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316   *) ac_try_echo=$ac_try;;
23317 esac
23318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23319   (eval "$ac_compile") 2>conftest.er1
23320   ac_status=$?
23321   grep -v '^ *+' conftest.er1 >conftest.err
23322   rm -f conftest.er1
23323   cat conftest.err >&5
23324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325   (exit $ac_status); } && {
23326          test -z "$ac_c_werror_flag" ||
23327          test ! -s conftest.err
23328        } && test -s conftest.$ac_objext; then
23329   ac_lo=0 ac_mid=0
23330   while :; do
23331     cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h.  */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h.  */
23337 $ac_includes_default
23338    typedef long long ac__type_sizeof_;
23339 int
23340 main ()
23341 {
23342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23343 test_array [0] = 0
23344
23345   ;
23346   return 0;
23347 }
23348 _ACEOF
23349 rm -f conftest.$ac_objext
23350 if { (ac_try="$ac_compile"
23351 case "(($ac_try" in
23352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353   *) ac_try_echo=$ac_try;;
23354 esac
23355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23356   (eval "$ac_compile") 2>conftest.er1
23357   ac_status=$?
23358   grep -v '^ *+' conftest.er1 >conftest.err
23359   rm -f conftest.er1
23360   cat conftest.err >&5
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); } && {
23363          test -z "$ac_c_werror_flag" ||
23364          test ! -s conftest.err
23365        } && test -s conftest.$ac_objext; then
23366   ac_hi=$ac_mid; break
23367 else
23368   echo "$as_me: failed program was:" >&5
23369 sed 's/^/| /' conftest.$ac_ext >&5
23370
23371         ac_lo=`expr $ac_mid + 1`
23372                         if test $ac_lo -le $ac_mid; then
23373                           ac_lo= ac_hi=
23374                           break
23375                         fi
23376                         ac_mid=`expr 2 '*' $ac_mid + 1`
23377 fi
23378
23379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23380   done
23381 else
23382   echo "$as_me: failed program was:" >&5
23383 sed 's/^/| /' conftest.$ac_ext >&5
23384
23385         cat >conftest.$ac_ext <<_ACEOF
23386 /* confdefs.h.  */
23387 _ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h.  */
23391 $ac_includes_default
23392    typedef long long ac__type_sizeof_;
23393 int
23394 main ()
23395 {
23396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23397 test_array [0] = 0
23398
23399   ;
23400   return 0;
23401 }
23402 _ACEOF
23403 rm -f conftest.$ac_objext
23404 if { (ac_try="$ac_compile"
23405 case "(($ac_try" in
23406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407   *) ac_try_echo=$ac_try;;
23408 esac
23409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410   (eval "$ac_compile") 2>conftest.er1
23411   ac_status=$?
23412   grep -v '^ *+' conftest.er1 >conftest.err
23413   rm -f conftest.er1
23414   cat conftest.err >&5
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); } && {
23417          test -z "$ac_c_werror_flag" ||
23418          test ! -s conftest.err
23419        } && test -s conftest.$ac_objext; then
23420   ac_hi=-1 ac_mid=-1
23421   while :; do
23422     cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h.  */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h.  */
23428 $ac_includes_default
23429    typedef long long ac__type_sizeof_;
23430 int
23431 main ()
23432 {
23433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23434 test_array [0] = 0
23435
23436   ;
23437   return 0;
23438 }
23439 _ACEOF
23440 rm -f conftest.$ac_objext
23441 if { (ac_try="$ac_compile"
23442 case "(($ac_try" in
23443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444   *) ac_try_echo=$ac_try;;
23445 esac
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447   (eval "$ac_compile") 2>conftest.er1
23448   ac_status=$?
23449   grep -v '^ *+' conftest.er1 >conftest.err
23450   rm -f conftest.er1
23451   cat conftest.err >&5
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); } && {
23454          test -z "$ac_c_werror_flag" ||
23455          test ! -s conftest.err
23456        } && test -s conftest.$ac_objext; then
23457   ac_lo=$ac_mid; break
23458 else
23459   echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23461
23462         ac_hi=`expr '(' $ac_mid ')' - 1`
23463                         if test $ac_mid -le $ac_hi; then
23464                           ac_lo= ac_hi=
23465                           break
23466                         fi
23467                         ac_mid=`expr 2 '*' $ac_mid`
23468 fi
23469
23470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23471   done
23472 else
23473   echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476         ac_lo= ac_hi=
23477 fi
23478
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480 fi
23481
23482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483 # Binary search between lo and hi bounds.
23484 while test "x$ac_lo" != "x$ac_hi"; do
23485   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23486   cat >conftest.$ac_ext <<_ACEOF
23487 /* confdefs.h.  */
23488 _ACEOF
23489 cat confdefs.h >>conftest.$ac_ext
23490 cat >>conftest.$ac_ext <<_ACEOF
23491 /* end confdefs.h.  */
23492 $ac_includes_default
23493    typedef long long ac__type_sizeof_;
23494 int
23495 main ()
23496 {
23497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23498 test_array [0] = 0
23499
23500   ;
23501   return 0;
23502 }
23503 _ACEOF
23504 rm -f conftest.$ac_objext
23505 if { (ac_try="$ac_compile"
23506 case "(($ac_try" in
23507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508   *) ac_try_echo=$ac_try;;
23509 esac
23510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511   (eval "$ac_compile") 2>conftest.er1
23512   ac_status=$?
23513   grep -v '^ *+' conftest.er1 >conftest.err
23514   rm -f conftest.er1
23515   cat conftest.err >&5
23516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517   (exit $ac_status); } && {
23518          test -z "$ac_c_werror_flag" ||
23519          test ! -s conftest.err
23520        } && test -s conftest.$ac_objext; then
23521   ac_hi=$ac_mid
23522 else
23523   echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23525
23526         ac_lo=`expr '(' $ac_mid ')' + 1`
23527 fi
23528
23529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23530 done
23531 case $ac_lo in
23532 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23533 '') if test "$ac_cv_type_long_long" = yes; then
23534      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23535 See \`config.log' for more details." >&5
23536 echo "$as_me: error: cannot compute sizeof (long long)
23537 See \`config.log' for more details." >&2;}
23538    { (exit 77); exit 77; }; }
23539    else
23540      ac_cv_sizeof_long_long=0
23541    fi ;;
23542 esac
23543 else
23544   cat >conftest.$ac_ext <<_ACEOF
23545 /* confdefs.h.  */
23546 _ACEOF
23547 cat confdefs.h >>conftest.$ac_ext
23548 cat >>conftest.$ac_ext <<_ACEOF
23549 /* end confdefs.h.  */
23550 $ac_includes_default
23551    typedef long long ac__type_sizeof_;
23552 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23553 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23554 #include <stdio.h>
23555 #include <stdlib.h>
23556 int
23557 main ()
23558 {
23559
23560   FILE *f = fopen ("conftest.val", "w");
23561   if (! f)
23562     return 1;
23563   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23564     {
23565       long int i = longval ();
23566       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23567         return 1;
23568       fprintf (f, "%ld\n", i);
23569     }
23570   else
23571     {
23572       unsigned long int i = ulongval ();
23573       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23574         return 1;
23575       fprintf (f, "%lu\n", i);
23576     }
23577   return ferror (f) || fclose (f) != 0;
23578
23579   ;
23580   return 0;
23581 }
23582 _ACEOF
23583 rm -f conftest$ac_exeext
23584 if { (ac_try="$ac_link"
23585 case "(($ac_try" in
23586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587   *) ac_try_echo=$ac_try;;
23588 esac
23589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590   (eval "$ac_link") 2>&5
23591   ac_status=$?
23592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23594   { (case "(($ac_try" in
23595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596   *) ac_try_echo=$ac_try;;
23597 esac
23598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23599   (eval "$ac_try") 2>&5
23600   ac_status=$?
23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602   (exit $ac_status); }; }; then
23603   ac_cv_sizeof_long_long=`cat conftest.val`
23604 else
23605   echo "$as_me: program exited with status $ac_status" >&5
23606 echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23608
23609 ( exit $ac_status )
23610 if test "$ac_cv_type_long_long" = yes; then
23611      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23612 See \`config.log' for more details." >&5
23613 echo "$as_me: error: cannot compute sizeof (long long)
23614 See \`config.log' for more details." >&2;}
23615    { (exit 77); exit 77; }; }
23616    else
23617      ac_cv_sizeof_long_long=0
23618    fi
23619 fi
23620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23621 fi
23622 rm -f conftest.val
23623 fi
23624 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23625 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23626
23627
23628
23629 cat >>confdefs.h <<_ACEOF
23630 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23631 _ACEOF
23632
23633
23634         if test "$ac_cv_sizeof_long_long" != 0; then
23635                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23636         fi
23637     ;;
23638     * )
23639         { echo "$as_me:$LINENO: checking for long long" >&5
23640 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23641 if test "${ac_cv_type_long_long+set}" = set; then
23642   echo $ECHO_N "(cached) $ECHO_C" >&6
23643 else
23644   cat >conftest.$ac_ext <<_ACEOF
23645 /* confdefs.h.  */
23646 _ACEOF
23647 cat confdefs.h >>conftest.$ac_ext
23648 cat >>conftest.$ac_ext <<_ACEOF
23649 /* end confdefs.h.  */
23650 $ac_includes_default
23651 typedef long long ac__type_new_;
23652 int
23653 main ()
23654 {
23655 if ((ac__type_new_ *) 0)
23656   return 0;
23657 if (sizeof (ac__type_new_))
23658   return 0;
23659   ;
23660   return 0;
23661 }
23662 _ACEOF
23663 rm -f conftest.$ac_objext
23664 if { (ac_try="$ac_compile"
23665 case "(($ac_try" in
23666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667   *) ac_try_echo=$ac_try;;
23668 esac
23669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23670   (eval "$ac_compile") 2>conftest.er1
23671   ac_status=$?
23672   grep -v '^ *+' conftest.er1 >conftest.err
23673   rm -f conftest.er1
23674   cat conftest.err >&5
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); } && {
23677          test -z "$ac_c_werror_flag" ||
23678          test ! -s conftest.err
23679        } && test -s conftest.$ac_objext; then
23680   ac_cv_type_long_long=yes
23681 else
23682   echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23684
23685         ac_cv_type_long_long=no
23686 fi
23687
23688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23689 fi
23690 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23691 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23692
23693 # The cast to long int works around a bug in the HP C Compiler
23694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23696 # This bug is HP SR number 8606223364.
23697 { echo "$as_me:$LINENO: checking size of long long" >&5
23698 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23699 if test "${ac_cv_sizeof_long_long+set}" = set; then
23700   echo $ECHO_N "(cached) $ECHO_C" >&6
23701 else
23702   if test "$cross_compiling" = yes; then
23703   # Depending upon the size, compute the lo and hi bounds.
23704 cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h.  */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h.  */
23710 $ac_includes_default
23711    typedef long long ac__type_sizeof_;
23712 int
23713 main ()
23714 {
23715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23716 test_array [0] = 0
23717
23718   ;
23719   return 0;
23720 }
23721 _ACEOF
23722 rm -f conftest.$ac_objext
23723 if { (ac_try="$ac_compile"
23724 case "(($ac_try" in
23725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726   *) ac_try_echo=$ac_try;;
23727 esac
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729   (eval "$ac_compile") 2>conftest.er1
23730   ac_status=$?
23731   grep -v '^ *+' conftest.er1 >conftest.err
23732   rm -f conftest.er1
23733   cat conftest.err >&5
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); } && {
23736          test -z "$ac_c_werror_flag" ||
23737          test ! -s conftest.err
23738        } && test -s conftest.$ac_objext; then
23739   ac_lo=0 ac_mid=0
23740   while :; do
23741     cat >conftest.$ac_ext <<_ACEOF
23742 /* confdefs.h.  */
23743 _ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h.  */
23747 $ac_includes_default
23748    typedef long long ac__type_sizeof_;
23749 int
23750 main ()
23751 {
23752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23753 test_array [0] = 0
23754
23755   ;
23756   return 0;
23757 }
23758 _ACEOF
23759 rm -f conftest.$ac_objext
23760 if { (ac_try="$ac_compile"
23761 case "(($ac_try" in
23762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763   *) ac_try_echo=$ac_try;;
23764 esac
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766   (eval "$ac_compile") 2>conftest.er1
23767   ac_status=$?
23768   grep -v '^ *+' conftest.er1 >conftest.err
23769   rm -f conftest.er1
23770   cat conftest.err >&5
23771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772   (exit $ac_status); } && {
23773          test -z "$ac_c_werror_flag" ||
23774          test ! -s conftest.err
23775        } && test -s conftest.$ac_objext; then
23776   ac_hi=$ac_mid; break
23777 else
23778   echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23780
23781         ac_lo=`expr $ac_mid + 1`
23782                         if test $ac_lo -le $ac_mid; then
23783                           ac_lo= ac_hi=
23784                           break
23785                         fi
23786                         ac_mid=`expr 2 '*' $ac_mid + 1`
23787 fi
23788
23789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790   done
23791 else
23792   echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23794
23795         cat >conftest.$ac_ext <<_ACEOF
23796 /* confdefs.h.  */
23797 _ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h.  */
23801 $ac_includes_default
23802    typedef long long ac__type_sizeof_;
23803 int
23804 main ()
23805 {
23806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23807 test_array [0] = 0
23808
23809   ;
23810   return 0;
23811 }
23812 _ACEOF
23813 rm -f conftest.$ac_objext
23814 if { (ac_try="$ac_compile"
23815 case "(($ac_try" in
23816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817   *) ac_try_echo=$ac_try;;
23818 esac
23819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23820   (eval "$ac_compile") 2>conftest.er1
23821   ac_status=$?
23822   grep -v '^ *+' conftest.er1 >conftest.err
23823   rm -f conftest.er1
23824   cat conftest.err >&5
23825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826   (exit $ac_status); } && {
23827          test -z "$ac_c_werror_flag" ||
23828          test ! -s conftest.err
23829        } && test -s conftest.$ac_objext; then
23830   ac_hi=-1 ac_mid=-1
23831   while :; do
23832     cat >conftest.$ac_ext <<_ACEOF
23833 /* confdefs.h.  */
23834 _ACEOF
23835 cat confdefs.h >>conftest.$ac_ext
23836 cat >>conftest.$ac_ext <<_ACEOF
23837 /* end confdefs.h.  */
23838 $ac_includes_default
23839    typedef long long ac__type_sizeof_;
23840 int
23841 main ()
23842 {
23843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23844 test_array [0] = 0
23845
23846   ;
23847   return 0;
23848 }
23849 _ACEOF
23850 rm -f conftest.$ac_objext
23851 if { (ac_try="$ac_compile"
23852 case "(($ac_try" in
23853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854   *) ac_try_echo=$ac_try;;
23855 esac
23856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23857   (eval "$ac_compile") 2>conftest.er1
23858   ac_status=$?
23859   grep -v '^ *+' conftest.er1 >conftest.err
23860   rm -f conftest.er1
23861   cat conftest.err >&5
23862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863   (exit $ac_status); } && {
23864          test -z "$ac_c_werror_flag" ||
23865          test ! -s conftest.err
23866        } && test -s conftest.$ac_objext; then
23867   ac_lo=$ac_mid; break
23868 else
23869   echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23871
23872         ac_hi=`expr '(' $ac_mid ')' - 1`
23873                         if test $ac_mid -le $ac_hi; then
23874                           ac_lo= ac_hi=
23875                           break
23876                         fi
23877                         ac_mid=`expr 2 '*' $ac_mid`
23878 fi
23879
23880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23881   done
23882 else
23883   echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23885
23886         ac_lo= ac_hi=
23887 fi
23888
23889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23890 fi
23891
23892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23893 # Binary search between lo and hi bounds.
23894 while test "x$ac_lo" != "x$ac_hi"; do
23895   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23896   cat >conftest.$ac_ext <<_ACEOF
23897 /* confdefs.h.  */
23898 _ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h.  */
23902 $ac_includes_default
23903    typedef long long ac__type_sizeof_;
23904 int
23905 main ()
23906 {
23907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23908 test_array [0] = 0
23909
23910   ;
23911   return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext
23915 if { (ac_try="$ac_compile"
23916 case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921   (eval "$ac_compile") 2>conftest.er1
23922   ac_status=$?
23923   grep -v '^ *+' conftest.er1 >conftest.err
23924   rm -f conftest.er1
23925   cat conftest.err >&5
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } && {
23928          test -z "$ac_c_werror_flag" ||
23929          test ! -s conftest.err
23930        } && test -s conftest.$ac_objext; then
23931   ac_hi=$ac_mid
23932 else
23933   echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23935
23936         ac_lo=`expr '(' $ac_mid ')' + 1`
23937 fi
23938
23939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23940 done
23941 case $ac_lo in
23942 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23943 '') if test "$ac_cv_type_long_long" = yes; then
23944      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23945 See \`config.log' for more details." >&5
23946 echo "$as_me: error: cannot compute sizeof (long long)
23947 See \`config.log' for more details." >&2;}
23948    { (exit 77); exit 77; }; }
23949    else
23950      ac_cv_sizeof_long_long=0
23951    fi ;;
23952 esac
23953 else
23954   cat >conftest.$ac_ext <<_ACEOF
23955 /* confdefs.h.  */
23956 _ACEOF
23957 cat confdefs.h >>conftest.$ac_ext
23958 cat >>conftest.$ac_ext <<_ACEOF
23959 /* end confdefs.h.  */
23960 $ac_includes_default
23961    typedef long long ac__type_sizeof_;
23962 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23963 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23964 #include <stdio.h>
23965 #include <stdlib.h>
23966 int
23967 main ()
23968 {
23969
23970   FILE *f = fopen ("conftest.val", "w");
23971   if (! f)
23972     return 1;
23973   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23974     {
23975       long int i = longval ();
23976       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23977         return 1;
23978       fprintf (f, "%ld\n", i);
23979     }
23980   else
23981     {
23982       unsigned long int i = ulongval ();
23983       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23984         return 1;
23985       fprintf (f, "%lu\n", i);
23986     }
23987   return ferror (f) || fclose (f) != 0;
23988
23989   ;
23990   return 0;
23991 }
23992 _ACEOF
23993 rm -f conftest$ac_exeext
23994 if { (ac_try="$ac_link"
23995 case "(($ac_try" in
23996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997   *) ac_try_echo=$ac_try;;
23998 esac
23999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000   (eval "$ac_link") 2>&5
24001   ac_status=$?
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24004   { (case "(($ac_try" in
24005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24006   *) ac_try_echo=$ac_try;;
24007 esac
24008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009   (eval "$ac_try") 2>&5
24010   ac_status=$?
24011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012   (exit $ac_status); }; }; then
24013   ac_cv_sizeof_long_long=`cat conftest.val`
24014 else
24015   echo "$as_me: program exited with status $ac_status" >&5
24016 echo "$as_me: failed program was:" >&5
24017 sed 's/^/| /' conftest.$ac_ext >&5
24018
24019 ( exit $ac_status )
24020 if test "$ac_cv_type_long_long" = yes; then
24021      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24022 See \`config.log' for more details." >&5
24023 echo "$as_me: error: cannot compute sizeof (long long)
24024 See \`config.log' for more details." >&2;}
24025    { (exit 77); exit 77; }; }
24026    else
24027      ac_cv_sizeof_long_long=0
24028    fi
24029 fi
24030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24031 fi
24032 rm -f conftest.val
24033 fi
24034 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24035 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24036
24037
24038
24039 cat >>confdefs.h <<_ACEOF
24040 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24041 _ACEOF
24042
24043
24044 esac
24045
24046 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24047 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24048 if test "${ac_cv_type_wchar_t+set}" = set; then
24049   echo $ECHO_N "(cached) $ECHO_C" >&6
24050 else
24051   cat >conftest.$ac_ext <<_ACEOF
24052 /* confdefs.h.  */
24053 _ACEOF
24054 cat confdefs.h >>conftest.$ac_ext
24055 cat >>conftest.$ac_ext <<_ACEOF
24056 /* end confdefs.h.  */
24057
24058         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24059         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24060         #  error "fake wchar_t"
24061         #endif
24062         #ifdef HAVE_WCHAR_H
24063         #  ifdef __CYGWIN__
24064         #    include <stddef.h>
24065         #  endif
24066         #  include <wchar.h>
24067         #endif
24068         #ifdef HAVE_STDLIB_H
24069         #  include <stdlib.h>
24070         #endif
24071         #include <stdio.h>
24072
24073
24074
24075 typedef wchar_t ac__type_new_;
24076 int
24077 main ()
24078 {
24079 if ((ac__type_new_ *) 0)
24080   return 0;
24081 if (sizeof (ac__type_new_))
24082   return 0;
24083   ;
24084   return 0;
24085 }
24086 _ACEOF
24087 rm -f conftest.$ac_objext
24088 if { (ac_try="$ac_compile"
24089 case "(($ac_try" in
24090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24091   *) ac_try_echo=$ac_try;;
24092 esac
24093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24094   (eval "$ac_compile") 2>conftest.er1
24095   ac_status=$?
24096   grep -v '^ *+' conftest.er1 >conftest.err
24097   rm -f conftest.er1
24098   cat conftest.err >&5
24099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100   (exit $ac_status); } && {
24101          test -z "$ac_c_werror_flag" ||
24102          test ! -s conftest.err
24103        } && test -s conftest.$ac_objext; then
24104   ac_cv_type_wchar_t=yes
24105 else
24106   echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24108
24109         ac_cv_type_wchar_t=no
24110 fi
24111
24112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24113 fi
24114 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24115 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24116
24117 # The cast to long int works around a bug in the HP C Compiler
24118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24120 # This bug is HP SR number 8606223364.
24121 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24122 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24123 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24124   echo $ECHO_N "(cached) $ECHO_C" >&6
24125 else
24126   if test "$cross_compiling" = yes; then
24127   # Depending upon the size, compute the lo and hi bounds.
24128 cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h.  */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h.  */
24134
24135         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24136         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24137         #  error "fake wchar_t"
24138         #endif
24139         #ifdef HAVE_WCHAR_H
24140         #  ifdef __CYGWIN__
24141         #    include <stddef.h>
24142         #  endif
24143         #  include <wchar.h>
24144         #endif
24145         #ifdef HAVE_STDLIB_H
24146         #  include <stdlib.h>
24147         #endif
24148         #include <stdio.h>
24149
24150
24151
24152    typedef wchar_t ac__type_sizeof_;
24153 int
24154 main ()
24155 {
24156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24157 test_array [0] = 0
24158
24159   ;
24160   return 0;
24161 }
24162 _ACEOF
24163 rm -f conftest.$ac_objext
24164 if { (ac_try="$ac_compile"
24165 case "(($ac_try" in
24166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24167   *) ac_try_echo=$ac_try;;
24168 esac
24169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24170   (eval "$ac_compile") 2>conftest.er1
24171   ac_status=$?
24172   grep -v '^ *+' conftest.er1 >conftest.err
24173   rm -f conftest.er1
24174   cat conftest.err >&5
24175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176   (exit $ac_status); } && {
24177          test -z "$ac_c_werror_flag" ||
24178          test ! -s conftest.err
24179        } && test -s conftest.$ac_objext; then
24180   ac_lo=0 ac_mid=0
24181   while :; do
24182     cat >conftest.$ac_ext <<_ACEOF
24183 /* confdefs.h.  */
24184 _ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h.  */
24188
24189         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24190         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24191         #  error "fake wchar_t"
24192         #endif
24193         #ifdef HAVE_WCHAR_H
24194         #  ifdef __CYGWIN__
24195         #    include <stddef.h>
24196         #  endif
24197         #  include <wchar.h>
24198         #endif
24199         #ifdef HAVE_STDLIB_H
24200         #  include <stdlib.h>
24201         #endif
24202         #include <stdio.h>
24203
24204
24205
24206    typedef wchar_t ac__type_sizeof_;
24207 int
24208 main ()
24209 {
24210 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24211 test_array [0] = 0
24212
24213   ;
24214   return 0;
24215 }
24216 _ACEOF
24217 rm -f conftest.$ac_objext
24218 if { (ac_try="$ac_compile"
24219 case "(($ac_try" in
24220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24221   *) ac_try_echo=$ac_try;;
24222 esac
24223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24224   (eval "$ac_compile") 2>conftest.er1
24225   ac_status=$?
24226   grep -v '^ *+' conftest.er1 >conftest.err
24227   rm -f conftest.er1
24228   cat conftest.err >&5
24229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230   (exit $ac_status); } && {
24231          test -z "$ac_c_werror_flag" ||
24232          test ! -s conftest.err
24233        } && test -s conftest.$ac_objext; then
24234   ac_hi=$ac_mid; break
24235 else
24236   echo "$as_me: failed program was:" >&5
24237 sed 's/^/| /' conftest.$ac_ext >&5
24238
24239         ac_lo=`expr $ac_mid + 1`
24240                         if test $ac_lo -le $ac_mid; then
24241                           ac_lo= ac_hi=
24242                           break
24243                         fi
24244                         ac_mid=`expr 2 '*' $ac_mid + 1`
24245 fi
24246
24247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24248   done
24249 else
24250   echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24252
24253         cat >conftest.$ac_ext <<_ACEOF
24254 /* confdefs.h.  */
24255 _ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h.  */
24259
24260         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24261         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24262         #  error "fake wchar_t"
24263         #endif
24264         #ifdef HAVE_WCHAR_H
24265         #  ifdef __CYGWIN__
24266         #    include <stddef.h>
24267         #  endif
24268         #  include <wchar.h>
24269         #endif
24270         #ifdef HAVE_STDLIB_H
24271         #  include <stdlib.h>
24272         #endif
24273         #include <stdio.h>
24274
24275
24276
24277    typedef wchar_t ac__type_sizeof_;
24278 int
24279 main ()
24280 {
24281 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24282 test_array [0] = 0
24283
24284   ;
24285   return 0;
24286 }
24287 _ACEOF
24288 rm -f conftest.$ac_objext
24289 if { (ac_try="$ac_compile"
24290 case "(($ac_try" in
24291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292   *) ac_try_echo=$ac_try;;
24293 esac
24294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295   (eval "$ac_compile") 2>conftest.er1
24296   ac_status=$?
24297   grep -v '^ *+' conftest.er1 >conftest.err
24298   rm -f conftest.er1
24299   cat conftest.err >&5
24300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301   (exit $ac_status); } && {
24302          test -z "$ac_c_werror_flag" ||
24303          test ! -s conftest.err
24304        } && test -s conftest.$ac_objext; then
24305   ac_hi=-1 ac_mid=-1
24306   while :; do
24307     cat >conftest.$ac_ext <<_ACEOF
24308 /* confdefs.h.  */
24309 _ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h.  */
24313
24314         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24315         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24316         #  error "fake wchar_t"
24317         #endif
24318         #ifdef HAVE_WCHAR_H
24319         #  ifdef __CYGWIN__
24320         #    include <stddef.h>
24321         #  endif
24322         #  include <wchar.h>
24323         #endif
24324         #ifdef HAVE_STDLIB_H
24325         #  include <stdlib.h>
24326         #endif
24327         #include <stdio.h>
24328
24329
24330
24331    typedef wchar_t ac__type_sizeof_;
24332 int
24333 main ()
24334 {
24335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24336 test_array [0] = 0
24337
24338   ;
24339   return 0;
24340 }
24341 _ACEOF
24342 rm -f conftest.$ac_objext
24343 if { (ac_try="$ac_compile"
24344 case "(($ac_try" in
24345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346   *) ac_try_echo=$ac_try;;
24347 esac
24348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349   (eval "$ac_compile") 2>conftest.er1
24350   ac_status=$?
24351   grep -v '^ *+' conftest.er1 >conftest.err
24352   rm -f conftest.er1
24353   cat conftest.err >&5
24354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355   (exit $ac_status); } && {
24356          test -z "$ac_c_werror_flag" ||
24357          test ! -s conftest.err
24358        } && test -s conftest.$ac_objext; then
24359   ac_lo=$ac_mid; break
24360 else
24361   echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24363
24364         ac_hi=`expr '(' $ac_mid ')' - 1`
24365                         if test $ac_mid -le $ac_hi; then
24366                           ac_lo= ac_hi=
24367                           break
24368                         fi
24369                         ac_mid=`expr 2 '*' $ac_mid`
24370 fi
24371
24372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24373   done
24374 else
24375   echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24377
24378         ac_lo= ac_hi=
24379 fi
24380
24381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24382 fi
24383
24384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24385 # Binary search between lo and hi bounds.
24386 while test "x$ac_lo" != "x$ac_hi"; do
24387   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24388   cat >conftest.$ac_ext <<_ACEOF
24389 /* confdefs.h.  */
24390 _ACEOF
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h.  */
24394
24395         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24396         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24397         #  error "fake wchar_t"
24398         #endif
24399         #ifdef HAVE_WCHAR_H
24400         #  ifdef __CYGWIN__
24401         #    include <stddef.h>
24402         #  endif
24403         #  include <wchar.h>
24404         #endif
24405         #ifdef HAVE_STDLIB_H
24406         #  include <stdlib.h>
24407         #endif
24408         #include <stdio.h>
24409
24410
24411
24412    typedef wchar_t ac__type_sizeof_;
24413 int
24414 main ()
24415 {
24416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24417 test_array [0] = 0
24418
24419   ;
24420   return 0;
24421 }
24422 _ACEOF
24423 rm -f conftest.$ac_objext
24424 if { (ac_try="$ac_compile"
24425 case "(($ac_try" in
24426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427   *) ac_try_echo=$ac_try;;
24428 esac
24429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430   (eval "$ac_compile") 2>conftest.er1
24431   ac_status=$?
24432   grep -v '^ *+' conftest.er1 >conftest.err
24433   rm -f conftest.er1
24434   cat conftest.err >&5
24435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436   (exit $ac_status); } && {
24437          test -z "$ac_c_werror_flag" ||
24438          test ! -s conftest.err
24439        } && test -s conftest.$ac_objext; then
24440   ac_hi=$ac_mid
24441 else
24442   echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445         ac_lo=`expr '(' $ac_mid ')' + 1`
24446 fi
24447
24448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24449 done
24450 case $ac_lo in
24451 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24452 '') if test "$ac_cv_type_wchar_t" = yes; then
24453      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24454 See \`config.log' for more details." >&5
24455 echo "$as_me: error: cannot compute sizeof (wchar_t)
24456 See \`config.log' for more details." >&2;}
24457    { (exit 77); exit 77; }; }
24458    else
24459      ac_cv_sizeof_wchar_t=0
24460    fi ;;
24461 esac
24462 else
24463   cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h.  */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h.  */
24469
24470         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24471         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24472         #  error "fake wchar_t"
24473         #endif
24474         #ifdef HAVE_WCHAR_H
24475         #  ifdef __CYGWIN__
24476         #    include <stddef.h>
24477         #  endif
24478         #  include <wchar.h>
24479         #endif
24480         #ifdef HAVE_STDLIB_H
24481         #  include <stdlib.h>
24482         #endif
24483         #include <stdio.h>
24484
24485
24486
24487    typedef wchar_t ac__type_sizeof_;
24488 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24489 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24490 #include <stdio.h>
24491 #include <stdlib.h>
24492 int
24493 main ()
24494 {
24495
24496   FILE *f = fopen ("conftest.val", "w");
24497   if (! f)
24498     return 1;
24499   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24500     {
24501       long int i = longval ();
24502       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24503         return 1;
24504       fprintf (f, "%ld\n", i);
24505     }
24506   else
24507     {
24508       unsigned long int i = ulongval ();
24509       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24510         return 1;
24511       fprintf (f, "%lu\n", i);
24512     }
24513   return ferror (f) || fclose (f) != 0;
24514
24515   ;
24516   return 0;
24517 }
24518 _ACEOF
24519 rm -f conftest$ac_exeext
24520 if { (ac_try="$ac_link"
24521 case "(($ac_try" in
24522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24523   *) ac_try_echo=$ac_try;;
24524 esac
24525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24526   (eval "$ac_link") 2>&5
24527   ac_status=$?
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24530   { (case "(($ac_try" in
24531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532   *) ac_try_echo=$ac_try;;
24533 esac
24534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24535   (eval "$ac_try") 2>&5
24536   ac_status=$?
24537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538   (exit $ac_status); }; }; then
24539   ac_cv_sizeof_wchar_t=`cat conftest.val`
24540 else
24541   echo "$as_me: program exited with status $ac_status" >&5
24542 echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24544
24545 ( exit $ac_status )
24546 if test "$ac_cv_type_wchar_t" = yes; then
24547      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24548 See \`config.log' for more details." >&5
24549 echo "$as_me: error: cannot compute sizeof (wchar_t)
24550 See \`config.log' for more details." >&2;}
24551    { (exit 77); exit 77; }; }
24552    else
24553      ac_cv_sizeof_wchar_t=0
24554    fi
24555 fi
24556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24557 fi
24558 rm -f conftest.val
24559 fi
24560 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24561 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24562
24563
24564
24565 cat >>confdefs.h <<_ACEOF
24566 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24567 _ACEOF
24568
24569
24570 if test "$ac_cv_sizeof_wchar_t" = 0; then
24571     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24572 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24573    { (exit 1); exit 1; }; }
24574 fi
24575 cat >>confdefs.h <<\_ACEOF
24576 #define wxUSE_WCHAR_T 1
24577 _ACEOF
24578
24579
24580 { echo "$as_me:$LINENO: checking for va_copy" >&5
24581 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24582 if test "${wx_cv_func_va_copy+set}" = set; then
24583   echo $ECHO_N "(cached) $ECHO_C" >&6
24584 else
24585
24586         ac_ext=cpp
24587 ac_cpp='$CXXCPP $CPPFLAGS'
24588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24591
24592         cat >conftest.$ac_ext <<_ACEOF
24593
24594             /* confdefs.h.  */
24595 _ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h.  */
24599
24600                 #include <stdarg.h>
24601                 void foo(char *f, ...)
24602                 {
24603                     va_list ap1, ap2;
24604                     va_start(ap1, f);
24605                     va_copy(ap2, ap1);
24606                     va_end(ap2);
24607                     va_end(ap1);
24608                 }
24609                 int main()
24610                 {
24611                     foo("hi", 17);
24612                     return 0;
24613                 }
24614
24615 _ACEOF
24616 rm -f conftest.$ac_objext conftest$ac_exeext
24617 if { (ac_try="$ac_link"
24618 case "(($ac_try" in
24619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620   *) ac_try_echo=$ac_try;;
24621 esac
24622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623   (eval "$ac_link") 2>conftest.er1
24624   ac_status=$?
24625   grep -v '^ *+' conftest.er1 >conftest.err
24626   rm -f conftest.er1
24627   cat conftest.err >&5
24628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629   (exit $ac_status); } && {
24630          test -z "$ac_cxx_werror_flag" ||
24631          test ! -s conftest.err
24632        } && test -s conftest$ac_exeext &&
24633        $as_test_x conftest$ac_exeext; then
24634   wx_cv_func_va_copy=yes
24635 else
24636   echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24638
24639         wx_cv_func_va_copy=no
24640
24641 fi
24642
24643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24644       conftest$ac_exeext conftest.$ac_ext
24645         ac_ext=c
24646 ac_cpp='$CPP $CPPFLAGS'
24647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24650
24651
24652
24653 fi
24654 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24655 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24656
24657 if test $wx_cv_func_va_copy = "yes"; then
24658     cat >>confdefs.h <<\_ACEOF
24659 #define HAVE_VA_COPY 1
24660 _ACEOF
24661
24662 else
24663         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24664 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24665 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24666   echo $ECHO_N "(cached) $ECHO_C" >&6
24667 else
24668
24669             if test "$cross_compiling" = yes; then
24670                   wx_cv_type_va_list_lvalue=yes
24671
24672 else
24673   cat >conftest.$ac_ext <<_ACEOF
24674
24675                 /* confdefs.h.  */
24676 _ACEOF
24677 cat confdefs.h >>conftest.$ac_ext
24678 cat >>conftest.$ac_ext <<_ACEOF
24679 /* end confdefs.h.  */
24680
24681                     #include <stdarg.h>
24682                     int foo(char *f, ...)
24683                     {
24684                         va_list ap1, ap2;
24685                         va_start(ap1, f);
24686                         ap2 = ap1;
24687                         if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24688                             return 1;
24689                         va_end(ap2);
24690                         va_end(ap1);
24691                         return 0;
24692                     }
24693                     int main()
24694                     {
24695                         return foo("hi", 17);
24696                     }
24697
24698 _ACEOF
24699 rm -f conftest$ac_exeext
24700 if { (ac_try="$ac_link"
24701 case "(($ac_try" in
24702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703   *) ac_try_echo=$ac_try;;
24704 esac
24705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706   (eval "$ac_link") 2>&5
24707   ac_status=$?
24708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24710   { (case "(($ac_try" in
24711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712   *) ac_try_echo=$ac_try;;
24713 esac
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715   (eval "$ac_try") 2>&5
24716   ac_status=$?
24717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718   (exit $ac_status); }; }; then
24719   wx_cv_type_va_list_lvalue=yes
24720 else
24721   echo "$as_me: program exited with status $ac_status" >&5
24722 echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24724
24725 ( exit $ac_status )
24726 wx_cv_type_va_list_lvalue=no
24727 fi
24728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24729 fi
24730
24731
24732
24733
24734 fi
24735 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24736 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24737
24738     if test $wx_cv_type_va_list_lvalue != "yes"; then
24739                         cat >>confdefs.h <<\_ACEOF
24740 #define VA_LIST_IS_ARRAY 1
24741 _ACEOF
24742
24743     fi
24744 fi
24745
24746 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24747
24748 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24749 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24750 if test "${wx_cv_have_variadic_macros+set}" = set; then
24751   echo $ECHO_N "(cached) $ECHO_C" >&6
24752 else
24753
24754                         ac_ext=cpp
24755 ac_cpp='$CXXCPP $CPPFLAGS'
24756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24759
24760         cat >conftest.$ac_ext <<_ACEOF
24761
24762             /* confdefs.h.  */
24763 _ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h.  */
24767
24768                     #include <stdio.h>
24769                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24770
24771 int
24772 main ()
24773 {
24774
24775                     test("%s %d %p", "test", 1, 0);
24776
24777
24778   ;
24779   return 0;
24780 }
24781 _ACEOF
24782 rm -f conftest.$ac_objext
24783 if { (ac_try="$ac_compile"
24784 case "(($ac_try" in
24785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24786   *) ac_try_echo=$ac_try;;
24787 esac
24788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24789   (eval "$ac_compile") 2>conftest.er1
24790   ac_status=$?
24791   grep -v '^ *+' conftest.er1 >conftest.err
24792   rm -f conftest.er1
24793   cat conftest.err >&5
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); } && {
24796          test -z "$ac_cxx_werror_flag" ||
24797          test ! -s conftest.err
24798        } && test -s conftest.$ac_objext; then
24799   wx_cv_have_variadic_macros=yes
24800 else
24801   echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24803
24804         wx_cv_have_variadic_macros=no
24805
24806 fi
24807
24808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24809         ac_ext=c
24810 ac_cpp='$CPP $CPPFLAGS'
24811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24814
24815
24816
24817 fi
24818 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24819 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24820
24821 if test $wx_cv_have_variadic_macros = "yes"; then
24822     cat >>confdefs.h <<\_ACEOF
24823 #define HAVE_VARIADIC_MACROS 1
24824 _ACEOF
24825
24826 fi
24827
24828 fi
24829
24830 LARGEFILE_CPPFLAGS=
24831 # Check whether --enable-largefile was given.
24832 if test "${enable_largefile+set}" = set; then
24833   enableval=$enable_largefile;
24834 fi
24835
24836 if test "$enable_largefile" != no; then
24837             wx_largefile=no
24838
24839     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24840 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24841 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24842   echo $ECHO_N "(cached) $ECHO_C" >&6
24843 else
24844
24845           cat >conftest.$ac_ext <<_ACEOF
24846 /* confdefs.h.  */
24847 _ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h.  */
24851 #define _FILE_OFFSET_BITS 64
24852                           #include <sys/types.h>
24853 int
24854 main ()
24855 {
24856 typedef struct {
24857     unsigned int field: sizeof(off_t) == 8;
24858 } wxlf;
24859
24860   ;
24861   return 0;
24862 }
24863 _ACEOF
24864 rm -f conftest.$ac_objext
24865 if { (ac_try="$ac_compile"
24866 case "(($ac_try" in
24867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868   *) ac_try_echo=$ac_try;;
24869 esac
24870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871   (eval "$ac_compile") 2>conftest.er1
24872   ac_status=$?
24873   grep -v '^ *+' conftest.er1 >conftest.err
24874   rm -f conftest.er1
24875   cat conftest.err >&5
24876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877   (exit $ac_status); } && {
24878          test -z "$ac_c_werror_flag" ||
24879          test ! -s conftest.err
24880        } && test -s conftest.$ac_objext; then
24881   ac_cv_sys_file_offset_bits=64
24882 else
24883   echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24885
24886         ac_cv_sys_file_offset_bits=no
24887 fi
24888
24889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24890
24891
24892 fi
24893 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24894 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24895
24896     if test "$ac_cv_sys_file_offset_bits" != no; then
24897         wx_largefile=yes
24898         cat >>confdefs.h <<_ACEOF
24899 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24900 _ACEOF
24901
24902     fi
24903
24904     if test "x$wx_largefile" != "xyes"; then
24905
24906     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24907 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24908 if test "${ac_cv_sys_large_files+set}" = set; then
24909   echo $ECHO_N "(cached) $ECHO_C" >&6
24910 else
24911
24912           cat >conftest.$ac_ext <<_ACEOF
24913 /* confdefs.h.  */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h.  */
24918 #define _LARGE_FILES 1
24919                           #include <sys/types.h>
24920 int
24921 main ()
24922 {
24923 typedef struct {
24924     unsigned int field: sizeof(off_t) == 8;
24925 } wxlf;
24926
24927   ;
24928   return 0;
24929 }
24930 _ACEOF
24931 rm -f conftest.$ac_objext
24932 if { (ac_try="$ac_compile"
24933 case "(($ac_try" in
24934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24935   *) ac_try_echo=$ac_try;;
24936 esac
24937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24938   (eval "$ac_compile") 2>conftest.er1
24939   ac_status=$?
24940   grep -v '^ *+' conftest.er1 >conftest.err
24941   rm -f conftest.er1
24942   cat conftest.err >&5
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); } && {
24945          test -z "$ac_c_werror_flag" ||
24946          test ! -s conftest.err
24947        } && test -s conftest.$ac_objext; then
24948   ac_cv_sys_large_files=1
24949 else
24950   echo "$as_me: failed program was:" >&5
24951 sed 's/^/| /' conftest.$ac_ext >&5
24952
24953         ac_cv_sys_large_files=no
24954 fi
24955
24956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24957
24958
24959 fi
24960 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24961 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24962
24963     if test "$ac_cv_sys_large_files" != no; then
24964         wx_largefile=yes
24965         cat >>confdefs.h <<_ACEOF
24966 #define _LARGE_FILES $ac_cv_sys_large_files
24967 _ACEOF
24968
24969     fi
24970
24971     fi
24972
24973     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24974 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24975     if test "x$wx_largefile" = "xyes"; then
24976         cat >>confdefs.h <<\_ACEOF
24977 #define HAVE_LARGEFILE_SUPPORT 1
24978 _ACEOF
24979
24980     fi
24981     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24982 echo "${ECHO_T}$wx_largefile" >&6; }
24983 fi
24984
24985 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24986     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24987 elif test "$ac_cv_sys_large_files" = 1; then
24988     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24989 fi
24990
24991 if test -n "$LARGEFILE_CPPFLAGS"; then
24992     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24993
24994                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24995         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24996 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24997 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24998   echo $ECHO_N "(cached) $ECHO_C" >&6
24999 else
25000
25001                 ac_ext=cpp
25002 ac_cpp='$CXXCPP $CPPFLAGS'
25003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25006
25007                 cat >conftest.$ac_ext <<_ACEOF
25008 /* confdefs.h.  */
25009 _ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h.  */
25013
25014 int
25015 main ()
25016 {
25017
25018                         #ifndef __STDC_EXT__
25019                             choke me
25020                         #endif
25021
25022   ;
25023   return 0;
25024 }
25025 _ACEOF
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030   *) ac_try_echo=$ac_try;;
25031 esac
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033   (eval "$ac_compile") 2>conftest.er1
25034   ac_status=$?
25035   grep -v '^ *+' conftest.er1 >conftest.err
25036   rm -f conftest.er1
25037   cat conftest.err >&5
25038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039   (exit $ac_status); } && {
25040          test -z "$ac_cxx_werror_flag" ||
25041          test ! -s conftest.err
25042        } && test -s conftest.$ac_objext; then
25043   wx_cv_STDC_EXT_required=no
25044 else
25045   echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25047
25048         wx_cv_STDC_EXT_required=yes
25049
25050 fi
25051
25052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25053                 ac_ext=c
25054 ac_cpp='$CPP $CPPFLAGS'
25055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25058
25059
25060
25061 fi
25062 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
25063 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
25064         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
25065             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
25066         fi
25067     fi
25068 fi
25069
25070 ac_ext=cpp
25071 ac_cpp='$CXXCPP $CPPFLAGS'
25072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25075
25076 old_CPPFLAGS="$CPPFLAGS"
25077 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
25078 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25079 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
25080 if test "${ac_cv_sys_largefile_source+set}" = set; then
25081   echo $ECHO_N "(cached) $ECHO_C" >&6
25082 else
25083   while :; do
25084   cat >conftest.$ac_ext <<_ACEOF
25085 /* confdefs.h.  */
25086 _ACEOF
25087 cat confdefs.h >>conftest.$ac_ext
25088 cat >>conftest.$ac_ext <<_ACEOF
25089 /* end confdefs.h.  */
25090 #include <sys/types.h> /* for off_t */
25091      #include <stdio.h>
25092 int
25093 main ()
25094 {
25095 int (*fp) (FILE *, off_t, int) = fseeko;
25096      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25097   ;
25098   return 0;
25099 }
25100 _ACEOF
25101 rm -f conftest.$ac_objext conftest$ac_exeext
25102 if { (ac_try="$ac_link"
25103 case "(($ac_try" in
25104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105   *) ac_try_echo=$ac_try;;
25106 esac
25107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25108   (eval "$ac_link") 2>conftest.er1
25109   ac_status=$?
25110   grep -v '^ *+' conftest.er1 >conftest.err
25111   rm -f conftest.er1
25112   cat conftest.err >&5
25113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114   (exit $ac_status); } && {
25115          test -z "$ac_cxx_werror_flag" ||
25116          test ! -s conftest.err
25117        } && test -s conftest$ac_exeext &&
25118        $as_test_x conftest$ac_exeext; then
25119   ac_cv_sys_largefile_source=no; break
25120 else
25121   echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25123
25124
25125 fi
25126
25127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25128       conftest$ac_exeext conftest.$ac_ext
25129   cat >conftest.$ac_ext <<_ACEOF
25130 /* confdefs.h.  */
25131 _ACEOF
25132 cat confdefs.h >>conftest.$ac_ext
25133 cat >>conftest.$ac_ext <<_ACEOF
25134 /* end confdefs.h.  */
25135 #define _LARGEFILE_SOURCE 1
25136 #include <sys/types.h> /* for off_t */
25137      #include <stdio.h>
25138 int
25139 main ()
25140 {
25141 int (*fp) (FILE *, off_t, int) = fseeko;
25142      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25143   ;
25144   return 0;
25145 }
25146 _ACEOF
25147 rm -f conftest.$ac_objext conftest$ac_exeext
25148 if { (ac_try="$ac_link"
25149 case "(($ac_try" in
25150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25151   *) ac_try_echo=$ac_try;;
25152 esac
25153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25154   (eval "$ac_link") 2>conftest.er1
25155   ac_status=$?
25156   grep -v '^ *+' conftest.er1 >conftest.err
25157   rm -f conftest.er1
25158   cat conftest.err >&5
25159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160   (exit $ac_status); } && {
25161          test -z "$ac_cxx_werror_flag" ||
25162          test ! -s conftest.err
25163        } && test -s conftest$ac_exeext &&
25164        $as_test_x conftest$ac_exeext; then
25165   ac_cv_sys_largefile_source=1; break
25166 else
25167   echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25169
25170
25171 fi
25172
25173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25174       conftest$ac_exeext conftest.$ac_ext
25175   ac_cv_sys_largefile_source=unknown
25176   break
25177 done
25178 fi
25179 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25180 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25181 case $ac_cv_sys_largefile_source in #(
25182   no | unknown) ;;
25183   *)
25184 cat >>confdefs.h <<_ACEOF
25185 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25186 _ACEOF
25187 ;;
25188 esac
25189 rm -f conftest*
25190
25191 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25192 # in glibc 2.1.3, but that breaks too many other things.
25193 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25194 if test $ac_cv_sys_largefile_source != unknown; then
25195
25196 cat >>confdefs.h <<\_ACEOF
25197 #define HAVE_FSEEKO 1
25198 _ACEOF
25199
25200 fi
25201
25202 CPPFLAGS="$old_CPPFLAGS"
25203 ac_ext=c
25204 ac_cpp='$CPP $CPPFLAGS'
25205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25208
25209 if test "$ac_cv_sys_largefile_source" != no; then
25210     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25211 fi
25212
25213 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25214 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25215 if test "${ac_cv_c_bigendian+set}" = set; then
25216   echo $ECHO_N "(cached) $ECHO_C" >&6
25217 else
25218   ac_cv_c_bigendian=unknown
25219 # See if sys/param.h defines the BYTE_ORDER macro.
25220 cat >conftest.$ac_ext <<_ACEOF
25221 /* confdefs.h.  */
25222 _ACEOF
25223 cat confdefs.h >>conftest.$ac_ext
25224 cat >>conftest.$ac_ext <<_ACEOF
25225 /* end confdefs.h.  */
25226 #include <sys/types.h>
25227 #include <sys/param.h>
25228 int
25229 main ()
25230 {
25231
25232 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25233  bogus endian macros
25234 #endif
25235   ;
25236   return 0;
25237 }
25238 _ACEOF
25239 rm -f conftest.$ac_objext
25240 if { (ac_try="$ac_compile"
25241 case "(($ac_try" in
25242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25243   *) ac_try_echo=$ac_try;;
25244 esac
25245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25246   (eval "$ac_compile") 2>conftest.er1
25247   ac_status=$?
25248   grep -v '^ *+' conftest.er1 >conftest.err
25249   rm -f conftest.er1
25250   cat conftest.err >&5
25251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252   (exit $ac_status); } && {
25253          test -z "$ac_c_werror_flag" ||
25254          test ! -s conftest.err
25255        } && test -s conftest.$ac_objext; then
25256   # It does; now see whether it defined to BIG_ENDIAN or not.
25257 cat >conftest.$ac_ext <<_ACEOF
25258 /* confdefs.h.  */
25259 _ACEOF
25260 cat confdefs.h >>conftest.$ac_ext
25261 cat >>conftest.$ac_ext <<_ACEOF
25262 /* end confdefs.h.  */
25263 #include <sys/types.h>
25264 #include <sys/param.h>
25265 int
25266 main ()
25267 {
25268
25269 #if BYTE_ORDER != BIG_ENDIAN
25270  not big endian
25271 #endif
25272   ;
25273   return 0;
25274 }
25275 _ACEOF
25276 rm -f conftest.$ac_objext
25277 if { (ac_try="$ac_compile"
25278 case "(($ac_try" in
25279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280   *) ac_try_echo=$ac_try;;
25281 esac
25282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25283   (eval "$ac_compile") 2>conftest.er1
25284   ac_status=$?
25285   grep -v '^ *+' conftest.er1 >conftest.err
25286   rm -f conftest.er1
25287   cat conftest.err >&5
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); } && {
25290          test -z "$ac_c_werror_flag" ||
25291          test ! -s conftest.err
25292        } && test -s conftest.$ac_objext; then
25293   ac_cv_c_bigendian=yes
25294 else
25295   echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25297
25298         ac_cv_c_bigendian=no
25299 fi
25300
25301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25302 else
25303   echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25305
25306
25307 fi
25308
25309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25310 if test $ac_cv_c_bigendian = unknown; then
25311 if test "$cross_compiling" = yes; then
25312   ac_cv_c_bigendian=unknown
25313 else
25314   cat >conftest.$ac_ext <<_ACEOF
25315 /* confdefs.h.  */
25316 _ACEOF
25317 cat confdefs.h >>conftest.$ac_ext
25318 cat >>conftest.$ac_ext <<_ACEOF
25319 /* end confdefs.h.  */
25320 main () {
25321   /* Are we little or big endian?  From Harbison&Steele.  */
25322   union
25323   {
25324     long l;
25325     char c[sizeof (long)];
25326   } u;
25327   u.l = 1;
25328   exit (u.c[sizeof (long) - 1] == 1);
25329 }
25330 _ACEOF
25331 rm -f conftest$ac_exeext
25332 if { (ac_try="$ac_link"
25333 case "(($ac_try" in
25334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335   *) ac_try_echo=$ac_try;;
25336 esac
25337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25338   (eval "$ac_link") 2>&5
25339   ac_status=$?
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25342   { (case "(($ac_try" in
25343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344   *) ac_try_echo=$ac_try;;
25345 esac
25346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347   (eval "$ac_try") 2>&5
25348   ac_status=$?
25349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350   (exit $ac_status); }; }; then
25351   ac_cv_c_bigendian=no
25352 else
25353   echo "$as_me: program exited with status $ac_status" >&5
25354 echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25356
25357 ( exit $ac_status )
25358 ac_cv_c_bigendian=yes
25359 fi
25360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25361 fi
25362
25363
25364 fi
25365 fi
25366 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25367 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25368 if test $ac_cv_c_bigendian = unknown; then
25369   { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
25370 echo "$as_me: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
25371 fi
25372 if test $ac_cv_c_bigendian = yes; then
25373   cat >>confdefs.h <<\_ACEOF
25374 #define WORDS_BIGENDIAN 1
25375 _ACEOF
25376
25377 fi
25378
25379
25380
25381
25382     ac_ext=cpp
25383 ac_cpp='$CXXCPP $CPPFLAGS'
25384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25387
25388
25389
25390 for ac_header in iostream
25391 do
25392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25396   echo $ECHO_N "(cached) $ECHO_C" >&6
25397 else
25398   cat >conftest.$ac_ext <<_ACEOF
25399 /* confdefs.h.  */
25400 _ACEOF
25401 cat confdefs.h >>conftest.$ac_ext
25402 cat >>conftest.$ac_ext <<_ACEOF
25403 /* end confdefs.h.  */
25404
25405
25406 #include <$ac_header>
25407 _ACEOF
25408 rm -f conftest.$ac_objext
25409 if { (ac_try="$ac_compile"
25410 case "(($ac_try" in
25411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25412   *) ac_try_echo=$ac_try;;
25413 esac
25414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25415   (eval "$ac_compile") 2>conftest.er1
25416   ac_status=$?
25417   grep -v '^ *+' conftest.er1 >conftest.err
25418   rm -f conftest.er1
25419   cat conftest.err >&5
25420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421   (exit $ac_status); } && {
25422          test -z "$ac_cxx_werror_flag" ||
25423          test ! -s conftest.err
25424        } && test -s conftest.$ac_objext; then
25425   eval "$as_ac_Header=yes"
25426 else
25427   echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25429
25430         eval "$as_ac_Header=no"
25431 fi
25432
25433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25434 fi
25435 ac_res=`eval echo '${'$as_ac_Header'}'`
25436                { echo "$as_me:$LINENO: result: $ac_res" >&5
25437 echo "${ECHO_T}$ac_res" >&6; }
25438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25439   cat >>confdefs.h <<_ACEOF
25440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25441 _ACEOF
25442
25443 fi
25444
25445 done
25446
25447
25448     if test "$ac_cv_header_iostream" = "yes" ; then
25449       :
25450     else
25451       cat >>confdefs.h <<\_ACEOF
25452 #define wxUSE_IOSTREAMH 1
25453 _ACEOF
25454
25455     fi
25456
25457     ac_ext=c
25458 ac_cpp='$CPP $CPPFLAGS'
25459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25462
25463
25464
25465
25466   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25467 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25468 if test "${wx_cv_explicit+set}" = set; then
25469   echo $ECHO_N "(cached) $ECHO_C" >&6
25470 else
25471
25472
25473     ac_ext=cpp
25474 ac_cpp='$CXXCPP $CPPFLAGS'
25475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25478
25479
25480             cat >conftest.$ac_ext <<_ACEOF
25481 /* confdefs.h.  */
25482 _ACEOF
25483 cat confdefs.h >>conftest.$ac_ext
25484 cat >>conftest.$ac_ext <<_ACEOF
25485 /* end confdefs.h.  */
25486
25487         class Foo { public: explicit Foo(int) {} };
25488
25489 int
25490 main ()
25491 {
25492
25493         return 0;
25494
25495   ;
25496   return 0;
25497 }
25498 _ACEOF
25499 rm -f conftest.$ac_objext
25500 if { (ac_try="$ac_compile"
25501 case "(($ac_try" in
25502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25503   *) ac_try_echo=$ac_try;;
25504 esac
25505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25506   (eval "$ac_compile") 2>conftest.er1
25507   ac_status=$?
25508   grep -v '^ *+' conftest.er1 >conftest.err
25509   rm -f conftest.er1
25510   cat conftest.err >&5
25511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512   (exit $ac_status); } && {
25513          test -z "$ac_cxx_werror_flag" ||
25514          test ! -s conftest.err
25515        } && test -s conftest.$ac_objext; then
25516
25517         cat >conftest.$ac_ext <<_ACEOF
25518 /* confdefs.h.  */
25519 _ACEOF
25520 cat confdefs.h >>conftest.$ac_ext
25521 cat >>conftest.$ac_ext <<_ACEOF
25522 /* end confdefs.h.  */
25523
25524                 class Foo { public: explicit Foo(int) {} };
25525                 static void TakeFoo(const Foo& foo) { }
25526
25527 int
25528 main ()
25529 {
25530
25531                 TakeFoo(17);
25532                 return 0;
25533
25534   ;
25535   return 0;
25536 }
25537 _ACEOF
25538 rm -f conftest.$ac_objext
25539 if { (ac_try="$ac_compile"
25540 case "(($ac_try" in
25541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25542   *) ac_try_echo=$ac_try;;
25543 esac
25544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25545   (eval "$ac_compile") 2>conftest.er1
25546   ac_status=$?
25547   grep -v '^ *+' conftest.er1 >conftest.err
25548   rm -f conftest.er1
25549   cat conftest.err >&5
25550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551   (exit $ac_status); } && {
25552          test -z "$ac_cxx_werror_flag" ||
25553          test ! -s conftest.err
25554        } && test -s conftest.$ac_objext; then
25555   wx_cv_explicit=no
25556 else
25557   echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25559
25560         wx_cv_explicit=yes
25561
25562 fi
25563
25564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25565
25566 else
25567   echo "$as_me: failed program was:" >&5
25568 sed 's/^/| /' conftest.$ac_ext >&5
25569
25570         wx_cv_explicit=no
25571
25572 fi
25573
25574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25575
25576     ac_ext=c
25577 ac_cpp='$CPP $CPPFLAGS'
25578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25581
25582
25583 fi
25584 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25585 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25586
25587   if test "$wx_cv_explicit" = "yes"; then
25588     cat >>confdefs.h <<\_ACEOF
25589 #define HAVE_EXPLICIT 1
25590 _ACEOF
25591
25592   fi
25593
25594
25595 if test "x$SUNCXX" = xyes; then
25596     CXXFLAGS="-features=tmplife $CXXFLAGS"
25597 fi
25598
25599 if test "x$SUNCC" = xyes; then
25600     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25601 fi
25602
25603 if test "x$SGICC" = "xyes"; then
25604     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25605 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25606 if test "${wx_cv_prog_sgicc744+set}" = set; then
25607   echo $ECHO_N "(cached) $ECHO_C" >&6
25608 else
25609
25610             cat >conftest.$ac_ext <<_ACEOF
25611 /* confdefs.h.  */
25612 _ACEOF
25613 cat confdefs.h >>conftest.$ac_ext
25614 cat >>conftest.$ac_ext <<_ACEOF
25615 /* end confdefs.h.  */
25616
25617 int
25618 main ()
25619 {
25620
25621                     #if _SGI_COMPILER_VERSION >= 744
25622                     chock me: mipsPro is 7.4.4 or later
25623                     #endif
25624
25625   ;
25626   return 0;
25627 }
25628 _ACEOF
25629 rm -f conftest.$ac_objext
25630 if { (ac_try="$ac_compile"
25631 case "(($ac_try" in
25632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25633   *) ac_try_echo=$ac_try;;
25634 esac
25635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636   (eval "$ac_compile") 2>conftest.er1
25637   ac_status=$?
25638   grep -v '^ *+' conftest.er1 >conftest.err
25639   rm -f conftest.er1
25640   cat conftest.err >&5
25641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642   (exit $ac_status); } && {
25643          test -z "$ac_c_werror_flag" ||
25644          test ! -s conftest.err
25645        } && test -s conftest.$ac_objext; then
25646   wx_cv_prog_sgicc744=no
25647 else
25648   echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25650
25651         wx_cv_prog_sgicc744=yes
25652
25653 fi
25654
25655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656
25657
25658 fi
25659 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25660 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25661
25662     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25663         CFLAGS="-woff 3970 $CFLAGS"
25664     fi
25665 fi
25666 if test "x$SGICXX" = "xyes"; then
25667     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25668 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25669 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25670   echo $ECHO_N "(cached) $ECHO_C" >&6
25671 else
25672
25673             ac_ext=cpp
25674 ac_cpp='$CXXCPP $CPPFLAGS'
25675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25678
25679             cat >conftest.$ac_ext <<_ACEOF
25680 /* confdefs.h.  */
25681 _ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h.  */
25685
25686 int
25687 main ()
25688 {
25689
25690                     #if _SGI_COMPILER_VERSION >= 744
25691                     chock me: mipsPro is 7.4.4 or later
25692                     #endif
25693
25694   ;
25695   return 0;
25696 }
25697 _ACEOF
25698 rm -f conftest.$ac_objext
25699 if { (ac_try="$ac_compile"
25700 case "(($ac_try" in
25701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702   *) ac_try_echo=$ac_try;;
25703 esac
25704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25705   (eval "$ac_compile") 2>conftest.er1
25706   ac_status=$?
25707   grep -v '^ *+' conftest.er1 >conftest.err
25708   rm -f conftest.er1
25709   cat conftest.err >&5
25710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711   (exit $ac_status); } && {
25712          test -z "$ac_cxx_werror_flag" ||
25713          test ! -s conftest.err
25714        } && test -s conftest.$ac_objext; then
25715   wx_cv_prog_sgicxx744=no
25716 else
25717   echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25719
25720         wx_cv_prog_sgicxx744=yes
25721
25722 fi
25723
25724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25725             ac_ext=c
25726 ac_cpp='$CPP $CPPFLAGS'
25727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25730
25731
25732
25733 fi
25734 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25735 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25736
25737     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25738         CXXFLAGS="-woff 3970 $CXXFLAGS"
25739     fi
25740 fi
25741
25742 if test "x$HPCC" = "xyes"; then
25743                     CFLAGS="+W 2011,2450 $CFLAGS"
25744 fi
25745 if test "x$HPCXX" = "xyes"; then
25746                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25747 fi
25748
25749 if test "x$COMPAQCXX" = "xyes"; then
25750                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25751 fi
25752
25753 ac_ext=cpp
25754 ac_cpp='$CXXCPP $CPPFLAGS'
25755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25758
25759
25760 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25761     if test "$wxUSE_UNICODE" = "yes"; then
25762         std_string="std::wstring"
25763         char_type="wchar_t"
25764     else
25765         std_string="std::string"
25766         char_type="char"
25767     fi
25768
25769         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25770 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25771 if test "${wx_cv_class_stdstring+set}" = set; then
25772   echo $ECHO_N "(cached) $ECHO_C" >&6
25773 else
25774
25775             cat >conftest.$ac_ext <<_ACEOF
25776 /* confdefs.h.  */
25777 _ACEOF
25778 cat confdefs.h >>conftest.$ac_ext
25779 cat >>conftest.$ac_ext <<_ACEOF
25780 /* end confdefs.h.  */
25781 #include <string>
25782 int
25783 main ()
25784 {
25785 $std_string foo;
25786   ;
25787   return 0;
25788 }
25789 _ACEOF
25790 rm -f conftest.$ac_objext
25791 if { (ac_try="$ac_compile"
25792 case "(($ac_try" in
25793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25794   *) ac_try_echo=$ac_try;;
25795 esac
25796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25797   (eval "$ac_compile") 2>conftest.er1
25798   ac_status=$?
25799   grep -v '^ *+' conftest.er1 >conftest.err
25800   rm -f conftest.er1
25801   cat conftest.err >&5
25802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803   (exit $ac_status); } && {
25804          test -z "$ac_cxx_werror_flag" ||
25805          test ! -s conftest.err
25806        } && test -s conftest.$ac_objext; then
25807   wx_cv_class_stdstring=yes
25808 else
25809   echo "$as_me: failed program was:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25811
25812         wx_cv_class_stdstring=no
25813
25814 fi
25815
25816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25817
25818
25819 fi
25820 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25821 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25822
25823     if test "$wx_cv_class_stdstring" = yes; then
25824         if test "$wxUSE_UNICODE" = "yes"; then
25825             cat >>confdefs.h <<\_ACEOF
25826 #define HAVE_STD_WSTRING 1
25827 _ACEOF
25828
25829         fi
25830                     else
25831         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25832 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25833 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25834   echo $ECHO_N "(cached) $ECHO_C" >&6
25835 else
25836
25837                 cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h.  */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h.  */
25843
25844                     #ifdef HAVE_WCHAR_H
25845                     #  ifdef __CYGWIN__
25846                     #    include <stddef.h>
25847                     #  endif
25848                     #  include <wchar.h>
25849                     #endif
25850                     #ifdef HAVE_STDLIB_H
25851                     #  include <stdlib.h>
25852                     #endif
25853                     #include <stdio.h>
25854                     #include <string>
25855
25856 int
25857 main ()
25858 {
25859 std::basic_string<$char_type> foo;
25860                      const $char_type* dummy = foo.c_str();
25861   ;
25862   return 0;
25863 }
25864 _ACEOF
25865 rm -f conftest.$ac_objext
25866 if { (ac_try="$ac_compile"
25867 case "(($ac_try" in
25868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869   *) ac_try_echo=$ac_try;;
25870 esac
25871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872   (eval "$ac_compile") 2>conftest.er1
25873   ac_status=$?
25874   grep -v '^ *+' conftest.er1 >conftest.err
25875   rm -f conftest.er1
25876   cat conftest.err >&5
25877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878   (exit $ac_status); } && {
25879          test -z "$ac_cxx_werror_flag" ||
25880          test ! -s conftest.err
25881        } && test -s conftest.$ac_objext; then
25882   wx_cv_class_stdbasicstring=yes
25883 else
25884   echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25886
25887         wx_cv_class_stdbasicstring=no
25888
25889 fi
25890
25891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25892
25893
25894 fi
25895 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25896 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25897
25898         if test "$wx_cv_class_stdbasicstring" != yes; then
25899             if test "$wxUSE_STL" = "yes"; then
25900                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25901 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25902    { (exit 1); exit 1; }; }
25903             elif test "$wxUSE_STD_STRING" = "yes"; then
25904                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25905 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25906    { (exit 1); exit 1; }; }
25907             else
25908                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25909 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25910                 wxUSE_STD_STRING=no
25911             fi
25912         fi
25913     fi
25914 fi
25915
25916 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25917     { echo "$as_me:$LINENO: checking for std::istream" >&5
25918 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25919 if test "${ac_cv_type_std__istream+set}" = set; then
25920   echo $ECHO_N "(cached) $ECHO_C" >&6
25921 else
25922   cat >conftest.$ac_ext <<_ACEOF
25923 /* confdefs.h.  */
25924 _ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h.  */
25928 #include <iostream>
25929
25930 typedef std::istream ac__type_new_;
25931 int
25932 main ()
25933 {
25934 if ((ac__type_new_ *) 0)
25935   return 0;
25936 if (sizeof (ac__type_new_))
25937   return 0;
25938   ;
25939   return 0;
25940 }
25941 _ACEOF
25942 rm -f conftest.$ac_objext
25943 if { (ac_try="$ac_compile"
25944 case "(($ac_try" in
25945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946   *) ac_try_echo=$ac_try;;
25947 esac
25948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25949   (eval "$ac_compile") 2>conftest.er1
25950   ac_status=$?
25951   grep -v '^ *+' conftest.er1 >conftest.err
25952   rm -f conftest.er1
25953   cat conftest.err >&5
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); } && {
25956          test -z "$ac_cxx_werror_flag" ||
25957          test ! -s conftest.err
25958        } && test -s conftest.$ac_objext; then
25959   ac_cv_type_std__istream=yes
25960 else
25961   echo "$as_me: failed program was:" >&5
25962 sed 's/^/| /' conftest.$ac_ext >&5
25963
25964         ac_cv_type_std__istream=no
25965 fi
25966
25967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25968 fi
25969 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25970 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25971 if test $ac_cv_type_std__istream = yes; then
25972
25973 cat >>confdefs.h <<_ACEOF
25974 #define HAVE_STD__ISTREAM 1
25975 _ACEOF
25976
25977
25978 else
25979   wxUSE_STD_IOSTREAM=no
25980 fi
25981 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25982 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25983 if test "${ac_cv_type_std__ostream+set}" = set; then
25984   echo $ECHO_N "(cached) $ECHO_C" >&6
25985 else
25986   cat >conftest.$ac_ext <<_ACEOF
25987 /* confdefs.h.  */
25988 _ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h.  */
25992 #include <iostream>
25993
25994 typedef std::ostream ac__type_new_;
25995 int
25996 main ()
25997 {
25998 if ((ac__type_new_ *) 0)
25999   return 0;
26000 if (sizeof (ac__type_new_))
26001   return 0;
26002   ;
26003   return 0;
26004 }
26005 _ACEOF
26006 rm -f conftest.$ac_objext
26007 if { (ac_try="$ac_compile"
26008 case "(($ac_try" in
26009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26010   *) ac_try_echo=$ac_try;;
26011 esac
26012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26013   (eval "$ac_compile") 2>conftest.er1
26014   ac_status=$?
26015   grep -v '^ *+' conftest.er1 >conftest.err
26016   rm -f conftest.er1
26017   cat conftest.err >&5
26018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); } && {
26020          test -z "$ac_cxx_werror_flag" ||
26021          test ! -s conftest.err
26022        } && test -s conftest.$ac_objext; then
26023   ac_cv_type_std__ostream=yes
26024 else
26025   echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26027
26028         ac_cv_type_std__ostream=no
26029 fi
26030
26031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26032 fi
26033 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
26034 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
26035 if test $ac_cv_type_std__ostream = yes; then
26036
26037 cat >>confdefs.h <<_ACEOF
26038 #define HAVE_STD__OSTREAM 1
26039 _ACEOF
26040
26041
26042 else
26043   wxUSE_STD_IOSTREAM=no
26044 fi
26045
26046
26047     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
26048         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
26049             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
26050 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
26051    { (exit 1); exit 1; }; }
26052         else
26053             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
26054 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
26055         fi
26056     fi
26057 fi
26058
26059 if test "$wxUSE_STL" = "yes"; then
26060         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26061 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26062 if test "${wx_cv_lib_stl+set}" = set; then
26063   echo $ECHO_N "(cached) $ECHO_C" >&6
26064 else
26065   cat >conftest.$ac_ext <<_ACEOF
26066 /* confdefs.h.  */
26067 _ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h.  */
26071 #include <string>
26072             #include <functional>
26073             #include <algorithm>
26074             #include <vector>
26075             #include <list>
26076 int
26077 main ()
26078 {
26079 std::vector<int> moo;
26080              std::list<int> foo;
26081              std::vector<int>::iterator it =
26082                  std::find_if(moo.begin(), moo.end(),
26083                               std::bind2nd(std::less<int>(), 3));
26084   ;
26085   return 0;
26086 }
26087 _ACEOF
26088 rm -f conftest.$ac_objext
26089 if { (ac_try="$ac_compile"
26090 case "(($ac_try" in
26091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092   *) ac_try_echo=$ac_try;;
26093 esac
26094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26095   (eval "$ac_compile") 2>conftest.er1
26096   ac_status=$?
26097   grep -v '^ *+' conftest.er1 >conftest.err
26098   rm -f conftest.er1
26099   cat conftest.err >&5
26100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101   (exit $ac_status); } && {
26102          test -z "$ac_cxx_werror_flag" ||
26103          test ! -s conftest.err
26104        } && test -s conftest.$ac_objext; then
26105   wx_cv_lib_stl=yes
26106 else
26107   echo "$as_me: failed program was:" >&5
26108 sed 's/^/| /' conftest.$ac_ext >&5
26109
26110         wx_cv_lib_stl=no
26111
26112 fi
26113
26114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26115
26116 fi
26117 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26118 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26119
26120     if test "$wx_cv_lib_stl" != yes; then
26121          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26122 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26123    { (exit 1); exit 1; }; }
26124     fi
26125
26126         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26127 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26128 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26129   echo $ECHO_N "(cached) $ECHO_C" >&6
26130 else
26131   cat >conftest.$ac_ext <<_ACEOF
26132 /* confdefs.h.  */
26133 _ACEOF
26134 cat confdefs.h >>conftest.$ac_ext
26135 cat >>conftest.$ac_ext <<_ACEOF
26136 /* end confdefs.h.  */
26137 #include <string>
26138 int
26139 main ()
26140 {
26141 std::string foo, bar;
26142             foo.compare(bar);
26143             foo.compare(1, 1, bar);
26144             foo.compare(1, 1, bar, 1, 1);
26145             foo.compare("");
26146             foo.compare(1, 1, "");
26147             foo.compare(1, 1, "", 2);
26148   ;
26149   return 0;
26150 }
26151 _ACEOF
26152 rm -f conftest.$ac_objext
26153 if { (ac_try="$ac_compile"
26154 case "(($ac_try" in
26155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26156   *) ac_try_echo=$ac_try;;
26157 esac
26158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26159   (eval "$ac_compile") 2>conftest.er1
26160   ac_status=$?
26161   grep -v '^ *+' conftest.er1 >conftest.err
26162   rm -f conftest.er1
26163   cat conftest.err >&5
26164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165   (exit $ac_status); } && {
26166          test -z "$ac_cxx_werror_flag" ||
26167          test ! -s conftest.err
26168        } && test -s conftest.$ac_objext; then
26169   wx_cv_func_stdstring_compare=yes
26170 else
26171   echo "$as_me: failed program was:" >&5
26172 sed 's/^/| /' conftest.$ac_ext >&5
26173
26174         wx_cv_func_stdstring_compare=no
26175
26176 fi
26177
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179
26180 fi
26181 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26182 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26183
26184     if test "$wx_cv_func_stdstring_compare" = yes; then
26185         cat >>confdefs.h <<\_ACEOF
26186 #define HAVE_STD_STRING_COMPARE 1
26187 _ACEOF
26188
26189     fi
26190
26191     if test "$wx_cv_class_gnuhashmapset" = yes; then
26192          cat >>confdefs.h <<\_ACEOF
26193 #define HAVE_EXT_HASH_MAP 1
26194 _ACEOF
26195
26196          cat >>confdefs.h <<\_ACEOF
26197 #define HAVE_GNU_CXX_HASH_MAP 1
26198 _ACEOF
26199
26200     fi
26201
26202     { echo "$as_me:$LINENO: checking for unordered_map" >&5
26203 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
26204 if test "${ac_cv_header_unordered_map+set}" = set; then
26205   echo $ECHO_N "(cached) $ECHO_C" >&6
26206 else
26207   cat >conftest.$ac_ext <<_ACEOF
26208 /* confdefs.h.  */
26209 _ACEOF
26210 cat confdefs.h >>conftest.$ac_ext
26211 cat >>conftest.$ac_ext <<_ACEOF
26212 /* end confdefs.h.  */
26213
26214
26215
26216 #include <unordered_map>
26217 _ACEOF
26218 rm -f conftest.$ac_objext
26219 if { (ac_try="$ac_compile"
26220 case "(($ac_try" in
26221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26222   *) ac_try_echo=$ac_try;;
26223 esac
26224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26225   (eval "$ac_compile") 2>conftest.er1
26226   ac_status=$?
26227   grep -v '^ *+' conftest.er1 >conftest.err
26228   rm -f conftest.er1
26229   cat conftest.err >&5
26230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231   (exit $ac_status); } && {
26232          test -z "$ac_cxx_werror_flag" ||
26233          test ! -s conftest.err
26234        } && test -s conftest.$ac_objext; then
26235   ac_cv_header_unordered_map=yes
26236 else
26237   echo "$as_me: failed program was:" >&5
26238 sed 's/^/| /' conftest.$ac_ext >&5
26239
26240         ac_cv_header_unordered_map=no
26241 fi
26242
26243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26244 fi
26245 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
26246 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
26247 if test $ac_cv_header_unordered_map = yes; then
26248   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
26249 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
26250 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
26251   echo $ECHO_N "(cached) $ECHO_C" >&6
26252 else
26253   cat >conftest.$ac_ext <<_ACEOF
26254 /* confdefs.h.  */
26255 _ACEOF
26256 cat confdefs.h >>conftest.$ac_ext
26257 cat >>conftest.$ac_ext <<_ACEOF
26258 /* end confdefs.h.  */
26259 #include <unordered_map>
26260                 #include <unordered_set>
26261 int
26262 main ()
26263 {
26264 std::unordered_map<double*, char*> test1;
26265                  std::unordered_set<char*> test2;
26266   ;
26267   return 0;
26268 }
26269 _ACEOF
26270 rm -f conftest.$ac_objext
26271 if { (ac_try="$ac_compile"
26272 case "(($ac_try" in
26273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26274   *) ac_try_echo=$ac_try;;
26275 esac
26276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26277   (eval "$ac_compile") 2>conftest.er1
26278   ac_status=$?
26279   grep -v '^ *+' conftest.er1 >conftest.err
26280   rm -f conftest.er1
26281   cat conftest.err >&5
26282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283   (exit $ac_status); } && {
26284          test -z "$ac_cxx_werror_flag" ||
26285          test ! -s conftest.err
26286        } && test -s conftest.$ac_objext; then
26287   wx_cv_class_stdunorderedmapset=yes
26288 else
26289   echo "$as_me: failed program was:" >&5
26290 sed 's/^/| /' conftest.$ac_ext >&5
26291
26292         wx_cv_class_stdunorderedmapset=no
26293 fi
26294
26295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26296
26297
26298 fi
26299 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
26300 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
26301 fi
26302
26303
26304
26305     if test "$wx_cv_class_stdunorderedmapset" = yes; then
26306          cat >>confdefs.h <<\_ACEOF
26307 #define HAVE_STD_UNORDERED_MAP 1
26308 _ACEOF
26309
26310          cat >>confdefs.h <<\_ACEOF
26311 #define HAVE_STD_UNORDERED_SET 1
26312 _ACEOF
26313
26314     else
26315         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
26316 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
26317 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
26318   echo $ECHO_N "(cached) $ECHO_C" >&6
26319 else
26320   cat >conftest.$ac_ext <<_ACEOF
26321 /* confdefs.h.  */
26322 _ACEOF
26323 cat confdefs.h >>conftest.$ac_ext
26324 cat >>conftest.$ac_ext <<_ACEOF
26325 /* end confdefs.h.  */
26326
26327
26328
26329 #include <tr1/unordered_map>
26330 _ACEOF
26331 rm -f conftest.$ac_objext
26332 if { (ac_try="$ac_compile"
26333 case "(($ac_try" in
26334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26335   *) ac_try_echo=$ac_try;;
26336 esac
26337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26338   (eval "$ac_compile") 2>conftest.er1
26339   ac_status=$?
26340   grep -v '^ *+' conftest.er1 >conftest.err
26341   rm -f conftest.er1
26342   cat conftest.err >&5
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); } && {
26345          test -z "$ac_cxx_werror_flag" ||
26346          test ! -s conftest.err
26347        } && test -s conftest.$ac_objext; then
26348   ac_cv_header_tr1_unordered_map=yes
26349 else
26350   echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26352
26353         ac_cv_header_tr1_unordered_map=no
26354 fi
26355
26356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26357 fi
26358 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
26359 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
26360 if test $ac_cv_header_tr1_unordered_map = yes; then
26361   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
26362 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
26363 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
26364   echo $ECHO_N "(cached) $ECHO_C" >&6
26365 else
26366   cat >conftest.$ac_ext <<_ACEOF
26367 /* confdefs.h.  */
26368 _ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h.  */
26372 #include <tr1/unordered_map>
26373                     #include <tr1/unordered_set>
26374 int
26375 main ()
26376 {
26377 std::tr1::unordered_map<double*, char*> test1;
26378                      std::tr1::unordered_set<char*> test2;
26379             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
26380             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
26381             #endif
26382   ;
26383   return 0;
26384 }
26385 _ACEOF
26386 rm -f conftest.$ac_objext
26387 if { (ac_try="$ac_compile"
26388 case "(($ac_try" in
26389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390   *) ac_try_echo=$ac_try;;
26391 esac
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393   (eval "$ac_compile") 2>conftest.er1
26394   ac_status=$?
26395   grep -v '^ *+' conftest.er1 >conftest.err
26396   rm -f conftest.er1
26397   cat conftest.err >&5
26398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399   (exit $ac_status); } && {
26400          test -z "$ac_cxx_werror_flag" ||
26401          test ! -s conftest.err
26402        } && test -s conftest.$ac_objext; then
26403   wx_cv_class_tr1unorderedmapset=yes
26404 else
26405   echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26407
26408         wx_cv_class_tr1unorderedmapset=no
26409 fi
26410
26411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26412
26413
26414 fi
26415 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26416 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26417 fi
26418
26419
26420
26421         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26422             cat >>confdefs.h <<\_ACEOF
26423 #define HAVE_TR1_UNORDERED_MAP 1
26424 _ACEOF
26425
26426             cat >>confdefs.h <<\_ACEOF
26427 #define HAVE_TR1_UNORDERED_SET 1
26428 _ACEOF
26429
26430         else
26431                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26432 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26433 if test "${ac_cv_header_hash_map+set}" = set; then
26434   echo $ECHO_N "(cached) $ECHO_C" >&6
26435 else
26436   cat >conftest.$ac_ext <<_ACEOF
26437 /* confdefs.h.  */
26438 _ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h.  */
26442
26443
26444
26445 #include <hash_map>
26446 _ACEOF
26447 rm -f conftest.$ac_objext
26448 if { (ac_try="$ac_compile"
26449 case "(($ac_try" in
26450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26451   *) ac_try_echo=$ac_try;;
26452 esac
26453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26454   (eval "$ac_compile") 2>conftest.er1
26455   ac_status=$?
26456   grep -v '^ *+' conftest.er1 >conftest.err
26457   rm -f conftest.er1
26458   cat conftest.err >&5
26459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460   (exit $ac_status); } && {
26461          test -z "$ac_cxx_werror_flag" ||
26462          test ! -s conftest.err
26463        } && test -s conftest.$ac_objext; then
26464   ac_cv_header_hash_map=yes
26465 else
26466   echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26468
26469         ac_cv_header_hash_map=no
26470 fi
26471
26472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26473 fi
26474 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26475 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26476 if test $ac_cv_header_hash_map = yes; then
26477   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26478 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26479 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26480   echo $ECHO_N "(cached) $ECHO_C" >&6
26481 else
26482   cat >conftest.$ac_ext <<_ACEOF
26483 /* confdefs.h.  */
26484 _ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h.  */
26488 #include <hash_map>
26489                         #include <hash_set>
26490 int
26491 main ()
26492 {
26493 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26494                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26495   ;
26496   return 0;
26497 }
26498 _ACEOF
26499 rm -f conftest.$ac_objext
26500 if { (ac_try="$ac_compile"
26501 case "(($ac_try" in
26502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26503   *) ac_try_echo=$ac_try;;
26504 esac
26505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26506   (eval "$ac_compile") 2>conftest.er1
26507   ac_status=$?
26508   grep -v '^ *+' conftest.er1 >conftest.err
26509   rm -f conftest.er1
26510   cat conftest.err >&5
26511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512   (exit $ac_status); } && {
26513          test -z "$ac_cxx_werror_flag" ||
26514          test ! -s conftest.err
26515        } && test -s conftest.$ac_objext; then
26516   wx_cv_class_stdhashmapset=yes
26517 else
26518   echo "$as_me: failed program was:" >&5
26519 sed 's/^/| /' conftest.$ac_ext >&5
26520
26521         wx_cv_class_stdhashmapset=no
26522 fi
26523
26524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26525
26526
26527 fi
26528 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26529 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26530 fi
26531
26532
26533
26534             if test "$wx_cv_class_stdhashmapset" = yes; then
26535                 cat >>confdefs.h <<\_ACEOF
26536 #define HAVE_HASH_MAP 1
26537 _ACEOF
26538
26539                 cat >>confdefs.h <<\_ACEOF
26540 #define HAVE_STD_HASH_MAP 1
26541 _ACEOF
26542
26543             fi
26544
26545             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26546 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26547 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26548   echo $ECHO_N "(cached) $ECHO_C" >&6
26549 else
26550   cat >conftest.$ac_ext <<_ACEOF
26551 /* confdefs.h.  */
26552 _ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h.  */
26556
26557
26558
26559 #include <ext/hash_map>
26560 _ACEOF
26561 rm -f conftest.$ac_objext
26562 if { (ac_try="$ac_compile"
26563 case "(($ac_try" in
26564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26565   *) ac_try_echo=$ac_try;;
26566 esac
26567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26568   (eval "$ac_compile") 2>conftest.er1
26569   ac_status=$?
26570   grep -v '^ *+' conftest.er1 >conftest.err
26571   rm -f conftest.er1
26572   cat conftest.err >&5
26573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); } && {
26575          test -z "$ac_cxx_werror_flag" ||
26576          test ! -s conftest.err
26577        } && test -s conftest.$ac_objext; then
26578   ac_cv_header_ext_hash_map=yes
26579 else
26580   echo "$as_me: failed program was:" >&5
26581 sed 's/^/| /' conftest.$ac_ext >&5
26582
26583         ac_cv_header_ext_hash_map=no
26584 fi
26585
26586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26587 fi
26588 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26589 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26590 if test $ac_cv_header_ext_hash_map = yes; then
26591   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26592 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26593 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26594   echo $ECHO_N "(cached) $ECHO_C" >&6
26595 else
26596   cat >conftest.$ac_ext <<_ACEOF
26597 /* confdefs.h.  */
26598 _ACEOF
26599 cat confdefs.h >>conftest.$ac_ext
26600 cat >>conftest.$ac_ext <<_ACEOF
26601 /* end confdefs.h.  */
26602 #include <ext/hash_map>
26603                         #include <ext/hash_set>
26604 int
26605 main ()
26606 {
26607 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26608                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26609   ;
26610   return 0;
26611 }
26612 _ACEOF
26613 rm -f conftest.$ac_objext
26614 if { (ac_try="$ac_compile"
26615 case "(($ac_try" in
26616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26617   *) ac_try_echo=$ac_try;;
26618 esac
26619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26620   (eval "$ac_compile") 2>conftest.er1
26621   ac_status=$?
26622   grep -v '^ *+' conftest.er1 >conftest.err
26623   rm -f conftest.er1
26624   cat conftest.err >&5
26625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626   (exit $ac_status); } && {
26627          test -z "$ac_cxx_werror_flag" ||
26628          test ! -s conftest.err
26629        } && test -s conftest.$ac_objext; then
26630   wx_cv_class_gnuhashmapset=yes
26631 else
26632   echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26634
26635         wx_cv_class_gnuhashmapset=no
26636 fi
26637
26638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26639
26640
26641 fi
26642 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26643 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26644 fi
26645
26646
26647
26648         fi
26649     fi
26650 fi
26651
26652 ac_ext=cpp
26653 ac_cpp='$CXXCPP $CPPFLAGS'
26654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26657 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26658 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26659 if test -z "$CXXCPP"; then
26660   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26661   echo $ECHO_N "(cached) $ECHO_C" >&6
26662 else
26663       # Double quotes because CXXCPP needs to be expanded
26664     for CXXCPP in "$CXX -E" "/lib/cpp"
26665     do
26666       ac_preproc_ok=false
26667 for ac_cxx_preproc_warn_flag in '' yes
26668 do
26669   # Use a header file that comes with gcc, so configuring glibc
26670   # with a fresh cross-compiler works.
26671   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26672   # <limits.h> exists even on freestanding compilers.
26673   # On the NeXT, cc -E runs the code through the compiler's parser,
26674   # not just through cpp. "Syntax error" is here to catch this case.
26675   cat >conftest.$ac_ext <<_ACEOF
26676 /* confdefs.h.  */
26677 _ACEOF
26678 cat confdefs.h >>conftest.$ac_ext
26679 cat >>conftest.$ac_ext <<_ACEOF
26680 /* end confdefs.h.  */
26681 #ifdef __STDC__
26682 # include <limits.h>
26683 #else
26684 # include <assert.h>
26685 #endif
26686                      Syntax error
26687 _ACEOF
26688 if { (ac_try="$ac_cpp conftest.$ac_ext"
26689 case "(($ac_try" in
26690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26691   *) ac_try_echo=$ac_try;;
26692 esac
26693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26695   ac_status=$?
26696   grep -v '^ *+' conftest.er1 >conftest.err
26697   rm -f conftest.er1
26698   cat conftest.err >&5
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); } >/dev/null && {
26701          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26702          test ! -s conftest.err
26703        }; then
26704   :
26705 else
26706   echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26708
26709   # Broken: fails on valid input.
26710 continue
26711 fi
26712
26713 rm -f conftest.err conftest.$ac_ext
26714
26715   # OK, works on sane cases.  Now check whether nonexistent headers
26716   # can be detected and how.
26717   cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h.  */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h.  */
26723 #include <ac_nonexistent.h>
26724 _ACEOF
26725 if { (ac_try="$ac_cpp conftest.$ac_ext"
26726 case "(($ac_try" in
26727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728   *) ac_try_echo=$ac_try;;
26729 esac
26730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26732   ac_status=$?
26733   grep -v '^ *+' conftest.er1 >conftest.err
26734   rm -f conftest.er1
26735   cat conftest.err >&5
26736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737   (exit $ac_status); } >/dev/null && {
26738          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26739          test ! -s conftest.err
26740        }; then
26741   # Broken: success on invalid input.
26742 continue
26743 else
26744   echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26746
26747   # Passes both tests.
26748 ac_preproc_ok=:
26749 break
26750 fi
26751
26752 rm -f conftest.err conftest.$ac_ext
26753
26754 done
26755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26756 rm -f conftest.err conftest.$ac_ext
26757 if $ac_preproc_ok; then
26758   break
26759 fi
26760
26761     done
26762     ac_cv_prog_CXXCPP=$CXXCPP
26763
26764 fi
26765   CXXCPP=$ac_cv_prog_CXXCPP
26766 else
26767   ac_cv_prog_CXXCPP=$CXXCPP
26768 fi
26769 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26770 echo "${ECHO_T}$CXXCPP" >&6; }
26771 ac_preproc_ok=false
26772 for ac_cxx_preproc_warn_flag in '' yes
26773 do
26774   # Use a header file that comes with gcc, so configuring glibc
26775   # with a fresh cross-compiler works.
26776   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26777   # <limits.h> exists even on freestanding compilers.
26778   # On the NeXT, cc -E runs the code through the compiler's parser,
26779   # not just through cpp. "Syntax error" is here to catch this case.
26780   cat >conftest.$ac_ext <<_ACEOF
26781 /* confdefs.h.  */
26782 _ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h.  */
26786 #ifdef __STDC__
26787 # include <limits.h>
26788 #else
26789 # include <assert.h>
26790 #endif
26791                      Syntax error
26792 _ACEOF
26793 if { (ac_try="$ac_cpp conftest.$ac_ext"
26794 case "(($ac_try" in
26795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796   *) ac_try_echo=$ac_try;;
26797 esac
26798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26800   ac_status=$?
26801   grep -v '^ *+' conftest.er1 >conftest.err
26802   rm -f conftest.er1
26803   cat conftest.err >&5
26804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805   (exit $ac_status); } >/dev/null && {
26806          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26807          test ! -s conftest.err
26808        }; then
26809   :
26810 else
26811   echo "$as_me: failed program was:" >&5
26812 sed 's/^/| /' conftest.$ac_ext >&5
26813
26814   # Broken: fails on valid input.
26815 continue
26816 fi
26817
26818 rm -f conftest.err conftest.$ac_ext
26819
26820   # OK, works on sane cases.  Now check whether nonexistent headers
26821   # can be detected and how.
26822   cat >conftest.$ac_ext <<_ACEOF
26823 /* confdefs.h.  */
26824 _ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h.  */
26828 #include <ac_nonexistent.h>
26829 _ACEOF
26830 if { (ac_try="$ac_cpp conftest.$ac_ext"
26831 case "(($ac_try" in
26832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833   *) ac_try_echo=$ac_try;;
26834 esac
26835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26837   ac_status=$?
26838   grep -v '^ *+' conftest.er1 >conftest.err
26839   rm -f conftest.er1
26840   cat conftest.err >&5
26841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842   (exit $ac_status); } >/dev/null && {
26843          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26844          test ! -s conftest.err
26845        }; then
26846   # Broken: success on invalid input.
26847 continue
26848 else
26849   echo "$as_me: failed program was:" >&5
26850 sed 's/^/| /' conftest.$ac_ext >&5
26851
26852   # Passes both tests.
26853 ac_preproc_ok=:
26854 break
26855 fi
26856
26857 rm -f conftest.err conftest.$ac_ext
26858
26859 done
26860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26861 rm -f conftest.err conftest.$ac_ext
26862 if $ac_preproc_ok; then
26863   :
26864 else
26865   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26866 See \`config.log' for more details." >&5
26867 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26868 See \`config.log' for more details." >&2;}
26869    { (exit 1); exit 1; }; }
26870 fi
26871
26872 ac_ext=cpp
26873 ac_cpp='$CXXCPP $CPPFLAGS'
26874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26877
26878
26879
26880
26881 for ac_header in type_traits tr1/type_traits
26882 do
26883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26885   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26888   echo $ECHO_N "(cached) $ECHO_C" >&6
26889 fi
26890 ac_res=`eval echo '${'$as_ac_Header'}'`
26891                { echo "$as_me:$LINENO: result: $ac_res" >&5
26892 echo "${ECHO_T}$ac_res" >&6; }
26893 else
26894   # Is the header compilable?
26895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26897 cat >conftest.$ac_ext <<_ACEOF
26898 /* confdefs.h.  */
26899 _ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h.  */
26903 $ac_includes_default
26904 #include <$ac_header>
26905 _ACEOF
26906 rm -f conftest.$ac_objext
26907 if { (ac_try="$ac_compile"
26908 case "(($ac_try" in
26909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26910   *) ac_try_echo=$ac_try;;
26911 esac
26912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26913   (eval "$ac_compile") 2>conftest.er1
26914   ac_status=$?
26915   grep -v '^ *+' conftest.er1 >conftest.err
26916   rm -f conftest.er1
26917   cat conftest.err >&5
26918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); } && {
26920          test -z "$ac_cxx_werror_flag" ||
26921          test ! -s conftest.err
26922        } && test -s conftest.$ac_objext; then
26923   ac_header_compiler=yes
26924 else
26925   echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26927
26928         ac_header_compiler=no
26929 fi
26930
26931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26933 echo "${ECHO_T}$ac_header_compiler" >&6; }
26934
26935 # Is the header present?
26936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26938 cat >conftest.$ac_ext <<_ACEOF
26939 /* confdefs.h.  */
26940 _ACEOF
26941 cat confdefs.h >>conftest.$ac_ext
26942 cat >>conftest.$ac_ext <<_ACEOF
26943 /* end confdefs.h.  */
26944 #include <$ac_header>
26945 _ACEOF
26946 if { (ac_try="$ac_cpp conftest.$ac_ext"
26947 case "(($ac_try" in
26948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26949   *) ac_try_echo=$ac_try;;
26950 esac
26951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26953   ac_status=$?
26954   grep -v '^ *+' conftest.er1 >conftest.err
26955   rm -f conftest.er1
26956   cat conftest.err >&5
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); } >/dev/null && {
26959          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26960          test ! -s conftest.err
26961        }; then
26962   ac_header_preproc=yes
26963 else
26964   echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26966
26967   ac_header_preproc=no
26968 fi
26969
26970 rm -f conftest.err conftest.$ac_ext
26971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26972 echo "${ECHO_T}$ac_header_preproc" >&6; }
26973
26974 # So?  What about this header?
26975 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26976   yes:no: )
26977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26981     ac_header_preproc=yes
26982     ;;
26983   no:yes:* )
26984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26996     ( cat <<\_ASBOX
26997 ## ----------------------------------------- ##
26998 ## Report this to wx-dev@lists.wxwidgets.org ##
26999 ## ----------------------------------------- ##
27000 _ASBOX
27001      ) | sed "s/^/$as_me: WARNING:     /" >&2
27002     ;;
27003 esac
27004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27007   echo $ECHO_N "(cached) $ECHO_C" >&6
27008 else
27009   eval "$as_ac_Header=\$ac_header_preproc"
27010 fi
27011 ac_res=`eval echo '${'$as_ac_Header'}'`
27012                { echo "$as_me:$LINENO: result: $ac_res" >&5
27013 echo "${ECHO_T}$ac_res" >&6; }
27014
27015 fi
27016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27017   cat >>confdefs.h <<_ACEOF
27018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27019 _ACEOF
27020
27021 fi
27022
27023 done
27024
27025
27026
27027
27028   if test -n "$GCC"; then
27029     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
27030 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
27031     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
27032   echo $ECHO_N "(cached) $ECHO_C" >&6
27033 else
27034
27035       cat >conftest.$ac_ext <<_ACEOF
27036 /* confdefs.h.  */
27037 _ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h.  */
27041
27042 int
27043 main ()
27044 {
27045
27046           unsigned int value=0;
27047           /* wxAtomicInc doesn't use return value here */
27048           __sync_fetch_and_add(&value, 2);
27049           __sync_sub_and_fetch(&value, 1);
27050           /* but wxAtomicDec does, so mimic that: */
27051           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
27052
27053   ;
27054   return 0;
27055 }
27056 _ACEOF
27057 rm -f conftest.$ac_objext conftest$ac_exeext
27058 if { (ac_try="$ac_link"
27059 case "(($ac_try" in
27060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27061   *) ac_try_echo=$ac_try;;
27062 esac
27063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27064   (eval "$ac_link") 2>conftest.er1
27065   ac_status=$?
27066   grep -v '^ *+' conftest.er1 >conftest.err
27067   rm -f conftest.er1
27068   cat conftest.err >&5
27069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070   (exit $ac_status); } && {
27071          test -z "$ac_cxx_werror_flag" ||
27072          test ! -s conftest.err
27073        } && test -s conftest$ac_exeext &&
27074        $as_test_x conftest$ac_exeext; then
27075   wx_cv_cc_gcc_atomic_builtins=yes
27076 else
27077   echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27079
27080         wx_cv_cc_gcc_atomic_builtins=no
27081 fi
27082
27083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27084       conftest$ac_exeext conftest.$ac_ext
27085
27086 fi
27087
27088     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
27089 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
27090     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
27091       cat >>confdefs.h <<\_ACEOF
27092 #define HAVE_GCC_ATOMIC_BUILTINS 1
27093 _ACEOF
27094
27095     fi
27096   fi
27097
27098
27099 ac_ext=c
27100 ac_cpp='$CPP $CPPFLAGS'
27101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27104
27105
27106
27107 SEARCH_INCLUDE="\
27108     /usr/local/include        \
27109     /usr/local/X11/include    \
27110     /usr/local/include/X11    \
27111     /usr/local/X11R7/include  \
27112     /usr/local/X11R6/include  \
27113     /usr/local/include/X11R7  \
27114     /usr/local/include/X11R6  \
27115                               \
27116     /usr/Motif-2.1/include    \
27117     /usr/Motif-1.2/include    \
27118     /usr/include/Motif1.2     \
27119                               \
27120     /usr/dt/include           \
27121     /usr/openwin/include      \
27122                               \
27123     /usr/include/Xm           \
27124                               \
27125     /usr/X11R7/include        \
27126     /usr/X11R6/include        \
27127     /usr/X11R6.4/include      \
27128                               \
27129     /usr/include/X11R7        \
27130     /usr/include/X11R6        \
27131                               \
27132     /usr/X11/include          \
27133     /usr/include/X11          \
27134                               \
27135     /usr/XFree86/include/X11  \
27136     /usr/pkg/include          \
27137                               \
27138     /usr/local/X1R5/include  \
27139     /usr/local/include/X11R5  \
27140     /usr/X11R5/include        \
27141     /usr/include/X11R5        \
27142                               \
27143     /usr/local/X11R4/include  \
27144     /usr/local/include/X11R4  \
27145     /usr/X11R4/include        \
27146     /usr/include/X11R4        \
27147                               \
27148     /usr/openwin/share/include"
27149
27150 { echo "$as_me:$LINENO: checking for libraries directories" >&5
27151 echo $ECHO_N "checking for libraries directories... $ECHO_C" >&6; }
27152
27153 case "${host}" in
27154     *-*-irix6* )
27155         if test "${wx_cv_std_libpath+set}" = set; then
27156   echo $ECHO_N "(cached) $ECHO_C" >&6
27157 else
27158
27159                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27160                     for e in a so sl dylib dll.a; do
27161                         libc="$d/libc.$e"
27162                         if test -f $libc; then
27163                             save_LIBS="$LIBS"
27164                             LIBS="$libc"
27165                             cat >conftest.$ac_ext <<_ACEOF
27166
27167                                     /* confdefs.h.  */
27168 _ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h.  */
27172 int main() { return 0; }
27173
27174 _ACEOF
27175 rm -f conftest.$ac_objext conftest$ac_exeext
27176 if { (ac_try="$ac_link"
27177 case "(($ac_try" in
27178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179   *) ac_try_echo=$ac_try;;
27180 esac
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182   (eval "$ac_link") 2>conftest.er1
27183   ac_status=$?
27184   grep -v '^ *+' conftest.er1 >conftest.err
27185   rm -f conftest.er1
27186   cat conftest.err >&5
27187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188   (exit $ac_status); } && {
27189          test -z "$ac_c_werror_flag" ||
27190          test ! -s conftest.err
27191        } && test -s conftest$ac_exeext &&
27192        $as_test_x conftest$ac_exeext; then
27193   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27194 else
27195   echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27197
27198
27199 fi
27200
27201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27202       conftest$ac_exeext conftest.$ac_ext
27203                             LIBS="$save_LIBS"
27204                             if test "x$wx_cv_std_libpath" != "x"; then
27205                                 break 2
27206                             fi
27207                         fi
27208                     done
27209                 done
27210
27211
27212 fi
27213
27214         ;;
27215
27216     *-*-solaris2* )
27217                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27218             wx_cv_std_libpath="lib/64"
27219         fi
27220         ;;
27221
27222     *-*-linux* )
27223                                         if test "$ac_cv_sizeof_void_p" = 8; then
27224             if test -d "/usr/lib/`uname -m`-linux-gnu"; then
27225                 wx_cv_std_libfullpath="/usr/lib/`uname -m`-linux-gnu"
27226             elif test -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27227                 wx_cv_std_libpath="lib64"
27228             fi
27229         else
27230             case "${host}" in
27231                 i*86-*-linux* )
27232                     if test -d '/usr/lib/i386-linux-gnu'; then
27233                         wx_cv_std_libfullpath='/usr/lib/i386-linux-gnu'
27234                     fi
27235             esac
27236         fi
27237
27238                                 if test -n "$wx_cv_std_libfullpath" -a -d "/usr/lib"; then
27239             wx_cv_std_libfullpath="$wx_cv_std_libfullpath /usr/lib"
27240         fi
27241         ;;
27242 esac
27243
27244 if test -z "$wx_cv_std_libpath"; then
27245     wx_cv_std_libpath="lib"
27246 fi
27247
27248 if test -z "$wx_cv_std_libfullpath"; then
27249     wx_cv_std_libfullpath="/usr/$wx_cv_std_libpath"
27250 fi
27251
27252
27253 { echo "$as_me:$LINENO: result: $wx_cv_std_libfullpath" >&5
27254 echo "${ECHO_T}$wx_cv_std_libfullpath" >&6; }
27255
27256 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` $wx_cv_std_libfullpath"
27257
27258 if test "$build" != "$host" -a "$GCC" = yes; then
27259                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27260         cross_root=`dirname $cross_root`
27261         cross_root=`dirname $cross_root`
27262
27263                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27264         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27265         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27266
27267                 if test -z "$PKG_CONFIG_PATH"; then
27268             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27269             export PKG_CONFIG_PATH
27270         fi
27271
27272                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27273
27274 ac_find_includes=
27275 for ac_dir in $SEARCH_INCLUDE /usr/include
27276   do
27277     if test -f "$ac_dir/X11/Intrinsic.h"; then
27278       ac_find_includes=$ac_dir
27279       break
27280     fi
27281   done
27282
27283             x_includes=$ac_find_includes
27284         fi
27285         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27286
27287   ac_find_libraries=
27288   for ac_dir in $SEARCH_LIB
27289   do
27290     for ac_extension in a so sl dylib dll.a; do
27291       if test -f "$ac_dir/libXt.$ac_extension"; then
27292         ac_find_libraries=$ac_dir
27293         break 2
27294       fi
27295     done
27296   done
27297
27298             x_libraries=$ac_find_libraries
27299         fi
27300     fi
27301 fi
27302
27303
27304 cat >confcache <<\_ACEOF
27305 # This file is a shell script that caches the results of configure
27306 # tests run on this system so they can be shared between configure
27307 # scripts and configure runs, see configure's option --config-cache.
27308 # It is not useful on other systems.  If it contains results you don't
27309 # want to keep, you may remove or edit it.
27310 #
27311 # config.status only pays attention to the cache file if you give it
27312 # the --recheck option to rerun configure.
27313 #
27314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27316 # following values.
27317
27318 _ACEOF
27319
27320 # The following way of writing the cache mishandles newlines in values,
27321 # but we know of no workaround that is simple, portable, and efficient.
27322 # So, we kill variables containing newlines.
27323 # Ultrix sh set writes to stderr and can't be redirected directly,
27324 # and sets the high bit in the cache file unless we assign to the vars.
27325 (
27326   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27327     eval ac_val=\$$ac_var
27328     case $ac_val in #(
27329     *${as_nl}*)
27330       case $ac_var in #(
27331       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27332 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27333       esac
27334       case $ac_var in #(
27335       _ | IFS | as_nl) ;; #(
27336       *) $as_unset $ac_var ;;
27337       esac ;;
27338     esac
27339   done
27340
27341   (set) 2>&1 |
27342     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27343     *${as_nl}ac_space=\ *)
27344       # `set' does not quote correctly, so add quotes (double-quote
27345       # substitution turns \\\\ into \\, and sed turns \\ into \).
27346       sed -n \
27347         "s/'/'\\\\''/g;
27348           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27349       ;; #(
27350     *)
27351       # `set' quotes correctly as required by POSIX, so do not add quotes.
27352       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27353       ;;
27354     esac |
27355     sort
27356 ) |
27357   sed '
27358      /^ac_cv_env_/b end
27359      t clear
27360      :clear
27361      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27362      t end
27363      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27364      :end' >>confcache
27365 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27366   if test -w "$cache_file"; then
27367     test "x$cache_file" != "x/dev/null" &&
27368       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27369 echo "$as_me: updating cache $cache_file" >&6;}
27370     cat confcache >$cache_file
27371   else
27372     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27373 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27374   fi
27375 fi
27376 rm -f confcache
27377
27378 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27379     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27380 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27381 if test "${wx_cv_lib_glibc21+set}" = set; then
27382   echo $ECHO_N "(cached) $ECHO_C" >&6
27383 else
27384
27385         cat >conftest.$ac_ext <<_ACEOF
27386 /* confdefs.h.  */
27387 _ACEOF
27388 cat confdefs.h >>conftest.$ac_ext
27389 cat >>conftest.$ac_ext <<_ACEOF
27390 /* end confdefs.h.  */
27391 #include <features.h>
27392 int
27393 main ()
27394 {
27395
27396                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27397                 not glibc 2.1
27398                 #endif
27399
27400   ;
27401   return 0;
27402 }
27403 _ACEOF
27404 rm -f conftest.$ac_objext
27405 if { (ac_try="$ac_compile"
27406 case "(($ac_try" in
27407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408   *) ac_try_echo=$ac_try;;
27409 esac
27410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411   (eval "$ac_compile") 2>conftest.er1
27412   ac_status=$?
27413   grep -v '^ *+' conftest.er1 >conftest.err
27414   rm -f conftest.er1
27415   cat conftest.err >&5
27416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); } && {
27418          test -z "$ac_c_werror_flag" ||
27419          test ! -s conftest.err
27420        } && test -s conftest.$ac_objext; then
27421
27422                 wx_cv_lib_glibc21=yes
27423
27424 else
27425   echo "$as_me: failed program was:" >&5
27426 sed 's/^/| /' conftest.$ac_ext >&5
27427
27428
27429                 wx_cv_lib_glibc21=no
27430
27431
27432 fi
27433
27434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27435
27436 fi
27437 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27438 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27439     if test "$wx_cv_lib_glibc21" = "yes"; then
27440         cat >>confdefs.h <<\_ACEOF
27441 #define wxHAVE_GLIBC2 1
27442 _ACEOF
27443
27444     fi
27445 fi
27446
27447 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27448     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27449         cat >>confdefs.h <<\_ACEOF
27450 #define _GNU_SOURCE 1
27451 _ACEOF
27452
27453     fi
27454 fi
27455
27456 have_cos=0
27457 have_floor=0
27458
27459 for ac_func in cos
27460 do
27461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27465   echo $ECHO_N "(cached) $ECHO_C" >&6
27466 else
27467   cat >conftest.$ac_ext <<_ACEOF
27468 /* confdefs.h.  */
27469 _ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h.  */
27473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27475 #define $ac_func innocuous_$ac_func
27476
27477 /* System header to define __stub macros and hopefully few prototypes,
27478     which can conflict with char $ac_func (); below.
27479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27480     <limits.h> exists even on freestanding compilers.  */
27481
27482 #ifdef __STDC__
27483 # include <limits.h>
27484 #else
27485 # include <assert.h>
27486 #endif
27487
27488 #undef $ac_func
27489
27490 /* Override any GCC internal prototype to avoid an error.
27491    Use char because int might match the return type of a GCC
27492    builtin and then its argument prototype would still apply.  */
27493 #ifdef __cplusplus
27494 extern "C"
27495 #endif
27496 char $ac_func ();
27497 /* The GNU C library defines this for functions which it implements
27498     to always fail with ENOSYS.  Some functions are actually named
27499     something starting with __ and the normal name is an alias.  */
27500 #if defined __stub_$ac_func || defined __stub___$ac_func
27501 choke me
27502 #endif
27503
27504 int
27505 main ()
27506 {
27507 return $ac_func ();
27508   ;
27509   return 0;
27510 }
27511 _ACEOF
27512 rm -f conftest.$ac_objext conftest$ac_exeext
27513 if { (ac_try="$ac_link"
27514 case "(($ac_try" in
27515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516   *) ac_try_echo=$ac_try;;
27517 esac
27518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519   (eval "$ac_link") 2>conftest.er1
27520   ac_status=$?
27521   grep -v '^ *+' conftest.er1 >conftest.err
27522   rm -f conftest.er1
27523   cat conftest.err >&5
27524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525   (exit $ac_status); } && {
27526          test -z "$ac_c_werror_flag" ||
27527          test ! -s conftest.err
27528        } && test -s conftest$ac_exeext &&
27529        $as_test_x conftest$ac_exeext; then
27530   eval "$as_ac_var=yes"
27531 else
27532   echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27534
27535         eval "$as_ac_var=no"
27536 fi
27537
27538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27539       conftest$ac_exeext conftest.$ac_ext
27540 fi
27541 ac_res=`eval echo '${'$as_ac_var'}'`
27542                { echo "$as_me:$LINENO: result: $ac_res" >&5
27543 echo "${ECHO_T}$ac_res" >&6; }
27544 if test `eval echo '${'$as_ac_var'}'` = yes; then
27545   cat >>confdefs.h <<_ACEOF
27546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27547 _ACEOF
27548  have_cos=1
27549 fi
27550 done
27551
27552
27553 for ac_func in floor
27554 do
27555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27559   echo $ECHO_N "(cached) $ECHO_C" >&6
27560 else
27561   cat >conftest.$ac_ext <<_ACEOF
27562 /* confdefs.h.  */
27563 _ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h.  */
27567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27569 #define $ac_func innocuous_$ac_func
27570
27571 /* System header to define __stub macros and hopefully few prototypes,
27572     which can conflict with char $ac_func (); below.
27573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27574     <limits.h> exists even on freestanding compilers.  */
27575
27576 #ifdef __STDC__
27577 # include <limits.h>
27578 #else
27579 # include <assert.h>
27580 #endif
27581
27582 #undef $ac_func
27583
27584 /* Override any GCC internal prototype to avoid an error.
27585    Use char because int might match the return type of a GCC
27586    builtin and then its argument prototype would still apply.  */
27587 #ifdef __cplusplus
27588 extern "C"
27589 #endif
27590 char $ac_func ();
27591 /* The GNU C library defines this for functions which it implements
27592     to always fail with ENOSYS.  Some functions are actually named
27593     something starting with __ and the normal name is an alias.  */
27594 #if defined __stub_$ac_func || defined __stub___$ac_func
27595 choke me
27596 #endif
27597
27598 int
27599 main ()
27600 {
27601 return $ac_func ();
27602   ;
27603   return 0;
27604 }
27605 _ACEOF
27606 rm -f conftest.$ac_objext conftest$ac_exeext
27607 if { (ac_try="$ac_link"
27608 case "(($ac_try" in
27609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610   *) ac_try_echo=$ac_try;;
27611 esac
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613   (eval "$ac_link") 2>conftest.er1
27614   ac_status=$?
27615   grep -v '^ *+' conftest.er1 >conftest.err
27616   rm -f conftest.er1
27617   cat conftest.err >&5
27618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619   (exit $ac_status); } && {
27620          test -z "$ac_c_werror_flag" ||
27621          test ! -s conftest.err
27622        } && test -s conftest$ac_exeext &&
27623        $as_test_x conftest$ac_exeext; then
27624   eval "$as_ac_var=yes"
27625 else
27626   echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27628
27629         eval "$as_ac_var=no"
27630 fi
27631
27632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27633       conftest$ac_exeext conftest.$ac_ext
27634 fi
27635 ac_res=`eval echo '${'$as_ac_var'}'`
27636                { echo "$as_me:$LINENO: result: $ac_res" >&5
27637 echo "${ECHO_T}$ac_res" >&6; }
27638 if test `eval echo '${'$as_ac_var'}'` = yes; then
27639   cat >>confdefs.h <<_ACEOF
27640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27641 _ACEOF
27642  have_floor=1
27643 fi
27644 done
27645
27646 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27647 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27648 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27649     { echo "$as_me:$LINENO: result: yes" >&5
27650 echo "${ECHO_T}yes" >&6; }
27651 else
27652     { echo "$as_me:$LINENO: result: no" >&5
27653 echo "${ECHO_T}no" >&6; }
27654     LIBS="$LIBS -lm"
27655     # use different functions to avoid configure caching
27656     have_sin=0
27657     have_ceil=0
27658
27659 for ac_func in sin
27660 do
27661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27665   echo $ECHO_N "(cached) $ECHO_C" >&6
27666 else
27667   cat >conftest.$ac_ext <<_ACEOF
27668 /* confdefs.h.  */
27669 _ACEOF
27670 cat confdefs.h >>conftest.$ac_ext
27671 cat >>conftest.$ac_ext <<_ACEOF
27672 /* end confdefs.h.  */
27673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27675 #define $ac_func innocuous_$ac_func
27676
27677 /* System header to define __stub macros and hopefully few prototypes,
27678     which can conflict with char $ac_func (); below.
27679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27680     <limits.h> exists even on freestanding compilers.  */
27681
27682 #ifdef __STDC__
27683 # include <limits.h>
27684 #else
27685 # include <assert.h>
27686 #endif
27687
27688 #undef $ac_func
27689
27690 /* Override any GCC internal prototype to avoid an error.
27691    Use char because int might match the return type of a GCC
27692    builtin and then its argument prototype would still apply.  */
27693 #ifdef __cplusplus
27694 extern "C"
27695 #endif
27696 char $ac_func ();
27697 /* The GNU C library defines this for functions which it implements
27698     to always fail with ENOSYS.  Some functions are actually named
27699     something starting with __ and the normal name is an alias.  */
27700 #if defined __stub_$ac_func || defined __stub___$ac_func
27701 choke me
27702 #endif
27703
27704 int
27705 main ()
27706 {
27707 return $ac_func ();
27708   ;
27709   return 0;
27710 }
27711 _ACEOF
27712 rm -f conftest.$ac_objext conftest$ac_exeext
27713 if { (ac_try="$ac_link"
27714 case "(($ac_try" in
27715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27716   *) ac_try_echo=$ac_try;;
27717 esac
27718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27719   (eval "$ac_link") 2>conftest.er1
27720   ac_status=$?
27721   grep -v '^ *+' conftest.er1 >conftest.err
27722   rm -f conftest.er1
27723   cat conftest.err >&5
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); } && {
27726          test -z "$ac_c_werror_flag" ||
27727          test ! -s conftest.err
27728        } && test -s conftest$ac_exeext &&
27729        $as_test_x conftest$ac_exeext; then
27730   eval "$as_ac_var=yes"
27731 else
27732   echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27734
27735         eval "$as_ac_var=no"
27736 fi
27737
27738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27739       conftest$ac_exeext conftest.$ac_ext
27740 fi
27741 ac_res=`eval echo '${'$as_ac_var'}'`
27742                { echo "$as_me:$LINENO: result: $ac_res" >&5
27743 echo "${ECHO_T}$ac_res" >&6; }
27744 if test `eval echo '${'$as_ac_var'}'` = yes; then
27745   cat >>confdefs.h <<_ACEOF
27746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27747 _ACEOF
27748  have_sin=1
27749 fi
27750 done
27751
27752
27753 for ac_func in ceil
27754 do
27755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27759   echo $ECHO_N "(cached) $ECHO_C" >&6
27760 else
27761   cat >conftest.$ac_ext <<_ACEOF
27762 /* confdefs.h.  */
27763 _ACEOF
27764 cat confdefs.h >>conftest.$ac_ext
27765 cat >>conftest.$ac_ext <<_ACEOF
27766 /* end confdefs.h.  */
27767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27769 #define $ac_func innocuous_$ac_func
27770
27771 /* System header to define __stub macros and hopefully few prototypes,
27772     which can conflict with char $ac_func (); below.
27773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27774     <limits.h> exists even on freestanding compilers.  */
27775
27776 #ifdef __STDC__
27777 # include <limits.h>
27778 #else
27779 # include <assert.h>
27780 #endif
27781
27782 #undef $ac_func
27783
27784 /* Override any GCC internal prototype to avoid an error.
27785    Use char because int might match the return type of a GCC
27786    builtin and then its argument prototype would still apply.  */
27787 #ifdef __cplusplus
27788 extern "C"
27789 #endif
27790 char $ac_func ();
27791 /* The GNU C library defines this for functions which it implements
27792     to always fail with ENOSYS.  Some functions are actually named
27793     something starting with __ and the normal name is an alias.  */
27794 #if defined __stub_$ac_func || defined __stub___$ac_func
27795 choke me
27796 #endif
27797
27798 int
27799 main ()
27800 {
27801 return $ac_func ();
27802   ;
27803   return 0;
27804 }
27805 _ACEOF
27806 rm -f conftest.$ac_objext conftest$ac_exeext
27807 if { (ac_try="$ac_link"
27808 case "(($ac_try" in
27809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810   *) ac_try_echo=$ac_try;;
27811 esac
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813   (eval "$ac_link") 2>conftest.er1
27814   ac_status=$?
27815   grep -v '^ *+' conftest.er1 >conftest.err
27816   rm -f conftest.er1
27817   cat conftest.err >&5
27818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819   (exit $ac_status); } && {
27820          test -z "$ac_c_werror_flag" ||
27821          test ! -s conftest.err
27822        } && test -s conftest$ac_exeext &&
27823        $as_test_x conftest$ac_exeext; then
27824   eval "$as_ac_var=yes"
27825 else
27826   echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27828
27829         eval "$as_ac_var=no"
27830 fi
27831
27832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27833       conftest$ac_exeext conftest.$ac_ext
27834 fi
27835 ac_res=`eval echo '${'$as_ac_var'}'`
27836                { echo "$as_me:$LINENO: result: $ac_res" >&5
27837 echo "${ECHO_T}$ac_res" >&6; }
27838 if test `eval echo '${'$as_ac_var'}'` = yes; then
27839   cat >>confdefs.h <<_ACEOF
27840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27841 _ACEOF
27842  have_ceil=1
27843 fi
27844 done
27845
27846     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27847 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27848     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27849         { echo "$as_me:$LINENO: result: yes" >&5
27850 echo "${ECHO_T}yes" >&6; }
27851     else
27852         { echo "$as_me:$LINENO: result: no" >&5
27853 echo "${ECHO_T}no" >&6; }
27854         # not sure we should warn the user, crash, etc.
27855     fi
27856 fi
27857
27858 ac_ext=cpp
27859 ac_cpp='$CXXCPP $CPPFLAGS'
27860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27863
27864 if test "wxUSE_UNICODE" = "yes"; then
27865
27866   for wx_func in wcstoull
27867   do
27868     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27869 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27870 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27871   echo $ECHO_N "(cached) $ECHO_C" >&6
27872 else
27873
27874         cat >conftest.$ac_ext <<_ACEOF
27875
27876             /* confdefs.h.  */
27877 _ACEOF
27878 cat confdefs.h >>conftest.$ac_ext
27879 cat >>conftest.$ac_ext <<_ACEOF
27880 /* end confdefs.h.  */
27881
27882
27883                 $ac_includes_default
27884
27885 int
27886 main ()
27887 {
27888
27889                 #ifndef $wx_func
27890                   &$wx_func;
27891                 #endif
27892
27893
27894   ;
27895   return 0;
27896 }
27897
27898 _ACEOF
27899 rm -f conftest.$ac_objext conftest$ac_exeext
27900 if { (ac_try="$ac_link"
27901 case "(($ac_try" in
27902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27903   *) ac_try_echo=$ac_try;;
27904 esac
27905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27906   (eval "$ac_link") 2>conftest.er1
27907   ac_status=$?
27908   grep -v '^ *+' conftest.er1 >conftest.err
27909   rm -f conftest.er1
27910   cat conftest.err >&5
27911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912   (exit $ac_status); } && {
27913          test -z "$ac_cxx_werror_flag" ||
27914          test ! -s conftest.err
27915        } && test -s conftest$ac_exeext &&
27916        $as_test_x conftest$ac_exeext; then
27917   eval wx_cv_func_$wx_func=yes
27918 else
27919   echo "$as_me: failed program was:" >&5
27920 sed 's/^/| /' conftest.$ac_ext >&5
27921
27922         eval wx_cv_func_$wx_func=no
27923 fi
27924
27925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27926       conftest$ac_exeext conftest.$ac_ext
27927
27928 fi
27929 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27930                { echo "$as_me:$LINENO: result: $ac_res" >&5
27931 echo "${ECHO_T}$ac_res" >&6; }
27932
27933     if eval test \$wx_cv_func_$wx_func = yes
27934     then
27935       cat >>confdefs.h <<_ACEOF
27936 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27937 _ACEOF
27938
27939
27940     else
27941       :
27942
27943     fi
27944   done
27945
27946 else
27947
27948   for wx_func in strtoull
27949   do
27950     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27951 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27952 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27953   echo $ECHO_N "(cached) $ECHO_C" >&6
27954 else
27955
27956         cat >conftest.$ac_ext <<_ACEOF
27957
27958             /* confdefs.h.  */
27959 _ACEOF
27960 cat confdefs.h >>conftest.$ac_ext
27961 cat >>conftest.$ac_ext <<_ACEOF
27962 /* end confdefs.h.  */
27963
27964
27965                 $ac_includes_default
27966
27967 int
27968 main ()
27969 {
27970
27971                 #ifndef $wx_func
27972                   &$wx_func;
27973                 #endif
27974
27975
27976   ;
27977   return 0;
27978 }
27979
27980 _ACEOF
27981 rm -f conftest.$ac_objext conftest$ac_exeext
27982 if { (ac_try="$ac_link"
27983 case "(($ac_try" in
27984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985   *) ac_try_echo=$ac_try;;
27986 esac
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988   (eval "$ac_link") 2>conftest.er1
27989   ac_status=$?
27990   grep -v '^ *+' conftest.er1 >conftest.err
27991   rm -f conftest.er1
27992   cat conftest.err >&5
27993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994   (exit $ac_status); } && {
27995          test -z "$ac_cxx_werror_flag" ||
27996          test ! -s conftest.err
27997        } && test -s conftest$ac_exeext &&
27998        $as_test_x conftest$ac_exeext; then
27999   eval wx_cv_func_$wx_func=yes
28000 else
28001   echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28003
28004         eval wx_cv_func_$wx_func=no
28005 fi
28006
28007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28008       conftest$ac_exeext conftest.$ac_ext
28009
28010 fi
28011 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28012                { echo "$as_me:$LINENO: result: $ac_res" >&5
28013 echo "${ECHO_T}$ac_res" >&6; }
28014
28015     if eval test \$wx_cv_func_$wx_func = yes
28016     then
28017       cat >>confdefs.h <<_ACEOF
28018 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
28019 _ACEOF
28020
28021
28022     else
28023       :
28024
28025     fi
28026   done
28027
28028 fi
28029 ac_ext=c
28030 ac_cpp='$CPP $CPPFLAGS'
28031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28034
28035
28036
28037
28038 if test "$wxUSE_REGEX" != "no"; then
28039     cat >>confdefs.h <<\_ACEOF
28040 #define wxUSE_REGEX 1
28041 _ACEOF
28042
28043
28044     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28045         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
28046 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
28047         wxUSE_REGEX=builtin
28048     fi
28049
28050     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28051                         { echo "$as_me:$LINENO: checking for regex.h" >&5
28052 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28053 if test "${ac_cv_header_regex_h+set}" = set; then
28054   echo $ECHO_N "(cached) $ECHO_C" >&6
28055 else
28056   cat >conftest.$ac_ext <<_ACEOF
28057 /* confdefs.h.  */
28058 _ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h.  */
28062
28063
28064 #include <regex.h>
28065 _ACEOF
28066 rm -f conftest.$ac_objext
28067 if { (ac_try="$ac_compile"
28068 case "(($ac_try" in
28069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28070   *) ac_try_echo=$ac_try;;
28071 esac
28072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28073   (eval "$ac_compile") 2>conftest.er1
28074   ac_status=$?
28075   grep -v '^ *+' conftest.er1 >conftest.err
28076   rm -f conftest.er1
28077   cat conftest.err >&5
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); } && {
28080          test -z "$ac_c_werror_flag" ||
28081          test ! -s conftest.err
28082        } && test -s conftest.$ac_objext; then
28083   ac_cv_header_regex_h=yes
28084 else
28085   echo "$as_me: failed program was:" >&5
28086 sed 's/^/| /' conftest.$ac_ext >&5
28087
28088         ac_cv_header_regex_h=no
28089 fi
28090
28091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28092 fi
28093 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28094 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28095 if test $ac_cv_header_regex_h = yes; then
28096
28097
28098 for ac_func in regcomp re_search
28099 do
28100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28104   echo $ECHO_N "(cached) $ECHO_C" >&6
28105 else
28106   cat >conftest.$ac_ext <<_ACEOF
28107 /* confdefs.h.  */
28108 _ACEOF
28109 cat confdefs.h >>conftest.$ac_ext
28110 cat >>conftest.$ac_ext <<_ACEOF
28111 /* end confdefs.h.  */
28112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28114 #define $ac_func innocuous_$ac_func
28115
28116 /* System header to define __stub macros and hopefully few prototypes,
28117     which can conflict with char $ac_func (); below.
28118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28119     <limits.h> exists even on freestanding compilers.  */
28120
28121 #ifdef __STDC__
28122 # include <limits.h>
28123 #else
28124 # include <assert.h>
28125 #endif
28126
28127 #undef $ac_func
28128
28129 /* Override any GCC internal prototype to avoid an error.
28130    Use char because int might match the return type of a GCC
28131    builtin and then its argument prototype would still apply.  */
28132 #ifdef __cplusplus
28133 extern "C"
28134 #endif
28135 char $ac_func ();
28136 /* The GNU C library defines this for functions which it implements
28137     to always fail with ENOSYS.  Some functions are actually named
28138     something starting with __ and the normal name is an alias.  */
28139 #if defined __stub_$ac_func || defined __stub___$ac_func
28140 choke me
28141 #endif
28142
28143 int
28144 main ()
28145 {
28146 return $ac_func ();
28147   ;
28148   return 0;
28149 }
28150 _ACEOF
28151 rm -f conftest.$ac_objext conftest$ac_exeext
28152 if { (ac_try="$ac_link"
28153 case "(($ac_try" in
28154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155   *) ac_try_echo=$ac_try;;
28156 esac
28157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158   (eval "$ac_link") 2>conftest.er1
28159   ac_status=$?
28160   grep -v '^ *+' conftest.er1 >conftest.err
28161   rm -f conftest.er1
28162   cat conftest.err >&5
28163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164   (exit $ac_status); } && {
28165          test -z "$ac_c_werror_flag" ||
28166          test ! -s conftest.err
28167        } && test -s conftest$ac_exeext &&
28168        $as_test_x conftest$ac_exeext; then
28169   eval "$as_ac_var=yes"
28170 else
28171   echo "$as_me: failed program was:" >&5
28172 sed 's/^/| /' conftest.$ac_ext >&5
28173
28174         eval "$as_ac_var=no"
28175 fi
28176
28177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28178       conftest$ac_exeext conftest.$ac_ext
28179 fi
28180 ac_res=`eval echo '${'$as_ac_var'}'`
28181                { echo "$as_me:$LINENO: result: $ac_res" >&5
28182 echo "${ECHO_T}$ac_res" >&6; }
28183 if test `eval echo '${'$as_ac_var'}'` = yes; then
28184   cat >>confdefs.h <<_ACEOF
28185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28186 _ACEOF
28187
28188 fi
28189 done
28190
28191 fi
28192
28193
28194
28195         if test "x$ac_cv_func_regcomp" != "xyes"; then
28196             if test "$wxUSE_REGEX" = "sys" ; then
28197                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28198 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28199    { (exit 1); exit 1; }; }
28200             else
28201                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28202 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28203                 wxUSE_REGEX=builtin
28204             fi
28205         else
28206                         wxUSE_REGEX=sys
28207                         cat >>confdefs.h <<\_ACEOF
28208 #define WX_NO_REGEX_ADVANCED 1
28209 _ACEOF
28210
28211         fi
28212     fi
28213 fi
28214
28215
28216 ZLIB_LINK=
28217 if test "$wxUSE_ZLIB" != "no" ; then
28218     cat >>confdefs.h <<\_ACEOF
28219 #define wxUSE_ZLIB 1
28220 _ACEOF
28221
28222
28223     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28224                                                 if test "$USE_DARWIN" = 1; then
28225             system_zlib_h_ok="yes"
28226         else
28227                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28228 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28229 if test "${ac_cv_header_zlib_h+set}" = set; then
28230   echo $ECHO_N "(cached) $ECHO_C" >&6
28231 else
28232   if test "$cross_compiling" = yes; then
28233                       unset ac_cv_header_zlib_h
28234
28235 else
28236   cat >conftest.$ac_ext <<_ACEOF
28237 /* confdefs.h.  */
28238 _ACEOF
28239 cat confdefs.h >>conftest.$ac_ext
28240 cat >>conftest.$ac_ext <<_ACEOF
28241 /* end confdefs.h.  */
28242
28243                         #include <zlib.h>
28244                         #include <stdio.h>
28245
28246                         int main()
28247                         {
28248                             FILE *f=fopen("conftestval", "w");
28249                             if (!f) exit(1);
28250                             fprintf(f, "%s",
28251                                     ZLIB_VERSION[0] == '1' &&
28252                                     (ZLIB_VERSION[2] > '1' ||
28253                                     (ZLIB_VERSION[2] == '1' &&
28254                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28255                             exit(0);
28256                         }
28257
28258 _ACEOF
28259 rm -f conftest$ac_exeext
28260 if { (ac_try="$ac_link"
28261 case "(($ac_try" in
28262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28263   *) ac_try_echo=$ac_try;;
28264 esac
28265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28266   (eval "$ac_link") 2>&5
28267   ac_status=$?
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28270   { (case "(($ac_try" in
28271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272   *) ac_try_echo=$ac_try;;
28273 esac
28274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275   (eval "$ac_try") 2>&5
28276   ac_status=$?
28277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278   (exit $ac_status); }; }; then
28279   ac_cv_header_zlib_h=`cat conftestval`
28280 else
28281   echo "$as_me: program exited with status $ac_status" >&5
28282 echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28284
28285 ( exit $ac_status )
28286 ac_cv_header_zlib_h=no
28287 fi
28288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28289 fi
28290
28291
28292
28293 fi
28294 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28295 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28296                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28297 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28298 if test "${ac_cv_header_zlib_h+set}" = set; then
28299   echo $ECHO_N "(cached) $ECHO_C" >&6
28300 else
28301   cat >conftest.$ac_ext <<_ACEOF
28302 /* confdefs.h.  */
28303 _ACEOF
28304 cat confdefs.h >>conftest.$ac_ext
28305 cat >>conftest.$ac_ext <<_ACEOF
28306 /* end confdefs.h.  */
28307
28308
28309 #include <zlib.h>
28310 _ACEOF
28311 rm -f conftest.$ac_objext
28312 if { (ac_try="$ac_compile"
28313 case "(($ac_try" in
28314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315   *) ac_try_echo=$ac_try;;
28316 esac
28317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318   (eval "$ac_compile") 2>conftest.er1
28319   ac_status=$?
28320   grep -v '^ *+' conftest.er1 >conftest.err
28321   rm -f conftest.er1
28322   cat conftest.err >&5
28323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324   (exit $ac_status); } && {
28325          test -z "$ac_c_werror_flag" ||
28326          test ! -s conftest.err
28327        } && test -s conftest.$ac_objext; then
28328   ac_cv_header_zlib_h=yes
28329 else
28330   echo "$as_me: failed program was:" >&5
28331 sed 's/^/| /' conftest.$ac_ext >&5
28332
28333         ac_cv_header_zlib_h=no
28334 fi
28335
28336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28337 fi
28338 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28339 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28340
28341
28342
28343             system_zlib_h_ok=$ac_cv_header_zlib_h
28344         fi
28345
28346         if test "$system_zlib_h_ok" = "yes"; then
28347             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28348 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28349 if test "${ac_cv_lib_z_deflate+set}" = set; then
28350   echo $ECHO_N "(cached) $ECHO_C" >&6
28351 else
28352   ac_check_lib_save_LIBS=$LIBS
28353 LIBS="-lz  $LIBS"
28354 cat >conftest.$ac_ext <<_ACEOF
28355 /* confdefs.h.  */
28356 _ACEOF
28357 cat confdefs.h >>conftest.$ac_ext
28358 cat >>conftest.$ac_ext <<_ACEOF
28359 /* end confdefs.h.  */
28360
28361 /* Override any GCC internal prototype to avoid an error.
28362    Use char because int might match the return type of a GCC
28363    builtin and then its argument prototype would still apply.  */
28364 #ifdef __cplusplus
28365 extern "C"
28366 #endif
28367 char deflate ();
28368 int
28369 main ()
28370 {
28371 return deflate ();
28372   ;
28373   return 0;
28374 }
28375 _ACEOF
28376 rm -f conftest.$ac_objext conftest$ac_exeext
28377 if { (ac_try="$ac_link"
28378 case "(($ac_try" in
28379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28380   *) ac_try_echo=$ac_try;;
28381 esac
28382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28383   (eval "$ac_link") 2>conftest.er1
28384   ac_status=$?
28385   grep -v '^ *+' conftest.er1 >conftest.err
28386   rm -f conftest.er1
28387   cat conftest.err >&5
28388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389   (exit $ac_status); } && {
28390          test -z "$ac_c_werror_flag" ||
28391          test ! -s conftest.err
28392        } && test -s conftest$ac_exeext &&
28393        $as_test_x conftest$ac_exeext; then
28394   ac_cv_lib_z_deflate=yes
28395 else
28396   echo "$as_me: failed program was:" >&5
28397 sed 's/^/| /' conftest.$ac_ext >&5
28398
28399         ac_cv_lib_z_deflate=no
28400 fi
28401
28402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28403       conftest$ac_exeext conftest.$ac_ext
28404 LIBS=$ac_check_lib_save_LIBS
28405 fi
28406 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28407 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28408 if test $ac_cv_lib_z_deflate = yes; then
28409   ZLIB_LINK=" -lz"
28410 fi
28411
28412         fi
28413
28414         if test "x$ZLIB_LINK" = "x" ; then
28415             if test "$wxUSE_ZLIB" = "sys" ; then
28416                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28417 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28418    { (exit 1); exit 1; }; }
28419             else
28420                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28421 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28422                 wxUSE_ZLIB=builtin
28423             fi
28424         else
28425                         wxUSE_ZLIB=sys
28426         fi
28427     fi
28428 fi
28429
28430
28431 PNG_LINK=
28432 if test "$wxUSE_LIBPNG" != "no" ; then
28433     cat >>confdefs.h <<\_ACEOF
28434 #define wxUSE_LIBPNG 1
28435 _ACEOF
28436
28437
28438     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28439         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28440 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28441         wxUSE_LIBPNG=sys
28442     fi
28443
28444                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28445         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28446 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28447         wxUSE_LIBPNG=builtin
28448     fi
28449
28450     if test "$wxUSE_MGL" != 1 ; then
28451                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28452                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28453 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28454 if test "${ac_cv_header_png_h+set}" = set; then
28455   echo $ECHO_N "(cached) $ECHO_C" >&6
28456 else
28457   if test "$cross_compiling" = yes; then
28458                       unset ac_cv_header_png_h
28459
28460 else
28461   cat >conftest.$ac_ext <<_ACEOF
28462 /* confdefs.h.  */
28463 _ACEOF
28464 cat confdefs.h >>conftest.$ac_ext
28465 cat >>conftest.$ac_ext <<_ACEOF
28466 /* end confdefs.h.  */
28467
28468                         #include <png.h>
28469                         #include <stdio.h>
28470
28471                         int main()
28472                         {
28473                             FILE *f=fopen("conftestval", "w");
28474                             if (!f) exit(1);
28475                             fprintf(f, "%s",
28476                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28477                             exit(0);
28478                         }
28479
28480 _ACEOF
28481 rm -f conftest$ac_exeext
28482 if { (ac_try="$ac_link"
28483 case "(($ac_try" in
28484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28485   *) ac_try_echo=$ac_try;;
28486 esac
28487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28488   (eval "$ac_link") 2>&5
28489   ac_status=$?
28490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28492   { (case "(($ac_try" in
28493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28494   *) ac_try_echo=$ac_try;;
28495 esac
28496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497   (eval "$ac_try") 2>&5
28498   ac_status=$?
28499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500   (exit $ac_status); }; }; then
28501   ac_cv_header_png_h=`cat conftestval`
28502 else
28503   echo "$as_me: program exited with status $ac_status" >&5
28504 echo "$as_me: failed program was:" >&5
28505 sed 's/^/| /' conftest.$ac_ext >&5
28506
28507 ( exit $ac_status )
28508 ac_cv_header_png_h=no
28509 fi
28510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28511 fi
28512
28513
28514
28515 fi
28516 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28517 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28518             { echo "$as_me:$LINENO: checking for png.h" >&5
28519 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28520 if test "${ac_cv_header_png_h+set}" = set; then
28521   echo $ECHO_N "(cached) $ECHO_C" >&6
28522 else
28523   cat >conftest.$ac_ext <<_ACEOF
28524 /* confdefs.h.  */
28525 _ACEOF
28526 cat confdefs.h >>conftest.$ac_ext
28527 cat >>conftest.$ac_ext <<_ACEOF
28528 /* end confdefs.h.  */
28529
28530
28531 #include <png.h>
28532 _ACEOF
28533 rm -f conftest.$ac_objext
28534 if { (ac_try="$ac_compile"
28535 case "(($ac_try" in
28536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537   *) ac_try_echo=$ac_try;;
28538 esac
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540   (eval "$ac_compile") 2>conftest.er1
28541   ac_status=$?
28542   grep -v '^ *+' conftest.er1 >conftest.err
28543   rm -f conftest.er1
28544   cat conftest.err >&5
28545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546   (exit $ac_status); } && {
28547          test -z "$ac_c_werror_flag" ||
28548          test ! -s conftest.err
28549        } && test -s conftest.$ac_objext; then
28550   ac_cv_header_png_h=yes
28551 else
28552   echo "$as_me: failed program was:" >&5
28553 sed 's/^/| /' conftest.$ac_ext >&5
28554
28555         ac_cv_header_png_h=no
28556 fi
28557
28558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28559 fi
28560 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28561 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28562
28563
28564
28565             if test "$ac_cv_header_png_h" = "yes"; then
28566                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28567 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28568 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28569   echo $ECHO_N "(cached) $ECHO_C" >&6
28570 else
28571   ac_check_lib_save_LIBS=$LIBS
28572 LIBS="-lpng -lz -lm $LIBS"
28573 cat >conftest.$ac_ext <<_ACEOF
28574 /* confdefs.h.  */
28575 _ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h.  */
28579
28580 /* Override any GCC internal prototype to avoid an error.
28581    Use char because int might match the return type of a GCC
28582    builtin and then its argument prototype would still apply.  */
28583 #ifdef __cplusplus
28584 extern "C"
28585 #endif
28586 char png_sig_cmp ();
28587 int
28588 main ()
28589 {
28590 return png_sig_cmp ();
28591   ;
28592   return 0;
28593 }
28594 _ACEOF
28595 rm -f conftest.$ac_objext conftest$ac_exeext
28596 if { (ac_try="$ac_link"
28597 case "(($ac_try" in
28598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599   *) ac_try_echo=$ac_try;;
28600 esac
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602   (eval "$ac_link") 2>conftest.er1
28603   ac_status=$?
28604   grep -v '^ *+' conftest.er1 >conftest.err
28605   rm -f conftest.er1
28606   cat conftest.err >&5
28607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608   (exit $ac_status); } && {
28609          test -z "$ac_c_werror_flag" ||
28610          test ! -s conftest.err
28611        } && test -s conftest$ac_exeext &&
28612        $as_test_x conftest$ac_exeext; then
28613   ac_cv_lib_png_png_sig_cmp=yes
28614 else
28615   echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28617
28618         ac_cv_lib_png_png_sig_cmp=no
28619 fi
28620
28621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28622       conftest$ac_exeext conftest.$ac_ext
28623 LIBS=$ac_check_lib_save_LIBS
28624 fi
28625 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28626 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28627 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28628   PNG_LINK=" -lpng -lz"
28629 fi
28630
28631             fi
28632
28633             if test "x$PNG_LINK" = "x" ; then
28634                 if test "$wxUSE_LIBPNG" = "sys" ; then
28635                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28636 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28637    { (exit 1); exit 1; }; }
28638                 else
28639                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28640 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28641                     wxUSE_LIBPNG=builtin
28642                 fi
28643             else
28644                                 wxUSE_LIBPNG=sys
28645             fi
28646         fi
28647     fi
28648 fi
28649
28650
28651 JPEG_LINK=
28652 if test "$wxUSE_LIBJPEG" != "no" ; then
28653     cat >>confdefs.h <<\_ACEOF
28654 #define wxUSE_LIBJPEG 1
28655 _ACEOF
28656
28657
28658     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28659         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28660 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28661         wxUSE_LIBJPEG=sys
28662     fi
28663
28664     if test "$wxUSE_MGL" != 1 ; then
28665                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28666                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28667 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28668             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28669   echo $ECHO_N "(cached) $ECHO_C" >&6
28670 else
28671   cat >conftest.$ac_ext <<_ACEOF
28672 /* confdefs.h.  */
28673 _ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h.  */
28677
28678                         #undef HAVE_STDLIB_H
28679                         #include <stdio.h>
28680                         #include <jpeglib.h>
28681
28682 int
28683 main ()
28684 {
28685
28686
28687   ;
28688   return 0;
28689 }
28690 _ACEOF
28691 rm -f conftest.$ac_objext
28692 if { (ac_try="$ac_compile"
28693 case "(($ac_try" in
28694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695   *) ac_try_echo=$ac_try;;
28696 esac
28697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28698   (eval "$ac_compile") 2>conftest.er1
28699   ac_status=$?
28700   grep -v '^ *+' conftest.er1 >conftest.err
28701   rm -f conftest.er1
28702   cat conftest.err >&5
28703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704   (exit $ac_status); } && {
28705          test -z "$ac_c_werror_flag" ||
28706          test ! -s conftest.err
28707        } && test -s conftest.$ac_objext; then
28708   ac_cv_header_jpeglib_h=yes
28709 else
28710   echo "$as_me: failed program was:" >&5
28711 sed 's/^/| /' conftest.$ac_ext >&5
28712
28713         ac_cv_header_jpeglib_h=no
28714
28715 fi
28716
28717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28718
28719 fi
28720
28721             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28722 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28723
28724             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28725                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28726 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28727 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28728   echo $ECHO_N "(cached) $ECHO_C" >&6
28729 else
28730   ac_check_lib_save_LIBS=$LIBS
28731 LIBS="-ljpeg  $LIBS"
28732 cat >conftest.$ac_ext <<_ACEOF
28733 /* confdefs.h.  */
28734 _ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h.  */
28738
28739 /* Override any GCC internal prototype to avoid an error.
28740    Use char because int might match the return type of a GCC
28741    builtin and then its argument prototype would still apply.  */
28742 #ifdef __cplusplus
28743 extern "C"
28744 #endif
28745 char jpeg_read_header ();
28746 int
28747 main ()
28748 {
28749 return jpeg_read_header ();
28750   ;
28751   return 0;
28752 }
28753 _ACEOF
28754 rm -f conftest.$ac_objext conftest$ac_exeext
28755 if { (ac_try="$ac_link"
28756 case "(($ac_try" in
28757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28758   *) ac_try_echo=$ac_try;;
28759 esac
28760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28761   (eval "$ac_link") 2>conftest.er1
28762   ac_status=$?
28763   grep -v '^ *+' conftest.er1 >conftest.err
28764   rm -f conftest.er1
28765   cat conftest.err >&5
28766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767   (exit $ac_status); } && {
28768          test -z "$ac_c_werror_flag" ||
28769          test ! -s conftest.err
28770        } && test -s conftest$ac_exeext &&
28771        $as_test_x conftest$ac_exeext; then
28772   ac_cv_lib_jpeg_jpeg_read_header=yes
28773 else
28774   echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28776
28777         ac_cv_lib_jpeg_jpeg_read_header=no
28778 fi
28779
28780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28781       conftest$ac_exeext conftest.$ac_ext
28782 LIBS=$ac_check_lib_save_LIBS
28783 fi
28784 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28785 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28786 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28787   JPEG_LINK=" -ljpeg"
28788 fi
28789
28790             fi
28791
28792             if test "x$JPEG_LINK" = "x" ; then
28793                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28794                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28795 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28796    { (exit 1); exit 1; }; }
28797                 else
28798                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28799 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28800                     wxUSE_LIBJPEG=builtin
28801                 fi
28802             else
28803                                 wxUSE_LIBJPEG=sys
28804
28805                 if test "$wxUSE_MSW" = 1; then
28806                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28807 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28808 if test "${ac_cv_type_boolean+set}" = set; then
28809   echo $ECHO_N "(cached) $ECHO_C" >&6
28810 else
28811   cat >conftest.$ac_ext <<_ACEOF
28812 /* confdefs.h.  */
28813 _ACEOF
28814 cat confdefs.h >>conftest.$ac_ext
28815 cat >>conftest.$ac_ext <<_ACEOF
28816 /* end confdefs.h.  */
28817 #include <windows.h>
28818
28819 typedef boolean ac__type_new_;
28820 int
28821 main ()
28822 {
28823 if ((ac__type_new_ *) 0)
28824   return 0;
28825 if (sizeof (ac__type_new_))
28826   return 0;
28827   ;
28828   return 0;
28829 }
28830 _ACEOF
28831 rm -f conftest.$ac_objext
28832 if { (ac_try="$ac_compile"
28833 case "(($ac_try" in
28834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28835   *) ac_try_echo=$ac_try;;
28836 esac
28837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28838   (eval "$ac_compile") 2>conftest.er1
28839   ac_status=$?
28840   grep -v '^ *+' conftest.er1 >conftest.err
28841   rm -f conftest.er1
28842   cat conftest.err >&5
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); } && {
28845          test -z "$ac_c_werror_flag" ||
28846          test ! -s conftest.err
28847        } && test -s conftest.$ac_objext; then
28848   ac_cv_type_boolean=yes
28849 else
28850   echo "$as_me: failed program was:" >&5
28851 sed 's/^/| /' conftest.$ac_ext >&5
28852
28853         ac_cv_type_boolean=no
28854 fi
28855
28856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28857 fi
28858 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28859 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28860 if test $ac_cv_type_boolean = yes; then
28861
28862 cat >>confdefs.h <<_ACEOF
28863 #define HAVE_BOOLEAN 1
28864 _ACEOF
28865
28866
28867                             { echo "$as_me:$LINENO: checking for boolean" >&5
28868 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28869 if test "${ac_cv_type_boolean+set}" = set; then
28870   echo $ECHO_N "(cached) $ECHO_C" >&6
28871 else
28872   cat >conftest.$ac_ext <<_ACEOF
28873 /* confdefs.h.  */
28874 _ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h.  */
28878
28879                                     #undef HAVE_BOOLEAN
28880                                     #include <stdio.h>
28881                                     #include <jpeglib.h>
28882
28883
28884 typedef boolean ac__type_new_;
28885 int
28886 main ()
28887 {
28888 if ((ac__type_new_ *) 0)
28889   return 0;
28890 if (sizeof (ac__type_new_))
28891   return 0;
28892   ;
28893   return 0;
28894 }
28895 _ACEOF
28896 rm -f conftest.$ac_objext
28897 if { (ac_try="$ac_compile"
28898 case "(($ac_try" in
28899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28900   *) ac_try_echo=$ac_try;;
28901 esac
28902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28903   (eval "$ac_compile") 2>conftest.er1
28904   ac_status=$?
28905   grep -v '^ *+' conftest.er1 >conftest.err
28906   rm -f conftest.er1
28907   cat conftest.err >&5
28908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909   (exit $ac_status); } && {
28910          test -z "$ac_c_werror_flag" ||
28911          test ! -s conftest.err
28912        } && test -s conftest.$ac_objext; then
28913   ac_cv_type_boolean=yes
28914 else
28915   echo "$as_me: failed program was:" >&5
28916 sed 's/^/| /' conftest.$ac_ext >&5
28917
28918         ac_cv_type_boolean=no
28919 fi
28920
28921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28922 fi
28923 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28924 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28925
28926 # The cast to long int works around a bug in the HP C Compiler
28927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28929 # This bug is HP SR number 8606223364.
28930 { echo "$as_me:$LINENO: checking size of boolean" >&5
28931 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28932 if test "${ac_cv_sizeof_boolean+set}" = set; then
28933   echo $ECHO_N "(cached) $ECHO_C" >&6
28934 else
28935   if test "$cross_compiling" = yes; then
28936   # Depending upon the size, compute the lo and hi bounds.
28937 cat >conftest.$ac_ext <<_ACEOF
28938 /* confdefs.h.  */
28939 _ACEOF
28940 cat confdefs.h >>conftest.$ac_ext
28941 cat >>conftest.$ac_ext <<_ACEOF
28942 /* end confdefs.h.  */
28943
28944                                     #undef HAVE_BOOLEAN
28945                                     #include <stdio.h>
28946                                     #include <jpeglib.h>
28947
28948
28949    typedef boolean ac__type_sizeof_;
28950 int
28951 main ()
28952 {
28953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28954 test_array [0] = 0
28955
28956   ;
28957   return 0;
28958 }
28959 _ACEOF
28960 rm -f conftest.$ac_objext
28961 if { (ac_try="$ac_compile"
28962 case "(($ac_try" in
28963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964   *) ac_try_echo=$ac_try;;
28965 esac
28966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28967   (eval "$ac_compile") 2>conftest.er1
28968   ac_status=$?
28969   grep -v '^ *+' conftest.er1 >conftest.err
28970   rm -f conftest.er1
28971   cat conftest.err >&5
28972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973   (exit $ac_status); } && {
28974          test -z "$ac_c_werror_flag" ||
28975          test ! -s conftest.err
28976        } && test -s conftest.$ac_objext; then
28977   ac_lo=0 ac_mid=0
28978   while :; do
28979     cat >conftest.$ac_ext <<_ACEOF
28980 /* confdefs.h.  */
28981 _ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h.  */
28985
28986                                     #undef HAVE_BOOLEAN
28987                                     #include <stdio.h>
28988                                     #include <jpeglib.h>
28989
28990
28991    typedef boolean ac__type_sizeof_;
28992 int
28993 main ()
28994 {
28995 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28996 test_array [0] = 0
28997
28998   ;
28999   return 0;
29000 }
29001 _ACEOF
29002 rm -f conftest.$ac_objext
29003 if { (ac_try="$ac_compile"
29004 case "(($ac_try" in
29005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29006   *) ac_try_echo=$ac_try;;
29007 esac
29008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29009   (eval "$ac_compile") 2>conftest.er1
29010   ac_status=$?
29011   grep -v '^ *+' conftest.er1 >conftest.err
29012   rm -f conftest.er1
29013   cat conftest.err >&5
29014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015   (exit $ac_status); } && {
29016          test -z "$ac_c_werror_flag" ||
29017          test ! -s conftest.err
29018        } && test -s conftest.$ac_objext; then
29019   ac_hi=$ac_mid; break
29020 else
29021   echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29023
29024         ac_lo=`expr $ac_mid + 1`
29025                         if test $ac_lo -le $ac_mid; then
29026                           ac_lo= ac_hi=
29027                           break
29028                         fi
29029                         ac_mid=`expr 2 '*' $ac_mid + 1`
29030 fi
29031
29032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033   done
29034 else
29035   echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29037
29038         cat >conftest.$ac_ext <<_ACEOF
29039 /* confdefs.h.  */
29040 _ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h.  */
29044
29045                                     #undef HAVE_BOOLEAN
29046                                     #include <stdio.h>
29047                                     #include <jpeglib.h>
29048
29049
29050    typedef boolean ac__type_sizeof_;
29051 int
29052 main ()
29053 {
29054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29055 test_array [0] = 0
29056
29057   ;
29058   return 0;
29059 }
29060 _ACEOF
29061 rm -f conftest.$ac_objext
29062 if { (ac_try="$ac_compile"
29063 case "(($ac_try" in
29064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29065   *) ac_try_echo=$ac_try;;
29066 esac
29067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29068   (eval "$ac_compile") 2>conftest.er1
29069   ac_status=$?
29070   grep -v '^ *+' conftest.er1 >conftest.err
29071   rm -f conftest.er1
29072   cat conftest.err >&5
29073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074   (exit $ac_status); } && {
29075          test -z "$ac_c_werror_flag" ||
29076          test ! -s conftest.err
29077        } && test -s conftest.$ac_objext; then
29078   ac_hi=-1 ac_mid=-1
29079   while :; do
29080     cat >conftest.$ac_ext <<_ACEOF
29081 /* confdefs.h.  */
29082 _ACEOF
29083 cat confdefs.h >>conftest.$ac_ext
29084 cat >>conftest.$ac_ext <<_ACEOF
29085 /* end confdefs.h.  */
29086
29087                                     #undef HAVE_BOOLEAN
29088                                     #include <stdio.h>
29089                                     #include <jpeglib.h>
29090
29091
29092    typedef boolean ac__type_sizeof_;
29093 int
29094 main ()
29095 {
29096 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29097 test_array [0] = 0
29098
29099   ;
29100   return 0;
29101 }
29102 _ACEOF
29103 rm -f conftest.$ac_objext
29104 if { (ac_try="$ac_compile"
29105 case "(($ac_try" in
29106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107   *) ac_try_echo=$ac_try;;
29108 esac
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110   (eval "$ac_compile") 2>conftest.er1
29111   ac_status=$?
29112   grep -v '^ *+' conftest.er1 >conftest.err
29113   rm -f conftest.er1
29114   cat conftest.err >&5
29115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116   (exit $ac_status); } && {
29117          test -z "$ac_c_werror_flag" ||
29118          test ! -s conftest.err
29119        } && test -s conftest.$ac_objext; then
29120   ac_lo=$ac_mid; break
29121 else
29122   echo "$as_me: failed program was:" >&5
29123 sed 's/^/| /' conftest.$ac_ext >&5
29124
29125         ac_hi=`expr '(' $ac_mid ')' - 1`
29126                         if test $ac_mid -le $ac_hi; then
29127                           ac_lo= ac_hi=
29128                           break
29129                         fi
29130                         ac_mid=`expr 2 '*' $ac_mid`
29131 fi
29132
29133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29134   done
29135 else
29136   echo "$as_me: failed program was:" >&5
29137 sed 's/^/| /' conftest.$ac_ext >&5
29138
29139         ac_lo= ac_hi=
29140 fi
29141
29142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29143 fi
29144
29145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29146 # Binary search between lo and hi bounds.
29147 while test "x$ac_lo" != "x$ac_hi"; do
29148   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29149   cat >conftest.$ac_ext <<_ACEOF
29150 /* confdefs.h.  */
29151 _ACEOF
29152 cat confdefs.h >>conftest.$ac_ext
29153 cat >>conftest.$ac_ext <<_ACEOF
29154 /* end confdefs.h.  */
29155
29156                                     #undef HAVE_BOOLEAN
29157                                     #include <stdio.h>
29158                                     #include <jpeglib.h>
29159
29160
29161    typedef boolean ac__type_sizeof_;
29162 int
29163 main ()
29164 {
29165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29166 test_array [0] = 0
29167
29168   ;
29169   return 0;
29170 }
29171 _ACEOF
29172 rm -f conftest.$ac_objext
29173 if { (ac_try="$ac_compile"
29174 case "(($ac_try" in
29175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176   *) ac_try_echo=$ac_try;;
29177 esac
29178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29179   (eval "$ac_compile") 2>conftest.er1
29180   ac_status=$?
29181   grep -v '^ *+' conftest.er1 >conftest.err
29182   rm -f conftest.er1
29183   cat conftest.err >&5
29184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185   (exit $ac_status); } && {
29186          test -z "$ac_c_werror_flag" ||
29187          test ! -s conftest.err
29188        } && test -s conftest.$ac_objext; then
29189   ac_hi=$ac_mid
29190 else
29191   echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29193
29194         ac_lo=`expr '(' $ac_mid ')' + 1`
29195 fi
29196
29197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29198 done
29199 case $ac_lo in
29200 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29201 '') if test "$ac_cv_type_boolean" = yes; then
29202      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29203 See \`config.log' for more details." >&5
29204 echo "$as_me: error: cannot compute sizeof (boolean)
29205 See \`config.log' for more details." >&2;}
29206    { (exit 77); exit 77; }; }
29207    else
29208      ac_cv_sizeof_boolean=0
29209    fi ;;
29210 esac
29211 else
29212   cat >conftest.$ac_ext <<_ACEOF
29213 /* confdefs.h.  */
29214 _ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h.  */
29218
29219                                     #undef HAVE_BOOLEAN
29220                                     #include <stdio.h>
29221                                     #include <jpeglib.h>
29222
29223
29224    typedef boolean ac__type_sizeof_;
29225 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29226 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29227 #include <stdio.h>
29228 #include <stdlib.h>
29229 int
29230 main ()
29231 {
29232
29233   FILE *f = fopen ("conftest.val", "w");
29234   if (! f)
29235     return 1;
29236   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29237     {
29238       long int i = longval ();
29239       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29240         return 1;
29241       fprintf (f, "%ld\n", i);
29242     }
29243   else
29244     {
29245       unsigned long int i = ulongval ();
29246       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29247         return 1;
29248       fprintf (f, "%lu\n", i);
29249     }
29250   return ferror (f) || fclose (f) != 0;
29251
29252   ;
29253   return 0;
29254 }
29255 _ACEOF
29256 rm -f conftest$ac_exeext
29257 if { (ac_try="$ac_link"
29258 case "(($ac_try" in
29259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29260   *) ac_try_echo=$ac_try;;
29261 esac
29262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29263   (eval "$ac_link") 2>&5
29264   ac_status=$?
29265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29267   { (case "(($ac_try" in
29268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29269   *) ac_try_echo=$ac_try;;
29270 esac
29271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29272   (eval "$ac_try") 2>&5
29273   ac_status=$?
29274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275   (exit $ac_status); }; }; then
29276   ac_cv_sizeof_boolean=`cat conftest.val`
29277 else
29278   echo "$as_me: program exited with status $ac_status" >&5
29279 echo "$as_me: failed program was:" >&5
29280 sed 's/^/| /' conftest.$ac_ext >&5
29281
29282 ( exit $ac_status )
29283 if test "$ac_cv_type_boolean" = yes; then
29284      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29285 See \`config.log' for more details." >&5
29286 echo "$as_me: error: cannot compute sizeof (boolean)
29287 See \`config.log' for more details." >&2;}
29288    { (exit 77); exit 77; }; }
29289    else
29290      ac_cv_sizeof_boolean=0
29291    fi
29292 fi
29293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29294 fi
29295 rm -f conftest.val
29296 fi
29297 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29298 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29299
29300
29301
29302 cat >>confdefs.h <<_ACEOF
29303 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29304 _ACEOF
29305
29306
29307                             cat >>confdefs.h <<_ACEOF
29308 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29309 _ACEOF
29310
29311
29312 fi
29313
29314                 fi
29315             fi
29316         fi
29317     fi
29318 fi
29319
29320
29321 TIFF_LINK=
29322 TIFF_PREREQ_LINKS=-lm
29323 if test "$wxUSE_LIBTIFF" != "no" ; then
29324     cat >>confdefs.h <<\_ACEOF
29325 #define wxUSE_LIBTIFF 1
29326 _ACEOF
29327
29328
29329     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29330                         if test "$wxUSE_LIBJPEG" = "sys"; then
29331             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29332         fi
29333         if test "$wxUSE_ZLIB" = "sys"; then
29334             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29335         fi
29336         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29337 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29338 if test "${ac_cv_header_tiffio_h+set}" = set; then
29339   echo $ECHO_N "(cached) $ECHO_C" >&6
29340 else
29341   cat >conftest.$ac_ext <<_ACEOF
29342 /* confdefs.h.  */
29343 _ACEOF
29344 cat confdefs.h >>conftest.$ac_ext
29345 cat >>conftest.$ac_ext <<_ACEOF
29346 /* end confdefs.h.  */
29347
29348
29349
29350 #include <tiffio.h>
29351 _ACEOF
29352 rm -f conftest.$ac_objext
29353 if { (ac_try="$ac_compile"
29354 case "(($ac_try" in
29355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29356   *) ac_try_echo=$ac_try;;
29357 esac
29358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29359   (eval "$ac_compile") 2>conftest.er1
29360   ac_status=$?
29361   grep -v '^ *+' conftest.er1 >conftest.err
29362   rm -f conftest.er1
29363   cat conftest.err >&5
29364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365   (exit $ac_status); } && {
29366          test -z "$ac_c_werror_flag" ||
29367          test ! -s conftest.err
29368        } && test -s conftest.$ac_objext; then
29369   ac_cv_header_tiffio_h=yes
29370 else
29371   echo "$as_me: failed program was:" >&5
29372 sed 's/^/| /' conftest.$ac_ext >&5
29373
29374         ac_cv_header_tiffio_h=no
29375 fi
29376
29377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29378 fi
29379 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29380 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29381 if test $ac_cv_header_tiffio_h = yes; then
29382
29383                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29384 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29385 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29386   echo $ECHO_N "(cached) $ECHO_C" >&6
29387 else
29388   ac_check_lib_save_LIBS=$LIBS
29389 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29390 cat >conftest.$ac_ext <<_ACEOF
29391 /* confdefs.h.  */
29392 _ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h.  */
29396
29397 /* Override any GCC internal prototype to avoid an error.
29398    Use char because int might match the return type of a GCC
29399    builtin and then its argument prototype would still apply.  */
29400 #ifdef __cplusplus
29401 extern "C"
29402 #endif
29403 char TIFFError ();
29404 int
29405 main ()
29406 {
29407 return TIFFError ();
29408   ;
29409   return 0;
29410 }
29411 _ACEOF
29412 rm -f conftest.$ac_objext conftest$ac_exeext
29413 if { (ac_try="$ac_link"
29414 case "(($ac_try" in
29415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416   *) ac_try_echo=$ac_try;;
29417 esac
29418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419   (eval "$ac_link") 2>conftest.er1
29420   ac_status=$?
29421   grep -v '^ *+' conftest.er1 >conftest.err
29422   rm -f conftest.er1
29423   cat conftest.err >&5
29424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425   (exit $ac_status); } && {
29426          test -z "$ac_c_werror_flag" ||
29427          test ! -s conftest.err
29428        } && test -s conftest$ac_exeext &&
29429        $as_test_x conftest$ac_exeext; then
29430   ac_cv_lib_tiff_TIFFError=yes
29431 else
29432   echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29434
29435         ac_cv_lib_tiff_TIFFError=no
29436 fi
29437
29438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29439       conftest$ac_exeext conftest.$ac_ext
29440 LIBS=$ac_check_lib_save_LIBS
29441 fi
29442 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29443 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29444 if test $ac_cv_lib_tiff_TIFFError = yes; then
29445   TIFF_LINK=" -ltiff"
29446 fi
29447
29448
29449 fi
29450
29451
29452
29453         if test "x$TIFF_LINK" = "x" ; then
29454             if test "$wxUSE_LIBTIFF" = "sys" ; then
29455                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29456 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29457    { (exit 1); exit 1; }; }
29458             else
29459                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29460 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29461                 wxUSE_LIBTIFF=builtin
29462             fi
29463         else
29464                         wxUSE_LIBTIFF=sys
29465         fi
29466     fi
29467     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29468         if test "$wxUSE_LIBJPEG" = "no"; then
29469                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29470         fi
29471         subdirs="$subdirs src/tiff"
29472
29473     fi
29474 fi
29475
29476
29477 if test "$wxUSE_EXPAT" != "no"; then
29478     wxUSE_XML=yes
29479     cat >>confdefs.h <<\_ACEOF
29480 #define wxUSE_EXPAT 1
29481 _ACEOF
29482
29483     cat >>confdefs.h <<\_ACEOF
29484 #define wxUSE_XML 1
29485 _ACEOF
29486
29487
29488     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29489         { echo "$as_me:$LINENO: checking for expat.h" >&5
29490 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29491 if test "${ac_cv_header_expat_h+set}" = set; then
29492   echo $ECHO_N "(cached) $ECHO_C" >&6
29493 else
29494   cat >conftest.$ac_ext <<_ACEOF
29495 /* confdefs.h.  */
29496 _ACEOF
29497 cat confdefs.h >>conftest.$ac_ext
29498 cat >>conftest.$ac_ext <<_ACEOF
29499 /* end confdefs.h.  */
29500
29501
29502 #include <expat.h>
29503 _ACEOF
29504 rm -f conftest.$ac_objext
29505 if { (ac_try="$ac_compile"
29506 case "(($ac_try" in
29507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508   *) ac_try_echo=$ac_try;;
29509 esac
29510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511   (eval "$ac_compile") 2>conftest.er1
29512   ac_status=$?
29513   grep -v '^ *+' conftest.er1 >conftest.err
29514   rm -f conftest.er1
29515   cat conftest.err >&5
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); } && {
29518          test -z "$ac_c_werror_flag" ||
29519          test ! -s conftest.err
29520        } && test -s conftest.$ac_objext; then
29521   ac_cv_header_expat_h=yes
29522 else
29523   echo "$as_me: failed program was:" >&5
29524 sed 's/^/| /' conftest.$ac_ext >&5
29525
29526         ac_cv_header_expat_h=no
29527 fi
29528
29529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29530 fi
29531 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29532 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29533 if test $ac_cv_header_expat_h = yes; then
29534   found_expat_h=1
29535 fi
29536
29537
29538         if test "x$found_expat_h" = "x1"; then
29539                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29540 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29541 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29542   echo $ECHO_N "(cached) $ECHO_C" >&6
29543 else
29544
29545                 ac_ext=cpp
29546 ac_cpp='$CXXCPP $CPPFLAGS'
29547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29550
29551                 cat >conftest.$ac_ext <<_ACEOF
29552 /* confdefs.h.  */
29553 _ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h.  */
29557 #include <expat.h>
29558 int
29559 main ()
29560 {
29561
29562   ;
29563   return 0;
29564 }
29565 _ACEOF
29566 rm -f conftest.$ac_objext
29567 if { (ac_try="$ac_compile"
29568 case "(($ac_try" in
29569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570   *) ac_try_echo=$ac_try;;
29571 esac
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573   (eval "$ac_compile") 2>conftest.er1
29574   ac_status=$?
29575   grep -v '^ *+' conftest.er1 >conftest.err
29576   rm -f conftest.er1
29577   cat conftest.err >&5
29578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579   (exit $ac_status); } && {
29580          test -z "$ac_cxx_werror_flag" ||
29581          test ! -s conftest.err
29582        } && test -s conftest.$ac_objext; then
29583   wx_cv_expat_is_not_broken=yes
29584 else
29585   echo "$as_me: failed program was:" >&5
29586 sed 's/^/| /' conftest.$ac_ext >&5
29587
29588         wx_cv_expat_is_not_broken=no
29589
29590 fi
29591
29592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29593                 ac_ext=c
29594 ac_cpp='$CPP $CPPFLAGS'
29595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29598
29599
29600
29601 fi
29602 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29603 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29604             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29605                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29606 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29607 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29608   echo $ECHO_N "(cached) $ECHO_C" >&6
29609 else
29610   ac_check_lib_save_LIBS=$LIBS
29611 LIBS="-lexpat  $LIBS"
29612 cat >conftest.$ac_ext <<_ACEOF
29613 /* confdefs.h.  */
29614 _ACEOF
29615 cat confdefs.h >>conftest.$ac_ext
29616 cat >>conftest.$ac_ext <<_ACEOF
29617 /* end confdefs.h.  */
29618
29619 /* Override any GCC internal prototype to avoid an error.
29620    Use char because int might match the return type of a GCC
29621    builtin and then its argument prototype would still apply.  */
29622 #ifdef __cplusplus
29623 extern "C"
29624 #endif
29625 char XML_ParserCreate ();
29626 int
29627 main ()
29628 {
29629 return XML_ParserCreate ();
29630   ;
29631   return 0;
29632 }
29633 _ACEOF
29634 rm -f conftest.$ac_objext conftest$ac_exeext
29635 if { (ac_try="$ac_link"
29636 case "(($ac_try" in
29637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638   *) ac_try_echo=$ac_try;;
29639 esac
29640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641   (eval "$ac_link") 2>conftest.er1
29642   ac_status=$?
29643   grep -v '^ *+' conftest.er1 >conftest.err
29644   rm -f conftest.er1
29645   cat conftest.err >&5
29646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647   (exit $ac_status); } && {
29648          test -z "$ac_c_werror_flag" ||
29649          test ! -s conftest.err
29650        } && test -s conftest$ac_exeext &&
29651        $as_test_x conftest$ac_exeext; then
29652   ac_cv_lib_expat_XML_ParserCreate=yes
29653 else
29654   echo "$as_me: failed program was:" >&5
29655 sed 's/^/| /' conftest.$ac_ext >&5
29656
29657         ac_cv_lib_expat_XML_ParserCreate=no
29658 fi
29659
29660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29661       conftest$ac_exeext conftest.$ac_ext
29662 LIBS=$ac_check_lib_save_LIBS
29663 fi
29664 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29665 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29666 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29667   EXPAT_LINK=" -lexpat"
29668 fi
29669
29670             fi
29671         fi
29672         if test "x$EXPAT_LINK" = "x" ; then
29673             if test "$wxUSE_EXPAT" = "sys" ; then
29674                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29675 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29676    { (exit 1); exit 1; }; }
29677             else
29678                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29679 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29680                 wxUSE_EXPAT=builtin
29681             fi
29682         else
29683                         wxUSE_EXPAT=sys
29684         fi
29685     fi
29686     if test "$wxUSE_EXPAT" = "builtin" ; then
29687                 subdirs="$subdirs src/expat"
29688
29689     fi
29690 fi
29691
29692
29693
29694 if test "$wxUSE_LIBMSPACK" != "no"; then
29695     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29696 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29697 if test "${ac_cv_header_mspack_h+set}" = set; then
29698   echo $ECHO_N "(cached) $ECHO_C" >&6
29699 else
29700   cat >conftest.$ac_ext <<_ACEOF
29701 /* confdefs.h.  */
29702 _ACEOF
29703 cat confdefs.h >>conftest.$ac_ext
29704 cat >>conftest.$ac_ext <<_ACEOF
29705 /* end confdefs.h.  */
29706
29707
29708 #include <mspack.h>
29709 _ACEOF
29710 rm -f conftest.$ac_objext
29711 if { (ac_try="$ac_compile"
29712 case "(($ac_try" in
29713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29714   *) ac_try_echo=$ac_try;;
29715 esac
29716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29717   (eval "$ac_compile") 2>conftest.er1
29718   ac_status=$?
29719   grep -v '^ *+' conftest.er1 >conftest.err
29720   rm -f conftest.er1
29721   cat conftest.err >&5
29722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723   (exit $ac_status); } && {
29724          test -z "$ac_c_werror_flag" ||
29725          test ! -s conftest.err
29726        } && test -s conftest.$ac_objext; then
29727   ac_cv_header_mspack_h=yes
29728 else
29729   echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29731
29732         ac_cv_header_mspack_h=no
29733 fi
29734
29735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29736 fi
29737 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29738 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29739 if test $ac_cv_header_mspack_h = yes; then
29740   found_mspack_h=1
29741 fi
29742
29743
29744     if test "x$found_mspack_h" = "x1"; then
29745         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29746 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29747 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29748   echo $ECHO_N "(cached) $ECHO_C" >&6
29749 else
29750   ac_check_lib_save_LIBS=$LIBS
29751 LIBS="-lmspack  $LIBS"
29752 cat >conftest.$ac_ext <<_ACEOF
29753 /* confdefs.h.  */
29754 _ACEOF
29755 cat confdefs.h >>conftest.$ac_ext
29756 cat >>conftest.$ac_ext <<_ACEOF
29757 /* end confdefs.h.  */
29758
29759 /* Override any GCC internal prototype to avoid an error.
29760    Use char because int might match the return type of a GCC
29761    builtin and then its argument prototype would still apply.  */
29762 #ifdef __cplusplus
29763 extern "C"
29764 #endif
29765 char mspack_create_chm_decompressor ();
29766 int
29767 main ()
29768 {
29769 return mspack_create_chm_decompressor ();
29770   ;
29771   return 0;
29772 }
29773 _ACEOF
29774 rm -f conftest.$ac_objext conftest$ac_exeext
29775 if { (ac_try="$ac_link"
29776 case "(($ac_try" in
29777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29778   *) ac_try_echo=$ac_try;;
29779 esac
29780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29781   (eval "$ac_link") 2>conftest.er1
29782   ac_status=$?
29783   grep -v '^ *+' conftest.er1 >conftest.err
29784   rm -f conftest.er1
29785   cat conftest.err >&5
29786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787   (exit $ac_status); } && {
29788          test -z "$ac_c_werror_flag" ||
29789          test ! -s conftest.err
29790        } && test -s conftest$ac_exeext &&
29791        $as_test_x conftest$ac_exeext; then
29792   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29793 else
29794   echo "$as_me: failed program was:" >&5
29795 sed 's/^/| /' conftest.$ac_ext >&5
29796
29797         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29798 fi
29799
29800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29801       conftest$ac_exeext conftest.$ac_ext
29802 LIBS=$ac_check_lib_save_LIBS
29803 fi
29804 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29805 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29806 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29807   MSPACK_LINK=" -lmspack"
29808 fi
29809
29810     fi
29811     if test "x$MSPACK_LINK" = "x" ; then
29812         wxUSE_LIBMSPACK=no
29813     fi
29814 fi
29815
29816 if test "$wxUSE_LIBMSPACK" != "no"; then
29817     cat >>confdefs.h <<\_ACEOF
29818 #define wxUSE_LIBMSPACK 1
29819 _ACEOF
29820
29821 fi
29822
29823
29824
29825 AFMINSTALL=
29826 WIN32INSTALL=
29827
29828 TOOLKIT=
29829 TOOLKIT_INCLUDE=
29830 WIDGET_SET=
29831
29832 if test "$USE_WIN32" = 1 ; then
29833
29834 for ac_header in w32api.h
29835 do
29836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29840   echo $ECHO_N "(cached) $ECHO_C" >&6
29841 else
29842   cat >conftest.$ac_ext <<_ACEOF
29843 /* confdefs.h.  */
29844 _ACEOF
29845 cat confdefs.h >>conftest.$ac_ext
29846 cat >>conftest.$ac_ext <<_ACEOF
29847 /* end confdefs.h.  */
29848
29849
29850 #include <$ac_header>
29851 _ACEOF
29852 rm -f conftest.$ac_objext
29853 if { (ac_try="$ac_compile"
29854 case "(($ac_try" in
29855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856   *) ac_try_echo=$ac_try;;
29857 esac
29858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859   (eval "$ac_compile") 2>conftest.er1
29860   ac_status=$?
29861   grep -v '^ *+' conftest.er1 >conftest.err
29862   rm -f conftest.er1
29863   cat conftest.err >&5
29864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865   (exit $ac_status); } && {
29866          test -z "$ac_c_werror_flag" ||
29867          test ! -s conftest.err
29868        } && test -s conftest.$ac_objext; then
29869   eval "$as_ac_Header=yes"
29870 else
29871   echo "$as_me: failed program was:" >&5
29872 sed 's/^/| /' conftest.$ac_ext >&5
29873
29874         eval "$as_ac_Header=no"
29875 fi
29876
29877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29878 fi
29879 ac_res=`eval echo '${'$as_ac_Header'}'`
29880                { echo "$as_me:$LINENO: result: $ac_res" >&5
29881 echo "${ECHO_T}$ac_res" >&6; }
29882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29883   cat >>confdefs.h <<_ACEOF
29884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29885 _ACEOF
29886
29887 fi
29888
29889 done
29890
29891     { echo "$as_me:$LINENO: checking for windows.h" >&5
29892 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29893 if test "${ac_cv_header_windows_h+set}" = set; then
29894   echo $ECHO_N "(cached) $ECHO_C" >&6
29895 else
29896   cat >conftest.$ac_ext <<_ACEOF
29897 /* confdefs.h.  */
29898 _ACEOF
29899 cat confdefs.h >>conftest.$ac_ext
29900 cat >>conftest.$ac_ext <<_ACEOF
29901 /* end confdefs.h.  */
29902
29903
29904 #include <windows.h>
29905 _ACEOF
29906 rm -f conftest.$ac_objext
29907 if { (ac_try="$ac_compile"
29908 case "(($ac_try" in
29909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29910   *) ac_try_echo=$ac_try;;
29911 esac
29912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29913   (eval "$ac_compile") 2>conftest.er1
29914   ac_status=$?
29915   grep -v '^ *+' conftest.er1 >conftest.err
29916   rm -f conftest.er1
29917   cat conftest.err >&5
29918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919   (exit $ac_status); } && {
29920          test -z "$ac_c_werror_flag" ||
29921          test ! -s conftest.err
29922        } && test -s conftest.$ac_objext; then
29923   ac_cv_header_windows_h=yes
29924 else
29925   echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29927
29928         ac_cv_header_windows_h=no
29929 fi
29930
29931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29932 fi
29933 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29934 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29935 if test $ac_cv_header_windows_h = yes; then
29936   :
29937 else
29938
29939         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29940 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29941    { (exit 1); exit 1; }; }
29942
29943 fi
29944
29945
29946
29947     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29948     case "${host}" in
29949         x86_64-*-mingw32* )
29950                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29951         ;;
29952     esac
29953     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29954         LIBS="$LIBS -loleacc"
29955     fi
29956
29957     case "${host}" in
29958         *-*-cygwin* )
29959                         LIBS="$LIBS -lkernel32 -luser32"
29960     esac
29961
29962         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29963     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29964
29965                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29966
29967         WIN32INSTALL=win32install
29968
29969         { echo "$as_me:$LINENO: checking for pbt.h" >&5
29970 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
29971 if test "${ac_cv_header_pbt_h+set}" = set; then
29972   echo $ECHO_N "(cached) $ECHO_C" >&6
29973 else
29974   cat >conftest.$ac_ext <<_ACEOF
29975 /* confdefs.h.  */
29976 _ACEOF
29977 cat confdefs.h >>conftest.$ac_ext
29978 cat >>conftest.$ac_ext <<_ACEOF
29979 /* end confdefs.h.  */
29980
29981
29982 #include <pbt.h>
29983 _ACEOF
29984 rm -f conftest.$ac_objext
29985 if { (ac_try="$ac_compile"
29986 case "(($ac_try" in
29987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29988   *) ac_try_echo=$ac_try;;
29989 esac
29990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29991   (eval "$ac_compile") 2>conftest.er1
29992   ac_status=$?
29993   grep -v '^ *+' conftest.er1 >conftest.err
29994   rm -f conftest.er1
29995   cat conftest.err >&5
29996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997   (exit $ac_status); } && {
29998          test -z "$ac_c_werror_flag" ||
29999          test ! -s conftest.err
30000        } && test -s conftest.$ac_objext; then
30001   ac_cv_header_pbt_h=yes
30002 else
30003   echo "$as_me: failed program was:" >&5
30004 sed 's/^/| /' conftest.$ac_ext >&5
30005
30006         ac_cv_header_pbt_h=no
30007 fi
30008
30009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30010 fi
30011 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
30012 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
30013 if test $ac_cv_header_pbt_h = yes; then
30014   :
30015 else
30016   cat >>confdefs.h <<\_ACEOF
30017 #define NEED_PBT_H 1
30018 _ACEOF
30019
30020 fi
30021
30022
30023 fi
30024
30025 if test "$wxUSE_GUI" = "yes"; then
30026     USE_GUI=1
30027
30028     GUI_TK_LIBRARY=
30029
30030     WXGTK127=
30031     WXGTK2=
30032     WXGPE=
30033
30034     if test "$wxUSE_OLD_COCOA" = 1 ; then
30035         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
30036             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
30037 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
30038             wxUSE_PRINTING_ARCHITECTURE=no
30039         fi
30040         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30041             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30042 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30043             wxUSE_DRAG_AND_DROP=no
30044         fi
30045         if test "$wxUSE_DRAGIMAGE" = "yes"; then
30046             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30047 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
30048             wxUSE_DRAGIMAGE=no
30049         fi
30050     fi
30051
30052     if test "$wxUSE_MSW" = 1 ; then
30053         TOOLKIT=MSW
30054         GUIDIST=MSW_DIST
30055
30056                 case "${host}" in
30057             *-*-mingw32* )
30058                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30059         esac
30060     fi
30061
30062     if test "$wxUSE_GTK" = 1; then
30063                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30064 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30065
30066         gtk_version_cached=1
30067         if test "${wx_cv_lib_gtk+set}" = set; then
30068   echo $ECHO_N "(cached) $ECHO_C" >&6
30069 else
30070
30071                                                 gtk_version_cached=0
30072                 { echo "$as_me:$LINENO: result: " >&5
30073 echo "${ECHO_T}" >&6; }
30074
30075                                                 GTK_MODULES=
30076                 if test "$wxUSE_THREADS" = "yes"; then
30077                     GTK_MODULES=gthread
30078                 fi
30079
30080                                 wx_cv_lib_gtk=
30081                 if test "x$wxGTK_VERSION" != "x1"
30082                 then
30083                                                                                 case "${host}" in
30084                         *-*-solaris2* )
30085                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30086                                 enable_gtktest=no
30087                             fi
30088                     esac
30089
30090                     # Check whether --enable-gtktest was given.
30091 if test "${enable_gtktest+set}" = set; then
30092   enableval=$enable_gtktest;
30093 else
30094   enable_gtktest=yes
30095 fi
30096
30097
30098   pkg_config_args=gtk+-2.0
30099   for module in . $GTK_MODULES
30100   do
30101       case "$module" in
30102          gthread)
30103              pkg_config_args="$pkg_config_args gthread-2.0"
30104          ;;
30105       esac
30106   done
30107
30108   no_gtk=""
30109
30110   # Extract the first word of "pkg-config", so it can be a program name with args.
30111 set dummy pkg-config; ac_word=$2
30112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30114 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30115   echo $ECHO_N "(cached) $ECHO_C" >&6
30116 else
30117   case $PKG_CONFIG in
30118   [\\/]* | ?:[\\/]*)
30119   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30120   ;;
30121   *)
30122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30123 for as_dir in $PATH
30124 do
30125   IFS=$as_save_IFS
30126   test -z "$as_dir" && as_dir=.
30127   for ac_exec_ext in '' $ac_executable_extensions; do
30128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30129     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30131     break 2
30132   fi
30133 done
30134 done
30135 IFS=$as_save_IFS
30136
30137   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30138   ;;
30139 esac
30140 fi
30141 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30142 if test -n "$PKG_CONFIG"; then
30143   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30144 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30145 else
30146   { echo "$as_me:$LINENO: result: no" >&5
30147 echo "${ECHO_T}no" >&6; }
30148 fi
30149
30150
30151
30152   if test x$PKG_CONFIG != xno ; then
30153     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30154       :
30155     else
30156       echo "*** pkg-config too old; version 0.7 or better required."
30157       no_gtk=yes
30158       PKG_CONFIG=no
30159     fi
30160   else
30161     no_gtk=yes
30162   fi
30163
30164   min_gtk_version=2.4.0
30165   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30166 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30167
30168   if test x$PKG_CONFIG != xno ; then
30169     ## don't try to run the test against uninstalled libtool libs
30170     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30171           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30172           enable_gtktest=no
30173     fi
30174
30175     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30176           :
30177     else
30178           no_gtk=yes
30179     fi
30180   fi
30181
30182   if test x"$no_gtk" = x ; then
30183     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30184     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30185     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30186            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30187     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30188            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30189     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30190            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30191     if test "x$enable_gtktest" = "xyes" ; then
30192       ac_save_CFLAGS="$CFLAGS"
30193       ac_save_LIBS="$LIBS"
30194       CFLAGS="$CFLAGS $GTK_CFLAGS"
30195       LIBS="$GTK_LIBS $LIBS"
30196       rm -f conf.gtktest
30197       if test "$cross_compiling" = yes; then
30198   echo $ac_n "cross compiling; assumed OK... $ac_c"
30199 else
30200   cat >conftest.$ac_ext <<_ACEOF
30201 /* confdefs.h.  */
30202 _ACEOF
30203 cat confdefs.h >>conftest.$ac_ext
30204 cat >>conftest.$ac_ext <<_ACEOF
30205 /* end confdefs.h.  */
30206
30207 #include <gtk/gtk.h>
30208 #include <stdio.h>
30209 #include <stdlib.h>
30210
30211 int
30212 main ()
30213 {
30214   int major, minor, micro;
30215   char *tmp_version;
30216
30217   system ("touch conf.gtktest");
30218
30219   /* HP/UX 9 (%@#!) writes to sscanf strings */
30220   tmp_version = g_strdup("$min_gtk_version");
30221   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30222      printf("%s, bad version string\n", "$min_gtk_version");
30223      exit(1);
30224    }
30225
30226   if ((gtk_major_version != $gtk_config_major_version) ||
30227       (gtk_minor_version != $gtk_config_minor_version) ||
30228       (gtk_micro_version != $gtk_config_micro_version))
30229     {
30230       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30231              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30232              gtk_major_version, gtk_minor_version, gtk_micro_version);
30233       printf ("*** was found! If pkg-config was correct, then it is best\n");
30234       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30235       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30236       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30237       printf("*** required on your system.\n");
30238       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30239       printf("*** to point to the correct configuration files\n");
30240     }
30241   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30242            (gtk_minor_version != GTK_MINOR_VERSION) ||
30243            (gtk_micro_version != GTK_MICRO_VERSION))
30244     {
30245       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30246              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30247       printf("*** library (version %d.%d.%d)\n",
30248              gtk_major_version, gtk_minor_version, gtk_micro_version);
30249     }
30250   else
30251     {
30252       if ((gtk_major_version > major) ||
30253         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30254         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30255       {
30256         return 0;
30257        }
30258      else
30259       {
30260         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30261                gtk_major_version, gtk_minor_version, gtk_micro_version);
30262         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30263                major, minor, micro);
30264         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30265         printf("***\n");
30266         printf("*** If you have already installed a sufficiently new version, this error\n");
30267         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30268         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30269         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30270         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30271         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30272         printf("*** so that the correct libraries are found at run-time))\n");
30273       }
30274     }
30275   return 1;
30276 }
30277
30278 _ACEOF
30279 rm -f conftest$ac_exeext
30280 if { (ac_try="$ac_link"
30281 case "(($ac_try" in
30282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283   *) ac_try_echo=$ac_try;;
30284 esac
30285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286   (eval "$ac_link") 2>&5
30287   ac_status=$?
30288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30290   { (case "(($ac_try" in
30291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30292   *) ac_try_echo=$ac_try;;
30293 esac
30294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30295   (eval "$ac_try") 2>&5
30296   ac_status=$?
30297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298   (exit $ac_status); }; }; then
30299   :
30300 else
30301   echo "$as_me: program exited with status $ac_status" >&5
30302 echo "$as_me: failed program was:" >&5
30303 sed 's/^/| /' conftest.$ac_ext >&5
30304
30305 ( exit $ac_status )
30306 no_gtk=yes
30307 fi
30308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30309 fi
30310
30311
30312        CFLAGS="$ac_save_CFLAGS"
30313        LIBS="$ac_save_LIBS"
30314      fi
30315   fi
30316   if test "x$no_gtk" = x ; then
30317      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30318 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30319      wx_cv_lib_gtk=2.0
30320   else
30321      { echo "$as_me:$LINENO: result: no" >&5
30322 echo "${ECHO_T}no" >&6; }
30323      if test "$PKG_CONFIG" = "no" ; then
30324        echo "*** A new enough version of pkg-config was not found."
30325        echo "*** See http://pkgconfig.sourceforge.net"
30326      else
30327        if test -f conf.gtktest ; then
30328         :
30329        else
30330           echo "*** Could not run GTK+ test program, checking why..."
30331           ac_save_CFLAGS="$CFLAGS"
30332           ac_save_LIBS="$LIBS"
30333           CFLAGS="$CFLAGS $GTK_CFLAGS"
30334           LIBS="$LIBS $GTK_LIBS"
30335           cat >conftest.$ac_ext <<_ACEOF
30336 /* confdefs.h.  */
30337 _ACEOF
30338 cat confdefs.h >>conftest.$ac_ext
30339 cat >>conftest.$ac_ext <<_ACEOF
30340 /* end confdefs.h.  */
30341
30342 #include <gtk/gtk.h>
30343 #include <stdio.h>
30344
30345 int
30346 main ()
30347 {
30348  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30349   ;
30350   return 0;
30351 }
30352 _ACEOF
30353 rm -f conftest.$ac_objext conftest$ac_exeext
30354 if { (ac_try="$ac_link"
30355 case "(($ac_try" in
30356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357   *) ac_try_echo=$ac_try;;
30358 esac
30359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360   (eval "$ac_link") 2>conftest.er1
30361   ac_status=$?
30362   grep -v '^ *+' conftest.er1 >conftest.err
30363   rm -f conftest.er1
30364   cat conftest.err >&5
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); } && {
30367          test -z "$ac_c_werror_flag" ||
30368          test ! -s conftest.err
30369        } && test -s conftest$ac_exeext &&
30370        $as_test_x conftest$ac_exeext; then
30371    echo "*** The test program compiled, but did not run. This usually means"
30372           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30373           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30374           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30375           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30376           echo "*** is required on your system"
30377           echo "***"
30378           echo "*** If you have an old version installed, it is best to remove it, although"
30379           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30380 else
30381   echo "$as_me: failed program was:" >&5
30382 sed 's/^/| /' conftest.$ac_ext >&5
30383
30384          echo "*** The test program failed to compile or link. See the file config.log for the"
30385           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30386 fi
30387
30388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30389       conftest$ac_exeext conftest.$ac_ext
30390           CFLAGS="$ac_save_CFLAGS"
30391           LIBS="$ac_save_LIBS"
30392        fi
30393      fi
30394      GTK_CFLAGS=""
30395      GTK_LIBS=""
30396      :
30397   fi
30398
30399
30400   rm -f conf.gtktest
30401
30402                 fi
30403
30404                                 if test -z "$wx_cv_lib_gtk"; then
30405                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30406
30407 # Check whether --with-gtk-prefix was given.
30408 if test "${with_gtk_prefix+set}" = set; then
30409   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30410 else
30411   gtk_config_prefix=""
30412 fi
30413
30414
30415 # Check whether --with-gtk-exec-prefix was given.
30416 if test "${with_gtk_exec_prefix+set}" = set; then
30417   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30418 else
30419   gtk_config_exec_prefix=""
30420 fi
30421
30422 # Check whether --enable-gtktest was given.
30423 if test "${enable_gtktest+set}" = set; then
30424   enableval=$enable_gtktest;
30425 else
30426   enable_gtktest=yes
30427 fi
30428
30429
30430   for module in . $GTK_MODULES
30431   do
30432       case "$module" in
30433          gthread)
30434              gtk_config_args="$gtk_config_args gthread"
30435          ;;
30436       esac
30437   done
30438
30439   if test x$gtk_config_exec_prefix != x ; then
30440      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30441      if test x${GTK_CONFIG+set} != xset ; then
30442         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30443      fi
30444   fi
30445   if test x$gtk_config_prefix != x ; then
30446      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30447      if test x${GTK_CONFIG+set} != xset ; then
30448         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30449      fi
30450   fi
30451
30452   # Extract the first word of "gtk-config", so it can be a program name with args.
30453 set dummy gtk-config; ac_word=$2
30454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30456 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30457   echo $ECHO_N "(cached) $ECHO_C" >&6
30458 else
30459   case $GTK_CONFIG in
30460   [\\/]* | ?:[\\/]*)
30461   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30462   ;;
30463   *)
30464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30465 for as_dir in $PATH
30466 do
30467   IFS=$as_save_IFS
30468   test -z "$as_dir" && as_dir=.
30469   for ac_exec_ext in '' $ac_executable_extensions; do
30470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30471     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30473     break 2
30474   fi
30475 done
30476 done
30477 IFS=$as_save_IFS
30478
30479   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30480   ;;
30481 esac
30482 fi
30483 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30484 if test -n "$GTK_CONFIG"; then
30485   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30486 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30487 else
30488   { echo "$as_me:$LINENO: result: no" >&5
30489 echo "${ECHO_T}no" >&6; }
30490 fi
30491
30492
30493   min_gtk_version=1.2.7
30494   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30495 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30496   no_gtk=""
30497   if test "$GTK_CONFIG" = "no" ; then
30498     no_gtk=yes
30499   else
30500     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30501     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30502     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30503            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30504     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30505            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30506     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30507            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30508     if test "x$enable_gtktest" = "xyes" ; then
30509       ac_save_CFLAGS="$CFLAGS"
30510       ac_save_LIBS="$LIBS"
30511       CFLAGS="$CFLAGS $GTK_CFLAGS"
30512       LIBS="$GTK_LIBS $LIBS"
30513       rm -f conf.gtktest
30514       if test "$cross_compiling" = yes; then
30515   echo $ac_n "cross compiling; assumed OK... $ac_c"
30516 else
30517   cat >conftest.$ac_ext <<_ACEOF
30518 /* confdefs.h.  */
30519 _ACEOF
30520 cat confdefs.h >>conftest.$ac_ext
30521 cat >>conftest.$ac_ext <<_ACEOF
30522 /* end confdefs.h.  */
30523
30524 #include <gtk/gtk.h>
30525 #include <stdio.h>
30526 #include <stdlib.h>
30527
30528 int
30529 main ()
30530 {
30531   int major, minor, micro;
30532   char *tmp_version;
30533
30534   system ("touch conf.gtktest");
30535
30536   /* HP/UX 9 (%@#!) writes to sscanf strings */
30537   tmp_version = g_strdup("$min_gtk_version");
30538   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30539      printf("%s, bad version string\n", "$min_gtk_version");
30540      exit(1);
30541    }
30542
30543   if ((gtk_major_version != $gtk_config_major_version) ||
30544       (gtk_minor_version != $gtk_config_minor_version) ||
30545       (gtk_micro_version != $gtk_config_micro_version))
30546     {
30547       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30548              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30549              gtk_major_version, gtk_minor_version, gtk_micro_version);
30550       printf ("*** was found! If gtk-config was correct, then it is best\n");
30551       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30552       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30553       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30554       printf("*** required on your system.\n");
30555       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30556       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30557       printf("*** before re-running configure\n");
30558     }
30559 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30560   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30561            (gtk_minor_version != GTK_MINOR_VERSION) ||
30562            (gtk_micro_version != GTK_MICRO_VERSION))
30563     {
30564       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30565              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30566       printf("*** library (version %d.%d.%d)\n",
30567              gtk_major_version, gtk_minor_version, gtk_micro_version);
30568     }
30569 #endif /* defined (GTK_MAJOR_VERSION) ... */
30570   else
30571     {
30572       if ((gtk_major_version > major) ||
30573         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30574         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30575       {
30576         return 0;
30577        }
30578      else
30579       {
30580         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30581                gtk_major_version, gtk_minor_version, gtk_micro_version);
30582         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30583                major, minor, micro);
30584         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30585         printf("***\n");
30586         printf("*** If you have already installed a sufficiently new version, this error\n");
30587         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30588         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30589         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30590         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30591         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30592         printf("*** so that the correct libraries are found at run-time))\n");
30593       }
30594     }
30595   return 1;
30596 }
30597
30598 _ACEOF
30599 rm -f conftest$ac_exeext
30600 if { (ac_try="$ac_link"
30601 case "(($ac_try" in
30602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603   *) ac_try_echo=$ac_try;;
30604 esac
30605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30606   (eval "$ac_link") 2>&5
30607   ac_status=$?
30608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30610   { (case "(($ac_try" in
30611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612   *) ac_try_echo=$ac_try;;
30613 esac
30614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615   (eval "$ac_try") 2>&5
30616   ac_status=$?
30617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618   (exit $ac_status); }; }; then
30619   :
30620 else
30621   echo "$as_me: program exited with status $ac_status" >&5
30622 echo "$as_me: failed program was:" >&5
30623 sed 's/^/| /' conftest.$ac_ext >&5
30624
30625 ( exit $ac_status )
30626 no_gtk=yes
30627 fi
30628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30629 fi
30630
30631
30632        CFLAGS="$ac_save_CFLAGS"
30633        LIBS="$ac_save_LIBS"
30634      fi
30635   fi
30636   if test "x$no_gtk" = x ; then
30637      { echo "$as_me:$LINENO: result: yes" >&5
30638 echo "${ECHO_T}yes" >&6; }
30639      wx_cv_lib_gtk=1.2.7
30640   else
30641      { echo "$as_me:$LINENO: result: no" >&5
30642 echo "${ECHO_T}no" >&6; }
30643      if test "$GTK_CONFIG" = "no" ; then
30644        echo "*** The gtk-config script installed by GTK could not be found"
30645        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30646        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30647        echo "*** full path to gtk-config."
30648      else
30649        if test -f conf.gtktest ; then
30650         :
30651        else
30652           echo "*** Could not run GTK test program, checking why..."
30653           CFLAGS="$CFLAGS $GTK_CFLAGS"
30654           LIBS="$LIBS $GTK_LIBS"
30655           cat >conftest.$ac_ext <<_ACEOF
30656 /* confdefs.h.  */
30657 _ACEOF
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h.  */
30661
30662 #include <gtk/gtk.h>
30663 #include <stdio.h>
30664
30665 int
30666 main ()
30667 {
30668  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30669   ;
30670   return 0;
30671 }
30672 _ACEOF
30673 rm -f conftest.$ac_objext conftest$ac_exeext
30674 if { (ac_try="$ac_link"
30675 case "(($ac_try" in
30676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30677   *) ac_try_echo=$ac_try;;
30678 esac
30679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30680   (eval "$ac_link") 2>conftest.er1
30681   ac_status=$?
30682   grep -v '^ *+' conftest.er1 >conftest.err
30683   rm -f conftest.er1
30684   cat conftest.err >&5
30685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686   (exit $ac_status); } && {
30687          test -z "$ac_c_werror_flag" ||
30688          test ! -s conftest.err
30689        } && test -s conftest$ac_exeext &&
30690        $as_test_x conftest$ac_exeext; then
30691    echo "*** The test program compiled, but did not run. This usually means"
30692           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30693           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30694           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30695           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30696           echo "*** is required on your system"
30697           echo "***"
30698           echo "*** If you have an old version installed, it is best to remove it, although"
30699           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30700           echo "***"
30701           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30702           echo "*** came with the system with the command"
30703           echo "***"
30704           echo "***    rpm --erase --nodeps gtk gtk-devel"
30705 else
30706   echo "$as_me: failed program was:" >&5
30707 sed 's/^/| /' conftest.$ac_ext >&5
30708
30709          echo "*** The test program failed to compile or link. See the file config.log for the"
30710           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30711           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30712           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30713 fi
30714
30715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30716       conftest$ac_exeext conftest.$ac_ext
30717           CFLAGS="$ac_save_CFLAGS"
30718           LIBS="$ac_save_LIBS"
30719        fi
30720      fi
30721      GTK_CFLAGS=""
30722      GTK_LIBS=""
30723      :
30724   fi
30725
30726
30727   rm -f conf.gtktest
30728
30729
30730                         if test -z "$wx_cv_lib_gtk"; then
30731
30732 # Check whether --with-gtk-prefix was given.
30733 if test "${with_gtk_prefix+set}" = set; then
30734   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30735 else
30736   gtk_config_prefix=""
30737 fi
30738
30739
30740 # Check whether --with-gtk-exec-prefix was given.
30741 if test "${with_gtk_exec_prefix+set}" = set; then
30742   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30743 else
30744   gtk_config_exec_prefix=""
30745 fi
30746
30747 # Check whether --enable-gtktest was given.
30748 if test "${enable_gtktest+set}" = set; then
30749   enableval=$enable_gtktest;
30750 else
30751   enable_gtktest=yes
30752 fi
30753
30754
30755   for module in . $GTK_MODULES
30756   do
30757       case "$module" in
30758          gthread)
30759              gtk_config_args="$gtk_config_args gthread"
30760          ;;
30761       esac
30762   done
30763
30764   if test x$gtk_config_exec_prefix != x ; then
30765      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30766      if test x${GTK_CONFIG+set} != xset ; then
30767         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30768      fi
30769   fi
30770   if test x$gtk_config_prefix != x ; then
30771      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30772      if test x${GTK_CONFIG+set} != xset ; then
30773         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30774      fi
30775   fi
30776
30777   # Extract the first word of "gtk-config", so it can be a program name with args.
30778 set dummy gtk-config; ac_word=$2
30779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30781 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30782   echo $ECHO_N "(cached) $ECHO_C" >&6
30783 else
30784   case $GTK_CONFIG in
30785   [\\/]* | ?:[\\/]*)
30786   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30787   ;;
30788   *)
30789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30790 for as_dir in $PATH
30791 do
30792   IFS=$as_save_IFS
30793   test -z "$as_dir" && as_dir=.
30794   for ac_exec_ext in '' $ac_executable_extensions; do
30795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30796     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30798     break 2
30799   fi
30800 done
30801 done
30802 IFS=$as_save_IFS
30803
30804   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30805   ;;
30806 esac
30807 fi
30808 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30809 if test -n "$GTK_CONFIG"; then
30810   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30811 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30812 else
30813   { echo "$as_me:$LINENO: result: no" >&5
30814 echo "${ECHO_T}no" >&6; }
30815 fi
30816
30817
30818   min_gtk_version=1.2.3
30819   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30820 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30821   no_gtk=""
30822   if test "$GTK_CONFIG" = "no" ; then
30823     no_gtk=yes
30824   else
30825     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30826     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30827     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30828            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30829     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30830            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30831     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30832            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30833     if test "x$enable_gtktest" = "xyes" ; then
30834       ac_save_CFLAGS="$CFLAGS"
30835       ac_save_LIBS="$LIBS"
30836       CFLAGS="$CFLAGS $GTK_CFLAGS"
30837       LIBS="$GTK_LIBS $LIBS"
30838       rm -f conf.gtktest
30839       if test "$cross_compiling" = yes; then
30840   echo $ac_n "cross compiling; assumed OK... $ac_c"
30841 else
30842   cat >conftest.$ac_ext <<_ACEOF
30843 /* confdefs.h.  */
30844 _ACEOF
30845 cat confdefs.h >>conftest.$ac_ext
30846 cat >>conftest.$ac_ext <<_ACEOF
30847 /* end confdefs.h.  */
30848
30849 #include <gtk/gtk.h>
30850 #include <stdio.h>
30851 #include <stdlib.h>
30852
30853 int
30854 main ()
30855 {
30856   int major, minor, micro;
30857   char *tmp_version;
30858
30859   system ("touch conf.gtktest");
30860
30861   /* HP/UX 9 (%@#!) writes to sscanf strings */
30862   tmp_version = g_strdup("$min_gtk_version");
30863   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30864      printf("%s, bad version string\n", "$min_gtk_version");
30865      exit(1);
30866    }
30867
30868   if ((gtk_major_version != $gtk_config_major_version) ||
30869       (gtk_minor_version != $gtk_config_minor_version) ||
30870       (gtk_micro_version != $gtk_config_micro_version))
30871     {
30872       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30873              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30874              gtk_major_version, gtk_minor_version, gtk_micro_version);
30875       printf ("*** was found! If gtk-config was correct, then it is best\n");
30876       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30877       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30878       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30879       printf("*** required on your system.\n");
30880       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30881       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30882       printf("*** before re-running configure\n");
30883     }
30884 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30885   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30886            (gtk_minor_version != GTK_MINOR_VERSION) ||
30887            (gtk_micro_version != GTK_MICRO_VERSION))
30888     {
30889       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30890              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30891       printf("*** library (version %d.%d.%d)\n",
30892              gtk_major_version, gtk_minor_version, gtk_micro_version);
30893     }
30894 #endif /* defined (GTK_MAJOR_VERSION) ... */
30895   else
30896     {
30897       if ((gtk_major_version > major) ||
30898         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30899         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30900       {
30901         return 0;
30902        }
30903      else
30904       {
30905         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30906                gtk_major_version, gtk_minor_version, gtk_micro_version);
30907         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30908                major, minor, micro);
30909         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30910         printf("***\n");
30911         printf("*** If you have already installed a sufficiently new version, this error\n");
30912         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30913         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30914         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30915         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30916         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30917         printf("*** so that the correct libraries are found at run-time))\n");
30918       }
30919     }
30920   return 1;
30921 }
30922
30923 _ACEOF
30924 rm -f conftest$ac_exeext
30925 if { (ac_try="$ac_link"
30926 case "(($ac_try" in
30927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30928   *) ac_try_echo=$ac_try;;
30929 esac
30930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30931   (eval "$ac_link") 2>&5
30932   ac_status=$?
30933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30935   { (case "(($ac_try" in
30936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937   *) ac_try_echo=$ac_try;;
30938 esac
30939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940   (eval "$ac_try") 2>&5
30941   ac_status=$?
30942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943   (exit $ac_status); }; }; then
30944   :
30945 else
30946   echo "$as_me: program exited with status $ac_status" >&5
30947 echo "$as_me: failed program was:" >&5
30948 sed 's/^/| /' conftest.$ac_ext >&5
30949
30950 ( exit $ac_status )
30951 no_gtk=yes
30952 fi
30953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30954 fi
30955
30956
30957        CFLAGS="$ac_save_CFLAGS"
30958        LIBS="$ac_save_LIBS"
30959      fi
30960   fi
30961   if test "x$no_gtk" = x ; then
30962      { echo "$as_me:$LINENO: result: yes" >&5
30963 echo "${ECHO_T}yes" >&6; }
30964      wx_cv_lib_gtk=1.2.3
30965   else
30966      { echo "$as_me:$LINENO: result: no" >&5
30967 echo "${ECHO_T}no" >&6; }
30968      if test "$GTK_CONFIG" = "no" ; then
30969        echo "*** The gtk-config script installed by GTK could not be found"
30970        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30971        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30972        echo "*** full path to gtk-config."
30973      else
30974        if test -f conf.gtktest ; then
30975         :
30976        else
30977           echo "*** Could not run GTK test program, checking why..."
30978           CFLAGS="$CFLAGS $GTK_CFLAGS"
30979           LIBS="$LIBS $GTK_LIBS"
30980           cat >conftest.$ac_ext <<_ACEOF
30981 /* confdefs.h.  */
30982 _ACEOF
30983 cat confdefs.h >>conftest.$ac_ext
30984 cat >>conftest.$ac_ext <<_ACEOF
30985 /* end confdefs.h.  */
30986
30987 #include <gtk/gtk.h>
30988 #include <stdio.h>
30989
30990 int
30991 main ()
30992 {
30993  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30994   ;
30995   return 0;
30996 }
30997 _ACEOF
30998 rm -f conftest.$ac_objext conftest$ac_exeext
30999 if { (ac_try="$ac_link"
31000 case "(($ac_try" in
31001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31002   *) ac_try_echo=$ac_try;;
31003 esac
31004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31005   (eval "$ac_link") 2>conftest.er1
31006   ac_status=$?
31007   grep -v '^ *+' conftest.er1 >conftest.err
31008   rm -f conftest.er1
31009   cat conftest.err >&5
31010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011   (exit $ac_status); } && {
31012          test -z "$ac_c_werror_flag" ||
31013          test ! -s conftest.err
31014        } && test -s conftest$ac_exeext &&
31015        $as_test_x conftest$ac_exeext; then
31016    echo "*** The test program compiled, but did not run. This usually means"
31017           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31018           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31019           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31020           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31021           echo "*** is required on your system"
31022           echo "***"
31023           echo "*** If you have an old version installed, it is best to remove it, although"
31024           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31025           echo "***"
31026           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31027           echo "*** came with the system with the command"
31028           echo "***"
31029           echo "***    rpm --erase --nodeps gtk gtk-devel"
31030 else
31031   echo "$as_me: failed program was:" >&5
31032 sed 's/^/| /' conftest.$ac_ext >&5
31033
31034          echo "*** The test program failed to compile or link. See the file config.log for the"
31035           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31036           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31037           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31038 fi
31039
31040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31041       conftest$ac_exeext conftest.$ac_ext
31042           CFLAGS="$ac_save_CFLAGS"
31043           LIBS="$ac_save_LIBS"
31044        fi
31045      fi
31046      GTK_CFLAGS=""
31047      GTK_LIBS=""
31048      :
31049   fi
31050
31051
31052   rm -f conf.gtktest
31053
31054                         fi
31055                     fi
31056                 fi
31057
31058                 if test -z "$wx_cv_lib_gtk"; then
31059                                         wx_cv_lib_gtk=none
31060                 else
31061                                         GTK_LIBS="$GTK_LIBS -lX11"
31062
31063                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31064                     wx_cv_libs_gtk=$GTK_LIBS
31065                 fi
31066
31067
31068 fi
31069
31070
31071                         if test "$gtk_version_cached" = 1; then
31072             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31073 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31074         fi
31075
31076         case "$wx_cv_lib_gtk" in
31077             2.0)    WXGTK2=1
31078                     TOOLKIT_VERSION=2
31079                     ;;
31080             1.2.7)  WXGTK127=1
31081                     ;;
31082             1.2*) ;;
31083             *)      { { echo "$as_me:$LINENO: error:
31084 The development files for GTK+ were not found. For GTK+ 2, please
31085 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31086 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31087 and that the version is 1.2.3 or above. Also check that the
31088 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31089 --libs' are in the LD_LIBRARY_PATH or equivalent.
31090                             " >&5
31091 echo "$as_me: error:
31092 The development files for GTK+ were not found. For GTK+ 2, please
31093 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31094 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31095 and that the version is 1.2.3 or above. Also check that the
31096 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31097 --libs' are in the LD_LIBRARY_PATH or equivalent.
31098                             " >&2;}
31099    { (exit 1); exit 1; }; }
31100                     ;;
31101         esac
31102
31103         if test "$WXGTK2" = 1; then
31104             save_CFLAGS="$CFLAGS"
31105             save_LIBS="$LIBS"
31106             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31107             LIBS="$LIBS $wx_cv_libs_gtk"
31108
31109                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
31110 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
31111             cat >conftest.$ac_ext <<_ACEOF
31112 /* confdefs.h.  */
31113 _ACEOF
31114 cat confdefs.h >>conftest.$ac_ext
31115 cat >>conftest.$ac_ext <<_ACEOF
31116 /* end confdefs.h.  */
31117
31118                             #include <gtk/gtk.h>
31119
31120 int
31121 main ()
31122 {
31123
31124                             #if !GTK_CHECK_VERSION(2,18,0)
31125                             Not GTK+ 2.18
31126                             #endif
31127
31128   ;
31129   return 0;
31130 }
31131 _ACEOF
31132 rm -f conftest.$ac_objext
31133 if { (ac_try="$ac_compile"
31134 case "(($ac_try" in
31135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31136   *) ac_try_echo=$ac_try;;
31137 esac
31138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31139   (eval "$ac_compile") 2>conftest.er1
31140   ac_status=$?
31141   grep -v '^ *+' conftest.er1 >conftest.err
31142   rm -f conftest.er1
31143   cat conftest.err >&5
31144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145   (exit $ac_status); } && {
31146          test -z "$ac_c_werror_flag" ||
31147          test ! -s conftest.err
31148        } && test -s conftest.$ac_objext; then
31149
31150                             cat >>confdefs.h <<\_ACEOF
31151 #define __WXGTK218__ 1
31152 _ACEOF
31153
31154                             cat >>confdefs.h <<\_ACEOF
31155 #define __WXGTK210__ 1
31156 _ACEOF
31157
31158                             cat >>confdefs.h <<\_ACEOF
31159 #define __WXGTK26__ 1
31160 _ACEOF
31161
31162                             { echo "$as_me:$LINENO: result: yes" >&5
31163 echo "${ECHO_T}yes" >&6; }
31164                             ac_wxgtk218=1
31165
31166 else
31167   echo "$as_me: failed program was:" >&5
31168 sed 's/^/| /' conftest.$ac_ext >&5
31169
31170
31171                             { echo "$as_me:$LINENO: result: no" >&5
31172 echo "${ECHO_T}no" >&6; }
31173                             ac_wxgtk218=0
31174
31175 fi
31176
31177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31178
31179             if test "$ac_wxgtk218" = 0; then
31180                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31181 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31182                 cat >conftest.$ac_ext <<_ACEOF
31183 /* confdefs.h.  */
31184 _ACEOF
31185 cat confdefs.h >>conftest.$ac_ext
31186 cat >>conftest.$ac_ext <<_ACEOF
31187 /* end confdefs.h.  */
31188
31189                                 #include <gtk/gtk.h>
31190
31191 int
31192 main ()
31193 {
31194
31195                                 #if !GTK_CHECK_VERSION(2,10,0)
31196                                 Not GTK+ 2.10
31197                                 #endif
31198
31199   ;
31200   return 0;
31201 }
31202 _ACEOF
31203 rm -f conftest.$ac_objext
31204 if { (ac_try="$ac_compile"
31205 case "(($ac_try" in
31206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31207   *) ac_try_echo=$ac_try;;
31208 esac
31209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31210   (eval "$ac_compile") 2>conftest.er1
31211   ac_status=$?
31212   grep -v '^ *+' conftest.er1 >conftest.err
31213   rm -f conftest.er1
31214   cat conftest.err >&5
31215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216   (exit $ac_status); } && {
31217          test -z "$ac_c_werror_flag" ||
31218          test ! -s conftest.err
31219        } && test -s conftest.$ac_objext; then
31220
31221                                 cat >>confdefs.h <<\_ACEOF
31222 #define __WXGTK210__ 1
31223 _ACEOF
31224
31225                                 cat >>confdefs.h <<\_ACEOF
31226 #define __WXGTK26__ 1
31227 _ACEOF
31228
31229                                 { echo "$as_me:$LINENO: result: yes" >&5
31230 echo "${ECHO_T}yes" >&6; }
31231                                 ac_wxgtk210=1
31232
31233 else
31234   echo "$as_me: failed program was:" >&5
31235 sed 's/^/| /' conftest.$ac_ext >&5
31236
31237
31238                                 { echo "$as_me:$LINENO: result: no" >&5
31239 echo "${ECHO_T}no" >&6; }
31240                                 ac_wxgtk210=0
31241
31242 fi
31243
31244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31245
31246                 if test "$ac_wxgtk210" = 0; then
31247                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31248 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31249                     cat >conftest.$ac_ext <<_ACEOF
31250 /* confdefs.h.  */
31251 _ACEOF
31252 cat confdefs.h >>conftest.$ac_ext
31253 cat >>conftest.$ac_ext <<_ACEOF
31254 /* end confdefs.h.  */
31255
31256                                     #include <gtk/gtk.h>
31257
31258 int
31259 main ()
31260 {
31261
31262                                     #if !GTK_CHECK_VERSION(2,6,0)
31263                                     Not GTK+ 2.6
31264                                     #endif
31265
31266   ;
31267   return 0;
31268 }
31269 _ACEOF
31270 rm -f conftest.$ac_objext
31271 if { (ac_try="$ac_compile"
31272 case "(($ac_try" in
31273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31274   *) ac_try_echo=$ac_try;;
31275 esac
31276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31277   (eval "$ac_compile") 2>conftest.er1
31278   ac_status=$?
31279   grep -v '^ *+' conftest.er1 >conftest.err
31280   rm -f conftest.er1
31281   cat conftest.err >&5
31282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283   (exit $ac_status); } && {
31284          test -z "$ac_c_werror_flag" ||
31285          test ! -s conftest.err
31286        } && test -s conftest.$ac_objext; then
31287
31288                                     cat >>confdefs.h <<\_ACEOF
31289 #define __WXGTK26__ 1
31290 _ACEOF
31291
31292                                     { echo "$as_me:$LINENO: result: yes" >&5
31293 echo "${ECHO_T}yes" >&6; }
31294                                     ac_wxgtk26=1
31295
31296 else
31297   echo "$as_me: failed program was:" >&5
31298 sed 's/^/| /' conftest.$ac_ext >&5
31299
31300
31301                                     { echo "$as_me:$LINENO: result: no" >&5
31302 echo "${ECHO_T}no" >&6; }
31303                                     ac_wxgtk26=0
31304
31305 fi
31306
31307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31308                 fi
31309             fi
31310
31311             CFLAGS="$save_CFLAGS"
31312             LIBS="$save_LIBS"
31313         else
31314             if test "$wxUSE_UNICODE" = "yes"; then
31315                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31316 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31317                 wxUSE_UNICODE=no
31318             fi
31319
31320                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31321 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31322 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31323   echo $ECHO_N "(cached) $ECHO_C" >&6
31324 else
31325   ac_check_lib_save_LIBS=$LIBS
31326 LIBS="-lgdk  $LIBS"
31327 cat >conftest.$ac_ext <<_ACEOF
31328 /* confdefs.h.  */
31329 _ACEOF
31330 cat confdefs.h >>conftest.$ac_ext
31331 cat >>conftest.$ac_ext <<_ACEOF
31332 /* end confdefs.h.  */
31333
31334 /* Override any GCC internal prototype to avoid an error.
31335    Use char because int might match the return type of a GCC
31336    builtin and then its argument prototype would still apply.  */
31337 #ifdef __cplusplus
31338 extern "C"
31339 #endif
31340 char gdk_im_open ();
31341 int
31342 main ()
31343 {
31344 return gdk_im_open ();
31345   ;
31346   return 0;
31347 }
31348 _ACEOF
31349 rm -f conftest.$ac_objext conftest$ac_exeext
31350 if { (ac_try="$ac_link"
31351 case "(($ac_try" in
31352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353   *) ac_try_echo=$ac_try;;
31354 esac
31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356   (eval "$ac_link") 2>conftest.er1
31357   ac_status=$?
31358   grep -v '^ *+' conftest.er1 >conftest.err
31359   rm -f conftest.er1
31360   cat conftest.err >&5
31361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362   (exit $ac_status); } && {
31363          test -z "$ac_c_werror_flag" ||
31364          test ! -s conftest.err
31365        } && test -s conftest$ac_exeext &&
31366        $as_test_x conftest$ac_exeext; then
31367   ac_cv_lib_gdk_gdk_im_open=yes
31368 else
31369   echo "$as_me: failed program was:" >&5
31370 sed 's/^/| /' conftest.$ac_ext >&5
31371
31372         ac_cv_lib_gdk_gdk_im_open=no
31373 fi
31374
31375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31376       conftest$ac_exeext conftest.$ac_ext
31377 LIBS=$ac_check_lib_save_LIBS
31378 fi
31379 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31380 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31381 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31382   cat >>confdefs.h <<\_ACEOF
31383 #define HAVE_XIM 1
31384 _ACEOF
31385
31386 fi
31387
31388
31389                                     if test "$USE_DARWIN" != 1; then
31390
31391 for ac_func in poll
31392 do
31393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31397   echo $ECHO_N "(cached) $ECHO_C" >&6
31398 else
31399   cat >conftest.$ac_ext <<_ACEOF
31400 /* confdefs.h.  */
31401 _ACEOF
31402 cat confdefs.h >>conftest.$ac_ext
31403 cat >>conftest.$ac_ext <<_ACEOF
31404 /* end confdefs.h.  */
31405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31407 #define $ac_func innocuous_$ac_func
31408
31409 /* System header to define __stub macros and hopefully few prototypes,
31410     which can conflict with char $ac_func (); below.
31411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31412     <limits.h> exists even on freestanding compilers.  */
31413
31414 #ifdef __STDC__
31415 # include <limits.h>
31416 #else
31417 # include <assert.h>
31418 #endif
31419
31420 #undef $ac_func
31421
31422 /* Override any GCC internal prototype to avoid an error.
31423    Use char because int might match the return type of a GCC
31424    builtin and then its argument prototype would still apply.  */
31425 #ifdef __cplusplus
31426 extern "C"
31427 #endif
31428 char $ac_func ();
31429 /* The GNU C library defines this for functions which it implements
31430     to always fail with ENOSYS.  Some functions are actually named
31431     something starting with __ and the normal name is an alias.  */
31432 #if defined __stub_$ac_func || defined __stub___$ac_func
31433 choke me
31434 #endif
31435
31436 int
31437 main ()
31438 {
31439 return $ac_func ();
31440   ;
31441   return 0;
31442 }
31443 _ACEOF
31444 rm -f conftest.$ac_objext conftest$ac_exeext
31445 if { (ac_try="$ac_link"
31446 case "(($ac_try" in
31447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31448   *) ac_try_echo=$ac_try;;
31449 esac
31450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31451   (eval "$ac_link") 2>conftest.er1
31452   ac_status=$?
31453   grep -v '^ *+' conftest.er1 >conftest.err
31454   rm -f conftest.er1
31455   cat conftest.err >&5
31456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457   (exit $ac_status); } && {
31458          test -z "$ac_c_werror_flag" ||
31459          test ! -s conftest.err
31460        } && test -s conftest$ac_exeext &&
31461        $as_test_x conftest$ac_exeext; then
31462   eval "$as_ac_var=yes"
31463 else
31464   echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31466
31467         eval "$as_ac_var=no"
31468 fi
31469
31470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31471       conftest$ac_exeext conftest.$ac_ext
31472 fi
31473 ac_res=`eval echo '${'$as_ac_var'}'`
31474                { echo "$as_me:$LINENO: result: $ac_res" >&5
31475 echo "${ECHO_T}$ac_res" >&6; }
31476 if test `eval echo '${'$as_ac_var'}'` = yes; then
31477   cat >>confdefs.h <<_ACEOF
31478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31479 _ACEOF
31480
31481 fi
31482 done
31483
31484             fi
31485         fi
31486
31487         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31488         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31489         AFMINSTALL=afminstall
31490         TOOLKIT=GTK
31491         GUIDIST=GTK_DIST
31492
31493                 if test "$wxUSE_GPE" = "yes"; then
31494             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31495 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31496
31497   ac_find_libraries=
31498   for ac_dir in $SEARCH_LIB
31499   do
31500     for ac_extension in a so sl dylib dll.a; do
31501       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31502         ac_find_libraries=$ac_dir
31503         break 2
31504       fi
31505     done
31506   done
31507
31508             if test "$ac_find_libraries" != "" ; then
31509
31510     if test "$ac_find_libraries" = "default location"; then
31511     ac_path_to_link=""
31512   else
31513     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31514     result=$?
31515     if test $result = 0; then
31516       ac_path_to_link=""
31517     else
31518       ac_path_to_link=" -L$ac_find_libraries"
31519     fi
31520   fi
31521
31522                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31523                 WXGPE=1
31524                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31525 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31526             else
31527                 { echo "$as_me:$LINENO: result: not found" >&5
31528 echo "${ECHO_T}not found" >&6; }
31529             fi
31530
31531                                                                                                                     fi
31532     fi
31533
31534     if test "$wxUSE_MGL" = 1; then
31535        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31536 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31537         if test "x$MGL_ROOT" = x ; then
31538             { echo "$as_me:$LINENO: result: not found" >&5
31539 echo "${ECHO_T}not found" >&6; }
31540             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31541 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31542    { (exit 1); exit 1; }; }
31543         else
31544             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31545 echo "${ECHO_T}$MGL_ROOT" >&6; }
31546         fi
31547
31548         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31549 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31550                                 case "${host}" in
31551             *-*-linux* )
31552                                           if test "x$wxUSE_SHARED" = xyes ; then
31553                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31554               else
31555                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31556               fi
31557               ;;
31558             *-pc-msdosdjgpp )
31559               mgl_os_candidates="dos32/dj2"
31560               ;;
31561             *)
31562               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31563 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31564    { (exit 1); exit 1; }; }
31565         esac
31566
31567         mgl_lib_type=""
31568         mgl_os=""
31569
31570         for mgl_os_i in $mgl_os_candidates ; do
31571             if test "x$mgl_os" = x ; then
31572                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31573                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31574                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31575                         mgl_lib_type=debug
31576                         mgl_os=$mgl_os_i
31577                     fi
31578                 fi
31579                 if test "x$mgl_lib_type" = x ; then
31580                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31581                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31582                         mgl_lib_type=release
31583                         mgl_os=$mgl_os_i
31584                     fi
31585                 fi
31586             fi
31587         done
31588
31589         if test "x$mgl_os" = x ; then
31590             { echo "$as_me:$LINENO: result: not found" >&5
31591 echo "${ECHO_T}not found" >&6; }
31592             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31593 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31594    { (exit 1); exit 1; }; }
31595         fi
31596         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31597 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31598
31599         wxUSE_UNIVERSAL="yes"
31600
31601         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31602         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31603
31604         AFMINSTALL=afminstall
31605         TOOLKIT=MGL
31606         GUIDIST=MGL_DIST
31607     fi
31608
31609     if test "$wxUSE_DFB" = 1; then
31610
31611
31612 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31613         if test -n "$ac_tool_prefix"; then
31614   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31615 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31619   echo $ECHO_N "(cached) $ECHO_C" >&6
31620 else
31621   case $PKG_CONFIG in
31622   [\\/]* | ?:[\\/]*)
31623   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31624   ;;
31625   *)
31626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31627 for as_dir in $PATH
31628 do
31629   IFS=$as_save_IFS
31630   test -z "$as_dir" && as_dir=.
31631   for ac_exec_ext in '' $ac_executable_extensions; do
31632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31633     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31635     break 2
31636   fi
31637 done
31638 done
31639 IFS=$as_save_IFS
31640
31641   ;;
31642 esac
31643 fi
31644 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31645 if test -n "$PKG_CONFIG"; then
31646   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31647 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31648 else
31649   { echo "$as_me:$LINENO: result: no" >&5
31650 echo "${ECHO_T}no" >&6; }
31651 fi
31652
31653
31654 fi
31655 if test -z "$ac_cv_path_PKG_CONFIG"; then
31656   ac_pt_PKG_CONFIG=$PKG_CONFIG
31657   # Extract the first word of "pkg-config", so it can be a program name with args.
31658 set dummy pkg-config; ac_word=$2
31659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31661 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31662   echo $ECHO_N "(cached) $ECHO_C" >&6
31663 else
31664   case $ac_pt_PKG_CONFIG in
31665   [\\/]* | ?:[\\/]*)
31666   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31667   ;;
31668   *)
31669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31670 for as_dir in $PATH
31671 do
31672   IFS=$as_save_IFS
31673   test -z "$as_dir" && as_dir=.
31674   for ac_exec_ext in '' $ac_executable_extensions; do
31675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31676     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31678     break 2
31679   fi
31680 done
31681 done
31682 IFS=$as_save_IFS
31683
31684   ;;
31685 esac
31686 fi
31687 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31688 if test -n "$ac_pt_PKG_CONFIG"; then
31689   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31690 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31691 else
31692   { echo "$as_me:$LINENO: result: no" >&5
31693 echo "${ECHO_T}no" >&6; }
31694 fi
31695
31696   if test "x$ac_pt_PKG_CONFIG" = x; then
31697     PKG_CONFIG=""
31698   else
31699     case $cross_compiling:$ac_tool_warned in
31700 yes:)
31701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31702 whose name does not start with the host triplet.  If you think this
31703 configuration is useful to you, please write to autoconf@gnu.org." >&5
31704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31705 whose name does not start with the host triplet.  If you think this
31706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31707 ac_tool_warned=yes ;;
31708 esac
31709     PKG_CONFIG=$ac_pt_PKG_CONFIG
31710   fi
31711 else
31712   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31713 fi
31714
31715 fi
31716 if test -n "$PKG_CONFIG"; then
31717         _pkg_min_version=0.9.0
31718         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31719 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31720         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31721                 { echo "$as_me:$LINENO: result: yes" >&5
31722 echo "${ECHO_T}yes" >&6; }
31723         else
31724                 { echo "$as_me:$LINENO: result: no" >&5
31725 echo "${ECHO_T}no" >&6; }
31726                 PKG_CONFIG=""
31727         fi
31728
31729 fi
31730
31731
31732 pkg_failed=no
31733 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31734 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31735
31736 if test -n "$PKG_CONFIG"; then
31737     if test -n "$DIRECTFB_CFLAGS"; then
31738         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31739     else
31740         if test -n "$PKG_CONFIG" && \
31741     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31742   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31743   ac_status=$?
31744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745   (exit $ac_status); }; then
31746   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31747 else
31748   pkg_failed=yes
31749 fi
31750     fi
31751 else
31752         pkg_failed=untried
31753 fi
31754 if test -n "$PKG_CONFIG"; then
31755     if test -n "$DIRECTFB_LIBS"; then
31756         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31757     else
31758         if test -n "$PKG_CONFIG" && \
31759     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31760   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31761   ac_status=$?
31762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763   (exit $ac_status); }; then
31764   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31765 else
31766   pkg_failed=yes
31767 fi
31768     fi
31769 else
31770         pkg_failed=untried
31771 fi
31772
31773
31774
31775 if test $pkg_failed = yes; then
31776
31777 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31778         _pkg_short_errors_supported=yes
31779 else
31780         _pkg_short_errors_supported=no
31781 fi
31782         if test $_pkg_short_errors_supported = yes; then
31783                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31784         else
31785                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31786         fi
31787         # Put the nasty error message in config.log where it belongs
31788         echo "$DIRECTFB_PKG_ERRORS" >&5
31789
31790
31791                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31792 echo "$as_me: error: DirectFB not found." >&2;}
31793    { (exit 1); exit 1; }; }
31794
31795
31796 elif test $pkg_failed = untried; then
31797
31798                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31799 echo "$as_me: error: DirectFB not found." >&2;}
31800    { (exit 1); exit 1; }; }
31801
31802
31803 else
31804         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31805         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31806         { echo "$as_me:$LINENO: result: yes" >&5
31807 echo "${ECHO_T}yes" >&6; }
31808
31809                            wxUSE_UNIVERSAL="yes"
31810                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31811                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31812                            TOOLKIT=DFB
31813                            GUIDIST=DFB_DIST
31814
31815 fi
31816     fi
31817
31818     if test "$wxUSE_MICROWIN" = 1; then
31819         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31820 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31821         if test "x$MICROWINDOWS" = x ; then
31822             { echo "$as_me:$LINENO: result: not found" >&5
31823 echo "${ECHO_T}not found" >&6; }
31824             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31825 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31826    { (exit 1); exit 1; }; }
31827         else
31828             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31829 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31830         fi
31831
31832         if test -f $MICROWINDOWS/lib/libmwin.a; then
31833             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31834 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31835         else
31836             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31837 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31838    { (exit 1); exit 1; }; }
31839         fi
31840
31841         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31842         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31843
31844         wxUSE_UNIVERSAL="yes"
31845
31846         AFMINSTALL=afminstall
31847         TOOLKIT=MICROWIN
31848         GUIDIST=MICROWIN_DIST
31849
31850         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31851     fi
31852
31853         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31854                                 { echo "$as_me:$LINENO: checking for X" >&5
31855 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31856
31857
31858 # Check whether --with-x was given.
31859 if test "${with_x+set}" = set; then
31860   withval=$with_x;
31861 fi
31862
31863 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31864 if test "x$with_x" = xno; then
31865   # The user explicitly disabled X.
31866   have_x=disabled
31867 else
31868   case $x_includes,$x_libraries in #(
31869     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31870 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31871    { (exit 1); exit 1; }; };; #(
31872     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31873   echo $ECHO_N "(cached) $ECHO_C" >&6
31874 else
31875   # One or both of the vars are not set, and there is no cached value.
31876 ac_x_includes=no ac_x_libraries=no
31877 rm -f -r conftest.dir
31878 if mkdir conftest.dir; then
31879   cd conftest.dir
31880   cat >Imakefile <<'_ACEOF'
31881 incroot:
31882         @echo incroot='${INCROOT}'
31883 usrlibdir:
31884         @echo usrlibdir='${USRLIBDIR}'
31885 libdir:
31886         @echo libdir='${LIBDIR}'
31887 _ACEOF
31888   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31889     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31890     for ac_var in incroot usrlibdir libdir; do
31891       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31892     done
31893     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31894     for ac_extension in a so sl; do
31895       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31896          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31897         ac_im_usrlibdir=$ac_im_libdir; break
31898       fi
31899     done
31900     # Screen out bogus values from the imake configuration.  They are
31901     # bogus both because they are the default anyway, and because
31902     # using them would break gcc on systems where it needs fixed includes.
31903     case $ac_im_incroot in
31904         /usr/include) ac_x_includes= ;;
31905         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31906     esac
31907     case $ac_im_usrlibdir in
31908         /usr/lib | /lib) ;;
31909         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31910     esac
31911   fi
31912   cd ..
31913   rm -f -r conftest.dir
31914 fi
31915
31916 # Standard set of common directories for X headers.
31917 # Check X11 before X11Rn because it is often a symlink to the current release.
31918 ac_x_header_dirs='
31919 /usr/X11/include
31920 /usr/X11R6/include
31921 /usr/X11R5/include
31922 /usr/X11R4/include
31923
31924 /usr/include/X11
31925 /usr/include/X11R6
31926 /usr/include/X11R5
31927 /usr/include/X11R4
31928
31929 /usr/local/X11/include
31930 /usr/local/X11R6/include
31931 /usr/local/X11R5/include
31932 /usr/local/X11R4/include
31933
31934 /usr/local/include/X11
31935 /usr/local/include/X11R6
31936 /usr/local/include/X11R5
31937 /usr/local/include/X11R4
31938
31939 /usr/X386/include
31940 /usr/x386/include
31941 /usr/XFree86/include/X11
31942
31943 /usr/include
31944 /usr/local/include
31945 /usr/unsupported/include
31946 /usr/athena/include
31947 /usr/local/x11r5/include
31948 /usr/lpp/Xamples/include
31949
31950 /usr/openwin/include
31951 /usr/openwin/share/include'
31952
31953 if test "$ac_x_includes" = no; then
31954   # Guess where to find include files, by looking for Xlib.h.
31955   # First, try using that file with no special directory specified.
31956   cat >conftest.$ac_ext <<_ACEOF
31957 /* confdefs.h.  */
31958 _ACEOF
31959 cat confdefs.h >>conftest.$ac_ext
31960 cat >>conftest.$ac_ext <<_ACEOF
31961 /* end confdefs.h.  */
31962 #include <X11/Xlib.h>
31963 _ACEOF
31964 if { (ac_try="$ac_cpp conftest.$ac_ext"
31965 case "(($ac_try" in
31966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31967   *) ac_try_echo=$ac_try;;
31968 esac
31969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31971   ac_status=$?
31972   grep -v '^ *+' conftest.er1 >conftest.err
31973   rm -f conftest.er1
31974   cat conftest.err >&5
31975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976   (exit $ac_status); } >/dev/null && {
31977          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31978          test ! -s conftest.err
31979        }; then
31980   # We can compile using X headers with no special include directory.
31981 ac_x_includes=
31982 else
31983   echo "$as_me: failed program was:" >&5
31984 sed 's/^/| /' conftest.$ac_ext >&5
31985
31986   for ac_dir in $ac_x_header_dirs; do
31987   if test -r "$ac_dir/X11/Xlib.h"; then
31988     ac_x_includes=$ac_dir
31989     break
31990   fi
31991 done
31992 fi
31993
31994 rm -f conftest.err conftest.$ac_ext
31995 fi # $ac_x_includes = no
31996
31997 if test "$ac_x_libraries" = no; then
31998   # Check for the libraries.
31999   # See if we find them without any special options.
32000   # Don't add to $LIBS permanently.
32001   ac_save_LIBS=$LIBS
32002   LIBS="-lX11 $LIBS"
32003   cat >conftest.$ac_ext <<_ACEOF
32004 /* confdefs.h.  */
32005 _ACEOF
32006 cat confdefs.h >>conftest.$ac_ext
32007 cat >>conftest.$ac_ext <<_ACEOF
32008 /* end confdefs.h.  */
32009 #include <X11/Xlib.h>
32010 int
32011 main ()
32012 {
32013 XrmInitialize ()
32014   ;
32015   return 0;
32016 }
32017 _ACEOF
32018 rm -f conftest.$ac_objext conftest$ac_exeext
32019 if { (ac_try="$ac_link"
32020 case "(($ac_try" in
32021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022   *) ac_try_echo=$ac_try;;
32023 esac
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025   (eval "$ac_link") 2>conftest.er1
32026   ac_status=$?
32027   grep -v '^ *+' conftest.er1 >conftest.err
32028   rm -f conftest.er1
32029   cat conftest.err >&5
32030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031   (exit $ac_status); } && {
32032          test -z "$ac_c_werror_flag" ||
32033          test ! -s conftest.err
32034        } && test -s conftest$ac_exeext &&
32035        $as_test_x conftest$ac_exeext; then
32036   LIBS=$ac_save_LIBS
32037 # We can link X programs with no special library path.
32038 ac_x_libraries=
32039 else
32040   echo "$as_me: failed program was:" >&5
32041 sed 's/^/| /' conftest.$ac_ext >&5
32042
32043         LIBS=$ac_save_LIBS
32044 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32045 do
32046   # Don't even attempt the hair of trying to link an X program!
32047   for ac_extension in a so sl; do
32048     if test -r "$ac_dir/libX11.$ac_extension"; then
32049       ac_x_libraries=$ac_dir
32050       break 2
32051     fi
32052   done
32053 done
32054 fi
32055
32056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32057       conftest$ac_exeext conftest.$ac_ext
32058 fi # $ac_x_libraries = no
32059
32060 case $ac_x_includes,$ac_x_libraries in #(
32061   no,* | *,no | *\'*)
32062     # Didn't find X, or a directory has "'" in its name.
32063     ac_cv_have_x="have_x=no";; #(
32064   *)
32065     # Record where we found X for the cache.
32066     ac_cv_have_x="have_x=yes\
32067         ac_x_includes='$ac_x_includes'\
32068         ac_x_libraries='$ac_x_libraries'"
32069 esac
32070 fi
32071 ;; #(
32072     *) have_x=yes;;
32073   esac
32074   eval "$ac_cv_have_x"
32075 fi # $with_x != no
32076
32077 if test "$have_x" != yes; then
32078   { echo "$as_me:$LINENO: result: $have_x" >&5
32079 echo "${ECHO_T}$have_x" >&6; }
32080   no_x=yes
32081 else
32082   # If each of the values was on the command line, it overrides each guess.
32083   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32084   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32085   # Update the cache value to reflect the command line values.
32086   ac_cv_have_x="have_x=yes\
32087         ac_x_includes='$x_includes'\
32088         ac_x_libraries='$x_libraries'"
32089   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32090 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32091 fi
32092
32093 if test "$no_x" = yes; then
32094   # Not all programs may use this symbol, but it does not hurt to define it.
32095
32096 cat >>confdefs.h <<\_ACEOF
32097 #define X_DISPLAY_MISSING 1
32098 _ACEOF
32099
32100   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32101 else
32102   if test -n "$x_includes"; then
32103     X_CFLAGS="$X_CFLAGS -I$x_includes"
32104   fi
32105
32106   # It would also be nice to do this for all -L options, not just this one.
32107   if test -n "$x_libraries"; then
32108     X_LIBS="$X_LIBS -L$x_libraries"
32109     # For Solaris; some versions of Sun CC require a space after -R and
32110     # others require no space.  Words are not sufficient . . . .
32111     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32112 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32113     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32114     ac_xsave_c_werror_flag=$ac_c_werror_flag
32115     ac_c_werror_flag=yes
32116     cat >conftest.$ac_ext <<_ACEOF
32117 /* confdefs.h.  */
32118 _ACEOF
32119 cat confdefs.h >>conftest.$ac_ext
32120 cat >>conftest.$ac_ext <<_ACEOF
32121 /* end confdefs.h.  */
32122
32123 int
32124 main ()
32125 {
32126
32127   ;
32128   return 0;
32129 }
32130 _ACEOF
32131 rm -f conftest.$ac_objext conftest$ac_exeext
32132 if { (ac_try="$ac_link"
32133 case "(($ac_try" in
32134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32135   *) ac_try_echo=$ac_try;;
32136 esac
32137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32138   (eval "$ac_link") 2>conftest.er1
32139   ac_status=$?
32140   grep -v '^ *+' conftest.er1 >conftest.err
32141   rm -f conftest.er1
32142   cat conftest.err >&5
32143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144   (exit $ac_status); } && {
32145          test -z "$ac_c_werror_flag" ||
32146          test ! -s conftest.err
32147        } && test -s conftest$ac_exeext &&
32148        $as_test_x conftest$ac_exeext; then
32149   { echo "$as_me:$LINENO: result: no" >&5
32150 echo "${ECHO_T}no" >&6; }
32151        X_LIBS="$X_LIBS -R$x_libraries"
32152 else
32153   echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32155
32156         LIBS="$ac_xsave_LIBS -R $x_libraries"
32157        cat >conftest.$ac_ext <<_ACEOF
32158 /* confdefs.h.  */
32159 _ACEOF
32160 cat confdefs.h >>conftest.$ac_ext
32161 cat >>conftest.$ac_ext <<_ACEOF
32162 /* end confdefs.h.  */
32163
32164 int
32165 main ()
32166 {
32167
32168   ;
32169   return 0;
32170 }
32171 _ACEOF
32172 rm -f conftest.$ac_objext conftest$ac_exeext
32173 if { (ac_try="$ac_link"
32174 case "(($ac_try" in
32175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32176   *) ac_try_echo=$ac_try;;
32177 esac
32178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32179   (eval "$ac_link") 2>conftest.er1
32180   ac_status=$?
32181   grep -v '^ *+' conftest.er1 >conftest.err
32182   rm -f conftest.er1
32183   cat conftest.err >&5
32184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32185   (exit $ac_status); } && {
32186          test -z "$ac_c_werror_flag" ||
32187          test ! -s conftest.err
32188        } && test -s conftest$ac_exeext &&
32189        $as_test_x conftest$ac_exeext; then
32190   { echo "$as_me:$LINENO: result: yes" >&5
32191 echo "${ECHO_T}yes" >&6; }
32192           X_LIBS="$X_LIBS -R $x_libraries"
32193 else
32194   echo "$as_me: failed program was:" >&5
32195 sed 's/^/| /' conftest.$ac_ext >&5
32196
32197         { echo "$as_me:$LINENO: result: neither works" >&5
32198 echo "${ECHO_T}neither works" >&6; }
32199 fi
32200
32201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32202       conftest$ac_exeext conftest.$ac_ext
32203 fi
32204
32205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32206       conftest$ac_exeext conftest.$ac_ext
32207     ac_c_werror_flag=$ac_xsave_c_werror_flag
32208     LIBS=$ac_xsave_LIBS
32209   fi
32210
32211   # Check for system-dependent libraries X programs must link with.
32212   # Do this before checking for the system-independent R6 libraries
32213   # (-lICE), since we may need -lsocket or whatever for X linking.
32214
32215   if test "$ISC" = yes; then
32216     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32217   else
32218     # Martyn Johnson says this is needed for Ultrix, if the X
32219     # libraries were built with DECnet support.  And Karl Berry says
32220     # the Alpha needs dnet_stub (dnet does not exist).
32221     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32222     cat >conftest.$ac_ext <<_ACEOF
32223 /* confdefs.h.  */
32224 _ACEOF
32225 cat confdefs.h >>conftest.$ac_ext
32226 cat >>conftest.$ac_ext <<_ACEOF
32227 /* end confdefs.h.  */
32228
32229 /* Override any GCC internal prototype to avoid an error.
32230    Use char because int might match the return type of a GCC
32231    builtin and then its argument prototype would still apply.  */
32232 #ifdef __cplusplus
32233 extern "C"
32234 #endif
32235 char XOpenDisplay ();
32236 int
32237 main ()
32238 {
32239 return XOpenDisplay ();
32240   ;
32241   return 0;
32242 }
32243 _ACEOF
32244 rm -f conftest.$ac_objext conftest$ac_exeext
32245 if { (ac_try="$ac_link"
32246 case "(($ac_try" in
32247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248   *) ac_try_echo=$ac_try;;
32249 esac
32250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251   (eval "$ac_link") 2>conftest.er1
32252   ac_status=$?
32253   grep -v '^ *+' conftest.er1 >conftest.err
32254   rm -f conftest.er1
32255   cat conftest.err >&5
32256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257   (exit $ac_status); } && {
32258          test -z "$ac_c_werror_flag" ||
32259          test ! -s conftest.err
32260        } && test -s conftest$ac_exeext &&
32261        $as_test_x conftest$ac_exeext; then
32262   :
32263 else
32264   echo "$as_me: failed program was:" >&5
32265 sed 's/^/| /' conftest.$ac_ext >&5
32266
32267         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32268 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32269 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32270   echo $ECHO_N "(cached) $ECHO_C" >&6
32271 else
32272   ac_check_lib_save_LIBS=$LIBS
32273 LIBS="-ldnet  $LIBS"
32274 cat >conftest.$ac_ext <<_ACEOF
32275 /* confdefs.h.  */
32276 _ACEOF
32277 cat confdefs.h >>conftest.$ac_ext
32278 cat >>conftest.$ac_ext <<_ACEOF
32279 /* end confdefs.h.  */
32280
32281 /* Override any GCC internal prototype to avoid an error.
32282    Use char because int might match the return type of a GCC
32283    builtin and then its argument prototype would still apply.  */
32284 #ifdef __cplusplus
32285 extern "C"
32286 #endif
32287 char dnet_ntoa ();
32288 int
32289 main ()
32290 {
32291 return dnet_ntoa ();
32292   ;
32293   return 0;
32294 }
32295 _ACEOF
32296 rm -f conftest.$ac_objext conftest$ac_exeext
32297 if { (ac_try="$ac_link"
32298 case "(($ac_try" in
32299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32300   *) ac_try_echo=$ac_try;;
32301 esac
32302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32303   (eval "$ac_link") 2>conftest.er1
32304   ac_status=$?
32305   grep -v '^ *+' conftest.er1 >conftest.err
32306   rm -f conftest.er1
32307   cat conftest.err >&5
32308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); } && {
32310          test -z "$ac_c_werror_flag" ||
32311          test ! -s conftest.err
32312        } && test -s conftest$ac_exeext &&
32313        $as_test_x conftest$ac_exeext; then
32314   ac_cv_lib_dnet_dnet_ntoa=yes
32315 else
32316   echo "$as_me: failed program was:" >&5
32317 sed 's/^/| /' conftest.$ac_ext >&5
32318
32319         ac_cv_lib_dnet_dnet_ntoa=no
32320 fi
32321
32322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32323       conftest$ac_exeext conftest.$ac_ext
32324 LIBS=$ac_check_lib_save_LIBS
32325 fi
32326 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32327 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32328 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32329   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32330 fi
32331
32332     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32333       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32334 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32335 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32336   echo $ECHO_N "(cached) $ECHO_C" >&6
32337 else
32338   ac_check_lib_save_LIBS=$LIBS
32339 LIBS="-ldnet_stub  $LIBS"
32340 cat >conftest.$ac_ext <<_ACEOF
32341 /* confdefs.h.  */
32342 _ACEOF
32343 cat confdefs.h >>conftest.$ac_ext
32344 cat >>conftest.$ac_ext <<_ACEOF
32345 /* end confdefs.h.  */
32346
32347 /* Override any GCC internal prototype to avoid an error.
32348    Use char because int might match the return type of a GCC
32349    builtin and then its argument prototype would still apply.  */
32350 #ifdef __cplusplus
32351 extern "C"
32352 #endif
32353 char dnet_ntoa ();
32354 int
32355 main ()
32356 {
32357 return dnet_ntoa ();
32358   ;
32359   return 0;
32360 }
32361 _ACEOF
32362 rm -f conftest.$ac_objext conftest$ac_exeext
32363 if { (ac_try="$ac_link"
32364 case "(($ac_try" in
32365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32366   *) ac_try_echo=$ac_try;;
32367 esac
32368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32369   (eval "$ac_link") 2>conftest.er1
32370   ac_status=$?
32371   grep -v '^ *+' conftest.er1 >conftest.err
32372   rm -f conftest.er1
32373   cat conftest.err >&5
32374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375   (exit $ac_status); } && {
32376          test -z "$ac_c_werror_flag" ||
32377          test ! -s conftest.err
32378        } && test -s conftest$ac_exeext &&
32379        $as_test_x conftest$ac_exeext; then
32380   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32381 else
32382   echo "$as_me: failed program was:" >&5
32383 sed 's/^/| /' conftest.$ac_ext >&5
32384
32385         ac_cv_lib_dnet_stub_dnet_ntoa=no
32386 fi
32387
32388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32389       conftest$ac_exeext conftest.$ac_ext
32390 LIBS=$ac_check_lib_save_LIBS
32391 fi
32392 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32393 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32394 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32395   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32396 fi
32397
32398     fi
32399 fi
32400
32401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32402       conftest$ac_exeext conftest.$ac_ext
32403     LIBS="$ac_xsave_LIBS"
32404
32405     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32406     # to get the SysV transport functions.
32407     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32408     # needs -lnsl.
32409     # The nsl library prevents programs from opening the X display
32410     # on Irix 5.2, according to T.E. Dickey.
32411     # The functions gethostbyname, getservbyname, and inet_addr are
32412     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32413     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32414 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32415 if test "${ac_cv_func_gethostbyname+set}" = set; then
32416   echo $ECHO_N "(cached) $ECHO_C" >&6
32417 else
32418   cat >conftest.$ac_ext <<_ACEOF
32419 /* confdefs.h.  */
32420 _ACEOF
32421 cat confdefs.h >>conftest.$ac_ext
32422 cat >>conftest.$ac_ext <<_ACEOF
32423 /* end confdefs.h.  */
32424 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32426 #define gethostbyname innocuous_gethostbyname
32427
32428 /* System header to define __stub macros and hopefully few prototypes,
32429     which can conflict with char gethostbyname (); below.
32430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32431     <limits.h> exists even on freestanding compilers.  */
32432
32433 #ifdef __STDC__
32434 # include <limits.h>
32435 #else
32436 # include <assert.h>
32437 #endif
32438
32439 #undef gethostbyname
32440
32441 /* Override any GCC internal prototype to avoid an error.
32442    Use char because int might match the return type of a GCC
32443    builtin and then its argument prototype would still apply.  */
32444 #ifdef __cplusplus
32445 extern "C"
32446 #endif
32447 char gethostbyname ();
32448 /* The GNU C library defines this for functions which it implements
32449     to always fail with ENOSYS.  Some functions are actually named
32450     something starting with __ and the normal name is an alias.  */
32451 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32452 choke me
32453 #endif
32454
32455 int
32456 main ()
32457 {
32458 return gethostbyname ();
32459   ;
32460   return 0;
32461 }
32462 _ACEOF
32463 rm -f conftest.$ac_objext conftest$ac_exeext
32464 if { (ac_try="$ac_link"
32465 case "(($ac_try" in
32466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32467   *) ac_try_echo=$ac_try;;
32468 esac
32469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32470   (eval "$ac_link") 2>conftest.er1
32471   ac_status=$?
32472   grep -v '^ *+' conftest.er1 >conftest.err
32473   rm -f conftest.er1
32474   cat conftest.err >&5
32475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476   (exit $ac_status); } && {
32477          test -z "$ac_c_werror_flag" ||
32478          test ! -s conftest.err
32479        } && test -s conftest$ac_exeext &&
32480        $as_test_x conftest$ac_exeext; then
32481   ac_cv_func_gethostbyname=yes
32482 else
32483   echo "$as_me: failed program was:" >&5
32484 sed 's/^/| /' conftest.$ac_ext >&5
32485
32486         ac_cv_func_gethostbyname=no
32487 fi
32488
32489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32490       conftest$ac_exeext conftest.$ac_ext
32491 fi
32492 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32493 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32494
32495     if test $ac_cv_func_gethostbyname = no; then
32496       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32497 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32498 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32499   echo $ECHO_N "(cached) $ECHO_C" >&6
32500 else
32501   ac_check_lib_save_LIBS=$LIBS
32502 LIBS="-lnsl  $LIBS"
32503 cat >conftest.$ac_ext <<_ACEOF
32504 /* confdefs.h.  */
32505 _ACEOF
32506 cat confdefs.h >>conftest.$ac_ext
32507 cat >>conftest.$ac_ext <<_ACEOF
32508 /* end confdefs.h.  */
32509
32510 /* Override any GCC internal prototype to avoid an error.
32511    Use char because int might match the return type of a GCC
32512    builtin and then its argument prototype would still apply.  */
32513 #ifdef __cplusplus
32514 extern "C"
32515 #endif
32516 char gethostbyname ();
32517 int
32518 main ()
32519 {
32520 return gethostbyname ();
32521   ;
32522   return 0;
32523 }
32524 _ACEOF
32525 rm -f conftest.$ac_objext conftest$ac_exeext
32526 if { (ac_try="$ac_link"
32527 case "(($ac_try" in
32528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32529   *) ac_try_echo=$ac_try;;
32530 esac
32531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32532   (eval "$ac_link") 2>conftest.er1
32533   ac_status=$?
32534   grep -v '^ *+' conftest.er1 >conftest.err
32535   rm -f conftest.er1
32536   cat conftest.err >&5
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); } && {
32539          test -z "$ac_c_werror_flag" ||
32540          test ! -s conftest.err
32541        } && test -s conftest$ac_exeext &&
32542        $as_test_x conftest$ac_exeext; then
32543   ac_cv_lib_nsl_gethostbyname=yes
32544 else
32545   echo "$as_me: failed program was:" >&5
32546 sed 's/^/| /' conftest.$ac_ext >&5
32547
32548         ac_cv_lib_nsl_gethostbyname=no
32549 fi
32550
32551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32552       conftest$ac_exeext conftest.$ac_ext
32553 LIBS=$ac_check_lib_save_LIBS
32554 fi
32555 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32556 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32557 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32558   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32559 fi
32560
32561       if test $ac_cv_lib_nsl_gethostbyname = no; then
32562         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32563 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32564 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32565   echo $ECHO_N "(cached) $ECHO_C" >&6
32566 else
32567   ac_check_lib_save_LIBS=$LIBS
32568 LIBS="-lbsd  $LIBS"
32569 cat >conftest.$ac_ext <<_ACEOF
32570 /* confdefs.h.  */
32571 _ACEOF
32572 cat confdefs.h >>conftest.$ac_ext
32573 cat >>conftest.$ac_ext <<_ACEOF
32574 /* end confdefs.h.  */
32575
32576 /* Override any GCC internal prototype to avoid an error.
32577    Use char because int might match the return type of a GCC
32578    builtin and then its argument prototype would still apply.  */
32579 #ifdef __cplusplus
32580 extern "C"
32581 #endif
32582 char gethostbyname ();
32583 int
32584 main ()
32585 {
32586 return gethostbyname ();
32587   ;
32588   return 0;
32589 }
32590 _ACEOF
32591 rm -f conftest.$ac_objext conftest$ac_exeext
32592 if { (ac_try="$ac_link"
32593 case "(($ac_try" in
32594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32595   *) ac_try_echo=$ac_try;;
32596 esac
32597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32598   (eval "$ac_link") 2>conftest.er1
32599   ac_status=$?
32600   grep -v '^ *+' conftest.er1 >conftest.err
32601   rm -f conftest.er1
32602   cat conftest.err >&5
32603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604   (exit $ac_status); } && {
32605          test -z "$ac_c_werror_flag" ||
32606          test ! -s conftest.err
32607        } && test -s conftest$ac_exeext &&
32608        $as_test_x conftest$ac_exeext; then
32609   ac_cv_lib_bsd_gethostbyname=yes
32610 else
32611   echo "$as_me: failed program was:" >&5
32612 sed 's/^/| /' conftest.$ac_ext >&5
32613
32614         ac_cv_lib_bsd_gethostbyname=no
32615 fi
32616
32617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32618       conftest$ac_exeext conftest.$ac_ext
32619 LIBS=$ac_check_lib_save_LIBS
32620 fi
32621 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32622 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32623 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32624   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32625 fi
32626
32627       fi
32628     fi
32629
32630     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32631     # socket/setsockopt and other routines are undefined under SCO ODT
32632     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32633     # on later versions), says Simon Leinen: it contains gethostby*
32634     # variants that don't use the name server (or something).  -lsocket
32635     # must be given before -lnsl if both are needed.  We assume that
32636     # if connect needs -lnsl, so does gethostbyname.
32637     { echo "$as_me:$LINENO: checking for connect" >&5
32638 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32639 if test "${ac_cv_func_connect+set}" = set; then
32640   echo $ECHO_N "(cached) $ECHO_C" >&6
32641 else
32642   cat >conftest.$ac_ext <<_ACEOF
32643 /* confdefs.h.  */
32644 _ACEOF
32645 cat confdefs.h >>conftest.$ac_ext
32646 cat >>conftest.$ac_ext <<_ACEOF
32647 /* end confdefs.h.  */
32648 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32650 #define connect innocuous_connect
32651
32652 /* System header to define __stub macros and hopefully few prototypes,
32653     which can conflict with char connect (); below.
32654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32655     <limits.h> exists even on freestanding compilers.  */
32656
32657 #ifdef __STDC__
32658 # include <limits.h>
32659 #else
32660 # include <assert.h>
32661 #endif
32662
32663 #undef connect
32664
32665 /* Override any GCC internal prototype to avoid an error.
32666    Use char because int might match the return type of a GCC
32667    builtin and then its argument prototype would still apply.  */
32668 #ifdef __cplusplus
32669 extern "C"
32670 #endif
32671 char connect ();
32672 /* The GNU C library defines this for functions which it implements
32673     to always fail with ENOSYS.  Some functions are actually named
32674     something starting with __ and the normal name is an alias.  */
32675 #if defined __stub_connect || defined __stub___connect
32676 choke me
32677 #endif
32678
32679 int
32680 main ()
32681 {
32682 return connect ();
32683   ;
32684   return 0;
32685 }
32686 _ACEOF
32687 rm -f conftest.$ac_objext conftest$ac_exeext
32688 if { (ac_try="$ac_link"
32689 case "(($ac_try" in
32690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691   *) ac_try_echo=$ac_try;;
32692 esac
32693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694   (eval "$ac_link") 2>conftest.er1
32695   ac_status=$?
32696   grep -v '^ *+' conftest.er1 >conftest.err
32697   rm -f conftest.er1
32698   cat conftest.err >&5
32699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700   (exit $ac_status); } && {
32701          test -z "$ac_c_werror_flag" ||
32702          test ! -s conftest.err
32703        } && test -s conftest$ac_exeext &&
32704        $as_test_x conftest$ac_exeext; then
32705   ac_cv_func_connect=yes
32706 else
32707   echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.$ac_ext >&5
32709
32710         ac_cv_func_connect=no
32711 fi
32712
32713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32714       conftest$ac_exeext conftest.$ac_ext
32715 fi
32716 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32717 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32718
32719     if test $ac_cv_func_connect = no; then
32720       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32721 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32722 if test "${ac_cv_lib_socket_connect+set}" = set; then
32723   echo $ECHO_N "(cached) $ECHO_C" >&6
32724 else
32725   ac_check_lib_save_LIBS=$LIBS
32726 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32727 cat >conftest.$ac_ext <<_ACEOF
32728 /* confdefs.h.  */
32729 _ACEOF
32730 cat confdefs.h >>conftest.$ac_ext
32731 cat >>conftest.$ac_ext <<_ACEOF
32732 /* end confdefs.h.  */
32733
32734 /* Override any GCC internal prototype to avoid an error.
32735    Use char because int might match the return type of a GCC
32736    builtin and then its argument prototype would still apply.  */
32737 #ifdef __cplusplus
32738 extern "C"
32739 #endif
32740 char connect ();
32741 int
32742 main ()
32743 {
32744 return connect ();
32745   ;
32746   return 0;
32747 }
32748 _ACEOF
32749 rm -f conftest.$ac_objext conftest$ac_exeext
32750 if { (ac_try="$ac_link"
32751 case "(($ac_try" in
32752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32753   *) ac_try_echo=$ac_try;;
32754 esac
32755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32756   (eval "$ac_link") 2>conftest.er1
32757   ac_status=$?
32758   grep -v '^ *+' conftest.er1 >conftest.err
32759   rm -f conftest.er1
32760   cat conftest.err >&5
32761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762   (exit $ac_status); } && {
32763          test -z "$ac_c_werror_flag" ||
32764          test ! -s conftest.err
32765        } && test -s conftest$ac_exeext &&
32766        $as_test_x conftest$ac_exeext; then
32767   ac_cv_lib_socket_connect=yes
32768 else
32769   echo "$as_me: failed program was:" >&5
32770 sed 's/^/| /' conftest.$ac_ext >&5
32771
32772         ac_cv_lib_socket_connect=no
32773 fi
32774
32775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32776       conftest$ac_exeext conftest.$ac_ext
32777 LIBS=$ac_check_lib_save_LIBS
32778 fi
32779 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32780 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32781 if test $ac_cv_lib_socket_connect = yes; then
32782   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32783 fi
32784
32785     fi
32786
32787     # Guillermo Gomez says -lposix is necessary on A/UX.
32788     { echo "$as_me:$LINENO: checking for remove" >&5
32789 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32790 if test "${ac_cv_func_remove+set}" = set; then
32791   echo $ECHO_N "(cached) $ECHO_C" >&6
32792 else
32793   cat >conftest.$ac_ext <<_ACEOF
32794 /* confdefs.h.  */
32795 _ACEOF
32796 cat confdefs.h >>conftest.$ac_ext
32797 cat >>conftest.$ac_ext <<_ACEOF
32798 /* end confdefs.h.  */
32799 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32801 #define remove innocuous_remove
32802
32803 /* System header to define __stub macros and hopefully few prototypes,
32804     which can conflict with char remove (); below.
32805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32806     <limits.h> exists even on freestanding compilers.  */
32807
32808 #ifdef __STDC__
32809 # include <limits.h>
32810 #else
32811 # include <assert.h>
32812 #endif
32813
32814 #undef remove
32815
32816 /* Override any GCC internal prototype to avoid an error.
32817    Use char because int might match the return type of a GCC
32818    builtin and then its argument prototype would still apply.  */
32819 #ifdef __cplusplus
32820 extern "C"
32821 #endif
32822 char remove ();
32823 /* The GNU C library defines this for functions which it implements
32824     to always fail with ENOSYS.  Some functions are actually named
32825     something starting with __ and the normal name is an alias.  */
32826 #if defined __stub_remove || defined __stub___remove
32827 choke me
32828 #endif
32829
32830 int
32831 main ()
32832 {
32833 return remove ();
32834   ;
32835   return 0;
32836 }
32837 _ACEOF
32838 rm -f conftest.$ac_objext conftest$ac_exeext
32839 if { (ac_try="$ac_link"
32840 case "(($ac_try" in
32841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32842   *) ac_try_echo=$ac_try;;
32843 esac
32844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32845   (eval "$ac_link") 2>conftest.er1
32846   ac_status=$?
32847   grep -v '^ *+' conftest.er1 >conftest.err
32848   rm -f conftest.er1
32849   cat conftest.err >&5
32850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851   (exit $ac_status); } && {
32852          test -z "$ac_c_werror_flag" ||
32853          test ! -s conftest.err
32854        } && test -s conftest$ac_exeext &&
32855        $as_test_x conftest$ac_exeext; then
32856   ac_cv_func_remove=yes
32857 else
32858   echo "$as_me: failed program was:" >&5
32859 sed 's/^/| /' conftest.$ac_ext >&5
32860
32861         ac_cv_func_remove=no
32862 fi
32863
32864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32865       conftest$ac_exeext conftest.$ac_ext
32866 fi
32867 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32868 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32869
32870     if test $ac_cv_func_remove = no; then
32871       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32872 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32873 if test "${ac_cv_lib_posix_remove+set}" = set; then
32874   echo $ECHO_N "(cached) $ECHO_C" >&6
32875 else
32876   ac_check_lib_save_LIBS=$LIBS
32877 LIBS="-lposix  $LIBS"
32878 cat >conftest.$ac_ext <<_ACEOF
32879 /* confdefs.h.  */
32880 _ACEOF
32881 cat confdefs.h >>conftest.$ac_ext
32882 cat >>conftest.$ac_ext <<_ACEOF
32883 /* end confdefs.h.  */
32884
32885 /* Override any GCC internal prototype to avoid an error.
32886    Use char because int might match the return type of a GCC
32887    builtin and then its argument prototype would still apply.  */
32888 #ifdef __cplusplus
32889 extern "C"
32890 #endif
32891 char remove ();
32892 int
32893 main ()
32894 {
32895 return remove ();
32896   ;
32897   return 0;
32898 }
32899 _ACEOF
32900 rm -f conftest.$ac_objext conftest$ac_exeext
32901 if { (ac_try="$ac_link"
32902 case "(($ac_try" in
32903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32904   *) ac_try_echo=$ac_try;;
32905 esac
32906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32907   (eval "$ac_link") 2>conftest.er1
32908   ac_status=$?
32909   grep -v '^ *+' conftest.er1 >conftest.err
32910   rm -f conftest.er1
32911   cat conftest.err >&5
32912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913   (exit $ac_status); } && {
32914          test -z "$ac_c_werror_flag" ||
32915          test ! -s conftest.err
32916        } && test -s conftest$ac_exeext &&
32917        $as_test_x conftest$ac_exeext; then
32918   ac_cv_lib_posix_remove=yes
32919 else
32920   echo "$as_me: failed program was:" >&5
32921 sed 's/^/| /' conftest.$ac_ext >&5
32922
32923         ac_cv_lib_posix_remove=no
32924 fi
32925
32926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32927       conftest$ac_exeext conftest.$ac_ext
32928 LIBS=$ac_check_lib_save_LIBS
32929 fi
32930 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32931 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32932 if test $ac_cv_lib_posix_remove = yes; then
32933   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32934 fi
32935
32936     fi
32937
32938     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32939     { echo "$as_me:$LINENO: checking for shmat" >&5
32940 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32941 if test "${ac_cv_func_shmat+set}" = set; then
32942   echo $ECHO_N "(cached) $ECHO_C" >&6
32943 else
32944   cat >conftest.$ac_ext <<_ACEOF
32945 /* confdefs.h.  */
32946 _ACEOF
32947 cat confdefs.h >>conftest.$ac_ext
32948 cat >>conftest.$ac_ext <<_ACEOF
32949 /* end confdefs.h.  */
32950 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32952 #define shmat innocuous_shmat
32953
32954 /* System header to define __stub macros and hopefully few prototypes,
32955     which can conflict with char shmat (); below.
32956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32957     <limits.h> exists even on freestanding compilers.  */
32958
32959 #ifdef __STDC__
32960 # include <limits.h>
32961 #else
32962 # include <assert.h>
32963 #endif
32964
32965 #undef shmat
32966
32967 /* Override any GCC internal prototype to avoid an error.
32968    Use char because int might match the return type of a GCC
32969    builtin and then its argument prototype would still apply.  */
32970 #ifdef __cplusplus
32971 extern "C"
32972 #endif
32973 char shmat ();
32974 /* The GNU C library defines this for functions which it implements
32975     to always fail with ENOSYS.  Some functions are actually named
32976     something starting with __ and the normal name is an alias.  */
32977 #if defined __stub_shmat || defined __stub___shmat
32978 choke me
32979 #endif
32980
32981 int
32982 main ()
32983 {
32984 return shmat ();
32985   ;
32986   return 0;
32987 }
32988 _ACEOF
32989 rm -f conftest.$ac_objext conftest$ac_exeext
32990 if { (ac_try="$ac_link"
32991 case "(($ac_try" in
32992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993   *) ac_try_echo=$ac_try;;
32994 esac
32995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996   (eval "$ac_link") 2>conftest.er1
32997   ac_status=$?
32998   grep -v '^ *+' conftest.er1 >conftest.err
32999   rm -f conftest.er1
33000   cat conftest.err >&5
33001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002   (exit $ac_status); } && {
33003          test -z "$ac_c_werror_flag" ||
33004          test ! -s conftest.err
33005        } && test -s conftest$ac_exeext &&
33006        $as_test_x conftest$ac_exeext; then
33007   ac_cv_func_shmat=yes
33008 else
33009   echo "$as_me: failed program was:" >&5
33010 sed 's/^/| /' conftest.$ac_ext >&5
33011
33012         ac_cv_func_shmat=no
33013 fi
33014
33015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33016       conftest$ac_exeext conftest.$ac_ext
33017 fi
33018 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
33019 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
33020
33021     if test $ac_cv_func_shmat = no; then
33022       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
33023 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
33024 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
33025   echo $ECHO_N "(cached) $ECHO_C" >&6
33026 else
33027   ac_check_lib_save_LIBS=$LIBS
33028 LIBS="-lipc  $LIBS"
33029 cat >conftest.$ac_ext <<_ACEOF
33030 /* confdefs.h.  */
33031 _ACEOF
33032 cat confdefs.h >>conftest.$ac_ext
33033 cat >>conftest.$ac_ext <<_ACEOF
33034 /* end confdefs.h.  */
33035
33036 /* Override any GCC internal prototype to avoid an error.
33037    Use char because int might match the return type of a GCC
33038    builtin and then its argument prototype would still apply.  */
33039 #ifdef __cplusplus
33040 extern "C"
33041 #endif
33042 char shmat ();
33043 int
33044 main ()
33045 {
33046 return shmat ();
33047   ;
33048   return 0;
33049 }
33050 _ACEOF
33051 rm -f conftest.$ac_objext conftest$ac_exeext
33052 if { (ac_try="$ac_link"
33053 case "(($ac_try" in
33054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33055   *) ac_try_echo=$ac_try;;
33056 esac
33057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33058   (eval "$ac_link") 2>conftest.er1
33059   ac_status=$?
33060   grep -v '^ *+' conftest.er1 >conftest.err
33061   rm -f conftest.er1
33062   cat conftest.err >&5
33063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064   (exit $ac_status); } && {
33065          test -z "$ac_c_werror_flag" ||
33066          test ! -s conftest.err
33067        } && test -s conftest$ac_exeext &&
33068        $as_test_x conftest$ac_exeext; then
33069   ac_cv_lib_ipc_shmat=yes
33070 else
33071   echo "$as_me: failed program was:" >&5
33072 sed 's/^/| /' conftest.$ac_ext >&5
33073
33074         ac_cv_lib_ipc_shmat=no
33075 fi
33076
33077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33078       conftest$ac_exeext conftest.$ac_ext
33079 LIBS=$ac_check_lib_save_LIBS
33080 fi
33081 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33082 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33083 if test $ac_cv_lib_ipc_shmat = yes; then
33084   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33085 fi
33086
33087     fi
33088   fi
33089
33090   # Check for libraries that X11R6 Xt/Xaw programs need.
33091   ac_save_LDFLAGS=$LDFLAGS
33092   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33093   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33094   # check for ICE first), but we must link in the order -lSM -lICE or
33095   # we get undefined symbols.  So assume we have SM if we have ICE.
33096   # These have to be linked with before -lX11, unlike the other
33097   # libraries we check for below, so use a different variable.
33098   # John Interrante, Karl Berry
33099   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33100 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33101 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33102   echo $ECHO_N "(cached) $ECHO_C" >&6
33103 else
33104   ac_check_lib_save_LIBS=$LIBS
33105 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33106 cat >conftest.$ac_ext <<_ACEOF
33107 /* confdefs.h.  */
33108 _ACEOF
33109 cat confdefs.h >>conftest.$ac_ext
33110 cat >>conftest.$ac_ext <<_ACEOF
33111 /* end confdefs.h.  */
33112
33113 /* Override any GCC internal prototype to avoid an error.
33114    Use char because int might match the return type of a GCC
33115    builtin and then its argument prototype would still apply.  */
33116 #ifdef __cplusplus
33117 extern "C"
33118 #endif
33119 char IceConnectionNumber ();
33120 int
33121 main ()
33122 {
33123 return IceConnectionNumber ();
33124   ;
33125   return 0;
33126 }
33127 _ACEOF
33128 rm -f conftest.$ac_objext conftest$ac_exeext
33129 if { (ac_try="$ac_link"
33130 case "(($ac_try" in
33131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33132   *) ac_try_echo=$ac_try;;
33133 esac
33134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33135   (eval "$ac_link") 2>conftest.er1
33136   ac_status=$?
33137   grep -v '^ *+' conftest.er1 >conftest.err
33138   rm -f conftest.er1
33139   cat conftest.err >&5
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); } && {
33142          test -z "$ac_c_werror_flag" ||
33143          test ! -s conftest.err
33144        } && test -s conftest$ac_exeext &&
33145        $as_test_x conftest$ac_exeext; then
33146   ac_cv_lib_ICE_IceConnectionNumber=yes
33147 else
33148   echo "$as_me: failed program was:" >&5
33149 sed 's/^/| /' conftest.$ac_ext >&5
33150
33151         ac_cv_lib_ICE_IceConnectionNumber=no
33152 fi
33153
33154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33155       conftest$ac_exeext conftest.$ac_ext
33156 LIBS=$ac_check_lib_save_LIBS
33157 fi
33158 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33159 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33160 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33161   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33162 fi
33163
33164   LDFLAGS=$ac_save_LDFLAGS
33165
33166 fi
33167
33168
33169         if test "$no_x" = "yes"; then
33170           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33171 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33172    { (exit 1); exit 1; }; }
33173         fi
33174
33175                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33176         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33177         AFMINSTALL=afminstall
33178         COMPILED_X_PROGRAM=0
33179
33180     fi
33181
33182     if test "$wxUSE_X11" = 1; then
33183         if test "$wxUSE_NANOX" = "yes"; then
33184             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33185 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33186             if test "x$MICROWIN" = x ; then
33187                 { echo "$as_me:$LINENO: result: not found" >&5
33188 echo "${ECHO_T}not found" >&6; }
33189                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33190 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33191    { (exit 1); exit 1; }; }
33192             else
33193                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33194 echo "${ECHO_T}$MICROWIN" >&6; }
33195                 cat >>confdefs.h <<\_ACEOF
33196 #define wxUSE_NANOX 1
33197 _ACEOF
33198
33199             fi
33200         fi
33201
33202         if test "$wxUSE_UNICODE" = "yes"; then
33203
33204
33205 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33206         if test -n "$ac_tool_prefix"; then
33207   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33208 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33211 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33212   echo $ECHO_N "(cached) $ECHO_C" >&6
33213 else
33214   case $PKG_CONFIG in
33215   [\\/]* | ?:[\\/]*)
33216   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33217   ;;
33218   *)
33219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33220 for as_dir in $PATH
33221 do
33222   IFS=$as_save_IFS
33223   test -z "$as_dir" && as_dir=.
33224   for ac_exec_ext in '' $ac_executable_extensions; do
33225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33226     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33228     break 2
33229   fi
33230 done
33231 done
33232 IFS=$as_save_IFS
33233
33234   ;;
33235 esac
33236 fi
33237 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33238 if test -n "$PKG_CONFIG"; then
33239   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33240 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33241 else
33242   { echo "$as_me:$LINENO: result: no" >&5
33243 echo "${ECHO_T}no" >&6; }
33244 fi
33245
33246
33247 fi
33248 if test -z "$ac_cv_path_PKG_CONFIG"; then
33249   ac_pt_PKG_CONFIG=$PKG_CONFIG
33250   # Extract the first word of "pkg-config", so it can be a program name with args.
33251 set dummy pkg-config; ac_word=$2
33252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33254 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33255   echo $ECHO_N "(cached) $ECHO_C" >&6
33256 else
33257   case $ac_pt_PKG_CONFIG in
33258   [\\/]* | ?:[\\/]*)
33259   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33260   ;;
33261   *)
33262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33263 for as_dir in $PATH
33264 do
33265   IFS=$as_save_IFS
33266   test -z "$as_dir" && as_dir=.
33267   for ac_exec_ext in '' $ac_executable_extensions; do
33268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33269     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33271     break 2
33272   fi
33273 done
33274 done
33275 IFS=$as_save_IFS
33276
33277   ;;
33278 esac
33279 fi
33280 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33281 if test -n "$ac_pt_PKG_CONFIG"; then
33282   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33283 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33284 else
33285   { echo "$as_me:$LINENO: result: no" >&5
33286 echo "${ECHO_T}no" >&6; }
33287 fi
33288
33289   if test "x$ac_pt_PKG_CONFIG" = x; then
33290     PKG_CONFIG=""
33291   else
33292     case $cross_compiling:$ac_tool_warned in
33293 yes:)
33294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33295 whose name does not start with the host triplet.  If you think this
33296 configuration is useful to you, please write to autoconf@gnu.org." >&5
33297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33298 whose name does not start with the host triplet.  If you think this
33299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33300 ac_tool_warned=yes ;;
33301 esac
33302     PKG_CONFIG=$ac_pt_PKG_CONFIG
33303   fi
33304 else
33305   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33306 fi
33307
33308 fi
33309 if test -n "$PKG_CONFIG"; then
33310         _pkg_min_version=0.9.0
33311         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33312 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33313         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33314                 { echo "$as_me:$LINENO: result: yes" >&5
33315 echo "${ECHO_T}yes" >&6; }
33316         else
33317                 { echo "$as_me:$LINENO: result: no" >&5
33318 echo "${ECHO_T}no" >&6; }
33319                 PKG_CONFIG=""
33320         fi
33321
33322 fi
33323
33324
33325 pkg_failed=no
33326 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33327 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33328
33329 if test -n "$PKG_CONFIG"; then
33330     if test -n "$PANGOX_CFLAGS"; then
33331         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33332     else
33333         if test -n "$PKG_CONFIG" && \
33334     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33335   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33336   ac_status=$?
33337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338   (exit $ac_status); }; then
33339   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33340 else
33341   pkg_failed=yes
33342 fi
33343     fi
33344 else
33345         pkg_failed=untried
33346 fi
33347 if test -n "$PKG_CONFIG"; then
33348     if test -n "$PANGOX_LIBS"; then
33349         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33350     else
33351         if test -n "$PKG_CONFIG" && \
33352     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33353   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33354   ac_status=$?
33355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356   (exit $ac_status); }; then
33357   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33358 else
33359   pkg_failed=yes
33360 fi
33361     fi
33362 else
33363         pkg_failed=untried
33364 fi
33365
33366
33367
33368 if test $pkg_failed = yes; then
33369
33370 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33371         _pkg_short_errors_supported=yes
33372 else
33373         _pkg_short_errors_supported=no
33374 fi
33375         if test $_pkg_short_errors_supported = yes; then
33376                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33377         else
33378                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33379         fi
33380         # Put the nasty error message in config.log where it belongs
33381         echo "$PANGOX_PKG_ERRORS" >&5
33382
33383
33384                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33385 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33386    { (exit 1); exit 1; }; }
33387
33388
33389 elif test $pkg_failed = untried; then
33390
33391                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33392 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33393    { (exit 1); exit 1; }; }
33394
33395
33396 else
33397         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33398         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33399         { echo "$as_me:$LINENO: result: yes" >&5
33400 echo "${ECHO_T}yes" >&6; }
33401
33402                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33403                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33404                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33405
33406 fi
33407
33408 pkg_failed=no
33409 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33410 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33411
33412 if test -n "$PKG_CONFIG"; then
33413     if test -n "$PANGOFT2_CFLAGS"; then
33414         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33415     else
33416         if test -n "$PKG_CONFIG" && \
33417     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33418   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33419   ac_status=$?
33420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421   (exit $ac_status); }; then
33422   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33423 else
33424   pkg_failed=yes
33425 fi
33426     fi
33427 else
33428         pkg_failed=untried
33429 fi
33430 if test -n "$PKG_CONFIG"; then
33431     if test -n "$PANGOFT2_LIBS"; then
33432         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33433     else
33434         if test -n "$PKG_CONFIG" && \
33435     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33436   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33437   ac_status=$?
33438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439   (exit $ac_status); }; then
33440   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33441 else
33442   pkg_failed=yes
33443 fi
33444     fi
33445 else
33446         pkg_failed=untried
33447 fi
33448
33449
33450
33451 if test $pkg_failed = yes; then
33452
33453 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33454         _pkg_short_errors_supported=yes
33455 else
33456         _pkg_short_errors_supported=no
33457 fi
33458         if test $_pkg_short_errors_supported = yes; then
33459                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33460         else
33461                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33462         fi
33463         # Put the nasty error message in config.log where it belongs
33464         echo "$PANGOFT2_PKG_ERRORS" >&5
33465
33466
33467                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33468 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33469                     wxUSE_PRINTING_ARCHITECTURE="no"
33470
33471
33472 elif test $pkg_failed = untried; then
33473
33474                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33475 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33476                     wxUSE_PRINTING_ARCHITECTURE="no"
33477
33478
33479 else
33480         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33481         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33482         { echo "$as_me:$LINENO: result: yes" >&5
33483 echo "${ECHO_T}yes" >&6; }
33484
33485                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33486                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33487                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33488
33489 fi
33490
33491 pkg_failed=no
33492 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33493 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33494
33495 if test -n "$PKG_CONFIG"; then
33496     if test -n "$PANGOXFT_CFLAGS"; then
33497         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33498     else
33499         if test -n "$PKG_CONFIG" && \
33500     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33501   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33502   ac_status=$?
33503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504   (exit $ac_status); }; then
33505   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33506 else
33507   pkg_failed=yes
33508 fi
33509     fi
33510 else
33511         pkg_failed=untried
33512 fi
33513 if test -n "$PKG_CONFIG"; then
33514     if test -n "$PANGOXFT_LIBS"; then
33515         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33516     else
33517         if test -n "$PKG_CONFIG" && \
33518     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33519   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33520   ac_status=$?
33521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522   (exit $ac_status); }; then
33523   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33524 else
33525   pkg_failed=yes
33526 fi
33527     fi
33528 else
33529         pkg_failed=untried
33530 fi
33531
33532
33533
33534 if test $pkg_failed = yes; then
33535
33536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33537         _pkg_short_errors_supported=yes
33538 else
33539         _pkg_short_errors_supported=no
33540 fi
33541         if test $_pkg_short_errors_supported = yes; then
33542                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33543         else
33544                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33545         fi
33546         # Put the nasty error message in config.log where it belongs
33547         echo "$PANGOXFT_PKG_ERRORS" >&5
33548
33549
33550                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33551 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33552
33553
33554 elif test $pkg_failed = untried; then
33555
33556                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33557 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33558
33559
33560 else
33561         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33562         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33563         { echo "$as_me:$LINENO: result: yes" >&5
33564 echo "${ECHO_T}yes" >&6; }
33565
33566                     cat >>confdefs.h <<\_ACEOF
33567 #define HAVE_PANGO_XFT 1
33568 _ACEOF
33569
33570                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33571                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33572                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33573
33574 fi
33575             save_LIBS="$LIBS"
33576             LIBS="$LIBS $PANGOX_LIBS"
33577
33578 for ac_func in pango_font_family_is_monospace
33579 do
33580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33584   echo $ECHO_N "(cached) $ECHO_C" >&6
33585 else
33586   cat >conftest.$ac_ext <<_ACEOF
33587 /* confdefs.h.  */
33588 _ACEOF
33589 cat confdefs.h >>conftest.$ac_ext
33590 cat >>conftest.$ac_ext <<_ACEOF
33591 /* end confdefs.h.  */
33592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33594 #define $ac_func innocuous_$ac_func
33595
33596 /* System header to define __stub macros and hopefully few prototypes,
33597     which can conflict with char $ac_func (); below.
33598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33599     <limits.h> exists even on freestanding compilers.  */
33600
33601 #ifdef __STDC__
33602 # include <limits.h>
33603 #else
33604 # include <assert.h>
33605 #endif
33606
33607 #undef $ac_func
33608
33609 /* Override any GCC internal prototype to avoid an error.
33610    Use char because int might match the return type of a GCC
33611    builtin and then its argument prototype would still apply.  */
33612 #ifdef __cplusplus
33613 extern "C"
33614 #endif
33615 char $ac_func ();
33616 /* The GNU C library defines this for functions which it implements
33617     to always fail with ENOSYS.  Some functions are actually named
33618     something starting with __ and the normal name is an alias.  */
33619 #if defined __stub_$ac_func || defined __stub___$ac_func
33620 choke me
33621 #endif
33622
33623 int
33624 main ()
33625 {
33626 return $ac_func ();
33627   ;
33628   return 0;
33629 }
33630 _ACEOF
33631 rm -f conftest.$ac_objext conftest$ac_exeext
33632 if { (ac_try="$ac_link"
33633 case "(($ac_try" in
33634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33635   *) ac_try_echo=$ac_try;;
33636 esac
33637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33638   (eval "$ac_link") 2>conftest.er1
33639   ac_status=$?
33640   grep -v '^ *+' conftest.er1 >conftest.err
33641   rm -f conftest.er1
33642   cat conftest.err >&5
33643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33644   (exit $ac_status); } && {
33645          test -z "$ac_c_werror_flag" ||
33646          test ! -s conftest.err
33647        } && test -s conftest$ac_exeext &&
33648        $as_test_x conftest$ac_exeext; then
33649   eval "$as_ac_var=yes"
33650 else
33651   echo "$as_me: failed program was:" >&5
33652 sed 's/^/| /' conftest.$ac_ext >&5
33653
33654         eval "$as_ac_var=no"
33655 fi
33656
33657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33658       conftest$ac_exeext conftest.$ac_ext
33659 fi
33660 ac_res=`eval echo '${'$as_ac_var'}'`
33661                { echo "$as_me:$LINENO: result: $ac_res" >&5
33662 echo "${ECHO_T}$ac_res" >&6; }
33663 if test `eval echo '${'$as_ac_var'}'` = yes; then
33664   cat >>confdefs.h <<_ACEOF
33665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33666 _ACEOF
33667
33668 fi
33669 done
33670
33671             LIBS="$save_LIBS"
33672         fi
33673
33674         wxUSE_UNIVERSAL="yes"
33675
33676         if test "$wxUSE_NANOX" = "yes"; then
33677             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33678             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"
33679             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33680         else
33681             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33682         fi
33683
33684         TOOLKIT=X11
33685         GUIDIST=X11_DIST
33686     fi
33687
33688     if test "$wxUSE_MOTIF" = 1; then
33689         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33690 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33691
33692 ac_find_includes=
33693 for ac_dir in $SEARCH_INCLUDE /usr/include
33694   do
33695     if test -f "$ac_dir/Xm/Xm.h"; then
33696       ac_find_includes=$ac_dir
33697       break
33698     fi
33699   done
33700
33701         if test "$ac_find_includes" != "" ; then
33702             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33703 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33704
33705     if test "x$ac_find_includes" = "x/usr/include"; then
33706     ac_path_to_include=""
33707   else
33708     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33709     result=$?
33710     if test $result = 0; then
33711       ac_path_to_include=""
33712     else
33713       ac_path_to_include=" -I$ac_find_includes"
33714     fi
33715   fi
33716
33717             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33718         else
33719             save_CFLAGS=$CFLAGS
33720             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33721
33722             cat >conftest.$ac_ext <<_ACEOF
33723 /* confdefs.h.  */
33724 _ACEOF
33725 cat confdefs.h >>conftest.$ac_ext
33726 cat >>conftest.$ac_ext <<_ACEOF
33727 /* end confdefs.h.  */
33728
33729                     #include <Xm/Xm.h>
33730
33731 int
33732 main ()
33733 {
33734
33735                     int version;
33736                     version = xmUseVersion;
33737
33738   ;
33739   return 0;
33740 }
33741 _ACEOF
33742 rm -f conftest.$ac_objext
33743 if { (ac_try="$ac_compile"
33744 case "(($ac_try" in
33745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33746   *) ac_try_echo=$ac_try;;
33747 esac
33748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33749   (eval "$ac_compile") 2>conftest.er1
33750   ac_status=$?
33751   grep -v '^ *+' conftest.er1 >conftest.err
33752   rm -f conftest.er1
33753   cat conftest.err >&5
33754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33755   (exit $ac_status); } && {
33756          test -z "$ac_c_werror_flag" ||
33757          test ! -s conftest.err
33758        } && test -s conftest.$ac_objext; then
33759
33760                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33761 echo "${ECHO_T}found in default search path" >&6; }
33762                     COMPILED_X_PROGRAM=1
33763
33764 else
33765   echo "$as_me: failed program was:" >&5
33766 sed 's/^/| /' conftest.$ac_ext >&5
33767
33768
33769                     { echo "$as_me:$LINENO: result: no" >&5
33770 echo "${ECHO_T}no" >&6; }
33771                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33772 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33773    { (exit 1); exit 1; }; }
33774
33775
33776 fi
33777
33778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33779
33780             CFLAGS=$save_CFLAGS
33781         fi
33782
33783
33784         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33785 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33786
33787   ac_find_libraries=
33788   for ac_dir in $SEARCH_LIB
33789   do
33790     for ac_extension in a so sl dylib dll.a; do
33791       if test -f "$ac_dir/libXm.$ac_extension"; then
33792         ac_find_libraries=$ac_dir
33793         break 2
33794       fi
33795     done
33796   done
33797
33798
33799         if test "x$ac_find_libraries" != "x" ; then
33800             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33801 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33802
33803
33804     if test "$ac_find_libraries" = "default location"; then
33805     ac_path_to_link=""
33806   else
33807     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33808     result=$?
33809     if test $result = 0; then
33810       ac_path_to_link=""
33811     else
33812       ac_path_to_link=" -L$ac_find_libraries"
33813     fi
33814   fi
33815
33816             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33817         else
33818                                                 save_CFLAGS=$CFLAGS
33819             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33820             save_LIBS="$LIBS"
33821             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33822
33823             cat >conftest.$ac_ext <<_ACEOF
33824 /* confdefs.h.  */
33825 _ACEOF
33826 cat confdefs.h >>conftest.$ac_ext
33827 cat >>conftest.$ac_ext <<_ACEOF
33828 /* end confdefs.h.  */
33829
33830                     #include <Xm/Xm.h>
33831
33832 int
33833 main ()
33834 {
33835
33836                     int version;
33837                     version = xmUseVersion;
33838
33839   ;
33840   return 0;
33841 }
33842 _ACEOF
33843 rm -f conftest.$ac_objext conftest$ac_exeext
33844 if { (ac_try="$ac_link"
33845 case "(($ac_try" in
33846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847   *) ac_try_echo=$ac_try;;
33848 esac
33849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33850   (eval "$ac_link") 2>conftest.er1
33851   ac_status=$?
33852   grep -v '^ *+' conftest.er1 >conftest.err
33853   rm -f conftest.er1
33854   cat conftest.err >&5
33855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856   (exit $ac_status); } && {
33857          test -z "$ac_c_werror_flag" ||
33858          test ! -s conftest.err
33859        } && test -s conftest$ac_exeext &&
33860        $as_test_x conftest$ac_exeext; then
33861
33862                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33863 echo "${ECHO_T}found in default search path" >&6; }
33864                     COMPILED_X_PROGRAM=1
33865
33866 else
33867   echo "$as_me: failed program was:" >&5
33868 sed 's/^/| /' conftest.$ac_ext >&5
33869
33870
33871                     { echo "$as_me:$LINENO: result: no" >&5
33872 echo "${ECHO_T}no" >&6; }
33873                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33874 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33875    { (exit 1); exit 1; }; }
33876
33877
33878 fi
33879
33880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33881       conftest$ac_exeext conftest.$ac_ext
33882
33883             CFLAGS=$save_CFLAGS
33884             LIBS="$save_LIBS"
33885         fi
33886
33887         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33888 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33889         libp_link=""
33890         libsm_ice_link=""
33891         libs_found=0
33892         for libp in "" " -lXp"; do
33893             if test "$libs_found" = 0; then
33894                 for libsm_ice in "" " -lSM -lICE"; do
33895                     if test "$libs_found" = 0; then
33896                         save_LIBS="$LIBS"
33897                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33898                         save_CFLAGS=$CFLAGS
33899                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33900
33901                         cat >conftest.$ac_ext <<_ACEOF
33902 /* confdefs.h.  */
33903 _ACEOF
33904 cat confdefs.h >>conftest.$ac_ext
33905 cat >>conftest.$ac_ext <<_ACEOF
33906 /* end confdefs.h.  */
33907
33908                                 #include <Xm/Xm.h>
33909                                 #include <Xm/List.h>
33910
33911 int
33912 main ()
33913 {
33914
33915                                 XmString string = NULL;
33916                                 Widget w = NULL;
33917                                 int position = 0;
33918                                 XmListAddItem(w, string, position);
33919
33920   ;
33921   return 0;
33922 }
33923 _ACEOF
33924 rm -f conftest.$ac_objext conftest$ac_exeext
33925 if { (ac_try="$ac_link"
33926 case "(($ac_try" in
33927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33928   *) ac_try_echo=$ac_try;;
33929 esac
33930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33931   (eval "$ac_link") 2>conftest.er1
33932   ac_status=$?
33933   grep -v '^ *+' conftest.er1 >conftest.err
33934   rm -f conftest.er1
33935   cat conftest.err >&5
33936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33937   (exit $ac_status); } && {
33938          test -z "$ac_c_werror_flag" ||
33939          test ! -s conftest.err
33940        } && test -s conftest$ac_exeext &&
33941        $as_test_x conftest$ac_exeext; then
33942
33943                                 libp_link="$libp"
33944                                 libsm_ice_link="$libsm_ice"
33945                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33946 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33947                                 libs_found=1
33948
33949 else
33950   echo "$as_me: failed program was:" >&5
33951 sed 's/^/| /' conftest.$ac_ext >&5
33952
33953
33954
33955 fi
33956
33957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33958       conftest$ac_exeext conftest.$ac_ext
33959
33960                         LIBS="$save_LIBS"
33961                         CFLAGS=$save_CFLAGS
33962                     fi
33963                 done
33964             fi
33965         done
33966
33967         if test "$libs_found" = 0; then
33968             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33969 echo "${ECHO_T}can't find the right libraries" >&6; }
33970             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33971 echo "$as_me: error: can't link a simple motif program" >&2;}
33972    { (exit 1); exit 1; }; }
33973         fi
33974
33975                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33976 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33977 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33978   echo $ECHO_N "(cached) $ECHO_C" >&6
33979 else
33980   ac_check_lib_save_LIBS=$LIBS
33981 LIBS="-lSgm  $LIBS"
33982 cat >conftest.$ac_ext <<_ACEOF
33983 /* confdefs.h.  */
33984 _ACEOF
33985 cat confdefs.h >>conftest.$ac_ext
33986 cat >>conftest.$ac_ext <<_ACEOF
33987 /* end confdefs.h.  */
33988
33989 /* Override any GCC internal prototype to avoid an error.
33990    Use char because int might match the return type of a GCC
33991    builtin and then its argument prototype would still apply.  */
33992 #ifdef __cplusplus
33993 extern "C"
33994 #endif
33995 char SgCreateList ();
33996 int
33997 main ()
33998 {
33999 return SgCreateList ();
34000   ;
34001   return 0;
34002 }
34003 _ACEOF
34004 rm -f conftest.$ac_objext conftest$ac_exeext
34005 if { (ac_try="$ac_link"
34006 case "(($ac_try" in
34007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34008   *) ac_try_echo=$ac_try;;
34009 esac
34010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34011   (eval "$ac_link") 2>conftest.er1
34012   ac_status=$?
34013   grep -v '^ *+' conftest.er1 >conftest.err
34014   rm -f conftest.er1
34015   cat conftest.err >&5
34016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017   (exit $ac_status); } && {
34018          test -z "$ac_c_werror_flag" ||
34019          test ! -s conftest.err
34020        } && test -s conftest$ac_exeext &&
34021        $as_test_x conftest$ac_exeext; then
34022   ac_cv_lib_Sgm_SgCreateList=yes
34023 else
34024   echo "$as_me: failed program was:" >&5
34025 sed 's/^/| /' conftest.$ac_ext >&5
34026
34027         ac_cv_lib_Sgm_SgCreateList=no
34028 fi
34029
34030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34031       conftest$ac_exeext conftest.$ac_ext
34032 LIBS=$ac_check_lib_save_LIBS
34033 fi
34034 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34035 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
34036 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34037   libsgm_link=" -lSgm"
34038 fi
34039
34040
34041         save_CFLAGS=$CFLAGS
34042         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34043
34044         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34045 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34046 if test "${wx_cv_lib_motif2+set}" = set; then
34047   echo $ECHO_N "(cached) $ECHO_C" >&6
34048 else
34049   cat >conftest.$ac_ext <<_ACEOF
34050 /* confdefs.h.  */
34051 _ACEOF
34052 cat confdefs.h >>conftest.$ac_ext
34053 cat >>conftest.$ac_ext <<_ACEOF
34054 /* end confdefs.h.  */
34055
34056                             #include <Xm/Xm.h>
34057
34058 int
34059 main ()
34060 {
34061
34062                             #if XmVersion < 2000
34063                             Not Motif 2
34064                             #endif
34065
34066   ;
34067   return 0;
34068 }
34069 _ACEOF
34070 rm -f conftest.$ac_objext
34071 if { (ac_try="$ac_compile"
34072 case "(($ac_try" in
34073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074   *) ac_try_echo=$ac_try;;
34075 esac
34076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34077   (eval "$ac_compile") 2>conftest.er1
34078   ac_status=$?
34079   grep -v '^ *+' conftest.er1 >conftest.err
34080   rm -f conftest.er1
34081   cat conftest.err >&5
34082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083   (exit $ac_status); } && {
34084          test -z "$ac_c_werror_flag" ||
34085          test ! -s conftest.err
34086        } && test -s conftest.$ac_objext; then
34087   wx_cv_lib_motif2="yes"
34088 else
34089   echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34091
34092         wx_cv_lib_motif2="no"
34093 fi
34094
34095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096 fi
34097 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34098 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34099         if test "$wx_cv_lib_motif2" = "yes"; then
34100             cat >>confdefs.h <<\_ACEOF
34101 #define __WXMOTIF20__ 1
34102 _ACEOF
34103
34104         else
34105             cat >>confdefs.h <<\_ACEOF
34106 #define __WXMOTIF20__ 0
34107 _ACEOF
34108
34109         fi
34110
34111         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34112 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34113 if test "${wx_cv_lib_lesstif+set}" = set; then
34114   echo $ECHO_N "(cached) $ECHO_C" >&6
34115 else
34116   cat >conftest.$ac_ext <<_ACEOF
34117 /* confdefs.h.  */
34118 _ACEOF
34119 cat confdefs.h >>conftest.$ac_ext
34120 cat >>conftest.$ac_ext <<_ACEOF
34121 /* end confdefs.h.  */
34122
34123                             #include <Xm/Xm.h>
34124
34125 int
34126 main ()
34127 {
34128
34129                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34130                             Not Lesstif
34131                             #endif
34132
34133   ;
34134   return 0;
34135 }
34136 _ACEOF
34137 rm -f conftest.$ac_objext
34138 if { (ac_try="$ac_compile"
34139 case "(($ac_try" in
34140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34141   *) ac_try_echo=$ac_try;;
34142 esac
34143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34144   (eval "$ac_compile") 2>conftest.er1
34145   ac_status=$?
34146   grep -v '^ *+' conftest.er1 >conftest.err
34147   rm -f conftest.er1
34148   cat conftest.err >&5
34149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150   (exit $ac_status); } && {
34151          test -z "$ac_c_werror_flag" ||
34152          test ! -s conftest.err
34153        } && test -s conftest.$ac_objext; then
34154   wx_cv_lib_lesstif="yes"
34155 else
34156   echo "$as_me: failed program was:" >&5
34157 sed 's/^/| /' conftest.$ac_ext >&5
34158
34159         wx_cv_lib_lesstif="no"
34160 fi
34161
34162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34163
34164 fi
34165 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34166 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34167         if test "$wx_cv_lib_lesstif" = "yes"; then
34168             cat >>confdefs.h <<\_ACEOF
34169 #define __WXLESSTIF__ 1
34170 _ACEOF
34171
34172         else
34173             cat >>confdefs.h <<\_ACEOF
34174 #define __WXLESSTIF__ 0
34175 _ACEOF
34176
34177         fi
34178
34179         CFLAGS=$save_CFLAGS
34180
34181         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34182         TOOLKIT=MOTIF
34183         GUIDIST=MOTIF_DIST
34184     fi
34185
34186         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34187                 if test "$wxUSE_LIBXPM" = "sys"; then
34188             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34189 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34190
34191   ac_find_libraries=
34192   for ac_dir in $SEARCH_LIB
34193   do
34194     for ac_extension in a so sl dylib dll.a; do
34195       if test -f "$ac_dir/libXpm.$ac_extension"; then
34196         ac_find_libraries=$ac_dir
34197         break 2
34198       fi
34199     done
34200   done
34201
34202             if test "$ac_find_libraries" != "" ; then
34203
34204     if test "$ac_find_libraries" = "default location"; then
34205     ac_path_to_link=""
34206   else
34207     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34208     result=$?
34209     if test $result = 0; then
34210       ac_path_to_link=""
34211     else
34212       ac_path_to_link=" -L$ac_find_libraries"
34213     fi
34214   fi
34215
34216                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34217                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34218 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34219
34220                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34221 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34222 if test "${wx_cv_x11_xpm_h+set}" = set; then
34223   echo $ECHO_N "(cached) $ECHO_C" >&6
34224 else
34225
34226                         save_CFLAGS=$CFLAGS
34227                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34228
34229                         cat >conftest.$ac_ext <<_ACEOF
34230 /* confdefs.h.  */
34231 _ACEOF
34232 cat confdefs.h >>conftest.$ac_ext
34233 cat >>conftest.$ac_ext <<_ACEOF
34234 /* end confdefs.h.  */
34235
34236                                 #include <X11/xpm.h>
34237
34238 int
34239 main ()
34240 {
34241
34242                                 int version;
34243                                 version = XpmLibraryVersion();
34244
34245   ;
34246   return 0;
34247 }
34248 _ACEOF
34249 rm -f conftest.$ac_objext
34250 if { (ac_try="$ac_compile"
34251 case "(($ac_try" in
34252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34253   *) ac_try_echo=$ac_try;;
34254 esac
34255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34256   (eval "$ac_compile") 2>conftest.er1
34257   ac_status=$?
34258   grep -v '^ *+' conftest.er1 >conftest.err
34259   rm -f conftest.er1
34260   cat conftest.err >&5
34261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262   (exit $ac_status); } && {
34263          test -z "$ac_c_werror_flag" ||
34264          test ! -s conftest.err
34265        } && test -s conftest.$ac_objext; then
34266   wx_cv_x11_xpm_h=yes
34267 else
34268   echo "$as_me: failed program was:" >&5
34269 sed 's/^/| /' conftest.$ac_ext >&5
34270
34271         wx_cv_x11_xpm_h=no
34272
34273 fi
34274
34275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34276
34277                         CFLAGS=$save_CFLAGS
34278
34279
34280 fi
34281 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34282 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34283
34284                 if test $wx_cv_x11_xpm_h = "yes"; then
34285                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34286                     cat >>confdefs.h <<\_ACEOF
34287 #define wxHAVE_LIB_XPM 1
34288 _ACEOF
34289
34290                 else
34291                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34292 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34293                 fi
34294             fi
34295
34296         fi
34297
34298                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34299 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34300 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34301   echo $ECHO_N "(cached) $ECHO_C" >&6
34302 else
34303   ac_check_lib_save_LIBS=$LIBS
34304 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34305 cat >conftest.$ac_ext <<_ACEOF
34306 /* confdefs.h.  */
34307 _ACEOF
34308 cat confdefs.h >>conftest.$ac_ext
34309 cat >>conftest.$ac_ext <<_ACEOF
34310 /* end confdefs.h.  */
34311
34312 /* Override any GCC internal prototype to avoid an error.
34313    Use char because int might match the return type of a GCC
34314    builtin and then its argument prototype would still apply.  */
34315 #ifdef __cplusplus
34316 extern "C"
34317 #endif
34318 char XShapeQueryExtension ();
34319 int
34320 main ()
34321 {
34322 return XShapeQueryExtension ();
34323   ;
34324   return 0;
34325 }
34326 _ACEOF
34327 rm -f conftest.$ac_objext conftest$ac_exeext
34328 if { (ac_try="$ac_link"
34329 case "(($ac_try" in
34330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34331   *) ac_try_echo=$ac_try;;
34332 esac
34333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34334   (eval "$ac_link") 2>conftest.er1
34335   ac_status=$?
34336   grep -v '^ *+' conftest.er1 >conftest.err
34337   rm -f conftest.er1
34338   cat conftest.err >&5
34339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34340   (exit $ac_status); } && {
34341          test -z "$ac_c_werror_flag" ||
34342          test ! -s conftest.err
34343        } && test -s conftest$ac_exeext &&
34344        $as_test_x conftest$ac_exeext; then
34345   ac_cv_lib_Xext_XShapeQueryExtension=yes
34346 else
34347   echo "$as_me: failed program was:" >&5
34348 sed 's/^/| /' conftest.$ac_ext >&5
34349
34350         ac_cv_lib_Xext_XShapeQueryExtension=no
34351 fi
34352
34353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34354       conftest$ac_exeext conftest.$ac_ext
34355 LIBS=$ac_check_lib_save_LIBS
34356 fi
34357 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34358 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34359 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34360
34361                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34362                       wxHAVE_XEXT_LIB=1
34363
34364 fi
34365
34366
34367         if test "$wxHAVE_XEXT_LIB" = 1; then
34368             save_CFLAGS="$CFLAGS"
34369             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34370
34371             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34372 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34373             cat >conftest.$ac_ext <<_ACEOF
34374 /* confdefs.h.  */
34375 _ACEOF
34376 cat confdefs.h >>conftest.$ac_ext
34377 cat >>conftest.$ac_ext <<_ACEOF
34378 /* end confdefs.h.  */
34379
34380                             #include <X11/Xlib.h>
34381                             #include <X11/extensions/shape.h>
34382
34383 int
34384 main ()
34385 {
34386
34387                             int dummy1, dummy2;
34388                             XShapeQueryExtension((Display*)NULL,
34389                                                  (int*)NULL, (int*)NULL);
34390
34391   ;
34392   return 0;
34393 }
34394 _ACEOF
34395 rm -f conftest.$ac_objext
34396 if { (ac_try="$ac_compile"
34397 case "(($ac_try" in
34398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34399   *) ac_try_echo=$ac_try;;
34400 esac
34401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34402   (eval "$ac_compile") 2>conftest.er1
34403   ac_status=$?
34404   grep -v '^ *+' conftest.er1 >conftest.err
34405   rm -f conftest.er1
34406   cat conftest.err >&5
34407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34408   (exit $ac_status); } && {
34409          test -z "$ac_c_werror_flag" ||
34410          test ! -s conftest.err
34411        } && test -s conftest.$ac_objext; then
34412
34413                             cat >>confdefs.h <<\_ACEOF
34414 #define HAVE_XSHAPE 1
34415 _ACEOF
34416
34417                             { echo "$as_me:$LINENO: result: found" >&5
34418 echo "${ECHO_T}found" >&6; }
34419
34420 else
34421   echo "$as_me: failed program was:" >&5
34422 sed 's/^/| /' conftest.$ac_ext >&5
34423
34424
34425                             { echo "$as_me:$LINENO: result: not found" >&5
34426 echo "${ECHO_T}not found" >&6; }
34427
34428 fi
34429
34430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34431             CFLAGS="$save_CFLAGS"
34432
34433         fi
34434     fi
34435
34436     if test "$wxUSE_OSX_CARBON" = 1; then
34437         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34438 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34439         if test "$GCC" = yes; then
34440             { echo "$as_me:$LINENO: result: gcc" >&5
34441 echo "${ECHO_T}gcc" >&6; }
34442             CPPFLAGS_PASCAL="-fpascal-strings"
34443         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34444             { echo "$as_me:$LINENO: result: xlc" >&5
34445 echo "${ECHO_T}xlc" >&6; }
34446             CPPFLAGS_PASCAL="-qmacpstr"
34447         else
34448             { echo "$as_me:$LINENO: result: none" >&5
34449 echo "${ECHO_T}none" >&6; }
34450         fi
34451
34452         if test "x$wxUSE_UNIX" = "xyes"; then
34453             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34454         else
34455                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34456         fi
34457
34458         TOOLKIT=OSX_CARBON
34459                 GUIDIST=OSX_CARBON_DIST
34460                         WXBASEPORT="_carbon"
34461
34462                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34463     fi
34464
34465     if test "$wxUSE_OSX_COCOA" = 1; then
34466         TOOLKIT=OSX_COCOA
34467         GUIDIST=OSX_COCOA_DIST
34468
34469                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34470     fi
34471
34472     if test "$wxUSE_OSX_IPHONE" = 1; then
34473         TOOLKIT=OSX_IPHONE
34474     fi
34475
34476     if test "$wxUSE_OLD_COCOA" = 1; then
34477         TOOLKIT=COCOA
34478         GUIDIST=COCOA_DIST
34479     fi
34480
34481     if test "$wxUSE_PM" = 1; then
34482         TOOLKIT=PM
34483         GUIDIST=PM_DIST
34484         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34485 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34486 if test "${wx_cv_spbcdata+set}" = set; then
34487   echo $ECHO_N "(cached) $ECHO_C" >&6
34488 else
34489
34490                 cat >conftest.$ac_ext <<_ACEOF
34491 /* confdefs.h.  */
34492 _ACEOF
34493 cat confdefs.h >>conftest.$ac_ext
34494 cat >>conftest.$ac_ext <<_ACEOF
34495 /* end confdefs.h.  */
34496
34497                         #define INCL_PM
34498                         #include <os2.h>
34499
34500 int
34501 main ()
34502 {
34503
34504                         SPBCDATA test;
34505
34506   ;
34507   return 0;
34508 }
34509 _ACEOF
34510 rm -f conftest.$ac_objext
34511 if { (ac_try="$ac_compile"
34512 case "(($ac_try" in
34513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34514   *) ac_try_echo=$ac_try;;
34515 esac
34516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34517   (eval "$ac_compile") 2>conftest.er1
34518   ac_status=$?
34519   grep -v '^ *+' conftest.er1 >conftest.err
34520   rm -f conftest.er1
34521   cat conftest.err >&5
34522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523   (exit $ac_status); } && {
34524          test -z "$ac_c_werror_flag" ||
34525          test ! -s conftest.err
34526        } && test -s conftest.$ac_objext; then
34527   wx_cv_spbcdata=yes
34528 else
34529   echo "$as_me: failed program was:" >&5
34530 sed 's/^/| /' conftest.$ac_ext >&5
34531
34532         wx_cv_spbcdata=no
34533
34534 fi
34535
34536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34537
34538
34539 fi
34540 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34541 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34542
34543         if test $wx_cv_spbcdata = "yes"; then
34544             cat >>confdefs.h <<\_ACEOF
34545 #define HAVE_SPBCDATA 1
34546 _ACEOF
34547
34548         fi
34549     fi
34550
34551         if test "$TOOLKIT" = "PM" ; then
34552         TOOLKIT_DIR="os2"
34553     else
34554         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34555     fi
34556
34557     if test "$wxUSE_UNIVERSAL" = "yes"; then
34558         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34559         WIDGET_SET=univ
34560     fi
34561
34562         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34563     DISTDIR="wx\$(TOOLKIT)"
34564 else
34565     USE_GUI=0
34566
34567             TOOLKIT_DIR="base"
34568
34569         if test "$USE_WIN32" = 1 ; then
34570                         TOOLKIT="MSW"
34571     fi
34572
34573         GUIDIST="BASE_DIST"
34574     DISTDIR="wxBase"
34575 fi
34576
34577
34578
34579 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34580     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34581         wxUSE_UNICODE_UTF8=yes
34582     elif test "$USE_OS2" = 1 ; then
34583                                 wxUSE_UNICODE_UTF8=yes
34584     else
34585         wxUSE_UNICODE_UTF8=no
34586     fi
34587 fi
34588
34589
34590 if test "$wxUSE_GUI" = "yes"; then
34591     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34592
34593 for ac_header in X11/Xlib.h
34594 do
34595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34599   echo $ECHO_N "(cached) $ECHO_C" >&6
34600 else
34601   cat >conftest.$ac_ext <<_ACEOF
34602 /* confdefs.h.  */
34603 _ACEOF
34604 cat confdefs.h >>conftest.$ac_ext
34605 cat >>conftest.$ac_ext <<_ACEOF
34606 /* end confdefs.h.  */
34607
34608
34609 #include <$ac_header>
34610 _ACEOF
34611 rm -f conftest.$ac_objext
34612 if { (ac_try="$ac_compile"
34613 case "(($ac_try" in
34614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34615   *) ac_try_echo=$ac_try;;
34616 esac
34617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34618   (eval "$ac_compile") 2>conftest.er1
34619   ac_status=$?
34620   grep -v '^ *+' conftest.er1 >conftest.err
34621   rm -f conftest.er1
34622   cat conftest.err >&5
34623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624   (exit $ac_status); } && {
34625          test -z "$ac_c_werror_flag" ||
34626          test ! -s conftest.err
34627        } && test -s conftest.$ac_objext; then
34628   eval "$as_ac_Header=yes"
34629 else
34630   echo "$as_me: failed program was:" >&5
34631 sed 's/^/| /' conftest.$ac_ext >&5
34632
34633         eval "$as_ac_Header=no"
34634 fi
34635
34636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34637 fi
34638 ac_res=`eval echo '${'$as_ac_Header'}'`
34639                { echo "$as_me:$LINENO: result: $ac_res" >&5
34640 echo "${ECHO_T}$ac_res" >&6; }
34641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34642   cat >>confdefs.h <<_ACEOF
34643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34644 _ACEOF
34645
34646 fi
34647
34648 done
34649
34650
34651 for ac_header in X11/XKBlib.h
34652 do
34653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34657   echo $ECHO_N "(cached) $ECHO_C" >&6
34658 else
34659   cat >conftest.$ac_ext <<_ACEOF
34660 /* confdefs.h.  */
34661 _ACEOF
34662 cat confdefs.h >>conftest.$ac_ext
34663 cat >>conftest.$ac_ext <<_ACEOF
34664 /* end confdefs.h.  */
34665
34666                           #if HAVE_X11_XLIB_H
34667                             #include <X11/Xlib.h>
34668                           #endif
34669
34670
34671 #include <$ac_header>
34672 _ACEOF
34673 rm -f conftest.$ac_objext
34674 if { (ac_try="$ac_compile"
34675 case "(($ac_try" in
34676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34677   *) ac_try_echo=$ac_try;;
34678 esac
34679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34680   (eval "$ac_compile") 2>conftest.er1
34681   ac_status=$?
34682   grep -v '^ *+' conftest.er1 >conftest.err
34683   rm -f conftest.er1
34684   cat conftest.err >&5
34685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34686   (exit $ac_status); } && {
34687          test -z "$ac_c_werror_flag" ||
34688          test ! -s conftest.err
34689        } && test -s conftest.$ac_objext; then
34690   eval "$as_ac_Header=yes"
34691 else
34692   echo "$as_me: failed program was:" >&5
34693 sed 's/^/| /' conftest.$ac_ext >&5
34694
34695         eval "$as_ac_Header=no"
34696 fi
34697
34698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34699 fi
34700 ac_res=`eval echo '${'$as_ac_Header'}'`
34701                { echo "$as_me:$LINENO: result: $ac_res" >&5
34702 echo "${ECHO_T}$ac_res" >&6; }
34703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34704   cat >>confdefs.h <<_ACEOF
34705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34706 _ACEOF
34707
34708 fi
34709
34710 done
34711
34712     fi
34713 fi
34714
34715
34716
34717 USE_XINERAMA=0
34718 if test "$wxUSE_DISPLAY" = "yes"; then
34719         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34720
34721   ac_find_libraries=
34722
34723     fl_pkgname=`echo "Xinerama" | tr [:upper:] [:lower:]`
34724
34725
34726 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
34727         if test -n "$ac_tool_prefix"; then
34728   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
34729 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34733   echo $ECHO_N "(cached) $ECHO_C" >&6
34734 else
34735   case $PKG_CONFIG in
34736   [\\/]* | ?:[\\/]*)
34737   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34738   ;;
34739   *)
34740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34741 for as_dir in $PATH
34742 do
34743   IFS=$as_save_IFS
34744   test -z "$as_dir" && as_dir=.
34745   for ac_exec_ext in '' $ac_executable_extensions; do
34746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34747     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34749     break 2
34750   fi
34751 done
34752 done
34753 IFS=$as_save_IFS
34754
34755   ;;
34756 esac
34757 fi
34758 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34759 if test -n "$PKG_CONFIG"; then
34760   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34761 echo "${ECHO_T}$PKG_CONFIG" >&6; }
34762 else
34763   { echo "$as_me:$LINENO: result: no" >&5
34764 echo "${ECHO_T}no" >&6; }
34765 fi
34766
34767
34768 fi
34769 if test -z "$ac_cv_path_PKG_CONFIG"; then
34770   ac_pt_PKG_CONFIG=$PKG_CONFIG
34771   # Extract the first word of "pkg-config", so it can be a program name with args.
34772 set dummy pkg-config; ac_word=$2
34773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34775 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
34776   echo $ECHO_N "(cached) $ECHO_C" >&6
34777 else
34778   case $ac_pt_PKG_CONFIG in
34779   [\\/]* | ?:[\\/]*)
34780   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
34781   ;;
34782   *)
34783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34784 for as_dir in $PATH
34785 do
34786   IFS=$as_save_IFS
34787   test -z "$as_dir" && as_dir=.
34788   for ac_exec_ext in '' $ac_executable_extensions; do
34789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34790     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34792     break 2
34793   fi
34794 done
34795 done
34796 IFS=$as_save_IFS
34797
34798   ;;
34799 esac
34800 fi
34801 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
34802 if test -n "$ac_pt_PKG_CONFIG"; then
34803   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
34804 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
34805 else
34806   { echo "$as_me:$LINENO: result: no" >&5
34807 echo "${ECHO_T}no" >&6; }
34808 fi
34809
34810   if test "x$ac_pt_PKG_CONFIG" = x; then
34811     PKG_CONFIG=""
34812   else
34813     case $cross_compiling:$ac_tool_warned in
34814 yes:)
34815 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34816 whose name does not start with the host triplet.  If you think this
34817 configuration is useful to you, please write to autoconf@gnu.org." >&5
34818 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34819 whose name does not start with the host triplet.  If you think this
34820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34821 ac_tool_warned=yes ;;
34822 esac
34823     PKG_CONFIG=$ac_pt_PKG_CONFIG
34824   fi
34825 else
34826   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
34827 fi
34828
34829 fi
34830 if test -n "$PKG_CONFIG"; then
34831         _pkg_min_version=0.9.0
34832         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
34833 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
34834         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
34835                 { echo "$as_me:$LINENO: result: yes" >&5
34836 echo "${ECHO_T}yes" >&6; }
34837         else
34838                 { echo "$as_me:$LINENO: result: no" >&5
34839 echo "${ECHO_T}no" >&6; }
34840                 PKG_CONFIG=""
34841         fi
34842
34843 fi 6> /dev/null
34844
34845 pkg_failed=no
34846 { echo "$as_me:$LINENO: checking for Xinerama" >&5
34847 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34848
34849 if test -n "$PKG_CONFIG"; then
34850     if test -n "$Xinerama_CFLAGS"; then
34851         pkg_cv_Xinerama_CFLAGS="$Xinerama_CFLAGS"
34852     else
34853         if test -n "$PKG_CONFIG" && \
34854     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
34855   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
34856   ac_status=$?
34857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34858   (exit $ac_status); }; then
34859   pkg_cv_Xinerama_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
34860 else
34861   pkg_failed=yes
34862 fi
34863     fi
34864 else
34865         pkg_failed=untried
34866 fi
34867 if test -n "$PKG_CONFIG"; then
34868     if test -n "$Xinerama_LIBS"; then
34869         pkg_cv_Xinerama_LIBS="$Xinerama_LIBS"
34870     else
34871         if test -n "$PKG_CONFIG" && \
34872     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
34873   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
34874   ac_status=$?
34875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876   (exit $ac_status); }; then
34877   pkg_cv_Xinerama_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
34878 else
34879   pkg_failed=yes
34880 fi
34881     fi
34882 else
34883         pkg_failed=untried
34884 fi
34885
34886
34887
34888 if test $pkg_failed = yes; then
34889
34890 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34891         _pkg_short_errors_supported=yes
34892 else
34893         _pkg_short_errors_supported=no
34894 fi
34895         if test $_pkg_short_errors_supported = yes; then
34896                 Xinerama_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
34897         else
34898                 Xinerama_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
34899         fi
34900         # Put the nasty error message in config.log where it belongs
34901         echo "$Xinerama_PKG_ERRORS" >&5
34902
34903
34904       if test "x$ac_find_libraries" = "x"; then
34905                 if test "xXineramaQueryScreens" != "x"; then
34906           { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
34907 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
34908 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
34909   echo $ECHO_N "(cached) $ECHO_C" >&6
34910 else
34911   ac_check_lib_save_LIBS=$LIBS
34912 LIBS="-lXinerama  $LIBS"
34913 cat >conftest.$ac_ext <<_ACEOF
34914 /* confdefs.h.  */
34915 _ACEOF
34916 cat confdefs.h >>conftest.$ac_ext
34917 cat >>conftest.$ac_ext <<_ACEOF
34918 /* end confdefs.h.  */
34919
34920 /* Override any GCC internal prototype to avoid an error.
34921    Use char because int might match the return type of a GCC
34922    builtin and then its argument prototype would still apply.  */
34923 #ifdef __cplusplus
34924 extern "C"
34925 #endif
34926 char XineramaQueryScreens ();
34927 int
34928 main ()
34929 {
34930 return XineramaQueryScreens ();
34931   ;
34932   return 0;
34933 }
34934 _ACEOF
34935 rm -f conftest.$ac_objext conftest$ac_exeext
34936 if { (ac_try="$ac_link"
34937 case "(($ac_try" in
34938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939   *) ac_try_echo=$ac_try;;
34940 esac
34941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34942   (eval "$ac_link") 2>conftest.er1
34943   ac_status=$?
34944   grep -v '^ *+' conftest.er1 >conftest.err
34945   rm -f conftest.er1
34946   cat conftest.err >&5
34947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948   (exit $ac_status); } && {
34949          test -z "$ac_c_werror_flag" ||
34950          test ! -s conftest.err
34951        } && test -s conftest$ac_exeext &&
34952        $as_test_x conftest$ac_exeext; then
34953   ac_cv_lib_Xinerama_XineramaQueryScreens=yes
34954 else
34955   echo "$as_me: failed program was:" >&5
34956 sed 's/^/| /' conftest.$ac_ext >&5
34957
34958         ac_cv_lib_Xinerama_XineramaQueryScreens=no
34959 fi
34960
34961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34962       conftest$ac_exeext conftest.$ac_ext
34963 LIBS=$ac_check_lib_save_LIBS
34964 fi
34965 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
34966 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
34967 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
34968   ac_find_libraries="std"
34969 fi
34970
34971         fi
34972       fi
34973
34974       if test "x$ac_find_libraries" = "x"; then
34975                         { echo "$as_me:$LINENO: checking elsewhere" >&5
34976 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
34977
34978   ac_find_libraries=
34979   for ac_dir in $SEARCH_LIB
34980   do
34981     for ac_extension in a so sl dylib dll.a; do
34982       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34983         ac_find_libraries=$ac_dir
34984         break 2
34985       fi
34986     done
34987   done
34988
34989         if test "x$ac_find_libraries" != "x"; then
34990           { echo "$as_me:$LINENO: result: yes" >&5
34991 echo "${ECHO_T}yes" >&6; }
34992         else
34993           { echo "$as_me:$LINENO: result: no" >&5
34994 echo "${ECHO_T}no" >&6; }
34995         fi
34996       fi
34997
34998 elif test $pkg_failed = untried; then
34999
35000       if test "x$ac_find_libraries" = "x"; then
35001                 if test "xXineramaQueryScreens" != "x"; then
35002           { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
35003 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
35004 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
35005   echo $ECHO_N "(cached) $ECHO_C" >&6
35006 else
35007   ac_check_lib_save_LIBS=$LIBS
35008 LIBS="-lXinerama  $LIBS"
35009 cat >conftest.$ac_ext <<_ACEOF
35010 /* confdefs.h.  */
35011 _ACEOF
35012 cat confdefs.h >>conftest.$ac_ext
35013 cat >>conftest.$ac_ext <<_ACEOF
35014 /* end confdefs.h.  */
35015
35016 /* Override any GCC internal prototype to avoid an error.
35017    Use char because int might match the return type of a GCC
35018    builtin and then its argument prototype would still apply.  */
35019 #ifdef __cplusplus
35020 extern "C"
35021 #endif
35022 char XineramaQueryScreens ();
35023 int
35024 main ()
35025 {
35026 return XineramaQueryScreens ();
35027   ;
35028   return 0;
35029 }
35030 _ACEOF
35031 rm -f conftest.$ac_objext conftest$ac_exeext
35032 if { (ac_try="$ac_link"
35033 case "(($ac_try" in
35034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35035   *) ac_try_echo=$ac_try;;
35036 esac
35037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35038   (eval "$ac_link") 2>conftest.er1
35039   ac_status=$?
35040   grep -v '^ *+' conftest.er1 >conftest.err
35041   rm -f conftest.er1
35042   cat conftest.err >&5
35043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044   (exit $ac_status); } && {
35045          test -z "$ac_c_werror_flag" ||
35046          test ! -s conftest.err
35047        } && test -s conftest$ac_exeext &&
35048        $as_test_x conftest$ac_exeext; then
35049   ac_cv_lib_Xinerama_XineramaQueryScreens=yes
35050 else
35051   echo "$as_me: failed program was:" >&5
35052 sed 's/^/| /' conftest.$ac_ext >&5
35053
35054         ac_cv_lib_Xinerama_XineramaQueryScreens=no
35055 fi
35056
35057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35058       conftest$ac_exeext conftest.$ac_ext
35059 LIBS=$ac_check_lib_save_LIBS
35060 fi
35061 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
35062 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
35063 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
35064   ac_find_libraries="std"
35065 fi
35066
35067         fi
35068       fi
35069
35070       if test "x$ac_find_libraries" = "x"; then
35071                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35072 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35073
35074   ac_find_libraries=
35075   for ac_dir in $SEARCH_LIB
35076   do
35077     for ac_extension in a so sl dylib dll.a; do
35078       if test -f "$ac_dir/libXinerama.$ac_extension"; then
35079         ac_find_libraries=$ac_dir
35080         break 2
35081       fi
35082     done
35083   done
35084
35085         if test "x$ac_find_libraries" != "x"; then
35086           { echo "$as_me:$LINENO: result: yes" >&5
35087 echo "${ECHO_T}yes" >&6; }
35088         else
35089           { echo "$as_me:$LINENO: result: no" >&5
35090 echo "${ECHO_T}no" >&6; }
35091         fi
35092       fi
35093
35094 else
35095         Xinerama_CFLAGS=$pkg_cv_Xinerama_CFLAGS
35096         Xinerama_LIBS=$pkg_cv_Xinerama_LIBS
35097         { echo "$as_me:$LINENO: result: yes" >&5
35098 echo "${ECHO_T}yes" >&6; }
35099
35100             ac_find_libraries="std"
35101
35102                                                 eval ac_find_cflags=\$Xinerama_CFLAGS
35103       eval fl_libs=\$Xinerama_LIBS
35104
35105                   for fl_path in $fl_libs
35106       do
35107         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
35108                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
35109         fi
35110       done
35111
35112 fi
35113
35114         if test "$ac_find_libraries" != "" ; then
35115             if test "$ac_find_libraries" != "std" ; then
35116
35117     if test "$ac_find_libraries" = "default location"; then
35118     ac_path_to_link=""
35119   else
35120     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35121     result=$?
35122     if test $result = 0; then
35123       ac_path_to_link=""
35124     else
35125       ac_path_to_link=" -L$ac_find_libraries"
35126     fi
35127   fi
35128
35129               if test "$ac_path_to_link" != " -L/usr/lib" ; then
35130                   LDFLAGS="$LDFLAGS $ac_path_to_link"
35131               fi
35132             fi
35133             USE_XINERAMA=1
35134             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35135         else
35136             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35137 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35138             wxUSE_DISPLAY="no"
35139         fi
35140     elif test "$wxUSE_MSW" = 1; then
35141                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35142 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35143 if test "${ac_cv_header_ddraw_h+set}" = set; then
35144   echo $ECHO_N "(cached) $ECHO_C" >&6
35145 else
35146   cat >conftest.$ac_ext <<_ACEOF
35147 /* confdefs.h.  */
35148 _ACEOF
35149 cat confdefs.h >>conftest.$ac_ext
35150 cat >>conftest.$ac_ext <<_ACEOF
35151 /* end confdefs.h.  */
35152 #include <windows.h>
35153
35154 #include <ddraw.h>
35155 _ACEOF
35156 rm -f conftest.$ac_objext
35157 if { (ac_try="$ac_compile"
35158 case "(($ac_try" in
35159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35160   *) ac_try_echo=$ac_try;;
35161 esac
35162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35163   (eval "$ac_compile") 2>conftest.er1
35164   ac_status=$?
35165   grep -v '^ *+' conftest.er1 >conftest.err
35166   rm -f conftest.er1
35167   cat conftest.err >&5
35168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169   (exit $ac_status); } && {
35170          test -z "$ac_c_werror_flag" ||
35171          test ! -s conftest.err
35172        } && test -s conftest.$ac_objext; then
35173   ac_cv_header_ddraw_h=yes
35174 else
35175   echo "$as_me: failed program was:" >&5
35176 sed 's/^/| /' conftest.$ac_ext >&5
35177
35178         ac_cv_header_ddraw_h=no
35179 fi
35180
35181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35182 fi
35183 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35184 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35185
35186
35187     fi
35188 fi
35189
35190 if test "$wxUSE_DISPLAY" = "yes"; then
35191         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
35192
35193   ac_find_libraries=
35194
35195     fl_pkgname=`echo "Xxf86vm" | tr [:upper:] [:lower:]`
35196
35197
35198 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
35199         if test -n "$ac_tool_prefix"; then
35200   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35201 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35204 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35205   echo $ECHO_N "(cached) $ECHO_C" >&6
35206 else
35207   case $PKG_CONFIG in
35208   [\\/]* | ?:[\\/]*)
35209   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35210   ;;
35211   *)
35212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35213 for as_dir in $PATH
35214 do
35215   IFS=$as_save_IFS
35216   test -z "$as_dir" && as_dir=.
35217   for ac_exec_ext in '' $ac_executable_extensions; do
35218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35219     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35221     break 2
35222   fi
35223 done
35224 done
35225 IFS=$as_save_IFS
35226
35227   ;;
35228 esac
35229 fi
35230 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35231 if test -n "$PKG_CONFIG"; then
35232   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35233 echo "${ECHO_T}$PKG_CONFIG" >&6; }
35234 else
35235   { echo "$as_me:$LINENO: result: no" >&5
35236 echo "${ECHO_T}no" >&6; }
35237 fi
35238
35239
35240 fi
35241 if test -z "$ac_cv_path_PKG_CONFIG"; then
35242   ac_pt_PKG_CONFIG=$PKG_CONFIG
35243   # Extract the first word of "pkg-config", so it can be a program name with args.
35244 set dummy pkg-config; ac_word=$2
35245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35247 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35248   echo $ECHO_N "(cached) $ECHO_C" >&6
35249 else
35250   case $ac_pt_PKG_CONFIG in
35251   [\\/]* | ?:[\\/]*)
35252   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35253   ;;
35254   *)
35255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35256 for as_dir in $PATH
35257 do
35258   IFS=$as_save_IFS
35259   test -z "$as_dir" && as_dir=.
35260   for ac_exec_ext in '' $ac_executable_extensions; do
35261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35262     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35264     break 2
35265   fi
35266 done
35267 done
35268 IFS=$as_save_IFS
35269
35270   ;;
35271 esac
35272 fi
35273 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35274 if test -n "$ac_pt_PKG_CONFIG"; then
35275   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35276 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
35277 else
35278   { echo "$as_me:$LINENO: result: no" >&5
35279 echo "${ECHO_T}no" >&6; }
35280 fi
35281
35282   if test "x$ac_pt_PKG_CONFIG" = x; then
35283     PKG_CONFIG=""
35284   else
35285     case $cross_compiling:$ac_tool_warned in
35286 yes:)
35287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35288 whose name does not start with the host triplet.  If you think this
35289 configuration is useful to you, please write to autoconf@gnu.org." >&5
35290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35291 whose name does not start with the host triplet.  If you think this
35292 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35293 ac_tool_warned=yes ;;
35294 esac
35295     PKG_CONFIG=$ac_pt_PKG_CONFIG
35296   fi
35297 else
35298   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35299 fi
35300
35301 fi
35302 if test -n "$PKG_CONFIG"; then
35303         _pkg_min_version=0.9.0
35304         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35305 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
35306         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35307                 { echo "$as_me:$LINENO: result: yes" >&5
35308 echo "${ECHO_T}yes" >&6; }
35309         else
35310                 { echo "$as_me:$LINENO: result: no" >&5
35311 echo "${ECHO_T}no" >&6; }
35312                 PKG_CONFIG=""
35313         fi
35314
35315 fi 6> /dev/null
35316
35317 pkg_failed=no
35318 { echo "$as_me:$LINENO: checking for Xxf86vm" >&5
35319 echo $ECHO_N "checking for Xxf86vm... $ECHO_C" >&6; }
35320
35321 if test -n "$PKG_CONFIG"; then
35322     if test -n "$Xxf86vm_CFLAGS"; then
35323         pkg_cv_Xxf86vm_CFLAGS="$Xxf86vm_CFLAGS"
35324     else
35325         if test -n "$PKG_CONFIG" && \
35326     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35327   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35328   ac_status=$?
35329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330   (exit $ac_status); }; then
35331   pkg_cv_Xxf86vm_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
35332 else
35333   pkg_failed=yes
35334 fi
35335     fi
35336 else
35337         pkg_failed=untried
35338 fi
35339 if test -n "$PKG_CONFIG"; then
35340     if test -n "$Xxf86vm_LIBS"; then
35341         pkg_cv_Xxf86vm_LIBS="$Xxf86vm_LIBS"
35342     else
35343         if test -n "$PKG_CONFIG" && \
35344     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35345   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35346   ac_status=$?
35347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348   (exit $ac_status); }; then
35349   pkg_cv_Xxf86vm_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
35350 else
35351   pkg_failed=yes
35352 fi
35353     fi
35354 else
35355         pkg_failed=untried
35356 fi
35357
35358
35359
35360 if test $pkg_failed = yes; then
35361
35362 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35363         _pkg_short_errors_supported=yes
35364 else
35365         _pkg_short_errors_supported=no
35366 fi
35367         if test $_pkg_short_errors_supported = yes; then
35368                 Xxf86vm_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
35369         else
35370                 Xxf86vm_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
35371         fi
35372         # Put the nasty error message in config.log where it belongs
35373         echo "$Xxf86vm_PKG_ERRORS" >&5
35374
35375
35376       if test "x$ac_find_libraries" = "x"; then
35377                 if test "xXF86VidModeQueryExtension" != "x"; then
35378           { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
35379 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
35380 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
35381   echo $ECHO_N "(cached) $ECHO_C" >&6
35382 else
35383   ac_check_lib_save_LIBS=$LIBS
35384 LIBS="-lXxf86vm  $LIBS"
35385 cat >conftest.$ac_ext <<_ACEOF
35386 /* confdefs.h.  */
35387 _ACEOF
35388 cat confdefs.h >>conftest.$ac_ext
35389 cat >>conftest.$ac_ext <<_ACEOF
35390 /* end confdefs.h.  */
35391
35392 /* Override any GCC internal prototype to avoid an error.
35393    Use char because int might match the return type of a GCC
35394    builtin and then its argument prototype would still apply.  */
35395 #ifdef __cplusplus
35396 extern "C"
35397 #endif
35398 char XF86VidModeQueryExtension ();
35399 int
35400 main ()
35401 {
35402 return XF86VidModeQueryExtension ();
35403   ;
35404   return 0;
35405 }
35406 _ACEOF
35407 rm -f conftest.$ac_objext conftest$ac_exeext
35408 if { (ac_try="$ac_link"
35409 case "(($ac_try" in
35410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35411   *) ac_try_echo=$ac_try;;
35412 esac
35413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35414   (eval "$ac_link") 2>conftest.er1
35415   ac_status=$?
35416   grep -v '^ *+' conftest.er1 >conftest.err
35417   rm -f conftest.er1
35418   cat conftest.err >&5
35419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35420   (exit $ac_status); } && {
35421          test -z "$ac_c_werror_flag" ||
35422          test ! -s conftest.err
35423        } && test -s conftest$ac_exeext &&
35424        $as_test_x conftest$ac_exeext; then
35425   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
35426 else
35427   echo "$as_me: failed program was:" >&5
35428 sed 's/^/| /' conftest.$ac_ext >&5
35429
35430         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
35431 fi
35432
35433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35434       conftest$ac_exeext conftest.$ac_ext
35435 LIBS=$ac_check_lib_save_LIBS
35436 fi
35437 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
35438 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
35439 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
35440   ac_find_libraries="std"
35441 fi
35442
35443         fi
35444       fi
35445
35446       if test "x$ac_find_libraries" = "x"; then
35447                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35448 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35449
35450   ac_find_libraries=
35451   for ac_dir in $SEARCH_LIB
35452   do
35453     for ac_extension in a so sl dylib dll.a; do
35454       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35455         ac_find_libraries=$ac_dir
35456         break 2
35457       fi
35458     done
35459   done
35460
35461         if test "x$ac_find_libraries" != "x"; then
35462           { echo "$as_me:$LINENO: result: yes" >&5
35463 echo "${ECHO_T}yes" >&6; }
35464         else
35465           { echo "$as_me:$LINENO: result: no" >&5
35466 echo "${ECHO_T}no" >&6; }
35467         fi
35468       fi
35469
35470 elif test $pkg_failed = untried; then
35471
35472       if test "x$ac_find_libraries" = "x"; then
35473                 if test "xXF86VidModeQueryExtension" != "x"; then
35474           { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
35475 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
35476 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
35477   echo $ECHO_N "(cached) $ECHO_C" >&6
35478 else
35479   ac_check_lib_save_LIBS=$LIBS
35480 LIBS="-lXxf86vm  $LIBS"
35481 cat >conftest.$ac_ext <<_ACEOF
35482 /* confdefs.h.  */
35483 _ACEOF
35484 cat confdefs.h >>conftest.$ac_ext
35485 cat >>conftest.$ac_ext <<_ACEOF
35486 /* end confdefs.h.  */
35487
35488 /* Override any GCC internal prototype to avoid an error.
35489    Use char because int might match the return type of a GCC
35490    builtin and then its argument prototype would still apply.  */
35491 #ifdef __cplusplus
35492 extern "C"
35493 #endif
35494 char XF86VidModeQueryExtension ();
35495 int
35496 main ()
35497 {
35498 return XF86VidModeQueryExtension ();
35499   ;
35500   return 0;
35501 }
35502 _ACEOF
35503 rm -f conftest.$ac_objext conftest$ac_exeext
35504 if { (ac_try="$ac_link"
35505 case "(($ac_try" in
35506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35507   *) ac_try_echo=$ac_try;;
35508 esac
35509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35510   (eval "$ac_link") 2>conftest.er1
35511   ac_status=$?
35512   grep -v '^ *+' conftest.er1 >conftest.err
35513   rm -f conftest.er1
35514   cat conftest.err >&5
35515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516   (exit $ac_status); } && {
35517          test -z "$ac_c_werror_flag" ||
35518          test ! -s conftest.err
35519        } && test -s conftest$ac_exeext &&
35520        $as_test_x conftest$ac_exeext; then
35521   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
35522 else
35523   echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35525
35526         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
35527 fi
35528
35529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35530       conftest$ac_exeext conftest.$ac_ext
35531 LIBS=$ac_check_lib_save_LIBS
35532 fi
35533 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
35534 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
35535 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
35536   ac_find_libraries="std"
35537 fi
35538
35539         fi
35540       fi
35541
35542       if test "x$ac_find_libraries" = "x"; then
35543                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35544 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35545
35546   ac_find_libraries=
35547   for ac_dir in $SEARCH_LIB
35548   do
35549     for ac_extension in a so sl dylib dll.a; do
35550       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35551         ac_find_libraries=$ac_dir
35552         break 2
35553       fi
35554     done
35555   done
35556
35557         if test "x$ac_find_libraries" != "x"; then
35558           { echo "$as_me:$LINENO: result: yes" >&5
35559 echo "${ECHO_T}yes" >&6; }
35560         else
35561           { echo "$as_me:$LINENO: result: no" >&5
35562 echo "${ECHO_T}no" >&6; }
35563         fi
35564       fi
35565
35566 else
35567         Xxf86vm_CFLAGS=$pkg_cv_Xxf86vm_CFLAGS
35568         Xxf86vm_LIBS=$pkg_cv_Xxf86vm_LIBS
35569         { echo "$as_me:$LINENO: result: yes" >&5
35570 echo "${ECHO_T}yes" >&6; }
35571
35572             ac_find_libraries="std"
35573
35574                                                 eval ac_find_cflags=\$Xxf86vm_CFLAGS
35575       eval fl_libs=\$Xxf86vm_LIBS
35576
35577                   for fl_path in $fl_libs
35578       do
35579         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
35580                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
35581         fi
35582       done
35583
35584 fi
35585
35586         if test "$ac_find_libraries" != "" ; then
35587
35588 for ac_header in X11/extensions/xf86vmode.h
35589 do
35590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35594   echo $ECHO_N "(cached) $ECHO_C" >&6
35595 else
35596   cat >conftest.$ac_ext <<_ACEOF
35597 /* confdefs.h.  */
35598 _ACEOF
35599 cat confdefs.h >>conftest.$ac_ext
35600 cat >>conftest.$ac_ext <<_ACEOF
35601 /* end confdefs.h.  */
35602
35603                                   #if HAVE_X11_XLIB_H
35604                                     #include <X11/Xlib.h>
35605                                   #endif
35606
35607
35608 #include <$ac_header>
35609 _ACEOF
35610 rm -f conftest.$ac_objext
35611 if { (ac_try="$ac_compile"
35612 case "(($ac_try" in
35613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35614   *) ac_try_echo=$ac_try;;
35615 esac
35616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35617   (eval "$ac_compile") 2>conftest.er1
35618   ac_status=$?
35619   grep -v '^ *+' conftest.er1 >conftest.err
35620   rm -f conftest.er1
35621   cat conftest.err >&5
35622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623   (exit $ac_status); } && {
35624          test -z "$ac_c_werror_flag" ||
35625          test ! -s conftest.err
35626        } && test -s conftest.$ac_objext; then
35627   eval "$as_ac_Header=yes"
35628 else
35629   echo "$as_me: failed program was:" >&5
35630 sed 's/^/| /' conftest.$ac_ext >&5
35631
35632         eval "$as_ac_Header=no"
35633 fi
35634
35635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35636 fi
35637 ac_res=`eval echo '${'$as_ac_Header'}'`
35638                { echo "$as_me:$LINENO: result: $ac_res" >&5
35639 echo "${ECHO_T}$ac_res" >&6; }
35640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35641   cat >>confdefs.h <<_ACEOF
35642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35643 _ACEOF
35644
35645                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35646
35647 fi
35648
35649 done
35650
35651         fi
35652     fi
35653 fi
35654
35655 if test "$wxUSE_DETECT_SM" = "yes"; then
35656     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
35657
35658   ac_find_libraries=
35659
35660     fl_pkgname=`echo "SM" | tr [:upper:] [:lower:]`
35661
35662
35663 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
35664         if test -n "$ac_tool_prefix"; then
35665   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35666 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35669 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35670   echo $ECHO_N "(cached) $ECHO_C" >&6
35671 else
35672   case $PKG_CONFIG in
35673   [\\/]* | ?:[\\/]*)
35674   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35675   ;;
35676   *)
35677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35678 for as_dir in $PATH
35679 do
35680   IFS=$as_save_IFS
35681   test -z "$as_dir" && as_dir=.
35682   for ac_exec_ext in '' $ac_executable_extensions; do
35683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35684     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35686     break 2
35687   fi
35688 done
35689 done
35690 IFS=$as_save_IFS
35691
35692   ;;
35693 esac
35694 fi
35695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35696 if test -n "$PKG_CONFIG"; then
35697   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35698 echo "${ECHO_T}$PKG_CONFIG" >&6; }
35699 else
35700   { echo "$as_me:$LINENO: result: no" >&5
35701 echo "${ECHO_T}no" >&6; }
35702 fi
35703
35704
35705 fi
35706 if test -z "$ac_cv_path_PKG_CONFIG"; then
35707   ac_pt_PKG_CONFIG=$PKG_CONFIG
35708   # Extract the first word of "pkg-config", so it can be a program name with args.
35709 set dummy pkg-config; ac_word=$2
35710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35712 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35713   echo $ECHO_N "(cached) $ECHO_C" >&6
35714 else
35715   case $ac_pt_PKG_CONFIG in
35716   [\\/]* | ?:[\\/]*)
35717   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35718   ;;
35719   *)
35720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35721 for as_dir in $PATH
35722 do
35723   IFS=$as_save_IFS
35724   test -z "$as_dir" && as_dir=.
35725   for ac_exec_ext in '' $ac_executable_extensions; do
35726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35727     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35729     break 2
35730   fi
35731 done
35732 done
35733 IFS=$as_save_IFS
35734
35735   ;;
35736 esac
35737 fi
35738 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35739 if test -n "$ac_pt_PKG_CONFIG"; then
35740   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35741 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
35742 else
35743   { echo "$as_me:$LINENO: result: no" >&5
35744 echo "${ECHO_T}no" >&6; }
35745 fi
35746
35747   if test "x$ac_pt_PKG_CONFIG" = x; then
35748     PKG_CONFIG=""
35749   else
35750     case $cross_compiling:$ac_tool_warned in
35751 yes:)
35752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35753 whose name does not start with the host triplet.  If you think this
35754 configuration is useful to you, please write to autoconf@gnu.org." >&5
35755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35756 whose name does not start with the host triplet.  If you think this
35757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35758 ac_tool_warned=yes ;;
35759 esac
35760     PKG_CONFIG=$ac_pt_PKG_CONFIG
35761   fi
35762 else
35763   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35764 fi
35765
35766 fi
35767 if test -n "$PKG_CONFIG"; then
35768         _pkg_min_version=0.9.0
35769         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35770 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
35771         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35772                 { echo "$as_me:$LINENO: result: yes" >&5
35773 echo "${ECHO_T}yes" >&6; }
35774         else
35775                 { echo "$as_me:$LINENO: result: no" >&5
35776 echo "${ECHO_T}no" >&6; }
35777                 PKG_CONFIG=""
35778         fi
35779
35780 fi 6> /dev/null
35781
35782 pkg_failed=no
35783 { echo "$as_me:$LINENO: checking for SM" >&5
35784 echo $ECHO_N "checking for SM... $ECHO_C" >&6; }
35785
35786 if test -n "$PKG_CONFIG"; then
35787     if test -n "$SM_CFLAGS"; then
35788         pkg_cv_SM_CFLAGS="$SM_CFLAGS"
35789     else
35790         if test -n "$PKG_CONFIG" && \
35791     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35792   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35793   ac_status=$?
35794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795   (exit $ac_status); }; then
35796   pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
35797 else
35798   pkg_failed=yes
35799 fi
35800     fi
35801 else
35802         pkg_failed=untried
35803 fi
35804 if test -n "$PKG_CONFIG"; then
35805     if test -n "$SM_LIBS"; then
35806         pkg_cv_SM_LIBS="$SM_LIBS"
35807     else
35808         if test -n "$PKG_CONFIG" && \
35809     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35810   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35811   ac_status=$?
35812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813   (exit $ac_status); }; then
35814   pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
35815 else
35816   pkg_failed=yes
35817 fi
35818     fi
35819 else
35820         pkg_failed=untried
35821 fi
35822
35823
35824
35825 if test $pkg_failed = yes; then
35826
35827 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35828         _pkg_short_errors_supported=yes
35829 else
35830         _pkg_short_errors_supported=no
35831 fi
35832         if test $_pkg_short_errors_supported = yes; then
35833                 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
35834         else
35835                 SM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
35836         fi
35837         # Put the nasty error message in config.log where it belongs
35838         echo "$SM_PKG_ERRORS" >&5
35839
35840
35841       if test "x$ac_find_libraries" = "x"; then
35842                 if test "xSmcOpenConnection" != "x"; then
35843           { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
35844 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
35845 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
35846   echo $ECHO_N "(cached) $ECHO_C" >&6
35847 else
35848   ac_check_lib_save_LIBS=$LIBS
35849 LIBS="-lSM  $LIBS"
35850 cat >conftest.$ac_ext <<_ACEOF
35851 /* confdefs.h.  */
35852 _ACEOF
35853 cat confdefs.h >>conftest.$ac_ext
35854 cat >>conftest.$ac_ext <<_ACEOF
35855 /* end confdefs.h.  */
35856
35857 /* Override any GCC internal prototype to avoid an error.
35858    Use char because int might match the return type of a GCC
35859    builtin and then its argument prototype would still apply.  */
35860 #ifdef __cplusplus
35861 extern "C"
35862 #endif
35863 char SmcOpenConnection ();
35864 int
35865 main ()
35866 {
35867 return SmcOpenConnection ();
35868   ;
35869   return 0;
35870 }
35871 _ACEOF
35872 rm -f conftest.$ac_objext conftest$ac_exeext
35873 if { (ac_try="$ac_link"
35874 case "(($ac_try" in
35875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35876   *) ac_try_echo=$ac_try;;
35877 esac
35878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35879   (eval "$ac_link") 2>conftest.er1
35880   ac_status=$?
35881   grep -v '^ *+' conftest.er1 >conftest.err
35882   rm -f conftest.er1
35883   cat conftest.err >&5
35884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885   (exit $ac_status); } && {
35886          test -z "$ac_c_werror_flag" ||
35887          test ! -s conftest.err
35888        } && test -s conftest$ac_exeext &&
35889        $as_test_x conftest$ac_exeext; then
35890   ac_cv_lib_SM_SmcOpenConnection=yes
35891 else
35892   echo "$as_me: failed program was:" >&5
35893 sed 's/^/| /' conftest.$ac_ext >&5
35894
35895         ac_cv_lib_SM_SmcOpenConnection=no
35896 fi
35897
35898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35899       conftest$ac_exeext conftest.$ac_ext
35900 LIBS=$ac_check_lib_save_LIBS
35901 fi
35902 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
35903 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
35904 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
35905   ac_find_libraries="std"
35906 fi
35907
35908         fi
35909       fi
35910
35911       if test "x$ac_find_libraries" = "x"; then
35912                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35913 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35914
35915   ac_find_libraries=
35916   for ac_dir in $SEARCH_LIB
35917   do
35918     for ac_extension in a so sl dylib dll.a; do
35919       if test -f "$ac_dir/libSM.$ac_extension"; then
35920         ac_find_libraries=$ac_dir
35921         break 2
35922       fi
35923     done
35924   done
35925
35926         if test "x$ac_find_libraries" != "x"; then
35927           { echo "$as_me:$LINENO: result: yes" >&5
35928 echo "${ECHO_T}yes" >&6; }
35929         else
35930           { echo "$as_me:$LINENO: result: no" >&5
35931 echo "${ECHO_T}no" >&6; }
35932         fi
35933       fi
35934
35935 elif test $pkg_failed = untried; then
35936
35937       if test "x$ac_find_libraries" = "x"; then
35938                 if test "xSmcOpenConnection" != "x"; then
35939           { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
35940 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
35941 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
35942   echo $ECHO_N "(cached) $ECHO_C" >&6
35943 else
35944   ac_check_lib_save_LIBS=$LIBS
35945 LIBS="-lSM  $LIBS"
35946 cat >conftest.$ac_ext <<_ACEOF
35947 /* confdefs.h.  */
35948 _ACEOF
35949 cat confdefs.h >>conftest.$ac_ext
35950 cat >>conftest.$ac_ext <<_ACEOF
35951 /* end confdefs.h.  */
35952
35953 /* Override any GCC internal prototype to avoid an error.
35954    Use char because int might match the return type of a GCC
35955    builtin and then its argument prototype would still apply.  */
35956 #ifdef __cplusplus
35957 extern "C"
35958 #endif
35959 char SmcOpenConnection ();
35960 int
35961 main ()
35962 {
35963 return SmcOpenConnection ();
35964   ;
35965   return 0;
35966 }
35967 _ACEOF
35968 rm -f conftest.$ac_objext conftest$ac_exeext
35969 if { (ac_try="$ac_link"
35970 case "(($ac_try" in
35971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35972   *) ac_try_echo=$ac_try;;
35973 esac
35974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35975   (eval "$ac_link") 2>conftest.er1
35976   ac_status=$?
35977   grep -v '^ *+' conftest.er1 >conftest.err
35978   rm -f conftest.er1
35979   cat conftest.err >&5
35980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981   (exit $ac_status); } && {
35982          test -z "$ac_c_werror_flag" ||
35983          test ! -s conftest.err
35984        } && test -s conftest$ac_exeext &&
35985        $as_test_x conftest$ac_exeext; then
35986   ac_cv_lib_SM_SmcOpenConnection=yes
35987 else
35988   echo "$as_me: failed program was:" >&5
35989 sed 's/^/| /' conftest.$ac_ext >&5
35990
35991         ac_cv_lib_SM_SmcOpenConnection=no
35992 fi
35993
35994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35995       conftest$ac_exeext conftest.$ac_ext
35996 LIBS=$ac_check_lib_save_LIBS
35997 fi
35998 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
35999 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
36000 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
36001   ac_find_libraries="std"
36002 fi
36003
36004         fi
36005       fi
36006
36007       if test "x$ac_find_libraries" = "x"; then
36008                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36009 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36010
36011   ac_find_libraries=
36012   for ac_dir in $SEARCH_LIB
36013   do
36014     for ac_extension in a so sl dylib dll.a; do
36015       if test -f "$ac_dir/libSM.$ac_extension"; then
36016         ac_find_libraries=$ac_dir
36017         break 2
36018       fi
36019     done
36020   done
36021
36022         if test "x$ac_find_libraries" != "x"; then
36023           { echo "$as_me:$LINENO: result: yes" >&5
36024 echo "${ECHO_T}yes" >&6; }
36025         else
36026           { echo "$as_me:$LINENO: result: no" >&5
36027 echo "${ECHO_T}no" >&6; }
36028         fi
36029       fi
36030
36031 else
36032         SM_CFLAGS=$pkg_cv_SM_CFLAGS
36033         SM_LIBS=$pkg_cv_SM_LIBS
36034         { echo "$as_me:$LINENO: result: yes" >&5
36035 echo "${ECHO_T}yes" >&6; }
36036
36037             ac_find_libraries="std"
36038
36039                                                 eval ac_find_cflags=\$SM_CFLAGS
36040       eval fl_libs=\$SM_LIBS
36041
36042                   for fl_path in $fl_libs
36043       do
36044         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
36045                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
36046         fi
36047       done
36048
36049 fi
36050
36051         if test "$ac_find_libraries" != "" ; then
36052             if test "$ac_find_libraries" != "std" ; then
36053
36054     if test "$ac_find_libraries" = "default location"; then
36055     ac_path_to_link=""
36056   else
36057     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36058     result=$?
36059     if test $result = 0; then
36060       ac_path_to_link=""
36061     else
36062       ac_path_to_link=" -L$ac_find_libraries"
36063     fi
36064   fi
36065
36066               if test "$ac_path_to_link" != " -L/usr/lib" ; then
36067                 LDFLAGS="$LDFLAGS $ac_path_to_link"
36068               fi
36069             fi
36070             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
36071         else
36072             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
36073 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
36074             wxUSE_DETECT_SM="no"
36075         fi
36076     else
36077         wxUSE_DETECT_SM="no"
36078     fi
36079 fi
36080
36081
36082
36083 USE_OPENGL=0
36084 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
36085
36086
36087     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
36088         OPENGL_LIBS="-framework OpenGL -framework AGL"
36089     elif test "$wxUSE_MSW" = 1; then
36090         OPENGL_LIBS="-lopengl32 -lglu32"
36091     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
36092
36093                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
36094 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
36095
36096 ac_find_includes=
36097 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
36098   do
36099     if test -f "$ac_dir/GL/gl.h"; then
36100       ac_find_includes=$ac_dir
36101       break
36102     fi
36103   done
36104
36105         if test "$ac_find_includes" != "" ; then
36106             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
36107 echo "${ECHO_T}found in $ac_find_includes" >&6; }
36108
36109     if test "x$ac_find_includes" = "x/usr/include"; then
36110     ac_path_to_include=""
36111   else
36112     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
36113     result=$?
36114     if test $result = 0; then
36115       ac_path_to_include=""
36116     else
36117       ac_path_to_include=" -I$ac_find_includes"
36118     fi
36119   fi
36120
36121             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
36122         else
36123             { echo "$as_me:$LINENO: result: not found" >&5
36124 echo "${ECHO_T}not found" >&6; }
36125         fi
36126
36127         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
36128 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
36129 if test "${ac_cv_header_GL_gl_h+set}" = set; then
36130   echo $ECHO_N "(cached) $ECHO_C" >&6
36131 else
36132   cat >conftest.$ac_ext <<_ACEOF
36133 /* confdefs.h.  */
36134 _ACEOF
36135 cat confdefs.h >>conftest.$ac_ext
36136 cat >>conftest.$ac_ext <<_ACEOF
36137 /* end confdefs.h.  */
36138
36139
36140 #include <GL/gl.h>
36141 _ACEOF
36142 rm -f conftest.$ac_objext
36143 if { (ac_try="$ac_compile"
36144 case "(($ac_try" in
36145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36146   *) ac_try_echo=$ac_try;;
36147 esac
36148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36149   (eval "$ac_compile") 2>conftest.er1
36150   ac_status=$?
36151   grep -v '^ *+' conftest.er1 >conftest.err
36152   rm -f conftest.er1
36153   cat conftest.err >&5
36154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36155   (exit $ac_status); } && {
36156          test -z "$ac_c_werror_flag" ||
36157          test ! -s conftest.err
36158        } && test -s conftest.$ac_objext; then
36159   ac_cv_header_GL_gl_h=yes
36160 else
36161   echo "$as_me: failed program was:" >&5
36162 sed 's/^/| /' conftest.$ac_ext >&5
36163
36164         ac_cv_header_GL_gl_h=no
36165 fi
36166
36167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36168 fi
36169 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
36170 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
36171 if test $ac_cv_header_GL_gl_h = yes; then
36172
36173             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
36174 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
36175 if test "${ac_cv_header_GL_glu_h+set}" = set; then
36176   echo $ECHO_N "(cached) $ECHO_C" >&6
36177 else
36178   cat >conftest.$ac_ext <<_ACEOF
36179 /* confdefs.h.  */
36180 _ACEOF
36181 cat confdefs.h >>conftest.$ac_ext
36182 cat >>conftest.$ac_ext <<_ACEOF
36183 /* end confdefs.h.  */
36184
36185
36186 #include <GL/glu.h>
36187 _ACEOF
36188 rm -f conftest.$ac_objext
36189 if { (ac_try="$ac_compile"
36190 case "(($ac_try" in
36191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36192   *) ac_try_echo=$ac_try;;
36193 esac
36194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36195   (eval "$ac_compile") 2>conftest.er1
36196   ac_status=$?
36197   grep -v '^ *+' conftest.er1 >conftest.err
36198   rm -f conftest.er1
36199   cat conftest.err >&5
36200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36201   (exit $ac_status); } && {
36202          test -z "$ac_c_werror_flag" ||
36203          test ! -s conftest.err
36204        } && test -s conftest.$ac_objext; then
36205   ac_cv_header_GL_glu_h=yes
36206 else
36207   echo "$as_me: failed program was:" >&5
36208 sed 's/^/| /' conftest.$ac_ext >&5
36209
36210         ac_cv_header_GL_glu_h=no
36211 fi
36212
36213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36214 fi
36215 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
36216 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
36217 if test $ac_cv_header_GL_glu_h = yes; then
36218
36219                 found_gl=0
36220
36221
36222   ac_find_libraries=
36223
36224     fl_pkgname=`echo "GL" | tr [:upper:] [:lower:]`
36225
36226
36227 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
36228         if test -n "$ac_tool_prefix"; then
36229   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
36230 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
36231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36233 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36234   echo $ECHO_N "(cached) $ECHO_C" >&6
36235 else
36236   case $PKG_CONFIG in
36237   [\\/]* | ?:[\\/]*)
36238   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36239   ;;
36240   *)
36241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36242 for as_dir in $PATH
36243 do
36244   IFS=$as_save_IFS
36245   test -z "$as_dir" && as_dir=.
36246   for ac_exec_ext in '' $ac_executable_extensions; do
36247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36248     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36250     break 2
36251   fi
36252 done
36253 done
36254 IFS=$as_save_IFS
36255
36256   ;;
36257 esac
36258 fi
36259 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36260 if test -n "$PKG_CONFIG"; then
36261   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36262 echo "${ECHO_T}$PKG_CONFIG" >&6; }
36263 else
36264   { echo "$as_me:$LINENO: result: no" >&5
36265 echo "${ECHO_T}no" >&6; }
36266 fi
36267
36268
36269 fi
36270 if test -z "$ac_cv_path_PKG_CONFIG"; then
36271   ac_pt_PKG_CONFIG=$PKG_CONFIG
36272   # Extract the first word of "pkg-config", so it can be a program name with args.
36273 set dummy pkg-config; ac_word=$2
36274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36276 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
36277   echo $ECHO_N "(cached) $ECHO_C" >&6
36278 else
36279   case $ac_pt_PKG_CONFIG in
36280   [\\/]* | ?:[\\/]*)
36281   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
36282   ;;
36283   *)
36284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36285 for as_dir in $PATH
36286 do
36287   IFS=$as_save_IFS
36288   test -z "$as_dir" && as_dir=.
36289   for ac_exec_ext in '' $ac_executable_extensions; do
36290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36291     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36293     break 2
36294   fi
36295 done
36296 done
36297 IFS=$as_save_IFS
36298
36299   ;;
36300 esac
36301 fi
36302 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
36303 if test -n "$ac_pt_PKG_CONFIG"; then
36304   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
36305 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
36306 else
36307   { echo "$as_me:$LINENO: result: no" >&5
36308 echo "${ECHO_T}no" >&6; }
36309 fi
36310
36311   if test "x$ac_pt_PKG_CONFIG" = x; then
36312     PKG_CONFIG=""
36313   else
36314     case $cross_compiling:$ac_tool_warned in
36315 yes:)
36316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36317 whose name does not start with the host triplet.  If you think this
36318 configuration is useful to you, please write to autoconf@gnu.org." >&5
36319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36320 whose name does not start with the host triplet.  If you think this
36321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36322 ac_tool_warned=yes ;;
36323 esac
36324     PKG_CONFIG=$ac_pt_PKG_CONFIG
36325   fi
36326 else
36327   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
36328 fi
36329
36330 fi
36331 if test -n "$PKG_CONFIG"; then
36332         _pkg_min_version=0.9.0
36333         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
36334 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
36335         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
36336                 { echo "$as_me:$LINENO: result: yes" >&5
36337 echo "${ECHO_T}yes" >&6; }
36338         else
36339                 { echo "$as_me:$LINENO: result: no" >&5
36340 echo "${ECHO_T}no" >&6; }
36341                 PKG_CONFIG=""
36342         fi
36343
36344 fi 6> /dev/null
36345
36346 pkg_failed=no
36347 { echo "$as_me:$LINENO: checking for GL" >&5
36348 echo $ECHO_N "checking for GL... $ECHO_C" >&6; }
36349
36350 if test -n "$PKG_CONFIG"; then
36351     if test -n "$GL_CFLAGS"; then
36352         pkg_cv_GL_CFLAGS="$GL_CFLAGS"
36353     else
36354         if test -n "$PKG_CONFIG" && \
36355     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36356   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36357   ac_status=$?
36358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359   (exit $ac_status); }; then
36360   pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
36361 else
36362   pkg_failed=yes
36363 fi
36364     fi
36365 else
36366         pkg_failed=untried
36367 fi
36368 if test -n "$PKG_CONFIG"; then
36369     if test -n "$GL_LIBS"; then
36370         pkg_cv_GL_LIBS="$GL_LIBS"
36371     else
36372         if test -n "$PKG_CONFIG" && \
36373     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36374   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36375   ac_status=$?
36376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36377   (exit $ac_status); }; then
36378   pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
36379 else
36380   pkg_failed=yes
36381 fi
36382     fi
36383 else
36384         pkg_failed=untried
36385 fi
36386
36387
36388
36389 if test $pkg_failed = yes; then
36390
36391 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36392         _pkg_short_errors_supported=yes
36393 else
36394         _pkg_short_errors_supported=no
36395 fi
36396         if test $_pkg_short_errors_supported = yes; then
36397                 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
36398         else
36399                 GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
36400         fi
36401         # Put the nasty error message in config.log where it belongs
36402         echo "$GL_PKG_ERRORS" >&5
36403
36404
36405       if test "x$ac_find_libraries" = "x"; then
36406                 if test "xglBegin" != "x"; then
36407           { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
36408 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
36409 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
36410   echo $ECHO_N "(cached) $ECHO_C" >&6
36411 else
36412   ac_check_lib_save_LIBS=$LIBS
36413 LIBS="-lGL  $LIBS"
36414 cat >conftest.$ac_ext <<_ACEOF
36415 /* confdefs.h.  */
36416 _ACEOF
36417 cat confdefs.h >>conftest.$ac_ext
36418 cat >>conftest.$ac_ext <<_ACEOF
36419 /* end confdefs.h.  */
36420
36421 /* Override any GCC internal prototype to avoid an error.
36422    Use char because int might match the return type of a GCC
36423    builtin and then its argument prototype would still apply.  */
36424 #ifdef __cplusplus
36425 extern "C"
36426 #endif
36427 char glBegin ();
36428 int
36429 main ()
36430 {
36431 return glBegin ();
36432   ;
36433   return 0;
36434 }
36435 _ACEOF
36436 rm -f conftest.$ac_objext conftest$ac_exeext
36437 if { (ac_try="$ac_link"
36438 case "(($ac_try" in
36439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36440   *) ac_try_echo=$ac_try;;
36441 esac
36442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36443   (eval "$ac_link") 2>conftest.er1
36444   ac_status=$?
36445   grep -v '^ *+' conftest.er1 >conftest.err
36446   rm -f conftest.er1
36447   cat conftest.err >&5
36448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36449   (exit $ac_status); } && {
36450          test -z "$ac_c_werror_flag" ||
36451          test ! -s conftest.err
36452        } && test -s conftest$ac_exeext &&
36453        $as_test_x conftest$ac_exeext; then
36454   ac_cv_lib_GL_glBegin=yes
36455 else
36456   echo "$as_me: failed program was:" >&5
36457 sed 's/^/| /' conftest.$ac_ext >&5
36458
36459         ac_cv_lib_GL_glBegin=no
36460 fi
36461
36462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36463       conftest$ac_exeext conftest.$ac_ext
36464 LIBS=$ac_check_lib_save_LIBS
36465 fi
36466 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
36467 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
36468 if test $ac_cv_lib_GL_glBegin = yes; then
36469   ac_find_libraries="std"
36470 fi
36471
36472         fi
36473       fi
36474
36475       if test "x$ac_find_libraries" = "x"; then
36476                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36477 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36478
36479   ac_find_libraries=
36480   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib
36481   do
36482     for ac_extension in a so sl dylib dll.a; do
36483       if test -f "$ac_dir/libGL.$ac_extension"; then
36484         ac_find_libraries=$ac_dir
36485         break 2
36486       fi
36487     done
36488   done
36489
36490         if test "x$ac_find_libraries" != "x"; then
36491           { echo "$as_me:$LINENO: result: yes" >&5
36492 echo "${ECHO_T}yes" >&6; }
36493         else
36494           { echo "$as_me:$LINENO: result: no" >&5
36495 echo "${ECHO_T}no" >&6; }
36496         fi
36497       fi
36498
36499 elif test $pkg_failed = untried; then
36500
36501       if test "x$ac_find_libraries" = "x"; then
36502                 if test "xglBegin" != "x"; then
36503           { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
36504 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
36505 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
36506   echo $ECHO_N "(cached) $ECHO_C" >&6
36507 else
36508   ac_check_lib_save_LIBS=$LIBS
36509 LIBS="-lGL  $LIBS"
36510 cat >conftest.$ac_ext <<_ACEOF
36511 /* confdefs.h.  */
36512 _ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h.  */
36516
36517 /* Override any GCC internal prototype to avoid an error.
36518    Use char because int might match the return type of a GCC
36519    builtin and then its argument prototype would still apply.  */
36520 #ifdef __cplusplus
36521 extern "C"
36522 #endif
36523 char glBegin ();
36524 int
36525 main ()
36526 {
36527 return glBegin ();
36528   ;
36529   return 0;
36530 }
36531 _ACEOF
36532 rm -f conftest.$ac_objext conftest$ac_exeext
36533 if { (ac_try="$ac_link"
36534 case "(($ac_try" in
36535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36536   *) ac_try_echo=$ac_try;;
36537 esac
36538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36539   (eval "$ac_link") 2>conftest.er1
36540   ac_status=$?
36541   grep -v '^ *+' conftest.er1 >conftest.err
36542   rm -f conftest.er1
36543   cat conftest.err >&5
36544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545   (exit $ac_status); } && {
36546          test -z "$ac_c_werror_flag" ||
36547          test ! -s conftest.err
36548        } && test -s conftest$ac_exeext &&
36549        $as_test_x conftest$ac_exeext; then
36550   ac_cv_lib_GL_glBegin=yes
36551 else
36552   echo "$as_me: failed program was:" >&5
36553 sed 's/^/| /' conftest.$ac_ext >&5
36554
36555         ac_cv_lib_GL_glBegin=no
36556 fi
36557
36558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36559       conftest$ac_exeext conftest.$ac_ext
36560 LIBS=$ac_check_lib_save_LIBS
36561 fi
36562 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
36563 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
36564 if test $ac_cv_lib_GL_glBegin = yes; then
36565   ac_find_libraries="std"
36566 fi
36567
36568         fi
36569       fi
36570
36571       if test "x$ac_find_libraries" = "x"; then
36572                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36573 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36574
36575   ac_find_libraries=
36576   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib
36577   do
36578     for ac_extension in a so sl dylib dll.a; do
36579       if test -f "$ac_dir/libGL.$ac_extension"; then
36580         ac_find_libraries=$ac_dir
36581         break 2
36582       fi
36583     done
36584   done
36585
36586         if test "x$ac_find_libraries" != "x"; then
36587           { echo "$as_me:$LINENO: result: yes" >&5
36588 echo "${ECHO_T}yes" >&6; }
36589         else
36590           { echo "$as_me:$LINENO: result: no" >&5
36591 echo "${ECHO_T}no" >&6; }
36592         fi
36593       fi
36594
36595 else
36596         GL_CFLAGS=$pkg_cv_GL_CFLAGS
36597         GL_LIBS=$pkg_cv_GL_LIBS
36598         { echo "$as_me:$LINENO: result: yes" >&5
36599 echo "${ECHO_T}yes" >&6; }
36600
36601             ac_find_libraries="std"
36602
36603                                                 eval ac_find_cflags=\$GL_CFLAGS
36604       eval fl_libs=\$GL_LIBS
36605
36606                   for fl_path in $fl_libs
36607       do
36608         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
36609                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
36610         fi
36611       done
36612
36613 fi
36614
36615                 if test "$ac_find_libraries" != "" ; then
36616                     if test "$ac_find_libraries" != "std" ; then
36617
36618     if test "$ac_find_libraries" = "default location"; then
36619     ac_path_to_link=""
36620   else
36621     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36622     result=$?
36623     if test $result = 0; then
36624       ac_path_to_link=""
36625     else
36626       ac_path_to_link=" -L$ac_find_libraries"
36627     fi
36628   fi
36629
36630                       if test "$ac_path_to_link" != " -L/usr/lib" ; then
36631                         LDFLAGS_GL="$ac_path_to_link"
36632                       fi
36633                     fi
36634
36635
36636   ac_find_libraries=
36637
36638     fl_pkgname=`echo "GLU" | tr [:upper:] [:lower:]`
36639
36640
36641 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
36642         if test -n "$ac_tool_prefix"; then
36643   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
36644 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
36645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36647 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36648   echo $ECHO_N "(cached) $ECHO_C" >&6
36649 else
36650   case $PKG_CONFIG in
36651   [\\/]* | ?:[\\/]*)
36652   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36653   ;;
36654   *)
36655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36656 for as_dir in $PATH
36657 do
36658   IFS=$as_save_IFS
36659   test -z "$as_dir" && as_dir=.
36660   for ac_exec_ext in '' $ac_executable_extensions; do
36661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36662     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36664     break 2
36665   fi
36666 done
36667 done
36668 IFS=$as_save_IFS
36669
36670   ;;
36671 esac
36672 fi
36673 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36674 if test -n "$PKG_CONFIG"; then
36675   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36676 echo "${ECHO_T}$PKG_CONFIG" >&6; }
36677 else
36678   { echo "$as_me:$LINENO: result: no" >&5
36679 echo "${ECHO_T}no" >&6; }
36680 fi
36681
36682
36683 fi
36684 if test -z "$ac_cv_path_PKG_CONFIG"; then
36685   ac_pt_PKG_CONFIG=$PKG_CONFIG
36686   # Extract the first word of "pkg-config", so it can be a program name with args.
36687 set dummy pkg-config; ac_word=$2
36688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36690 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
36691   echo $ECHO_N "(cached) $ECHO_C" >&6
36692 else
36693   case $ac_pt_PKG_CONFIG in
36694   [\\/]* | ?:[\\/]*)
36695   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
36696   ;;
36697   *)
36698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36699 for as_dir in $PATH
36700 do
36701   IFS=$as_save_IFS
36702   test -z "$as_dir" && as_dir=.
36703   for ac_exec_ext in '' $ac_executable_extensions; do
36704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36705     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36707     break 2
36708   fi
36709 done
36710 done
36711 IFS=$as_save_IFS
36712
36713   ;;
36714 esac
36715 fi
36716 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
36717 if test -n "$ac_pt_PKG_CONFIG"; then
36718   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
36719 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
36720 else
36721   { echo "$as_me:$LINENO: result: no" >&5
36722 echo "${ECHO_T}no" >&6; }
36723 fi
36724
36725   if test "x$ac_pt_PKG_CONFIG" = x; then
36726     PKG_CONFIG=""
36727   else
36728     case $cross_compiling:$ac_tool_warned in
36729 yes:)
36730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36731 whose name does not start with the host triplet.  If you think this
36732 configuration is useful to you, please write to autoconf@gnu.org." >&5
36733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36734 whose name does not start with the host triplet.  If you think this
36735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36736 ac_tool_warned=yes ;;
36737 esac
36738     PKG_CONFIG=$ac_pt_PKG_CONFIG
36739   fi
36740 else
36741   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
36742 fi
36743
36744 fi
36745 if test -n "$PKG_CONFIG"; then
36746         _pkg_min_version=0.9.0
36747         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
36748 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
36749         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
36750                 { echo "$as_me:$LINENO: result: yes" >&5
36751 echo "${ECHO_T}yes" >&6; }
36752         else
36753                 { echo "$as_me:$LINENO: result: no" >&5
36754 echo "${ECHO_T}no" >&6; }
36755                 PKG_CONFIG=""
36756         fi
36757
36758 fi 6> /dev/null
36759
36760 pkg_failed=no
36761 { echo "$as_me:$LINENO: checking for GLU" >&5
36762 echo $ECHO_N "checking for GLU... $ECHO_C" >&6; }
36763
36764 if test -n "$PKG_CONFIG"; then
36765     if test -n "$GLU_CFLAGS"; then
36766         pkg_cv_GLU_CFLAGS="$GLU_CFLAGS"
36767     else
36768         if test -n "$PKG_CONFIG" && \
36769     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36770   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36771   ac_status=$?
36772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773   (exit $ac_status); }; then
36774   pkg_cv_GLU_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
36775 else
36776   pkg_failed=yes
36777 fi
36778     fi
36779 else
36780         pkg_failed=untried
36781 fi
36782 if test -n "$PKG_CONFIG"; then
36783     if test -n "$GLU_LIBS"; then
36784         pkg_cv_GLU_LIBS="$GLU_LIBS"
36785     else
36786         if test -n "$PKG_CONFIG" && \
36787     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36788   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36789   ac_status=$?
36790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791   (exit $ac_status); }; then
36792   pkg_cv_GLU_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
36793 else
36794   pkg_failed=yes
36795 fi
36796     fi
36797 else
36798         pkg_failed=untried
36799 fi
36800
36801
36802
36803 if test $pkg_failed = yes; then
36804
36805 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36806         _pkg_short_errors_supported=yes
36807 else
36808         _pkg_short_errors_supported=no
36809 fi
36810         if test $_pkg_short_errors_supported = yes; then
36811                 GLU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
36812         else
36813                 GLU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
36814         fi
36815         # Put the nasty error message in config.log where it belongs
36816         echo "$GLU_PKG_ERRORS" >&5
36817
36818
36819       if test "x$ac_find_libraries" = "x"; then
36820                 if test "xgluBeginCurve" != "x"; then
36821           { echo "$as_me:$LINENO: checking for gluBeginCurve in -lGLU" >&5
36822 echo $ECHO_N "checking for gluBeginCurve in -lGLU... $ECHO_C" >&6; }
36823 if test "${ac_cv_lib_GLU_gluBeginCurve+set}" = set; then
36824   echo $ECHO_N "(cached) $ECHO_C" >&6
36825 else
36826   ac_check_lib_save_LIBS=$LIBS
36827 LIBS="-lGLU  $LIBS"
36828 cat >conftest.$ac_ext <<_ACEOF
36829 /* confdefs.h.  */
36830 _ACEOF
36831 cat confdefs.h >>conftest.$ac_ext
36832 cat >>conftest.$ac_ext <<_ACEOF
36833 /* end confdefs.h.  */
36834
36835 /* Override any GCC internal prototype to avoid an error.
36836    Use char because int might match the return type of a GCC
36837    builtin and then its argument prototype would still apply.  */
36838 #ifdef __cplusplus
36839 extern "C"
36840 #endif
36841 char gluBeginCurve ();
36842 int
36843 main ()
36844 {
36845 return gluBeginCurve ();
36846   ;
36847   return 0;
36848 }
36849 _ACEOF
36850 rm -f conftest.$ac_objext conftest$ac_exeext
36851 if { (ac_try="$ac_link"
36852 case "(($ac_try" in
36853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36854   *) ac_try_echo=$ac_try;;
36855 esac
36856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36857   (eval "$ac_link") 2>conftest.er1
36858   ac_status=$?
36859   grep -v '^ *+' conftest.er1 >conftest.err
36860   rm -f conftest.er1
36861   cat conftest.err >&5
36862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36863   (exit $ac_status); } && {
36864          test -z "$ac_c_werror_flag" ||
36865          test ! -s conftest.err
36866        } && test -s conftest$ac_exeext &&
36867        $as_test_x conftest$ac_exeext; then
36868   ac_cv_lib_GLU_gluBeginCurve=yes
36869 else
36870   echo "$as_me: failed program was:" >&5
36871 sed 's/^/| /' conftest.$ac_ext >&5
36872
36873         ac_cv_lib_GLU_gluBeginCurve=no
36874 fi
36875
36876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36877       conftest$ac_exeext conftest.$ac_ext
36878 LIBS=$ac_check_lib_save_LIBS
36879 fi
36880 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
36881 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginCurve" >&6; }
36882 if test $ac_cv_lib_GLU_gluBeginCurve = yes; then
36883   ac_find_libraries="std"
36884 fi
36885
36886         fi
36887       fi
36888
36889       if test "x$ac_find_libraries" = "x"; then
36890                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36891 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36892
36893   ac_find_libraries=
36894   for ac_dir in $SEARCH_LIB
36895   do
36896     for ac_extension in a so sl dylib dll.a; do
36897       if test -f "$ac_dir/libGLU.$ac_extension"; then
36898         ac_find_libraries=$ac_dir
36899         break 2
36900       fi
36901     done
36902   done
36903
36904         if test "x$ac_find_libraries" != "x"; then
36905           { echo "$as_me:$LINENO: result: yes" >&5
36906 echo "${ECHO_T}yes" >&6; }
36907         else
36908           { echo "$as_me:$LINENO: result: no" >&5
36909 echo "${ECHO_T}no" >&6; }
36910         fi
36911       fi
36912
36913 elif test $pkg_failed = untried; then
36914
36915       if test "x$ac_find_libraries" = "x"; then
36916                 if test "xgluBeginCurve" != "x"; then
36917           { echo "$as_me:$LINENO: checking for gluBeginCurve in -lGLU" >&5
36918 echo $ECHO_N "checking for gluBeginCurve in -lGLU... $ECHO_C" >&6; }
36919 if test "${ac_cv_lib_GLU_gluBeginCurve+set}" = set; then
36920   echo $ECHO_N "(cached) $ECHO_C" >&6
36921 else
36922   ac_check_lib_save_LIBS=$LIBS
36923 LIBS="-lGLU  $LIBS"
36924 cat >conftest.$ac_ext <<_ACEOF
36925 /* confdefs.h.  */
36926 _ACEOF
36927 cat confdefs.h >>conftest.$ac_ext
36928 cat >>conftest.$ac_ext <<_ACEOF
36929 /* end confdefs.h.  */
36930
36931 /* Override any GCC internal prototype to avoid an error.
36932    Use char because int might match the return type of a GCC
36933    builtin and then its argument prototype would still apply.  */
36934 #ifdef __cplusplus
36935 extern "C"
36936 #endif
36937 char gluBeginCurve ();
36938 int
36939 main ()
36940 {
36941 return gluBeginCurve ();
36942   ;
36943   return 0;
36944 }
36945 _ACEOF
36946 rm -f conftest.$ac_objext conftest$ac_exeext
36947 if { (ac_try="$ac_link"
36948 case "(($ac_try" in
36949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36950   *) ac_try_echo=$ac_try;;
36951 esac
36952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36953   (eval "$ac_link") 2>conftest.er1
36954   ac_status=$?
36955   grep -v '^ *+' conftest.er1 >conftest.err
36956   rm -f conftest.er1
36957   cat conftest.err >&5
36958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959   (exit $ac_status); } && {
36960          test -z "$ac_c_werror_flag" ||
36961          test ! -s conftest.err
36962        } && test -s conftest$ac_exeext &&
36963        $as_test_x conftest$ac_exeext; then
36964   ac_cv_lib_GLU_gluBeginCurve=yes
36965 else
36966   echo "$as_me: failed program was:" >&5
36967 sed 's/^/| /' conftest.$ac_ext >&5
36968
36969         ac_cv_lib_GLU_gluBeginCurve=no
36970 fi
36971
36972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36973       conftest$ac_exeext conftest.$ac_ext
36974 LIBS=$ac_check_lib_save_LIBS
36975 fi
36976 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
36977 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginCurve" >&6; }
36978 if test $ac_cv_lib_GLU_gluBeginCurve = yes; then
36979   ac_find_libraries="std"
36980 fi
36981
36982         fi
36983       fi
36984
36985       if test "x$ac_find_libraries" = "x"; then
36986                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36987 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36988
36989   ac_find_libraries=
36990   for ac_dir in $SEARCH_LIB
36991   do
36992     for ac_extension in a so sl dylib dll.a; do
36993       if test -f "$ac_dir/libGLU.$ac_extension"; then
36994         ac_find_libraries=$ac_dir
36995         break 2
36996       fi
36997     done
36998   done
36999
37000         if test "x$ac_find_libraries" != "x"; then
37001           { echo "$as_me:$LINENO: result: yes" >&5
37002 echo "${ECHO_T}yes" >&6; }
37003         else
37004           { echo "$as_me:$LINENO: result: no" >&5
37005 echo "${ECHO_T}no" >&6; }
37006         fi
37007       fi
37008
37009 else
37010         GLU_CFLAGS=$pkg_cv_GLU_CFLAGS
37011         GLU_LIBS=$pkg_cv_GLU_LIBS
37012         { echo "$as_me:$LINENO: result: yes" >&5
37013 echo "${ECHO_T}yes" >&6; }
37014
37015             ac_find_libraries="std"
37016
37017                                                 eval ac_find_cflags=\$GLU_CFLAGS
37018       eval fl_libs=\$GLU_LIBS
37019
37020                   for fl_path in $fl_libs
37021       do
37022         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
37023                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
37024         fi
37025       done
37026
37027 fi
37028
37029                     if test "$ac_find_libraries" != "" ; then
37030                       if test "$ac_find_libraries" != "std" ; then
37031
37032     if test "$ac_find_libraries" = "default location"; then
37033     ac_path_to_link=""
37034   else
37035     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
37036     result=$?
37037     if test $result = 0; then
37038       ac_path_to_link=""
37039     else
37040       ac_path_to_link=" -L$ac_find_libraries"
37041     fi
37042   fi
37043
37044                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
37045                                 "$ac_path_to_link" != "$LDFLAGS_GL" ; then
37046                           LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
37047                         fi
37048                       fi
37049
37050                         found_gl=1
37051                         OPENGL_LIBS="-lGL -lGLU"
37052                     fi
37053                 fi
37054
37055                 if test "$found_gl" != 1; then
37056
37057   ac_find_libraries=
37058
37059     fl_pkgname=`echo "MesaGL" | tr [:upper:] [:lower:]`
37060
37061
37062 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
37063         if test -n "$ac_tool_prefix"; then
37064   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
37065 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37068 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37069   echo $ECHO_N "(cached) $ECHO_C" >&6
37070 else
37071   case $PKG_CONFIG in
37072   [\\/]* | ?:[\\/]*)
37073   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37074   ;;
37075   *)
37076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37077 for as_dir in $PATH
37078 do
37079   IFS=$as_save_IFS
37080   test -z "$as_dir" && as_dir=.
37081   for ac_exec_ext in '' $ac_executable_extensions; do
37082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37083     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37085     break 2
37086   fi
37087 done
37088 done
37089 IFS=$as_save_IFS
37090
37091   ;;
37092 esac
37093 fi
37094 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37095 if test -n "$PKG_CONFIG"; then
37096   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37097 echo "${ECHO_T}$PKG_CONFIG" >&6; }
37098 else
37099   { echo "$as_me:$LINENO: result: no" >&5
37100 echo "${ECHO_T}no" >&6; }
37101 fi
37102
37103
37104 fi
37105 if test -z "$ac_cv_path_PKG_CONFIG"; then
37106   ac_pt_PKG_CONFIG=$PKG_CONFIG
37107   # Extract the first word of "pkg-config", so it can be a program name with args.
37108 set dummy pkg-config; ac_word=$2
37109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37111 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
37112   echo $ECHO_N "(cached) $ECHO_C" >&6
37113 else
37114   case $ac_pt_PKG_CONFIG in
37115   [\\/]* | ?:[\\/]*)
37116   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37117   ;;
37118   *)
37119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37120 for as_dir in $PATH
37121 do
37122   IFS=$as_save_IFS
37123   test -z "$as_dir" && as_dir=.
37124   for ac_exec_ext in '' $ac_executable_extensions; do
37125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37126     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37128     break 2
37129   fi
37130 done
37131 done
37132 IFS=$as_save_IFS
37133
37134   ;;
37135 esac
37136 fi
37137 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
37138 if test -n "$ac_pt_PKG_CONFIG"; then
37139   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
37140 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
37141 else
37142   { echo "$as_me:$LINENO: result: no" >&5
37143 echo "${ECHO_T}no" >&6; }
37144 fi
37145
37146   if test "x$ac_pt_PKG_CONFIG" = x; then
37147     PKG_CONFIG=""
37148   else
37149     case $cross_compiling:$ac_tool_warned in
37150 yes:)
37151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37152 whose name does not start with the host triplet.  If you think this
37153 configuration is useful to you, please write to autoconf@gnu.org." >&5
37154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37155 whose name does not start with the host triplet.  If you think this
37156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37157 ac_tool_warned=yes ;;
37158 esac
37159     PKG_CONFIG=$ac_pt_PKG_CONFIG
37160   fi
37161 else
37162   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
37163 fi
37164
37165 fi
37166 if test -n "$PKG_CONFIG"; then
37167         _pkg_min_version=0.9.0
37168         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
37169 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
37170         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
37171                 { echo "$as_me:$LINENO: result: yes" >&5
37172 echo "${ECHO_T}yes" >&6; }
37173         else
37174                 { echo "$as_me:$LINENO: result: no" >&5
37175 echo "${ECHO_T}no" >&6; }
37176                 PKG_CONFIG=""
37177         fi
37178
37179 fi 6> /dev/null
37180
37181 pkg_failed=no
37182 { echo "$as_me:$LINENO: checking for MesaGL" >&5
37183 echo $ECHO_N "checking for MesaGL... $ECHO_C" >&6; }
37184
37185 if test -n "$PKG_CONFIG"; then
37186     if test -n "$MesaGL_CFLAGS"; then
37187         pkg_cv_MesaGL_CFLAGS="$MesaGL_CFLAGS"
37188     else
37189         if test -n "$PKG_CONFIG" && \
37190     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
37191   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
37192   ac_status=$?
37193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194   (exit $ac_status); }; then
37195   pkg_cv_MesaGL_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
37196 else
37197   pkg_failed=yes
37198 fi
37199     fi
37200 else
37201         pkg_failed=untried
37202 fi
37203 if test -n "$PKG_CONFIG"; then
37204     if test -n "$MesaGL_LIBS"; then
37205         pkg_cv_MesaGL_LIBS="$MesaGL_LIBS"
37206     else
37207         if test -n "$PKG_CONFIG" && \
37208     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
37209   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
37210   ac_status=$?
37211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212   (exit $ac_status); }; then
37213   pkg_cv_MesaGL_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
37214 else
37215   pkg_failed=yes
37216 fi
37217     fi
37218 else
37219         pkg_failed=untried
37220 fi
37221
37222
37223
37224 if test $pkg_failed = yes; then
37225
37226 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37227         _pkg_short_errors_supported=yes
37228 else
37229         _pkg_short_errors_supported=no
37230 fi
37231         if test $_pkg_short_errors_supported = yes; then
37232                 MesaGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
37233         else
37234                 MesaGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
37235         fi
37236         # Put the nasty error message in config.log where it belongs
37237         echo "$MesaGL_PKG_ERRORS" >&5
37238
37239
37240       if test "x$ac_find_libraries" = "x"; then
37241                 if test "xglEnable" != "x"; then
37242           { echo "$as_me:$LINENO: checking for glEnable in -lMesaGL" >&5
37243 echo $ECHO_N "checking for glEnable in -lMesaGL... $ECHO_C" >&6; }
37244 if test "${ac_cv_lib_MesaGL_glEnable+set}" = set; then
37245   echo $ECHO_N "(cached) $ECHO_C" >&6
37246 else
37247   ac_check_lib_save_LIBS=$LIBS
37248 LIBS="-lMesaGL  $LIBS"
37249 cat >conftest.$ac_ext <<_ACEOF
37250 /* confdefs.h.  */
37251 _ACEOF
37252 cat confdefs.h >>conftest.$ac_ext
37253 cat >>conftest.$ac_ext <<_ACEOF
37254 /* end confdefs.h.  */
37255
37256 /* Override any GCC internal prototype to avoid an error.
37257    Use char because int might match the return type of a GCC
37258    builtin and then its argument prototype would still apply.  */
37259 #ifdef __cplusplus
37260 extern "C"
37261 #endif
37262 char glEnable ();
37263 int
37264 main ()
37265 {
37266 return glEnable ();
37267   ;
37268   return 0;
37269 }
37270 _ACEOF
37271 rm -f conftest.$ac_objext conftest$ac_exeext
37272 if { (ac_try="$ac_link"
37273 case "(($ac_try" in
37274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37275   *) ac_try_echo=$ac_try;;
37276 esac
37277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37278   (eval "$ac_link") 2>conftest.er1
37279   ac_status=$?
37280   grep -v '^ *+' conftest.er1 >conftest.err
37281   rm -f conftest.er1
37282   cat conftest.err >&5
37283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284   (exit $ac_status); } && {
37285          test -z "$ac_c_werror_flag" ||
37286          test ! -s conftest.err
37287        } && test -s conftest$ac_exeext &&
37288        $as_test_x conftest$ac_exeext; then
37289   ac_cv_lib_MesaGL_glEnable=yes
37290 else
37291   echo "$as_me: failed program was:" >&5
37292 sed 's/^/| /' conftest.$ac_ext >&5
37293
37294         ac_cv_lib_MesaGL_glEnable=no
37295 fi
37296
37297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37298       conftest$ac_exeext conftest.$ac_ext
37299 LIBS=$ac_check_lib_save_LIBS
37300 fi
37301 { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glEnable" >&5
37302 echo "${ECHO_T}$ac_cv_lib_MesaGL_glEnable" >&6; }
37303 if test $ac_cv_lib_MesaGL_glEnable = yes; then
37304   ac_find_libraries="std"
37305 fi
37306
37307         fi
37308       fi
37309
37310       if test "x$ac_find_libraries" = "x"; then
37311                         { echo "$as_me:$LINENO: checking elsewhere" >&5
37312 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
37313
37314   ac_find_libraries=
37315   for ac_dir in $SEARCH_LIB
37316   do
37317     for ac_extension in a so sl dylib dll.a; do
37318       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
37319         ac_find_libraries=$ac_dir
37320         break 2
37321       fi
37322     done
37323   done
37324
37325         if test "x$ac_find_libraries" != "x"; then
37326           { echo "$as_me:$LINENO: result: yes" >&5
37327 echo "${ECHO_T}yes" >&6; }
37328         else
37329           { echo "$as_me:$LINENO: result: no" >&5
37330 echo "${ECHO_T}no" >&6; }
37331         fi
37332       fi
37333
37334 elif test $pkg_failed = untried; then
37335
37336       if test "x$ac_find_libraries" = "x"; then
37337                 if test "xglEnable" != "x"; then
37338           { echo "$as_me:$LINENO: checking for glEnable in -lMesaGL" >&5
37339 echo $ECHO_N "checking for glEnable in -lMesaGL... $ECHO_C" >&6; }
37340 if test "${ac_cv_lib_MesaGL_glEnable+set}" = set; then
37341   echo $ECHO_N "(cached) $ECHO_C" >&6
37342 else
37343   ac_check_lib_save_LIBS=$LIBS
37344 LIBS="-lMesaGL  $LIBS"
37345 cat >conftest.$ac_ext <<_ACEOF
37346 /* confdefs.h.  */
37347 _ACEOF
37348 cat confdefs.h >>conftest.$ac_ext
37349 cat >>conftest.$ac_ext <<_ACEOF
37350 /* end confdefs.h.  */
37351
37352 /* Override any GCC internal prototype to avoid an error.
37353    Use char because int might match the return type of a GCC
37354    builtin and then its argument prototype would still apply.  */
37355 #ifdef __cplusplus
37356 extern "C"
37357 #endif
37358 char glEnable ();
37359 int
37360 main ()
37361 {
37362 return glEnable ();
37363   ;
37364   return 0;
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   ac_cv_lib_MesaGL_glEnable=yes
37386 else
37387   echo "$as_me: failed program was:" >&5
37388 sed 's/^/| /' conftest.$ac_ext >&5
37389
37390         ac_cv_lib_MesaGL_glEnable=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 LIBS=$ac_check_lib_save_LIBS
37396 fi
37397 { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glEnable" >&5
37398 echo "${ECHO_T}$ac_cv_lib_MesaGL_glEnable" >&6; }
37399 if test $ac_cv_lib_MesaGL_glEnable = yes; then
37400   ac_find_libraries="std"
37401 fi
37402
37403         fi
37404       fi
37405
37406       if test "x$ac_find_libraries" = "x"; then
37407                         { echo "$as_me:$LINENO: checking elsewhere" >&5
37408 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
37409
37410   ac_find_libraries=
37411   for ac_dir in $SEARCH_LIB
37412   do
37413     for ac_extension in a so sl dylib dll.a; do
37414       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
37415         ac_find_libraries=$ac_dir
37416         break 2
37417       fi
37418     done
37419   done
37420
37421         if test "x$ac_find_libraries" != "x"; then
37422           { echo "$as_me:$LINENO: result: yes" >&5
37423 echo "${ECHO_T}yes" >&6; }
37424         else
37425           { echo "$as_me:$LINENO: result: no" >&5
37426 echo "${ECHO_T}no" >&6; }
37427         fi
37428       fi
37429
37430 else
37431         MesaGL_CFLAGS=$pkg_cv_MesaGL_CFLAGS
37432         MesaGL_LIBS=$pkg_cv_MesaGL_LIBS
37433         { echo "$as_me:$LINENO: result: yes" >&5
37434 echo "${ECHO_T}yes" >&6; }
37435
37436             ac_find_libraries="std"
37437
37438                                                 eval ac_find_cflags=\$MesaGL_CFLAGS
37439       eval fl_libs=\$MesaGL_LIBS
37440
37441                   for fl_path in $fl_libs
37442       do
37443         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
37444                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
37445         fi
37446       done
37447
37448 fi
37449
37450                     if test "$ac_find_libraries" != "" ; then
37451                       if test "$ac_find_libraries" != "std" ; then
37452
37453     if test "$ac_find_libraries" = "default location"; then
37454     ac_path_to_link=""
37455   else
37456     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
37457     result=$?
37458     if test $result = 0; then
37459       ac_path_to_link=""
37460     else
37461       ac_path_to_link=" -L$ac_find_libraries"
37462     fi
37463   fi
37464
37465                         if test "$ac_path_to_link" != " -L/usr/lib" ; then
37466                           LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
37467                         fi
37468                       fi
37469                       OPENGL_LIBS="-lMesaGL -lMesaGLU"
37470                     fi
37471                 fi
37472
37473 fi
37474
37475
37476
37477 fi
37478
37479
37480
37481         if test "x$OPENGL_LIBS" = "x"; then
37482             if test "$wxUSE_OPENGL" = "yes"; then
37483                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
37484 echo "$as_me: error: OpenGL libraries not available" >&2;}
37485    { (exit 1); exit 1; }; }
37486             else
37487                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
37488 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
37489                 wxUSE_OPENGL=no
37490                 USE_OPENGL=0
37491             fi
37492         fi
37493     else
37494         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
37495 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
37496         wxUSE_OPENGL="no"
37497     fi
37498
37499     if test "$wxUSE_OPENGL" = "auto"; then
37500                                 wxUSE_OPENGL=yes
37501     fi
37502
37503     if test "$wxUSE_OPENGL" = "yes"; then
37504         USE_OPENGL=1
37505         cat >>confdefs.h <<\_ACEOF
37506 #define wxUSE_OPENGL 1
37507 _ACEOF
37508
37509         cat >>confdefs.h <<\_ACEOF
37510 #define wxUSE_GLCANVAS 1
37511 _ACEOF
37512
37513         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
37514     fi
37515 fi
37516
37517
37518 if test -n "$TOOLKIT" ; then
37519     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
37520 fi
37521
37522
37523
37524 if test "$wxUSE_SHARED" = "yes"; then
37525     case "${host}" in
37526       *-pc-msdosdjgpp )
37527                 wxUSE_SHARED=no
37528         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
37529 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
37530       ;;
37531     esac
37532 fi
37533
37534 if test "$wxUSE_SHARED" = "yes"; then
37535
37536
37537     case "${host}" in
37538         *-*-cygwin* | *-*-mingw* )
37539                                                                                                 wx_cv_version_script=no
37540             ;;
37541
37542         *)
37543             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
37544 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
37545 if test "${wx_cv_version_script+set}" = set; then
37546   echo $ECHO_N "(cached) $ECHO_C" >&6
37547 else
37548
37549                 echo "VER_1 { *; };" >conftest.sym
37550                 echo "int main() { return 0; }" >conftest.cpp
37551
37552                 if { ac_try='
37553                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37554                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
37555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37556   (eval $ac_try) 2>&5
37557   ac_status=$?
37558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559   (exit $ac_status); }; } ; then
37560                   if test -s conftest.stderr ; then
37561                       wx_cv_version_script=no
37562                   else
37563                       wx_cv_version_script=yes
37564                   fi
37565                 else
37566                   wx_cv_version_script=no
37567                 fi
37568
37569                                                                                                                                                                                                 if test $wx_cv_version_script = yes
37570                 then
37571                   echo "struct B { virtual ~B() { } }; \
37572                         struct D : public B { }; \
37573                         void F() { D d; }" > conftest.cpp
37574
37575                   if { ac_try='
37576                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37577                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
37578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37579   (eval $ac_try) 2>&5
37580   ac_status=$?
37581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37582   (exit $ac_status); }; } &&
37583                      { ac_try='
37584                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37585                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
37586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37587   (eval $ac_try) 2>&5
37588   ac_status=$?
37589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590   (exit $ac_status); }; }
37591                   then
37592                     if { ac_try='
37593                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37594                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
37595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37596   (eval $ac_try) 2>&5
37597   ac_status=$?
37598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599   (exit $ac_status); }; }
37600                     then
37601                       wx_cv_version_script=yes
37602                     else
37603                       wx_cv_version_script=no
37604                     fi
37605                   fi
37606                 fi
37607
37608                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
37609                 rm -f conftest1.output conftest2.output conftest3.output
37610
37611 fi
37612 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
37613 echo "${ECHO_T}$wx_cv_version_script" >&6; }
37614
37615             if test $wx_cv_version_script = yes ; then
37616                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
37617             fi
37618             ;;
37619     esac
37620
37621
37622             if test "$wxUSE_VISIBILITY" != "no"; then
37623
37624
37625   if test -n "$GCC"; then
37626     CFLAGS_VISIBILITY="-fvisibility=hidden"
37627     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
37628     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
37629 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
37630     if test "${wx_cv_cc_visibility+set}" = set; then
37631   echo $ECHO_N "(cached) $ECHO_C" >&6
37632 else
37633
37634       wx_save_CXXFLAGS="$CXXFLAGS"
37635       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
37636       ac_ext=cpp
37637 ac_cpp='$CXXCPP $CPPFLAGS'
37638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37641
37642       cat >conftest.$ac_ext <<_ACEOF
37643 /* confdefs.h.  */
37644 _ACEOF
37645 cat confdefs.h >>conftest.$ac_ext
37646 cat >>conftest.$ac_ext <<_ACEOF
37647 /* end confdefs.h.  */
37648
37649          /* we need gcc >= 4.0, older versions with visibility support
37650             didn't have class visibility: */
37651          #if defined(__GNUC__) && __GNUC__ < 4
37652          error this gcc is too old;
37653          #endif
37654
37655          /* visibility only makes sense for ELF shared libs: */
37656          #if !defined(__ELF__) && !defined(__APPLE__)
37657          error this platform has no visibility;
37658          #endif
37659
37660          /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
37661          #if defined(__clang__)
37662          clang compiler is still broken w.r.t. visibility;
37663          #endif
37664
37665          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
37666          extern __attribute__((__visibility__("default"))) int exportedvar;
37667          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
37668          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
37669          class __attribute__((__visibility__("default"))) Foo {
37670            Foo() {}
37671          };
37672
37673 int
37674 main ()
37675 {
37676
37677   ;
37678   return 0;
37679 }
37680 _ACEOF
37681 rm -f conftest.$ac_objext
37682 if { (ac_try="$ac_compile"
37683 case "(($ac_try" in
37684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37685   *) ac_try_echo=$ac_try;;
37686 esac
37687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37688   (eval "$ac_compile") 2>conftest.er1
37689   ac_status=$?
37690   grep -v '^ *+' conftest.er1 >conftest.err
37691   rm -f conftest.er1
37692   cat conftest.err >&5
37693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694   (exit $ac_status); } && {
37695          test -z "$ac_cxx_werror_flag" ||
37696          test ! -s conftest.err
37697        } && test -s conftest.$ac_objext; then
37698   wx_cv_cc_visibility=yes
37699 else
37700   echo "$as_me: failed program was:" >&5
37701 sed 's/^/| /' conftest.$ac_ext >&5
37702
37703         wx_cv_cc_visibility=no
37704 fi
37705
37706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37707       ac_ext=c
37708 ac_cpp='$CPP $CPPFLAGS'
37709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37712
37713       CXXFLAGS="$wx_save_CXXFLAGS"
37714 fi
37715
37716     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
37717 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
37718     if test $wx_cv_cc_visibility = yes; then
37719                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
37720 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
37721       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
37722   echo $ECHO_N "(cached) $ECHO_C" >&6
37723 else
37724
37725         wx_save_CXXFLAGS="$CXXFLAGS"
37726         wx_save_LDFLAGS="$LDFLAGS"
37727         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
37728         LDFLAGS="$LDFLAGS -shared -fPIC"
37729         ac_ext=cpp
37730 ac_cpp='$CXXCPP $CPPFLAGS'
37731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37734
37735         cat >conftest.$ac_ext <<_ACEOF
37736 /* confdefs.h.  */
37737 _ACEOF
37738 cat confdefs.h >>conftest.$ac_ext
37739 cat >>conftest.$ac_ext <<_ACEOF
37740 /* end confdefs.h.  */
37741
37742             #include <string>
37743
37744 int
37745 main ()
37746 {
37747
37748             std::string s("hello");
37749             return s.length();
37750
37751   ;
37752   return 0;
37753 }
37754 _ACEOF
37755 rm -f conftest.$ac_objext conftest$ac_exeext
37756 if { (ac_try="$ac_link"
37757 case "(($ac_try" in
37758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37759   *) ac_try_echo=$ac_try;;
37760 esac
37761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37762   (eval "$ac_link") 2>conftest.er1
37763   ac_status=$?
37764   grep -v '^ *+' conftest.er1 >conftest.err
37765   rm -f conftest.er1
37766   cat conftest.err >&5
37767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768   (exit $ac_status); } && {
37769          test -z "$ac_cxx_werror_flag" ||
37770          test ! -s conftest.err
37771        } && test -s conftest$ac_exeext &&
37772        $as_test_x conftest$ac_exeext; then
37773   wx_cv_cc_broken_libstdcxx_visibility=no
37774 else
37775   echo "$as_me: failed program was:" >&5
37776 sed 's/^/| /' conftest.$ac_ext >&5
37777
37778         wx_cv_cc_broken_libstdcxx_visibility=yes
37779 fi
37780
37781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37782       conftest$ac_exeext conftest.$ac_ext
37783         ac_ext=c
37784 ac_cpp='$CPP $CPPFLAGS'
37785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37788
37789         CXXFLAGS="$wx_save_CXXFLAGS"
37790         LDFLAGS="$wx_save_LDFLAGS"
37791 fi
37792
37793       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
37794 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
37795
37796       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
37797         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
37798 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
37799         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
37800   echo $ECHO_N "(cached) $ECHO_C" >&6
37801 else
37802
37803           ac_ext=cpp
37804 ac_cpp='$CXXCPP $CPPFLAGS'
37805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37808
37809           cat >conftest.$ac_ext <<_ACEOF
37810 /* confdefs.h.  */
37811 _ACEOF
37812 cat confdefs.h >>conftest.$ac_ext
37813 cat >>conftest.$ac_ext <<_ACEOF
37814 /* end confdefs.h.  */
37815
37816               #pragma GCC visibility push(default)
37817               #include <string>
37818               #pragma GCC visibility pop
37819
37820 int
37821 main ()
37822 {
37823
37824               std::string s("hello");
37825               return s.length();
37826
37827   ;
37828   return 0;
37829 }
37830 _ACEOF
37831 rm -f conftest.$ac_objext conftest$ac_exeext
37832 if { (ac_try="$ac_link"
37833 case "(($ac_try" in
37834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37835   *) ac_try_echo=$ac_try;;
37836 esac
37837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37838   (eval "$ac_link") 2>conftest.er1
37839   ac_status=$?
37840   grep -v '^ *+' conftest.er1 >conftest.err
37841   rm -f conftest.er1
37842   cat conftest.err >&5
37843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37844   (exit $ac_status); } && {
37845          test -z "$ac_cxx_werror_flag" ||
37846          test ! -s conftest.err
37847        } && test -s conftest$ac_exeext &&
37848        $as_test_x conftest$ac_exeext; then
37849   wx_cv_cc_visibility_workaround=no
37850 else
37851   echo "$as_me: failed program was:" >&5
37852 sed 's/^/| /' conftest.$ac_ext >&5
37853
37854         wx_cv_cc_visibility_workaround=yes
37855 fi
37856
37857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37858       conftest$ac_exeext conftest.$ac_ext
37859           ac_ext=c
37860 ac_cpp='$CPP $CPPFLAGS'
37861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37864
37865
37866 fi
37867
37868         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
37869 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
37870
37871         if test $wx_cv_cc_visibility_workaround = no; then
37872                     wx_cv_cc_visibility=no
37873         fi
37874       fi
37875     fi
37876
37877     if test $wx_cv_cc_visibility = yes; then
37878       cat >>confdefs.h <<\_ACEOF
37879 #define HAVE_VISIBILITY 1
37880 _ACEOF
37881
37882       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
37883         cat >>confdefs.h <<\_ACEOF
37884 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
37885 _ACEOF
37886
37887       fi
37888     else
37889       CFLAGS_VISIBILITY=""
37890       CXXFLAGS_VISIBILITY=""
37891     fi
37892
37893
37894   fi
37895
37896     fi
37897
37898         if test "x$SUNCXX" = xyes; then
37899         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
37900         WXCONFIG_RPATH="-R\$libdir"
37901     else
37902     case "${host}" in
37903       *-*-linux* | *-*-gnu* )
37904         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
37905         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
37906         ;;
37907
37908       *-*-solaris2* )
37909
37910                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
37911
37912                         saveLdflags="$LDFLAGS"
37913         LDFLAGS="$saveLdflags -Wl,-rpath,/"
37914         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
37915 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
37916         cat >conftest.$ac_ext <<_ACEOF
37917 /* confdefs.h.  */
37918 _ACEOF
37919 cat confdefs.h >>conftest.$ac_ext
37920 cat >>conftest.$ac_ext <<_ACEOF
37921 /* end confdefs.h.  */
37922
37923 int
37924 main ()
37925 {
37926
37927   ;
37928   return 0;
37929 }
37930 _ACEOF
37931 rm -f conftest.$ac_objext conftest$ac_exeext
37932 if { (ac_try="$ac_link"
37933 case "(($ac_try" in
37934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37935   *) ac_try_echo=$ac_try;;
37936 esac
37937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37938   (eval "$ac_link") 2>conftest.er1
37939   ac_status=$?
37940   grep -v '^ *+' conftest.er1 >conftest.err
37941   rm -f conftest.er1
37942   cat conftest.err >&5
37943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944   (exit $ac_status); } && {
37945          test -z "$ac_c_werror_flag" ||
37946          test ! -s conftest.err
37947        } && test -s conftest$ac_exeext &&
37948        $as_test_x conftest$ac_exeext; then
37949
37950                 { echo "$as_me:$LINENO: result: yes" >&5
37951 echo "${ECHO_T}yes" >&6; }
37952                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
37953                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
37954
37955 else
37956   echo "$as_me: failed program was:" >&5
37957 sed 's/^/| /' conftest.$ac_ext >&5
37958
37959
37960                 { echo "$as_me:$LINENO: result: no" >&5
37961 echo "${ECHO_T}no" >&6; }
37962                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
37963 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
37964                 LDFLAGS="$saveLdflags -Wl,-R,/"
37965                 cat >conftest.$ac_ext <<_ACEOF
37966 /* confdefs.h.  */
37967 _ACEOF
37968 cat confdefs.h >>conftest.$ac_ext
37969 cat >>conftest.$ac_ext <<_ACEOF
37970 /* end confdefs.h.  */
37971
37972 int
37973 main ()
37974 {
37975
37976   ;
37977   return 0;
37978 }
37979 _ACEOF
37980 rm -f conftest.$ac_objext conftest$ac_exeext
37981 if { (ac_try="$ac_link"
37982 case "(($ac_try" in
37983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37984   *) ac_try_echo=$ac_try;;
37985 esac
37986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37987   (eval "$ac_link") 2>conftest.er1
37988   ac_status=$?
37989   grep -v '^ *+' conftest.er1 >conftest.err
37990   rm -f conftest.er1
37991   cat conftest.err >&5
37992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37993   (exit $ac_status); } && {
37994          test -z "$ac_c_werror_flag" ||
37995          test ! -s conftest.err
37996        } && test -s conftest$ac_exeext &&
37997        $as_test_x conftest$ac_exeext; then
37998
37999                         { echo "$as_me:$LINENO: result: yes" >&5
38000 echo "${ECHO_T}yes" >&6; }
38001                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
38002                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
38003
38004 else
38005   echo "$as_me: failed program was:" >&5
38006 sed 's/^/| /' conftest.$ac_ext >&5
38007
38008
38009                         { echo "$as_me:$LINENO: result: no" >&5
38010 echo "${ECHO_T}no" >&6; }
38011
38012 fi
38013
38014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38015       conftest$ac_exeext conftest.$ac_ext
38016
38017 fi
38018
38019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38020       conftest$ac_exeext conftest.$ac_ext
38021         LDFLAGS="$saveLdflags"
38022       ;;
38023
38024       *-*-darwin* )
38025         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
38026         if test "$install_name_tool" -a -x "$install_name_tool"; then
38027             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
38028             cat <<EOF >change-install-names
38029 #!/bin/sh
38030 libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
38031 for i in \${libnames} ; do
38032     ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
38033     for dep in \${libnames} ; do
38034         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
38035     done
38036 done
38037 EOF
38038             chmod +x change-install-names
38039             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
38040         fi
38041
38042                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
38043       ;;
38044
38045       *-*-cygwin* | *-*-mingw32* )
38046         ;;
38047
38048       *-*-hpux* )
38049         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
38050         WXCONFIG_RPATH="-Wl,+b,\$libdir"
38051         ;;
38052
38053     esac
38054     fi
38055
38056             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
38057
38058     if test $wxUSE_RPATH = "no"; then
38059         SAMPLES_RPATH_FLAG=''
38060         DYLIB_PATH_POSTLINK=''
38061         WXCONFIG_RPATH=''
38062     fi
38063
38064     SHARED=1
38065
38066 else
38067
38068     config_linkage_component="-static"
38069     SHARED=0
38070
38071 fi
38072
38073
38074 UNICODE=0
38075 lib_unicode_suffix=
38076 WX_CHARTYPE="ansi"
38077 if test "$wxUSE_UNICODE" = "yes"; then
38078     lib_unicode_suffix=u
38079     WX_CHARTYPE="unicode"
38080     UNICODE=1
38081 fi
38082
38083 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
38084 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
38085
38086 DEBUG_INFO=0
38087 if test "$wxUSE_DEBUG_INFO" = "yes"; then
38088     DEBUG_INFO=1
38089 fi
38090
38091 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
38092
38093 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
38094
38095 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
38096
38097
38098 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
38099     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
38100 else
38101     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
38102 fi
38103 if test "${TOOLKIT_DIR}" = "os2"; then
38104     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
38105 else
38106     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
38107 fi
38108
38109
38110
38111 if test "$wxUSE_OLD_COCOA" = 1; then
38112
38113     ac_ext=c
38114 ac_cpp='$CPP $CPPFLAGS'
38115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38118
38119 ac_ext=m
38120
38121     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
38122 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
38123     cat >conftest.$ac_ext <<_ACEOF
38124 /* confdefs.h.  */
38125 _ACEOF
38126 cat confdefs.h >>conftest.$ac_ext
38127 cat >>conftest.$ac_ext <<_ACEOF
38128 /* end confdefs.h.  */
38129 #include <AppKit/NSEvent.h>
38130 #include <CoreFoundation/CoreFoundation.h>
38131
38132 int
38133 main ()
38134 {
38135
38136   ;
38137   return 0;
38138 }
38139 _ACEOF
38140 rm -f conftest.$ac_objext
38141 if { (ac_try="$ac_compile"
38142 case "(($ac_try" in
38143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38144   *) ac_try_echo=$ac_try;;
38145 esac
38146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38147   (eval "$ac_compile") 2>conftest.er1
38148   ac_status=$?
38149   grep -v '^ *+' conftest.er1 >conftest.err
38150   rm -f conftest.er1
38151   cat conftest.err >&5
38152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38153   (exit $ac_status); } && {
38154          test -z "$ac_c_werror_flag" ||
38155          test ! -s conftest.err
38156        } && test -s conftest.$ac_objext; then
38157   { echo "$as_me:$LINENO: result: no" >&5
38158 echo "${ECHO_T}no" >&6; }
38159 else
38160   echo "$as_me: failed program was:" >&5
38161 sed 's/^/| /' conftest.$ac_ext >&5
38162
38163         { echo "$as_me:$LINENO: result: yes" >&5
38164 echo "${ECHO_T}yes" >&6; }
38165         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
38166 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
38167         cat >conftest.$ac_ext <<_ACEOF
38168 /* confdefs.h.  */
38169 _ACEOF
38170 cat confdefs.h >>conftest.$ac_ext
38171 cat >>conftest.$ac_ext <<_ACEOF
38172 /* end confdefs.h.  */
38173 #define __Point__ 1
38174 #include <AppKit/NSEvent.h>
38175 #include <CoreFoundation/CoreFoundation.h>
38176
38177 int
38178 main ()
38179 {
38180
38181   ;
38182   return 0;
38183 }
38184 _ACEOF
38185 rm -f conftest.$ac_objext
38186 if { (ac_try="$ac_compile"
38187 case "(($ac_try" in
38188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38189   *) ac_try_echo=$ac_try;;
38190 esac
38191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38192   (eval "$ac_compile") 2>conftest.er1
38193   ac_status=$?
38194   grep -v '^ *+' conftest.er1 >conftest.err
38195   rm -f conftest.er1
38196   cat conftest.err >&5
38197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198   (exit $ac_status); } && {
38199          test -z "$ac_c_werror_flag" ||
38200          test ! -s conftest.err
38201        } && test -s conftest.$ac_objext; then
38202   { echo "$as_me:$LINENO: result: yes" >&5
38203 echo "${ECHO_T}yes" >&6; }
38204             cat >>confdefs.h <<\_ACEOF
38205 #define __Point__ 1
38206 _ACEOF
38207
38208
38209 else
38210   echo "$as_me: failed program was:" >&5
38211 sed 's/^/| /' conftest.$ac_ext >&5
38212
38213         { { echo "$as_me:$LINENO: error: no
38214 See \`config.log' for more details." >&5
38215 echo "$as_me: error: no
38216 See \`config.log' for more details." >&2;}
38217    { (exit 1); exit 1; }; }
38218
38219 fi
38220
38221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38222
38223 fi
38224
38225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38226     ac_ext=c
38227 ac_cpp='$CPP $CPPFLAGS'
38228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38231
38232 fi
38233
38234
38235 { echo "$as_me:$LINENO: checking for mode_t" >&5
38236 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
38237 if test "${ac_cv_type_mode_t+set}" = set; then
38238   echo $ECHO_N "(cached) $ECHO_C" >&6
38239 else
38240   cat >conftest.$ac_ext <<_ACEOF
38241 /* confdefs.h.  */
38242 _ACEOF
38243 cat confdefs.h >>conftest.$ac_ext
38244 cat >>conftest.$ac_ext <<_ACEOF
38245 /* end confdefs.h.  */
38246 $ac_includes_default
38247 typedef mode_t ac__type_new_;
38248 int
38249 main ()
38250 {
38251 if ((ac__type_new_ *) 0)
38252   return 0;
38253 if (sizeof (ac__type_new_))
38254   return 0;
38255   ;
38256   return 0;
38257 }
38258 _ACEOF
38259 rm -f conftest.$ac_objext
38260 if { (ac_try="$ac_compile"
38261 case "(($ac_try" in
38262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38263   *) ac_try_echo=$ac_try;;
38264 esac
38265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38266   (eval "$ac_compile") 2>conftest.er1
38267   ac_status=$?
38268   grep -v '^ *+' conftest.er1 >conftest.err
38269   rm -f conftest.er1
38270   cat conftest.err >&5
38271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38272   (exit $ac_status); } && {
38273          test -z "$ac_c_werror_flag" ||
38274          test ! -s conftest.err
38275        } && test -s conftest.$ac_objext; then
38276   ac_cv_type_mode_t=yes
38277 else
38278   echo "$as_me: failed program was:" >&5
38279 sed 's/^/| /' conftest.$ac_ext >&5
38280
38281         ac_cv_type_mode_t=no
38282 fi
38283
38284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38285 fi
38286 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38287 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
38288 if test $ac_cv_type_mode_t = yes; then
38289   :
38290 else
38291
38292 cat >>confdefs.h <<_ACEOF
38293 #define mode_t int
38294 _ACEOF
38295
38296 fi
38297
38298 { echo "$as_me:$LINENO: checking for off_t" >&5
38299 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
38300 if test "${ac_cv_type_off_t+set}" = set; then
38301   echo $ECHO_N "(cached) $ECHO_C" >&6
38302 else
38303   cat >conftest.$ac_ext <<_ACEOF
38304 /* confdefs.h.  */
38305 _ACEOF
38306 cat confdefs.h >>conftest.$ac_ext
38307 cat >>conftest.$ac_ext <<_ACEOF
38308 /* end confdefs.h.  */
38309 $ac_includes_default
38310 typedef off_t ac__type_new_;
38311 int
38312 main ()
38313 {
38314 if ((ac__type_new_ *) 0)
38315   return 0;
38316 if (sizeof (ac__type_new_))
38317   return 0;
38318   ;
38319   return 0;
38320 }
38321 _ACEOF
38322 rm -f conftest.$ac_objext
38323 if { (ac_try="$ac_compile"
38324 case "(($ac_try" in
38325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38326   *) ac_try_echo=$ac_try;;
38327 esac
38328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38329   (eval "$ac_compile") 2>conftest.er1
38330   ac_status=$?
38331   grep -v '^ *+' conftest.er1 >conftest.err
38332   rm -f conftest.er1
38333   cat conftest.err >&5
38334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335   (exit $ac_status); } && {
38336          test -z "$ac_c_werror_flag" ||
38337          test ! -s conftest.err
38338        } && test -s conftest.$ac_objext; then
38339   ac_cv_type_off_t=yes
38340 else
38341   echo "$as_me: failed program was:" >&5
38342 sed 's/^/| /' conftest.$ac_ext >&5
38343
38344         ac_cv_type_off_t=no
38345 fi
38346
38347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38348 fi
38349 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38350 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
38351 if test $ac_cv_type_off_t = yes; then
38352   :
38353 else
38354
38355 cat >>confdefs.h <<_ACEOF
38356 #define off_t long int
38357 _ACEOF
38358
38359 fi
38360
38361 { echo "$as_me:$LINENO: checking for pid_t" >&5
38362 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
38363 if test "${ac_cv_type_pid_t+set}" = set; then
38364   echo $ECHO_N "(cached) $ECHO_C" >&6
38365 else
38366   cat >conftest.$ac_ext <<_ACEOF
38367 /* confdefs.h.  */
38368 _ACEOF
38369 cat confdefs.h >>conftest.$ac_ext
38370 cat >>conftest.$ac_ext <<_ACEOF
38371 /* end confdefs.h.  */
38372 $ac_includes_default
38373 typedef pid_t ac__type_new_;
38374 int
38375 main ()
38376 {
38377 if ((ac__type_new_ *) 0)
38378   return 0;
38379 if (sizeof (ac__type_new_))
38380   return 0;
38381   ;
38382   return 0;
38383 }
38384 _ACEOF
38385 rm -f conftest.$ac_objext
38386 if { (ac_try="$ac_compile"
38387 case "(($ac_try" in
38388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38389   *) ac_try_echo=$ac_try;;
38390 esac
38391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38392   (eval "$ac_compile") 2>conftest.er1
38393   ac_status=$?
38394   grep -v '^ *+' conftest.er1 >conftest.err
38395   rm -f conftest.er1
38396   cat conftest.err >&5
38397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38398   (exit $ac_status); } && {
38399          test -z "$ac_c_werror_flag" ||
38400          test ! -s conftest.err
38401        } && test -s conftest.$ac_objext; then
38402   ac_cv_type_pid_t=yes
38403 else
38404   echo "$as_me: failed program was:" >&5
38405 sed 's/^/| /' conftest.$ac_ext >&5
38406
38407         ac_cv_type_pid_t=no
38408 fi
38409
38410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38411 fi
38412 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38413 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
38414 if test $ac_cv_type_pid_t = yes; then
38415   :
38416 else
38417
38418 cat >>confdefs.h <<_ACEOF
38419 #define pid_t int
38420 _ACEOF
38421
38422 fi
38423
38424 { echo "$as_me:$LINENO: checking for size_t" >&5
38425 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
38426 if test "${ac_cv_type_size_t+set}" = set; then
38427   echo $ECHO_N "(cached) $ECHO_C" >&6
38428 else
38429   cat >conftest.$ac_ext <<_ACEOF
38430 /* confdefs.h.  */
38431 _ACEOF
38432 cat confdefs.h >>conftest.$ac_ext
38433 cat >>conftest.$ac_ext <<_ACEOF
38434 /* end confdefs.h.  */
38435 $ac_includes_default
38436 typedef size_t ac__type_new_;
38437 int
38438 main ()
38439 {
38440 if ((ac__type_new_ *) 0)
38441   return 0;
38442 if (sizeof (ac__type_new_))
38443   return 0;
38444   ;
38445   return 0;
38446 }
38447 _ACEOF
38448 rm -f conftest.$ac_objext
38449 if { (ac_try="$ac_compile"
38450 case "(($ac_try" in
38451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38452   *) ac_try_echo=$ac_try;;
38453 esac
38454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38455   (eval "$ac_compile") 2>conftest.er1
38456   ac_status=$?
38457   grep -v '^ *+' conftest.er1 >conftest.err
38458   rm -f conftest.er1
38459   cat conftest.err >&5
38460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38461   (exit $ac_status); } && {
38462          test -z "$ac_c_werror_flag" ||
38463          test ! -s conftest.err
38464        } && test -s conftest.$ac_objext; then
38465   ac_cv_type_size_t=yes
38466 else
38467   echo "$as_me: failed program was:" >&5
38468 sed 's/^/| /' conftest.$ac_ext >&5
38469
38470         ac_cv_type_size_t=no
38471 fi
38472
38473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38474 fi
38475 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38476 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
38477 if test $ac_cv_type_size_t = yes; then
38478   :
38479 else
38480
38481 cat >>confdefs.h <<_ACEOF
38482 #define size_t unsigned int
38483 _ACEOF
38484
38485 fi
38486
38487
38488 { echo "$as_me:$LINENO: checking for ssize_t" >&5
38489 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
38490 if test "${ac_cv_type_ssize_t+set}" = set; then
38491   echo $ECHO_N "(cached) $ECHO_C" >&6
38492 else
38493   cat >conftest.$ac_ext <<_ACEOF
38494 /* confdefs.h.  */
38495 _ACEOF
38496 cat confdefs.h >>conftest.$ac_ext
38497 cat >>conftest.$ac_ext <<_ACEOF
38498 /* end confdefs.h.  */
38499 $ac_includes_default
38500 typedef ssize_t ac__type_new_;
38501 int
38502 main ()
38503 {
38504 if ((ac__type_new_ *) 0)
38505   return 0;
38506 if (sizeof (ac__type_new_))
38507   return 0;
38508   ;
38509   return 0;
38510 }
38511 _ACEOF
38512 rm -f conftest.$ac_objext
38513 if { (ac_try="$ac_compile"
38514 case "(($ac_try" in
38515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38516   *) ac_try_echo=$ac_try;;
38517 esac
38518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38519   (eval "$ac_compile") 2>conftest.er1
38520   ac_status=$?
38521   grep -v '^ *+' conftest.er1 >conftest.err
38522   rm -f conftest.er1
38523   cat conftest.err >&5
38524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525   (exit $ac_status); } && {
38526          test -z "$ac_c_werror_flag" ||
38527          test ! -s conftest.err
38528        } && test -s conftest.$ac_objext; then
38529   ac_cv_type_ssize_t=yes
38530 else
38531   echo "$as_me: failed program was:" >&5
38532 sed 's/^/| /' conftest.$ac_ext >&5
38533
38534         ac_cv_type_ssize_t=no
38535 fi
38536
38537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38538 fi
38539 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38540 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
38541 if test $ac_cv_type_ssize_t = yes; then
38542
38543 cat >>confdefs.h <<_ACEOF
38544 #define HAVE_SSIZE_T 1
38545 _ACEOF
38546
38547
38548 fi
38549
38550
38551 ac_ext=cpp
38552 ac_cpp='$CXXCPP $CPPFLAGS'
38553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38556  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
38557 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
38558 if test "${wx_cv_size_t_is_uint+set}" = set; then
38559   echo $ECHO_N "(cached) $ECHO_C" >&6
38560 else
38561
38562                             cat >conftest.$ac_ext <<_ACEOF
38563 /* confdefs.h.  */
38564 _ACEOF
38565 cat confdefs.h >>conftest.$ac_ext
38566 cat >>conftest.$ac_ext <<_ACEOF
38567 /* end confdefs.h.  */
38568 #include <stddef.h>
38569 int
38570 main ()
38571 {
38572
38573             return 0; }
38574
38575             struct Foo { void foo(size_t); void foo(unsigned int); };
38576
38577             int bar() {
38578
38579   ;
38580   return 0;
38581 }
38582 _ACEOF
38583 rm -f conftest.$ac_objext
38584 if { (ac_try="$ac_compile"
38585 case "(($ac_try" in
38586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38587   *) ac_try_echo=$ac_try;;
38588 esac
38589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38590   (eval "$ac_compile") 2>conftest.er1
38591   ac_status=$?
38592   grep -v '^ *+' conftest.er1 >conftest.err
38593   rm -f conftest.er1
38594   cat conftest.err >&5
38595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38596   (exit $ac_status); } && {
38597          test -z "$ac_cxx_werror_flag" ||
38598          test ! -s conftest.err
38599        } && test -s conftest.$ac_objext; then
38600   wx_cv_size_t_is_uint=no
38601 else
38602   echo "$as_me: failed program was:" >&5
38603 sed 's/^/| /' conftest.$ac_ext >&5
38604
38605         wx_cv_size_t_is_uint=yes
38606
38607 fi
38608
38609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38610
38611
38612 fi
38613 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
38614 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
38615
38616 if test "$wx_cv_size_t_is_uint" = "yes"; then
38617     cat >>confdefs.h <<\_ACEOF
38618 #define wxSIZE_T_IS_UINT 1
38619 _ACEOF
38620
38621 else
38622     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
38623 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
38624 if test "${wx_cv_size_t_is_ulong+set}" = set; then
38625   echo $ECHO_N "(cached) $ECHO_C" >&6
38626 else
38627   cat >conftest.$ac_ext <<_ACEOF
38628 /* confdefs.h.  */
38629 _ACEOF
38630 cat confdefs.h >>conftest.$ac_ext
38631 cat >>conftest.$ac_ext <<_ACEOF
38632 /* end confdefs.h.  */
38633 #include <stddef.h>
38634 int
38635 main ()
38636 {
38637
38638                 return 0; }
38639
38640                 struct Foo { void foo(size_t); void foo(unsigned long); };
38641
38642                 int bar() {
38643
38644   ;
38645   return 0;
38646 }
38647 _ACEOF
38648 rm -f conftest.$ac_objext
38649 if { (ac_try="$ac_compile"
38650 case "(($ac_try" in
38651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38652   *) ac_try_echo=$ac_try;;
38653 esac
38654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38655   (eval "$ac_compile") 2>conftest.er1
38656   ac_status=$?
38657   grep -v '^ *+' conftest.er1 >conftest.err
38658   rm -f conftest.er1
38659   cat conftest.err >&5
38660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38661   (exit $ac_status); } && {
38662          test -z "$ac_cxx_werror_flag" ||
38663          test ! -s conftest.err
38664        } && test -s conftest.$ac_objext; then
38665   wx_cv_size_t_is_ulong=no
38666 else
38667   echo "$as_me: failed program was:" >&5
38668 sed 's/^/| /' conftest.$ac_ext >&5
38669
38670         wx_cv_size_t_is_ulong=yes
38671
38672 fi
38673
38674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38675
38676 fi
38677 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
38678 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
38679
38680     if test "$wx_cv_size_t_is_ulong" = "yes"; then
38681         cat >>confdefs.h <<\_ACEOF
38682 #define wxSIZE_T_IS_ULONG 1
38683 _ACEOF
38684
38685     fi
38686 fi
38687
38688 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
38689 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
38690 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
38691   echo $ECHO_N "(cached) $ECHO_C" >&6
38692 else
38693   cat >conftest.$ac_ext <<_ACEOF
38694 /* confdefs.h.  */
38695 _ACEOF
38696 cat confdefs.h >>conftest.$ac_ext
38697 cat >>conftest.$ac_ext <<_ACEOF
38698 /* end confdefs.h.  */
38699 #include <wchar.h>
38700 int
38701 main ()
38702 {
38703
38704             return 0; }
38705
38706             struct Foo { void foo(wchar_t);
38707                          void foo(unsigned short);
38708                          void foo(unsigned int);
38709                          void foo(unsigned long); };
38710
38711             int bar() {
38712
38713   ;
38714   return 0;
38715 }
38716 _ACEOF
38717 rm -f conftest.$ac_objext
38718 if { (ac_try="$ac_compile"
38719 case "(($ac_try" in
38720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38721   *) ac_try_echo=$ac_try;;
38722 esac
38723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38724   (eval "$ac_compile") 2>conftest.er1
38725   ac_status=$?
38726   grep -v '^ *+' conftest.er1 >conftest.err
38727   rm -f conftest.er1
38728   cat conftest.err >&5
38729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730   (exit $ac_status); } && {
38731          test -z "$ac_cxx_werror_flag" ||
38732          test ! -s conftest.err
38733        } && test -s conftest.$ac_objext; then
38734   wx_cv_wchar_t_is_separate_type=yes
38735 else
38736   echo "$as_me: failed program was:" >&5
38737 sed 's/^/| /' conftest.$ac_ext >&5
38738
38739         wx_cv_wchar_t_is_separate_type=no
38740
38741 fi
38742
38743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38744
38745 fi
38746 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
38747 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
38748
38749 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
38750     cat >>confdefs.h <<\_ACEOF
38751 #define wxWCHAR_T_IS_REAL_TYPE 1
38752 _ACEOF
38753
38754 else
38755     cat >>confdefs.h <<\_ACEOF
38756 #define wxWCHAR_T_IS_REAL_TYPE 0
38757 _ACEOF
38758
38759 fi
38760
38761 ac_ext=c
38762 ac_cpp='$CPP $CPPFLAGS'
38763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38766
38767
38768 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
38769 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
38770 if test "${wx_cv_struct_pw_gecos+set}" = set; then
38771   echo $ECHO_N "(cached) $ECHO_C" >&6
38772 else
38773
38774         cat >conftest.$ac_ext <<_ACEOF
38775 /* confdefs.h.  */
38776 _ACEOF
38777 cat confdefs.h >>conftest.$ac_ext
38778 cat >>conftest.$ac_ext <<_ACEOF
38779 /* end confdefs.h.  */
38780 #include <pwd.h>
38781 int
38782 main ()
38783 {
38784
38785                 char *p;
38786                 struct passwd *pw;
38787                 p = pw->pw_gecos;
38788
38789   ;
38790   return 0;
38791 }
38792 _ACEOF
38793 rm -f conftest.$ac_objext
38794 if { (ac_try="$ac_compile"
38795 case "(($ac_try" in
38796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38797   *) ac_try_echo=$ac_try;;
38798 esac
38799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38800   (eval "$ac_compile") 2>conftest.er1
38801   ac_status=$?
38802   grep -v '^ *+' conftest.er1 >conftest.err
38803   rm -f conftest.er1
38804   cat conftest.err >&5
38805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38806   (exit $ac_status); } && {
38807          test -z "$ac_c_werror_flag" ||
38808          test ! -s conftest.err
38809        } && test -s conftest.$ac_objext; then
38810
38811                 wx_cv_struct_pw_gecos=yes
38812
38813 else
38814   echo "$as_me: failed program was:" >&5
38815 sed 's/^/| /' conftest.$ac_ext >&5
38816
38817
38818                 wx_cv_struct_pw_gecos=no
38819
38820
38821 fi
38822
38823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38824
38825
38826 fi
38827 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
38828 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
38829
38830 if test "$wx_cv_struct_pw_gecos" = "yes"; then
38831     cat >>confdefs.h <<\_ACEOF
38832 #define HAVE_PW_GECOS 1
38833 _ACEOF
38834
38835 fi
38836
38837
38838 WCSLEN_FOUND=0
38839 WCHAR_LINK=
38840
38841 for ac_func in wcslen
38842 do
38843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38847   echo $ECHO_N "(cached) $ECHO_C" >&6
38848 else
38849   cat >conftest.$ac_ext <<_ACEOF
38850 /* confdefs.h.  */
38851 _ACEOF
38852 cat confdefs.h >>conftest.$ac_ext
38853 cat >>conftest.$ac_ext <<_ACEOF
38854 /* end confdefs.h.  */
38855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38857 #define $ac_func innocuous_$ac_func
38858
38859 /* System header to define __stub macros and hopefully few prototypes,
38860     which can conflict with char $ac_func (); below.
38861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38862     <limits.h> exists even on freestanding compilers.  */
38863
38864 #ifdef __STDC__
38865 # include <limits.h>
38866 #else
38867 # include <assert.h>
38868 #endif
38869
38870 #undef $ac_func
38871
38872 /* Override any GCC internal prototype to avoid an error.
38873    Use char because int might match the return type of a GCC
38874    builtin and then its argument prototype would still apply.  */
38875 #ifdef __cplusplus
38876 extern "C"
38877 #endif
38878 char $ac_func ();
38879 /* The GNU C library defines this for functions which it implements
38880     to always fail with ENOSYS.  Some functions are actually named
38881     something starting with __ and the normal name is an alias.  */
38882 #if defined __stub_$ac_func || defined __stub___$ac_func
38883 choke me
38884 #endif
38885
38886 int
38887 main ()
38888 {
38889 return $ac_func ();
38890   ;
38891   return 0;
38892 }
38893 _ACEOF
38894 rm -f conftest.$ac_objext conftest$ac_exeext
38895 if { (ac_try="$ac_link"
38896 case "(($ac_try" in
38897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38898   *) ac_try_echo=$ac_try;;
38899 esac
38900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38901   (eval "$ac_link") 2>conftest.er1
38902   ac_status=$?
38903   grep -v '^ *+' conftest.er1 >conftest.err
38904   rm -f conftest.er1
38905   cat conftest.err >&5
38906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907   (exit $ac_status); } && {
38908          test -z "$ac_c_werror_flag" ||
38909          test ! -s conftest.err
38910        } && test -s conftest$ac_exeext &&
38911        $as_test_x conftest$ac_exeext; then
38912   eval "$as_ac_var=yes"
38913 else
38914   echo "$as_me: failed program was:" >&5
38915 sed 's/^/| /' conftest.$ac_ext >&5
38916
38917         eval "$as_ac_var=no"
38918 fi
38919
38920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38921       conftest$ac_exeext conftest.$ac_ext
38922 fi
38923 ac_res=`eval echo '${'$as_ac_var'}'`
38924                { echo "$as_me:$LINENO: result: $ac_res" >&5
38925 echo "${ECHO_T}$ac_res" >&6; }
38926 if test `eval echo '${'$as_ac_var'}'` = yes; then
38927   cat >>confdefs.h <<_ACEOF
38928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38929 _ACEOF
38930  WCSLEN_FOUND=1
38931 fi
38932 done
38933
38934
38935 if test "$WCSLEN_FOUND" = 0; then
38936     if test "$TOOLKIT" = "MSW"; then
38937         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
38938 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
38939 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
38940   echo $ECHO_N "(cached) $ECHO_C" >&6
38941 else
38942   ac_check_lib_save_LIBS=$LIBS
38943 LIBS="-lmsvcrt  $LIBS"
38944 cat >conftest.$ac_ext <<_ACEOF
38945 /* confdefs.h.  */
38946 _ACEOF
38947 cat confdefs.h >>conftest.$ac_ext
38948 cat >>conftest.$ac_ext <<_ACEOF
38949 /* end confdefs.h.  */
38950
38951 /* Override any GCC internal prototype to avoid an error.
38952    Use char because int might match the return type of a GCC
38953    builtin and then its argument prototype would still apply.  */
38954 #ifdef __cplusplus
38955 extern "C"
38956 #endif
38957 char wcslen ();
38958 int
38959 main ()
38960 {
38961 return wcslen ();
38962   ;
38963   return 0;
38964 }
38965 _ACEOF
38966 rm -f conftest.$ac_objext conftest$ac_exeext
38967 if { (ac_try="$ac_link"
38968 case "(($ac_try" in
38969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38970   *) ac_try_echo=$ac_try;;
38971 esac
38972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38973   (eval "$ac_link") 2>conftest.er1
38974   ac_status=$?
38975   grep -v '^ *+' conftest.er1 >conftest.err
38976   rm -f conftest.er1
38977   cat conftest.err >&5
38978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38979   (exit $ac_status); } && {
38980          test -z "$ac_c_werror_flag" ||
38981          test ! -s conftest.err
38982        } && test -s conftest$ac_exeext &&
38983        $as_test_x conftest$ac_exeext; then
38984   ac_cv_lib_msvcrt_wcslen=yes
38985 else
38986   echo "$as_me: failed program was:" >&5
38987 sed 's/^/| /' conftest.$ac_ext >&5
38988
38989         ac_cv_lib_msvcrt_wcslen=no
38990 fi
38991
38992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38993       conftest$ac_exeext conftest.$ac_ext
38994 LIBS=$ac_check_lib_save_LIBS
38995 fi
38996 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
38997 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
38998 if test $ac_cv_lib_msvcrt_wcslen = yes; then
38999   WCHAR_OK=1
39000 fi
39001
39002     else
39003         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
39004 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
39005 if test "${ac_cv_lib_w_wcslen+set}" = set; then
39006   echo $ECHO_N "(cached) $ECHO_C" >&6
39007 else
39008   ac_check_lib_save_LIBS=$LIBS
39009 LIBS="-lw  $LIBS"
39010 cat >conftest.$ac_ext <<_ACEOF
39011 /* confdefs.h.  */
39012 _ACEOF
39013 cat confdefs.h >>conftest.$ac_ext
39014 cat >>conftest.$ac_ext <<_ACEOF
39015 /* end confdefs.h.  */
39016
39017 /* Override any GCC internal prototype to avoid an error.
39018    Use char because int might match the return type of a GCC
39019    builtin and then its argument prototype would still apply.  */
39020 #ifdef __cplusplus
39021 extern "C"
39022 #endif
39023 char wcslen ();
39024 int
39025 main ()
39026 {
39027 return wcslen ();
39028   ;
39029   return 0;
39030 }
39031 _ACEOF
39032 rm -f conftest.$ac_objext conftest$ac_exeext
39033 if { (ac_try="$ac_link"
39034 case "(($ac_try" in
39035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39036   *) ac_try_echo=$ac_try;;
39037 esac
39038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39039   (eval "$ac_link") 2>conftest.er1
39040   ac_status=$?
39041   grep -v '^ *+' conftest.er1 >conftest.err
39042   rm -f conftest.er1
39043   cat conftest.err >&5
39044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39045   (exit $ac_status); } && {
39046          test -z "$ac_c_werror_flag" ||
39047          test ! -s conftest.err
39048        } && test -s conftest$ac_exeext &&
39049        $as_test_x conftest$ac_exeext; then
39050   ac_cv_lib_w_wcslen=yes
39051 else
39052   echo "$as_me: failed program was:" >&5
39053 sed 's/^/| /' conftest.$ac_ext >&5
39054
39055         ac_cv_lib_w_wcslen=no
39056 fi
39057
39058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39059       conftest$ac_exeext conftest.$ac_ext
39060 LIBS=$ac_check_lib_save_LIBS
39061 fi
39062 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
39063 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
39064 if test $ac_cv_lib_w_wcslen = yes; then
39065
39066                         WCHAR_LINK=" -lw"
39067                         WCSLEN_FOUND=1
39068
39069 fi
39070
39071     fi
39072 fi
39073
39074 if test "$WCSLEN_FOUND" = 1; then
39075     cat >>confdefs.h <<\_ACEOF
39076 #define HAVE_WCSLEN 1
39077 _ACEOF
39078
39079 fi
39080
39081
39082
39083
39084
39085
39086
39087 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
39088 do
39089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39093   echo $ECHO_N "(cached) $ECHO_C" >&6
39094 else
39095   cat >conftest.$ac_ext <<_ACEOF
39096 /* confdefs.h.  */
39097 _ACEOF
39098 cat confdefs.h >>conftest.$ac_ext
39099 cat >>conftest.$ac_ext <<_ACEOF
39100 /* end confdefs.h.  */
39101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39103 #define $ac_func innocuous_$ac_func
39104
39105 /* System header to define __stub macros and hopefully few prototypes,
39106     which can conflict with char $ac_func (); below.
39107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39108     <limits.h> exists even on freestanding compilers.  */
39109
39110 #ifdef __STDC__
39111 # include <limits.h>
39112 #else
39113 # include <assert.h>
39114 #endif
39115
39116 #undef $ac_func
39117
39118 /* Override any GCC internal prototype to avoid an error.
39119    Use char because int might match the return type of a GCC
39120    builtin and then its argument prototype would still apply.  */
39121 #ifdef __cplusplus
39122 extern "C"
39123 #endif
39124 char $ac_func ();
39125 /* The GNU C library defines this for functions which it implements
39126     to always fail with ENOSYS.  Some functions are actually named
39127     something starting with __ and the normal name is an alias.  */
39128 #if defined __stub_$ac_func || defined __stub___$ac_func
39129 choke me
39130 #endif
39131
39132 int
39133 main ()
39134 {
39135 return $ac_func ();
39136   ;
39137   return 0;
39138 }
39139 _ACEOF
39140 rm -f conftest.$ac_objext conftest$ac_exeext
39141 if { (ac_try="$ac_link"
39142 case "(($ac_try" in
39143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39144   *) ac_try_echo=$ac_try;;
39145 esac
39146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39147   (eval "$ac_link") 2>conftest.er1
39148   ac_status=$?
39149   grep -v '^ *+' conftest.er1 >conftest.err
39150   rm -f conftest.er1
39151   cat conftest.err >&5
39152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39153   (exit $ac_status); } && {
39154          test -z "$ac_c_werror_flag" ||
39155          test ! -s conftest.err
39156        } && test -s conftest$ac_exeext &&
39157        $as_test_x conftest$ac_exeext; then
39158   eval "$as_ac_var=yes"
39159 else
39160   echo "$as_me: failed program was:" >&5
39161 sed 's/^/| /' conftest.$ac_ext >&5
39162
39163         eval "$as_ac_var=no"
39164 fi
39165
39166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39167       conftest$ac_exeext conftest.$ac_ext
39168 fi
39169 ac_res=`eval echo '${'$as_ac_var'}'`
39170                { echo "$as_me:$LINENO: result: $ac_res" >&5
39171 echo "${ECHO_T}$ac_res" >&6; }
39172 if test `eval echo '${'$as_ac_var'}'` = yes; then
39173   cat >>confdefs.h <<_ACEOF
39174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39175 _ACEOF
39176
39177 fi
39178 done
39179
39180
39181 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
39182     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
39183 fi
39184
39185 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
39186 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
39187 if test "${ac_cv_type_mbstate_t+set}" = set; then
39188   echo $ECHO_N "(cached) $ECHO_C" >&6
39189 else
39190   cat >conftest.$ac_ext <<_ACEOF
39191 /* confdefs.h.  */
39192 _ACEOF
39193 cat confdefs.h >>conftest.$ac_ext
39194 cat >>conftest.$ac_ext <<_ACEOF
39195 /* end confdefs.h.  */
39196 #include <wchar.h>
39197
39198 typedef mbstate_t ac__type_new_;
39199 int
39200 main ()
39201 {
39202 if ((ac__type_new_ *) 0)
39203   return 0;
39204 if (sizeof (ac__type_new_))
39205   return 0;
39206   ;
39207   return 0;
39208 }
39209 _ACEOF
39210 rm -f conftest.$ac_objext
39211 if { (ac_try="$ac_compile"
39212 case "(($ac_try" in
39213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39214   *) ac_try_echo=$ac_try;;
39215 esac
39216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39217   (eval "$ac_compile") 2>conftest.er1
39218   ac_status=$?
39219   grep -v '^ *+' conftest.er1 >conftest.err
39220   rm -f conftest.er1
39221   cat conftest.err >&5
39222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39223   (exit $ac_status); } && {
39224          test -z "$ac_c_werror_flag" ||
39225          test ! -s conftest.err
39226        } && test -s conftest.$ac_objext; then
39227   ac_cv_type_mbstate_t=yes
39228 else
39229   echo "$as_me: failed program was:" >&5
39230 sed 's/^/| /' conftest.$ac_ext >&5
39231
39232         ac_cv_type_mbstate_t=no
39233 fi
39234
39235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39236 fi
39237 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
39238 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
39239 if test $ac_cv_type_mbstate_t = yes; then
39240
39241 cat >>confdefs.h <<_ACEOF
39242 #define HAVE_MBSTATE_T 1
39243 _ACEOF
39244
39245
39246 for ac_func in wcsrtombs
39247 do
39248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39252   echo $ECHO_N "(cached) $ECHO_C" >&6
39253 else
39254   cat >conftest.$ac_ext <<_ACEOF
39255 /* confdefs.h.  */
39256 _ACEOF
39257 cat confdefs.h >>conftest.$ac_ext
39258 cat >>conftest.$ac_ext <<_ACEOF
39259 /* end confdefs.h.  */
39260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39262 #define $ac_func innocuous_$ac_func
39263
39264 /* System header to define __stub macros and hopefully few prototypes,
39265     which can conflict with char $ac_func (); below.
39266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39267     <limits.h> exists even on freestanding compilers.  */
39268
39269 #ifdef __STDC__
39270 # include <limits.h>
39271 #else
39272 # include <assert.h>
39273 #endif
39274
39275 #undef $ac_func
39276
39277 /* Override any GCC internal prototype to avoid an error.
39278    Use char because int might match the return type of a GCC
39279    builtin and then its argument prototype would still apply.  */
39280 #ifdef __cplusplus
39281 extern "C"
39282 #endif
39283 char $ac_func ();
39284 /* The GNU C library defines this for functions which it implements
39285     to always fail with ENOSYS.  Some functions are actually named
39286     something starting with __ and the normal name is an alias.  */
39287 #if defined __stub_$ac_func || defined __stub___$ac_func
39288 choke me
39289 #endif
39290
39291 int
39292 main ()
39293 {
39294 return $ac_func ();
39295   ;
39296   return 0;
39297 }
39298 _ACEOF
39299 rm -f conftest.$ac_objext conftest$ac_exeext
39300 if { (ac_try="$ac_link"
39301 case "(($ac_try" in
39302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39303   *) ac_try_echo=$ac_try;;
39304 esac
39305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39306   (eval "$ac_link") 2>conftest.er1
39307   ac_status=$?
39308   grep -v '^ *+' conftest.er1 >conftest.err
39309   rm -f conftest.er1
39310   cat conftest.err >&5
39311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312   (exit $ac_status); } && {
39313          test -z "$ac_c_werror_flag" ||
39314          test ! -s conftest.err
39315        } && test -s conftest$ac_exeext &&
39316        $as_test_x conftest$ac_exeext; then
39317   eval "$as_ac_var=yes"
39318 else
39319   echo "$as_me: failed program was:" >&5
39320 sed 's/^/| /' conftest.$ac_ext >&5
39321
39322         eval "$as_ac_var=no"
39323 fi
39324
39325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39326       conftest$ac_exeext conftest.$ac_ext
39327 fi
39328 ac_res=`eval echo '${'$as_ac_var'}'`
39329                { echo "$as_me:$LINENO: result: $ac_res" >&5
39330 echo "${ECHO_T}$ac_res" >&6; }
39331 if test `eval echo '${'$as_ac_var'}'` = yes; then
39332   cat >>confdefs.h <<_ACEOF
39333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39334 _ACEOF
39335
39336 fi
39337 done
39338
39339 fi
39340
39341
39342
39343
39344
39345 for ac_func in snprintf vsnprintf vsscanf
39346 do
39347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39351   echo $ECHO_N "(cached) $ECHO_C" >&6
39352 else
39353   cat >conftest.$ac_ext <<_ACEOF
39354 /* confdefs.h.  */
39355 _ACEOF
39356 cat confdefs.h >>conftest.$ac_ext
39357 cat >>conftest.$ac_ext <<_ACEOF
39358 /* end confdefs.h.  */
39359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39361 #define $ac_func innocuous_$ac_func
39362
39363 /* System header to define __stub macros and hopefully few prototypes,
39364     which can conflict with char $ac_func (); below.
39365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39366     <limits.h> exists even on freestanding compilers.  */
39367
39368 #ifdef __STDC__
39369 # include <limits.h>
39370 #else
39371 # include <assert.h>
39372 #endif
39373
39374 #undef $ac_func
39375
39376 /* Override any GCC internal prototype to avoid an error.
39377    Use char because int might match the return type of a GCC
39378    builtin and then its argument prototype would still apply.  */
39379 #ifdef __cplusplus
39380 extern "C"
39381 #endif
39382 char $ac_func ();
39383 /* The GNU C library defines this for functions which it implements
39384     to always fail with ENOSYS.  Some functions are actually named
39385     something starting with __ and the normal name is an alias.  */
39386 #if defined __stub_$ac_func || defined __stub___$ac_func
39387 choke me
39388 #endif
39389
39390 int
39391 main ()
39392 {
39393 return $ac_func ();
39394   ;
39395   return 0;
39396 }
39397 _ACEOF
39398 rm -f conftest.$ac_objext conftest$ac_exeext
39399 if { (ac_try="$ac_link"
39400 case "(($ac_try" in
39401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39402   *) ac_try_echo=$ac_try;;
39403 esac
39404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39405   (eval "$ac_link") 2>conftest.er1
39406   ac_status=$?
39407   grep -v '^ *+' conftest.er1 >conftest.err
39408   rm -f conftest.er1
39409   cat conftest.err >&5
39410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39411   (exit $ac_status); } && {
39412          test -z "$ac_c_werror_flag" ||
39413          test ! -s conftest.err
39414        } && test -s conftest$ac_exeext &&
39415        $as_test_x conftest$ac_exeext; then
39416   eval "$as_ac_var=yes"
39417 else
39418   echo "$as_me: failed program was:" >&5
39419 sed 's/^/| /' conftest.$ac_ext >&5
39420
39421         eval "$as_ac_var=no"
39422 fi
39423
39424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39425       conftest$ac_exeext conftest.$ac_ext
39426 fi
39427 ac_res=`eval echo '${'$as_ac_var'}'`
39428                { echo "$as_me:$LINENO: result: $ac_res" >&5
39429 echo "${ECHO_T}$ac_res" >&6; }
39430 if test `eval echo '${'$as_ac_var'}'` = yes; then
39431   cat >>confdefs.h <<_ACEOF
39432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39433 _ACEOF
39434
39435 fi
39436 done
39437
39438
39439 ac_ext=cpp
39440 ac_cpp='$CXXCPP $CPPFLAGS'
39441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39444
39445 if test "$ac_cv_func_vsnprintf" = "yes"; then
39446         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
39447 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
39448 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
39449   echo $ECHO_N "(cached) $ECHO_C" >&6
39450 else
39451
39452                                                             cat >conftest.$ac_ext <<_ACEOF
39453 /* confdefs.h.  */
39454 _ACEOF
39455 cat confdefs.h >>conftest.$ac_ext
39456 cat >>conftest.$ac_ext <<_ACEOF
39457 /* end confdefs.h.  */
39458
39459                     #include <stdio.h>
39460                     #include <stdarg.h>
39461                     #ifdef __MSL__
39462                     #if __MSL__ >= 0x6000
39463                     namespace std {}
39464                     using namespace std;
39465                     #endif
39466                     #endif
39467
39468 int
39469 main ()
39470 {
39471
39472                     char *buf;
39473                     va_list ap;
39474                     vsnprintf(buf, 10u, "%s", ap);
39475
39476   ;
39477   return 0;
39478 }
39479 _ACEOF
39480 rm -f conftest.$ac_objext
39481 if { (ac_try="$ac_compile"
39482 case "(($ac_try" in
39483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39484   *) ac_try_echo=$ac_try;;
39485 esac
39486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39487   (eval "$ac_compile") 2>conftest.er1
39488   ac_status=$?
39489   grep -v '^ *+' conftest.er1 >conftest.err
39490   rm -f conftest.er1
39491   cat conftest.err >&5
39492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39493   (exit $ac_status); } && {
39494          test -z "$ac_cxx_werror_flag" ||
39495          test ! -s conftest.err
39496        } && test -s conftest.$ac_objext; then
39497   wx_cv_func_vsnprintf_decl=yes
39498 else
39499   echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39501
39502         wx_cv_func_vsnprintf_decl=no
39503
39504 fi
39505
39506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39507
39508
39509 fi
39510 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
39511 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
39512
39513     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
39514         cat >>confdefs.h <<\_ACEOF
39515 #define HAVE_VSNPRINTF_DECL 1
39516 _ACEOF
39517
39518
39519                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
39520 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
39521 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
39522   echo $ECHO_N "(cached) $ECHO_C" >&6
39523 else
39524
39525                 cat >conftest.$ac_ext <<_ACEOF
39526 /* confdefs.h.  */
39527 _ACEOF
39528 cat confdefs.h >>conftest.$ac_ext
39529 cat >>conftest.$ac_ext <<_ACEOF
39530 /* end confdefs.h.  */
39531
39532                         #include <stdio.h>
39533                         #include <stdarg.h>
39534                         #ifdef __MSL__
39535                         #if __MSL__ >= 0x6000
39536                         namespace std {}
39537                         using namespace std;
39538                         #endif
39539                         #endif
39540
39541 int
39542 main ()
39543 {
39544
39545                         char *buf;
39546                         va_list ap;
39547                         const char *fmt = "%s";
39548                         vsnprintf(buf, 10u, fmt, ap);
39549
39550   ;
39551   return 0;
39552 }
39553 _ACEOF
39554 rm -f conftest.$ac_objext
39555 if { (ac_try="$ac_compile"
39556 case "(($ac_try" in
39557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39558   *) ac_try_echo=$ac_try;;
39559 esac
39560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39561   (eval "$ac_compile") 2>conftest.er1
39562   ac_status=$?
39563   grep -v '^ *+' conftest.er1 >conftest.err
39564   rm -f conftest.er1
39565   cat conftest.err >&5
39566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39567   (exit $ac_status); } && {
39568          test -z "$ac_cxx_werror_flag" ||
39569          test ! -s conftest.err
39570        } && test -s conftest.$ac_objext; then
39571   wx_cv_func_broken_vsnprintf_decl=no
39572 else
39573   echo "$as_me: failed program was:" >&5
39574 sed 's/^/| /' conftest.$ac_ext >&5
39575
39576         wx_cv_func_broken_vsnprintf_decl=yes
39577
39578 fi
39579
39580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39581
39582
39583 fi
39584 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
39585 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
39586
39587         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
39588             cat >>confdefs.h <<\_ACEOF
39589 #define HAVE_BROKEN_VSNPRINTF_DECL 1
39590 _ACEOF
39591
39592         fi
39593     fi
39594 fi
39595
39596 if test "$ac_cv_func_snprintf" = "yes"; then
39597     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
39598 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
39599 if test "${wx_cv_func_snprintf_decl+set}" = set; then
39600   echo $ECHO_N "(cached) $ECHO_C" >&6
39601 else
39602
39603             cat >conftest.$ac_ext <<_ACEOF
39604 /* confdefs.h.  */
39605 _ACEOF
39606 cat confdefs.h >>conftest.$ac_ext
39607 cat >>conftest.$ac_ext <<_ACEOF
39608 /* end confdefs.h.  */
39609
39610                     #include <stdio.h>
39611                     #include <stdarg.h>
39612                     #ifdef __MSL__
39613                     #if __MSL__ >= 0x6000
39614                     namespace std {}
39615                     using namespace std;
39616                     #endif
39617                     #endif
39618
39619 int
39620 main ()
39621 {
39622
39623                     char *buf;
39624                     snprintf(buf, 10u, "%s", "wx");
39625
39626   ;
39627   return 0;
39628 }
39629 _ACEOF
39630 rm -f conftest.$ac_objext
39631 if { (ac_try="$ac_compile"
39632 case "(($ac_try" in
39633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39634   *) ac_try_echo=$ac_try;;
39635 esac
39636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39637   (eval "$ac_compile") 2>conftest.er1
39638   ac_status=$?
39639   grep -v '^ *+' conftest.er1 >conftest.err
39640   rm -f conftest.er1
39641   cat conftest.err >&5
39642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39643   (exit $ac_status); } && {
39644          test -z "$ac_cxx_werror_flag" ||
39645          test ! -s conftest.err
39646        } && test -s conftest.$ac_objext; then
39647   wx_cv_func_snprintf_decl=yes
39648 else
39649   echo "$as_me: failed program was:" >&5
39650 sed 's/^/| /' conftest.$ac_ext >&5
39651
39652         wx_cv_func_snprintf_decl=no
39653
39654 fi
39655
39656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39657
39658
39659 fi
39660 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
39661 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
39662
39663     if test "$wx_cv_func_snprintf_decl" = "yes"; then
39664         cat >>confdefs.h <<\_ACEOF
39665 #define HAVE_SNPRINTF_DECL 1
39666 _ACEOF
39667
39668     fi
39669
39670     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
39671
39672                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
39673 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
39674 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
39675   echo $ECHO_N "(cached) $ECHO_C" >&6
39676 else
39677
39678                 if test "$cross_compiling" = yes; then
39679
39680                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
39681 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
39682 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
39683 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
39684                         wx_cv_func_snprintf_pos_params=no
39685
39686
39687 else
39688   cat >conftest.$ac_ext <<_ACEOF
39689 /* confdefs.h.  */
39690 _ACEOF
39691 cat confdefs.h >>conftest.$ac_ext
39692 cat >>conftest.$ac_ext <<_ACEOF
39693 /* end confdefs.h.  */
39694
39695                         #include <stdio.h>
39696
39697                         int main (void)
39698                         {
39699                             char buffer[128];
39700                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
39701                             if (strcmp ("2 3 1", buffer) == 0)
39702                                 exit (0);
39703                             exit (1);
39704                         }
39705
39706 _ACEOF
39707 rm -f conftest$ac_exeext
39708 if { (ac_try="$ac_link"
39709 case "(($ac_try" in
39710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39711   *) ac_try_echo=$ac_try;;
39712 esac
39713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39714   (eval "$ac_link") 2>&5
39715   ac_status=$?
39716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39718   { (case "(($ac_try" in
39719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39720   *) ac_try_echo=$ac_try;;
39721 esac
39722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39723   (eval "$ac_try") 2>&5
39724   ac_status=$?
39725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726   (exit $ac_status); }; }; then
39727   wx_cv_func_snprintf_pos_params=no
39728 else
39729   echo "$as_me: program exited with status $ac_status" >&5
39730 echo "$as_me: failed program was:" >&5
39731 sed 's/^/| /' conftest.$ac_ext >&5
39732
39733 ( exit $ac_status )
39734 wx_cv_func_snprintf_pos_params=yes
39735 fi
39736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39737 fi
39738
39739
39740
39741
39742 fi
39743 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
39744 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
39745
39746         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
39747             cat >>confdefs.h <<\_ACEOF
39748 #define HAVE_UNIX98_PRINTF 1
39749 _ACEOF
39750
39751         fi
39752     fi
39753 fi
39754
39755 if test "$ac_cv_func_vsscanf" = "yes"; then
39756     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
39757 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
39758 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
39759   echo $ECHO_N "(cached) $ECHO_C" >&6
39760 else
39761
39762             cat >conftest.$ac_ext <<_ACEOF
39763 /* confdefs.h.  */
39764 _ACEOF
39765 cat confdefs.h >>conftest.$ac_ext
39766 cat >>conftest.$ac_ext <<_ACEOF
39767 /* end confdefs.h.  */
39768
39769                     #include <stdio.h>
39770                     #include <stdarg.h>
39771                     #ifdef __MSL__
39772                     #if __MSL__ >= 0x6000
39773                     namespace std {}
39774                     using namespace std;
39775                     #endif
39776                     #endif
39777
39778 int
39779 main ()
39780 {
39781
39782                     char *buf;
39783                     va_list args;
39784                     vsscanf(buf, "%s", args);
39785
39786   ;
39787   return 0;
39788 }
39789 _ACEOF
39790 rm -f conftest.$ac_objext
39791 if { (ac_try="$ac_compile"
39792 case "(($ac_try" in
39793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39794   *) ac_try_echo=$ac_try;;
39795 esac
39796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39797   (eval "$ac_compile") 2>conftest.er1
39798   ac_status=$?
39799   grep -v '^ *+' conftest.er1 >conftest.err
39800   rm -f conftest.er1
39801   cat conftest.err >&5
39802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39803   (exit $ac_status); } && {
39804          test -z "$ac_cxx_werror_flag" ||
39805          test ! -s conftest.err
39806        } && test -s conftest.$ac_objext; then
39807   wx_cv_func_vsscanf_decl=yes
39808 else
39809   echo "$as_me: failed program was:" >&5
39810 sed 's/^/| /' conftest.$ac_ext >&5
39811
39812         wx_cv_func_vsscanf_decl=no
39813
39814 fi
39815
39816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39817
39818
39819 fi
39820 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
39821 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
39822
39823     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
39824         cat >>confdefs.h <<\_ACEOF
39825 #define HAVE_VSSCANF_DECL 1
39826 _ACEOF
39827
39828     fi
39829 fi
39830 ac_ext=c
39831 ac_cpp='$CPP $CPPFLAGS'
39832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39835
39836
39837 if test "$wxUSE_UNICODE" = yes; then
39838
39839             wchar_headers="#include <stdio.h>
39840 #include <wchar.h>"
39841     case "${host}" in
39842         *-*-solaris2* )
39843
39844 for ac_header in widec.h
39845 do
39846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39850   echo $ECHO_N "(cached) $ECHO_C" >&6
39851 else
39852   cat >conftest.$ac_ext <<_ACEOF
39853 /* confdefs.h.  */
39854 _ACEOF
39855 cat confdefs.h >>conftest.$ac_ext
39856 cat >>conftest.$ac_ext <<_ACEOF
39857 /* end confdefs.h.  */
39858 $ac_includes_default
39859
39860 #include <$ac_header>
39861 _ACEOF
39862 rm -f conftest.$ac_objext
39863 if { (ac_try="$ac_compile"
39864 case "(($ac_try" in
39865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39866   *) ac_try_echo=$ac_try;;
39867 esac
39868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39869   (eval "$ac_compile") 2>conftest.er1
39870   ac_status=$?
39871   grep -v '^ *+' conftest.er1 >conftest.err
39872   rm -f conftest.er1
39873   cat conftest.err >&5
39874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875   (exit $ac_status); } && {
39876          test -z "$ac_c_werror_flag" ||
39877          test ! -s conftest.err
39878        } && test -s conftest.$ac_objext; then
39879   eval "$as_ac_Header=yes"
39880 else
39881   echo "$as_me: failed program was:" >&5
39882 sed 's/^/| /' conftest.$ac_ext >&5
39883
39884         eval "$as_ac_Header=no"
39885 fi
39886
39887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39888 fi
39889 ac_res=`eval echo '${'$as_ac_Header'}'`
39890                { echo "$as_me:$LINENO: result: $ac_res" >&5
39891 echo "${ECHO_T}$ac_res" >&6; }
39892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39893   cat >>confdefs.h <<_ACEOF
39894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39895 _ACEOF
39896
39897 fi
39898
39899 done
39900
39901             if test "$ac_cv_header_widec_h" = "yes"; then
39902                 wchar_headers="$wchar_headers
39903 #include <widec.h>"
39904             fi
39905     esac
39906
39907
39908   for wx_func in putws fputws wprintf vswprintf vswscanf
39909   do
39910     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39911 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39912 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39913   echo $ECHO_N "(cached) $ECHO_C" >&6
39914 else
39915
39916         cat >conftest.$ac_ext <<_ACEOF
39917
39918             /* confdefs.h.  */
39919 _ACEOF
39920 cat confdefs.h >>conftest.$ac_ext
39921 cat >>conftest.$ac_ext <<_ACEOF
39922 /* end confdefs.h.  */
39923
39924                 $wchar_headers
39925                 $ac_includes_default
39926
39927 int
39928 main ()
39929 {
39930
39931                 #ifndef $wx_func
39932                   &$wx_func;
39933                 #endif
39934
39935
39936   ;
39937   return 0;
39938 }
39939
39940 _ACEOF
39941 rm -f conftest.$ac_objext conftest$ac_exeext
39942 if { (ac_try="$ac_link"
39943 case "(($ac_try" in
39944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39945   *) ac_try_echo=$ac_try;;
39946 esac
39947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39948   (eval "$ac_link") 2>conftest.er1
39949   ac_status=$?
39950   grep -v '^ *+' conftest.er1 >conftest.err
39951   rm -f conftest.er1
39952   cat conftest.err >&5
39953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954   (exit $ac_status); } && {
39955          test -z "$ac_c_werror_flag" ||
39956          test ! -s conftest.err
39957        } && test -s conftest$ac_exeext &&
39958        $as_test_x conftest$ac_exeext; then
39959   eval wx_cv_func_$wx_func=yes
39960 else
39961   echo "$as_me: failed program was:" >&5
39962 sed 's/^/| /' conftest.$ac_ext >&5
39963
39964         eval wx_cv_func_$wx_func=no
39965 fi
39966
39967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39968       conftest$ac_exeext conftest.$ac_ext
39969
39970 fi
39971 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39972                { echo "$as_me:$LINENO: result: $ac_res" >&5
39973 echo "${ECHO_T}$ac_res" >&6; }
39974
39975     if eval test \$wx_cv_func_$wx_func = yes
39976     then
39977       cat >>confdefs.h <<_ACEOF
39978 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39979 _ACEOF
39980
39981
39982     else
39983       :
39984
39985     fi
39986   done
39987
39988
39989                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
39990 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
39991     cat >conftest.$ac_ext <<_ACEOF
39992 /* confdefs.h.  */
39993 _ACEOF
39994 cat confdefs.h >>conftest.$ac_ext
39995 cat >>conftest.$ac_ext <<_ACEOF
39996 /* end confdefs.h.  */
39997 #include <wchar.h>
39998 int
39999 main ()
40000 {
40001 &_vsnwprintf;
40002   ;
40003   return 0;
40004 }
40005 _ACEOF
40006 rm -f conftest.$ac_objext
40007 if { (ac_try="$ac_compile"
40008 case "(($ac_try" in
40009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40010   *) ac_try_echo=$ac_try;;
40011 esac
40012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40013   (eval "$ac_compile") 2>conftest.er1
40014   ac_status=$?
40015   grep -v '^ *+' conftest.er1 >conftest.err
40016   rm -f conftest.er1
40017   cat conftest.err >&5
40018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40019   (exit $ac_status); } && {
40020          test -z "$ac_c_werror_flag" ||
40021          test ! -s conftest.err
40022        } && test -s conftest.$ac_objext; then
40023   { echo "$as_me:$LINENO: result: yes" >&5
40024 echo "${ECHO_T}yes" >&6; }
40025                     cat >>confdefs.h <<\_ACEOF
40026 #define HAVE__VSNWPRINTF 1
40027 _ACEOF
40028
40029 else
40030   echo "$as_me: failed program was:" >&5
40031 sed 's/^/| /' conftest.$ac_ext >&5
40032
40033         { echo "$as_me:$LINENO: result: no" >&5
40034 echo "${ECHO_T}no" >&6; }
40035 fi
40036
40037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
40038 fi
40039
40040 if test "$wxUSE_FILE" = "yes"; then
40041
40042   for wx_func in fsync
40043   do
40044     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40045 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40046 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40047   echo $ECHO_N "(cached) $ECHO_C" >&6
40048 else
40049
40050         cat >conftest.$ac_ext <<_ACEOF
40051
40052             /* confdefs.h.  */
40053 _ACEOF
40054 cat confdefs.h >>conftest.$ac_ext
40055 cat >>conftest.$ac_ext <<_ACEOF
40056 /* end confdefs.h.  */
40057
40058
40059                 $ac_includes_default
40060
40061 int
40062 main ()
40063 {
40064
40065                 #ifndef $wx_func
40066                   &$wx_func;
40067                 #endif
40068
40069
40070   ;
40071   return 0;
40072 }
40073
40074 _ACEOF
40075 rm -f conftest.$ac_objext conftest$ac_exeext
40076 if { (ac_try="$ac_link"
40077 case "(($ac_try" in
40078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40079   *) ac_try_echo=$ac_try;;
40080 esac
40081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40082   (eval "$ac_link") 2>conftest.er1
40083   ac_status=$?
40084   grep -v '^ *+' conftest.er1 >conftest.err
40085   rm -f conftest.er1
40086   cat conftest.err >&5
40087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40088   (exit $ac_status); } && {
40089          test -z "$ac_c_werror_flag" ||
40090          test ! -s conftest.err
40091        } && test -s conftest$ac_exeext &&
40092        $as_test_x conftest$ac_exeext; then
40093   eval wx_cv_func_$wx_func=yes
40094 else
40095   echo "$as_me: failed program was:" >&5
40096 sed 's/^/| /' conftest.$ac_ext >&5
40097
40098         eval wx_cv_func_$wx_func=no
40099 fi
40100
40101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40102       conftest$ac_exeext conftest.$ac_ext
40103
40104 fi
40105 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40106                { echo "$as_me:$LINENO: result: $ac_res" >&5
40107 echo "${ECHO_T}$ac_res" >&6; }
40108
40109     if eval test \$wx_cv_func_$wx_func = yes
40110     then
40111       cat >>confdefs.h <<_ACEOF
40112 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40113 _ACEOF
40114
40115
40116     else
40117       :
40118
40119     fi
40120   done
40121
40122 fi
40123
40124 ac_ext=cpp
40125 ac_cpp='$CXXCPP $CPPFLAGS'
40126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40129
40130
40131   for wx_func in round
40132   do
40133     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40134 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40135 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40136   echo $ECHO_N "(cached) $ECHO_C" >&6
40137 else
40138
40139         cat >conftest.$ac_ext <<_ACEOF
40140
40141             /* confdefs.h.  */
40142 _ACEOF
40143 cat confdefs.h >>conftest.$ac_ext
40144 cat >>conftest.$ac_ext <<_ACEOF
40145 /* end confdefs.h.  */
40146
40147                 #include <math.h>
40148                 $ac_includes_default
40149
40150 int
40151 main ()
40152 {
40153
40154                 #ifndef $wx_func
40155                   &$wx_func;
40156                 #endif
40157
40158
40159   ;
40160   return 0;
40161 }
40162
40163 _ACEOF
40164 rm -f conftest.$ac_objext conftest$ac_exeext
40165 if { (ac_try="$ac_link"
40166 case "(($ac_try" in
40167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40168   *) ac_try_echo=$ac_try;;
40169 esac
40170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40171   (eval "$ac_link") 2>conftest.er1
40172   ac_status=$?
40173   grep -v '^ *+' conftest.er1 >conftest.err
40174   rm -f conftest.er1
40175   cat conftest.err >&5
40176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40177   (exit $ac_status); } && {
40178          test -z "$ac_cxx_werror_flag" ||
40179          test ! -s conftest.err
40180        } && test -s conftest$ac_exeext &&
40181        $as_test_x conftest$ac_exeext; then
40182   eval wx_cv_func_$wx_func=yes
40183 else
40184   echo "$as_me: failed program was:" >&5
40185 sed 's/^/| /' conftest.$ac_ext >&5
40186
40187         eval wx_cv_func_$wx_func=no
40188 fi
40189
40190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40191       conftest$ac_exeext conftest.$ac_ext
40192
40193 fi
40194 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40195                { echo "$as_me:$LINENO: result: $ac_res" >&5
40196 echo "${ECHO_T}$ac_res" >&6; }
40197
40198     if eval test \$wx_cv_func_$wx_func = yes
40199     then
40200       cat >>confdefs.h <<_ACEOF
40201 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40202 _ACEOF
40203
40204
40205     else
40206       :
40207
40208     fi
40209   done
40210
40211 ac_ext=c
40212 ac_cpp='$CPP $CPPFLAGS'
40213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40216
40217
40218 if test "$TOOLKIT" != "MSW"; then
40219
40220 if test "$wxUSE_LIBICONV" != "no" ; then
40221
40222
40223
40224 # Check whether --with-libiconv-prefix was given.
40225 if test "${with_libiconv_prefix+set}" = set; then
40226   withval=$with_libiconv_prefix;
40227     for dir in `echo "$withval" | tr : ' '`; do
40228       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
40229       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
40230     done
40231
40232 fi
40233
40234
40235   { echo "$as_me:$LINENO: checking for iconv" >&5
40236 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
40237 if test "${am_cv_func_iconv+set}" = set; then
40238   echo $ECHO_N "(cached) $ECHO_C" >&6
40239 else
40240
40241     am_cv_func_iconv="no, consider installing GNU libiconv"
40242     am_cv_lib_iconv=no
40243     cat >conftest.$ac_ext <<_ACEOF
40244 /* confdefs.h.  */
40245 _ACEOF
40246 cat confdefs.h >>conftest.$ac_ext
40247 cat >>conftest.$ac_ext <<_ACEOF
40248 /* end confdefs.h.  */
40249 #include <stdlib.h>
40250 #include <iconv.h>
40251 int
40252 main ()
40253 {
40254 iconv_t cd = iconv_open("","");
40255        iconv(cd,NULL,NULL,NULL,NULL);
40256        iconv_close(cd);
40257   ;
40258   return 0;
40259 }
40260 _ACEOF
40261 rm -f conftest.$ac_objext conftest$ac_exeext
40262 if { (ac_try="$ac_link"
40263 case "(($ac_try" in
40264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40265   *) ac_try_echo=$ac_try;;
40266 esac
40267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40268   (eval "$ac_link") 2>conftest.er1
40269   ac_status=$?
40270   grep -v '^ *+' conftest.er1 >conftest.err
40271   rm -f conftest.er1
40272   cat conftest.err >&5
40273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274   (exit $ac_status); } && {
40275          test -z "$ac_c_werror_flag" ||
40276          test ! -s conftest.err
40277        } && test -s conftest$ac_exeext &&
40278        $as_test_x conftest$ac_exeext; then
40279   am_cv_func_iconv=yes
40280 else
40281   echo "$as_me: failed program was:" >&5
40282 sed 's/^/| /' conftest.$ac_ext >&5
40283
40284
40285 fi
40286
40287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40288       conftest$ac_exeext conftest.$ac_ext
40289     if test "$am_cv_func_iconv" != yes; then
40290       am_save_LIBS="$LIBS"
40291       LIBS="$LIBS -liconv"
40292       cat >conftest.$ac_ext <<_ACEOF
40293 /* confdefs.h.  */
40294 _ACEOF
40295 cat confdefs.h >>conftest.$ac_ext
40296 cat >>conftest.$ac_ext <<_ACEOF
40297 /* end confdefs.h.  */
40298 #include <stdlib.h>
40299 #include <iconv.h>
40300 int
40301 main ()
40302 {
40303 iconv_t cd = iconv_open("","");
40304          iconv(cd,NULL,NULL,NULL,NULL);
40305          iconv_close(cd);
40306   ;
40307   return 0;
40308 }
40309 _ACEOF
40310 rm -f conftest.$ac_objext conftest$ac_exeext
40311 if { (ac_try="$ac_link"
40312 case "(($ac_try" in
40313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40314   *) ac_try_echo=$ac_try;;
40315 esac
40316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40317   (eval "$ac_link") 2>conftest.er1
40318   ac_status=$?
40319   grep -v '^ *+' conftest.er1 >conftest.err
40320   rm -f conftest.er1
40321   cat conftest.err >&5
40322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40323   (exit $ac_status); } && {
40324          test -z "$ac_c_werror_flag" ||
40325          test ! -s conftest.err
40326        } && test -s conftest$ac_exeext &&
40327        $as_test_x conftest$ac_exeext; then
40328   am_cv_lib_iconv=yes
40329         am_cv_func_iconv=yes
40330 else
40331   echo "$as_me: failed program was:" >&5
40332 sed 's/^/| /' conftest.$ac_ext >&5
40333
40334
40335 fi
40336
40337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40338       conftest$ac_exeext conftest.$ac_ext
40339       LIBS="$am_save_LIBS"
40340     fi
40341
40342 fi
40343 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40344 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
40345   if test "$am_cv_func_iconv" = yes; then
40346
40347 cat >>confdefs.h <<\_ACEOF
40348 #define HAVE_ICONV 1
40349 _ACEOF
40350
40351     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
40352 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
40353 if test "${wx_cv_func_iconv_const+set}" = set; then
40354   echo $ECHO_N "(cached) $ECHO_C" >&6
40355 else
40356   cat >conftest.$ac_ext <<_ACEOF
40357 /* confdefs.h.  */
40358 _ACEOF
40359 cat confdefs.h >>conftest.$ac_ext
40360 cat >>conftest.$ac_ext <<_ACEOF
40361 /* end confdefs.h.  */
40362
40363 #include <stdlib.h>
40364 #include <iconv.h>
40365 extern
40366 #ifdef __cplusplus
40367 "C"
40368 #endif
40369 #if defined(__STDC__) || defined(__cplusplus)
40370 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
40371 #else
40372 size_t iconv();
40373 #endif
40374
40375 int
40376 main ()
40377 {
40378
40379   ;
40380   return 0;
40381 }
40382 _ACEOF
40383 rm -f conftest.$ac_objext
40384 if { (ac_try="$ac_compile"
40385 case "(($ac_try" in
40386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40387   *) ac_try_echo=$ac_try;;
40388 esac
40389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40390   (eval "$ac_compile") 2>conftest.er1
40391   ac_status=$?
40392   grep -v '^ *+' conftest.er1 >conftest.err
40393   rm -f conftest.er1
40394   cat conftest.err >&5
40395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40396   (exit $ac_status); } && {
40397          test -z "$ac_c_werror_flag" ||
40398          test ! -s conftest.err
40399        } && test -s conftest.$ac_objext; then
40400   wx_cv_func_iconv_const="no"
40401 else
40402   echo "$as_me: failed program was:" >&5
40403 sed 's/^/| /' conftest.$ac_ext >&5
40404
40405         wx_cv_func_iconv_const="yes"
40406
40407 fi
40408
40409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40410
40411 fi
40412 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
40413 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
40414
40415     iconv_const=
40416     if test "x$wx_cv_func_iconv_const" = "xyes"; then
40417         iconv_const="const"
40418     fi
40419
40420
40421 cat >>confdefs.h <<_ACEOF
40422 #define ICONV_CONST $iconv_const
40423 _ACEOF
40424
40425   fi
40426   LIBICONV=
40427   if test "$am_cv_lib_iconv" = yes; then
40428     LIBICONV="-liconv"
40429   fi
40430
40431
40432     LIBS="$LIBICONV $LIBS"
40433 fi
40434
40435 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
40436
40437 for ac_func in sigaction
40438 do
40439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40443   echo $ECHO_N "(cached) $ECHO_C" >&6
40444 else
40445   cat >conftest.$ac_ext <<_ACEOF
40446 /* confdefs.h.  */
40447 _ACEOF
40448 cat confdefs.h >>conftest.$ac_ext
40449 cat >>conftest.$ac_ext <<_ACEOF
40450 /* end confdefs.h.  */
40451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40453 #define $ac_func innocuous_$ac_func
40454
40455 /* System header to define __stub macros and hopefully few prototypes,
40456     which can conflict with char $ac_func (); below.
40457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40458     <limits.h> exists even on freestanding compilers.  */
40459
40460 #ifdef __STDC__
40461 # include <limits.h>
40462 #else
40463 # include <assert.h>
40464 #endif
40465
40466 #undef $ac_func
40467
40468 /* Override any GCC internal prototype to avoid an error.
40469    Use char because int might match the return type of a GCC
40470    builtin and then its argument prototype would still apply.  */
40471 #ifdef __cplusplus
40472 extern "C"
40473 #endif
40474 char $ac_func ();
40475 /* The GNU C library defines this for functions which it implements
40476     to always fail with ENOSYS.  Some functions are actually named
40477     something starting with __ and the normal name is an alias.  */
40478 #if defined __stub_$ac_func || defined __stub___$ac_func
40479 choke me
40480 #endif
40481
40482 int
40483 main ()
40484 {
40485 return $ac_func ();
40486   ;
40487   return 0;
40488 }
40489 _ACEOF
40490 rm -f conftest.$ac_objext conftest$ac_exeext
40491 if { (ac_try="$ac_link"
40492 case "(($ac_try" in
40493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40494   *) ac_try_echo=$ac_try;;
40495 esac
40496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40497   (eval "$ac_link") 2>conftest.er1
40498   ac_status=$?
40499   grep -v '^ *+' conftest.er1 >conftest.err
40500   rm -f conftest.er1
40501   cat conftest.err >&5
40502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40503   (exit $ac_status); } && {
40504          test -z "$ac_c_werror_flag" ||
40505          test ! -s conftest.err
40506        } && test -s conftest$ac_exeext &&
40507        $as_test_x conftest$ac_exeext; then
40508   eval "$as_ac_var=yes"
40509 else
40510   echo "$as_me: failed program was:" >&5
40511 sed 's/^/| /' conftest.$ac_ext >&5
40512
40513         eval "$as_ac_var=no"
40514 fi
40515
40516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40517       conftest$ac_exeext conftest.$ac_ext
40518 fi
40519 ac_res=`eval echo '${'$as_ac_var'}'`
40520                { echo "$as_me:$LINENO: result: $ac_res" >&5
40521 echo "${ECHO_T}$ac_res" >&6; }
40522 if test `eval echo '${'$as_ac_var'}'` = yes; then
40523   cat >>confdefs.h <<_ACEOF
40524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40525 _ACEOF
40526
40527 fi
40528 done
40529
40530
40531     if test "$ac_cv_func_sigaction" = "no"; then
40532         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
40533 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
40534         wxUSE_ON_FATAL_EXCEPTION=no
40535     fi
40536
40537     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
40538       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
40539 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
40540 if test "${wx_cv_type_sa_handler+set}" = set; then
40541   echo $ECHO_N "(cached) $ECHO_C" >&6
40542 else
40543
40544                 ac_ext=cpp
40545 ac_cpp='$CXXCPP $CPPFLAGS'
40546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40549
40550         cat >conftest.$ac_ext <<_ACEOF
40551 /* confdefs.h.  */
40552 _ACEOF
40553 cat confdefs.h >>conftest.$ac_ext
40554 cat >>conftest.$ac_ext <<_ACEOF
40555 /* end confdefs.h.  */
40556 #include <signal.h>
40557 int
40558 main ()
40559 {
40560
40561                         extern void testSigHandler(int);
40562
40563                         struct sigaction sa;
40564                         sa.sa_handler = testSigHandler;
40565
40566   ;
40567   return 0;
40568 }
40569 _ACEOF
40570 rm -f conftest.$ac_objext
40571 if { (ac_try="$ac_compile"
40572 case "(($ac_try" in
40573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40574   *) ac_try_echo=$ac_try;;
40575 esac
40576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40577   (eval "$ac_compile") 2>conftest.er1
40578   ac_status=$?
40579   grep -v '^ *+' conftest.er1 >conftest.err
40580   rm -f conftest.er1
40581   cat conftest.err >&5
40582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40583   (exit $ac_status); } && {
40584          test -z "$ac_cxx_werror_flag" ||
40585          test ! -s conftest.err
40586        } && test -s conftest.$ac_objext; then
40587
40588                         wx_cv_type_sa_handler=int
40589
40590 else
40591   echo "$as_me: failed program was:" >&5
40592 sed 's/^/| /' conftest.$ac_ext >&5
40593
40594
40595                         wx_cv_type_sa_handler=void
40596
40597 fi
40598
40599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40600         ac_ext=c
40601 ac_cpp='$CPP $CPPFLAGS'
40602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40605
40606
40607 fi
40608 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
40609 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
40610
40611       cat >>confdefs.h <<_ACEOF
40612 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
40613 _ACEOF
40614
40615     fi
40616 fi
40617
40618 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
40619     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
40620 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
40621 if test "${wx_cv_func_backtrace+set}" = set; then
40622   echo $ECHO_N "(cached) $ECHO_C" >&6
40623 else
40624
40625             ac_ext=cpp
40626 ac_cpp='$CXXCPP $CPPFLAGS'
40627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40630
40631             cat >conftest.$ac_ext <<_ACEOF
40632 /* confdefs.h.  */
40633 _ACEOF
40634 cat confdefs.h >>conftest.$ac_ext
40635 cat >>conftest.$ac_ext <<_ACEOF
40636 /* end confdefs.h.  */
40637 #include <execinfo.h>
40638 int
40639 main ()
40640 {
40641
40642                     void *trace[1];
40643                     char **messages;
40644
40645                     backtrace(trace, 1);
40646                     messages = backtrace_symbols(trace, 1);
40647
40648   ;
40649   return 0;
40650 }
40651 _ACEOF
40652 rm -f conftest.$ac_objext
40653 if { (ac_try="$ac_compile"
40654 case "(($ac_try" in
40655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40656   *) ac_try_echo=$ac_try;;
40657 esac
40658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40659   (eval "$ac_compile") 2>conftest.er1
40660   ac_status=$?
40661   grep -v '^ *+' conftest.er1 >conftest.err
40662   rm -f conftest.er1
40663   cat conftest.err >&5
40664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665   (exit $ac_status); } && {
40666          test -z "$ac_cxx_werror_flag" ||
40667          test ! -s conftest.err
40668        } && test -s conftest.$ac_objext; then
40669   wx_cv_func_backtrace=yes
40670 else
40671   echo "$as_me: failed program was:" >&5
40672 sed 's/^/| /' conftest.$ac_ext >&5
40673
40674         wx_cv_func_backtrace=no
40675
40676 fi
40677
40678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40679             ac_ext=c
40680 ac_cpp='$CPP $CPPFLAGS'
40681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40684
40685
40686
40687 fi
40688 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
40689 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
40690
40691
40692     if test "$wx_cv_func_backtrace" = "no"; then
40693         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
40694 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
40695         wxUSE_STACKWALKER=no
40696     else
40697         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
40698 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
40699 if test "${wx_cv_func_cxa_demangle+set}" = set; then
40700   echo $ECHO_N "(cached) $ECHO_C" >&6
40701 else
40702
40703                 ac_ext=cpp
40704 ac_cpp='$CXXCPP $CPPFLAGS'
40705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40708
40709                 cat >conftest.$ac_ext <<_ACEOF
40710 /* confdefs.h.  */
40711 _ACEOF
40712 cat confdefs.h >>conftest.$ac_ext
40713 cat >>conftest.$ac_ext <<_ACEOF
40714 /* end confdefs.h.  */
40715 #include <cxxabi.h>
40716 int
40717 main ()
40718 {
40719
40720                         int rc;
40721                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
40722
40723   ;
40724   return 0;
40725 }
40726 _ACEOF
40727 rm -f conftest.$ac_objext conftest$ac_exeext
40728 if { (ac_try="$ac_link"
40729 case "(($ac_try" in
40730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40731   *) ac_try_echo=$ac_try;;
40732 esac
40733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40734   (eval "$ac_link") 2>conftest.er1
40735   ac_status=$?
40736   grep -v '^ *+' conftest.er1 >conftest.err
40737   rm -f conftest.er1
40738   cat conftest.err >&5
40739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40740   (exit $ac_status); } && {
40741          test -z "$ac_cxx_werror_flag" ||
40742          test ! -s conftest.err
40743        } && test -s conftest$ac_exeext &&
40744        $as_test_x conftest$ac_exeext; then
40745   wx_cv_func_cxa_demangle=yes
40746 else
40747   echo "$as_me: failed program was:" >&5
40748 sed 's/^/| /' conftest.$ac_ext >&5
40749
40750         wx_cv_func_cxa_demangle=no
40751
40752 fi
40753
40754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40755       conftest$ac_exeext conftest.$ac_ext
40756                 ac_ext=c
40757 ac_cpp='$CPP $CPPFLAGS'
40758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40761
40762
40763
40764 fi
40765 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
40766 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
40767
40768         if test "$wx_cv_func_cxa_demangle" = "yes"; then
40769             cat >>confdefs.h <<\_ACEOF
40770 #define HAVE_CXA_DEMANGLE 1
40771 _ACEOF
40772
40773         fi
40774     fi
40775 fi
40776
40777 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
40778     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
40779 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
40780     wxUSE_STACKWALKER=no
40781 fi
40782
40783
40784
40785
40786 for ac_func in mkstemp mktemp
40787 do
40788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40792   echo $ECHO_N "(cached) $ECHO_C" >&6
40793 else
40794   cat >conftest.$ac_ext <<_ACEOF
40795 /* confdefs.h.  */
40796 _ACEOF
40797 cat confdefs.h >>conftest.$ac_ext
40798 cat >>conftest.$ac_ext <<_ACEOF
40799 /* end confdefs.h.  */
40800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40802 #define $ac_func innocuous_$ac_func
40803
40804 /* System header to define __stub macros and hopefully few prototypes,
40805     which can conflict with char $ac_func (); below.
40806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40807     <limits.h> exists even on freestanding compilers.  */
40808
40809 #ifdef __STDC__
40810 # include <limits.h>
40811 #else
40812 # include <assert.h>
40813 #endif
40814
40815 #undef $ac_func
40816
40817 /* Override any GCC internal prototype to avoid an error.
40818    Use char because int might match the return type of a GCC
40819    builtin and then its argument prototype would still apply.  */
40820 #ifdef __cplusplus
40821 extern "C"
40822 #endif
40823 char $ac_func ();
40824 /* The GNU C library defines this for functions which it implements
40825     to always fail with ENOSYS.  Some functions are actually named
40826     something starting with __ and the normal name is an alias.  */
40827 #if defined __stub_$ac_func || defined __stub___$ac_func
40828 choke me
40829 #endif
40830
40831 int
40832 main ()
40833 {
40834 return $ac_func ();
40835   ;
40836   return 0;
40837 }
40838 _ACEOF
40839 rm -f conftest.$ac_objext conftest$ac_exeext
40840 if { (ac_try="$ac_link"
40841 case "(($ac_try" in
40842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40843   *) ac_try_echo=$ac_try;;
40844 esac
40845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40846   (eval "$ac_link") 2>conftest.er1
40847   ac_status=$?
40848   grep -v '^ *+' conftest.er1 >conftest.err
40849   rm -f conftest.er1
40850   cat conftest.err >&5
40851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40852   (exit $ac_status); } && {
40853          test -z "$ac_c_werror_flag" ||
40854          test ! -s conftest.err
40855        } && test -s conftest$ac_exeext &&
40856        $as_test_x conftest$ac_exeext; then
40857   eval "$as_ac_var=yes"
40858 else
40859   echo "$as_me: failed program was:" >&5
40860 sed 's/^/| /' conftest.$ac_ext >&5
40861
40862         eval "$as_ac_var=no"
40863 fi
40864
40865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40866       conftest$ac_exeext conftest.$ac_ext
40867 fi
40868 ac_res=`eval echo '${'$as_ac_var'}'`
40869                { echo "$as_me:$LINENO: result: $ac_res" >&5
40870 echo "${ECHO_T}$ac_res" >&6; }
40871 if test `eval echo '${'$as_ac_var'}'` = yes; then
40872   cat >>confdefs.h <<_ACEOF
40873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40874 _ACEOF
40875  break
40876 fi
40877 done
40878
40879
40880 { echo "$as_me:$LINENO: checking for statfs" >&5
40881 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
40882 if test "${wx_cv_func_statfs+set}" = set; then
40883   echo $ECHO_N "(cached) $ECHO_C" >&6
40884 else
40885   cat >conftest.$ac_ext <<_ACEOF
40886 /* confdefs.h.  */
40887 _ACEOF
40888 cat confdefs.h >>conftest.$ac_ext
40889 cat >>conftest.$ac_ext <<_ACEOF
40890 /* end confdefs.h.  */
40891
40892              #if defined(__BSD__)
40893              #include <sys/param.h>
40894              #include <sys/mount.h>
40895              #else
40896              #include <sys/vfs.h>
40897              #endif
40898
40899 int
40900 main ()
40901 {
40902
40903              long l;
40904              struct statfs fs;
40905              statfs("/", &fs);
40906              l = fs.f_bsize;
40907              l += fs.f_blocks;
40908              l += fs.f_bavail;
40909
40910   ;
40911   return 0;
40912 }
40913 _ACEOF
40914 rm -f conftest.$ac_objext
40915 if { (ac_try="$ac_compile"
40916 case "(($ac_try" in
40917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40918   *) ac_try_echo=$ac_try;;
40919 esac
40920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40921   (eval "$ac_compile") 2>conftest.er1
40922   ac_status=$?
40923   grep -v '^ *+' conftest.er1 >conftest.err
40924   rm -f conftest.er1
40925   cat conftest.err >&5
40926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40927   (exit $ac_status); } && {
40928          test -z "$ac_c_werror_flag" ||
40929          test ! -s conftest.err
40930        } && test -s conftest.$ac_objext; then
40931   wx_cv_func_statfs=yes
40932 else
40933   echo "$as_me: failed program was:" >&5
40934 sed 's/^/| /' conftest.$ac_ext >&5
40935
40936         wx_cv_func_statfs=no
40937
40938 fi
40939
40940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40941
40942 fi
40943 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
40944 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
40945
40946 if test "$wx_cv_func_statfs" = "yes"; then
40947         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
40948 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
40949 if test "${wx_cv_func_statfs_decl+set}" = set; then
40950   echo $ECHO_N "(cached) $ECHO_C" >&6
40951 else
40952   ac_ext=cpp
40953 ac_cpp='$CXXCPP $CPPFLAGS'
40954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40957
40958         cat >conftest.$ac_ext <<_ACEOF
40959 /* confdefs.h.  */
40960 _ACEOF
40961 cat confdefs.h >>conftest.$ac_ext
40962 cat >>conftest.$ac_ext <<_ACEOF
40963 /* end confdefs.h.  */
40964
40965                  #if defined(__BSD__)
40966                  #include <sys/param.h>
40967                  #include <sys/mount.h>
40968                  #else
40969                  #include <sys/vfs.h>
40970                  #endif
40971
40972 int
40973 main ()
40974 {
40975
40976                 struct statfs fs;
40977                 statfs("", &fs);
40978
40979   ;
40980   return 0;
40981 }
40982 _ACEOF
40983 rm -f conftest.$ac_objext
40984 if { (ac_try="$ac_compile"
40985 case "(($ac_try" in
40986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40987   *) ac_try_echo=$ac_try;;
40988 esac
40989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40990   (eval "$ac_compile") 2>conftest.er1
40991   ac_status=$?
40992   grep -v '^ *+' conftest.er1 >conftest.err
40993   rm -f conftest.er1
40994   cat conftest.err >&5
40995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40996   (exit $ac_status); } && {
40997          test -z "$ac_cxx_werror_flag" ||
40998          test ! -s conftest.err
40999        } && test -s conftest.$ac_objext; then
41000   wx_cv_func_statfs_decl=yes
41001 else
41002   echo "$as_me: failed program was:" >&5
41003 sed 's/^/| /' conftest.$ac_ext >&5
41004
41005         wx_cv_func_statfs_decl=no
41006
41007 fi
41008
41009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41010         ac_ext=c
41011 ac_cpp='$CPP $CPPFLAGS'
41012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41015
41016
41017 fi
41018 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
41019 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
41020
41021     if test "$wx_cv_func_statfs_decl" = "yes"; then
41022         cat >>confdefs.h <<\_ACEOF
41023 #define HAVE_STATFS_DECL 1
41024 _ACEOF
41025
41026     fi
41027
41028     wx_cv_type_statvfs_t="struct statfs"
41029     cat >>confdefs.h <<\_ACEOF
41030 #define HAVE_STATFS 1
41031 _ACEOF
41032
41033 else
41034     { echo "$as_me:$LINENO: checking for statvfs" >&5
41035 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
41036 if test "${wx_cv_func_statvfs+set}" = set; then
41037   echo $ECHO_N "(cached) $ECHO_C" >&6
41038 else
41039   cat >conftest.$ac_ext <<_ACEOF
41040 /* confdefs.h.  */
41041 _ACEOF
41042 cat confdefs.h >>conftest.$ac_ext
41043 cat >>conftest.$ac_ext <<_ACEOF
41044 /* end confdefs.h.  */
41045
41046                 #include <stddef.h>
41047                 #include <sys/statvfs.h>
41048
41049 int
41050 main ()
41051 {
41052
41053                 statvfs("/", NULL);
41054
41055   ;
41056   return 0;
41057 }
41058 _ACEOF
41059 rm -f conftest.$ac_objext
41060 if { (ac_try="$ac_compile"
41061 case "(($ac_try" in
41062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41063   *) ac_try_echo=$ac_try;;
41064 esac
41065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41066   (eval "$ac_compile") 2>conftest.er1
41067   ac_status=$?
41068   grep -v '^ *+' conftest.er1 >conftest.err
41069   rm -f conftest.er1
41070   cat conftest.err >&5
41071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072   (exit $ac_status); } && {
41073          test -z "$ac_c_werror_flag" ||
41074          test ! -s conftest.err
41075        } && test -s conftest.$ac_objext; then
41076   wx_cv_func_statvfs=yes
41077 else
41078   echo "$as_me: failed program was:" >&5
41079 sed 's/^/| /' conftest.$ac_ext >&5
41080
41081         wx_cv_func_statvfs=no
41082
41083 fi
41084
41085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41086
41087 fi
41088 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
41089 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
41090
41091     if test "$wx_cv_func_statvfs" = "yes"; then
41092                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
41093 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
41094 if test "${wx_cv_type_statvfs_t+set}" = set; then
41095   echo $ECHO_N "(cached) $ECHO_C" >&6
41096 else
41097   ac_ext=cpp
41098 ac_cpp='$CXXCPP $CPPFLAGS'
41099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41102
41103             cat >conftest.$ac_ext <<_ACEOF
41104 /* confdefs.h.  */
41105 _ACEOF
41106 cat confdefs.h >>conftest.$ac_ext
41107 cat >>conftest.$ac_ext <<_ACEOF
41108 /* end confdefs.h.  */
41109
41110                     #include <sys/statvfs.h>
41111
41112 int
41113 main ()
41114 {
41115
41116                     long l;
41117                     statvfs_t fs;
41118                     statvfs("/", &fs);
41119                     l = fs.f_bsize;
41120                     l += fs.f_blocks;
41121                     l += fs.f_bavail;
41122
41123   ;
41124   return 0;
41125 }
41126 _ACEOF
41127 rm -f conftest.$ac_objext
41128 if { (ac_try="$ac_compile"
41129 case "(($ac_try" in
41130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41131   *) ac_try_echo=$ac_try;;
41132 esac
41133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41134   (eval "$ac_compile") 2>conftest.er1
41135   ac_status=$?
41136   grep -v '^ *+' conftest.er1 >conftest.err
41137   rm -f conftest.er1
41138   cat conftest.err >&5
41139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41140   (exit $ac_status); } && {
41141          test -z "$ac_cxx_werror_flag" ||
41142          test ! -s conftest.err
41143        } && test -s conftest.$ac_objext; then
41144   wx_cv_type_statvfs_t=statvfs_t
41145 else
41146   echo "$as_me: failed program was:" >&5
41147 sed 's/^/| /' conftest.$ac_ext >&5
41148
41149
41150                     cat >conftest.$ac_ext <<_ACEOF
41151 /* confdefs.h.  */
41152 _ACEOF
41153 cat confdefs.h >>conftest.$ac_ext
41154 cat >>conftest.$ac_ext <<_ACEOF
41155 /* end confdefs.h.  */
41156
41157                             #include <sys/statvfs.h>
41158
41159 int
41160 main ()
41161 {
41162
41163                             long l;
41164                             struct statvfs fs;
41165                             statvfs("/", &fs);
41166                             l = fs.f_bsize;
41167                             l += fs.f_blocks;
41168                             l += fs.f_bavail;
41169
41170   ;
41171   return 0;
41172 }
41173 _ACEOF
41174 rm -f conftest.$ac_objext
41175 if { (ac_try="$ac_compile"
41176 case "(($ac_try" in
41177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41178   *) ac_try_echo=$ac_try;;
41179 esac
41180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41181   (eval "$ac_compile") 2>conftest.er1
41182   ac_status=$?
41183   grep -v '^ *+' conftest.er1 >conftest.err
41184   rm -f conftest.er1
41185   cat conftest.err >&5
41186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41187   (exit $ac_status); } && {
41188          test -z "$ac_cxx_werror_flag" ||
41189          test ! -s conftest.err
41190        } && test -s conftest.$ac_objext; then
41191   wx_cv_type_statvfs_t="struct statvfs"
41192 else
41193   echo "$as_me: failed program was:" >&5
41194 sed 's/^/| /' conftest.$ac_ext >&5
41195
41196         wx_cv_type_statvfs_t="unknown"
41197
41198 fi
41199
41200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41201
41202
41203 fi
41204
41205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41206             ac_ext=c
41207 ac_cpp='$CPP $CPPFLAGS'
41208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41211
41212
41213 fi
41214 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
41215 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
41216
41217         if test "$wx_cv_type_statvfs_t" != "unknown"; then
41218             cat >>confdefs.h <<\_ACEOF
41219 #define HAVE_STATVFS 1
41220 _ACEOF
41221
41222         fi
41223     else
41224                 wx_cv_type_statvfs_t="unknown"
41225     fi
41226 fi
41227
41228 if test "$wx_cv_type_statvfs_t" != "unknown"; then
41229     cat >>confdefs.h <<_ACEOF
41230 #define WX_STATFS_T $wx_cv_type_statvfs_t
41231 _ACEOF
41232
41233 else
41234     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
41235 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
41236 fi
41237
41238 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41239
41240
41241 for ac_func in fcntl flock
41242 do
41243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41247   echo $ECHO_N "(cached) $ECHO_C" >&6
41248 else
41249   cat >conftest.$ac_ext <<_ACEOF
41250 /* confdefs.h.  */
41251 _ACEOF
41252 cat confdefs.h >>conftest.$ac_ext
41253 cat >>conftest.$ac_ext <<_ACEOF
41254 /* end confdefs.h.  */
41255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41257 #define $ac_func innocuous_$ac_func
41258
41259 /* System header to define __stub macros and hopefully few prototypes,
41260     which can conflict with char $ac_func (); below.
41261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41262     <limits.h> exists even on freestanding compilers.  */
41263
41264 #ifdef __STDC__
41265 # include <limits.h>
41266 #else
41267 # include <assert.h>
41268 #endif
41269
41270 #undef $ac_func
41271
41272 /* Override any GCC internal prototype to avoid an error.
41273    Use char because int might match the return type of a GCC
41274    builtin and then its argument prototype would still apply.  */
41275 #ifdef __cplusplus
41276 extern "C"
41277 #endif
41278 char $ac_func ();
41279 /* The GNU C library defines this for functions which it implements
41280     to always fail with ENOSYS.  Some functions are actually named
41281     something starting with __ and the normal name is an alias.  */
41282 #if defined __stub_$ac_func || defined __stub___$ac_func
41283 choke me
41284 #endif
41285
41286 int
41287 main ()
41288 {
41289 return $ac_func ();
41290   ;
41291   return 0;
41292 }
41293 _ACEOF
41294 rm -f conftest.$ac_objext conftest$ac_exeext
41295 if { (ac_try="$ac_link"
41296 case "(($ac_try" in
41297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41298   *) ac_try_echo=$ac_try;;
41299 esac
41300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41301   (eval "$ac_link") 2>conftest.er1
41302   ac_status=$?
41303   grep -v '^ *+' conftest.er1 >conftest.err
41304   rm -f conftest.er1
41305   cat conftest.err >&5
41306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41307   (exit $ac_status); } && {
41308          test -z "$ac_c_werror_flag" ||
41309          test ! -s conftest.err
41310        } && test -s conftest$ac_exeext &&
41311        $as_test_x conftest$ac_exeext; then
41312   eval "$as_ac_var=yes"
41313 else
41314   echo "$as_me: failed program was:" >&5
41315 sed 's/^/| /' conftest.$ac_ext >&5
41316
41317         eval "$as_ac_var=no"
41318 fi
41319
41320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41321       conftest$ac_exeext conftest.$ac_ext
41322 fi
41323 ac_res=`eval echo '${'$as_ac_var'}'`
41324                { echo "$as_me:$LINENO: result: $ac_res" >&5
41325 echo "${ECHO_T}$ac_res" >&6; }
41326 if test `eval echo '${'$as_ac_var'}'` = yes; then
41327   cat >>confdefs.h <<_ACEOF
41328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41329 _ACEOF
41330  break
41331 fi
41332 done
41333
41334
41335     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
41336         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
41337 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
41338         wxUSE_SNGLINST_CHECKER=no
41339     fi
41340 fi
41341
41342
41343
41344 for ac_func in setenv putenv
41345 do
41346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41350   echo $ECHO_N "(cached) $ECHO_C" >&6
41351 else
41352   cat >conftest.$ac_ext <<_ACEOF
41353 /* confdefs.h.  */
41354 _ACEOF
41355 cat confdefs.h >>conftest.$ac_ext
41356 cat >>conftest.$ac_ext <<_ACEOF
41357 /* end confdefs.h.  */
41358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41360 #define $ac_func innocuous_$ac_func
41361
41362 /* System header to define __stub macros and hopefully few prototypes,
41363     which can conflict with char $ac_func (); below.
41364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41365     <limits.h> exists even on freestanding compilers.  */
41366
41367 #ifdef __STDC__
41368 # include <limits.h>
41369 #else
41370 # include <assert.h>
41371 #endif
41372
41373 #undef $ac_func
41374
41375 /* Override any GCC internal prototype to avoid an error.
41376    Use char because int might match the return type of a GCC
41377    builtin and then its argument prototype would still apply.  */
41378 #ifdef __cplusplus
41379 extern "C"
41380 #endif
41381 char $ac_func ();
41382 /* The GNU C library defines this for functions which it implements
41383     to always fail with ENOSYS.  Some functions are actually named
41384     something starting with __ and the normal name is an alias.  */
41385 #if defined __stub_$ac_func || defined __stub___$ac_func
41386 choke me
41387 #endif
41388
41389 int
41390 main ()
41391 {
41392 return $ac_func ();
41393   ;
41394   return 0;
41395 }
41396 _ACEOF
41397 rm -f conftest.$ac_objext conftest$ac_exeext
41398 if { (ac_try="$ac_link"
41399 case "(($ac_try" in
41400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41401   *) ac_try_echo=$ac_try;;
41402 esac
41403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41404   (eval "$ac_link") 2>conftest.er1
41405   ac_status=$?
41406   grep -v '^ *+' conftest.er1 >conftest.err
41407   rm -f conftest.er1
41408   cat conftest.err >&5
41409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410   (exit $ac_status); } && {
41411          test -z "$ac_c_werror_flag" ||
41412          test ! -s conftest.err
41413        } && test -s conftest$ac_exeext &&
41414        $as_test_x conftest$ac_exeext; then
41415   eval "$as_ac_var=yes"
41416 else
41417   echo "$as_me: failed program was:" >&5
41418 sed 's/^/| /' conftest.$ac_ext >&5
41419
41420         eval "$as_ac_var=no"
41421 fi
41422
41423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41424       conftest$ac_exeext conftest.$ac_ext
41425 fi
41426 ac_res=`eval echo '${'$as_ac_var'}'`
41427                { echo "$as_me:$LINENO: result: $ac_res" >&5
41428 echo "${ECHO_T}$ac_res" >&6; }
41429 if test `eval echo '${'$as_ac_var'}'` = yes; then
41430   cat >>confdefs.h <<_ACEOF
41431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41432 _ACEOF
41433  break
41434 fi
41435 done
41436
41437 if test "$ac_cv_func_setenv" = "yes"; then
41438
41439 for ac_func in unsetenv
41440 do
41441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41445   echo $ECHO_N "(cached) $ECHO_C" >&6
41446 else
41447   cat >conftest.$ac_ext <<_ACEOF
41448 /* confdefs.h.  */
41449 _ACEOF
41450 cat confdefs.h >>conftest.$ac_ext
41451 cat >>conftest.$ac_ext <<_ACEOF
41452 /* end confdefs.h.  */
41453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41455 #define $ac_func innocuous_$ac_func
41456
41457 /* System header to define __stub macros and hopefully few prototypes,
41458     which can conflict with char $ac_func (); below.
41459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41460     <limits.h> exists even on freestanding compilers.  */
41461
41462 #ifdef __STDC__
41463 # include <limits.h>
41464 #else
41465 # include <assert.h>
41466 #endif
41467
41468 #undef $ac_func
41469
41470 /* Override any GCC internal prototype to avoid an error.
41471    Use char because int might match the return type of a GCC
41472    builtin and then its argument prototype would still apply.  */
41473 #ifdef __cplusplus
41474 extern "C"
41475 #endif
41476 char $ac_func ();
41477 /* The GNU C library defines this for functions which it implements
41478     to always fail with ENOSYS.  Some functions are actually named
41479     something starting with __ and the normal name is an alias.  */
41480 #if defined __stub_$ac_func || defined __stub___$ac_func
41481 choke me
41482 #endif
41483
41484 int
41485 main ()
41486 {
41487 return $ac_func ();
41488   ;
41489   return 0;
41490 }
41491 _ACEOF
41492 rm -f conftest.$ac_objext conftest$ac_exeext
41493 if { (ac_try="$ac_link"
41494 case "(($ac_try" in
41495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41496   *) ac_try_echo=$ac_try;;
41497 esac
41498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41499   (eval "$ac_link") 2>conftest.er1
41500   ac_status=$?
41501   grep -v '^ *+' conftest.er1 >conftest.err
41502   rm -f conftest.er1
41503   cat conftest.err >&5
41504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41505   (exit $ac_status); } && {
41506          test -z "$ac_c_werror_flag" ||
41507          test ! -s conftest.err
41508        } && test -s conftest$ac_exeext &&
41509        $as_test_x conftest$ac_exeext; then
41510   eval "$as_ac_var=yes"
41511 else
41512   echo "$as_me: failed program was:" >&5
41513 sed 's/^/| /' conftest.$ac_ext >&5
41514
41515         eval "$as_ac_var=no"
41516 fi
41517
41518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41519       conftest$ac_exeext conftest.$ac_ext
41520 fi
41521 ac_res=`eval echo '${'$as_ac_var'}'`
41522                { echo "$as_me:$LINENO: result: $ac_res" >&5
41523 echo "${ECHO_T}$ac_res" >&6; }
41524 if test `eval echo '${'$as_ac_var'}'` = yes; then
41525   cat >>confdefs.h <<_ACEOF
41526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41527 _ACEOF
41528
41529 fi
41530 done
41531
41532 fi
41533
41534 HAVE_SOME_SLEEP_FUNC=0
41535 if test "$USE_BEOS" = 1; then
41536             cat >>confdefs.h <<\_ACEOF
41537 #define HAVE_SLEEP 1
41538 _ACEOF
41539
41540     HAVE_SOME_SLEEP_FUNC=1
41541 fi
41542
41543 if test "$USE_DARWIN" = 1; then
41544             cat >>confdefs.h <<\_ACEOF
41545 #define HAVE_USLEEP 1
41546 _ACEOF
41547
41548     HAVE_SOME_SLEEP_FUNC=1
41549 fi
41550
41551 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
41552         POSIX4_LINK=
41553
41554 for ac_func in nanosleep
41555 do
41556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41560   echo $ECHO_N "(cached) $ECHO_C" >&6
41561 else
41562   cat >conftest.$ac_ext <<_ACEOF
41563 /* confdefs.h.  */
41564 _ACEOF
41565 cat confdefs.h >>conftest.$ac_ext
41566 cat >>conftest.$ac_ext <<_ACEOF
41567 /* end confdefs.h.  */
41568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41570 #define $ac_func innocuous_$ac_func
41571
41572 /* System header to define __stub macros and hopefully few prototypes,
41573     which can conflict with char $ac_func (); below.
41574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41575     <limits.h> exists even on freestanding compilers.  */
41576
41577 #ifdef __STDC__
41578 # include <limits.h>
41579 #else
41580 # include <assert.h>
41581 #endif
41582
41583 #undef $ac_func
41584
41585 /* Override any GCC internal prototype to avoid an error.
41586    Use char because int might match the return type of a GCC
41587    builtin and then its argument prototype would still apply.  */
41588 #ifdef __cplusplus
41589 extern "C"
41590 #endif
41591 char $ac_func ();
41592 /* The GNU C library defines this for functions which it implements
41593     to always fail with ENOSYS.  Some functions are actually named
41594     something starting with __ and the normal name is an alias.  */
41595 #if defined __stub_$ac_func || defined __stub___$ac_func
41596 choke me
41597 #endif
41598
41599 int
41600 main ()
41601 {
41602 return $ac_func ();
41603   ;
41604   return 0;
41605 }
41606 _ACEOF
41607 rm -f conftest.$ac_objext conftest$ac_exeext
41608 if { (ac_try="$ac_link"
41609 case "(($ac_try" in
41610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41611   *) ac_try_echo=$ac_try;;
41612 esac
41613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41614   (eval "$ac_link") 2>conftest.er1
41615   ac_status=$?
41616   grep -v '^ *+' conftest.er1 >conftest.err
41617   rm -f conftest.er1
41618   cat conftest.err >&5
41619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41620   (exit $ac_status); } && {
41621          test -z "$ac_c_werror_flag" ||
41622          test ! -s conftest.err
41623        } && test -s conftest$ac_exeext &&
41624        $as_test_x conftest$ac_exeext; then
41625   eval "$as_ac_var=yes"
41626 else
41627   echo "$as_me: failed program was:" >&5
41628 sed 's/^/| /' conftest.$ac_ext >&5
41629
41630         eval "$as_ac_var=no"
41631 fi
41632
41633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41634       conftest$ac_exeext conftest.$ac_ext
41635 fi
41636 ac_res=`eval echo '${'$as_ac_var'}'`
41637                { echo "$as_me:$LINENO: result: $ac_res" >&5
41638 echo "${ECHO_T}$ac_res" >&6; }
41639 if test `eval echo '${'$as_ac_var'}'` = yes; then
41640   cat >>confdefs.h <<_ACEOF
41641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41642 _ACEOF
41643  cat >>confdefs.h <<\_ACEOF
41644 #define HAVE_NANOSLEEP 1
41645 _ACEOF
41646
41647 else
41648
41649             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
41650 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
41651 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
41652   echo $ECHO_N "(cached) $ECHO_C" >&6
41653 else
41654   ac_check_lib_save_LIBS=$LIBS
41655 LIBS="-lposix4  $LIBS"
41656 cat >conftest.$ac_ext <<_ACEOF
41657 /* confdefs.h.  */
41658 _ACEOF
41659 cat confdefs.h >>conftest.$ac_ext
41660 cat >>conftest.$ac_ext <<_ACEOF
41661 /* end confdefs.h.  */
41662
41663 /* Override any GCC internal prototype to avoid an error.
41664    Use char because int might match the return type of a GCC
41665    builtin and then its argument prototype would still apply.  */
41666 #ifdef __cplusplus
41667 extern "C"
41668 #endif
41669 char nanosleep ();
41670 int
41671 main ()
41672 {
41673 return nanosleep ();
41674   ;
41675   return 0;
41676 }
41677 _ACEOF
41678 rm -f conftest.$ac_objext conftest$ac_exeext
41679 if { (ac_try="$ac_link"
41680 case "(($ac_try" in
41681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41682   *) ac_try_echo=$ac_try;;
41683 esac
41684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41685   (eval "$ac_link") 2>conftest.er1
41686   ac_status=$?
41687   grep -v '^ *+' conftest.er1 >conftest.err
41688   rm -f conftest.er1
41689   cat conftest.err >&5
41690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41691   (exit $ac_status); } && {
41692          test -z "$ac_c_werror_flag" ||
41693          test ! -s conftest.err
41694        } && test -s conftest$ac_exeext &&
41695        $as_test_x conftest$ac_exeext; then
41696   ac_cv_lib_posix4_nanosleep=yes
41697 else
41698   echo "$as_me: failed program was:" >&5
41699 sed 's/^/| /' conftest.$ac_ext >&5
41700
41701         ac_cv_lib_posix4_nanosleep=no
41702 fi
41703
41704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41705       conftest$ac_exeext conftest.$ac_ext
41706 LIBS=$ac_check_lib_save_LIBS
41707 fi
41708 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
41709 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
41710 if test $ac_cv_lib_posix4_nanosleep = yes; then
41711
41712                     cat >>confdefs.h <<\_ACEOF
41713 #define HAVE_NANOSLEEP 1
41714 _ACEOF
41715
41716                     POSIX4_LINK=" -lposix4"
41717
41718 else
41719
41720
41721   for wx_func in usleep
41722   do
41723     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41724 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41725 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41726   echo $ECHO_N "(cached) $ECHO_C" >&6
41727 else
41728
41729         cat >conftest.$ac_ext <<_ACEOF
41730
41731             /* confdefs.h.  */
41732 _ACEOF
41733 cat confdefs.h >>conftest.$ac_ext
41734 cat >>conftest.$ac_ext <<_ACEOF
41735 /* end confdefs.h.  */
41736
41737
41738                 $ac_includes_default
41739
41740 int
41741 main ()
41742 {
41743
41744                 #ifndef $wx_func
41745                   &$wx_func;
41746                 #endif
41747
41748
41749   ;
41750   return 0;
41751 }
41752
41753 _ACEOF
41754 rm -f conftest.$ac_objext conftest$ac_exeext
41755 if { (ac_try="$ac_link"
41756 case "(($ac_try" in
41757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41758   *) ac_try_echo=$ac_try;;
41759 esac
41760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41761   (eval "$ac_link") 2>conftest.er1
41762   ac_status=$?
41763   grep -v '^ *+' conftest.er1 >conftest.err
41764   rm -f conftest.er1
41765   cat conftest.err >&5
41766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41767   (exit $ac_status); } && {
41768          test -z "$ac_c_werror_flag" ||
41769          test ! -s conftest.err
41770        } && test -s conftest$ac_exeext &&
41771        $as_test_x conftest$ac_exeext; then
41772   eval wx_cv_func_$wx_func=yes
41773 else
41774   echo "$as_me: failed program was:" >&5
41775 sed 's/^/| /' conftest.$ac_ext >&5
41776
41777         eval wx_cv_func_$wx_func=no
41778 fi
41779
41780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41781       conftest$ac_exeext conftest.$ac_ext
41782
41783 fi
41784 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41785                { echo "$as_me:$LINENO: result: $ac_res" >&5
41786 echo "${ECHO_T}$ac_res" >&6; }
41787
41788     if eval test \$wx_cv_func_$wx_func = yes
41789     then
41790       cat >>confdefs.h <<_ACEOF
41791 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41792 _ACEOF
41793
41794
41795     else
41796       :
41797       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
41798 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
41799
41800     fi
41801   done
41802
41803
41804
41805 fi
41806
41807
41808
41809 fi
41810 done
41811
41812 fi
41813
41814
41815   for wx_func in uname
41816   do
41817     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41818 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41819 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41820   echo $ECHO_N "(cached) $ECHO_C" >&6
41821 else
41822
41823         cat >conftest.$ac_ext <<_ACEOF
41824
41825             /* confdefs.h.  */
41826 _ACEOF
41827 cat confdefs.h >>conftest.$ac_ext
41828 cat >>conftest.$ac_ext <<_ACEOF
41829 /* end confdefs.h.  */
41830
41831                 #include <sys/utsname.h>
41832                 $ac_includes_default
41833
41834 int
41835 main ()
41836 {
41837
41838                 #ifndef $wx_func
41839                   &$wx_func;
41840                 #endif
41841
41842
41843   ;
41844   return 0;
41845 }
41846
41847 _ACEOF
41848 rm -f conftest.$ac_objext conftest$ac_exeext
41849 if { (ac_try="$ac_link"
41850 case "(($ac_try" in
41851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41852   *) ac_try_echo=$ac_try;;
41853 esac
41854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41855   (eval "$ac_link") 2>conftest.er1
41856   ac_status=$?
41857   grep -v '^ *+' conftest.er1 >conftest.err
41858   rm -f conftest.er1
41859   cat conftest.err >&5
41860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41861   (exit $ac_status); } && {
41862          test -z "$ac_c_werror_flag" ||
41863          test ! -s conftest.err
41864        } && test -s conftest$ac_exeext &&
41865        $as_test_x conftest$ac_exeext; then
41866   eval wx_cv_func_$wx_func=yes
41867 else
41868   echo "$as_me: failed program was:" >&5
41869 sed 's/^/| /' conftest.$ac_ext >&5
41870
41871         eval wx_cv_func_$wx_func=no
41872 fi
41873
41874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41875       conftest$ac_exeext conftest.$ac_ext
41876
41877 fi
41878 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41879                { echo "$as_me:$LINENO: result: $ac_res" >&5
41880 echo "${ECHO_T}$ac_res" >&6; }
41881
41882     if eval test \$wx_cv_func_$wx_func = yes
41883     then
41884       cat >>confdefs.h <<_ACEOF
41885 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41886 _ACEOF
41887
41888
41889     else
41890       :
41891
41892     fi
41893   done
41894
41895 if test "$wx_cv_func_uname" != yes; then
41896
41897   for wx_func in gethostname
41898   do
41899     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41900 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41901 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41902   echo $ECHO_N "(cached) $ECHO_C" >&6
41903 else
41904
41905         cat >conftest.$ac_ext <<_ACEOF
41906
41907             /* confdefs.h.  */
41908 _ACEOF
41909 cat confdefs.h >>conftest.$ac_ext
41910 cat >>conftest.$ac_ext <<_ACEOF
41911 /* end confdefs.h.  */
41912
41913
41914                 $ac_includes_default
41915
41916 int
41917 main ()
41918 {
41919
41920                 #ifndef $wx_func
41921                   &$wx_func;
41922                 #endif
41923
41924
41925   ;
41926   return 0;
41927 }
41928
41929 _ACEOF
41930 rm -f conftest.$ac_objext conftest$ac_exeext
41931 if { (ac_try="$ac_link"
41932 case "(($ac_try" in
41933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41934   *) ac_try_echo=$ac_try;;
41935 esac
41936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41937   (eval "$ac_link") 2>conftest.er1
41938   ac_status=$?
41939   grep -v '^ *+' conftest.er1 >conftest.err
41940   rm -f conftest.er1
41941   cat conftest.err >&5
41942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41943   (exit $ac_status); } && {
41944          test -z "$ac_c_werror_flag" ||
41945          test ! -s conftest.err
41946        } && test -s conftest$ac_exeext &&
41947        $as_test_x conftest$ac_exeext; then
41948   eval wx_cv_func_$wx_func=yes
41949 else
41950   echo "$as_me: failed program was:" >&5
41951 sed 's/^/| /' conftest.$ac_ext >&5
41952
41953         eval wx_cv_func_$wx_func=no
41954 fi
41955
41956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41957       conftest$ac_exeext conftest.$ac_ext
41958
41959 fi
41960 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41961                { echo "$as_me:$LINENO: result: $ac_res" >&5
41962 echo "${ECHO_T}$ac_res" >&6; }
41963
41964     if eval test \$wx_cv_func_$wx_func = yes
41965     then
41966       cat >>confdefs.h <<_ACEOF
41967 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41968 _ACEOF
41969
41970
41971     else
41972       :
41973
41974     fi
41975   done
41976
41977 fi
41978
41979
41980   for wx_func in strtok_r
41981   do
41982     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41983 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41984 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41985   echo $ECHO_N "(cached) $ECHO_C" >&6
41986 else
41987
41988         cat >conftest.$ac_ext <<_ACEOF
41989
41990             /* confdefs.h.  */
41991 _ACEOF
41992 cat confdefs.h >>conftest.$ac_ext
41993 cat >>conftest.$ac_ext <<_ACEOF
41994 /* end confdefs.h.  */
41995
41996                 #define _REENTRANT
41997                 $ac_includes_default
41998
41999 int
42000 main ()
42001 {
42002
42003                 #ifndef $wx_func
42004                   &$wx_func;
42005                 #endif
42006
42007
42008   ;
42009   return 0;
42010 }
42011
42012 _ACEOF
42013 rm -f conftest.$ac_objext conftest$ac_exeext
42014 if { (ac_try="$ac_link"
42015 case "(($ac_try" in
42016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42017   *) ac_try_echo=$ac_try;;
42018 esac
42019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42020   (eval "$ac_link") 2>conftest.er1
42021   ac_status=$?
42022   grep -v '^ *+' conftest.er1 >conftest.err
42023   rm -f conftest.er1
42024   cat conftest.err >&5
42025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42026   (exit $ac_status); } && {
42027          test -z "$ac_c_werror_flag" ||
42028          test ! -s conftest.err
42029        } && test -s conftest$ac_exeext &&
42030        $as_test_x conftest$ac_exeext; then
42031   eval wx_cv_func_$wx_func=yes
42032 else
42033   echo "$as_me: failed program was:" >&5
42034 sed 's/^/| /' conftest.$ac_ext >&5
42035
42036         eval wx_cv_func_$wx_func=no
42037 fi
42038
42039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42040       conftest$ac_exeext conftest.$ac_ext
42041
42042 fi
42043 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42044                { echo "$as_me:$LINENO: result: $ac_res" >&5
42045 echo "${ECHO_T}$ac_res" >&6; }
42046
42047     if eval test \$wx_cv_func_$wx_func = yes
42048     then
42049       cat >>confdefs.h <<_ACEOF
42050 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42051 _ACEOF
42052
42053
42054     else
42055       :
42056
42057     fi
42058   done
42059
42060
42061 INET_LINK=
42062
42063 for ac_func in inet_addr
42064 do
42065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42069   echo $ECHO_N "(cached) $ECHO_C" >&6
42070 else
42071   cat >conftest.$ac_ext <<_ACEOF
42072 /* confdefs.h.  */
42073 _ACEOF
42074 cat confdefs.h >>conftest.$ac_ext
42075 cat >>conftest.$ac_ext <<_ACEOF
42076 /* end confdefs.h.  */
42077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42079 #define $ac_func innocuous_$ac_func
42080
42081 /* System header to define __stub macros and hopefully few prototypes,
42082     which can conflict with char $ac_func (); below.
42083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42084     <limits.h> exists even on freestanding compilers.  */
42085
42086 #ifdef __STDC__
42087 # include <limits.h>
42088 #else
42089 # include <assert.h>
42090 #endif
42091
42092 #undef $ac_func
42093
42094 /* Override any GCC internal prototype to avoid an error.
42095    Use char because int might match the return type of a GCC
42096    builtin and then its argument prototype would still apply.  */
42097 #ifdef __cplusplus
42098 extern "C"
42099 #endif
42100 char $ac_func ();
42101 /* The GNU C library defines this for functions which it implements
42102     to always fail with ENOSYS.  Some functions are actually named
42103     something starting with __ and the normal name is an alias.  */
42104 #if defined __stub_$ac_func || defined __stub___$ac_func
42105 choke me
42106 #endif
42107
42108 int
42109 main ()
42110 {
42111 return $ac_func ();
42112   ;
42113   return 0;
42114 }
42115 _ACEOF
42116 rm -f conftest.$ac_objext conftest$ac_exeext
42117 if { (ac_try="$ac_link"
42118 case "(($ac_try" in
42119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42120   *) ac_try_echo=$ac_try;;
42121 esac
42122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42123   (eval "$ac_link") 2>conftest.er1
42124   ac_status=$?
42125   grep -v '^ *+' conftest.er1 >conftest.err
42126   rm -f conftest.er1
42127   cat conftest.err >&5
42128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42129   (exit $ac_status); } && {
42130          test -z "$ac_c_werror_flag" ||
42131          test ! -s conftest.err
42132        } && test -s conftest$ac_exeext &&
42133        $as_test_x conftest$ac_exeext; then
42134   eval "$as_ac_var=yes"
42135 else
42136   echo "$as_me: failed program was:" >&5
42137 sed 's/^/| /' conftest.$ac_ext >&5
42138
42139         eval "$as_ac_var=no"
42140 fi
42141
42142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42143       conftest$ac_exeext conftest.$ac_ext
42144 fi
42145 ac_res=`eval echo '${'$as_ac_var'}'`
42146                { echo "$as_me:$LINENO: result: $ac_res" >&5
42147 echo "${ECHO_T}$ac_res" >&6; }
42148 if test `eval echo '${'$as_ac_var'}'` = yes; then
42149   cat >>confdefs.h <<_ACEOF
42150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42151 _ACEOF
42152  cat >>confdefs.h <<\_ACEOF
42153 #define HAVE_INET_ADDR 1
42154 _ACEOF
42155
42156 else
42157
42158         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
42159 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
42160 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
42161   echo $ECHO_N "(cached) $ECHO_C" >&6
42162 else
42163   ac_check_lib_save_LIBS=$LIBS
42164 LIBS="-lnsl  $LIBS"
42165 cat >conftest.$ac_ext <<_ACEOF
42166 /* confdefs.h.  */
42167 _ACEOF
42168 cat confdefs.h >>conftest.$ac_ext
42169 cat >>conftest.$ac_ext <<_ACEOF
42170 /* end confdefs.h.  */
42171
42172 /* Override any GCC internal prototype to avoid an error.
42173    Use char because int might match the return type of a GCC
42174    builtin and then its argument prototype would still apply.  */
42175 #ifdef __cplusplus
42176 extern "C"
42177 #endif
42178 char inet_addr ();
42179 int
42180 main ()
42181 {
42182 return inet_addr ();
42183   ;
42184   return 0;
42185 }
42186 _ACEOF
42187 rm -f conftest.$ac_objext conftest$ac_exeext
42188 if { (ac_try="$ac_link"
42189 case "(($ac_try" in
42190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42191   *) ac_try_echo=$ac_try;;
42192 esac
42193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42194   (eval "$ac_link") 2>conftest.er1
42195   ac_status=$?
42196   grep -v '^ *+' conftest.er1 >conftest.err
42197   rm -f conftest.er1
42198   cat conftest.err >&5
42199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42200   (exit $ac_status); } && {
42201          test -z "$ac_c_werror_flag" ||
42202          test ! -s conftest.err
42203        } && test -s conftest$ac_exeext &&
42204        $as_test_x conftest$ac_exeext; then
42205   ac_cv_lib_nsl_inet_addr=yes
42206 else
42207   echo "$as_me: failed program was:" >&5
42208 sed 's/^/| /' conftest.$ac_ext >&5
42209
42210         ac_cv_lib_nsl_inet_addr=no
42211 fi
42212
42213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42214       conftest$ac_exeext conftest.$ac_ext
42215 LIBS=$ac_check_lib_save_LIBS
42216 fi
42217 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
42218 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
42219 if test $ac_cv_lib_nsl_inet_addr = yes; then
42220   INET_LINK="nsl"
42221 else
42222
42223                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
42224 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
42225 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
42226   echo $ECHO_N "(cached) $ECHO_C" >&6
42227 else
42228   ac_check_lib_save_LIBS=$LIBS
42229 LIBS="-lresolv  $LIBS"
42230 cat >conftest.$ac_ext <<_ACEOF
42231 /* confdefs.h.  */
42232 _ACEOF
42233 cat confdefs.h >>conftest.$ac_ext
42234 cat >>conftest.$ac_ext <<_ACEOF
42235 /* end confdefs.h.  */
42236
42237 /* Override any GCC internal prototype to avoid an error.
42238    Use char because int might match the return type of a GCC
42239    builtin and then its argument prototype would still apply.  */
42240 #ifdef __cplusplus
42241 extern "C"
42242 #endif
42243 char inet_addr ();
42244 int
42245 main ()
42246 {
42247 return inet_addr ();
42248   ;
42249   return 0;
42250 }
42251 _ACEOF
42252 rm -f conftest.$ac_objext conftest$ac_exeext
42253 if { (ac_try="$ac_link"
42254 case "(($ac_try" in
42255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42256   *) ac_try_echo=$ac_try;;
42257 esac
42258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42259   (eval "$ac_link") 2>conftest.er1
42260   ac_status=$?
42261   grep -v '^ *+' conftest.er1 >conftest.err
42262   rm -f conftest.er1
42263   cat conftest.err >&5
42264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42265   (exit $ac_status); } && {
42266          test -z "$ac_c_werror_flag" ||
42267          test ! -s conftest.err
42268        } && test -s conftest$ac_exeext &&
42269        $as_test_x conftest$ac_exeext; then
42270   ac_cv_lib_resolv_inet_addr=yes
42271 else
42272   echo "$as_me: failed program was:" >&5
42273 sed 's/^/| /' conftest.$ac_ext >&5
42274
42275         ac_cv_lib_resolv_inet_addr=no
42276 fi
42277
42278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42279       conftest$ac_exeext conftest.$ac_ext
42280 LIBS=$ac_check_lib_save_LIBS
42281 fi
42282 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
42283 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
42284 if test $ac_cv_lib_resolv_inet_addr = yes; then
42285   INET_LINK="resolv"
42286 else
42287
42288                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
42289 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
42290 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
42291   echo $ECHO_N "(cached) $ECHO_C" >&6
42292 else
42293   ac_check_lib_save_LIBS=$LIBS
42294 LIBS="-lsocket  $LIBS"
42295 cat >conftest.$ac_ext <<_ACEOF
42296 /* confdefs.h.  */
42297 _ACEOF
42298 cat confdefs.h >>conftest.$ac_ext
42299 cat >>conftest.$ac_ext <<_ACEOF
42300 /* end confdefs.h.  */
42301
42302 /* Override any GCC internal prototype to avoid an error.
42303    Use char because int might match the return type of a GCC
42304    builtin and then its argument prototype would still apply.  */
42305 #ifdef __cplusplus
42306 extern "C"
42307 #endif
42308 char inet_addr ();
42309 int
42310 main ()
42311 {
42312 return inet_addr ();
42313   ;
42314   return 0;
42315 }
42316 _ACEOF
42317 rm -f conftest.$ac_objext conftest$ac_exeext
42318 if { (ac_try="$ac_link"
42319 case "(($ac_try" in
42320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42321   *) ac_try_echo=$ac_try;;
42322 esac
42323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42324   (eval "$ac_link") 2>conftest.er1
42325   ac_status=$?
42326   grep -v '^ *+' conftest.er1 >conftest.err
42327   rm -f conftest.er1
42328   cat conftest.err >&5
42329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42330   (exit $ac_status); } && {
42331          test -z "$ac_c_werror_flag" ||
42332          test ! -s conftest.err
42333        } && test -s conftest$ac_exeext &&
42334        $as_test_x conftest$ac_exeext; then
42335   ac_cv_lib_socket_inet_addr=yes
42336 else
42337   echo "$as_me: failed program was:" >&5
42338 sed 's/^/| /' conftest.$ac_ext >&5
42339
42340         ac_cv_lib_socket_inet_addr=no
42341 fi
42342
42343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42344       conftest$ac_exeext conftest.$ac_ext
42345 LIBS=$ac_check_lib_save_LIBS
42346 fi
42347 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
42348 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
42349 if test $ac_cv_lib_socket_inet_addr = yes; then
42350   INET_LINK="socket"
42351
42352 fi
42353
42354
42355
42356 fi
42357
42358
42359
42360 fi
42361
42362
42363
42364 fi
42365 done
42366
42367
42368
42369 for ac_func in inet_aton
42370 do
42371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42375   echo $ECHO_N "(cached) $ECHO_C" >&6
42376 else
42377   cat >conftest.$ac_ext <<_ACEOF
42378 /* confdefs.h.  */
42379 _ACEOF
42380 cat confdefs.h >>conftest.$ac_ext
42381 cat >>conftest.$ac_ext <<_ACEOF
42382 /* end confdefs.h.  */
42383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42385 #define $ac_func innocuous_$ac_func
42386
42387 /* System header to define __stub macros and hopefully few prototypes,
42388     which can conflict with char $ac_func (); below.
42389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42390     <limits.h> exists even on freestanding compilers.  */
42391
42392 #ifdef __STDC__
42393 # include <limits.h>
42394 #else
42395 # include <assert.h>
42396 #endif
42397
42398 #undef $ac_func
42399
42400 /* Override any GCC internal prototype to avoid an error.
42401    Use char because int might match the return type of a GCC
42402    builtin and then its argument prototype would still apply.  */
42403 #ifdef __cplusplus
42404 extern "C"
42405 #endif
42406 char $ac_func ();
42407 /* The GNU C library defines this for functions which it implements
42408     to always fail with ENOSYS.  Some functions are actually named
42409     something starting with __ and the normal name is an alias.  */
42410 #if defined __stub_$ac_func || defined __stub___$ac_func
42411 choke me
42412 #endif
42413
42414 int
42415 main ()
42416 {
42417 return $ac_func ();
42418   ;
42419   return 0;
42420 }
42421 _ACEOF
42422 rm -f conftest.$ac_objext conftest$ac_exeext
42423 if { (ac_try="$ac_link"
42424 case "(($ac_try" in
42425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42426   *) ac_try_echo=$ac_try;;
42427 esac
42428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42429   (eval "$ac_link") 2>conftest.er1
42430   ac_status=$?
42431   grep -v '^ *+' conftest.er1 >conftest.err
42432   rm -f conftest.er1
42433   cat conftest.err >&5
42434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42435   (exit $ac_status); } && {
42436          test -z "$ac_c_werror_flag" ||
42437          test ! -s conftest.err
42438        } && test -s conftest$ac_exeext &&
42439        $as_test_x conftest$ac_exeext; then
42440   eval "$as_ac_var=yes"
42441 else
42442   echo "$as_me: failed program was:" >&5
42443 sed 's/^/| /' conftest.$ac_ext >&5
42444
42445         eval "$as_ac_var=no"
42446 fi
42447
42448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42449       conftest$ac_exeext conftest.$ac_ext
42450 fi
42451 ac_res=`eval echo '${'$as_ac_var'}'`
42452                { echo "$as_me:$LINENO: result: $ac_res" >&5
42453 echo "${ECHO_T}$ac_res" >&6; }
42454 if test `eval echo '${'$as_ac_var'}'` = yes; then
42455   cat >>confdefs.h <<_ACEOF
42456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42457 _ACEOF
42458  cat >>confdefs.h <<\_ACEOF
42459 #define HAVE_INET_ATON 1
42460 _ACEOF
42461
42462 else
42463
42464                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
42465 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
42466 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
42467 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42468   echo $ECHO_N "(cached) $ECHO_C" >&6
42469 else
42470   ac_check_lib_save_LIBS=$LIBS
42471 LIBS="-l$INET_LINK  $LIBS"
42472 cat >conftest.$ac_ext <<_ACEOF
42473 /* confdefs.h.  */
42474 _ACEOF
42475 cat confdefs.h >>conftest.$ac_ext
42476 cat >>conftest.$ac_ext <<_ACEOF
42477 /* end confdefs.h.  */
42478
42479 /* Override any GCC internal prototype to avoid an error.
42480    Use char because int might match the return type of a GCC
42481    builtin and then its argument prototype would still apply.  */
42482 #ifdef __cplusplus
42483 extern "C"
42484 #endif
42485 char inet_aton ();
42486 int
42487 main ()
42488 {
42489 return inet_aton ();
42490   ;
42491   return 0;
42492 }
42493 _ACEOF
42494 rm -f conftest.$ac_objext conftest$ac_exeext
42495 if { (ac_try="$ac_link"
42496 case "(($ac_try" in
42497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42498   *) ac_try_echo=$ac_try;;
42499 esac
42500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42501   (eval "$ac_link") 2>conftest.er1
42502   ac_status=$?
42503   grep -v '^ *+' conftest.er1 >conftest.err
42504   rm -f conftest.er1
42505   cat conftest.err >&5
42506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42507   (exit $ac_status); } && {
42508          test -z "$ac_c_werror_flag" ||
42509          test ! -s conftest.err
42510        } && test -s conftest$ac_exeext &&
42511        $as_test_x conftest$ac_exeext; then
42512   eval "$as_ac_Lib=yes"
42513 else
42514   echo "$as_me: failed program was:" >&5
42515 sed 's/^/| /' conftest.$ac_ext >&5
42516
42517         eval "$as_ac_Lib=no"
42518 fi
42519
42520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42521       conftest$ac_exeext conftest.$ac_ext
42522 LIBS=$ac_check_lib_save_LIBS
42523 fi
42524 ac_res=`eval echo '${'$as_ac_Lib'}'`
42525                { echo "$as_me:$LINENO: result: $ac_res" >&5
42526 echo "${ECHO_T}$ac_res" >&6; }
42527 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42528   cat >>confdefs.h <<\_ACEOF
42529 #define HAVE_INET_ATON 1
42530 _ACEOF
42531
42532 fi
42533
42534
42535 fi
42536 done
42537
42538
42539 if test "x$INET_LINK" != "x"; then
42540     cat >>confdefs.h <<\_ACEOF
42541 #define HAVE_INET_ADDR 1
42542 _ACEOF
42543
42544     INET_LINK=" -l$INET_LINK"
42545 fi
42546
42547
42548   for wx_func in fdopen
42549   do
42550     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42551 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42552 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42553   echo $ECHO_N "(cached) $ECHO_C" >&6
42554 else
42555
42556         cat >conftest.$ac_ext <<_ACEOF
42557
42558             /* confdefs.h.  */
42559 _ACEOF
42560 cat confdefs.h >>conftest.$ac_ext
42561 cat >>conftest.$ac_ext <<_ACEOF
42562 /* end confdefs.h.  */
42563
42564
42565                 $ac_includes_default
42566
42567 int
42568 main ()
42569 {
42570
42571                 #ifndef $wx_func
42572                   &$wx_func;
42573                 #endif
42574
42575
42576   ;
42577   return 0;
42578 }
42579
42580 _ACEOF
42581 rm -f conftest.$ac_objext conftest$ac_exeext
42582 if { (ac_try="$ac_link"
42583 case "(($ac_try" in
42584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42585   *) ac_try_echo=$ac_try;;
42586 esac
42587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42588   (eval "$ac_link") 2>conftest.er1
42589   ac_status=$?
42590   grep -v '^ *+' conftest.er1 >conftest.err
42591   rm -f conftest.er1
42592   cat conftest.err >&5
42593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42594   (exit $ac_status); } && {
42595          test -z "$ac_c_werror_flag" ||
42596          test ! -s conftest.err
42597        } && test -s conftest$ac_exeext &&
42598        $as_test_x conftest$ac_exeext; then
42599   eval wx_cv_func_$wx_func=yes
42600 else
42601   echo "$as_me: failed program was:" >&5
42602 sed 's/^/| /' conftest.$ac_ext >&5
42603
42604         eval wx_cv_func_$wx_func=no
42605 fi
42606
42607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42608       conftest$ac_exeext conftest.$ac_ext
42609
42610 fi
42611 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42612                { echo "$as_me:$LINENO: result: $ac_res" >&5
42613 echo "${ECHO_T}$ac_res" >&6; }
42614
42615     if eval test \$wx_cv_func_$wx_func = yes
42616     then
42617       cat >>confdefs.h <<_ACEOF
42618 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42619 _ACEOF
42620
42621
42622     else
42623       :
42624
42625     fi
42626   done
42627
42628
42629 if test "$wxUSE_TARSTREAM" = "yes"; then
42630
42631   for wx_func in sysconf
42632   do
42633     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42634 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42635 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42636   echo $ECHO_N "(cached) $ECHO_C" >&6
42637 else
42638
42639         cat >conftest.$ac_ext <<_ACEOF
42640
42641             /* confdefs.h.  */
42642 _ACEOF
42643 cat confdefs.h >>conftest.$ac_ext
42644 cat >>conftest.$ac_ext <<_ACEOF
42645 /* end confdefs.h.  */
42646
42647
42648                 $ac_includes_default
42649
42650 int
42651 main ()
42652 {
42653
42654                 #ifndef $wx_func
42655                   &$wx_func;
42656                 #endif
42657
42658
42659   ;
42660   return 0;
42661 }
42662
42663 _ACEOF
42664 rm -f conftest.$ac_objext conftest$ac_exeext
42665 if { (ac_try="$ac_link"
42666 case "(($ac_try" in
42667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42668   *) ac_try_echo=$ac_try;;
42669 esac
42670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42671   (eval "$ac_link") 2>conftest.er1
42672   ac_status=$?
42673   grep -v '^ *+' conftest.er1 >conftest.err
42674   rm -f conftest.er1
42675   cat conftest.err >&5
42676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42677   (exit $ac_status); } && {
42678          test -z "$ac_c_werror_flag" ||
42679          test ! -s conftest.err
42680        } && test -s conftest$ac_exeext &&
42681        $as_test_x conftest$ac_exeext; then
42682   eval wx_cv_func_$wx_func=yes
42683 else
42684   echo "$as_me: failed program was:" >&5
42685 sed 's/^/| /' conftest.$ac_ext >&5
42686
42687         eval wx_cv_func_$wx_func=no
42688 fi
42689
42690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42691       conftest$ac_exeext conftest.$ac_ext
42692
42693 fi
42694 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42695                { echo "$as_me:$LINENO: result: $ac_res" >&5
42696 echo "${ECHO_T}$ac_res" >&6; }
42697
42698     if eval test \$wx_cv_func_$wx_func = yes
42699     then
42700       cat >>confdefs.h <<_ACEOF
42701 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42702 _ACEOF
42703
42704
42705     else
42706       :
42707
42708     fi
42709   done
42710
42711
42712
42713   for wx_func in getpwuid_r
42714   do
42715     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42716 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42717 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42718   echo $ECHO_N "(cached) $ECHO_C" >&6
42719 else
42720
42721         cat >conftest.$ac_ext <<_ACEOF
42722
42723             /* confdefs.h.  */
42724 _ACEOF
42725 cat confdefs.h >>conftest.$ac_ext
42726 cat >>conftest.$ac_ext <<_ACEOF
42727 /* end confdefs.h.  */
42728
42729
42730                     #define _REENTRANT
42731                     #include <pwd.h>
42732
42733                 $ac_includes_default
42734
42735 int
42736 main ()
42737 {
42738
42739                 #ifndef $wx_func
42740                   &$wx_func;
42741                 #endif
42742
42743                     struct passwd pw, *ppw;
42744                     char buf[1024];
42745                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
42746
42747
42748   ;
42749   return 0;
42750 }
42751
42752 _ACEOF
42753 rm -f conftest.$ac_objext conftest$ac_exeext
42754 if { (ac_try="$ac_link"
42755 case "(($ac_try" in
42756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42757   *) ac_try_echo=$ac_try;;
42758 esac
42759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42760   (eval "$ac_link") 2>conftest.er1
42761   ac_status=$?
42762   grep -v '^ *+' conftest.er1 >conftest.err
42763   rm -f conftest.er1
42764   cat conftest.err >&5
42765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42766   (exit $ac_status); } && {
42767          test -z "$ac_c_werror_flag" ||
42768          test ! -s conftest.err
42769        } && test -s conftest$ac_exeext &&
42770        $as_test_x conftest$ac_exeext; then
42771   eval wx_cv_func_$wx_func=yes
42772 else
42773   echo "$as_me: failed program was:" >&5
42774 sed 's/^/| /' conftest.$ac_ext >&5
42775
42776         eval wx_cv_func_$wx_func=no
42777 fi
42778
42779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42780       conftest$ac_exeext conftest.$ac_ext
42781
42782 fi
42783 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42784                { echo "$as_me:$LINENO: result: $ac_res" >&5
42785 echo "${ECHO_T}$ac_res" >&6; }
42786
42787     if eval test \$wx_cv_func_$wx_func = yes
42788     then
42789       cat >>confdefs.h <<_ACEOF
42790 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42791 _ACEOF
42792
42793
42794     else
42795       :
42796
42797     fi
42798   done
42799
42800
42801
42802   for wx_func in getgrgid_r
42803   do
42804     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42805 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42806 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42807   echo $ECHO_N "(cached) $ECHO_C" >&6
42808 else
42809
42810         cat >conftest.$ac_ext <<_ACEOF
42811
42812             /* confdefs.h.  */
42813 _ACEOF
42814 cat confdefs.h >>conftest.$ac_ext
42815 cat >>conftest.$ac_ext <<_ACEOF
42816 /* end confdefs.h.  */
42817
42818
42819                     #define _REENTRANT
42820                     #include <grp.h>
42821
42822                 $ac_includes_default
42823
42824 int
42825 main ()
42826 {
42827
42828                 #ifndef $wx_func
42829                   &$wx_func;
42830                 #endif
42831
42832                     struct group grp, *pgrp;
42833                     char buf[1024];
42834                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
42835
42836
42837   ;
42838   return 0;
42839 }
42840
42841 _ACEOF
42842 rm -f conftest.$ac_objext conftest$ac_exeext
42843 if { (ac_try="$ac_link"
42844 case "(($ac_try" in
42845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42846   *) ac_try_echo=$ac_try;;
42847 esac
42848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42849   (eval "$ac_link") 2>conftest.er1
42850   ac_status=$?
42851   grep -v '^ *+' conftest.er1 >conftest.err
42852   rm -f conftest.er1
42853   cat conftest.err >&5
42854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42855   (exit $ac_status); } && {
42856          test -z "$ac_c_werror_flag" ||
42857          test ! -s conftest.err
42858        } && test -s conftest$ac_exeext &&
42859        $as_test_x conftest$ac_exeext; then
42860   eval wx_cv_func_$wx_func=yes
42861 else
42862   echo "$as_me: failed program was:" >&5
42863 sed 's/^/| /' conftest.$ac_ext >&5
42864
42865         eval wx_cv_func_$wx_func=no
42866 fi
42867
42868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42869       conftest$ac_exeext conftest.$ac_ext
42870
42871 fi
42872 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42873                { echo "$as_me:$LINENO: result: $ac_res" >&5
42874 echo "${ECHO_T}$ac_res" >&6; }
42875
42876     if eval test \$wx_cv_func_$wx_func = yes
42877     then
42878       cat >>confdefs.h <<_ACEOF
42879 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42880 _ACEOF
42881
42882
42883     else
42884       :
42885
42886     fi
42887   done
42888
42889 fi
42890
42891 fi
42892
42893
42894
42895 cat >confcache <<\_ACEOF
42896 # This file is a shell script that caches the results of configure
42897 # tests run on this system so they can be shared between configure
42898 # scripts and configure runs, see configure's option --config-cache.
42899 # It is not useful on other systems.  If it contains results you don't
42900 # want to keep, you may remove or edit it.
42901 #
42902 # config.status only pays attention to the cache file if you give it
42903 # the --recheck option to rerun configure.
42904 #
42905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42907 # following values.
42908
42909 _ACEOF
42910
42911 # The following way of writing the cache mishandles newlines in values,
42912 # but we know of no workaround that is simple, portable, and efficient.
42913 # So, we kill variables containing newlines.
42914 # Ultrix sh set writes to stderr and can't be redirected directly,
42915 # and sets the high bit in the cache file unless we assign to the vars.
42916 (
42917   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42918     eval ac_val=\$$ac_var
42919     case $ac_val in #(
42920     *${as_nl}*)
42921       case $ac_var in #(
42922       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42923 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42924       esac
42925       case $ac_var in #(
42926       _ | IFS | as_nl) ;; #(
42927       *) $as_unset $ac_var ;;
42928       esac ;;
42929     esac
42930   done
42931
42932   (set) 2>&1 |
42933     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42934     *${as_nl}ac_space=\ *)
42935       # `set' does not quote correctly, so add quotes (double-quote
42936       # substitution turns \\\\ into \\, and sed turns \\ into \).
42937       sed -n \
42938         "s/'/'\\\\''/g;
42939           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42940       ;; #(
42941     *)
42942       # `set' quotes correctly as required by POSIX, so do not add quotes.
42943       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42944       ;;
42945     esac |
42946     sort
42947 ) |
42948   sed '
42949      /^ac_cv_env_/b end
42950      t clear
42951      :clear
42952      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42953      t end
42954      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42955      :end' >>confcache
42956 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42957   if test -w "$cache_file"; then
42958     test "x$cache_file" != "x/dev/null" &&
42959       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42960 echo "$as_me: updating cache $cache_file" >&6;}
42961     cat confcache >$cache_file
42962   else
42963     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42964 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42965   fi
42966 fi
42967 rm -f confcache
42968
42969
42970 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42971
42972
42973     THREADS_LINK=
42974     THREADS_CFLAGS=
42975
42976     if test "$wxUSE_THREADS" = "yes" ; then
42977         if test "$USE_BEOS" = 1; then
42978             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
42979 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
42980             wxUSE_THREADS="no"
42981         fi
42982     fi
42983
42984     if test "$wxUSE_THREADS" = "yes" ; then
42985
42986
42987                                 THREAD_OPTS="-pthread"
42988         if test "x$SUNCXX" = xyes; then
42989             THREAD_OPTS="-mt lthread $THREAD_OPTS"
42990         fi
42991
42992         case "${host}" in
42993           *-*-solaris2* | *-*-sunos4* )
42994                 if test "x$GCC" = "xyes"; then
42995                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
42996                 fi
42997                 ;;
42998           *-*-freebsd*)
42999                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
43000                 ;;
43001           *-*-darwin* | *-*-cygwin* )
43002                                                 THREAD_OPTS=""
43003                 ;;
43004           *-*-aix*)
43005                                 THREAD_OPTS="pthreads"
43006                 ;;
43007           *-hp-hpux* )
43008                 if test "x$GCC" = "xyes"; then
43009                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
43010                         THREAD_OPTS=""
43011                 else
43012                                                             THREAD_OPTS="-mt"
43013                 fi
43014                 ;;
43015
43016           *-*-irix* )
43017                                                                 if test "x$GCC" = "xyes"; then
43018                     THREAD_OPTS=""
43019                 fi
43020                 ;;
43021
43022           *-*-qnx*)
43023                                                 THREAD_OPTS=""
43024                 ;;
43025
43026           *-*-*UnixWare*)
43027                                 if test "x$GCC" != "xyes"; then
43028                     THREAD_OPTS="-Ethread"
43029                 fi
43030                 ;;
43031         esac
43032
43033         case "${host}" in
43034             *-*-qnx*)
43035                                                                 THREAD_OPTS="none pthread"
43036                 ;;
43037
43038             *)
43039                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
43040                 ;;
43041         esac
43042
43043                 THREADS_OK=no
43044         for flag in $THREAD_OPTS; do
43045             case $flag in
43046                 none)
43047                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
43048 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
43049                     ;;
43050
43051                 -*)
43052                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
43053 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
43054                     THREADS_CFLAGS="$flag"
43055                     ;;
43056
43057                 *)
43058                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
43059 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
43060                     THREADS_LINK="-l$flag"
43061                     ;;
43062               esac
43063
43064               save_LIBS="$LIBS"
43065               save_CFLAGS="$CFLAGS"
43066               LIBS="$THREADS_LINK $LIBS"
43067               CFLAGS="$THREADS_CFLAGS $CFLAGS"
43068
43069               cat >conftest.$ac_ext <<_ACEOF
43070 /* confdefs.h.  */
43071 _ACEOF
43072 cat confdefs.h >>conftest.$ac_ext
43073 cat >>conftest.$ac_ext <<_ACEOF
43074 /* end confdefs.h.  */
43075 #include <pthread.h>
43076 int
43077 main ()
43078 {
43079 pthread_create(0,0,0,0);
43080   ;
43081   return 0;
43082 }
43083 _ACEOF
43084 rm -f conftest.$ac_objext conftest$ac_exeext
43085 if { (ac_try="$ac_link"
43086 case "(($ac_try" in
43087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43088   *) ac_try_echo=$ac_try;;
43089 esac
43090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43091   (eval "$ac_link") 2>conftest.er1
43092   ac_status=$?
43093   grep -v '^ *+' conftest.er1 >conftest.err
43094   rm -f conftest.er1
43095   cat conftest.err >&5
43096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43097   (exit $ac_status); } && {
43098          test -z "$ac_c_werror_flag" ||
43099          test ! -s conftest.err
43100        } && test -s conftest$ac_exeext &&
43101        $as_test_x conftest$ac_exeext; then
43102   THREADS_OK=yes
43103 else
43104   echo "$as_me: failed program was:" >&5
43105 sed 's/^/| /' conftest.$ac_ext >&5
43106
43107
43108 fi
43109
43110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43111       conftest$ac_exeext conftest.$ac_ext
43112
43113               LIBS="$save_LIBS"
43114               CFLAGS="$save_CFLAGS"
43115
43116               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
43117 echo "${ECHO_T}$THREADS_OK" >&6; }
43118               if test "x$THREADS_OK" = "xyes"; then
43119                       break;
43120               fi
43121
43122               THREADS_LINK=""
43123               THREADS_CFLAGS=""
43124       done
43125
43126       if test "x$THREADS_OK" != "xyes"; then
43127           wxUSE_THREADS=no
43128           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
43129 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
43130       else
43131                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
43132           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
43133           LIBS="$THREADS_LINK $LIBS"
43134
43135           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
43136 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
43137           flag=no
43138           case "${host}" in
43139             *-aix*)
43140                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
43141                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
43142                 flag="-D_THREAD_SAFE"
43143                 ;;
43144             *-freebsd*)
43145                 flag="-D_THREAD_SAFE"
43146                 ;;
43147             *-hp-hpux* )
43148                 flag="-D_REENTRANT"
43149                 if test "x$GCC" != "xyes"; then
43150                                         flag="$flag -D_RWSTD_MULTI_THREAD"
43151                 fi
43152                 ;;
43153             *solaris* | alpha*-osf*)
43154                 flag="-D_REENTRANT"
43155                 ;;
43156           esac
43157           { echo "$as_me:$LINENO: result: ${flag}" >&5
43158 echo "${ECHO_T}${flag}" >&6; }
43159           if test "x$flag" != xno; then
43160               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
43161           fi
43162
43163                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
43164       fi
43165     fi
43166
43167         if test "$wxUSE_THREADS" = "yes" ; then
43168
43169 for ac_func in thr_setconcurrency
43170 do
43171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43175   echo $ECHO_N "(cached) $ECHO_C" >&6
43176 else
43177   cat >conftest.$ac_ext <<_ACEOF
43178 /* confdefs.h.  */
43179 _ACEOF
43180 cat confdefs.h >>conftest.$ac_ext
43181 cat >>conftest.$ac_ext <<_ACEOF
43182 /* end confdefs.h.  */
43183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43185 #define $ac_func innocuous_$ac_func
43186
43187 /* System header to define __stub macros and hopefully few prototypes,
43188     which can conflict with char $ac_func (); below.
43189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43190     <limits.h> exists even on freestanding compilers.  */
43191
43192 #ifdef __STDC__
43193 # include <limits.h>
43194 #else
43195 # include <assert.h>
43196 #endif
43197
43198 #undef $ac_func
43199
43200 /* Override any GCC internal prototype to avoid an error.
43201    Use char because int might match the return type of a GCC
43202    builtin and then its argument prototype would still apply.  */
43203 #ifdef __cplusplus
43204 extern "C"
43205 #endif
43206 char $ac_func ();
43207 /* The GNU C library defines this for functions which it implements
43208     to always fail with ENOSYS.  Some functions are actually named
43209     something starting with __ and the normal name is an alias.  */
43210 #if defined __stub_$ac_func || defined __stub___$ac_func
43211 choke me
43212 #endif
43213
43214 int
43215 main ()
43216 {
43217 return $ac_func ();
43218   ;
43219   return 0;
43220 }
43221 _ACEOF
43222 rm -f conftest.$ac_objext conftest$ac_exeext
43223 if { (ac_try="$ac_link"
43224 case "(($ac_try" in
43225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43226   *) ac_try_echo=$ac_try;;
43227 esac
43228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43229   (eval "$ac_link") 2>conftest.er1
43230   ac_status=$?
43231   grep -v '^ *+' conftest.er1 >conftest.err
43232   rm -f conftest.er1
43233   cat conftest.err >&5
43234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43235   (exit $ac_status); } && {
43236          test -z "$ac_c_werror_flag" ||
43237          test ! -s conftest.err
43238        } && test -s conftest$ac_exeext &&
43239        $as_test_x conftest$ac_exeext; then
43240   eval "$as_ac_var=yes"
43241 else
43242   echo "$as_me: failed program was:" >&5
43243 sed 's/^/| /' conftest.$ac_ext >&5
43244
43245         eval "$as_ac_var=no"
43246 fi
43247
43248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43249       conftest$ac_exeext conftest.$ac_ext
43250 fi
43251 ac_res=`eval echo '${'$as_ac_var'}'`
43252                { echo "$as_me:$LINENO: result: $ac_res" >&5
43253 echo "${ECHO_T}$ac_res" >&6; }
43254 if test `eval echo '${'$as_ac_var'}'` = yes; then
43255   cat >>confdefs.h <<_ACEOF
43256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43257 _ACEOF
43258
43259 fi
43260 done
43261
43262
43263                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
43264 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
43265 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
43266   echo $ECHO_N "(cached) $ECHO_C" >&6
43267 else
43268
43269                                 ac_ext=cpp
43270 ac_cpp='$CXXCPP $CPPFLAGS'
43271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43274
43275         cat >conftest.$ac_ext <<_ACEOF
43276 /* confdefs.h.  */
43277 _ACEOF
43278 cat confdefs.h >>conftest.$ac_ext
43279 cat >>conftest.$ac_ext <<_ACEOF
43280 /* end confdefs.h.  */
43281 #include <pthread.h>
43282                void ThreadCleanupFunc(void *p);
43283
43284 int
43285 main ()
43286 {
43287
43288                 void *p;
43289                 pthread_cleanup_push(ThreadCleanupFunc, p);
43290                 pthread_cleanup_pop(0);
43291
43292   ;
43293   return 0;
43294 }
43295 _ACEOF
43296 rm -f conftest.$ac_objext
43297 if { (ac_try="$ac_compile"
43298 case "(($ac_try" in
43299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43300   *) ac_try_echo=$ac_try;;
43301 esac
43302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43303   (eval "$ac_compile") 2>conftest.er1
43304   ac_status=$?
43305   grep -v '^ *+' conftest.er1 >conftest.err
43306   rm -f conftest.er1
43307   cat conftest.err >&5
43308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43309   (exit $ac_status); } && {
43310          test -z "$ac_cxx_werror_flag" ||
43311          test ! -s conftest.err
43312        } && test -s conftest.$ac_objext; then
43313
43314                wx_cv_func_pthread_cleanup=yes
43315
43316 else
43317   echo "$as_me: failed program was:" >&5
43318 sed 's/^/| /' conftest.$ac_ext >&5
43319
43320
43321                wx_cv_func_pthread_cleanup=no
43322
43323
43324 fi
43325
43326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43327         ac_ext=c
43328 ac_cpp='$CPP $CPPFLAGS'
43329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43332
43333
43334 fi
43335 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
43336 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
43337       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
43338         cat >>confdefs.h <<\_ACEOF
43339 #define wxHAVE_PTHREAD_CLEANUP 1
43340 _ACEOF
43341
43342       fi
43343
43344
43345 for ac_header in sched.h
43346 do
43347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43351   echo $ECHO_N "(cached) $ECHO_C" >&6
43352 else
43353   cat >conftest.$ac_ext <<_ACEOF
43354 /* confdefs.h.  */
43355 _ACEOF
43356 cat confdefs.h >>conftest.$ac_ext
43357 cat >>conftest.$ac_ext <<_ACEOF
43358 /* end confdefs.h.  */
43359 $ac_includes_default
43360
43361 #include <$ac_header>
43362 _ACEOF
43363 rm -f conftest.$ac_objext
43364 if { (ac_try="$ac_compile"
43365 case "(($ac_try" in
43366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43367   *) ac_try_echo=$ac_try;;
43368 esac
43369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43370   (eval "$ac_compile") 2>conftest.er1
43371   ac_status=$?
43372   grep -v '^ *+' conftest.er1 >conftest.err
43373   rm -f conftest.er1
43374   cat conftest.err >&5
43375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43376   (exit $ac_status); } && {
43377          test -z "$ac_c_werror_flag" ||
43378          test ! -s conftest.err
43379        } && test -s conftest.$ac_objext; then
43380   eval "$as_ac_Header=yes"
43381 else
43382   echo "$as_me: failed program was:" >&5
43383 sed 's/^/| /' conftest.$ac_ext >&5
43384
43385         eval "$as_ac_Header=no"
43386 fi
43387
43388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43389 fi
43390 ac_res=`eval echo '${'$as_ac_Header'}'`
43391                { echo "$as_me:$LINENO: result: $ac_res" >&5
43392 echo "${ECHO_T}$ac_res" >&6; }
43393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43394   cat >>confdefs.h <<_ACEOF
43395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43396 _ACEOF
43397
43398 fi
43399
43400 done
43401
43402       if test "$ac_cv_header_sched_h" = "yes"; then
43403           { echo "$as_me:$LINENO: checking for sched_yield" >&5
43404 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
43405 if test "${ac_cv_func_sched_yield+set}" = set; then
43406   echo $ECHO_N "(cached) $ECHO_C" >&6
43407 else
43408   cat >conftest.$ac_ext <<_ACEOF
43409 /* confdefs.h.  */
43410 _ACEOF
43411 cat confdefs.h >>conftest.$ac_ext
43412 cat >>conftest.$ac_ext <<_ACEOF
43413 /* end confdefs.h.  */
43414 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
43415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43416 #define sched_yield innocuous_sched_yield
43417
43418 /* System header to define __stub macros and hopefully few prototypes,
43419     which can conflict with char sched_yield (); below.
43420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43421     <limits.h> exists even on freestanding compilers.  */
43422
43423 #ifdef __STDC__
43424 # include <limits.h>
43425 #else
43426 # include <assert.h>
43427 #endif
43428
43429 #undef sched_yield
43430
43431 /* Override any GCC internal prototype to avoid an error.
43432    Use char because int might match the return type of a GCC
43433    builtin and then its argument prototype would still apply.  */
43434 #ifdef __cplusplus
43435 extern "C"
43436 #endif
43437 char sched_yield ();
43438 /* The GNU C library defines this for functions which it implements
43439     to always fail with ENOSYS.  Some functions are actually named
43440     something starting with __ and the normal name is an alias.  */
43441 #if defined __stub_sched_yield || defined __stub___sched_yield
43442 choke me
43443 #endif
43444
43445 int
43446 main ()
43447 {
43448 return sched_yield ();
43449   ;
43450   return 0;
43451 }
43452 _ACEOF
43453 rm -f conftest.$ac_objext conftest$ac_exeext
43454 if { (ac_try="$ac_link"
43455 case "(($ac_try" in
43456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43457   *) ac_try_echo=$ac_try;;
43458 esac
43459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43460   (eval "$ac_link") 2>conftest.er1
43461   ac_status=$?
43462   grep -v '^ *+' conftest.er1 >conftest.err
43463   rm -f conftest.er1
43464   cat conftest.err >&5
43465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43466   (exit $ac_status); } && {
43467          test -z "$ac_c_werror_flag" ||
43468          test ! -s conftest.err
43469        } && test -s conftest$ac_exeext &&
43470        $as_test_x conftest$ac_exeext; then
43471   ac_cv_func_sched_yield=yes
43472 else
43473   echo "$as_me: failed program was:" >&5
43474 sed 's/^/| /' conftest.$ac_ext >&5
43475
43476         ac_cv_func_sched_yield=no
43477 fi
43478
43479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43480       conftest$ac_exeext conftest.$ac_ext
43481 fi
43482 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
43483 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
43484 if test $ac_cv_func_sched_yield = yes; then
43485   cat >>confdefs.h <<\_ACEOF
43486 #define HAVE_SCHED_YIELD 1
43487 _ACEOF
43488
43489 else
43490
43491                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
43492 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
43493 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
43494   echo $ECHO_N "(cached) $ECHO_C" >&6
43495 else
43496   ac_check_lib_save_LIBS=$LIBS
43497 LIBS="-lposix4  $LIBS"
43498 cat >conftest.$ac_ext <<_ACEOF
43499 /* confdefs.h.  */
43500 _ACEOF
43501 cat confdefs.h >>conftest.$ac_ext
43502 cat >>conftest.$ac_ext <<_ACEOF
43503 /* end confdefs.h.  */
43504
43505 /* Override any GCC internal prototype to avoid an error.
43506    Use char because int might match the return type of a GCC
43507    builtin and then its argument prototype would still apply.  */
43508 #ifdef __cplusplus
43509 extern "C"
43510 #endif
43511 char sched_yield ();
43512 int
43513 main ()
43514 {
43515 return sched_yield ();
43516   ;
43517   return 0;
43518 }
43519 _ACEOF
43520 rm -f conftest.$ac_objext conftest$ac_exeext
43521 if { (ac_try="$ac_link"
43522 case "(($ac_try" in
43523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43524   *) ac_try_echo=$ac_try;;
43525 esac
43526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43527   (eval "$ac_link") 2>conftest.er1
43528   ac_status=$?
43529   grep -v '^ *+' conftest.er1 >conftest.err
43530   rm -f conftest.er1
43531   cat conftest.err >&5
43532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43533   (exit $ac_status); } && {
43534          test -z "$ac_c_werror_flag" ||
43535          test ! -s conftest.err
43536        } && test -s conftest$ac_exeext &&
43537        $as_test_x conftest$ac_exeext; then
43538   ac_cv_lib_posix4_sched_yield=yes
43539 else
43540   echo "$as_me: failed program was:" >&5
43541 sed 's/^/| /' conftest.$ac_ext >&5
43542
43543         ac_cv_lib_posix4_sched_yield=no
43544 fi
43545
43546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43547       conftest$ac_exeext conftest.$ac_ext
43548 LIBS=$ac_check_lib_save_LIBS
43549 fi
43550 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
43551 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
43552 if test $ac_cv_lib_posix4_sched_yield = yes; then
43553   cat >>confdefs.h <<\_ACEOF
43554 #define HAVE_SCHED_YIELD 1
43555 _ACEOF
43556  POSIX4_LINK=" -lposix4"
43557 else
43558   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
43559 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
43560
43561 fi
43562
43563
43564
43565 fi
43566
43567       fi
43568
43569                                           HAVE_PRIOR_FUNCS=0
43570       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
43571 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
43572 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
43573   echo $ECHO_N "(cached) $ECHO_C" >&6
43574 else
43575   cat >conftest.$ac_ext <<_ACEOF
43576 /* confdefs.h.  */
43577 _ACEOF
43578 cat confdefs.h >>conftest.$ac_ext
43579 cat >>conftest.$ac_ext <<_ACEOF
43580 /* end confdefs.h.  */
43581 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
43582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43583 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
43584
43585 /* System header to define __stub macros and hopefully few prototypes,
43586     which can conflict with char pthread_attr_getschedpolicy (); below.
43587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43588     <limits.h> exists even on freestanding compilers.  */
43589
43590 #ifdef __STDC__
43591 # include <limits.h>
43592 #else
43593 # include <assert.h>
43594 #endif
43595
43596 #undef pthread_attr_getschedpolicy
43597
43598 /* Override any GCC internal prototype to avoid an error.
43599    Use char because int might match the return type of a GCC
43600    builtin and then its argument prototype would still apply.  */
43601 #ifdef __cplusplus
43602 extern "C"
43603 #endif
43604 char pthread_attr_getschedpolicy ();
43605 /* The GNU C library defines this for functions which it implements
43606     to always fail with ENOSYS.  Some functions are actually named
43607     something starting with __ and the normal name is an alias.  */
43608 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
43609 choke me
43610 #endif
43611
43612 int
43613 main ()
43614 {
43615 return pthread_attr_getschedpolicy ();
43616   ;
43617   return 0;
43618 }
43619 _ACEOF
43620 rm -f conftest.$ac_objext conftest$ac_exeext
43621 if { (ac_try="$ac_link"
43622 case "(($ac_try" in
43623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43624   *) ac_try_echo=$ac_try;;
43625 esac
43626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43627   (eval "$ac_link") 2>conftest.er1
43628   ac_status=$?
43629   grep -v '^ *+' conftest.er1 >conftest.err
43630   rm -f conftest.er1
43631   cat conftest.err >&5
43632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43633   (exit $ac_status); } && {
43634          test -z "$ac_c_werror_flag" ||
43635          test ! -s conftest.err
43636        } && test -s conftest$ac_exeext &&
43637        $as_test_x conftest$ac_exeext; then
43638   ac_cv_func_pthread_attr_getschedpolicy=yes
43639 else
43640   echo "$as_me: failed program was:" >&5
43641 sed 's/^/| /' conftest.$ac_ext >&5
43642
43643         ac_cv_func_pthread_attr_getschedpolicy=no
43644 fi
43645
43646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43647       conftest$ac_exeext conftest.$ac_ext
43648 fi
43649 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
43650 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
43651 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
43652   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
43653 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
43654 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
43655   echo $ECHO_N "(cached) $ECHO_C" >&6
43656 else
43657   cat >conftest.$ac_ext <<_ACEOF
43658 /* confdefs.h.  */
43659 _ACEOF
43660 cat confdefs.h >>conftest.$ac_ext
43661 cat >>conftest.$ac_ext <<_ACEOF
43662 /* end confdefs.h.  */
43663 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
43664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43665 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
43666
43667 /* System header to define __stub macros and hopefully few prototypes,
43668     which can conflict with char pthread_attr_setschedparam (); below.
43669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43670     <limits.h> exists even on freestanding compilers.  */
43671
43672 #ifdef __STDC__
43673 # include <limits.h>
43674 #else
43675 # include <assert.h>
43676 #endif
43677
43678 #undef pthread_attr_setschedparam
43679
43680 /* Override any GCC internal prototype to avoid an error.
43681    Use char because int might match the return type of a GCC
43682    builtin and then its argument prototype would still apply.  */
43683 #ifdef __cplusplus
43684 extern "C"
43685 #endif
43686 char pthread_attr_setschedparam ();
43687 /* The GNU C library defines this for functions which it implements
43688     to always fail with ENOSYS.  Some functions are actually named
43689     something starting with __ and the normal name is an alias.  */
43690 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
43691 choke me
43692 #endif
43693
43694 int
43695 main ()
43696 {
43697 return pthread_attr_setschedparam ();
43698   ;
43699   return 0;
43700 }
43701 _ACEOF
43702 rm -f conftest.$ac_objext conftest$ac_exeext
43703 if { (ac_try="$ac_link"
43704 case "(($ac_try" in
43705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43706   *) ac_try_echo=$ac_try;;
43707 esac
43708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43709   (eval "$ac_link") 2>conftest.er1
43710   ac_status=$?
43711   grep -v '^ *+' conftest.er1 >conftest.err
43712   rm -f conftest.er1
43713   cat conftest.err >&5
43714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43715   (exit $ac_status); } && {
43716          test -z "$ac_c_werror_flag" ||
43717          test ! -s conftest.err
43718        } && test -s conftest$ac_exeext &&
43719        $as_test_x conftest$ac_exeext; then
43720   ac_cv_func_pthread_attr_setschedparam=yes
43721 else
43722   echo "$as_me: failed program was:" >&5
43723 sed 's/^/| /' conftest.$ac_ext >&5
43724
43725         ac_cv_func_pthread_attr_setschedparam=no
43726 fi
43727
43728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43729       conftest$ac_exeext conftest.$ac_ext
43730 fi
43731 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
43732 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
43733 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
43734   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
43735 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
43736 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
43737   echo $ECHO_N "(cached) $ECHO_C" >&6
43738 else
43739   cat >conftest.$ac_ext <<_ACEOF
43740 /* confdefs.h.  */
43741 _ACEOF
43742 cat confdefs.h >>conftest.$ac_ext
43743 cat >>conftest.$ac_ext <<_ACEOF
43744 /* end confdefs.h.  */
43745 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
43746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43747 #define sched_get_priority_max innocuous_sched_get_priority_max
43748
43749 /* System header to define __stub macros and hopefully few prototypes,
43750     which can conflict with char sched_get_priority_max (); below.
43751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43752     <limits.h> exists even on freestanding compilers.  */
43753
43754 #ifdef __STDC__
43755 # include <limits.h>
43756 #else
43757 # include <assert.h>
43758 #endif
43759
43760 #undef sched_get_priority_max
43761
43762 /* Override any GCC internal prototype to avoid an error.
43763    Use char because int might match the return type of a GCC
43764    builtin and then its argument prototype would still apply.  */
43765 #ifdef __cplusplus
43766 extern "C"
43767 #endif
43768 char sched_get_priority_max ();
43769 /* The GNU C library defines this for functions which it implements
43770     to always fail with ENOSYS.  Some functions are actually named
43771     something starting with __ and the normal name is an alias.  */
43772 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
43773 choke me
43774 #endif
43775
43776 int
43777 main ()
43778 {
43779 return sched_get_priority_max ();
43780   ;
43781   return 0;
43782 }
43783 _ACEOF
43784 rm -f conftest.$ac_objext conftest$ac_exeext
43785 if { (ac_try="$ac_link"
43786 case "(($ac_try" in
43787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43788   *) ac_try_echo=$ac_try;;
43789 esac
43790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43791   (eval "$ac_link") 2>conftest.er1
43792   ac_status=$?
43793   grep -v '^ *+' conftest.er1 >conftest.err
43794   rm -f conftest.er1
43795   cat conftest.err >&5
43796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43797   (exit $ac_status); } && {
43798          test -z "$ac_c_werror_flag" ||
43799          test ! -s conftest.err
43800        } && test -s conftest$ac_exeext &&
43801        $as_test_x conftest$ac_exeext; then
43802   ac_cv_func_sched_get_priority_max=yes
43803 else
43804   echo "$as_me: failed program was:" >&5
43805 sed 's/^/| /' conftest.$ac_ext >&5
43806
43807         ac_cv_func_sched_get_priority_max=no
43808 fi
43809
43810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43811       conftest$ac_exeext conftest.$ac_ext
43812 fi
43813 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
43814 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
43815 if test $ac_cv_func_sched_get_priority_max = yes; then
43816   HAVE_PRIOR_FUNCS=1
43817 else
43818   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
43819 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
43820 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
43821   echo $ECHO_N "(cached) $ECHO_C" >&6
43822 else
43823   ac_check_lib_save_LIBS=$LIBS
43824 LIBS="-lposix4  $LIBS"
43825 cat >conftest.$ac_ext <<_ACEOF
43826 /* confdefs.h.  */
43827 _ACEOF
43828 cat confdefs.h >>conftest.$ac_ext
43829 cat >>conftest.$ac_ext <<_ACEOF
43830 /* end confdefs.h.  */
43831
43832 /* Override any GCC internal prototype to avoid an error.
43833    Use char because int might match the return type of a GCC
43834    builtin and then its argument prototype would still apply.  */
43835 #ifdef __cplusplus
43836 extern "C"
43837 #endif
43838 char sched_get_priority_max ();
43839 int
43840 main ()
43841 {
43842 return sched_get_priority_max ();
43843   ;
43844   return 0;
43845 }
43846 _ACEOF
43847 rm -f conftest.$ac_objext conftest$ac_exeext
43848 if { (ac_try="$ac_link"
43849 case "(($ac_try" in
43850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43851   *) ac_try_echo=$ac_try;;
43852 esac
43853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43854   (eval "$ac_link") 2>conftest.er1
43855   ac_status=$?
43856   grep -v '^ *+' conftest.er1 >conftest.err
43857   rm -f conftest.er1
43858   cat conftest.err >&5
43859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43860   (exit $ac_status); } && {
43861          test -z "$ac_c_werror_flag" ||
43862          test ! -s conftest.err
43863        } && test -s conftest$ac_exeext &&
43864        $as_test_x conftest$ac_exeext; then
43865   ac_cv_lib_posix4_sched_get_priority_max=yes
43866 else
43867   echo "$as_me: failed program was:" >&5
43868 sed 's/^/| /' conftest.$ac_ext >&5
43869
43870         ac_cv_lib_posix4_sched_get_priority_max=no
43871 fi
43872
43873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43874       conftest$ac_exeext conftest.$ac_ext
43875 LIBS=$ac_check_lib_save_LIBS
43876 fi
43877 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
43878 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
43879 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
43880
43881                                 HAVE_PRIOR_FUNCS=1
43882                                 POSIX4_LINK=" -lposix4"
43883
43884 fi
43885
43886
43887 fi
43888
43889
43890 fi
43891
43892
43893 fi
43894
43895
43896       if test "$HAVE_PRIOR_FUNCS" = 1; then
43897         cat >>confdefs.h <<\_ACEOF
43898 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
43899 _ACEOF
43900
43901       else
43902         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
43903 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
43904       fi
43905
43906       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
43907 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
43908 if test "${ac_cv_func_pthread_cancel+set}" = set; then
43909   echo $ECHO_N "(cached) $ECHO_C" >&6
43910 else
43911   cat >conftest.$ac_ext <<_ACEOF
43912 /* confdefs.h.  */
43913 _ACEOF
43914 cat confdefs.h >>conftest.$ac_ext
43915 cat >>conftest.$ac_ext <<_ACEOF
43916 /* end confdefs.h.  */
43917 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
43918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43919 #define pthread_cancel innocuous_pthread_cancel
43920
43921 /* System header to define __stub macros and hopefully few prototypes,
43922     which can conflict with char pthread_cancel (); below.
43923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43924     <limits.h> exists even on freestanding compilers.  */
43925
43926 #ifdef __STDC__
43927 # include <limits.h>
43928 #else
43929 # include <assert.h>
43930 #endif
43931
43932 #undef pthread_cancel
43933
43934 /* Override any GCC internal prototype to avoid an error.
43935    Use char because int might match the return type of a GCC
43936    builtin and then its argument prototype would still apply.  */
43937 #ifdef __cplusplus
43938 extern "C"
43939 #endif
43940 char pthread_cancel ();
43941 /* The GNU C library defines this for functions which it implements
43942     to always fail with ENOSYS.  Some functions are actually named
43943     something starting with __ and the normal name is an alias.  */
43944 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
43945 choke me
43946 #endif
43947
43948 int
43949 main ()
43950 {
43951 return pthread_cancel ();
43952   ;
43953   return 0;
43954 }
43955 _ACEOF
43956 rm -f conftest.$ac_objext conftest$ac_exeext
43957 if { (ac_try="$ac_link"
43958 case "(($ac_try" in
43959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43960   *) ac_try_echo=$ac_try;;
43961 esac
43962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43963   (eval "$ac_link") 2>conftest.er1
43964   ac_status=$?
43965   grep -v '^ *+' conftest.er1 >conftest.err
43966   rm -f conftest.er1
43967   cat conftest.err >&5
43968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43969   (exit $ac_status); } && {
43970          test -z "$ac_c_werror_flag" ||
43971          test ! -s conftest.err
43972        } && test -s conftest$ac_exeext &&
43973        $as_test_x conftest$ac_exeext; then
43974   ac_cv_func_pthread_cancel=yes
43975 else
43976   echo "$as_me: failed program was:" >&5
43977 sed 's/^/| /' conftest.$ac_ext >&5
43978
43979         ac_cv_func_pthread_cancel=no
43980 fi
43981
43982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43983       conftest$ac_exeext conftest.$ac_ext
43984 fi
43985 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
43986 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
43987 if test $ac_cv_func_pthread_cancel = yes; then
43988   cat >>confdefs.h <<\_ACEOF
43989 #define HAVE_PTHREAD_CANCEL 1
43990 _ACEOF
43991
43992 else
43993   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
43994 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
43995 fi
43996
43997
43998       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
43999 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
44000 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
44001   echo $ECHO_N "(cached) $ECHO_C" >&6
44002 else
44003   cat >conftest.$ac_ext <<_ACEOF
44004 /* confdefs.h.  */
44005 _ACEOF
44006 cat confdefs.h >>conftest.$ac_ext
44007 cat >>conftest.$ac_ext <<_ACEOF
44008 /* end confdefs.h.  */
44009 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
44010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44011 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
44012
44013 /* System header to define __stub macros and hopefully few prototypes,
44014     which can conflict with char pthread_mutex_timedlock (); below.
44015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44016     <limits.h> exists even on freestanding compilers.  */
44017
44018 #ifdef __STDC__
44019 # include <limits.h>
44020 #else
44021 # include <assert.h>
44022 #endif
44023
44024 #undef pthread_mutex_timedlock
44025
44026 /* Override any GCC internal prototype to avoid an error.
44027    Use char because int might match the return type of a GCC
44028    builtin and then its argument prototype would still apply.  */
44029 #ifdef __cplusplus
44030 extern "C"
44031 #endif
44032 char pthread_mutex_timedlock ();
44033 /* The GNU C library defines this for functions which it implements
44034     to always fail with ENOSYS.  Some functions are actually named
44035     something starting with __ and the normal name is an alias.  */
44036 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
44037 choke me
44038 #endif
44039
44040 int
44041 main ()
44042 {
44043 return pthread_mutex_timedlock ();
44044   ;
44045   return 0;
44046 }
44047 _ACEOF
44048 rm -f conftest.$ac_objext conftest$ac_exeext
44049 if { (ac_try="$ac_link"
44050 case "(($ac_try" in
44051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44052   *) ac_try_echo=$ac_try;;
44053 esac
44054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44055   (eval "$ac_link") 2>conftest.er1
44056   ac_status=$?
44057   grep -v '^ *+' conftest.er1 >conftest.err
44058   rm -f conftest.er1
44059   cat conftest.err >&5
44060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44061   (exit $ac_status); } && {
44062          test -z "$ac_c_werror_flag" ||
44063          test ! -s conftest.err
44064        } && test -s conftest$ac_exeext &&
44065        $as_test_x conftest$ac_exeext; then
44066   ac_cv_func_pthread_mutex_timedlock=yes
44067 else
44068   echo "$as_me: failed program was:" >&5
44069 sed 's/^/| /' conftest.$ac_ext >&5
44070
44071         ac_cv_func_pthread_mutex_timedlock=no
44072 fi
44073
44074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44075       conftest$ac_exeext conftest.$ac_ext
44076 fi
44077 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
44078 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
44079 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
44080   cat >>confdefs.h <<\_ACEOF
44081 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
44082 _ACEOF
44083
44084 else
44085   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
44086 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
44087 fi
44088
44089
44090       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
44091 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
44092 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
44093   echo $ECHO_N "(cached) $ECHO_C" >&6
44094 else
44095   cat >conftest.$ac_ext <<_ACEOF
44096 /* confdefs.h.  */
44097 _ACEOF
44098 cat confdefs.h >>conftest.$ac_ext
44099 cat >>conftest.$ac_ext <<_ACEOF
44100 /* end confdefs.h.  */
44101 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
44102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44103 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
44104
44105 /* System header to define __stub macros and hopefully few prototypes,
44106     which can conflict with char pthread_attr_setstacksize (); below.
44107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44108     <limits.h> exists even on freestanding compilers.  */
44109
44110 #ifdef __STDC__
44111 # include <limits.h>
44112 #else
44113 # include <assert.h>
44114 #endif
44115
44116 #undef pthread_attr_setstacksize
44117
44118 /* Override any GCC internal prototype to avoid an error.
44119    Use char because int might match the return type of a GCC
44120    builtin and then its argument prototype would still apply.  */
44121 #ifdef __cplusplus
44122 extern "C"
44123 #endif
44124 char pthread_attr_setstacksize ();
44125 /* The GNU C library defines this for functions which it implements
44126     to always fail with ENOSYS.  Some functions are actually named
44127     something starting with __ and the normal name is an alias.  */
44128 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
44129 choke me
44130 #endif
44131
44132 int
44133 main ()
44134 {
44135 return pthread_attr_setstacksize ();
44136   ;
44137   return 0;
44138 }
44139 _ACEOF
44140 rm -f conftest.$ac_objext conftest$ac_exeext
44141 if { (ac_try="$ac_link"
44142 case "(($ac_try" in
44143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44144   *) ac_try_echo=$ac_try;;
44145 esac
44146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44147   (eval "$ac_link") 2>conftest.er1
44148   ac_status=$?
44149   grep -v '^ *+' conftest.er1 >conftest.err
44150   rm -f conftest.er1
44151   cat conftest.err >&5
44152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44153   (exit $ac_status); } && {
44154          test -z "$ac_c_werror_flag" ||
44155          test ! -s conftest.err
44156        } && test -s conftest$ac_exeext &&
44157        $as_test_x conftest$ac_exeext; then
44158   ac_cv_func_pthread_attr_setstacksize=yes
44159 else
44160   echo "$as_me: failed program was:" >&5
44161 sed 's/^/| /' conftest.$ac_ext >&5
44162
44163         ac_cv_func_pthread_attr_setstacksize=no
44164 fi
44165
44166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44167       conftest$ac_exeext conftest.$ac_ext
44168 fi
44169 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
44170 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
44171 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
44172   cat >>confdefs.h <<\_ACEOF
44173 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
44174 _ACEOF
44175
44176 fi
44177
44178
44179
44180       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
44181 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
44182 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
44183   echo $ECHO_N "(cached) $ECHO_C" >&6
44184 else
44185
44186         cat >conftest.$ac_ext <<_ACEOF
44187 /* confdefs.h.  */
44188 _ACEOF
44189 cat confdefs.h >>conftest.$ac_ext
44190 cat >>conftest.$ac_ext <<_ACEOF
44191 /* end confdefs.h.  */
44192 #include <pthread.h>
44193 int
44194 main ()
44195 {
44196
44197                pthread_mutexattr_t attr;
44198                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
44199
44200   ;
44201   return 0;
44202 }
44203 _ACEOF
44204 rm -f conftest.$ac_objext
44205 if { (ac_try="$ac_compile"
44206 case "(($ac_try" in
44207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44208   *) ac_try_echo=$ac_try;;
44209 esac
44210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44211   (eval "$ac_compile") 2>conftest.er1
44212   ac_status=$?
44213   grep -v '^ *+' conftest.er1 >conftest.err
44214   rm -f conftest.er1
44215   cat conftest.err >&5
44216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44217   (exit $ac_status); } && {
44218          test -z "$ac_c_werror_flag" ||
44219          test ! -s conftest.err
44220        } && test -s conftest.$ac_objext; then
44221   wx_cv_type_pthread_mutexattr_t=yes
44222 else
44223   echo "$as_me: failed program was:" >&5
44224 sed 's/^/| /' conftest.$ac_ext >&5
44225
44226         wx_cv_type_pthread_mutexattr_t=no
44227
44228 fi
44229
44230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44231
44232 fi
44233 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
44234 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
44235
44236       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
44237         cat >>confdefs.h <<\_ACEOF
44238 #define HAVE_PTHREAD_MUTEXATTR_T 1
44239 _ACEOF
44240
44241
44242                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
44243 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
44244 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
44245   echo $ECHO_N "(cached) $ECHO_C" >&6
44246 else
44247
44248                        cat >conftest.$ac_ext <<_ACEOF
44249 /* confdefs.h.  */
44250 _ACEOF
44251 cat confdefs.h >>conftest.$ac_ext
44252 cat >>conftest.$ac_ext <<_ACEOF
44253 /* end confdefs.h.  */
44254 #include <pthread.h>
44255 int
44256 main ()
44257 {
44258
44259                                pthread_mutexattr_t attr;
44260                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
44261
44262   ;
44263   return 0;
44264 }
44265 _ACEOF
44266 rm -f conftest.$ac_objext
44267 if { (ac_try="$ac_compile"
44268 case "(($ac_try" in
44269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44270   *) ac_try_echo=$ac_try;;
44271 esac
44272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44273   (eval "$ac_compile") 2>conftest.er1
44274   ac_status=$?
44275   grep -v '^ *+' conftest.er1 >conftest.err
44276   rm -f conftest.er1
44277   cat conftest.err >&5
44278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44279   (exit $ac_status); } && {
44280          test -z "$ac_c_werror_flag" ||
44281          test ! -s conftest.err
44282        } && test -s conftest.$ac_objext; then
44283   wx_cv_func_pthread_mutexattr_settype_decl=yes
44284 else
44285   echo "$as_me: failed program was:" >&5
44286 sed 's/^/| /' conftest.$ac_ext >&5
44287
44288         wx_cv_func_pthread_mutexattr_settype_decl=no
44289
44290 fi
44291
44292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44293
44294 fi
44295 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
44296 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
44297         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
44298             cat >>confdefs.h <<\_ACEOF
44299 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
44300 _ACEOF
44301
44302         fi
44303       else
44304                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
44305 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
44306 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
44307   echo $ECHO_N "(cached) $ECHO_C" >&6
44308 else
44309
44310             cat >conftest.$ac_ext <<_ACEOF
44311 /* confdefs.h.  */
44312 _ACEOF
44313 cat confdefs.h >>conftest.$ac_ext
44314 cat >>conftest.$ac_ext <<_ACEOF
44315 /* end confdefs.h.  */
44316 #include <pthread.h>
44317 int
44318 main ()
44319 {
44320
44321                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
44322
44323   ;
44324   return 0;
44325 }
44326 _ACEOF
44327 rm -f conftest.$ac_objext
44328 if { (ac_try="$ac_compile"
44329 case "(($ac_try" in
44330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44331   *) ac_try_echo=$ac_try;;
44332 esac
44333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44334   (eval "$ac_compile") 2>conftest.er1
44335   ac_status=$?
44336   grep -v '^ *+' conftest.er1 >conftest.err
44337   rm -f conftest.er1
44338   cat conftest.err >&5
44339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44340   (exit $ac_status); } && {
44341          test -z "$ac_c_werror_flag" ||
44342          test ! -s conftest.err
44343        } && test -s conftest.$ac_objext; then
44344
44345                     wx_cv_type_pthread_rec_mutex_init=yes
44346
44347 else
44348   echo "$as_me: failed program was:" >&5
44349 sed 's/^/| /' conftest.$ac_ext >&5
44350
44351
44352                     wx_cv_type_pthread_rec_mutex_init=no
44353
44354
44355 fi
44356
44357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44358
44359 fi
44360 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
44361 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
44362         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
44363           cat >>confdefs.h <<\_ACEOF
44364 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
44365 _ACEOF
44366
44367         else
44368                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
44369 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
44370         fi
44371       fi
44372
44373       if test "$wxUSE_COMPILER_TLS" = "auto"; then
44374           if test "$USE_NETBSD" = 1; then
44375               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
44376 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
44377               wxUSE_COMPILER_TLS=no
44378           else
44379               wxUSE_COMPILER_TLS=yes
44380           fi
44381       fi
44382
44383       if test "$wxUSE_COMPILER_TLS" = "yes"; then
44384                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
44385 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
44386 if test "${wx_cv_cc___thread+set}" = set; then
44387   echo $ECHO_N "(cached) $ECHO_C" >&6
44388 else
44389
44390                   cat >conftest.$ac_ext <<_ACEOF
44391 /* confdefs.h.  */
44392 _ACEOF
44393 cat confdefs.h >>conftest.$ac_ext
44394 cat >>conftest.$ac_ext <<_ACEOF
44395 /* end confdefs.h.  */
44396 #include <pthread.h>
44397 int
44398 main ()
44399 {
44400
44401                           static __thread int n = 0;
44402                           static __thread int *p = 0;
44403
44404   ;
44405   return 0;
44406 }
44407 _ACEOF
44408 rm -f conftest.$ac_objext
44409 if { (ac_try="$ac_compile"
44410 case "(($ac_try" in
44411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44412   *) ac_try_echo=$ac_try;;
44413 esac
44414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44415   (eval "$ac_compile") 2>conftest.er1
44416   ac_status=$?
44417   grep -v '^ *+' conftest.er1 >conftest.err
44418   rm -f conftest.er1
44419   cat conftest.err >&5
44420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44421   (exit $ac_status); } && {
44422          test -z "$ac_c_werror_flag" ||
44423          test ! -s conftest.err
44424        } && test -s conftest.$ac_objext; then
44425   wx_cv_cc___thread=yes
44426 else
44427   echo "$as_me: failed program was:" >&5
44428 sed 's/^/| /' conftest.$ac_ext >&5
44429
44430         wx_cv_cc___thread=no
44431
44432 fi
44433
44434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44435
44436
44437 fi
44438 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
44439 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
44440
44441           if test "$wx_cv_cc___thread" = "yes"; then
44442
44443   GXX_VERSION=""
44444
44445
44446
44447   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
44448 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
44449
44450   if  test "x$GCC" = "xyes" ; then
44451
44452     if  test -z "" ; then
44453
44454       ax_gcc_option_test="int main()
44455 {
44456         return 0;
44457 }"
44458
44459 else
44460
44461       ax_gcc_option_test=""
44462
44463 fi
44464
44465
44466     # Dump the test program to file
44467     cat <<EOF > conftest.c
44468 $ax_gcc_option_test
44469 EOF
44470
44471     # Dump back the file to the log, useful for debugging purposes
44472     { ac_try='cat conftest.c 1>&5'
44473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44474   (eval $ac_try) 2>&5
44475   ac_status=$?
44476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44477   (exit $ac_status); }; }
44478
44479     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
44480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44481   (eval $ac_try) 2>&5
44482   ac_status=$?
44483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484   (exit $ac_status); }; } ; then
44485
44486                 { echo "$as_me:$LINENO: result: yes" >&5
44487 echo "${ECHO_T}yes" >&6; }
44488
44489     ax_gcc_version_option=yes
44490
44491
44492 else
44493
44494                 { echo "$as_me:$LINENO: result: no" >&5
44495 echo "${ECHO_T}no" >&6; }
44496
44497     ax_gcc_version_option=no
44498
44499
44500 fi
44501
44502
44503 else
44504
44505     { echo "$as_me:$LINENO: result: no gcc available" >&5
44506 echo "${ECHO_T}no gcc available" >&6; }
44507
44508 fi
44509
44510
44511   if test "x$GXX" = "xyes"; then
44512
44513     if test "x$ax_gxx_version_option" != "no"; then
44514
44515       { echo "$as_me:$LINENO: checking gxx version" >&5
44516 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
44517 if test "${ax_cv_gxx_version+set}" = set; then
44518   echo $ECHO_N "(cached) $ECHO_C" >&6
44519 else
44520
44521         ax_cv_gxx_version="`$CXX -dumpversion`"
44522         if test "x$ax_cv_gxx_version" = "x"; then
44523
44524           ax_cv_gxx_version=""
44525
44526 fi
44527
44528
44529 fi
44530 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
44531 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
44532       GXX_VERSION=$ax_cv_gxx_version
44533
44534 fi
44535
44536
44537 fi
44538
44539
44540
44541               if test -n "$ax_cv_gxx_version"; then
44542                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
44543 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
44544                   case "$ax_cv_gxx_version" in
44545                     1.* | 2.* | 3.* )
44546                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
44547 echo "${ECHO_T}no, it's broken" >&6; }
44548                         wx_cv_cc___thread=no
44549                         ;;
44550                     *)
44551                         { echo "$as_me:$LINENO: result: yes, it works" >&5
44552 echo "${ECHO_T}yes, it works" >&6; }
44553                         ;;
44554                   esac
44555               fi
44556           fi
44557
44558           if test "$wx_cv_cc___thread" = "yes"; then
44559             cat >>confdefs.h <<\_ACEOF
44560 #define HAVE___THREAD_KEYWORD 1
44561 _ACEOF
44562
44563           fi
44564         fi
44565     fi
44566
44567 else
44568     if test "$wxUSE_THREADS" = "yes" ; then
44569       case "${host}" in
44570         x86_64-*-mingw32* )
44571         ;;
44572         *-*-mingw32* )
44573                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
44574 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
44575 if test "${wx_cv_cflags_mthread+set}" = set; then
44576   echo $ECHO_N "(cached) $ECHO_C" >&6
44577 else
44578
44579                     CFLAGS_OLD="$CFLAGS"
44580                     CFLAGS="-mthreads $CFLAGS"
44581                     cat >conftest.$ac_ext <<_ACEOF
44582 /* confdefs.h.  */
44583 _ACEOF
44584 cat confdefs.h >>conftest.$ac_ext
44585 cat >>conftest.$ac_ext <<_ACEOF
44586 /* end confdefs.h.  */
44587
44588 int
44589 main ()
44590 {
44591
44592   ;
44593   return 0;
44594 }
44595 _ACEOF
44596 rm -f conftest.$ac_objext
44597 if { (ac_try="$ac_compile"
44598 case "(($ac_try" in
44599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44600   *) ac_try_echo=$ac_try;;
44601 esac
44602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44603   (eval "$ac_compile") 2>conftest.er1
44604   ac_status=$?
44605   grep -v '^ *+' conftest.er1 >conftest.err
44606   rm -f conftest.er1
44607   cat conftest.err >&5
44608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44609   (exit $ac_status); } && {
44610          test -z "$ac_c_werror_flag" ||
44611          test ! -s conftest.err
44612        } && test -s conftest.$ac_objext; then
44613   wx_cv_cflags_mthread=yes
44614 else
44615   echo "$as_me: failed program was:" >&5
44616 sed 's/^/| /' conftest.$ac_ext >&5
44617
44618         wx_cv_cflags_mthread=no
44619
44620 fi
44621
44622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44623
44624
44625 fi
44626 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
44627 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
44628
44629             if test "$wx_cv_cflags_mthread" = "yes"; then
44630                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
44631                 LDFLAGS="$LDFLAGS -mthreads"
44632             else
44633                                 CFLAGS="$CFLAGS_OLD"
44634             fi
44635         ;;
44636         *-pc-os2*emx )
44637             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
44638             LDFLAGS="$LDFLAGS -Zmt"
44639         ;;
44640       esac
44641     fi
44642 fi
44643
44644 { echo "$as_me:$LINENO: checking for localtime_r" >&5
44645 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
44646 if test "${ac_cv_func_localtime_r+set}" = set; then
44647   echo $ECHO_N "(cached) $ECHO_C" >&6
44648 else
44649   cat >conftest.$ac_ext <<_ACEOF
44650 /* confdefs.h.  */
44651 _ACEOF
44652 cat confdefs.h >>conftest.$ac_ext
44653 cat >>conftest.$ac_ext <<_ACEOF
44654 /* end confdefs.h.  */
44655 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
44656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44657 #define localtime_r innocuous_localtime_r
44658
44659 /* System header to define __stub macros and hopefully few prototypes,
44660     which can conflict with char localtime_r (); below.
44661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44662     <limits.h> exists even on freestanding compilers.  */
44663
44664 #ifdef __STDC__
44665 # include <limits.h>
44666 #else
44667 # include <assert.h>
44668 #endif
44669
44670 #undef localtime_r
44671
44672 /* Override any GCC internal prototype to avoid an error.
44673    Use char because int might match the return type of a GCC
44674    builtin and then its argument prototype would still apply.  */
44675 #ifdef __cplusplus
44676 extern "C"
44677 #endif
44678 char localtime_r ();
44679 /* The GNU C library defines this for functions which it implements
44680     to always fail with ENOSYS.  Some functions are actually named
44681     something starting with __ and the normal name is an alias.  */
44682 #if defined __stub_localtime_r || defined __stub___localtime_r
44683 choke me
44684 #endif
44685
44686 int
44687 main ()
44688 {
44689 return localtime_r ();
44690   ;
44691   return 0;
44692 }
44693 _ACEOF
44694 rm -f conftest.$ac_objext conftest$ac_exeext
44695 if { (ac_try="$ac_link"
44696 case "(($ac_try" in
44697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44698   *) ac_try_echo=$ac_try;;
44699 esac
44700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44701   (eval "$ac_link") 2>conftest.er1
44702   ac_status=$?
44703   grep -v '^ *+' conftest.er1 >conftest.err
44704   rm -f conftest.er1
44705   cat conftest.err >&5
44706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44707   (exit $ac_status); } && {
44708          test -z "$ac_c_werror_flag" ||
44709          test ! -s conftest.err
44710        } && test -s conftest$ac_exeext &&
44711        $as_test_x conftest$ac_exeext; then
44712   ac_cv_func_localtime_r=yes
44713 else
44714   echo "$as_me: failed program was:" >&5
44715 sed 's/^/| /' conftest.$ac_ext >&5
44716
44717         ac_cv_func_localtime_r=no
44718 fi
44719
44720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44721       conftest$ac_exeext conftest.$ac_ext
44722 fi
44723 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
44724 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
44725 if test $ac_cv_func_localtime_r = yes; then
44726    cat >>confdefs.h <<\_ACEOF
44727 #define HAVE_LOCALTIME_R 1
44728 _ACEOF
44729
44730 fi
44731
44732 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
44733 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
44734 if test "${ac_cv_func_gmtime_r+set}" = set; then
44735   echo $ECHO_N "(cached) $ECHO_C" >&6
44736 else
44737   cat >conftest.$ac_ext <<_ACEOF
44738 /* confdefs.h.  */
44739 _ACEOF
44740 cat confdefs.h >>conftest.$ac_ext
44741 cat >>conftest.$ac_ext <<_ACEOF
44742 /* end confdefs.h.  */
44743 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
44744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44745 #define gmtime_r innocuous_gmtime_r
44746
44747 /* System header to define __stub macros and hopefully few prototypes,
44748     which can conflict with char gmtime_r (); below.
44749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44750     <limits.h> exists even on freestanding compilers.  */
44751
44752 #ifdef __STDC__
44753 # include <limits.h>
44754 #else
44755 # include <assert.h>
44756 #endif
44757
44758 #undef gmtime_r
44759
44760 /* Override any GCC internal prototype to avoid an error.
44761    Use char because int might match the return type of a GCC
44762    builtin and then its argument prototype would still apply.  */
44763 #ifdef __cplusplus
44764 extern "C"
44765 #endif
44766 char gmtime_r ();
44767 /* The GNU C library defines this for functions which it implements
44768     to always fail with ENOSYS.  Some functions are actually named
44769     something starting with __ and the normal name is an alias.  */
44770 #if defined __stub_gmtime_r || defined __stub___gmtime_r
44771 choke me
44772 #endif
44773
44774 int
44775 main ()
44776 {
44777 return gmtime_r ();
44778   ;
44779   return 0;
44780 }
44781 _ACEOF
44782 rm -f conftest.$ac_objext conftest$ac_exeext
44783 if { (ac_try="$ac_link"
44784 case "(($ac_try" in
44785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44786   *) ac_try_echo=$ac_try;;
44787 esac
44788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44789   (eval "$ac_link") 2>conftest.er1
44790   ac_status=$?
44791   grep -v '^ *+' conftest.er1 >conftest.err
44792   rm -f conftest.er1
44793   cat conftest.err >&5
44794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44795   (exit $ac_status); } && {
44796          test -z "$ac_c_werror_flag" ||
44797          test ! -s conftest.err
44798        } && test -s conftest$ac_exeext &&
44799        $as_test_x conftest$ac_exeext; then
44800   ac_cv_func_gmtime_r=yes
44801 else
44802   echo "$as_me: failed program was:" >&5
44803 sed 's/^/| /' conftest.$ac_ext >&5
44804
44805         ac_cv_func_gmtime_r=no
44806 fi
44807
44808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44809       conftest$ac_exeext conftest.$ac_ext
44810 fi
44811 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
44812 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
44813 if test $ac_cv_func_gmtime_r = yes; then
44814    cat >>confdefs.h <<\_ACEOF
44815 #define HAVE_GMTIME_R 1
44816 _ACEOF
44817
44818 fi
44819
44820
44821
44822
44823     ac_ext=c
44824 ac_cpp='$CPP $CPPFLAGS'
44825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44828
44829     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
44830 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
44831
44832     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
44833   echo $ECHO_N "(cached) $ECHO_C" >&6
44834 else
44835
44836
44837 ################################################################
44838
44839 ac_cv_func_which_gethostbyname_r=unknown
44840
44841 #
44842 # ONE ARGUMENT (sanity check)
44843 #
44844
44845 # This should fail, as there is no variant of gethostbyname_r() that takes
44846 # a single argument. If it actually compiles, then we can assume that
44847 # netdb.h is not declaring the function, and the compiler is thereby
44848 # assuming an implicit prototype. In which case, we're out of luck.
44849 #
44850 cat >conftest.$ac_ext <<_ACEOF
44851 /* confdefs.h.  */
44852 _ACEOF
44853 cat confdefs.h >>conftest.$ac_ext
44854 cat >>conftest.$ac_ext <<_ACEOF
44855 /* end confdefs.h.  */
44856 #include <netdb.h>
44857 int
44858 main ()
44859 {
44860
44861             char *name = "www.gnu.org";
44862             (void)gethostbyname_r(name) /* ; */
44863
44864
44865   ;
44866   return 0;
44867 }
44868 _ACEOF
44869 rm -f conftest.$ac_objext
44870 if { (ac_try="$ac_compile"
44871 case "(($ac_try" in
44872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44873   *) ac_try_echo=$ac_try;;
44874 esac
44875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44876   (eval "$ac_compile") 2>conftest.er1
44877   ac_status=$?
44878   grep -v '^ *+' conftest.er1 >conftest.err
44879   rm -f conftest.er1
44880   cat conftest.err >&5
44881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44882   (exit $ac_status); } && {
44883          test -z "$ac_c_werror_flag" ||
44884          test ! -s conftest.err
44885        } && test -s conftest.$ac_objext; then
44886   ac_cv_func_which_gethostbyname_r=no
44887
44888 else
44889   echo "$as_me: failed program was:" >&5
44890 sed 's/^/| /' conftest.$ac_ext >&5
44891
44892
44893 fi
44894
44895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44896
44897 #
44898 # SIX ARGUMENTS
44899 # (e.g. Linux)
44900 #
44901
44902 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44903
44904 cat >conftest.$ac_ext <<_ACEOF
44905 /* confdefs.h.  */
44906 _ACEOF
44907 cat confdefs.h >>conftest.$ac_ext
44908 cat >>conftest.$ac_ext <<_ACEOF
44909 /* end confdefs.h.  */
44910 #include <netdb.h>
44911 int
44912 main ()
44913 {
44914
44915             char *name = "www.gnu.org";
44916             struct hostent ret, *retp;
44917             char buf[1024];
44918             int buflen = 1024;
44919             int my_h_errno;
44920             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
44921
44922
44923   ;
44924   return 0;
44925 }
44926 _ACEOF
44927 rm -f conftest.$ac_objext
44928 if { (ac_try="$ac_compile"
44929 case "(($ac_try" in
44930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44931   *) ac_try_echo=$ac_try;;
44932 esac
44933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44934   (eval "$ac_compile") 2>conftest.er1
44935   ac_status=$?
44936   grep -v '^ *+' conftest.er1 >conftest.err
44937   rm -f conftest.er1
44938   cat conftest.err >&5
44939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44940   (exit $ac_status); } && {
44941          test -z "$ac_c_werror_flag" ||
44942          test ! -s conftest.err
44943        } && test -s conftest.$ac_objext; then
44944   ac_cv_func_which_gethostbyname_r=six
44945
44946 else
44947   echo "$as_me: failed program was:" >&5
44948 sed 's/^/| /' conftest.$ac_ext >&5
44949
44950
44951 fi
44952
44953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44954
44955 fi
44956
44957 #
44958 # FIVE ARGUMENTS
44959 # (e.g. Solaris)
44960 #
44961
44962 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44963
44964 cat >conftest.$ac_ext <<_ACEOF
44965 /* confdefs.h.  */
44966 _ACEOF
44967 cat confdefs.h >>conftest.$ac_ext
44968 cat >>conftest.$ac_ext <<_ACEOF
44969 /* end confdefs.h.  */
44970 #include <netdb.h>
44971 int
44972 main ()
44973 {
44974
44975             char *name = "www.gnu.org";
44976             struct hostent ret;
44977             char buf[1024];
44978             int buflen = 1024;
44979             int my_h_errno;
44980             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
44981
44982
44983   ;
44984   return 0;
44985 }
44986 _ACEOF
44987 rm -f conftest.$ac_objext
44988 if { (ac_try="$ac_compile"
44989 case "(($ac_try" in
44990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44991   *) ac_try_echo=$ac_try;;
44992 esac
44993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44994   (eval "$ac_compile") 2>conftest.er1
44995   ac_status=$?
44996   grep -v '^ *+' conftest.er1 >conftest.err
44997   rm -f conftest.er1
44998   cat conftest.err >&5
44999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45000   (exit $ac_status); } && {
45001          test -z "$ac_c_werror_flag" ||
45002          test ! -s conftest.err
45003        } && test -s conftest.$ac_objext; then
45004   ac_cv_func_which_gethostbyname_r=five
45005
45006 else
45007   echo "$as_me: failed program was:" >&5
45008 sed 's/^/| /' conftest.$ac_ext >&5
45009
45010
45011 fi
45012
45013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45014
45015 fi
45016
45017 #
45018 # THREE ARGUMENTS
45019 # (e.g. AIX, HP-UX, Tru64)
45020 #
45021
45022 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
45023
45024 cat >conftest.$ac_ext <<_ACEOF
45025 /* confdefs.h.  */
45026 _ACEOF
45027 cat confdefs.h >>conftest.$ac_ext
45028 cat >>conftest.$ac_ext <<_ACEOF
45029 /* end confdefs.h.  */
45030 #include <netdb.h>
45031 int
45032 main ()
45033 {
45034
45035             char *name = "www.gnu.org";
45036             struct hostent ret;
45037             struct hostent_data data;
45038             (void)gethostbyname_r(name, &ret, &data) /* ; */
45039
45040
45041   ;
45042   return 0;
45043 }
45044 _ACEOF
45045 rm -f conftest.$ac_objext
45046 if { (ac_try="$ac_compile"
45047 case "(($ac_try" in
45048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45049   *) ac_try_echo=$ac_try;;
45050 esac
45051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45052   (eval "$ac_compile") 2>conftest.er1
45053   ac_status=$?
45054   grep -v '^ *+' conftest.er1 >conftest.err
45055   rm -f conftest.er1
45056   cat conftest.err >&5
45057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45058   (exit $ac_status); } && {
45059          test -z "$ac_c_werror_flag" ||
45060          test ! -s conftest.err
45061        } && test -s conftest.$ac_objext; then
45062   ac_cv_func_which_gethostbyname_r=three
45063
45064 else
45065   echo "$as_me: failed program was:" >&5
45066 sed 's/^/| /' conftest.$ac_ext >&5
45067
45068
45069 fi
45070
45071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45072
45073 fi
45074
45075 ################################################################
45076
45077
45078 fi
45079
45080 case "$ac_cv_func_which_gethostbyname_r" in
45081     three)
45082     { echo "$as_me:$LINENO: result: three" >&5
45083 echo "${ECHO_T}three" >&6; }
45084     cat >>confdefs.h <<\_ACEOF
45085 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
45086 _ACEOF
45087
45088     ;;
45089
45090     five)
45091     { echo "$as_me:$LINENO: result: five" >&5
45092 echo "${ECHO_T}five" >&6; }
45093     cat >>confdefs.h <<\_ACEOF
45094 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
45095 _ACEOF
45096
45097     ;;
45098
45099     six)
45100     { echo "$as_me:$LINENO: result: six" >&5
45101 echo "${ECHO_T}six" >&6; }
45102     cat >>confdefs.h <<\_ACEOF
45103 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
45104 _ACEOF
45105
45106     ;;
45107
45108     no)
45109     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
45110 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
45111     ;;
45112
45113     unknown)
45114     { echo "$as_me:$LINENO: result: can't tell" >&5
45115 echo "${ECHO_T}can't tell" >&6; }
45116     ;;
45117
45118     *)
45119     { { echo "$as_me:$LINENO: error: internal error" >&5
45120 echo "$as_me: error: internal error" >&2;}
45121    { (exit 1); exit 1; }; }
45122     ;;
45123 esac
45124
45125 ac_ext=c
45126 ac_cpp='$CPP $CPPFLAGS'
45127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45130
45131
45132
45133       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
45134               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
45135           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
45136 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
45137 if test "${ac_cv_func_gethostbyname+set}" = set; then
45138   echo $ECHO_N "(cached) $ECHO_C" >&6
45139 else
45140   cat >conftest.$ac_ext <<_ACEOF
45141 /* confdefs.h.  */
45142 _ACEOF
45143 cat confdefs.h >>conftest.$ac_ext
45144 cat >>conftest.$ac_ext <<_ACEOF
45145 /* end confdefs.h.  */
45146 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
45147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45148 #define gethostbyname innocuous_gethostbyname
45149
45150 /* System header to define __stub macros and hopefully few prototypes,
45151     which can conflict with char gethostbyname (); below.
45152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45153     <limits.h> exists even on freestanding compilers.  */
45154
45155 #ifdef __STDC__
45156 # include <limits.h>
45157 #else
45158 # include <assert.h>
45159 #endif
45160
45161 #undef gethostbyname
45162
45163 /* Override any GCC internal prototype to avoid an error.
45164    Use char because int might match the return type of a GCC
45165    builtin and then its argument prototype would still apply.  */
45166 #ifdef __cplusplus
45167 extern "C"
45168 #endif
45169 char gethostbyname ();
45170 /* The GNU C library defines this for functions which it implements
45171     to always fail with ENOSYS.  Some functions are actually named
45172     something starting with __ and the normal name is an alias.  */
45173 #if defined __stub_gethostbyname || defined __stub___gethostbyname
45174 choke me
45175 #endif
45176
45177 int
45178 main ()
45179 {
45180 return gethostbyname ();
45181   ;
45182   return 0;
45183 }
45184 _ACEOF
45185 rm -f conftest.$ac_objext conftest$ac_exeext
45186 if { (ac_try="$ac_link"
45187 case "(($ac_try" in
45188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45189   *) ac_try_echo=$ac_try;;
45190 esac
45191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45192   (eval "$ac_link") 2>conftest.er1
45193   ac_status=$?
45194   grep -v '^ *+' conftest.er1 >conftest.err
45195   rm -f conftest.er1
45196   cat conftest.err >&5
45197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45198   (exit $ac_status); } && {
45199          test -z "$ac_c_werror_flag" ||
45200          test ! -s conftest.err
45201        } && test -s conftest$ac_exeext &&
45202        $as_test_x conftest$ac_exeext; then
45203   ac_cv_func_gethostbyname=yes
45204 else
45205   echo "$as_me: failed program was:" >&5
45206 sed 's/^/| /' conftest.$ac_ext >&5
45207
45208         ac_cv_func_gethostbyname=no
45209 fi
45210
45211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45212       conftest$ac_exeext conftest.$ac_ext
45213 fi
45214 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
45215 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
45216 if test $ac_cv_func_gethostbyname = yes; then
45217    cat >>confdefs.h <<\_ACEOF
45218 #define HAVE_GETHOSTBYNAME 1
45219 _ACEOF
45220
45221 fi
45222
45223       fi
45224
45225 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
45226 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
45227 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
45228   echo $ECHO_N "(cached) $ECHO_C" >&6
45229 else
45230
45231                 ac_ext=cpp
45232 ac_cpp='$CXXCPP $CPPFLAGS'
45233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45236
45237
45238         cat >conftest.$ac_ext <<_ACEOF
45239 /* confdefs.h.  */
45240 _ACEOF
45241 cat confdefs.h >>conftest.$ac_ext
45242 cat >>conftest.$ac_ext <<_ACEOF
45243 /* end confdefs.h.  */
45244 #include <netdb.h>
45245 int
45246 main ()
45247 {
45248
45249                 char *name;
45250                 char *proto;
45251                 struct servent *se, *res;
45252                 char buffer[2048];
45253                 int buflen = 2048;
45254                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
45255
45256   ;
45257   return 0;
45258 }
45259 _ACEOF
45260 rm -f conftest.$ac_objext
45261 if { (ac_try="$ac_compile"
45262 case "(($ac_try" in
45263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45264   *) ac_try_echo=$ac_try;;
45265 esac
45266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45267   (eval "$ac_compile") 2>conftest.er1
45268   ac_status=$?
45269   grep -v '^ *+' conftest.er1 >conftest.err
45270   rm -f conftest.er1
45271   cat conftest.err >&5
45272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45273   (exit $ac_status); } && {
45274          test -z "$ac_cxx_werror_flag" ||
45275          test ! -s conftest.err
45276        } && test -s conftest.$ac_objext; then
45277   ac_cv_func_which_getservbyname_r=six
45278 else
45279   echo "$as_me: failed program was:" >&5
45280 sed 's/^/| /' conftest.$ac_ext >&5
45281
45282
45283                 cat >conftest.$ac_ext <<_ACEOF
45284 /* confdefs.h.  */
45285 _ACEOF
45286 cat confdefs.h >>conftest.$ac_ext
45287 cat >>conftest.$ac_ext <<_ACEOF
45288 /* end confdefs.h.  */
45289 #include <netdb.h>
45290 int
45291 main ()
45292 {
45293
45294                         char *name;
45295                         char *proto;
45296                         struct servent *se;
45297                         char buffer[2048];
45298                         int buflen = 2048;
45299                         (void) getservbyname_r(name, proto, se, buffer, buflen)
45300
45301   ;
45302   return 0;
45303 }
45304 _ACEOF
45305 rm -f conftest.$ac_objext
45306 if { (ac_try="$ac_compile"
45307 case "(($ac_try" in
45308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45309   *) ac_try_echo=$ac_try;;
45310 esac
45311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45312   (eval "$ac_compile") 2>conftest.er1
45313   ac_status=$?
45314   grep -v '^ *+' conftest.er1 >conftest.err
45315   rm -f conftest.er1
45316   cat conftest.err >&5
45317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45318   (exit $ac_status); } && {
45319          test -z "$ac_cxx_werror_flag" ||
45320          test ! -s conftest.err
45321        } && test -s conftest.$ac_objext; then
45322   ac_cv_func_which_getservbyname_r=five
45323 else
45324   echo "$as_me: failed program was:" >&5
45325 sed 's/^/| /' conftest.$ac_ext >&5
45326
45327
45328                         cat >conftest.$ac_ext <<_ACEOF
45329 /* confdefs.h.  */
45330 _ACEOF
45331 cat confdefs.h >>conftest.$ac_ext
45332 cat >>conftest.$ac_ext <<_ACEOF
45333 /* end confdefs.h.  */
45334 #include <netdb.h>
45335 int
45336 main ()
45337 {
45338
45339                                 char *name;
45340                                 char *proto;
45341                                 struct servent *se;
45342                                 struct servent_data data;
45343                                 (void) getservbyname_r(name, proto, se, &data);
45344
45345   ;
45346   return 0;
45347 }
45348 _ACEOF
45349 rm -f conftest.$ac_objext
45350 if { (ac_try="$ac_compile"
45351 case "(($ac_try" in
45352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45353   *) ac_try_echo=$ac_try;;
45354 esac
45355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45356   (eval "$ac_compile") 2>conftest.er1
45357   ac_status=$?
45358   grep -v '^ *+' conftest.er1 >conftest.err
45359   rm -f conftest.er1
45360   cat conftest.err >&5
45361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45362   (exit $ac_status); } && {
45363          test -z "$ac_cxx_werror_flag" ||
45364          test ! -s conftest.err
45365        } && test -s conftest.$ac_objext; then
45366   ac_cv_func_which_getservbyname_r=four
45367 else
45368   echo "$as_me: failed program was:" >&5
45369 sed 's/^/| /' conftest.$ac_ext >&5
45370
45371         ac_cv_func_which_getservbyname_r=no
45372
45373 fi
45374
45375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45376
45377
45378 fi
45379
45380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45381
45382
45383 fi
45384
45385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45386         ac_ext=c
45387 ac_cpp='$CPP $CPPFLAGS'
45388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45391
45392
45393
45394 fi
45395 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
45396 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
45397
45398 if test $ac_cv_func_which_getservbyname_r = six; then
45399   cat >>confdefs.h <<\_ACEOF
45400 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
45401 _ACEOF
45402
45403 elif test $ac_cv_func_which_getservbyname_r = five; then
45404   cat >>confdefs.h <<\_ACEOF
45405 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
45406 _ACEOF
45407
45408 elif test $ac_cv_func_which_getservbyname_r = four; then
45409   cat >>confdefs.h <<\_ACEOF
45410 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
45411 _ACEOF
45412
45413 fi
45414
45415
45416       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
45417               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
45418
45419 for ac_func in getservbyname
45420 do
45421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45425   echo $ECHO_N "(cached) $ECHO_C" >&6
45426 else
45427   cat >conftest.$ac_ext <<_ACEOF
45428 /* confdefs.h.  */
45429 _ACEOF
45430 cat confdefs.h >>conftest.$ac_ext
45431 cat >>conftest.$ac_ext <<_ACEOF
45432 /* end confdefs.h.  */
45433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45435 #define $ac_func innocuous_$ac_func
45436
45437 /* System header to define __stub macros and hopefully few prototypes,
45438     which can conflict with char $ac_func (); below.
45439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45440     <limits.h> exists even on freestanding compilers.  */
45441
45442 #ifdef __STDC__
45443 # include <limits.h>
45444 #else
45445 # include <assert.h>
45446 #endif
45447
45448 #undef $ac_func
45449
45450 /* Override any GCC internal prototype to avoid an error.
45451    Use char because int might match the return type of a GCC
45452    builtin and then its argument prototype would still apply.  */
45453 #ifdef __cplusplus
45454 extern "C"
45455 #endif
45456 char $ac_func ();
45457 /* The GNU C library defines this for functions which it implements
45458     to always fail with ENOSYS.  Some functions are actually named
45459     something starting with __ and the normal name is an alias.  */
45460 #if defined __stub_$ac_func || defined __stub___$ac_func
45461 choke me
45462 #endif
45463
45464 int
45465 main ()
45466 {
45467 return $ac_func ();
45468   ;
45469   return 0;
45470 }
45471 _ACEOF
45472 rm -f conftest.$ac_objext conftest$ac_exeext
45473 if { (ac_try="$ac_link"
45474 case "(($ac_try" in
45475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45476   *) ac_try_echo=$ac_try;;
45477 esac
45478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45479   (eval "$ac_link") 2>conftest.er1
45480   ac_status=$?
45481   grep -v '^ *+' conftest.er1 >conftest.err
45482   rm -f conftest.er1
45483   cat conftest.err >&5
45484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45485   (exit $ac_status); } && {
45486          test -z "$ac_c_werror_flag" ||
45487          test ! -s conftest.err
45488        } && test -s conftest$ac_exeext &&
45489        $as_test_x conftest$ac_exeext; then
45490   eval "$as_ac_var=yes"
45491 else
45492   echo "$as_me: failed program was:" >&5
45493 sed 's/^/| /' conftest.$ac_ext >&5
45494
45495         eval "$as_ac_var=no"
45496 fi
45497
45498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45499       conftest$ac_exeext conftest.$ac_ext
45500 fi
45501 ac_res=`eval echo '${'$as_ac_var'}'`
45502                { echo "$as_me:$LINENO: result: $ac_res" >&5
45503 echo "${ECHO_T}$ac_res" >&6; }
45504 if test `eval echo '${'$as_ac_var'}'` = yes; then
45505   cat >>confdefs.h <<_ACEOF
45506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45507 _ACEOF
45508   cat >>confdefs.h <<\_ACEOF
45509 #define HAVE_GETSERVBYNAME 1
45510 _ACEOF
45511
45512 fi
45513 done
45514
45515       fi
45516
45517 if test "$wxUSE_THREADS" = "yes"; then
45518   cat >>confdefs.h <<\_ACEOF
45519 #define wxUSE_THREADS 1
45520 _ACEOF
45521
45522
45523   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
45524 else
45525       if test "$wx_cv_func_strtok_r" = "yes"; then
45526     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
45527 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
45528     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
45529         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
45530         { echo "$as_me:$LINENO: result: yes" >&5
45531 echo "${ECHO_T}yes" >&6; }
45532     else
45533         { echo "$as_me:$LINENO: result: no" >&5
45534 echo "${ECHO_T}no" >&6; }
45535     fi
45536   fi
45537 fi
45538
45539 if test "$WXGTK2" = 1 ; then
45540   cat >>confdefs.h <<_ACEOF
45541 #define __WXGTK20__ $WXGTK2
45542 _ACEOF
45543
45544 fi
45545
45546 if test "$WXGTK127" = 1 ; then
45547   cat >>confdefs.h <<_ACEOF
45548 #define __WXGTK127__ $WXGTK127
45549 _ACEOF
45550
45551 fi
45552
45553 if test "$WXGPE" = 1 ; then
45554   cat >>confdefs.h <<_ACEOF
45555 #define __WXGPE__ $WXGPE
45556 _ACEOF
45557
45558 fi
45559
45560 DEBUG_CFLAGS=
45561 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
45562                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
45563 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
45564 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
45565     DEBUG_CFLAGS="-g"
45566 fi
45567
45568 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
45569     wxUSE_DEBUG_INFO=yes
45570     if test "$GCC" = yes; then
45571         DEBUG_CFLAGS="-ggdb"
45572     fi
45573 fi
45574
45575 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
45576     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
45577
45578     if test "$wxUSE_GTK" = 1 ; then
45579         if test "x$wxGTK_VERSION" = "x1" ; then
45580             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
45581         else
45582             CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
45583         fi
45584     fi
45585 fi
45586
45587 if test "$wxUSE_MEM_TRACING" = "yes" ; then
45588     cat >>confdefs.h <<\_ACEOF
45589 #define wxUSE_MEMORY_TRACING 1
45590 _ACEOF
45591
45592     cat >>confdefs.h <<\_ACEOF
45593 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
45594 _ACEOF
45595
45596     cat >>confdefs.h <<\_ACEOF
45597 #define wxUSE_DEBUG_NEW_ALWAYS 1
45598 _ACEOF
45599
45600     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
45601 fi
45602
45603 if test "$wxUSE_DMALLOC" = "yes" ; then
45604     DMALLOC_LIBS="-ldmallocthcxx"
45605 fi
45606
45607 PROFILE_FLAGS=
45608 if test "$wxUSE_PROFILE" = "yes" ; then
45609     PROFILE_FLAGS=" -pg"
45610 fi
45611
45612 if test "$GCC" = "yes" ; then
45613     if test "$wxUSE_NO_RTTI" = "yes" ; then
45614                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
45615     fi
45616     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45617         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
45618     fi
45619     if test "$wxUSE_PERMISSIVE" = "yes" ; then
45620         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
45621     fi
45622
45623                                                 case "${host}" in
45624       powerpc*-*-aix* )
45625         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
45626         ;;
45627       *-hppa* )
45628         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
45629         ;;
45630     esac
45631 fi
45632
45633 OPTIMISE_CFLAGS=
45634 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
45635                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
45636 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
45637 else
45638     if test "$wxUSE_OPTIMISE" = "no" ; then
45639         if test "$GCC" = yes ; then
45640                                     OPTIMISE_CFLAGS="-O0"
45641         fi
45642     else
45643         if test "$GCC" = yes ; then
45644             case "${host}" in
45645                 *-pc-os2_emx | *-pc-os2-emx )
45646                                                             OPTIMISE_CFLAGS="-O2"
45647                 ;;
45648                 *)
45649                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
45650                 ;;
45651             esac
45652         else
45653             OPTIMISE_CFLAGS="-O"
45654         fi
45655     fi
45656 fi
45657
45658
45659 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
45660     cat >>confdefs.h <<\_ACEOF
45661 #define WXWIN_COMPATIBILITY_2_6 1
45662 _ACEOF
45663
45664
45665     WXWIN_COMPATIBILITY_2_8="yes"
45666 fi
45667
45668 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
45669     cat >>confdefs.h <<\_ACEOF
45670 #define WXWIN_COMPATIBILITY_2_8 1
45671 _ACEOF
45672
45673 fi
45674
45675
45676 if test "$wxUSE_GUI" = "yes"; then
45677     cat >>confdefs.h <<\_ACEOF
45678 #define wxUSE_GUI 1
45679 _ACEOF
45680
45681
45682                                             fi
45683
45684
45685 if test "$wxUSE_UNIX" = "yes"; then
45686   cat >>confdefs.h <<\_ACEOF
45687 #define wxUSE_UNIX 1
45688 _ACEOF
45689
45690 fi
45691
45692
45693 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
45694
45695     HAVE_DL_FUNCS=0
45696     HAVE_SHL_FUNCS=0
45697     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
45698         if test "$USE_DOS" = 1; then
45699             HAVE_DL_FUNCS=0
45700         else
45701
45702 for ac_func in dlopen
45703 do
45704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45708   echo $ECHO_N "(cached) $ECHO_C" >&6
45709 else
45710   cat >conftest.$ac_ext <<_ACEOF
45711 /* confdefs.h.  */
45712 _ACEOF
45713 cat confdefs.h >>conftest.$ac_ext
45714 cat >>conftest.$ac_ext <<_ACEOF
45715 /* end confdefs.h.  */
45716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45718 #define $ac_func innocuous_$ac_func
45719
45720 /* System header to define __stub macros and hopefully few prototypes,
45721     which can conflict with char $ac_func (); below.
45722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45723     <limits.h> exists even on freestanding compilers.  */
45724
45725 #ifdef __STDC__
45726 # include <limits.h>
45727 #else
45728 # include <assert.h>
45729 #endif
45730
45731 #undef $ac_func
45732
45733 /* Override any GCC internal prototype to avoid an error.
45734    Use char because int might match the return type of a GCC
45735    builtin and then its argument prototype would still apply.  */
45736 #ifdef __cplusplus
45737 extern "C"
45738 #endif
45739 char $ac_func ();
45740 /* The GNU C library defines this for functions which it implements
45741     to always fail with ENOSYS.  Some functions are actually named
45742     something starting with __ and the normal name is an alias.  */
45743 #if defined __stub_$ac_func || defined __stub___$ac_func
45744 choke me
45745 #endif
45746
45747 int
45748 main ()
45749 {
45750 return $ac_func ();
45751   ;
45752   return 0;
45753 }
45754 _ACEOF
45755 rm -f conftest.$ac_objext conftest$ac_exeext
45756 if { (ac_try="$ac_link"
45757 case "(($ac_try" in
45758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45759   *) ac_try_echo=$ac_try;;
45760 esac
45761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45762   (eval "$ac_link") 2>conftest.er1
45763   ac_status=$?
45764   grep -v '^ *+' conftest.er1 >conftest.err
45765   rm -f conftest.er1
45766   cat conftest.err >&5
45767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45768   (exit $ac_status); } && {
45769          test -z "$ac_c_werror_flag" ||
45770          test ! -s conftest.err
45771        } && test -s conftest$ac_exeext &&
45772        $as_test_x conftest$ac_exeext; then
45773   eval "$as_ac_var=yes"
45774 else
45775   echo "$as_me: failed program was:" >&5
45776 sed 's/^/| /' conftest.$ac_ext >&5
45777
45778         eval "$as_ac_var=no"
45779 fi
45780
45781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45782       conftest$ac_exeext conftest.$ac_ext
45783 fi
45784 ac_res=`eval echo '${'$as_ac_var'}'`
45785                { echo "$as_me:$LINENO: result: $ac_res" >&5
45786 echo "${ECHO_T}$ac_res" >&6; }
45787 if test `eval echo '${'$as_ac_var'}'` = yes; then
45788   cat >>confdefs.h <<_ACEOF
45789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45790 _ACEOF
45791
45792                 cat >>confdefs.h <<\_ACEOF
45793 #define HAVE_DLOPEN 1
45794 _ACEOF
45795
45796                 HAVE_DL_FUNCS=1
45797
45798 else
45799
45800                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
45801 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
45802 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
45803   echo $ECHO_N "(cached) $ECHO_C" >&6
45804 else
45805   ac_check_lib_save_LIBS=$LIBS
45806 LIBS="-ldl  $LIBS"
45807 cat >conftest.$ac_ext <<_ACEOF
45808 /* confdefs.h.  */
45809 _ACEOF
45810 cat confdefs.h >>conftest.$ac_ext
45811 cat >>conftest.$ac_ext <<_ACEOF
45812 /* end confdefs.h.  */
45813
45814 /* Override any GCC internal prototype to avoid an error.
45815    Use char because int might match the return type of a GCC
45816    builtin and then its argument prototype would still apply.  */
45817 #ifdef __cplusplus
45818 extern "C"
45819 #endif
45820 char dlopen ();
45821 int
45822 main ()
45823 {
45824 return dlopen ();
45825   ;
45826   return 0;
45827 }
45828 _ACEOF
45829 rm -f conftest.$ac_objext conftest$ac_exeext
45830 if { (ac_try="$ac_link"
45831 case "(($ac_try" in
45832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45833   *) ac_try_echo=$ac_try;;
45834 esac
45835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45836   (eval "$ac_link") 2>conftest.er1
45837   ac_status=$?
45838   grep -v '^ *+' conftest.er1 >conftest.err
45839   rm -f conftest.er1
45840   cat conftest.err >&5
45841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45842   (exit $ac_status); } && {
45843          test -z "$ac_c_werror_flag" ||
45844          test ! -s conftest.err
45845        } && test -s conftest$ac_exeext &&
45846        $as_test_x conftest$ac_exeext; then
45847   ac_cv_lib_dl_dlopen=yes
45848 else
45849   echo "$as_me: failed program was:" >&5
45850 sed 's/^/| /' conftest.$ac_ext >&5
45851
45852         ac_cv_lib_dl_dlopen=no
45853 fi
45854
45855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45856       conftest$ac_exeext conftest.$ac_ext
45857 LIBS=$ac_check_lib_save_LIBS
45858 fi
45859 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
45860 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
45861 if test $ac_cv_lib_dl_dlopen = yes; then
45862
45863                                 cat >>confdefs.h <<\_ACEOF
45864 #define HAVE_DLOPEN 1
45865 _ACEOF
45866
45867                                 HAVE_DL_FUNCS=1
45868                                 DL_LINK=" -ldl$DL_LINK"
45869
45870 else
45871
45872
45873 for ac_func in shl_load
45874 do
45875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45879   echo $ECHO_N "(cached) $ECHO_C" >&6
45880 else
45881   cat >conftest.$ac_ext <<_ACEOF
45882 /* confdefs.h.  */
45883 _ACEOF
45884 cat confdefs.h >>conftest.$ac_ext
45885 cat >>conftest.$ac_ext <<_ACEOF
45886 /* end confdefs.h.  */
45887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45889 #define $ac_func innocuous_$ac_func
45890
45891 /* System header to define __stub macros and hopefully few prototypes,
45892     which can conflict with char $ac_func (); below.
45893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45894     <limits.h> exists even on freestanding compilers.  */
45895
45896 #ifdef __STDC__
45897 # include <limits.h>
45898 #else
45899 # include <assert.h>
45900 #endif
45901
45902 #undef $ac_func
45903
45904 /* Override any GCC internal prototype to avoid an error.
45905    Use char because int might match the return type of a GCC
45906    builtin and then its argument prototype would still apply.  */
45907 #ifdef __cplusplus
45908 extern "C"
45909 #endif
45910 char $ac_func ();
45911 /* The GNU C library defines this for functions which it implements
45912     to always fail with ENOSYS.  Some functions are actually named
45913     something starting with __ and the normal name is an alias.  */
45914 #if defined __stub_$ac_func || defined __stub___$ac_func
45915 choke me
45916 #endif
45917
45918 int
45919 main ()
45920 {
45921 return $ac_func ();
45922   ;
45923   return 0;
45924 }
45925 _ACEOF
45926 rm -f conftest.$ac_objext conftest$ac_exeext
45927 if { (ac_try="$ac_link"
45928 case "(($ac_try" in
45929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45930   *) ac_try_echo=$ac_try;;
45931 esac
45932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45933   (eval "$ac_link") 2>conftest.er1
45934   ac_status=$?
45935   grep -v '^ *+' conftest.er1 >conftest.err
45936   rm -f conftest.er1
45937   cat conftest.err >&5
45938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45939   (exit $ac_status); } && {
45940          test -z "$ac_c_werror_flag" ||
45941          test ! -s conftest.err
45942        } && test -s conftest$ac_exeext &&
45943        $as_test_x conftest$ac_exeext; then
45944   eval "$as_ac_var=yes"
45945 else
45946   echo "$as_me: failed program was:" >&5
45947 sed 's/^/| /' conftest.$ac_ext >&5
45948
45949         eval "$as_ac_var=no"
45950 fi
45951
45952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45953       conftest$ac_exeext conftest.$ac_ext
45954 fi
45955 ac_res=`eval echo '${'$as_ac_var'}'`
45956                { echo "$as_me:$LINENO: result: $ac_res" >&5
45957 echo "${ECHO_T}$ac_res" >&6; }
45958 if test `eval echo '${'$as_ac_var'}'` = yes; then
45959   cat >>confdefs.h <<_ACEOF
45960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45961 _ACEOF
45962
45963                                                 cat >>confdefs.h <<\_ACEOF
45964 #define HAVE_SHL_LOAD 1
45965 _ACEOF
45966
45967                                                 HAVE_SHL_FUNCS=1
45968
45969 else
45970
45971                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
45972 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
45973 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
45974   echo $ECHO_N "(cached) $ECHO_C" >&6
45975 else
45976   ac_check_lib_save_LIBS=$LIBS
45977 LIBS="-lshl_load  $LIBS"
45978 cat >conftest.$ac_ext <<_ACEOF
45979 /* confdefs.h.  */
45980 _ACEOF
45981 cat confdefs.h >>conftest.$ac_ext
45982 cat >>conftest.$ac_ext <<_ACEOF
45983 /* end confdefs.h.  */
45984
45985 /* Override any GCC internal prototype to avoid an error.
45986    Use char because int might match the return type of a GCC
45987    builtin and then its argument prototype would still apply.  */
45988 #ifdef __cplusplus
45989 extern "C"
45990 #endif
45991 char dld ();
45992 int
45993 main ()
45994 {
45995 return dld ();
45996   ;
45997   return 0;
45998 }
45999 _ACEOF
46000 rm -f conftest.$ac_objext conftest$ac_exeext
46001 if { (ac_try="$ac_link"
46002 case "(($ac_try" in
46003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46004   *) ac_try_echo=$ac_try;;
46005 esac
46006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46007   (eval "$ac_link") 2>conftest.er1
46008   ac_status=$?
46009   grep -v '^ *+' conftest.er1 >conftest.err
46010   rm -f conftest.er1
46011   cat conftest.err >&5
46012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46013   (exit $ac_status); } && {
46014          test -z "$ac_c_werror_flag" ||
46015          test ! -s conftest.err
46016        } && test -s conftest$ac_exeext &&
46017        $as_test_x conftest$ac_exeext; then
46018   ac_cv_lib_shl_load_dld=yes
46019 else
46020   echo "$as_me: failed program was:" >&5
46021 sed 's/^/| /' conftest.$ac_ext >&5
46022
46023         ac_cv_lib_shl_load_dld=no
46024 fi
46025
46026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46027       conftest$ac_exeext conftest.$ac_ext
46028 LIBS=$ac_check_lib_save_LIBS
46029 fi
46030 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
46031 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
46032 if test $ac_cv_lib_shl_load_dld = yes; then
46033
46034                                                                 HAVE_SHL_FUNCS=1
46035                                                                 DL_LINK=" -ldld$DL_LINK"
46036
46037 fi
46038
46039
46040 fi
46041 done
46042
46043
46044 fi
46045
46046
46047 fi
46048 done
46049
46050
46051                         if test "$HAVE_DL_FUNCS" = 1; then
46052
46053 for ac_func in dlerror
46054 do
46055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46059   echo $ECHO_N "(cached) $ECHO_C" >&6
46060 else
46061   cat >conftest.$ac_ext <<_ACEOF
46062 /* confdefs.h.  */
46063 _ACEOF
46064 cat confdefs.h >>conftest.$ac_ext
46065 cat >>conftest.$ac_ext <<_ACEOF
46066 /* end confdefs.h.  */
46067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46069 #define $ac_func innocuous_$ac_func
46070
46071 /* System header to define __stub macros and hopefully few prototypes,
46072     which can conflict with char $ac_func (); below.
46073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46074     <limits.h> exists even on freestanding compilers.  */
46075
46076 #ifdef __STDC__
46077 # include <limits.h>
46078 #else
46079 # include <assert.h>
46080 #endif
46081
46082 #undef $ac_func
46083
46084 /* Override any GCC internal prototype to avoid an error.
46085    Use char because int might match the return type of a GCC
46086    builtin and then its argument prototype would still apply.  */
46087 #ifdef __cplusplus
46088 extern "C"
46089 #endif
46090 char $ac_func ();
46091 /* The GNU C library defines this for functions which it implements
46092     to always fail with ENOSYS.  Some functions are actually named
46093     something starting with __ and the normal name is an alias.  */
46094 #if defined __stub_$ac_func || defined __stub___$ac_func
46095 choke me
46096 #endif
46097
46098 int
46099 main ()
46100 {
46101 return $ac_func ();
46102   ;
46103   return 0;
46104 }
46105 _ACEOF
46106 rm -f conftest.$ac_objext conftest$ac_exeext
46107 if { (ac_try="$ac_link"
46108 case "(($ac_try" in
46109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46110   *) ac_try_echo=$ac_try;;
46111 esac
46112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46113   (eval "$ac_link") 2>conftest.er1
46114   ac_status=$?
46115   grep -v '^ *+' conftest.er1 >conftest.err
46116   rm -f conftest.er1
46117   cat conftest.err >&5
46118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46119   (exit $ac_status); } && {
46120          test -z "$ac_c_werror_flag" ||
46121          test ! -s conftest.err
46122        } && test -s conftest$ac_exeext &&
46123        $as_test_x conftest$ac_exeext; then
46124   eval "$as_ac_var=yes"
46125 else
46126   echo "$as_me: failed program was:" >&5
46127 sed 's/^/| /' conftest.$ac_ext >&5
46128
46129         eval "$as_ac_var=no"
46130 fi
46131
46132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46133       conftest$ac_exeext conftest.$ac_ext
46134 fi
46135 ac_res=`eval echo '${'$as_ac_var'}'`
46136                { echo "$as_me:$LINENO: result: $ac_res" >&5
46137 echo "${ECHO_T}$ac_res" >&6; }
46138 if test `eval echo '${'$as_ac_var'}'` = yes; then
46139   cat >>confdefs.h <<_ACEOF
46140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46141 _ACEOF
46142  cat >>confdefs.h <<\_ACEOF
46143 #define HAVE_DLERROR 1
46144 _ACEOF
46145
46146 else
46147
46148                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
46149 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
46150 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
46151   echo $ECHO_N "(cached) $ECHO_C" >&6
46152 else
46153   ac_check_lib_save_LIBS=$LIBS
46154 LIBS="-ldl  $LIBS"
46155 cat >conftest.$ac_ext <<_ACEOF
46156 /* confdefs.h.  */
46157 _ACEOF
46158 cat confdefs.h >>conftest.$ac_ext
46159 cat >>conftest.$ac_ext <<_ACEOF
46160 /* end confdefs.h.  */
46161
46162 /* Override any GCC internal prototype to avoid an error.
46163    Use char because int might match the return type of a GCC
46164    builtin and then its argument prototype would still apply.  */
46165 #ifdef __cplusplus
46166 extern "C"
46167 #endif
46168 char dlerror ();
46169 int
46170 main ()
46171 {
46172 return dlerror ();
46173   ;
46174   return 0;
46175 }
46176 _ACEOF
46177 rm -f conftest.$ac_objext conftest$ac_exeext
46178 if { (ac_try="$ac_link"
46179 case "(($ac_try" in
46180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46181   *) ac_try_echo=$ac_try;;
46182 esac
46183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46184   (eval "$ac_link") 2>conftest.er1
46185   ac_status=$?
46186   grep -v '^ *+' conftest.er1 >conftest.err
46187   rm -f conftest.er1
46188   cat conftest.err >&5
46189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46190   (exit $ac_status); } && {
46191          test -z "$ac_c_werror_flag" ||
46192          test ! -s conftest.err
46193        } && test -s conftest$ac_exeext &&
46194        $as_test_x conftest$ac_exeext; then
46195   ac_cv_lib_dl_dlerror=yes
46196 else
46197   echo "$as_me: failed program was:" >&5
46198 sed 's/^/| /' conftest.$ac_ext >&5
46199
46200         ac_cv_lib_dl_dlerror=no
46201 fi
46202
46203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46204       conftest$ac_exeext conftest.$ac_ext
46205 LIBS=$ac_check_lib_save_LIBS
46206 fi
46207 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
46208 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
46209 if test $ac_cv_lib_dl_dlerror = yes; then
46210   cat >>confdefs.h <<\_ACEOF
46211 #define HAVE_DLERROR 1
46212 _ACEOF
46213
46214 fi
46215
46216
46217
46218 fi
46219 done
46220
46221             fi
46222         fi
46223
46224                 if test "$USE_DARWIN" = 1; then
46225                         HAVE_DL_FUNCS=1
46226         fi
46227
46228         if test "$HAVE_DL_FUNCS" = 0; then
46229             if test "$HAVE_SHL_FUNCS" = 0; then
46230               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
46231                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
46232 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
46233                   wxUSE_DYNAMIC_LOADER=no
46234                   wxUSE_DYNLIB_CLASS=no
46235               else
46236                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
46237 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
46238               fi
46239             fi
46240         fi
46241     fi
46242 fi
46243
46244 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
46245     cat >>confdefs.h <<\_ACEOF
46246 #define wxUSE_DYNAMIC_LOADER 1
46247 _ACEOF
46248
46249 fi
46250 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
46251     cat >>confdefs.h <<\_ACEOF
46252 #define wxUSE_DYNLIB_CLASS 1
46253 _ACEOF
46254
46255 fi
46256
46257
46258
46259 if test "$wxUSE_PLUGINS" = "yes" ; then
46260     if test "$wxUSE_SHARED" = "no" ; then
46261         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
46262 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
46263         wxUSE_PLUGINS=no
46264     fi
46265     if test "$wxUSE_MONOLITHIC" = "yes" ; then
46266         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
46267 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
46268         wxUSE_PLUGINS=no
46269     fi
46270     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
46271         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
46272 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
46273         wxUSE_PLUGINS=no
46274     fi
46275     if test "$wxUSE_PLUGINS" = "yes" ; then
46276         cat >>confdefs.h <<\_ACEOF
46277 #define wxUSE_PLUGINS 1
46278 _ACEOF
46279
46280     fi
46281 fi
46282
46283
46284 if test "$wxUSE_FSWATCHER" = "yes"; then
46285                 if test "$wxUSE_MSW" != "1"; then
46286         if test "$wxUSE_UNIX" = "yes"; then
46287
46288 for ac_header in sys/inotify.h
46289 do
46290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46294   echo $ECHO_N "(cached) $ECHO_C" >&6
46295 else
46296   cat >conftest.$ac_ext <<_ACEOF
46297 /* confdefs.h.  */
46298 _ACEOF
46299 cat confdefs.h >>conftest.$ac_ext
46300 cat >>conftest.$ac_ext <<_ACEOF
46301 /* end confdefs.h.  */
46302 $ac_includes_default
46303
46304 #include <$ac_header>
46305 _ACEOF
46306 rm -f conftest.$ac_objext
46307 if { (ac_try="$ac_compile"
46308 case "(($ac_try" in
46309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46310   *) ac_try_echo=$ac_try;;
46311 esac
46312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46313   (eval "$ac_compile") 2>conftest.er1
46314   ac_status=$?
46315   grep -v '^ *+' conftest.er1 >conftest.err
46316   rm -f conftest.er1
46317   cat conftest.err >&5
46318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46319   (exit $ac_status); } && {
46320          test -z "$ac_c_werror_flag" ||
46321          test ! -s conftest.err
46322        } && test -s conftest.$ac_objext; then
46323   eval "$as_ac_Header=yes"
46324 else
46325   echo "$as_me: failed program was:" >&5
46326 sed 's/^/| /' conftest.$ac_ext >&5
46327
46328         eval "$as_ac_Header=no"
46329 fi
46330
46331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46332 fi
46333 ac_res=`eval echo '${'$as_ac_Header'}'`
46334                { echo "$as_me:$LINENO: result: $ac_res" >&5
46335 echo "${ECHO_T}$ac_res" >&6; }
46336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46337   cat >>confdefs.h <<_ACEOF
46338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46339 _ACEOF
46340
46341 fi
46342
46343 done
46344
46345             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
46346                 cat >>confdefs.h <<\_ACEOF
46347 #define wxHAS_INOTIFY 1
46348 _ACEOF
46349
46350             else
46351
46352 for ac_header in sys/event.h
46353 do
46354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46358   echo $ECHO_N "(cached) $ECHO_C" >&6
46359 else
46360   cat >conftest.$ac_ext <<_ACEOF
46361 /* confdefs.h.  */
46362 _ACEOF
46363 cat confdefs.h >>conftest.$ac_ext
46364 cat >>conftest.$ac_ext <<_ACEOF
46365 /* end confdefs.h.  */
46366 $ac_includes_default
46367
46368 #include <$ac_header>
46369 _ACEOF
46370 rm -f conftest.$ac_objext
46371 if { (ac_try="$ac_compile"
46372 case "(($ac_try" in
46373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46374   *) ac_try_echo=$ac_try;;
46375 esac
46376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46377   (eval "$ac_compile") 2>conftest.er1
46378   ac_status=$?
46379   grep -v '^ *+' conftest.er1 >conftest.err
46380   rm -f conftest.er1
46381   cat conftest.err >&5
46382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46383   (exit $ac_status); } && {
46384          test -z "$ac_c_werror_flag" ||
46385          test ! -s conftest.err
46386        } && test -s conftest.$ac_objext; then
46387   eval "$as_ac_Header=yes"
46388 else
46389   echo "$as_me: failed program was:" >&5
46390 sed 's/^/| /' conftest.$ac_ext >&5
46391
46392         eval "$as_ac_Header=no"
46393 fi
46394
46395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46396 fi
46397 ac_res=`eval echo '${'$as_ac_Header'}'`
46398                { echo "$as_me:$LINENO: result: $ac_res" >&5
46399 echo "${ECHO_T}$ac_res" >&6; }
46400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46401   cat >>confdefs.h <<_ACEOF
46402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46403 _ACEOF
46404
46405 fi
46406
46407 done
46408
46409                 if test "$ac_cv_header_sys_event_h" = "yes"; then
46410                     cat >>confdefs.h <<\_ACEOF
46411 #define wxHAS_KQUEUE 1
46412 _ACEOF
46413
46414                 else
46415                     wxUSE_FSWATCHER=no
46416                 fi
46417             fi
46418         else
46419             wxUSE_FSWATCHER=no
46420         fi
46421     else
46422         if test "$wxUSE_THREADS" != "yes"; then
46423             { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5
46424 echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;}
46425             wxUSE_FSWATCHER=no
46426         fi
46427     fi
46428
46429     if test "$wxUSE_FSWATCHER" = "yes"; then
46430         cat >>confdefs.h <<\_ACEOF
46431 #define wxUSE_FSWATCHER 1
46432 _ACEOF
46433
46434         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
46435     else
46436         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
46437 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
46438     fi
46439 fi
46440
46441
46442 if test "$wxUSE_STL" = "yes"; then
46443   cat >>confdefs.h <<\_ACEOF
46444 #define wxUSE_STL 1
46445 _ACEOF
46446
46447 fi
46448
46449 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
46450   cat >>confdefs.h <<\_ACEOF
46451 #define wxUSE_EXTENDED_RTTI 1
46452 _ACEOF
46453
46454 fi
46455
46456 if test "$wxUSE_ANY" = "yes"; then
46457     cat >>confdefs.h <<\_ACEOF
46458 #define wxUSE_ANY 1
46459 _ACEOF
46460
46461 fi
46462
46463 if test "$wxUSE_APPLE_IEEE" = "yes"; then
46464   cat >>confdefs.h <<\_ACEOF
46465 #define wxUSE_APPLE_IEEE 1
46466 _ACEOF
46467
46468 fi
46469
46470 if test "$wxUSE_TIMER" = "yes"; then
46471   cat >>confdefs.h <<\_ACEOF
46472 #define wxUSE_TIMER 1
46473 _ACEOF
46474
46475 fi
46476
46477 if test "$USE_UNIX" = 1 ; then
46478         if test "$wxUSE_MGL" != 1; then
46479                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
46480 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
46481 if test "${ac_cv_header_sys_soundcard+set}" = set; then
46482   echo $ECHO_N "(cached) $ECHO_C" >&6
46483 else
46484
46485             cat >conftest.$ac_ext <<_ACEOF
46486 /* confdefs.h.  */
46487 _ACEOF
46488 cat confdefs.h >>conftest.$ac_ext
46489 cat >>conftest.$ac_ext <<_ACEOF
46490 /* end confdefs.h.  */
46491
46492                     #include <sys/ioctl.h>
46493                     #include <sys/soundcard.h>
46494
46495 int
46496 main ()
46497 {
46498
46499                     ioctl(0, SNDCTL_DSP_SPEED, 0);
46500
46501   ;
46502   return 0;
46503 }
46504 _ACEOF
46505 rm -f conftest.$ac_objext conftest$ac_exeext
46506 if { (ac_try="$ac_link"
46507 case "(($ac_try" in
46508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46509   *) ac_try_echo=$ac_try;;
46510 esac
46511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46512   (eval "$ac_link") 2>conftest.er1
46513   ac_status=$?
46514   grep -v '^ *+' conftest.er1 >conftest.err
46515   rm -f conftest.er1
46516   cat conftest.err >&5
46517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46518   (exit $ac_status); } && {
46519          test -z "$ac_c_werror_flag" ||
46520          test ! -s conftest.err
46521        } && test -s conftest$ac_exeext &&
46522        $as_test_x conftest$ac_exeext; then
46523   ac_cv_header_sys_soundcard=yes
46524 else
46525   echo "$as_me: failed program was:" >&5
46526 sed 's/^/| /' conftest.$ac_ext >&5
46527
46528
46529                     saveLibs="$LIBS"
46530                     LIBS="$saveLibs -lossaudio"
46531                     cat >conftest.$ac_ext <<_ACEOF
46532 /* confdefs.h.  */
46533 _ACEOF
46534 cat confdefs.h >>conftest.$ac_ext
46535 cat >>conftest.$ac_ext <<_ACEOF
46536 /* end confdefs.h.  */
46537
46538                             #include <sys/ioctl.h>
46539                             #include <sys/soundcard.h>
46540
46541 int
46542 main ()
46543 {
46544
46545                             ioctl(0, SNDCTL_DSP_SPEED, 0);
46546
46547   ;
46548   return 0;
46549 }
46550 _ACEOF
46551 rm -f conftest.$ac_objext conftest$ac_exeext
46552 if { (ac_try="$ac_link"
46553 case "(($ac_try" in
46554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46555   *) ac_try_echo=$ac_try;;
46556 esac
46557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46558   (eval "$ac_link") 2>conftest.er1
46559   ac_status=$?
46560   grep -v '^ *+' conftest.er1 >conftest.err
46561   rm -f conftest.er1
46562   cat conftest.err >&5
46563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46564   (exit $ac_status); } && {
46565          test -z "$ac_c_werror_flag" ||
46566          test ! -s conftest.err
46567        } && test -s conftest$ac_exeext &&
46568        $as_test_x conftest$ac_exeext; then
46569   ac_cv_header_sys_soundcard=yes
46570 else
46571   echo "$as_me: failed program was:" >&5
46572 sed 's/^/| /' conftest.$ac_ext >&5
46573
46574
46575                             LIBS="$saveLibs"
46576                             ac_cv_header_sys_soundcard=no
46577
46578
46579 fi
46580
46581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46582       conftest$ac_exeext conftest.$ac_ext
46583
46584
46585 fi
46586
46587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46588       conftest$ac_exeext conftest.$ac_ext
46589
46590 fi
46591 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
46592 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
46593     fi
46594
46595     if test "$ac_cv_header_sys_soundcard" = "yes"; then
46596         cat >>confdefs.h <<\_ACEOF
46597 #define HAVE_SYS_SOUNDCARD_H 1
46598 _ACEOF
46599
46600     fi
46601 fi
46602
46603 WITH_PLUGIN_SDL=0
46604 if test "$wxUSE_SOUND" = "yes"; then
46605   if test "$USE_UNIX" = 1 ; then
46606     if test "$wxUSE_LIBSDL" != "no"; then
46607
46608 # Check whether --with-sdl-prefix was given.
46609 if test "${with_sdl_prefix+set}" = set; then
46610   withval=$with_sdl_prefix; sdl_prefix="$withval"
46611 else
46612   sdl_prefix=""
46613 fi
46614
46615
46616 # Check whether --with-sdl-exec-prefix was given.
46617 if test "${with_sdl_exec_prefix+set}" = set; then
46618   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
46619 else
46620   sdl_exec_prefix=""
46621 fi
46622
46623 # Check whether --enable-sdltest was given.
46624 if test "${enable_sdltest+set}" = set; then
46625   enableval=$enable_sdltest;
46626 else
46627   enable_sdltest=yes
46628 fi
46629
46630
46631   if test x$sdl_exec_prefix != x ; then
46632     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
46633     if test x${SDL_CONFIG+set} != xset ; then
46634       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
46635     fi
46636   fi
46637   if test x$sdl_prefix != x ; then
46638     sdl_args="$sdl_args --prefix=$sdl_prefix"
46639     if test x${SDL_CONFIG+set} != xset ; then
46640       SDL_CONFIG=$sdl_prefix/bin/sdl-config
46641     fi
46642   fi
46643
46644   if test "x$prefix" != xNONE; then
46645     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
46646   fi
46647   # Extract the first word of "sdl-config", so it can be a program name with args.
46648 set dummy sdl-config; ac_word=$2
46649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46651 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
46652   echo $ECHO_N "(cached) $ECHO_C" >&6
46653 else
46654   case $SDL_CONFIG in
46655   [\\/]* | ?:[\\/]*)
46656   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
46657   ;;
46658   *)
46659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46660 for as_dir in $PATH
46661 do
46662   IFS=$as_save_IFS
46663   test -z "$as_dir" && as_dir=.
46664   for ac_exec_ext in '' $ac_executable_extensions; do
46665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46666     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46668     break 2
46669   fi
46670 done
46671 done
46672 IFS=$as_save_IFS
46673
46674   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
46675   ;;
46676 esac
46677 fi
46678 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
46679 if test -n "$SDL_CONFIG"; then
46680   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
46681 echo "${ECHO_T}$SDL_CONFIG" >&6; }
46682 else
46683   { echo "$as_me:$LINENO: result: no" >&5
46684 echo "${ECHO_T}no" >&6; }
46685 fi
46686
46687
46688   min_sdl_version=1.2.0
46689   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
46690 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
46691   no_sdl=""
46692   if test "$SDL_CONFIG" = "no" ; then
46693     no_sdl=yes
46694   else
46695     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
46696     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
46697
46698     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
46699            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46700     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
46701            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46702     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
46703            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46704     if test "x$enable_sdltest" = "xyes" ; then
46705       ac_save_CFLAGS="$CFLAGS"
46706       ac_save_CXXFLAGS="$CXXFLAGS"
46707       ac_save_LIBS="$LIBS"
46708       CFLAGS="$CFLAGS $SDL_CFLAGS"
46709       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
46710       LIBS="$LIBS $SDL_LIBS"
46711       rm -f conf.sdltest
46712       if test "$cross_compiling" = yes; then
46713   echo $ac_n "cross compiling; assumed OK... $ac_c"
46714 else
46715   cat >conftest.$ac_ext <<_ACEOF
46716 /* confdefs.h.  */
46717 _ACEOF
46718 cat confdefs.h >>conftest.$ac_ext
46719 cat >>conftest.$ac_ext <<_ACEOF
46720 /* end confdefs.h.  */
46721
46722 #include <stdio.h>
46723 #include <stdlib.h>
46724 #include <string.h>
46725 #include "SDL.h"
46726
46727 char*
46728 my_strdup (char *str)
46729 {
46730   char *new_str;
46731
46732   if (str)
46733     {
46734       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
46735       strcpy (new_str, str);
46736     }
46737   else
46738     new_str = NULL;
46739
46740   return new_str;
46741 }
46742
46743 int main (int argc, char *argv[])
46744 {
46745   int major, minor, micro;
46746   char *tmp_version;
46747
46748   /* This hangs on some systems (?)
46749   system ("touch conf.sdltest");
46750   */
46751   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
46752
46753   /* HP/UX 9 (%@#!) writes to sscanf strings */
46754   tmp_version = my_strdup("$min_sdl_version");
46755   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
46756      printf("%s, bad version string\n", "$min_sdl_version");
46757      exit(1);
46758    }
46759
46760    if (($sdl_major_version > major) ||
46761       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
46762       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
46763     {
46764       return 0;
46765     }
46766   else
46767     {
46768       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
46769       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
46770       printf("*** best to upgrade to the required version.\n");
46771       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
46772       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
46773       printf("*** config.cache before re-running configure\n");
46774       return 1;
46775     }
46776 }
46777
46778
46779 _ACEOF
46780 rm -f conftest$ac_exeext
46781 if { (ac_try="$ac_link"
46782 case "(($ac_try" in
46783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46784   *) ac_try_echo=$ac_try;;
46785 esac
46786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46787   (eval "$ac_link") 2>&5
46788   ac_status=$?
46789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46791   { (case "(($ac_try" in
46792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46793   *) ac_try_echo=$ac_try;;
46794 esac
46795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46796   (eval "$ac_try") 2>&5
46797   ac_status=$?
46798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46799   (exit $ac_status); }; }; then
46800   :
46801 else
46802   echo "$as_me: program exited with status $ac_status" >&5
46803 echo "$as_me: failed program was:" >&5
46804 sed 's/^/| /' conftest.$ac_ext >&5
46805
46806 ( exit $ac_status )
46807 no_sdl=yes
46808 fi
46809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46810 fi
46811
46812
46813        CFLAGS="$ac_save_CFLAGS"
46814        CXXFLAGS="$ac_save_CXXFLAGS"
46815        LIBS="$ac_save_LIBS"
46816      fi
46817   fi
46818   if test "x$no_sdl" = x ; then
46819      { echo "$as_me:$LINENO: result: yes" >&5
46820 echo "${ECHO_T}yes" >&6; }
46821
46822                     EXTRALIBS_SDL="$SDL_LIBS"
46823                     CFLAGS="$SDL_CFLAGS $CFLAGS"
46824                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
46825                     cat >>confdefs.h <<\_ACEOF
46826 #define wxUSE_LIBSDL 1
46827 _ACEOF
46828
46829
46830   else
46831      { echo "$as_me:$LINENO: result: no" >&5
46832 echo "${ECHO_T}no" >&6; }
46833      if test "$SDL_CONFIG" = "no" ; then
46834        echo "*** The sdl-config script installed by SDL could not be found"
46835        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
46836        echo "*** your path, or set the SDL_CONFIG environment variable to the"
46837        echo "*** full path to sdl-config."
46838      else
46839        if test -f conf.sdltest ; then
46840         :
46841        else
46842           echo "*** Could not run SDL test program, checking why..."
46843           CFLAGS="$CFLAGS $SDL_CFLAGS"
46844           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
46845           LIBS="$LIBS $SDL_LIBS"
46846           cat >conftest.$ac_ext <<_ACEOF
46847 /* confdefs.h.  */
46848 _ACEOF
46849 cat confdefs.h >>conftest.$ac_ext
46850 cat >>conftest.$ac_ext <<_ACEOF
46851 /* end confdefs.h.  */
46852
46853 #include <stdio.h>
46854 #include "SDL.h"
46855
46856 int main(int argc, char *argv[])
46857 { return 0; }
46858 #undef  main
46859 #define main K_and_R_C_main
46860
46861 int
46862 main ()
46863 {
46864  return 0;
46865   ;
46866   return 0;
46867 }
46868 _ACEOF
46869 rm -f conftest.$ac_objext conftest$ac_exeext
46870 if { (ac_try="$ac_link"
46871 case "(($ac_try" in
46872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46873   *) ac_try_echo=$ac_try;;
46874 esac
46875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46876   (eval "$ac_link") 2>conftest.er1
46877   ac_status=$?
46878   grep -v '^ *+' conftest.er1 >conftest.err
46879   rm -f conftest.er1
46880   cat conftest.err >&5
46881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46882   (exit $ac_status); } && {
46883          test -z "$ac_c_werror_flag" ||
46884          test ! -s conftest.err
46885        } && test -s conftest$ac_exeext &&
46886        $as_test_x conftest$ac_exeext; then
46887    echo "*** The test program compiled, but did not run. This usually means"
46888           echo "*** that the run-time linker is not finding SDL or finding the wrong"
46889           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
46890           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
46891           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
46892           echo "*** is required on your system"
46893           echo "***"
46894           echo "*** If you have an old version installed, it is best to remove it, although"
46895           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
46896 else
46897   echo "$as_me: failed program was:" >&5
46898 sed 's/^/| /' conftest.$ac_ext >&5
46899
46900          echo "*** The test program failed to compile or link. See the file config.log for the"
46901           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
46902           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
46903           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
46904 fi
46905
46906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46907       conftest$ac_exeext conftest.$ac_ext
46908           CFLAGS="$ac_save_CFLAGS"
46909           CXXFLAGS="$ac_save_CXXFLAGS"
46910           LIBS="$ac_save_LIBS"
46911        fi
46912      fi
46913      SDL_CFLAGS=""
46914      SDL_LIBS=""
46915      wxUSE_LIBSDL="no"
46916   fi
46917
46918
46919   rm -f conf.sdltest
46920
46921       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
46922         WITH_PLUGIN_SDL=1
46923       fi
46924     fi
46925   else
46926         if test "$wxUSE_MGL" = 1; then
46927         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
46928 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
46929         wxUSE_SOUND="no"
46930     fi
46931   fi
46932 fi
46933
46934 if test "$wxUSE_SOUND" = "yes"; then
46935   cat >>confdefs.h <<\_ACEOF
46936 #define wxUSE_SOUND 1
46937 _ACEOF
46938
46939   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
46940 fi
46941
46942 if test "$WXGTK2" = 1; then
46943
46944
46945 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
46946         if test -n "$ac_tool_prefix"; then
46947   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
46948 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
46949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46951 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
46952   echo $ECHO_N "(cached) $ECHO_C" >&6
46953 else
46954   case $PKG_CONFIG in
46955   [\\/]* | ?:[\\/]*)
46956   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
46957   ;;
46958   *)
46959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46960 for as_dir in $PATH
46961 do
46962   IFS=$as_save_IFS
46963   test -z "$as_dir" && as_dir=.
46964   for ac_exec_ext in '' $ac_executable_extensions; do
46965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46966     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46968     break 2
46969   fi
46970 done
46971 done
46972 IFS=$as_save_IFS
46973
46974   ;;
46975 esac
46976 fi
46977 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
46978 if test -n "$PKG_CONFIG"; then
46979   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
46980 echo "${ECHO_T}$PKG_CONFIG" >&6; }
46981 else
46982   { echo "$as_me:$LINENO: result: no" >&5
46983 echo "${ECHO_T}no" >&6; }
46984 fi
46985
46986
46987 fi
46988 if test -z "$ac_cv_path_PKG_CONFIG"; then
46989   ac_pt_PKG_CONFIG=$PKG_CONFIG
46990   # Extract the first word of "pkg-config", so it can be a program name with args.
46991 set dummy pkg-config; ac_word=$2
46992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46994 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
46995   echo $ECHO_N "(cached) $ECHO_C" >&6
46996 else
46997   case $ac_pt_PKG_CONFIG in
46998   [\\/]* | ?:[\\/]*)
46999   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
47000   ;;
47001   *)
47002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47003 for as_dir in $PATH
47004 do
47005   IFS=$as_save_IFS
47006   test -z "$as_dir" && as_dir=.
47007   for ac_exec_ext in '' $ac_executable_extensions; do
47008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47009     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
47010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47011     break 2
47012   fi
47013 done
47014 done
47015 IFS=$as_save_IFS
47016
47017   ;;
47018 esac
47019 fi
47020 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
47021 if test -n "$ac_pt_PKG_CONFIG"; then
47022   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
47023 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
47024 else
47025   { echo "$as_me:$LINENO: result: no" >&5
47026 echo "${ECHO_T}no" >&6; }
47027 fi
47028
47029   if test "x$ac_pt_PKG_CONFIG" = x; then
47030     PKG_CONFIG=""
47031   else
47032     case $cross_compiling:$ac_tool_warned in
47033 yes:)
47034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47035 whose name does not start with the host triplet.  If you think this
47036 configuration is useful to you, please write to autoconf@gnu.org." >&5
47037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47038 whose name does not start with the host triplet.  If you think this
47039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47040 ac_tool_warned=yes ;;
47041 esac
47042     PKG_CONFIG=$ac_pt_PKG_CONFIG
47043   fi
47044 else
47045   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
47046 fi
47047
47048 fi
47049 if test -n "$PKG_CONFIG"; then
47050         _pkg_min_version=0.9.0
47051         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
47052 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
47053         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
47054                 { echo "$as_me:$LINENO: result: yes" >&5
47055 echo "${ECHO_T}yes" >&6; }
47056         else
47057                 { echo "$as_me:$LINENO: result: no" >&5
47058 echo "${ECHO_T}no" >&6; }
47059                 PKG_CONFIG=""
47060         fi
47061
47062 fi
47063
47064     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47065
47066         if test "$wxUSE_GTKPRINT" = "yes" ; then
47067
47068
47069 pkg_failed=no
47070 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
47071 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
47072
47073 if test -n "$PKG_CONFIG"; then
47074     if test -n "$GTKPRINT_CFLAGS"; then
47075         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
47076     else
47077         if test -n "$PKG_CONFIG" && \
47078     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
47079   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
47080   ac_status=$?
47081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47082   (exit $ac_status); }; then
47083   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
47084 else
47085   pkg_failed=yes
47086 fi
47087     fi
47088 else
47089         pkg_failed=untried
47090 fi
47091 if test -n "$PKG_CONFIG"; then
47092     if test -n "$GTKPRINT_LIBS"; then
47093         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
47094     else
47095         if test -n "$PKG_CONFIG" && \
47096     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
47097   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
47098   ac_status=$?
47099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47100   (exit $ac_status); }; then
47101   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
47102 else
47103   pkg_failed=yes
47104 fi
47105     fi
47106 else
47107         pkg_failed=untried
47108 fi
47109
47110
47111
47112 if test $pkg_failed = yes; then
47113
47114 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47115         _pkg_short_errors_supported=yes
47116 else
47117         _pkg_short_errors_supported=no
47118 fi
47119         if test $_pkg_short_errors_supported = yes; then
47120                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
47121         else
47122                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
47123         fi
47124         # Put the nasty error message in config.log where it belongs
47125         echo "$GTKPRINT_PKG_ERRORS" >&5
47126
47127
47128                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
47129 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
47130                         wxUSE_GTKPRINT="no"
47131
47132
47133 elif test $pkg_failed = untried; then
47134
47135                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
47136 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
47137                         wxUSE_GTKPRINT="no"
47138
47139
47140 else
47141         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
47142         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
47143         { echo "$as_me:$LINENO: result: yes" >&5
47144 echo "${ECHO_T}yes" >&6; }
47145
47146                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
47147                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
47148                         cat >>confdefs.h <<\_ACEOF
47149 #define wxUSE_GTKPRINT 1
47150 _ACEOF
47151
47152
47153 fi
47154         fi
47155
47156         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47157
47158
47159 pkg_failed=no
47160 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
47161 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
47162
47163 if test -n "$PKG_CONFIG"; then
47164     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
47165         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
47166     else
47167         if test -n "$PKG_CONFIG" && \
47168     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
47169   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
47170   ac_status=$?
47171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47172   (exit $ac_status); }; then
47173   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
47174 else
47175   pkg_failed=yes
47176 fi
47177     fi
47178 else
47179         pkg_failed=untried
47180 fi
47181 if test -n "$PKG_CONFIG"; then
47182     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
47183         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
47184     else
47185         if test -n "$PKG_CONFIG" && \
47186     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
47187   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
47188   ac_status=$?
47189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47190   (exit $ac_status); }; then
47191   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
47192 else
47193   pkg_failed=yes
47194 fi
47195     fi
47196 else
47197         pkg_failed=untried
47198 fi
47199
47200
47201
47202 if test $pkg_failed = yes; then
47203
47204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47205         _pkg_short_errors_supported=yes
47206 else
47207         _pkg_short_errors_supported=no
47208 fi
47209         if test $_pkg_short_errors_supported = yes; then
47210                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
47211         else
47212                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
47213         fi
47214         # Put the nasty error message in config.log where it belongs
47215         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
47216
47217
47218                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
47219 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
47220                         wxUSE_LIBGNOMEPRINT="no"
47221
47222
47223 elif test $pkg_failed = untried; then
47224
47225                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
47226 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
47227                         wxUSE_LIBGNOMEPRINT="no"
47228
47229
47230 else
47231         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
47232         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
47233         { echo "$as_me:$LINENO: result: yes" >&5
47234 echo "${ECHO_T}yes" >&6; }
47235
47236                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
47237                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
47238                         cat >>confdefs.h <<\_ACEOF
47239 #define wxUSE_LIBGNOMEPRINT 1
47240 _ACEOF
47241
47242
47243 fi
47244         fi
47245     fi
47246
47247     if test "$wxUSE_MIMETYPE" = "yes" ; then
47248         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47249
47250
47251 pkg_failed=no
47252 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
47253 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
47254
47255 if test -n "$PKG_CONFIG"; then
47256     if test -n "$GNOMEVFS_CFLAGS"; then
47257         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
47258     else
47259         if test -n "$PKG_CONFIG" && \
47260     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
47261   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
47262   ac_status=$?
47263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47264   (exit $ac_status); }; then
47265   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
47266 else
47267   pkg_failed=yes
47268 fi
47269     fi
47270 else
47271         pkg_failed=untried
47272 fi
47273 if test -n "$PKG_CONFIG"; then
47274     if test -n "$GNOMEVFS_LIBS"; then
47275         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
47276     else
47277         if test -n "$PKG_CONFIG" && \
47278     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
47279   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
47280   ac_status=$?
47281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47282   (exit $ac_status); }; then
47283   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
47284 else
47285   pkg_failed=yes
47286 fi
47287     fi
47288 else
47289         pkg_failed=untried
47290 fi
47291
47292
47293
47294 if test $pkg_failed = yes; then
47295
47296 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47297         _pkg_short_errors_supported=yes
47298 else
47299         _pkg_short_errors_supported=no
47300 fi
47301         if test $_pkg_short_errors_supported = yes; then
47302                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
47303         else
47304                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
47305         fi
47306         # Put the nasty error message in config.log where it belongs
47307         echo "$GNOMEVFS_PKG_ERRORS" >&5
47308
47309
47310                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
47311 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
47312                         wxUSE_LIBGNOMEVFS="no"
47313
47314
47315 elif test $pkg_failed = untried; then
47316
47317                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
47318 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
47319                         wxUSE_LIBGNOMEVFS="no"
47320
47321
47322 else
47323         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
47324         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
47325         { echo "$as_me:$LINENO: result: yes" >&5
47326 echo "${ECHO_T}yes" >&6; }
47327
47328                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
47329                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
47330                         cat >>confdefs.h <<\_ACEOF
47331 #define wxUSE_LIBGNOMEVFS 1
47332 _ACEOF
47333
47334
47335 fi
47336         fi
47337     fi
47338
47339     if test "$wxUSE_LIBHILDON" = "yes" ; then
47340
47341 pkg_failed=no
47342 { echo "$as_me:$LINENO: checking for HILDON" >&5
47343 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
47344
47345 if test -n "$PKG_CONFIG"; then
47346     if test -n "$HILDON_CFLAGS"; then
47347         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
47348     else
47349         if test -n "$PKG_CONFIG" && \
47350     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
47351   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
47352   ac_status=$?
47353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47354   (exit $ac_status); }; then
47355   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
47356 else
47357   pkg_failed=yes
47358 fi
47359     fi
47360 else
47361         pkg_failed=untried
47362 fi
47363 if test -n "$PKG_CONFIG"; then
47364     if test -n "$HILDON_LIBS"; then
47365         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
47366     else
47367         if test -n "$PKG_CONFIG" && \
47368     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
47369   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
47370   ac_status=$?
47371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47372   (exit $ac_status); }; then
47373   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
47374 else
47375   pkg_failed=yes
47376 fi
47377     fi
47378 else
47379         pkg_failed=untried
47380 fi
47381
47382
47383
47384 if test $pkg_failed = yes; then
47385
47386 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47387         _pkg_short_errors_supported=yes
47388 else
47389         _pkg_short_errors_supported=no
47390 fi
47391         if test $_pkg_short_errors_supported = yes; then
47392                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
47393         else
47394                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
47395         fi
47396         # Put the nasty error message in config.log where it belongs
47397         echo "$HILDON_PKG_ERRORS" >&5
47398
47399
47400                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
47401 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
47402                         wxUSE_LIBHILDON="no"
47403                         ac_hildon_lgpl=0
47404
47405
47406 elif test $pkg_failed = untried; then
47407
47408                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
47409 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
47410                         wxUSE_LIBHILDON="no"
47411                         ac_hildon_lgpl=0
47412
47413
47414 else
47415         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
47416         HILDON_LIBS=$pkg_cv_HILDON_LIBS
47417         { echo "$as_me:$LINENO: result: yes" >&5
47418 echo "${ECHO_T}yes" >&6; }
47419
47420                 EXTRALIBS_HILDON="$HILDON_LIBS"
47421                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
47422                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
47423                 cat >>confdefs.h <<\_ACEOF
47424 #define wxUSE_LIBHILDON 1
47425 _ACEOF
47426
47427                 ac_hildon_lgpl=1
47428
47429 fi
47430
47431         if test "$ac_hildon_lgpl" = 0 ; then
47432
47433 pkg_failed=no
47434 { echo "$as_me:$LINENO: checking for HILDON2" >&5
47435 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
47436
47437 if test -n "$PKG_CONFIG"; then
47438     if test -n "$HILDON2_CFLAGS"; then
47439         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
47440     else
47441         if test -n "$PKG_CONFIG" && \
47442     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
47443   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
47444   ac_status=$?
47445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47446   (exit $ac_status); }; then
47447   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
47448 else
47449   pkg_failed=yes
47450 fi
47451     fi
47452 else
47453         pkg_failed=untried
47454 fi
47455 if test -n "$PKG_CONFIG"; then
47456     if test -n "$HILDON2_LIBS"; then
47457         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
47458     else
47459         if test -n "$PKG_CONFIG" && \
47460     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
47461   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
47462   ac_status=$?
47463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47464   (exit $ac_status); }; then
47465   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
47466 else
47467   pkg_failed=yes
47468 fi
47469     fi
47470 else
47471         pkg_failed=untried
47472 fi
47473
47474
47475
47476 if test $pkg_failed = yes; then
47477
47478 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47479         _pkg_short_errors_supported=yes
47480 else
47481         _pkg_short_errors_supported=no
47482 fi
47483         if test $_pkg_short_errors_supported = yes; then
47484                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
47485         else
47486                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
47487         fi
47488         # Put the nasty error message in config.log where it belongs
47489         echo "$HILDON2_PKG_ERRORS" >&5
47490
47491
47492                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
47493 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
47494                             wxUSE_LIBHILDON2="no"
47495
47496
47497 elif test $pkg_failed = untried; then
47498
47499                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
47500 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
47501                             wxUSE_LIBHILDON2="no"
47502
47503
47504 else
47505         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
47506         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
47507         { echo "$as_me:$LINENO: result: yes" >&5
47508 echo "${ECHO_T}yes" >&6; }
47509
47510                     EXTRALIBS_HILDON="$HILDON2_LIBS"
47511                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
47512                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
47513                     cat >>confdefs.h <<\_ACEOF
47514 #define wxUSE_LIBHILDON2 1
47515 _ACEOF
47516
47517
47518 fi
47519         fi
47520     fi
47521 fi
47522
47523 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
47524   cat >>confdefs.h <<\_ACEOF
47525 #define wxUSE_CMDLINE_PARSER 1
47526 _ACEOF
47527
47528 fi
47529
47530 if test "$wxUSE_STOPWATCH" = "yes"; then
47531   cat >>confdefs.h <<\_ACEOF
47532 #define wxUSE_STOPWATCH 1
47533 _ACEOF
47534
47535 fi
47536
47537 if test "$wxUSE_DATETIME" = "yes"; then
47538   cat >>confdefs.h <<\_ACEOF
47539 #define wxUSE_DATETIME 1
47540 _ACEOF
47541
47542 fi
47543
47544 if test "$wxUSE_FILE" = "yes"; then
47545   cat >>confdefs.h <<\_ACEOF
47546 #define wxUSE_FILE 1
47547 _ACEOF
47548
47549 fi
47550
47551 if test "$wxUSE_FFILE" = "yes"; then
47552   cat >>confdefs.h <<\_ACEOF
47553 #define wxUSE_FFILE 1
47554 _ACEOF
47555
47556 fi
47557
47558 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
47559   if test "$wxUSE_STREAMS" != yes; then
47560     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
47561 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
47562     wxUSE_ARCHIVE_STREAMS=no
47563   else
47564     cat >>confdefs.h <<\_ACEOF
47565 #define wxUSE_ARCHIVE_STREAMS 1
47566 _ACEOF
47567
47568   fi
47569 fi
47570
47571 if test "$wxUSE_ZIPSTREAM" = "yes"; then
47572   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
47573     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
47574 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
47575   elif test "$wxUSE_ZLIB" = "no"; then
47576     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
47577 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
47578   else
47579     cat >>confdefs.h <<\_ACEOF
47580 #define wxUSE_ZIPSTREAM 1
47581 _ACEOF
47582
47583   fi
47584 fi
47585
47586 if test "$wxUSE_TARSTREAM" = "yes"; then
47587   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
47588     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
47589 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
47590   else
47591     cat >>confdefs.h <<\_ACEOF
47592 #define wxUSE_TARSTREAM 1
47593 _ACEOF
47594
47595   fi
47596 fi
47597
47598 if test "$wxUSE_FILE_HISTORY" = "yes"; then
47599   cat >>confdefs.h <<\_ACEOF
47600 #define wxUSE_FILE_HISTORY 1
47601 _ACEOF
47602
47603 fi
47604
47605 if test "$wxUSE_FILESYSTEM" = "yes"; then
47606   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
47607     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
47608 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
47609     wxUSE_FILESYSTEM=no
47610   else
47611     cat >>confdefs.h <<\_ACEOF
47612 #define wxUSE_FILESYSTEM 1
47613 _ACEOF
47614
47615   fi
47616 fi
47617
47618 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
47619   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
47620     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
47621 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
47622   else
47623     cat >>confdefs.h <<\_ACEOF
47624 #define wxUSE_FS_ARCHIVE 1
47625 _ACEOF
47626
47627   fi
47628 fi
47629
47630 if test "$wxUSE_FS_ZIP" = "yes"; then
47631   if test "$wxUSE_FS_ARCHIVE" != yes; then
47632     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
47633 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
47634   else
47635     cat >>confdefs.h <<\_ACEOF
47636 #define wxUSE_FS_ZIP 1
47637 _ACEOF
47638
47639   fi
47640 fi
47641
47642 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
47643   if test "$USE_UNIX" != 1; then
47644     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
47645 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
47646     wxUSE_ON_FATAL_EXCEPTION=no
47647   else
47648     cat >>confdefs.h <<\_ACEOF
47649 #define wxUSE_ON_FATAL_EXCEPTION 1
47650 _ACEOF
47651
47652   fi
47653 fi
47654
47655 if test "$wxUSE_STACKWALKER" = "yes"; then
47656     cat >>confdefs.h <<\_ACEOF
47657 #define wxUSE_STACKWALKER 1
47658 _ACEOF
47659
47660 fi
47661
47662 if test "$wxUSE_DEBUGREPORT" = "yes"; then
47663     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
47664         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
47665 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
47666         wxUSE_DEBUGREPORT=no
47667     else
47668         cat >>confdefs.h <<\_ACEOF
47669 #define wxUSE_DEBUGREPORT 1
47670 _ACEOF
47671
47672         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
47673             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
47674         fi
47675     fi
47676 fi
47677
47678 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
47679   cat >>confdefs.h <<\_ACEOF
47680 #define wxUSE_SNGLINST_CHECKER 1
47681 _ACEOF
47682
47683 fi
47684
47685 if test "$wxUSE_BUSYINFO" = "yes"; then
47686   cat >>confdefs.h <<\_ACEOF
47687 #define wxUSE_BUSYINFO 1
47688 _ACEOF
47689
47690 fi
47691
47692 if test "$wxUSE_HOTKEY" = "yes"; then
47693   if test "$wxUSE_MSW" != 1 -a "$wxUSE_OSX_COCOA" != 1 -a "$wxUSE_OSX_CARBON" != 1; then
47694     { echo "$as_me:$LINENO: WARNING: Hot keys not supported by the current toolkit, disabled" >&5
47695 echo "$as_me: WARNING: Hot keys not supported by the current toolkit, disabled" >&2;}
47696     wxUSE_HOTKEY=no
47697   fi
47698 elif test "$wxUSE_HOTKEY" = "auto"; then
47699   if test "$wxUSE_MSW" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OSX_CARBON" = 1; then
47700     wxUSE_HOTKEY=yes
47701   fi
47702 fi
47703 if test "$wxUSE_HOTKEY" = "yes"; then
47704   cat >>confdefs.h <<\_ACEOF
47705 #define wxUSE_HOTKEY 1
47706 _ACEOF
47707
47708 fi
47709
47710 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
47711   cat >>confdefs.h <<\_ACEOF
47712 #define wxUSE_STD_CONTAINERS 1
47713 _ACEOF
47714
47715 fi
47716
47717 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
47718   cat >>confdefs.h <<\_ACEOF
47719 #define wxUSE_STD_IOSTREAM 1
47720 _ACEOF
47721
47722 fi
47723
47724 if test "$wxUSE_STD_STRING" = "yes"; then
47725   cat >>confdefs.h <<\_ACEOF
47726 #define wxUSE_STD_STRING 1
47727 _ACEOF
47728
47729 fi
47730
47731 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
47732   cat >>confdefs.h <<\_ACEOF
47733 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
47734 _ACEOF
47735
47736 fi
47737
47738 if test "$wxUSE_STDPATHS" = "yes"; then
47739   cat >>confdefs.h <<\_ACEOF
47740 #define wxUSE_STDPATHS 1
47741 _ACEOF
47742
47743 fi
47744
47745 if test "$wxUSE_TEXTBUFFER" = "yes"; then
47746     cat >>confdefs.h <<\_ACEOF
47747 #define wxUSE_TEXTBUFFER 1
47748 _ACEOF
47749
47750 fi
47751
47752 if test "$wxUSE_TEXTFILE" = "yes"; then
47753   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
47754     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
47755 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
47756   else
47757     cat >>confdefs.h <<\_ACEOF
47758 #define wxUSE_TEXTFILE 1
47759 _ACEOF
47760
47761   fi
47762 fi
47763
47764 if test "$wxUSE_CONFIG" = "yes" ; then
47765   if test "$wxUSE_TEXTFILE" != "yes"; then
47766     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
47767 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
47768   else
47769     cat >>confdefs.h <<\_ACEOF
47770 #define wxUSE_CONFIG 1
47771 _ACEOF
47772
47773     cat >>confdefs.h <<\_ACEOF
47774 #define wxUSE_CONFIG_NATIVE 1
47775 _ACEOF
47776
47777     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
47778   fi
47779 fi
47780
47781 if test "$wxUSE_INTL" = "yes" ; then
47782   if test "$wxUSE_FILE" != "yes"; then
47783     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
47784 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
47785   else
47786     cat >>confdefs.h <<\_ACEOF
47787 #define wxUSE_INTL 1
47788 _ACEOF
47789
47790     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
47791     GUIDIST="$GUIDIST INTL_DIST"
47792   fi
47793 fi
47794
47795 if test "$wxUSE_XLOCALE" = "yes" ; then
47796     cat >>confdefs.h <<\_ACEOF
47797 #define wxUSE_XLOCALE 1
47798 _ACEOF
47799
47800     { echo "$as_me:$LINENO: checking for locale_t" >&5
47801 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
47802 if test "${ac_cv_type_locale_t+set}" = set; then
47803   echo $ECHO_N "(cached) $ECHO_C" >&6
47804 else
47805   cat >conftest.$ac_ext <<_ACEOF
47806 /* confdefs.h.  */
47807 _ACEOF
47808 cat confdefs.h >>conftest.$ac_ext
47809 cat >>conftest.$ac_ext <<_ACEOF
47810 /* end confdefs.h.  */
47811 #include <xlocale.h>
47812                     #include <locale.h>
47813
47814 typedef locale_t ac__type_new_;
47815 int
47816 main ()
47817 {
47818 if ((ac__type_new_ *) 0)
47819   return 0;
47820 if (sizeof (ac__type_new_))
47821   return 0;
47822   ;
47823   return 0;
47824 }
47825 _ACEOF
47826 rm -f conftest.$ac_objext
47827 if { (ac_try="$ac_compile"
47828 case "(($ac_try" in
47829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47830   *) ac_try_echo=$ac_try;;
47831 esac
47832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47833   (eval "$ac_compile") 2>conftest.er1
47834   ac_status=$?
47835   grep -v '^ *+' conftest.er1 >conftest.err
47836   rm -f conftest.er1
47837   cat conftest.err >&5
47838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47839   (exit $ac_status); } && {
47840          test -z "$ac_c_werror_flag" ||
47841          test ! -s conftest.err
47842        } && test -s conftest.$ac_objext; then
47843   ac_cv_type_locale_t=yes
47844 else
47845   echo "$as_me: failed program was:" >&5
47846 sed 's/^/| /' conftest.$ac_ext >&5
47847
47848         ac_cv_type_locale_t=no
47849 fi
47850
47851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47852 fi
47853 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
47854 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
47855 if test $ac_cv_type_locale_t = yes; then
47856
47857 cat >>confdefs.h <<_ACEOF
47858 #define HAVE_LOCALE_T 1
47859 _ACEOF
47860
47861
47862 fi
47863
47864 fi
47865
47866 if test "$wxUSE_LOG" = "yes"; then
47867   cat >>confdefs.h <<\_ACEOF
47868 #define wxUSE_LOG 1
47869 _ACEOF
47870
47871
47872     if test "$wxUSE_LOGGUI" = "yes"; then
47873       cat >>confdefs.h <<\_ACEOF
47874 #define wxUSE_LOGGUI 1
47875 _ACEOF
47876
47877     fi
47878
47879     if test "$wxUSE_LOGWINDOW" = "yes"; then
47880       cat >>confdefs.h <<\_ACEOF
47881 #define wxUSE_LOGWINDOW 1
47882 _ACEOF
47883
47884     fi
47885
47886     if test "$wxUSE_LOGDIALOG" = "yes"; then
47887       cat >>confdefs.h <<\_ACEOF
47888 #define wxUSE_LOG_DIALOG 1
47889 _ACEOF
47890
47891     fi
47892
47893         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
47894 fi
47895
47896 if test "$wxUSE_LONGLONG" = "yes"; then
47897   cat >>confdefs.h <<\_ACEOF
47898 #define wxUSE_LONGLONG 1
47899 _ACEOF
47900
47901 fi
47902
47903 if test "$wxUSE_GEOMETRY" = "yes"; then
47904   cat >>confdefs.h <<\_ACEOF
47905 #define wxUSE_GEOMETRY 1
47906 _ACEOF
47907
47908 fi
47909
47910 if test "$wxUSE_BASE64" = "yes"; then
47911   cat >>confdefs.h <<\_ACEOF
47912 #define wxUSE_BASE64 1
47913 _ACEOF
47914
47915 fi
47916
47917 if test "$wxUSE_STREAMS" = "yes" ; then
47918   cat >>confdefs.h <<\_ACEOF
47919 #define wxUSE_STREAMS 1
47920 _ACEOF
47921
47922 fi
47923
47924 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
47925   cat >>confdefs.h <<\_ACEOF
47926 #define wxUSE_PRINTF_POS_PARAMS 1
47927 _ACEOF
47928
47929 fi
47930
47931 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
47932   cat >>confdefs.h <<\_ACEOF
47933 #define wxUSE_OBJC_UNIQUIFYING 1
47934 _ACEOF
47935
47936 fi
47937
47938
47939 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
47940     cat >>confdefs.h <<\_ACEOF
47941 #define wxUSE_CONSOLE_EVENTLOOP 1
47942 _ACEOF
47943
47944
47945     if test "$wxUSE_UNIX" = "yes"; then
47946         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
47947             cat >>confdefs.h <<\_ACEOF
47948 #define wxUSE_SELECT_DISPATCHER 1
47949 _ACEOF
47950
47951         fi
47952
47953         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
47954
47955 for ac_header in sys/epoll.h
47956 do
47957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47961   echo $ECHO_N "(cached) $ECHO_C" >&6
47962 else
47963   cat >conftest.$ac_ext <<_ACEOF
47964 /* confdefs.h.  */
47965 _ACEOF
47966 cat confdefs.h >>conftest.$ac_ext
47967 cat >>conftest.$ac_ext <<_ACEOF
47968 /* end confdefs.h.  */
47969 $ac_includes_default
47970
47971 #include <$ac_header>
47972 _ACEOF
47973 rm -f conftest.$ac_objext
47974 if { (ac_try="$ac_compile"
47975 case "(($ac_try" in
47976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47977   *) ac_try_echo=$ac_try;;
47978 esac
47979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47980   (eval "$ac_compile") 2>conftest.er1
47981   ac_status=$?
47982   grep -v '^ *+' conftest.er1 >conftest.err
47983   rm -f conftest.er1
47984   cat conftest.err >&5
47985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47986   (exit $ac_status); } && {
47987          test -z "$ac_c_werror_flag" ||
47988          test ! -s conftest.err
47989        } && test -s conftest.$ac_objext; then
47990   eval "$as_ac_Header=yes"
47991 else
47992   echo "$as_me: failed program was:" >&5
47993 sed 's/^/| /' conftest.$ac_ext >&5
47994
47995         eval "$as_ac_Header=no"
47996 fi
47997
47998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47999 fi
48000 ac_res=`eval echo '${'$as_ac_Header'}'`
48001                { echo "$as_me:$LINENO: result: $ac_res" >&5
48002 echo "${ECHO_T}$ac_res" >&6; }
48003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48004   cat >>confdefs.h <<_ACEOF
48005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48006 _ACEOF
48007
48008 fi
48009
48010 done
48011
48012             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
48013                 cat >>confdefs.h <<\_ACEOF
48014 #define wxUSE_EPOLL_DISPATCHER 1
48015 _ACEOF
48016
48017             else
48018                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
48019 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
48020             fi
48021         fi
48022     fi
48023 fi
48024
48025
48026
48027
48028 for ac_func in gettimeofday ftime
48029 do
48030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48034   echo $ECHO_N "(cached) $ECHO_C" >&6
48035 else
48036   cat >conftest.$ac_ext <<_ACEOF
48037 /* confdefs.h.  */
48038 _ACEOF
48039 cat confdefs.h >>conftest.$ac_ext
48040 cat >>conftest.$ac_ext <<_ACEOF
48041 /* end confdefs.h.  */
48042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48044 #define $ac_func innocuous_$ac_func
48045
48046 /* System header to define __stub macros and hopefully few prototypes,
48047     which can conflict with char $ac_func (); below.
48048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48049     <limits.h> exists even on freestanding compilers.  */
48050
48051 #ifdef __STDC__
48052 # include <limits.h>
48053 #else
48054 # include <assert.h>
48055 #endif
48056
48057 #undef $ac_func
48058
48059 /* Override any GCC internal prototype to avoid an error.
48060    Use char because int might match the return type of a GCC
48061    builtin and then its argument prototype would still apply.  */
48062 #ifdef __cplusplus
48063 extern "C"
48064 #endif
48065 char $ac_func ();
48066 /* The GNU C library defines this for functions which it implements
48067     to always fail with ENOSYS.  Some functions are actually named
48068     something starting with __ and the normal name is an alias.  */
48069 #if defined __stub_$ac_func || defined __stub___$ac_func
48070 choke me
48071 #endif
48072
48073 int
48074 main ()
48075 {
48076 return $ac_func ();
48077   ;
48078   return 0;
48079 }
48080 _ACEOF
48081 rm -f conftest.$ac_objext conftest$ac_exeext
48082 if { (ac_try="$ac_link"
48083 case "(($ac_try" in
48084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48085   *) ac_try_echo=$ac_try;;
48086 esac
48087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48088   (eval "$ac_link") 2>conftest.er1
48089   ac_status=$?
48090   grep -v '^ *+' conftest.er1 >conftest.err
48091   rm -f conftest.er1
48092   cat conftest.err >&5
48093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48094   (exit $ac_status); } && {
48095          test -z "$ac_c_werror_flag" ||
48096          test ! -s conftest.err
48097        } && test -s conftest$ac_exeext &&
48098        $as_test_x conftest$ac_exeext; then
48099   eval "$as_ac_var=yes"
48100 else
48101   echo "$as_me: failed program was:" >&5
48102 sed 's/^/| /' conftest.$ac_ext >&5
48103
48104         eval "$as_ac_var=no"
48105 fi
48106
48107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48108       conftest$ac_exeext conftest.$ac_ext
48109 fi
48110 ac_res=`eval echo '${'$as_ac_var'}'`
48111                { echo "$as_me:$LINENO: result: $ac_res" >&5
48112 echo "${ECHO_T}$ac_res" >&6; }
48113 if test `eval echo '${'$as_ac_var'}'` = yes; then
48114   cat >>confdefs.h <<_ACEOF
48115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48116 _ACEOF
48117  break
48118 fi
48119 done
48120
48121
48122 if test "$ac_cv_func_gettimeofday" = "yes"; then
48123     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
48124 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
48125 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
48126   echo $ECHO_N "(cached) $ECHO_C" >&6
48127 else
48128
48129                 cat >conftest.$ac_ext <<_ACEOF
48130 /* confdefs.h.  */
48131 _ACEOF
48132 cat confdefs.h >>conftest.$ac_ext
48133 cat >>conftest.$ac_ext <<_ACEOF
48134 /* end confdefs.h.  */
48135
48136                 #include <sys/time.h>
48137                 #include <unistd.h>
48138
48139 int
48140 main ()
48141 {
48142
48143                 struct timeval tv;
48144                 gettimeofday(&tv, NULL);
48145
48146   ;
48147   return 0;
48148 }
48149 _ACEOF
48150 rm -f conftest.$ac_objext
48151 if { (ac_try="$ac_compile"
48152 case "(($ac_try" in
48153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48154   *) ac_try_echo=$ac_try;;
48155 esac
48156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48157   (eval "$ac_compile") 2>conftest.er1
48158   ac_status=$?
48159   grep -v '^ *+' conftest.er1 >conftest.err
48160   rm -f conftest.er1
48161   cat conftest.err >&5
48162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48163   (exit $ac_status); } && {
48164          test -z "$ac_c_werror_flag" ||
48165          test ! -s conftest.err
48166        } && test -s conftest.$ac_objext; then
48167   wx_cv_func_gettimeofday_has_2_args=yes
48168 else
48169   echo "$as_me: failed program was:" >&5
48170 sed 's/^/| /' conftest.$ac_ext >&5
48171
48172         cat >conftest.$ac_ext <<_ACEOF
48173 /* confdefs.h.  */
48174 _ACEOF
48175 cat confdefs.h >>conftest.$ac_ext
48176 cat >>conftest.$ac_ext <<_ACEOF
48177 /* end confdefs.h.  */
48178
48179                     #include <sys/time.h>
48180                     #include <unistd.h>
48181
48182 int
48183 main ()
48184 {
48185
48186                     struct timeval tv;
48187                     gettimeofday(&tv);
48188
48189   ;
48190   return 0;
48191 }
48192 _ACEOF
48193 rm -f conftest.$ac_objext
48194 if { (ac_try="$ac_compile"
48195 case "(($ac_try" in
48196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48197   *) ac_try_echo=$ac_try;;
48198 esac
48199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48200   (eval "$ac_compile") 2>conftest.er1
48201   ac_status=$?
48202   grep -v '^ *+' conftest.er1 >conftest.err
48203   rm -f conftest.er1
48204   cat conftest.err >&5
48205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48206   (exit $ac_status); } && {
48207          test -z "$ac_c_werror_flag" ||
48208          test ! -s conftest.err
48209        } && test -s conftest.$ac_objext; then
48210   wx_cv_func_gettimeofday_has_2_args=no
48211 else
48212   echo "$as_me: failed program was:" >&5
48213 sed 's/^/| /' conftest.$ac_ext >&5
48214
48215
48216                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
48217 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
48218                     wx_cv_func_gettimeofday_has_2_args=unknown
48219
48220
48221 fi
48222
48223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48224
48225 fi
48226
48227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48228
48229 fi
48230 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
48231 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
48232
48233     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
48234         cat >>confdefs.h <<\_ACEOF
48235 #define WX_GETTIMEOFDAY_NO_TZ 1
48236 _ACEOF
48237
48238     fi
48239 fi
48240
48241 if test "$wxUSE_DATETIME" = "yes"; then
48242             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
48243 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
48244 if test "${wx_cv_var_timezone+set}" = set; then
48245   echo $ECHO_N "(cached) $ECHO_C" >&6
48246 else
48247
48248                         ac_ext=cpp
48249 ac_cpp='$CXXCPP $CPPFLAGS'
48250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48253
48254                         cat >conftest.$ac_ext <<_ACEOF
48255 /* confdefs.h.  */
48256 _ACEOF
48257 cat confdefs.h >>conftest.$ac_ext
48258 cat >>conftest.$ac_ext <<_ACEOF
48259 /* end confdefs.h.  */
48260
48261                                 #include <time.h>
48262
48263 int
48264 main ()
48265 {
48266
48267                                 int tz;
48268                                 tz = timezone;
48269
48270   ;
48271   return 0;
48272 }
48273 _ACEOF
48274 rm -f conftest.$ac_objext
48275 if { (ac_try="$ac_compile"
48276 case "(($ac_try" in
48277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48278   *) ac_try_echo=$ac_try;;
48279 esac
48280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48281   (eval "$ac_compile") 2>conftest.er1
48282   ac_status=$?
48283   grep -v '^ *+' conftest.er1 >conftest.err
48284   rm -f conftest.er1
48285   cat conftest.err >&5
48286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48287   (exit $ac_status); } && {
48288          test -z "$ac_cxx_werror_flag" ||
48289          test ! -s conftest.err
48290        } && test -s conftest.$ac_objext; then
48291
48292                                 wx_cv_var_timezone=timezone
48293
48294 else
48295   echo "$as_me: failed program was:" >&5
48296 sed 's/^/| /' conftest.$ac_ext >&5
48297
48298
48299                                 cat >conftest.$ac_ext <<_ACEOF
48300 /* confdefs.h.  */
48301 _ACEOF
48302 cat confdefs.h >>conftest.$ac_ext
48303 cat >>conftest.$ac_ext <<_ACEOF
48304 /* end confdefs.h.  */
48305
48306                                         #include <time.h>
48307
48308 int
48309 main ()
48310 {
48311
48312                                         int tz;
48313                                         tz = _timezone;
48314
48315   ;
48316   return 0;
48317 }
48318 _ACEOF
48319 rm -f conftest.$ac_objext
48320 if { (ac_try="$ac_compile"
48321 case "(($ac_try" in
48322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48323   *) ac_try_echo=$ac_try;;
48324 esac
48325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48326   (eval "$ac_compile") 2>conftest.er1
48327   ac_status=$?
48328   grep -v '^ *+' conftest.er1 >conftest.err
48329   rm -f conftest.er1
48330   cat conftest.err >&5
48331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48332   (exit $ac_status); } && {
48333          test -z "$ac_cxx_werror_flag" ||
48334          test ! -s conftest.err
48335        } && test -s conftest.$ac_objext; then
48336
48337                                         wx_cv_var_timezone=_timezone
48338
48339 else
48340   echo "$as_me: failed program was:" >&5
48341 sed 's/^/| /' conftest.$ac_ext >&5
48342
48343
48344                                         cat >conftest.$ac_ext <<_ACEOF
48345 /* confdefs.h.  */
48346 _ACEOF
48347 cat confdefs.h >>conftest.$ac_ext
48348 cat >>conftest.$ac_ext <<_ACEOF
48349 /* end confdefs.h.  */
48350
48351                                                 #include <time.h>
48352
48353 int
48354 main ()
48355 {
48356
48357                                                 int tz;
48358                                                 tz = __timezone;
48359
48360   ;
48361   return 0;
48362 }
48363 _ACEOF
48364 rm -f conftest.$ac_objext
48365 if { (ac_try="$ac_compile"
48366 case "(($ac_try" in
48367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48368   *) ac_try_echo=$ac_try;;
48369 esac
48370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48371   (eval "$ac_compile") 2>conftest.er1
48372   ac_status=$?
48373   grep -v '^ *+' conftest.er1 >conftest.err
48374   rm -f conftest.er1
48375   cat conftest.err >&5
48376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48377   (exit $ac_status); } && {
48378          test -z "$ac_cxx_werror_flag" ||
48379          test ! -s conftest.err
48380        } && test -s conftest.$ac_objext; then
48381
48382                                                 wx_cv_var_timezone=__timezone
48383
48384 else
48385   echo "$as_me: failed program was:" >&5
48386 sed 's/^/| /' conftest.$ac_ext >&5
48387
48388
48389                                                 if test "$USE_DOS" = 0 ; then
48390                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
48391 echo "$as_me: WARNING: no timezone variable" >&2;}
48392                                                 fi
48393
48394
48395 fi
48396
48397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48398
48399
48400 fi
48401
48402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48403
48404
48405 fi
48406
48407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48408                         ac_ext=c
48409 ac_cpp='$CPP $CPPFLAGS'
48410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48413
48414
48415
48416 fi
48417 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
48418 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
48419
48420         if test "x$wx_cv_var_timezone" != x ; then
48421         cat >>confdefs.h <<_ACEOF
48422 #define WX_TIMEZONE $wx_cv_var_timezone
48423 _ACEOF
48424
48425     fi
48426
48427
48428 for ac_func in localtime
48429 do
48430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48434   echo $ECHO_N "(cached) $ECHO_C" >&6
48435 else
48436   cat >conftest.$ac_ext <<_ACEOF
48437 /* confdefs.h.  */
48438 _ACEOF
48439 cat confdefs.h >>conftest.$ac_ext
48440 cat >>conftest.$ac_ext <<_ACEOF
48441 /* end confdefs.h.  */
48442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48444 #define $ac_func innocuous_$ac_func
48445
48446 /* System header to define __stub macros and hopefully few prototypes,
48447     which can conflict with char $ac_func (); below.
48448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48449     <limits.h> exists even on freestanding compilers.  */
48450
48451 #ifdef __STDC__
48452 # include <limits.h>
48453 #else
48454 # include <assert.h>
48455 #endif
48456
48457 #undef $ac_func
48458
48459 /* Override any GCC internal prototype to avoid an error.
48460    Use char because int might match the return type of a GCC
48461    builtin and then its argument prototype would still apply.  */
48462 #ifdef __cplusplus
48463 extern "C"
48464 #endif
48465 char $ac_func ();
48466 /* The GNU C library defines this for functions which it implements
48467     to always fail with ENOSYS.  Some functions are actually named
48468     something starting with __ and the normal name is an alias.  */
48469 #if defined __stub_$ac_func || defined __stub___$ac_func
48470 choke me
48471 #endif
48472
48473 int
48474 main ()
48475 {
48476 return $ac_func ();
48477   ;
48478   return 0;
48479 }
48480 _ACEOF
48481 rm -f conftest.$ac_objext conftest$ac_exeext
48482 if { (ac_try="$ac_link"
48483 case "(($ac_try" in
48484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48485   *) ac_try_echo=$ac_try;;
48486 esac
48487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48488   (eval "$ac_link") 2>conftest.er1
48489   ac_status=$?
48490   grep -v '^ *+' conftest.er1 >conftest.err
48491   rm -f conftest.er1
48492   cat conftest.err >&5
48493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48494   (exit $ac_status); } && {
48495          test -z "$ac_c_werror_flag" ||
48496          test ! -s conftest.err
48497        } && test -s conftest$ac_exeext &&
48498        $as_test_x conftest$ac_exeext; then
48499   eval "$as_ac_var=yes"
48500 else
48501   echo "$as_me: failed program was:" >&5
48502 sed 's/^/| /' conftest.$ac_ext >&5
48503
48504         eval "$as_ac_var=no"
48505 fi
48506
48507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48508       conftest$ac_exeext conftest.$ac_ext
48509 fi
48510 ac_res=`eval echo '${'$as_ac_var'}'`
48511                { echo "$as_me:$LINENO: result: $ac_res" >&5
48512 echo "${ECHO_T}$ac_res" >&6; }
48513 if test `eval echo '${'$as_ac_var'}'` = yes; then
48514   cat >>confdefs.h <<_ACEOF
48515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48516 _ACEOF
48517
48518 fi
48519 done
48520
48521
48522     if test "$ac_cv_func_localtime" = "yes"; then
48523         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
48524 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
48525 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
48526   echo $ECHO_N "(cached) $ECHO_C" >&6
48527 else
48528
48529             cat >conftest.$ac_ext <<_ACEOF
48530 /* confdefs.h.  */
48531 _ACEOF
48532 cat confdefs.h >>conftest.$ac_ext
48533 cat >>conftest.$ac_ext <<_ACEOF
48534 /* end confdefs.h.  */
48535
48536                     #include <time.h>
48537
48538 int
48539 main ()
48540 {
48541
48542                     struct tm tm;
48543                     tm.tm_gmtoff++;
48544
48545   ;
48546   return 0;
48547 }
48548 _ACEOF
48549 rm -f conftest.$ac_objext
48550 if { (ac_try="$ac_compile"
48551 case "(($ac_try" in
48552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48553   *) ac_try_echo=$ac_try;;
48554 esac
48555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48556   (eval "$ac_compile") 2>conftest.er1
48557   ac_status=$?
48558   grep -v '^ *+' conftest.er1 >conftest.err
48559   rm -f conftest.er1
48560   cat conftest.err >&5
48561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48562   (exit $ac_status); } && {
48563          test -z "$ac_c_werror_flag" ||
48564          test ! -s conftest.err
48565        } && test -s conftest.$ac_objext; then
48566
48567                     wx_cv_struct_tm_has_gmtoff=yes
48568
48569 else
48570   echo "$as_me: failed program was:" >&5
48571 sed 's/^/| /' conftest.$ac_ext >&5
48572
48573         wx_cv_struct_tm_has_gmtoff=no
48574
48575 fi
48576
48577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48578
48579 fi
48580 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
48581 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
48582     fi
48583
48584     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
48585         cat >>confdefs.h <<\_ACEOF
48586 #define WX_GMTOFF_IN_TM 1
48587 _ACEOF
48588
48589     fi
48590
48591     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
48592 fi
48593
48594
48595 if test "$wxUSE_SOCKETS" = "yes"; then
48596     if test "$wxUSE_MGL" = 1; then
48597         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
48598 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
48599         wxUSE_SOCKETS="no"
48600     fi
48601 fi
48602
48603 if test "$wxUSE_SOCKETS" = "yes"; then
48604         if test "$TOOLKIT" != "MSW"; then
48605                 { echo "$as_me:$LINENO: checking for socket" >&5
48606 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
48607 if test "${ac_cv_func_socket+set}" = set; then
48608   echo $ECHO_N "(cached) $ECHO_C" >&6
48609 else
48610   cat >conftest.$ac_ext <<_ACEOF
48611 /* confdefs.h.  */
48612 _ACEOF
48613 cat confdefs.h >>conftest.$ac_ext
48614 cat >>conftest.$ac_ext <<_ACEOF
48615 /* end confdefs.h.  */
48616 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
48617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48618 #define socket innocuous_socket
48619
48620 /* System header to define __stub macros and hopefully few prototypes,
48621     which can conflict with char socket (); below.
48622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48623     <limits.h> exists even on freestanding compilers.  */
48624
48625 #ifdef __STDC__
48626 # include <limits.h>
48627 #else
48628 # include <assert.h>
48629 #endif
48630
48631 #undef socket
48632
48633 /* Override any GCC internal prototype to avoid an error.
48634    Use char because int might match the return type of a GCC
48635    builtin and then its argument prototype would still apply.  */
48636 #ifdef __cplusplus
48637 extern "C"
48638 #endif
48639 char socket ();
48640 /* The GNU C library defines this for functions which it implements
48641     to always fail with ENOSYS.  Some functions are actually named
48642     something starting with __ and the normal name is an alias.  */
48643 #if defined __stub_socket || defined __stub___socket
48644 choke me
48645 #endif
48646
48647 int
48648 main ()
48649 {
48650 return socket ();
48651   ;
48652   return 0;
48653 }
48654 _ACEOF
48655 rm -f conftest.$ac_objext conftest$ac_exeext
48656 if { (ac_try="$ac_link"
48657 case "(($ac_try" in
48658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48659   *) ac_try_echo=$ac_try;;
48660 esac
48661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48662   (eval "$ac_link") 2>conftest.er1
48663   ac_status=$?
48664   grep -v '^ *+' conftest.er1 >conftest.err
48665   rm -f conftest.er1
48666   cat conftest.err >&5
48667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48668   (exit $ac_status); } && {
48669          test -z "$ac_c_werror_flag" ||
48670          test ! -s conftest.err
48671        } && test -s conftest$ac_exeext &&
48672        $as_test_x conftest$ac_exeext; then
48673   ac_cv_func_socket=yes
48674 else
48675   echo "$as_me: failed program was:" >&5
48676 sed 's/^/| /' conftest.$ac_ext >&5
48677
48678         ac_cv_func_socket=no
48679 fi
48680
48681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48682       conftest$ac_exeext conftest.$ac_ext
48683 fi
48684 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
48685 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
48686 if test $ac_cv_func_socket = yes; then
48687   :
48688 else
48689
48690                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
48691 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
48692 if test "${ac_cv_lib_socket_socket+set}" = set; then
48693   echo $ECHO_N "(cached) $ECHO_C" >&6
48694 else
48695   ac_check_lib_save_LIBS=$LIBS
48696 LIBS="-lsocket  $LIBS"
48697 cat >conftest.$ac_ext <<_ACEOF
48698 /* confdefs.h.  */
48699 _ACEOF
48700 cat confdefs.h >>conftest.$ac_ext
48701 cat >>conftest.$ac_ext <<_ACEOF
48702 /* end confdefs.h.  */
48703
48704 /* Override any GCC internal prototype to avoid an error.
48705    Use char because int might match the return type of a GCC
48706    builtin and then its argument prototype would still apply.  */
48707 #ifdef __cplusplus
48708 extern "C"
48709 #endif
48710 char socket ();
48711 int
48712 main ()
48713 {
48714 return socket ();
48715   ;
48716   return 0;
48717 }
48718 _ACEOF
48719 rm -f conftest.$ac_objext conftest$ac_exeext
48720 if { (ac_try="$ac_link"
48721 case "(($ac_try" in
48722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48723   *) ac_try_echo=$ac_try;;
48724 esac
48725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48726   (eval "$ac_link") 2>conftest.er1
48727   ac_status=$?
48728   grep -v '^ *+' conftest.er1 >conftest.err
48729   rm -f conftest.er1
48730   cat conftest.err >&5
48731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48732   (exit $ac_status); } && {
48733          test -z "$ac_c_werror_flag" ||
48734          test ! -s conftest.err
48735        } && test -s conftest$ac_exeext &&
48736        $as_test_x conftest$ac_exeext; then
48737   ac_cv_lib_socket_socket=yes
48738 else
48739   echo "$as_me: failed program was:" >&5
48740 sed 's/^/| /' conftest.$ac_ext >&5
48741
48742         ac_cv_lib_socket_socket=no
48743 fi
48744
48745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48746       conftest$ac_exeext conftest.$ac_ext
48747 LIBS=$ac_check_lib_save_LIBS
48748 fi
48749 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
48750 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
48751 if test $ac_cv_lib_socket_socket = yes; then
48752   if test "$INET_LINK" != " -lsocket"; then
48753                         INET_LINK="$INET_LINK -lsocket"
48754                     fi
48755 else
48756
48757                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
48758 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
48759                         wxUSE_SOCKETS=no
48760
48761
48762 fi
48763
48764
48765
48766 fi
48767
48768     fi
48769 fi
48770
48771 if test "$wxUSE_SOCKETS" = "yes" ; then
48772                 if test "$TOOLKIT" != "MSW"; then
48773                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
48774 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
48775 if test "${wx_cv_type_getsockname3+set}" = set; then
48776   echo $ECHO_N "(cached) $ECHO_C" >&6
48777 else
48778
48779                 ac_ext=cpp
48780 ac_cpp='$CXXCPP $CPPFLAGS'
48781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48784
48785                 cat >conftest.$ac_ext <<_ACEOF
48786 /* confdefs.h.  */
48787 _ACEOF
48788 cat confdefs.h >>conftest.$ac_ext
48789 cat >>conftest.$ac_ext <<_ACEOF
48790 /* end confdefs.h.  */
48791
48792                         #include <sys/types.h>
48793                         #include <sys/socket.h>
48794
48795 int
48796 main ()
48797 {
48798
48799                         socklen_t len;
48800                         getsockname(0, 0, &len);
48801
48802   ;
48803   return 0;
48804 }
48805 _ACEOF
48806 rm -f conftest.$ac_objext
48807 if { (ac_try="$ac_compile"
48808 case "(($ac_try" in
48809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48810   *) ac_try_echo=$ac_try;;
48811 esac
48812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48813   (eval "$ac_compile") 2>conftest.er1
48814   ac_status=$?
48815   grep -v '^ *+' conftest.er1 >conftest.err
48816   rm -f conftest.er1
48817   cat conftest.err >&5
48818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48819   (exit $ac_status); } && {
48820          test -z "$ac_cxx_werror_flag" ||
48821          test ! -s conftest.err
48822        } && test -s conftest.$ac_objext; then
48823   wx_cv_type_getsockname3=socklen_t
48824 else
48825   echo "$as_me: failed program was:" >&5
48826 sed 's/^/| /' conftest.$ac_ext >&5
48827
48828
48829                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
48830                         if test "$GCC" = yes ; then
48831                             CFLAGS="-Werror $CFLAGS"
48832                         fi
48833
48834                         cat >conftest.$ac_ext <<_ACEOF
48835 /* confdefs.h.  */
48836 _ACEOF
48837 cat confdefs.h >>conftest.$ac_ext
48838 cat >>conftest.$ac_ext <<_ACEOF
48839 /* end confdefs.h.  */
48840
48841                                 #include <sys/types.h>
48842                                 #include <sys/socket.h>
48843
48844 int
48845 main ()
48846 {
48847
48848                                 size_t len;
48849                                 getsockname(0, 0, &len);
48850
48851   ;
48852   return 0;
48853 }
48854 _ACEOF
48855 rm -f conftest.$ac_objext
48856 if { (ac_try="$ac_compile"
48857 case "(($ac_try" in
48858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48859   *) ac_try_echo=$ac_try;;
48860 esac
48861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48862   (eval "$ac_compile") 2>conftest.er1
48863   ac_status=$?
48864   grep -v '^ *+' conftest.er1 >conftest.err
48865   rm -f conftest.er1
48866   cat conftest.err >&5
48867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48868   (exit $ac_status); } && {
48869          test -z "$ac_cxx_werror_flag" ||
48870          test ! -s conftest.err
48871        } && test -s conftest.$ac_objext; then
48872   wx_cv_type_getsockname3=size_t
48873 else
48874   echo "$as_me: failed program was:" >&5
48875 sed 's/^/| /' conftest.$ac_ext >&5
48876
48877         cat >conftest.$ac_ext <<_ACEOF
48878 /* confdefs.h.  */
48879 _ACEOF
48880 cat confdefs.h >>conftest.$ac_ext
48881 cat >>conftest.$ac_ext <<_ACEOF
48882 /* end confdefs.h.  */
48883
48884                                     #include <sys/types.h>
48885                                     #include <sys/socket.h>
48886
48887 int
48888 main ()
48889 {
48890
48891                                     int len;
48892                                     getsockname(0, 0, &len);
48893
48894   ;
48895   return 0;
48896 }
48897 _ACEOF
48898 rm -f conftest.$ac_objext
48899 if { (ac_try="$ac_compile"
48900 case "(($ac_try" in
48901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48902   *) ac_try_echo=$ac_try;;
48903 esac
48904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48905   (eval "$ac_compile") 2>conftest.er1
48906   ac_status=$?
48907   grep -v '^ *+' conftest.er1 >conftest.err
48908   rm -f conftest.er1
48909   cat conftest.err >&5
48910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48911   (exit $ac_status); } && {
48912          test -z "$ac_cxx_werror_flag" ||
48913          test ! -s conftest.err
48914        } && test -s conftest.$ac_objext; then
48915   wx_cv_type_getsockname3=int
48916 else
48917   echo "$as_me: failed program was:" >&5
48918 sed 's/^/| /' conftest.$ac_ext >&5
48919
48920         wx_cv_type_getsockname3=unknown
48921
48922 fi
48923
48924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48925
48926 fi
48927
48928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48929
48930                         CFLAGS="$CFLAGS_OLD"
48931
48932
48933 fi
48934
48935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48936                 ac_ext=c
48937 ac_cpp='$CPP $CPPFLAGS'
48938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48941
48942
48943 fi
48944 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
48945 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
48946
48947         if test "$wx_cv_type_getsockname3" = "unknown"; then
48948             wxUSE_SOCKETS=no
48949             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
48950 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
48951         else
48952             cat >>confdefs.h <<_ACEOF
48953 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
48954 _ACEOF
48955
48956         fi
48957                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
48958 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
48959 if test "${wx_cv_type_getsockopt5+set}" = set; then
48960   echo $ECHO_N "(cached) $ECHO_C" >&6
48961 else
48962
48963                                                                                                 ac_ext=cpp
48964 ac_cpp='$CXXCPP $CPPFLAGS'
48965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48968
48969                 cat >conftest.$ac_ext <<_ACEOF
48970 /* confdefs.h.  */
48971 _ACEOF
48972 cat confdefs.h >>conftest.$ac_ext
48973 cat >>conftest.$ac_ext <<_ACEOF
48974 /* end confdefs.h.  */
48975
48976                         #include <sys/types.h>
48977                         #include <sys/socket.h>
48978
48979 int
48980 main ()
48981 {
48982
48983                         socklen_t len;
48984                         getsockopt(0, 0, 0, 0, &len);
48985
48986   ;
48987   return 0;
48988 }
48989 _ACEOF
48990 rm -f conftest.$ac_objext
48991 if { (ac_try="$ac_compile"
48992 case "(($ac_try" in
48993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48994   *) ac_try_echo=$ac_try;;
48995 esac
48996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48997   (eval "$ac_compile") 2>conftest.er1
48998   ac_status=$?
48999   grep -v '^ *+' conftest.er1 >conftest.err
49000   rm -f conftest.er1
49001   cat conftest.err >&5
49002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49003   (exit $ac_status); } && {
49004          test -z "$ac_cxx_werror_flag" ||
49005          test ! -s conftest.err
49006        } && test -s conftest.$ac_objext; then
49007   wx_cv_type_getsockopt5=socklen_t
49008 else
49009   echo "$as_me: failed program was:" >&5
49010 sed 's/^/| /' conftest.$ac_ext >&5
49011
49012
49013                         cat >conftest.$ac_ext <<_ACEOF
49014 /* confdefs.h.  */
49015 _ACEOF
49016 cat confdefs.h >>conftest.$ac_ext
49017 cat >>conftest.$ac_ext <<_ACEOF
49018 /* end confdefs.h.  */
49019
49020                                 #include <sys/types.h>
49021                                 #include <sys/socket.h>
49022
49023 int
49024 main ()
49025 {
49026
49027                                 size_t len;
49028                                 getsockopt(0, 0, 0, 0, &len);
49029
49030   ;
49031   return 0;
49032 }
49033 _ACEOF
49034 rm -f conftest.$ac_objext
49035 if { (ac_try="$ac_compile"
49036 case "(($ac_try" in
49037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49038   *) ac_try_echo=$ac_try;;
49039 esac
49040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49041   (eval "$ac_compile") 2>conftest.er1
49042   ac_status=$?
49043   grep -v '^ *+' conftest.er1 >conftest.err
49044   rm -f conftest.er1
49045   cat conftest.err >&5
49046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49047   (exit $ac_status); } && {
49048          test -z "$ac_cxx_werror_flag" ||
49049          test ! -s conftest.err
49050        } && test -s conftest.$ac_objext; then
49051   wx_cv_type_getsockopt5=size_t
49052 else
49053   echo "$as_me: failed program was:" >&5
49054 sed 's/^/| /' conftest.$ac_ext >&5
49055
49056         cat >conftest.$ac_ext <<_ACEOF
49057 /* confdefs.h.  */
49058 _ACEOF
49059 cat confdefs.h >>conftest.$ac_ext
49060 cat >>conftest.$ac_ext <<_ACEOF
49061 /* end confdefs.h.  */
49062
49063                                     #include <sys/types.h>
49064                                     #include <sys/socket.h>
49065
49066 int
49067 main ()
49068 {
49069
49070                                     int len;
49071                                     getsockopt(0, 0, 0, 0, &len);
49072
49073   ;
49074   return 0;
49075 }
49076 _ACEOF
49077 rm -f conftest.$ac_objext
49078 if { (ac_try="$ac_compile"
49079 case "(($ac_try" in
49080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49081   *) ac_try_echo=$ac_try;;
49082 esac
49083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49084   (eval "$ac_compile") 2>conftest.er1
49085   ac_status=$?
49086   grep -v '^ *+' conftest.er1 >conftest.err
49087   rm -f conftest.er1
49088   cat conftest.err >&5
49089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49090   (exit $ac_status); } && {
49091          test -z "$ac_cxx_werror_flag" ||
49092          test ! -s conftest.err
49093        } && test -s conftest.$ac_objext; then
49094   wx_cv_type_getsockopt5=int
49095 else
49096   echo "$as_me: failed program was:" >&5
49097 sed 's/^/| /' conftest.$ac_ext >&5
49098
49099         wx_cv_type_getsockopt5=unknown
49100
49101 fi
49102
49103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49104
49105 fi
49106
49107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49108
49109
49110 fi
49111
49112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49113                 ac_ext=c
49114 ac_cpp='$CPP $CPPFLAGS'
49115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49118
49119
49120 fi
49121 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
49122 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
49123
49124         if test "$wx_cv_type_getsockopt5" = "unknown"; then
49125             wxUSE_SOCKETS=no
49126             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
49127 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
49128         else
49129             cat >>confdefs.h <<_ACEOF
49130 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
49131 _ACEOF
49132
49133         fi
49134     fi
49135 fi
49136
49137 if test "$wxUSE_SOCKETS" = "yes" ; then
49138     if test "$wxUSE_IPV6" = "yes"; then
49139         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
49140 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
49141 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
49142   echo $ECHO_N "(cached) $ECHO_C" >&6
49143 else
49144
49145                 cat >conftest.$ac_ext <<_ACEOF
49146 /* confdefs.h.  */
49147 _ACEOF
49148 cat confdefs.h >>conftest.$ac_ext
49149 cat >>conftest.$ac_ext <<_ACEOF
49150 /* end confdefs.h.  */
49151
49152                         #include <sys/types.h>
49153                         #include <sys/socket.h>
49154                         #include <netinet/in.h>
49155
49156 int
49157 main ()
49158 {
49159
49160                         struct sockaddr_in6 sa6;
49161
49162   ;
49163   return 0;
49164 }
49165 _ACEOF
49166 rm -f conftest.$ac_objext
49167 if { (ac_try="$ac_compile"
49168 case "(($ac_try" in
49169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49170   *) ac_try_echo=$ac_try;;
49171 esac
49172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49173   (eval "$ac_compile") 2>conftest.er1
49174   ac_status=$?
49175   grep -v '^ *+' conftest.er1 >conftest.err
49176   rm -f conftest.er1
49177   cat conftest.err >&5
49178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49179   (exit $ac_status); } && {
49180          test -z "$ac_c_werror_flag" ||
49181          test ! -s conftest.err
49182        } && test -s conftest.$ac_objext; then
49183   wx_cv_type_sockaddr_in6=yes
49184 else
49185   echo "$as_me: failed program was:" >&5
49186 sed 's/^/| /' conftest.$ac_ext >&5
49187
49188         wx_cv_type_sockaddr_in6=no
49189
49190 fi
49191
49192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49193
49194
49195 fi
49196 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
49197 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
49198
49199         if test "$wx_cv_type_sockaddr_in6"="yes"; then
49200             cat >>confdefs.h <<\_ACEOF
49201 #define wxUSE_IPV6 1
49202 _ACEOF
49203
49204         else
49205             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
49206 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
49207         fi
49208     fi
49209
49210     cat >>confdefs.h <<\_ACEOF
49211 #define wxUSE_SOCKETS 1
49212 _ACEOF
49213
49214     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49215 fi
49216
49217 if test "$wxUSE_PROTOCOL" = "yes"; then
49218     if test "$wxUSE_SOCKETS" != "yes"; then
49219         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
49220 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
49221         wxUSE_PROTOCOL=no
49222     fi
49223 fi
49224
49225 if test "$wxUSE_PROTOCOL" = "yes"; then
49226     cat >>confdefs.h <<\_ACEOF
49227 #define wxUSE_PROTOCOL 1
49228 _ACEOF
49229
49230
49231     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
49232         cat >>confdefs.h <<\_ACEOF
49233 #define wxUSE_PROTOCOL_HTTP 1
49234 _ACEOF
49235
49236     fi
49237     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
49238         cat >>confdefs.h <<\_ACEOF
49239 #define wxUSE_PROTOCOL_FTP 1
49240 _ACEOF
49241
49242     fi
49243     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
49244         cat >>confdefs.h <<\_ACEOF
49245 #define wxUSE_PROTOCOL_FILE 1
49246 _ACEOF
49247
49248     fi
49249 else
49250     if test "$wxUSE_FS_INET" = "yes"; then
49251         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
49252 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
49253         wxUSE_FS_INET="no"
49254     fi
49255 fi
49256
49257 if test "$wxUSE_URL" = "yes"; then
49258     if test "$wxUSE_PROTOCOL" != "yes"; then
49259         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
49260 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
49261         wxUSE_URL=no
49262     fi
49263     if test "$wxUSE_URL" = "yes"; then
49264         cat >>confdefs.h <<\_ACEOF
49265 #define wxUSE_URL 1
49266 _ACEOF
49267
49268     fi
49269 fi
49270
49271 if test "$wxUSE_VARIANT" = "yes"; then
49272     cat >>confdefs.h <<\_ACEOF
49273 #define wxUSE_VARIANT 1
49274 _ACEOF
49275
49276 fi
49277
49278 if test "$wxUSE_FS_INET" = "yes"; then
49279   cat >>confdefs.h <<\_ACEOF
49280 #define wxUSE_FS_INET 1
49281 _ACEOF
49282
49283 fi
49284
49285
49286 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
49287     wxUSE_JOYSTICK=no
49288
49289         if test "$TOOLKIT" = "MSW"; then
49290         wxUSE_JOYSTICK=yes
49291
49292         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
49293         if test "$USE_DARWIN" = 1; then
49294                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
49295 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
49296             ac_ext=cpp
49297 ac_cpp='$CXXCPP $CPPFLAGS'
49298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49301
49302             cat >conftest.$ac_ext <<_ACEOF
49303 /* confdefs.h.  */
49304 _ACEOF
49305 cat confdefs.h >>conftest.$ac_ext
49306 cat >>conftest.$ac_ext <<_ACEOF
49307 /* end confdefs.h.  */
49308  #include <IOKit/hid/IOHIDLib.h>
49309 int
49310 main ()
49311 {
49312  IOHIDQueueInterface *qi = NULL;
49313                               IOHIDCallbackFunction cb = NULL;
49314                               qi->setEventCallout(NULL, cb, NULL, NULL);
49315   ;
49316   return 0;
49317 }
49318 _ACEOF
49319 rm -f conftest.$ac_objext
49320 if { (ac_try="$ac_compile"
49321 case "(($ac_try" in
49322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49323   *) ac_try_echo=$ac_try;;
49324 esac
49325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49326   (eval "$ac_compile") 2>conftest.er1
49327   ac_status=$?
49328   grep -v '^ *+' conftest.er1 >conftest.err
49329   rm -f conftest.er1
49330   cat conftest.err >&5
49331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49332   (exit $ac_status); } && {
49333          test -z "$ac_cxx_werror_flag" ||
49334          test ! -s conftest.err
49335        } && test -s conftest.$ac_objext; then
49336    wxUSE_JOYSTICK=yes
49337
49338 else
49339   echo "$as_me: failed program was:" >&5
49340 sed 's/^/| /' conftest.$ac_ext >&5
49341
49342
49343 fi
49344
49345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49346             ac_ext=c
49347 ac_cpp='$CPP $CPPFLAGS'
49348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49351
49352             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
49353 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
49354         fi
49355
49356         else
49357                 if test "$wxUSE_MGL" != 1; then
49358
49359 for ac_header in linux/joystick.h
49360 do
49361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
49363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49365   echo $ECHO_N "(cached) $ECHO_C" >&6
49366 else
49367   cat >conftest.$ac_ext <<_ACEOF
49368 /* confdefs.h.  */
49369 _ACEOF
49370 cat confdefs.h >>conftest.$ac_ext
49371 cat >>conftest.$ac_ext <<_ACEOF
49372 /* end confdefs.h.  */
49373 $ac_includes_default
49374
49375 #include <$ac_header>
49376 _ACEOF
49377 rm -f conftest.$ac_objext
49378 if { (ac_try="$ac_compile"
49379 case "(($ac_try" in
49380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49381   *) ac_try_echo=$ac_try;;
49382 esac
49383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49384   (eval "$ac_compile") 2>conftest.er1
49385   ac_status=$?
49386   grep -v '^ *+' conftest.er1 >conftest.err
49387   rm -f conftest.er1
49388   cat conftest.err >&5
49389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49390   (exit $ac_status); } && {
49391          test -z "$ac_c_werror_flag" ||
49392          test ! -s conftest.err
49393        } && test -s conftest.$ac_objext; then
49394   eval "$as_ac_Header=yes"
49395 else
49396   echo "$as_me: failed program was:" >&5
49397 sed 's/^/| /' conftest.$ac_ext >&5
49398
49399         eval "$as_ac_Header=no"
49400 fi
49401
49402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49403 fi
49404 ac_res=`eval echo '${'$as_ac_Header'}'`
49405                { echo "$as_me:$LINENO: result: $ac_res" >&5
49406 echo "${ECHO_T}$ac_res" >&6; }
49407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49408   cat >>confdefs.h <<_ACEOF
49409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49410 _ACEOF
49411  wxUSE_JOYSTICK=yes
49412 fi
49413
49414 done
49415
49416         fi
49417     fi
49418
49419     if test "$wxUSE_JOYSTICK" = "yes"; then
49420         cat >>confdefs.h <<\_ACEOF
49421 #define wxUSE_JOYSTICK 1
49422 _ACEOF
49423
49424         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
49425     else
49426         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
49427 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
49428     fi
49429 fi
49430
49431
49432
49433 if test "$wxUSE_FONTENUM" = "yes" ; then
49434   cat >>confdefs.h <<\_ACEOF
49435 #define wxUSE_FONTENUM 1
49436 _ACEOF
49437
49438 fi
49439
49440 if test "$wxUSE_FONTMAP" = "yes" ; then
49441   cat >>confdefs.h <<\_ACEOF
49442 #define wxUSE_FONTMAP 1
49443 _ACEOF
49444
49445 fi
49446
49447 if test "$wxUSE_UNICODE" = "yes" ; then
49448   cat >>confdefs.h <<\_ACEOF
49449 #define wxUSE_UNICODE 1
49450 _ACEOF
49451
49452
49453   if test "$USE_WIN32" != 1; then
49454       wxUSE_UNICODE_MSLU=no
49455   fi
49456
49457   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
49458         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
49459 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
49460 if test "${ac_cv_lib_unicows_main+set}" = set; then
49461   echo $ECHO_N "(cached) $ECHO_C" >&6
49462 else
49463   ac_check_lib_save_LIBS=$LIBS
49464 LIBS="-lunicows  $LIBS"
49465 cat >conftest.$ac_ext <<_ACEOF
49466 /* confdefs.h.  */
49467 _ACEOF
49468 cat confdefs.h >>conftest.$ac_ext
49469 cat >>conftest.$ac_ext <<_ACEOF
49470 /* end confdefs.h.  */
49471
49472
49473 int
49474 main ()
49475 {
49476 return main ();
49477   ;
49478   return 0;
49479 }
49480 _ACEOF
49481 rm -f conftest.$ac_objext conftest$ac_exeext
49482 if { (ac_try="$ac_link"
49483 case "(($ac_try" in
49484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49485   *) ac_try_echo=$ac_try;;
49486 esac
49487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49488   (eval "$ac_link") 2>conftest.er1
49489   ac_status=$?
49490   grep -v '^ *+' conftest.er1 >conftest.err
49491   rm -f conftest.er1
49492   cat conftest.err >&5
49493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49494   (exit $ac_status); } && {
49495          test -z "$ac_c_werror_flag" ||
49496          test ! -s conftest.err
49497        } && test -s conftest$ac_exeext &&
49498        $as_test_x conftest$ac_exeext; then
49499   ac_cv_lib_unicows_main=yes
49500 else
49501   echo "$as_me: failed program was:" >&5
49502 sed 's/^/| /' conftest.$ac_ext >&5
49503
49504         ac_cv_lib_unicows_main=no
49505 fi
49506
49507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49508       conftest$ac_exeext conftest.$ac_ext
49509 LIBS=$ac_check_lib_save_LIBS
49510 fi
49511 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
49512 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
49513 if test $ac_cv_lib_unicows_main = yes; then
49514
49515                 cat >>confdefs.h <<\_ACEOF
49516 #define wxUSE_UNICODE_MSLU 1
49517 _ACEOF
49518
49519
49520 else
49521
49522                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
49523                              Applications will only run on Windows NT/2000/XP!" >&5
49524 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
49525                              Applications will only run on Windows NT/2000/XP!" >&2;}
49526                 wxUSE_UNICODE_MSLU=no
49527
49528 fi
49529
49530     fi
49531 fi
49532
49533 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
49534     cat >>confdefs.h <<\_ACEOF
49535 #define wxUSE_UNICODE_UTF8 1
49536 _ACEOF
49537
49538
49539     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
49540         cat >>confdefs.h <<\_ACEOF
49541 #define wxUSE_UTF8_LOCALE_ONLY 1
49542 _ACEOF
49543
49544     fi
49545 fi
49546
49547
49548 if test "$wxUSE_CONSTRAINTS" = "yes"; then
49549     cat >>confdefs.h <<\_ACEOF
49550 #define wxUSE_CONSTRAINTS 1
49551 _ACEOF
49552
49553     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
49554 fi
49555
49556 if test "$wxUSE_MDI" = "yes"; then
49557     cat >>confdefs.h <<\_ACEOF
49558 #define wxUSE_MDI 1
49559 _ACEOF
49560
49561
49562     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
49563         cat >>confdefs.h <<\_ACEOF
49564 #define wxUSE_MDI_ARCHITECTURE 1
49565 _ACEOF
49566
49567         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
49568     fi
49569 fi
49570
49571 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
49572     cat >>confdefs.h <<\_ACEOF
49573 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
49574 _ACEOF
49575
49576     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
49577 fi
49578
49579 if test "$wxUSE_HELP" = "yes"; then
49580     cat >>confdefs.h <<\_ACEOF
49581 #define wxUSE_HELP 1
49582 _ACEOF
49583
49584     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
49585
49586     if test "$wxUSE_MSW" = 1; then
49587       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
49588         cat >>confdefs.h <<\_ACEOF
49589 #define wxUSE_MS_HTML_HELP 1
49590 _ACEOF
49591
49592       fi
49593     fi
49594
49595     if test "$wxUSE_WXHTML_HELP" = "yes"; then
49596       if test "$wxUSE_HTML" = "yes"; then
49597         cat >>confdefs.h <<\_ACEOF
49598 #define wxUSE_WXHTML_HELP 1
49599 _ACEOF
49600
49601       else
49602         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
49603 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
49604         wxUSE_WXHTML_HELP=no
49605       fi
49606     fi
49607 fi
49608
49609 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
49610     cat >>confdefs.h <<\_ACEOF
49611 #define wxUSE_PRINTING_ARCHITECTURE 1
49612 _ACEOF
49613
49614     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
49615 fi
49616
49617 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
49618   cat >>confdefs.h <<\_ACEOF
49619 #define wxUSE_POSTSCRIPT 1
49620 _ACEOF
49621
49622 fi
49623
49624 cat >>confdefs.h <<\_ACEOF
49625 #define wxUSE_AFM_FOR_POSTSCRIPT 1
49626 _ACEOF
49627
49628
49629 if test "$wxUSE_SVG" = "yes"; then
49630     cat >>confdefs.h <<\_ACEOF
49631 #define wxUSE_SVG 1
49632 _ACEOF
49633
49634 fi
49635
49636
49637 if test "$wxUSE_METAFILE" = "yes"; then
49638     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
49639         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
49640 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
49641         wxUSE_METAFILE=no
49642     fi
49643 elif test "$wxUSE_METAFILE" = "auto"; then
49644     if test "$wxUSE_MSW" = 1 -o "$wxUSE_MAC" = 1 -o "$wxUSE_PM" = 1; then
49645         wxUSE_METAFILE=yes
49646     fi
49647 fi
49648
49649 if test "$wxUSE_METAFILE" = "yes"; then
49650     cat >>confdefs.h <<\_ACEOF
49651 #define wxUSE_METAFILE 1
49652 _ACEOF
49653
49654     if test "$wxUSE_MSW" = 1; then
49655                 cat >>confdefs.h <<\_ACEOF
49656 #define wxUSE_ENH_METAFILE 1
49657 _ACEOF
49658
49659     fi
49660 fi
49661
49662
49663 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
49664                           -o "$wxUSE_CLIPBOARD"     = "yes" \
49665                           -o "$wxUSE_OLE"     = "yes" \
49666                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
49667     { echo "$as_me:$LINENO: checking for ole2.h" >&5
49668 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
49669 if test "${ac_cv_header_ole2_h+set}" = set; then
49670   echo $ECHO_N "(cached) $ECHO_C" >&6
49671 else
49672   cat >conftest.$ac_ext <<_ACEOF
49673 /* confdefs.h.  */
49674 _ACEOF
49675 cat confdefs.h >>conftest.$ac_ext
49676 cat >>conftest.$ac_ext <<_ACEOF
49677 /* end confdefs.h.  */
49678
49679
49680 #include <ole2.h>
49681 _ACEOF
49682 rm -f conftest.$ac_objext
49683 if { (ac_try="$ac_compile"
49684 case "(($ac_try" in
49685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49686   *) ac_try_echo=$ac_try;;
49687 esac
49688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49689   (eval "$ac_compile") 2>conftest.er1
49690   ac_status=$?
49691   grep -v '^ *+' conftest.er1 >conftest.err
49692   rm -f conftest.er1
49693   cat conftest.err >&5
49694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49695   (exit $ac_status); } && {
49696          test -z "$ac_c_werror_flag" ||
49697          test ! -s conftest.err
49698        } && test -s conftest.$ac_objext; then
49699   ac_cv_header_ole2_h=yes
49700 else
49701   echo "$as_me: failed program was:" >&5
49702 sed 's/^/| /' conftest.$ac_ext >&5
49703
49704         ac_cv_header_ole2_h=no
49705 fi
49706
49707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49708 fi
49709 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
49710 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
49711
49712
49713
49714     if test "$ac_cv_header_ole2_h" = "yes" ; then
49715         if test "$GCC" = yes ; then
49716             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
49717 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
49718             cat >conftest.$ac_ext <<_ACEOF
49719 /* confdefs.h.  */
49720 _ACEOF
49721 cat confdefs.h >>conftest.$ac_ext
49722 cat >>conftest.$ac_ext <<_ACEOF
49723 /* end confdefs.h.  */
49724 #include <windows.h>
49725                             #include <ole2.h>
49726 int
49727 main ()
49728 {
49729
49730   ;
49731   return 0;
49732 }
49733 _ACEOF
49734 rm -f conftest.$ac_objext
49735 if { (ac_try="$ac_compile"
49736 case "(($ac_try" in
49737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49738   *) ac_try_echo=$ac_try;;
49739 esac
49740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49741   (eval "$ac_compile") 2>conftest.er1
49742   ac_status=$?
49743   grep -v '^ *+' conftest.er1 >conftest.err
49744   rm -f conftest.er1
49745   cat conftest.err >&5
49746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49747   (exit $ac_status); } && {
49748          test -z "$ac_c_werror_flag" ||
49749          test ! -s conftest.err
49750        } && test -s conftest.$ac_objext; then
49751   { echo "$as_me:$LINENO: result: no" >&5
49752 echo "${ECHO_T}no" >&6; }
49753 else
49754   echo "$as_me: failed program was:" >&5
49755 sed 's/^/| /' conftest.$ac_ext >&5
49756
49757         { echo "$as_me:$LINENO: result: yes" >&5
49758 echo "${ECHO_T}yes" >&6; }
49759                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
49760 fi
49761
49762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49763             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
49764             if test "$wxUSE_OLE" = "yes" ; then
49765                 cat >>confdefs.h <<\_ACEOF
49766 #define wxUSE_OLE 1
49767 _ACEOF
49768
49769                 cat >>confdefs.h <<\_ACEOF
49770 #define wxUSE_OLE_AUTOMATION 1
49771 _ACEOF
49772
49773                 cat >>confdefs.h <<\_ACEOF
49774 #define wxUSE_ACTIVEX 1
49775 _ACEOF
49776
49777                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
49778             fi
49779         fi
49780
49781                 if test "$wxUSE_DATAOBJ" = "yes" ; then
49782             cat >>confdefs.h <<\_ACEOF
49783 #define wxUSE_DATAOBJ 1
49784 _ACEOF
49785
49786         fi
49787     else
49788         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
49789 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
49790
49791         wxUSE_CLIPBOARD=no
49792         wxUSE_DRAG_AND_DROP=no
49793         wxUSE_DATAOBJ=no
49794         wxUSE_OLE=no
49795     fi
49796 fi
49797
49798 if test "$wxUSE_IPC" = "yes"; then
49799     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
49800         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
49801 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
49802         wxUSE_IPC=no
49803     fi
49804
49805     if test "$wxUSE_IPC" = "yes"; then
49806         cat >>confdefs.h <<\_ACEOF
49807 #define wxUSE_IPC 1
49808 _ACEOF
49809
49810         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49811     fi
49812 fi
49813
49814 if test "$wxUSE_DATAOBJ" = "yes"; then
49815     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
49816         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
49817 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
49818         wxUSE_DATAOBJ=no
49819     else
49820         cat >>confdefs.h <<\_ACEOF
49821 #define wxUSE_DATAOBJ 1
49822 _ACEOF
49823
49824     fi
49825 else
49826     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
49827 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
49828     wxUSE_CLIPBOARD=no
49829     wxUSE_DRAG_AND_DROP=no
49830 fi
49831
49832 if test "$wxUSE_CLIPBOARD" = "yes"; then
49833     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
49834         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
49835 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
49836         wxUSE_CLIPBOARD=no
49837     fi
49838
49839     if test "$wxUSE_CLIPBOARD" = "yes"; then
49840         cat >>confdefs.h <<\_ACEOF
49841 #define wxUSE_CLIPBOARD 1
49842 _ACEOF
49843
49844     fi
49845 fi
49846
49847 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
49848     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
49849             "$wxUSE_DFB" = 1; then
49850         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
49851 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
49852         wxUSE_DRAG_AND_DROP=no
49853     fi
49854
49855     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
49856         cat >>confdefs.h <<\_ACEOF
49857 #define wxUSE_DRAG_AND_DROP 1
49858 _ACEOF
49859
49860     fi
49861
49862 fi
49863
49864 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
49865     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
49866 fi
49867
49868 if test "$wxUSE_CLIPBOARD" = "yes"; then
49869     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
49870 fi
49871
49872 if test "$wxUSE_SPLINES" = "yes" ; then
49873   cat >>confdefs.h <<\_ACEOF
49874 #define wxUSE_SPLINES 1
49875 _ACEOF
49876
49877 fi
49878
49879 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
49880   cat >>confdefs.h <<\_ACEOF
49881 #define wxUSE_MOUSEWHEEL 1
49882 _ACEOF
49883
49884 fi
49885
49886 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
49887     cat >>confdefs.h <<\_ACEOF
49888 #define wxUSE_UIACTIONSIMULATOR 1
49889 _ACEOF
49890
49891     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
49892 fi
49893
49894 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
49895     cat >>confdefs.h <<\_ACEOF
49896 #define wxUSE_DC_TRANSFORM_MATRIX 1
49897 _ACEOF
49898
49899 fi
49900
49901
49902 USES_CONTROLS=0
49903 if test "$wxUSE_CONTROLS" = "yes"; then
49904   USES_CONTROLS=1
49905 fi
49906
49907 if test "$wxUSE_MARKUP" = "yes"; then
49908   cat >>confdefs.h <<\_ACEOF
49909 #define wxUSE_MARKUP 1
49910 _ACEOF
49911
49912 fi
49913
49914 if test "$wxUSE_ACCEL" = "yes"; then
49915   cat >>confdefs.h <<\_ACEOF
49916 #define wxUSE_ACCEL 1
49917 _ACEOF
49918
49919   USES_CONTROLS=1
49920 fi
49921
49922 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
49923   cat >>confdefs.h <<\_ACEOF
49924 #define wxUSE_ANIMATIONCTRL 1
49925 _ACEOF
49926
49927   USES_CONTROLS=1
49928   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
49929 fi
49930
49931 if test "$wxUSE_BANNERWINDOW" = "yes"; then
49932   cat >>confdefs.h <<\_ACEOF
49933 #define wxUSE_BANNERWINDOW 1
49934 _ACEOF
49935
49936 fi
49937
49938 if test "$wxUSE_BUTTON" = "yes"; then
49939   cat >>confdefs.h <<\_ACEOF
49940 #define wxUSE_BUTTON 1
49941 _ACEOF
49942
49943   USES_CONTROLS=1
49944 fi
49945
49946 if test "$wxUSE_BMPBUTTON" = "yes"; then
49947   cat >>confdefs.h <<\_ACEOF
49948 #define wxUSE_BMPBUTTON 1
49949 _ACEOF
49950
49951   USES_CONTROLS=1
49952 fi
49953
49954 if test "$wxUSE_CALCTRL" = "yes"; then
49955   cat >>confdefs.h <<\_ACEOF
49956 #define wxUSE_CALENDARCTRL 1
49957 _ACEOF
49958
49959   USES_CONTROLS=1
49960   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
49961 fi
49962
49963 if test "$wxUSE_CARET" = "yes"; then
49964   cat >>confdefs.h <<\_ACEOF
49965 #define wxUSE_CARET 1
49966 _ACEOF
49967
49968   USES_CONTROLS=1
49969   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
49970 fi
49971
49972 if test "$wxUSE_COLLPANE" = "yes"; then
49973     cat >>confdefs.h <<\_ACEOF
49974 #define wxUSE_COLLPANE 1
49975 _ACEOF
49976
49977     USES_CONTROLS=1
49978     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
49979 fi
49980
49981 if test "$wxUSE_COMBOBOX" = "yes"; then
49982   cat >>confdefs.h <<\_ACEOF
49983 #define wxUSE_COMBOBOX 1
49984 _ACEOF
49985
49986   USES_CONTROLS=1
49987 fi
49988
49989 if test "$wxUSE_COMBOCTRL" = "yes"; then
49990   cat >>confdefs.h <<\_ACEOF
49991 #define wxUSE_COMBOCTRL 1
49992 _ACEOF
49993
49994   USES_CONTROLS=1
49995 fi
49996
49997 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
49998   cat >>confdefs.h <<\_ACEOF
49999 #define wxUSE_COMMANDLINKBUTTON 1
50000 _ACEOF
50001
50002   USES_CONTROLS=1
50003 fi
50004
50005 if test "$wxUSE_CHOICE" = "yes"; then
50006   cat >>confdefs.h <<\_ACEOF
50007 #define wxUSE_CHOICE 1
50008 _ACEOF
50009
50010   USES_CONTROLS=1
50011 fi
50012
50013 if test "$wxUSE_CHOICEBOOK" = "yes"; then
50014     cat >>confdefs.h <<\_ACEOF
50015 #define wxUSE_CHOICEBOOK 1
50016 _ACEOF
50017
50018     USES_CONTROLS=1
50019 fi
50020
50021 if test "$wxUSE_CHECKBOX" = "yes"; then
50022   cat >>confdefs.h <<\_ACEOF
50023 #define wxUSE_CHECKBOX 1
50024 _ACEOF
50025
50026   USES_CONTROLS=1
50027 fi
50028
50029 if test "$wxUSE_CHECKLST" = "yes"; then
50030   cat >>confdefs.h <<\_ACEOF
50031 #define wxUSE_CHECKLISTBOX 1
50032 _ACEOF
50033
50034   USES_CONTROLS=1
50035 fi
50036
50037 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
50038   cat >>confdefs.h <<\_ACEOF
50039 #define wxUSE_COLOURPICKERCTRL 1
50040 _ACEOF
50041
50042   USES_CONTROLS=1
50043 fi
50044
50045 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
50046   cat >>confdefs.h <<\_ACEOF
50047 #define wxUSE_DATEPICKCTRL 1
50048 _ACEOF
50049
50050   USES_CONTROLS=1
50051 fi
50052
50053 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
50054   cat >>confdefs.h <<\_ACEOF
50055 #define wxUSE_DIRPICKERCTRL 1
50056 _ACEOF
50057
50058   USES_CONTROLS=1
50059 fi
50060
50061 if test "$wxUSE_FILECTRL" = "yes"; then
50062   cat >>confdefs.h <<\_ACEOF
50063 #define wxUSE_FILECTRL 1
50064 _ACEOF
50065
50066   USES_CONTROLS=1
50067 fi
50068
50069 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
50070   cat >>confdefs.h <<\_ACEOF
50071 #define wxUSE_FILEPICKERCTRL 1
50072 _ACEOF
50073
50074   USES_CONTROLS=1
50075 fi
50076
50077 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
50078   cat >>confdefs.h <<\_ACEOF
50079 #define wxUSE_FONTPICKERCTRL 1
50080 _ACEOF
50081
50082   USES_CONTROLS=1
50083 fi
50084
50085 if test "$wxUSE_DISPLAY" = "yes"; then
50086     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
50087         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
50088 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
50089         wxUSE_DISPLAY=no
50090     else
50091         cat >>confdefs.h <<\_ACEOF
50092 #define wxUSE_DISPLAY 1
50093 _ACEOF
50094
50095         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
50096     fi
50097 fi
50098
50099 if test "$wxUSE_DETECT_SM" = "yes"; then
50100     cat >>confdefs.h <<\_ACEOF
50101 #define wxUSE_DETECT_SM 1
50102 _ACEOF
50103
50104 fi
50105
50106 if test "$wxUSE_GAUGE" = "yes"; then
50107   cat >>confdefs.h <<\_ACEOF
50108 #define wxUSE_GAUGE 1
50109 _ACEOF
50110
50111   USES_CONTROLS=1
50112 fi
50113
50114 if test "$wxUSE_GRID" = "yes"; then
50115   cat >>confdefs.h <<\_ACEOF
50116 #define wxUSE_GRID 1
50117 _ACEOF
50118
50119   USES_CONTROLS=1
50120   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
50121 fi
50122
50123 if test "$wxUSE_HEADERCTRL" = "yes"; then
50124   cat >>confdefs.h <<\_ACEOF
50125 #define wxUSE_HEADERCTRL 1
50126 _ACEOF
50127
50128   USES_CONTROLS=1
50129 fi
50130
50131 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
50132   cat >>confdefs.h <<\_ACEOF
50133 #define wxUSE_HYPERLINKCTRL 1
50134 _ACEOF
50135
50136   USES_CONTROLS=1
50137 fi
50138
50139 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
50140   cat >>confdefs.h <<\_ACEOF
50141 #define wxUSE_BITMAPCOMBOBOX 1
50142 _ACEOF
50143
50144   USES_CONTROLS=1
50145 fi
50146
50147 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
50148   cat >>confdefs.h <<\_ACEOF
50149 #define wxUSE_DATAVIEWCTRL 1
50150 _ACEOF
50151
50152   USES_CONTROLS=1
50153   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
50154 fi
50155
50156 if test "$wxUSE_IMAGLIST" = "yes"; then
50157     cat >>confdefs.h <<\_ACEOF
50158 #define wxUSE_IMAGLIST 1
50159 _ACEOF
50160
50161 fi
50162
50163 if test "$wxUSE_INFOBAR" = "yes"; then
50164     cat >>confdefs.h <<\_ACEOF
50165 #define wxUSE_INFOBAR 1
50166 _ACEOF
50167
50168 fi
50169
50170 if test "$wxUSE_LISTBOOK" = "yes"; then
50171     cat >>confdefs.h <<\_ACEOF
50172 #define wxUSE_LISTBOOK 1
50173 _ACEOF
50174
50175     USES_CONTROLS=1
50176 fi
50177
50178 if test "$wxUSE_LISTBOX" = "yes"; then
50179     cat >>confdefs.h <<\_ACEOF
50180 #define wxUSE_LISTBOX 1
50181 _ACEOF
50182
50183     USES_CONTROLS=1
50184 fi
50185
50186 if test "$wxUSE_LISTCTRL" = "yes"; then
50187     if test "$wxUSE_IMAGLIST" = "yes"; then
50188         cat >>confdefs.h <<\_ACEOF
50189 #define wxUSE_LISTCTRL 1
50190 _ACEOF
50191
50192         USES_CONTROLS=1
50193         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
50194     else
50195         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
50196 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
50197     fi
50198 fi
50199
50200 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
50201     cat >>confdefs.h <<\_ACEOF
50202 #define wxUSE_EDITABLELISTBOX 1
50203 _ACEOF
50204
50205     USES_CONTROLS=1
50206 fi
50207
50208 if test "$wxUSE_NOTEBOOK" = "yes"; then
50209     cat >>confdefs.h <<\_ACEOF
50210 #define wxUSE_NOTEBOOK 1
50211 _ACEOF
50212
50213     USES_CONTROLS=1
50214     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
50215 fi
50216
50217 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
50218     cat >>confdefs.h <<\_ACEOF
50219 #define wxUSE_NOTIFICATION_MESSAGE 1
50220 _ACEOF
50221
50222 fi
50223
50224 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
50225   cat >>confdefs.h <<\_ACEOF
50226 #define wxUSE_ODCOMBOBOX 1
50227 _ACEOF
50228
50229   USES_CONTROLS=1
50230   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
50231 fi
50232
50233 if test "$wxUSE_RADIOBOX" = "yes"; then
50234     cat >>confdefs.h <<\_ACEOF
50235 #define wxUSE_RADIOBOX 1
50236 _ACEOF
50237
50238     USES_CONTROLS=1
50239 fi
50240
50241 if test "$wxUSE_RADIOBTN" = "yes"; then
50242     cat >>confdefs.h <<\_ACEOF
50243 #define wxUSE_RADIOBTN 1
50244 _ACEOF
50245
50246     USES_CONTROLS=1
50247 fi
50248
50249 if test "$wxUSE_REARRANGECTRL" = "yes"; then
50250     cat >>confdefs.h <<\_ACEOF
50251 #define wxUSE_REARRANGECTRL 1
50252 _ACEOF
50253
50254 fi
50255
50256 if test "$wxUSE_RICHMSGDLG" = "yes"; then
50257     cat >>confdefs.h <<\_ACEOF
50258 #define wxUSE_RICHMSGDLG 1
50259 _ACEOF
50260
50261 fi
50262
50263 if test "$wxUSE_RICHTOOLTIP" = "yes"; then
50264     cat >>confdefs.h <<\_ACEOF
50265 #define wxUSE_RICHTOOLTIP 1
50266 _ACEOF
50267
50268 fi
50269
50270 if test "$wxUSE_SASH" = "yes"; then
50271     cat >>confdefs.h <<\_ACEOF
50272 #define wxUSE_SASH 1
50273 _ACEOF
50274
50275     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
50276 fi
50277
50278 if test "$wxUSE_SCROLLBAR" = "yes"; then
50279     cat >>confdefs.h <<\_ACEOF
50280 #define wxUSE_SCROLLBAR 1
50281 _ACEOF
50282
50283     USES_CONTROLS=1
50284     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
50285 fi
50286
50287 if test "$wxUSE_SEARCHCTRL" = "yes"; then
50288     cat >>confdefs.h <<\_ACEOF
50289 #define wxUSE_SEARCHCTRL 1
50290 _ACEOF
50291
50292     USES_CONTROLS=1
50293 fi
50294
50295 if test "$wxUSE_SLIDER" = "yes"; then
50296     cat >>confdefs.h <<\_ACEOF
50297 #define wxUSE_SLIDER 1
50298 _ACEOF
50299
50300     USES_CONTROLS=1
50301 fi
50302
50303 if test "$wxUSE_SPINBTN" = "yes"; then
50304     cat >>confdefs.h <<\_ACEOF
50305 #define wxUSE_SPINBTN 1
50306 _ACEOF
50307
50308     USES_CONTROLS=1
50309 fi
50310
50311 if test "$wxUSE_SPINCTRL" = "yes"; then
50312     cat >>confdefs.h <<\_ACEOF
50313 #define wxUSE_SPINCTRL 1
50314 _ACEOF
50315
50316     USES_CONTROLS=1
50317 fi
50318
50319 if test "$wxUSE_SPLITTER" = "yes"; then
50320     cat >>confdefs.h <<\_ACEOF
50321 #define wxUSE_SPLITTER 1
50322 _ACEOF
50323
50324     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
50325 fi
50326
50327 if test "$wxUSE_STATBMP" = "yes"; then
50328     cat >>confdefs.h <<\_ACEOF
50329 #define wxUSE_STATBMP 1
50330 _ACEOF
50331
50332     USES_CONTROLS=1
50333 fi
50334
50335 if test "$wxUSE_STATBOX" = "yes"; then
50336     cat >>confdefs.h <<\_ACEOF
50337 #define wxUSE_STATBOX 1
50338 _ACEOF
50339
50340     USES_CONTROLS=1
50341 fi
50342
50343 if test "$wxUSE_STATTEXT" = "yes"; then
50344     cat >>confdefs.h <<\_ACEOF
50345 #define wxUSE_STATTEXT 1
50346 _ACEOF
50347
50348     USES_CONTROLS=1
50349 fi
50350
50351 if test "$wxUSE_STATLINE" = "yes"; then
50352     cat >>confdefs.h <<\_ACEOF
50353 #define wxUSE_STATLINE 1
50354 _ACEOF
50355
50356     USES_CONTROLS=1
50357 fi
50358
50359 if test "$wxUSE_STATUSBAR" = "yes"; then
50360         cat >>confdefs.h <<\_ACEOF
50361 #define wxUSE_NATIVE_STATUSBAR 1
50362 _ACEOF
50363
50364     cat >>confdefs.h <<\_ACEOF
50365 #define wxUSE_STATUSBAR 1
50366 _ACEOF
50367
50368     USES_CONTROLS=1
50369
50370     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
50371 fi
50372
50373 if test "$wxUSE_TEXTCTRL" = "yes"; then
50374     cat >>confdefs.h <<\_ACEOF
50375 #define wxUSE_TEXTCTRL 1
50376 _ACEOF
50377
50378     USES_CONTROLS=1
50379     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
50380
50381             cat >>confdefs.h <<\_ACEOF
50382 #define wxUSE_RICHEDIT 1
50383 _ACEOF
50384
50385     cat >>confdefs.h <<\_ACEOF
50386 #define wxUSE_RICHEDIT2 1
50387 _ACEOF
50388
50389 fi
50390
50391 if test "$wxUSE_TIMEPICKCTRL" = "yes"; then
50392   cat >>confdefs.h <<\_ACEOF
50393 #define wxUSE_TIMEPICKCTRL 1
50394 _ACEOF
50395
50396   USES_CONTROLS=1
50397 fi
50398
50399 if test "$wxUSE_TOGGLEBTN" = "yes"; then
50400     if test "$wxUSE_OLD_COCOA" = 1 ; then
50401         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
50402 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
50403         wxUSE_TOGGLEBTN=no
50404     fi
50405
50406     if test "$wxUSE_TOGGLEBTN" = "yes"; then
50407         cat >>confdefs.h <<\_ACEOF
50408 #define wxUSE_TOGGLEBTN 1
50409 _ACEOF
50410
50411         USES_CONTROLS=1
50412     fi
50413 fi
50414
50415 if test "$wxUSE_TOOLBAR" = "yes"; then
50416     cat >>confdefs.h <<\_ACEOF
50417 #define wxUSE_TOOLBAR 1
50418 _ACEOF
50419
50420     USES_CONTROLS=1
50421
50422     if test "$wxUSE_UNIVERSAL" = "yes"; then
50423         wxUSE_TOOLBAR_NATIVE="no"
50424     else
50425         wxUSE_TOOLBAR_NATIVE="yes"
50426         cat >>confdefs.h <<\_ACEOF
50427 #define wxUSE_TOOLBAR_NATIVE 1
50428 _ACEOF
50429
50430     fi
50431
50432     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
50433 fi
50434
50435 if test "$wxUSE_TOOLTIPS" = "yes"; then
50436     if test "$wxUSE_MOTIF" = 1; then
50437         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
50438 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
50439     else
50440         if test "$wxUSE_UNIVERSAL" = "yes"; then
50441             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
50442 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
50443         else
50444             cat >>confdefs.h <<\_ACEOF
50445 #define wxUSE_TOOLTIPS 1
50446 _ACEOF
50447
50448         fi
50449     fi
50450 fi
50451
50452 if test "$wxUSE_TREEBOOK" = "yes"; then
50453     cat >>confdefs.h <<\_ACEOF
50454 #define wxUSE_TREEBOOK 1
50455 _ACEOF
50456
50457     USES_CONTROLS=1
50458 fi
50459
50460 if test "$wxUSE_TOOLBOOK" = "yes"; then
50461     cat >>confdefs.h <<\_ACEOF
50462 #define wxUSE_TOOLBOOK 1
50463 _ACEOF
50464
50465     USES_CONTROLS=1
50466 fi
50467
50468 if test "$wxUSE_TREECTRL" = "yes"; then
50469     if test "$wxUSE_IMAGLIST" = "yes"; then
50470         cat >>confdefs.h <<\_ACEOF
50471 #define wxUSE_TREECTRL 1
50472 _ACEOF
50473
50474         USES_CONTROLS=1
50475         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
50476     else
50477         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
50478 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
50479     fi
50480 fi
50481
50482 if test "$wxUSE_TREELISTCTRL" = "yes"; then
50483     cat >>confdefs.h <<\_ACEOF
50484 #define wxUSE_TREELISTCTRL 1
50485 _ACEOF
50486
50487     USES_CONTROLS=1
50488 fi
50489
50490 if test "$wxUSE_POPUPWIN" = "yes"; then
50491     if test "$wxUSE_OLD_COCOA" = 1 ; then
50492         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
50493 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
50494     else
50495         if test "$wxUSE_PM" = 1; then
50496             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
50497 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
50498         else
50499             cat >>confdefs.h <<\_ACEOF
50500 #define wxUSE_POPUPWIN 1
50501 _ACEOF
50502
50503             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
50504
50505             USES_CONTROLS=1
50506         fi
50507     fi
50508 fi
50509
50510 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
50511     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
50512         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
50513 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
50514     else
50515         cat >>confdefs.h <<\_ACEOF
50516 #define wxUSE_DIALUP_MANAGER 1
50517 _ACEOF
50518
50519         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
50520     fi
50521 fi
50522
50523 if test "$wxUSE_TIPWINDOW" = "yes"; then
50524     if test "$wxUSE_PM" = 1; then
50525         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
50526 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
50527     else
50528         cat >>confdefs.h <<\_ACEOF
50529 #define wxUSE_TIPWINDOW 1
50530 _ACEOF
50531
50532     fi
50533 fi
50534
50535 if test "$USES_CONTROLS" = 1; then
50536     cat >>confdefs.h <<\_ACEOF
50537 #define wxUSE_CONTROLS 1
50538 _ACEOF
50539
50540 fi
50541
50542
50543 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
50544     cat >>confdefs.h <<\_ACEOF
50545 #define wxUSE_ACCESSIBILITY 1
50546 _ACEOF
50547
50548     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
50549 fi
50550
50551 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
50552     cat >>confdefs.h <<\_ACEOF
50553 #define wxUSE_ARTPROVIDER_STD 1
50554 _ACEOF
50555
50556 fi
50557
50558 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
50559             if test "$wxUSE_GTK" != 1; then
50560                 if test "$wxUSE_LIBPNG" != no -a \
50561                 "$wxUSE_IMAGE" = yes -a \
50562                 "$wxUSE_STREAMS" = yes; then
50563             wxUSE_ARTPROVIDER_TANGO="yes"
50564         fi
50565     fi
50566 fi
50567
50568 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
50569     cat >>confdefs.h <<\_ACEOF
50570 #define wxUSE_ARTPROVIDER_TANGO 1
50571 _ACEOF
50572
50573 fi
50574
50575 if test "$wxUSE_DRAGIMAGE" = "yes"; then
50576     cat >>confdefs.h <<\_ACEOF
50577 #define wxUSE_DRAGIMAGE 1
50578 _ACEOF
50579
50580     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
50581 fi
50582
50583 if test "$wxUSE_EXCEPTIONS" = "yes"; then
50584     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
50585         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
50586 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
50587     else
50588         cat >>confdefs.h <<\_ACEOF
50589 #define wxUSE_EXCEPTIONS 1
50590 _ACEOF
50591
50592         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
50593     fi
50594 fi
50595
50596 USE_HTML=0
50597 if test "$wxUSE_HTML" = "yes"; then
50598     cat >>confdefs.h <<\_ACEOF
50599 #define wxUSE_HTML 1
50600 _ACEOF
50601
50602     USE_HTML=1
50603     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
50604 fi
50605 if test "$wxUSE_WEBKIT" = "yes"; then
50606     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
50607         old_CPPFLAGS="$CPPFLAGS"
50608         CPPFLAGS="-x objective-c++ $CPPFLAGS"
50609         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
50610 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
50611 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
50612   echo $ECHO_N "(cached) $ECHO_C" >&6
50613 else
50614   cat >conftest.$ac_ext <<_ACEOF
50615 /* confdefs.h.  */
50616 _ACEOF
50617 cat confdefs.h >>conftest.$ac_ext
50618 cat >>conftest.$ac_ext <<_ACEOF
50619 /* end confdefs.h.  */
50620
50621                            #include <Carbon/Carbon.h>
50622                            #include <WebKit/WebKit.h>
50623
50624
50625 #include <WebKit/HIWebView.h>
50626 _ACEOF
50627 rm -f conftest.$ac_objext
50628 if { (ac_try="$ac_compile"
50629 case "(($ac_try" in
50630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50631   *) ac_try_echo=$ac_try;;
50632 esac
50633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50634   (eval "$ac_compile") 2>conftest.er1
50635   ac_status=$?
50636   grep -v '^ *+' conftest.er1 >conftest.err
50637   rm -f conftest.er1
50638   cat conftest.err >&5
50639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50640   (exit $ac_status); } && {
50641          test -z "$ac_c_werror_flag" ||
50642          test ! -s conftest.err
50643        } && test -s conftest.$ac_objext; then
50644   ac_cv_header_WebKit_HIWebView_h=yes
50645 else
50646   echo "$as_me: failed program was:" >&5
50647 sed 's/^/| /' conftest.$ac_ext >&5
50648
50649         ac_cv_header_WebKit_HIWebView_h=no
50650 fi
50651
50652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50653 fi
50654 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
50655 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
50656 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
50657
50658                            cat >>confdefs.h <<\_ACEOF
50659 #define wxUSE_WEBKIT 1
50660 _ACEOF
50661
50662                            WEBKIT_LINK="-framework WebKit"
50663
50664 else
50665
50666                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
50667 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
50668                            wxUSE_WEBKIT=no
50669
50670 fi
50671
50672
50673         CPPFLAGS="$old_CPPFLAGS"
50674     elif test "$wxUSE_OLD_COCOA" = 1; then
50675         cat >>confdefs.h <<\_ACEOF
50676 #define wxUSE_WEBKIT 1
50677 _ACEOF
50678
50679     else
50680         wxUSE_WEBKIT=no
50681     fi
50682     if test "$wxUSE_WEBKIT" = "yes"; then
50683         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
50684     fi
50685 fi
50686
50687 USE_XRC=0
50688 if test "$wxUSE_XRC" = "yes"; then
50689     if test "$wxUSE_XML" != "yes"; then
50690         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
50691 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
50692         wxUSE_XRC=no
50693     else
50694         cat >>confdefs.h <<\_ACEOF
50695 #define wxUSE_XRC 1
50696 _ACEOF
50697
50698         USE_XRC=1
50699         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
50700     fi
50701 fi
50702
50703 USE_AUI=0
50704 if test "$wxUSE_AUI" = "yes"; then
50705    cat >>confdefs.h <<\_ACEOF
50706 #define wxUSE_AUI 1
50707 _ACEOF
50708
50709    USE_AUI=1
50710    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
50711 fi
50712
50713 USE_PROPGRID=0
50714 if test "$wxUSE_PROPGRID" = "yes"; then
50715    cat >>confdefs.h <<\_ACEOF
50716 #define wxUSE_PROPGRID 1
50717 _ACEOF
50718
50719    USE_PROPGRID=1
50720    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
50721 fi
50722
50723 USE_RIBBON=0
50724 if test "$wxUSE_RIBBON" = "yes"; then
50725    cat >>confdefs.h <<\_ACEOF
50726 #define wxUSE_RIBBON 1
50727 _ACEOF
50728
50729    USE_RIBBON=1
50730    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
50731 fi
50732
50733 USE_STC=0
50734 if test "$wxUSE_STC" = "yes"; then
50735    cat >>confdefs.h <<\_ACEOF
50736 #define wxUSE_STC 1
50737 _ACEOF
50738
50739    USE_STC=1
50740    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
50741
50742       # Extract the first word of "python", so it can be a program name with args.
50743 set dummy python; ac_word=$2
50744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50746 if test "${ac_cv_path_PYTHON+set}" = set; then
50747   echo $ECHO_N "(cached) $ECHO_C" >&6
50748 else
50749   case $PYTHON in
50750   [\\/]* | ?:[\\/]*)
50751   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
50752   ;;
50753   *)
50754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50755 for as_dir in $PATH
50756 do
50757   IFS=$as_save_IFS
50758   test -z "$as_dir" && as_dir=.
50759   for ac_exec_ext in '' $ac_executable_extensions; do
50760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50761     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
50762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50763     break 2
50764   fi
50765 done
50766 done
50767 IFS=$as_save_IFS
50768
50769   ;;
50770 esac
50771 fi
50772 PYTHON=$ac_cv_path_PYTHON
50773 if test -n "$PYTHON"; then
50774   { echo "$as_me:$LINENO: result: $PYTHON" >&5
50775 echo "${ECHO_T}$PYTHON" >&6; }
50776 else
50777   { echo "$as_me:$LINENO: result: no" >&5
50778 echo "${ECHO_T}no" >&6; }
50779 fi
50780
50781
50782    if test "x$PYTHON" = "x"; then
50783      COND_PYTHON="#"
50784    fi
50785
50786 fi
50787
50788 if test "$wxUSE_MENUS" = "yes"; then
50789     cat >>confdefs.h <<\_ACEOF
50790 #define wxUSE_MENUS 1
50791 _ACEOF
50792
50793     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
50794 fi
50795
50796 if test "$wxUSE_MIMETYPE" = "yes"; then
50797     cat >>confdefs.h <<\_ACEOF
50798 #define wxUSE_MIMETYPE 1
50799 _ACEOF
50800
50801 fi
50802
50803 if test "$wxUSE_MINIFRAME" = "yes"; then
50804     cat >>confdefs.h <<\_ACEOF
50805 #define wxUSE_MINIFRAME 1
50806 _ACEOF
50807
50808 fi
50809
50810 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
50811     cat >>confdefs.h <<\_ACEOF
50812 #define wxUSE_SYSTEM_OPTIONS 1
50813 _ACEOF
50814
50815 fi
50816
50817 if test "$wxUSE_TASKBARICON" = "yes"; then
50818     cat >>confdefs.h <<\_ACEOF
50819 #define wxUSE_TASKBARICON 1
50820 _ACEOF
50821
50822     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
50823 fi
50824
50825
50826 if test "$wxUSE_VALIDATORS" = "yes"; then
50827     cat >>confdefs.h <<\_ACEOF
50828 #define wxUSE_VALIDATORS 1
50829 _ACEOF
50830
50831     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
50832 fi
50833
50834 if test "$wxUSE_PALETTE" = "yes" ; then
50835     if test "$wxUSE_DFB" = 1; then
50836         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
50837 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
50838         wxUSE_PALETTE=no
50839     else
50840         cat >>confdefs.h <<\_ACEOF
50841 #define wxUSE_PALETTE 1
50842 _ACEOF
50843
50844     fi
50845 fi
50846
50847 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
50848     LIBS=" -lunicows $LIBS"
50849 fi
50850
50851 USE_RICHTEXT=0
50852 if test "$wxUSE_RICHTEXT" = "yes"; then
50853     cat >>confdefs.h <<\_ACEOF
50854 #define wxUSE_RICHTEXT 1
50855 _ACEOF
50856
50857     USE_RICHTEXT=1
50858     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
50859 fi
50860
50861 if test "$wxUSE_WEBVIEW" = "yes"; then
50862     USE_WEBVIEW_WEBKIT=0
50863     if test "$wxUSE_WEBVIEW_WEBKIT" = "yes"; then
50864         if test "$wxUSE_GTK" = 1; then
50865             { echo "$as_me:$LINENO: checking for webkitgtk libraries" >&5
50866 echo $ECHO_N "checking for webkitgtk libraries... $ECHO_C" >&6; }
50867
50868   ac_find_libraries=
50869   for ac_dir in $SEARCH_LIB
50870   do
50871     for ac_extension in a so sl dylib dll.a; do
50872       if test -f "$ac_dir/libwebkitgtk-1.0.$ac_extension"; then
50873         ac_find_libraries=$ac_dir
50874         break 2
50875       fi
50876     done
50877   done
50878
50879             if test "$ac_find_libraries" != "" ; then
50880
50881     if test "$ac_find_libraries" = "default location"; then
50882     ac_path_to_link=""
50883   else
50884     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
50885     result=$?
50886     if test $result = 0; then
50887       ac_path_to_link=""
50888     else
50889       ac_path_to_link=" -L$ac_find_libraries"
50890     fi
50891   fi
50892
50893                 if test "$ac_path_to_link" != " -L/usr/lib" ; then
50894                     LDFLAGS="$LDFLAGS $ac_path_to_link"
50895                 fi
50896                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwebkitgtk-1.0"
50897                 { echo "$as_me:$LINENO: result: yes" >&5
50898 echo "${ECHO_T}yes" >&6; }
50899
50900                 { echo "$as_me:$LINENO: checking for webkitgtk headers" >&5
50901 echo $ECHO_N "checking for webkitgtk headers... $ECHO_C" >&6; }
50902
50903 ac_find_includes=
50904 for ac_dir in $SEARCH_INCLUDE /usr/include/webkit-1.0 /usr/include
50905   do
50906     if test -f "$ac_dir/webkit/webkit.h"; then
50907       ac_find_includes=$ac_dir
50908       break
50909     fi
50910   done
50911
50912                 if test "$ac_find_includes" != "" ; then
50913                    { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
50914 echo "${ECHO_T}found in $ac_find_includes" >&6; }
50915
50916     if test "x$ac_find_includes" = "x/usr/include"; then
50917     ac_path_to_include=""
50918   else
50919     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
50920     result=$?
50921     if test $result = 0; then
50922       ac_path_to_include=""
50923     else
50924       ac_path_to_include=" -I$ac_find_includes"
50925     fi
50926   fi
50927
50928                    CPPFLAGS="$ac_path_to_include $CPPFLAGS"
50929
50930                                       { echo "$as_me:$LINENO: checking for libsoup headers" >&5
50931 echo $ECHO_N "checking for libsoup headers... $ECHO_C" >&6; }
50932
50933 ac_find_includes=
50934 for ac_dir in $SEARCH_INCLUDE /usr/include/libsoup-2.4 /usr/include
50935   do
50936     if test -f "$ac_dir/libsoup/soup.h"; then
50937       ac_find_includes=$ac_dir
50938       break
50939     fi
50940   done
50941
50942                    if test "$ac_find_includes" != "" ; then
50943                        { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
50944 echo "${ECHO_T}found in $ac_find_includes" >&6; }
50945
50946     if test "x$ac_find_includes" = "x/usr/include"; then
50947     ac_path_to_include=""
50948   else
50949     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
50950     result=$?
50951     if test $result = 0; then
50952       ac_path_to_include=""
50953     else
50954       ac_path_to_include=" -I$ac_find_includes"
50955     fi
50956   fi
50957
50958                        CPPFLAGS="$ac_path_to_include $CPPFLAGS"
50959
50960                        USE_WEBVIEW_WEBKIT=1
50961                    else
50962                        { echo "$as_me:$LINENO: result: not found" >&5
50963 echo "${ECHO_T}not found" >&6; }
50964                        { echo "$as_me:$LINENO: WARNING: libsoup headers not found; disabling WebKit backend" >&5
50965 echo "$as_me: WARNING: libsoup headers not found; disabling WebKit backend" >&2;}
50966                    fi
50967                 else
50968                    { echo "$as_me:$LINENO: result: not found" >&5
50969 echo "${ECHO_T}not found" >&6; }
50970                    { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling WebKit backend" >&5
50971 echo "$as_me: WARNING: WebKit headers not found; disabling WebKit backend" >&2;}
50972                 fi
50973             else
50974                 { echo "$as_me:$LINENO: result: no" >&5
50975 echo "${ECHO_T}no" >&6; }
50976                 { echo "$as_me:$LINENO: WARNING: WebKit libraries not found; disabling WebKit backend" >&5
50977 echo "$as_me: WARNING: WebKit libraries not found; disabling WebKit backend" >&2;}
50978             fi
50979         elif test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
50980                                     old_CPPFLAGS="$CPPFLAGS"
50981             CPPFLAGS="-x objective-c++ $CPPFLAGS"
50982             { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
50983 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
50984 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
50985   echo $ECHO_N "(cached) $ECHO_C" >&6
50986 else
50987   cat >conftest.$ac_ext <<_ACEOF
50988 /* confdefs.h.  */
50989 _ACEOF
50990 cat confdefs.h >>conftest.$ac_ext
50991 cat >>conftest.$ac_ext <<_ACEOF
50992 /* end confdefs.h.  */
50993
50994                                 #include <Carbon/Carbon.h>
50995                                 #include <WebKit/WebKit.h>
50996
50997
50998 #include <WebKit/HIWebView.h>
50999 _ACEOF
51000 rm -f conftest.$ac_objext
51001 if { (ac_try="$ac_compile"
51002 case "(($ac_try" in
51003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51004   *) ac_try_echo=$ac_try;;
51005 esac
51006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51007   (eval "$ac_compile") 2>conftest.er1
51008   ac_status=$?
51009   grep -v '^ *+' conftest.er1 >conftest.err
51010   rm -f conftest.er1
51011   cat conftest.err >&5
51012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51013   (exit $ac_status); } && {
51014          test -z "$ac_c_werror_flag" ||
51015          test ! -s conftest.err
51016        } && test -s conftest.$ac_objext; then
51017   ac_cv_header_WebKit_HIWebView_h=yes
51018 else
51019   echo "$as_me: failed program was:" >&5
51020 sed 's/^/| /' conftest.$ac_ext >&5
51021
51022         ac_cv_header_WebKit_HIWebView_h=no
51023 fi
51024
51025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51026 fi
51027 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
51028 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
51029 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
51030
51031                                 USE_WEBVIEW_WEBKIT=1
51032                                 WEBKIT_LINK="-framework WebKit"
51033
51034 else
51035
51036                                 { echo "$as_me:$LINENO: WARNING: WebKit headers not found" >&5
51037 echo "$as_me: WARNING: WebKit headers not found" >&2;}
51038
51039 fi
51040
51041
51042             CPPFLAGS="$old_CPPFLAGS"
51043         fi
51044     fi
51045
51046     wxUSE_WEBVIEW="no"
51047     if test "$wxUSE_GTK" = 1 -o "$wxUSE_MAC" = 1; then
51048         if test "$USE_WEBVIEW_WEBKIT" = 1; then
51049             wxUSE_WEBVIEW="yes"
51050             cat >>confdefs.h <<\_ACEOF
51051 #define wxUSE_WEBVIEW_WEBKIT 1
51052 _ACEOF
51053
51054         else
51055             { echo "$as_me:$LINENO: WARNING: WebKit not available, disabling wxWebView" >&5
51056 echo "$as_me: WARNING: WebKit not available, disabling wxWebView" >&2;}
51057         fi
51058     elif test "$wxUSE_MSW" = 1; then
51059         if test "wxUSE_WEBVIEW_IE" = "yes"; then
51060                                     wxUSE_WEBVIEW="yes"
51061             cat >>confdefs.h <<\_ACEOF
51062 #define wxUSE_WEBVIEW_IE 1
51063 _ACEOF
51064
51065         fi
51066     fi
51067 fi
51068
51069 if test "$wxUSE_WEBVIEW" = "yes"; then
51070     USE_WEBVIEW=1
51071     cat >>confdefs.h <<\_ACEOF
51072 #define wxUSE_WEBVIEW 1
51073 _ACEOF
51074
51075     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS webview"
51076 else
51077     USE_WEBVIEW=0
51078 fi
51079
51080
51081 if test "$wxUSE_IMAGE" = "yes" ; then
51082     cat >>confdefs.h <<\_ACEOF
51083 #define wxUSE_IMAGE 1
51084 _ACEOF
51085
51086
51087     if test "$wxUSE_GIF" = "yes" ; then
51088       cat >>confdefs.h <<\_ACEOF
51089 #define wxUSE_GIF 1
51090 _ACEOF
51091
51092     fi
51093
51094     if test "$wxUSE_PCX" = "yes" ; then
51095       cat >>confdefs.h <<\_ACEOF
51096 #define wxUSE_PCX 1
51097 _ACEOF
51098
51099     fi
51100
51101     if test "$wxUSE_TGA" = "yes" ; then
51102       cat >>confdefs.h <<\_ACEOF
51103 #define wxUSE_TGA 1
51104 _ACEOF
51105
51106     fi
51107
51108     if test "$wxUSE_IFF" = "yes" ; then
51109       cat >>confdefs.h <<\_ACEOF
51110 #define wxUSE_IFF 1
51111 _ACEOF
51112
51113     fi
51114
51115     if test "$wxUSE_PNM" = "yes" ; then
51116       cat >>confdefs.h <<\_ACEOF
51117 #define wxUSE_PNM 1
51118 _ACEOF
51119
51120     fi
51121
51122     if test "$wxUSE_XPM" = "yes" ; then
51123       cat >>confdefs.h <<\_ACEOF
51124 #define wxUSE_XPM 1
51125 _ACEOF
51126
51127     fi
51128
51129     if test "$wxUSE_ICO_CUR" = "yes" ; then
51130       cat >>confdefs.h <<\_ACEOF
51131 #define wxUSE_ICO_CUR 1
51132 _ACEOF
51133
51134     fi
51135 fi
51136
51137
51138 if test "$wxUSE_ABOUTDLG" = "yes"; then
51139     cat >>confdefs.h <<\_ACEOF
51140 #define wxUSE_ABOUTDLG 1
51141 _ACEOF
51142
51143 fi
51144
51145 if test "$wxUSE_CHOICEDLG" = "yes"; then
51146     cat >>confdefs.h <<\_ACEOF
51147 #define wxUSE_CHOICEDLG 1
51148 _ACEOF
51149
51150 fi
51151
51152 if test "$wxUSE_COLOURDLG" = "yes"; then
51153     cat >>confdefs.h <<\_ACEOF
51154 #define wxUSE_COLOURDLG 1
51155 _ACEOF
51156
51157 fi
51158
51159 if test "$wxUSE_FILEDLG" = "yes"; then
51160     cat >>confdefs.h <<\_ACEOF
51161 #define wxUSE_FILEDLG 1
51162 _ACEOF
51163
51164 fi
51165
51166 if test "$wxUSE_FINDREPLDLG" = "yes"; then
51167     cat >>confdefs.h <<\_ACEOF
51168 #define wxUSE_FINDREPLDLG 1
51169 _ACEOF
51170
51171 fi
51172
51173 if test "$wxUSE_FONTDLG" = "yes"; then
51174     cat >>confdefs.h <<\_ACEOF
51175 #define wxUSE_FONTDLG 1
51176 _ACEOF
51177
51178 fi
51179
51180 if test "$wxUSE_DIRDLG" = "yes"; then
51181     if test "$wxUSE_TREECTRL" != "yes"; then
51182         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
51183 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
51184     else
51185         cat >>confdefs.h <<\_ACEOF
51186 #define wxUSE_DIRDLG 1
51187 _ACEOF
51188
51189     fi
51190 fi
51191
51192 if test "$wxUSE_MSGDLG" = "yes"; then
51193     cat >>confdefs.h <<\_ACEOF
51194 #define wxUSE_MSGDLG 1
51195 _ACEOF
51196
51197 fi
51198
51199 if test "$wxUSE_NUMBERDLG" = "yes"; then
51200     cat >>confdefs.h <<\_ACEOF
51201 #define wxUSE_NUMBERDLG 1
51202 _ACEOF
51203
51204 fi
51205
51206 if test "$wxUSE_PROGRESSDLG" = "yes"; then
51207     cat >>confdefs.h <<\_ACEOF
51208 #define wxUSE_PROGRESSDLG 1
51209 _ACEOF
51210
51211 fi
51212
51213 if test "$wxUSE_SPLASH" = "yes"; then
51214     cat >>confdefs.h <<\_ACEOF
51215 #define wxUSE_SPLASH 1
51216 _ACEOF
51217
51218     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
51219 fi
51220
51221 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
51222     cat >>confdefs.h <<\_ACEOF
51223 #define wxUSE_STARTUP_TIPS 1
51224 _ACEOF
51225
51226 fi
51227
51228 if test "$wxUSE_TEXTDLG" = "yes"; then
51229     cat >>confdefs.h <<\_ACEOF
51230 #define wxUSE_TEXTDLG 1
51231 _ACEOF
51232
51233 fi
51234
51235 if test "$wxUSE_WIZARDDLG" = "yes"; then
51236     cat >>confdefs.h <<\_ACEOF
51237 #define wxUSE_WIZARDDLG 1
51238 _ACEOF
51239
51240     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
51241 fi
51242
51243
51244 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
51245     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
51246         cat >>confdefs.h <<\_ACEOF
51247 #define wxUSE_OWNER_DRAWN 1
51248 _ACEOF
51249
51250     fi
51251 fi
51252
51253
51254 if test "$wxUSE_MSW" = 1 ; then
51255
51256     if test "$wxUSE_DC_CACHEING" = "yes"; then
51257         cat >>confdefs.h <<\_ACEOF
51258 #define wxUSE_DC_CACHEING 1
51259 _ACEOF
51260
51261     fi
51262
51263     if test "$wxUSE_DIB" = "yes"; then
51264         cat >>confdefs.h <<\_ACEOF
51265 #define wxUSE_WXDIB 1
51266 _ACEOF
51267
51268     fi
51269
51270     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
51271         cat >>confdefs.h <<\_ACEOF
51272 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
51273 _ACEOF
51274
51275     fi
51276
51277     if test "$wxUSE_UXTHEME" = "yes"; then
51278         cat >>confdefs.h <<\_ACEOF
51279 #define wxUSE_UXTHEME 1
51280 _ACEOF
51281
51282     fi
51283
51284 fi
51285
51286 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
51287     cat >>confdefs.h <<\_ACEOF
51288 #define wxUSE_AUTOID_MANAGEMENT 1
51289 _ACEOF
51290
51291 fi
51292
51293 if test "$USE_WIN32" = 1 ; then
51294     if test "$wxUSE_INICONF" = "yes"; then
51295         cat >>confdefs.h <<\_ACEOF
51296 #define wxUSE_INICONF 1
51297 _ACEOF
51298
51299     fi
51300
51301     if test "$wxUSE_REGKEY" = "yes"; then
51302         cat >>confdefs.h <<\_ACEOF
51303 #define wxUSE_REGKEY 1
51304 _ACEOF
51305
51306     fi
51307 fi
51308
51309
51310 if test "$wxUSE_MAC" = 1; then
51311     wxUSE_GRAPHICS_CONTEXT="yes"
51312 fi
51313
51314 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
51315     wx_has_graphics=0
51316     if test "$wxUSE_MSW" = 1; then
51317         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
51318 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
51319 if test "${wx_cv_lib_gdiplus+set}" = set; then
51320   echo $ECHO_N "(cached) $ECHO_C" >&6
51321 else
51322
51323                                                 ac_ext=cpp
51324 ac_cpp='$CXXCPP $CPPFLAGS'
51325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51328
51329                 cat >conftest.$ac_ext <<_ACEOF
51330 /* confdefs.h.  */
51331 _ACEOF
51332 cat confdefs.h >>conftest.$ac_ext
51333 cat >>conftest.$ac_ext <<_ACEOF
51334 /* end confdefs.h.  */
51335 #include <windows.h>
51336                      #include <gdiplus.h>
51337 int
51338 main ()
51339 {
51340
51341                         using namespace Gdiplus;
51342
51343   ;
51344   return 0;
51345 }
51346 _ACEOF
51347 rm -f conftest.$ac_objext
51348 if { (ac_try="$ac_compile"
51349 case "(($ac_try" in
51350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51351   *) ac_try_echo=$ac_try;;
51352 esac
51353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51354   (eval "$ac_compile") 2>conftest.er1
51355   ac_status=$?
51356   grep -v '^ *+' conftest.er1 >conftest.err
51357   rm -f conftest.er1
51358   cat conftest.err >&5
51359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51360   (exit $ac_status); } && {
51361          test -z "$ac_cxx_werror_flag" ||
51362          test ! -s conftest.err
51363        } && test -s conftest.$ac_objext; then
51364   wx_cv_lib_gdiplus=yes
51365 else
51366   echo "$as_me: failed program was:" >&5
51367 sed 's/^/| /' conftest.$ac_ext >&5
51368
51369         wx_cv_lib_gdiplus=no
51370
51371 fi
51372
51373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51374                 ac_ext=c
51375 ac_cpp='$CPP $CPPFLAGS'
51376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51379
51380
51381
51382 fi
51383 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
51384 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
51385         if test "$wx_cv_lib_gdiplus" = "yes"; then
51386             wx_has_graphics=1
51387         fi
51388     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
51389
51390 pkg_failed=no
51391 { echo "$as_me:$LINENO: checking for CAIRO" >&5
51392 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
51393
51394 if test -n "$PKG_CONFIG"; then
51395     if test -n "$CAIRO_CFLAGS"; then
51396         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
51397     else
51398         if test -n "$PKG_CONFIG" && \
51399     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
51400   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
51401   ac_status=$?
51402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51403   (exit $ac_status); }; then
51404   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
51405 else
51406   pkg_failed=yes
51407 fi
51408     fi
51409 else
51410         pkg_failed=untried
51411 fi
51412 if test -n "$PKG_CONFIG"; then
51413     if test -n "$CAIRO_LIBS"; then
51414         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
51415     else
51416         if test -n "$PKG_CONFIG" && \
51417     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
51418   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
51419   ac_status=$?
51420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51421   (exit $ac_status); }; then
51422   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
51423 else
51424   pkg_failed=yes
51425 fi
51426     fi
51427 else
51428         pkg_failed=untried
51429 fi
51430
51431
51432
51433 if test $pkg_failed = yes; then
51434
51435 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51436         _pkg_short_errors_supported=yes
51437 else
51438         _pkg_short_errors_supported=no
51439 fi
51440         if test $_pkg_short_errors_supported = yes; then
51441                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
51442         else
51443                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
51444         fi
51445         # Put the nasty error message in config.log where it belongs
51446         echo "$CAIRO_PKG_ERRORS" >&5
51447
51448         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
51449 echo "$as_me: WARNING: Cairo library not found" >&2;}
51450
51451 elif test $pkg_failed = untried; then
51452         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
51453 echo "$as_me: WARNING: Cairo library not found" >&2;}
51454
51455 else
51456         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
51457         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
51458         { echo "$as_me:$LINENO: result: yes" >&5
51459 echo "${ECHO_T}yes" >&6; }
51460         wx_has_graphics=1
51461 fi
51462         if test "$wx_has_graphics" = 1; then
51463                                                 save_LIBS="$LIBS"
51464             LIBS="$LIBS $CAIRO_LIBS"
51465
51466 for ac_func in cairo_push_group
51467 do
51468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51472   echo $ECHO_N "(cached) $ECHO_C" >&6
51473 else
51474   cat >conftest.$ac_ext <<_ACEOF
51475 /* confdefs.h.  */
51476 _ACEOF
51477 cat confdefs.h >>conftest.$ac_ext
51478 cat >>conftest.$ac_ext <<_ACEOF
51479 /* end confdefs.h.  */
51480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51482 #define $ac_func innocuous_$ac_func
51483
51484 /* System header to define __stub macros and hopefully few prototypes,
51485     which can conflict with char $ac_func (); below.
51486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51487     <limits.h> exists even on freestanding compilers.  */
51488
51489 #ifdef __STDC__
51490 # include <limits.h>
51491 #else
51492 # include <assert.h>
51493 #endif
51494
51495 #undef $ac_func
51496
51497 /* Override any GCC internal prototype to avoid an error.
51498    Use char because int might match the return type of a GCC
51499    builtin and then its argument prototype would still apply.  */
51500 #ifdef __cplusplus
51501 extern "C"
51502 #endif
51503 char $ac_func ();
51504 /* The GNU C library defines this for functions which it implements
51505     to always fail with ENOSYS.  Some functions are actually named
51506     something starting with __ and the normal name is an alias.  */
51507 #if defined __stub_$ac_func || defined __stub___$ac_func
51508 choke me
51509 #endif
51510
51511 int
51512 main ()
51513 {
51514 return $ac_func ();
51515   ;
51516   return 0;
51517 }
51518 _ACEOF
51519 rm -f conftest.$ac_objext conftest$ac_exeext
51520 if { (ac_try="$ac_link"
51521 case "(($ac_try" in
51522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51523   *) ac_try_echo=$ac_try;;
51524 esac
51525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51526   (eval "$ac_link") 2>conftest.er1
51527   ac_status=$?
51528   grep -v '^ *+' conftest.er1 >conftest.err
51529   rm -f conftest.er1
51530   cat conftest.err >&5
51531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51532   (exit $ac_status); } && {
51533          test -z "$ac_c_werror_flag" ||
51534          test ! -s conftest.err
51535        } && test -s conftest$ac_exeext &&
51536        $as_test_x conftest$ac_exeext; then
51537   eval "$as_ac_var=yes"
51538 else
51539   echo "$as_me: failed program was:" >&5
51540 sed 's/^/| /' conftest.$ac_ext >&5
51541
51542         eval "$as_ac_var=no"
51543 fi
51544
51545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51546       conftest$ac_exeext conftest.$ac_ext
51547 fi
51548 ac_res=`eval echo '${'$as_ac_var'}'`
51549                { echo "$as_me:$LINENO: result: $ac_res" >&5
51550 echo "${ECHO_T}$ac_res" >&6; }
51551 if test `eval echo '${'$as_ac_var'}'` = yes; then
51552   cat >>confdefs.h <<_ACEOF
51553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51554 _ACEOF
51555
51556 fi
51557 done
51558
51559             LIBS="$save_LIBS"
51560             if test "$ac_cv_func_cairo_push_group" = "no"; then
51561                 wx_has_graphics=0
51562                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
51563 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
51564             else
51565                 cat >>confdefs.h <<\_ACEOF
51566 #define wxUSE_CAIRO 1
51567 _ACEOF
51568
51569
51570                                                 if test "$wxUSE_GTK" != 1; then
51571                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
51572                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
51573                 fi
51574             fi
51575         fi
51576     else
51577                 wx_has_graphics=1
51578     fi
51579
51580     if test "$wx_has_graphics" = 1; then
51581         cat >>confdefs.h <<\_ACEOF
51582 #define wxUSE_GRAPHICS_CONTEXT 1
51583 _ACEOF
51584
51585     else
51586         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
51587 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
51588     fi
51589 fi
51590
51591
51592 USE_MEDIA=0
51593
51594 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
51595     USE_MEDIA=1
51596
51597                 if test "$wxUSE_GTK" = 1; then
51598         wxUSE_GSTREAMER="no"
51599
51600                                                                 GST_VERSION_MAJOR=0
51601         GST_VERSION_MINOR=10
51602         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
51603
51604         if test "$wxUSE_GSTREAMER8" = "no"; then
51605
51606 pkg_failed=no
51607 { echo "$as_me:$LINENO: checking for GST" >&5
51608 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
51609
51610 if test -n "$PKG_CONFIG"; then
51611     if test -n "$GST_CFLAGS"; then
51612         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
51613     else
51614         if test -n "$PKG_CONFIG" && \
51615     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
51616   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
51617   ac_status=$?
51618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51619   (exit $ac_status); }; then
51620   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
51621 else
51622   pkg_failed=yes
51623 fi
51624     fi
51625 else
51626         pkg_failed=untried
51627 fi
51628 if test -n "$PKG_CONFIG"; then
51629     if test -n "$GST_LIBS"; then
51630         pkg_cv_GST_LIBS="$GST_LIBS"
51631     else
51632         if test -n "$PKG_CONFIG" && \
51633     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
51634   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
51635   ac_status=$?
51636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51637   (exit $ac_status); }; then
51638   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
51639 else
51640   pkg_failed=yes
51641 fi
51642     fi
51643 else
51644         pkg_failed=untried
51645 fi
51646
51647
51648
51649 if test $pkg_failed = yes; then
51650
51651 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51652         _pkg_short_errors_supported=yes
51653 else
51654         _pkg_short_errors_supported=no
51655 fi
51656         if test $_pkg_short_errors_supported = yes; then
51657                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
51658         else
51659                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
51660         fi
51661         # Put the nasty error message in config.log where it belongs
51662         echo "$GST_PKG_ERRORS" >&5
51663
51664
51665                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
51666 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
51667                     GST_VERSION_MINOR=8
51668
51669
51670 elif test $pkg_failed = untried; then
51671
51672                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
51673 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
51674                     GST_VERSION_MINOR=8
51675
51676
51677 else
51678         GST_CFLAGS=$pkg_cv_GST_CFLAGS
51679         GST_LIBS=$pkg_cv_GST_LIBS
51680         { echo "$as_me:$LINENO: result: yes" >&5
51681 echo "${ECHO_T}yes" >&6; }
51682
51683                     wxUSE_GSTREAMER="yes"
51684                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
51685
51686 fi
51687         else
51688                         GST_VERSION_MINOR=8
51689         fi
51690
51691         if test $GST_VERSION_MINOR = "8"; then
51692             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
51693
51694 pkg_failed=no
51695 { echo "$as_me:$LINENO: checking for GST" >&5
51696 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
51697
51698 if test -n "$PKG_CONFIG"; then
51699     if test -n "$GST_CFLAGS"; then
51700         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
51701     else
51702         if test -n "$PKG_CONFIG" && \
51703     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
51704   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
51705   ac_status=$?
51706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51707   (exit $ac_status); }; then
51708   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
51709 else
51710   pkg_failed=yes
51711 fi
51712     fi
51713 else
51714         pkg_failed=untried
51715 fi
51716 if test -n "$PKG_CONFIG"; then
51717     if test -n "$GST_LIBS"; then
51718         pkg_cv_GST_LIBS="$GST_LIBS"
51719     else
51720         if test -n "$PKG_CONFIG" && \
51721     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
51722   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
51723   ac_status=$?
51724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51725   (exit $ac_status); }; then
51726   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
51727 else
51728   pkg_failed=yes
51729 fi
51730     fi
51731 else
51732         pkg_failed=untried
51733 fi
51734
51735
51736
51737 if test $pkg_failed = yes; then
51738
51739 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51740         _pkg_short_errors_supported=yes
51741 else
51742         _pkg_short_errors_supported=no
51743 fi
51744         if test $_pkg_short_errors_supported = yes; then
51745                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
51746         else
51747                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
51748         fi
51749         # Put the nasty error message in config.log where it belongs
51750         echo "$GST_PKG_ERRORS" >&5
51751
51752
51753                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
51754 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
51755
51756 elif test $pkg_failed = untried; then
51757
51758                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
51759 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
51760
51761 else
51762         GST_CFLAGS=$pkg_cv_GST_CFLAGS
51763         GST_LIBS=$pkg_cv_GST_LIBS
51764         { echo "$as_me:$LINENO: result: yes" >&5
51765 echo "${ECHO_T}yes" >&6; }
51766         wxUSE_GSTREAMER="yes"
51767 fi
51768         fi
51769
51770
51771         if test "$wxUSE_GSTREAMER" = "yes"; then
51772             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
51773             EXTRALIBS_MEDIA="$GST_LIBS"
51774
51775             cat >>confdefs.h <<\_ACEOF
51776 #define wxUSE_GSTREAMER 1
51777 _ACEOF
51778
51779         else
51780             USE_MEDIA=0
51781         fi
51782     fi
51783
51784     if test $USE_MEDIA = 1; then
51785         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
51786         cat >>confdefs.h <<\_ACEOF
51787 #define wxUSE_MEDIACTRL 1
51788 _ACEOF
51789
51790     else
51791         if test "$wxUSE_MEDIACTRL" = "yes"; then
51792             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
51793 echo "$as_me: error: GStreamer not available" >&2;}
51794    { (exit 1); exit 1; }; }
51795         else
51796                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
51797 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
51798         fi
51799     fi
51800 fi
51801
51802
51803 if test "$cross_compiling" != "no"; then
51804         OSINFO="\"$host\""
51805 else
51806         OSINFO=`uname -s -r -m`
51807     OSINFO="\"$OSINFO\""
51808 fi
51809
51810 cat >>confdefs.h <<_ACEOF
51811 #define WXWIN_OS_DESCRIPTION $OSINFO
51812 _ACEOF
51813
51814
51815
51816 if test "x$prefix" != "xNONE"; then
51817     wxPREFIX=$prefix
51818 else
51819     wxPREFIX=$ac_default_prefix
51820 fi
51821
51822 cat >>confdefs.h <<_ACEOF
51823 #define wxINSTALL_PREFIX "$wxPREFIX"
51824 _ACEOF
51825
51826
51827
51828
51829 STD_BASE_LIBS="base"
51830 STD_GUI_LIBS=""
51831 BUILT_WX_LIBS="base"
51832 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
51833
51834 if test "$wxUSE_SOCKETS" = "yes" ; then
51835     STD_BASE_LIBS="net $STD_BASE_LIBS"
51836     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
51837 fi
51838 if test "$wxUSE_XML" = "yes" ; then
51839     STD_BASE_LIBS="xml $STD_BASE_LIBS"
51840     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
51841 fi
51842
51843 if test "$wxUSE_GUI" = "yes"; then
51844     STD_GUI_LIBS="adv core"
51845     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
51846
51847     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
51848         STD_GUI_LIBS="qa $STD_GUI_LIBS"
51849         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
51850     fi
51851     if test "$wxUSE_HTML" = "yes" ; then
51852         STD_GUI_LIBS="html $STD_GUI_LIBS"
51853         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
51854     fi
51855     if test "$wxUSE_MEDIACTRL" = "yes" ; then
51856         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
51857     fi
51858     if test "$wxUSE_OPENGL" = "yes" ; then
51859         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
51860     fi
51861     if test "$wxUSE_AUI" = "yes" ; then
51862         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
51863     fi
51864     if test "$wxUSE_PROPGRID" = "yes" ; then
51865         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
51866     fi
51867     if test "$wxUSE_RIBBON" = "yes" ; then
51868         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
51869     fi
51870     if test "$wxUSE_RICHTEXT" = "yes" ; then
51871         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
51872     fi
51873     if test "$wxUSE_STC" = "yes" ; then
51874         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
51875     fi
51876     if test "$wxUSE_WEBVIEW" = "yes" ; then
51877         STD_GUI_LIBS="webview $STD_GUI_LIBS"
51878         BUILT_WX_LIBS="webview $BUILT_WX_LIBS"
51879     fi
51880     if test "$wxUSE_XRC" = "yes" ; then
51881         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
51882         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
51883     fi
51884 fi
51885
51886
51887
51888
51889
51890
51891
51892 EXTRA_FRAMEWORKS=
51893 if test "$wxUSE_MAC" = 1 ; then
51894     if test "$USE_DARWIN" = 1; then
51895         if test "$wxUSE_OSX_IPHONE" = 1; then
51896             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
51897         else
51898             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
51899         fi
51900     fi
51901 fi
51902 if test "$wxUSE_OLD_COCOA" = 1 ; then
51903     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
51904     if test "$wxUSE_MEDIACTRL" = "yes"; then
51905         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
51906     fi
51907 fi
51908 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
51909     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
51910 fi
51911
51912 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
51913 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
51914
51915 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
51916
51917 if test "$wxUSE_GUI" = "yes"; then
51918
51919
51920         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
51921                      erase event exec font image minimal render \
51922                      shaped svg taborder vscroll widgets wrapsizer"
51923
51924     if test "$wxUSE_MONOLITHIC" != "yes"; then
51925         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
51926     fi
51927     if test "$TOOLKIT" = "MSW"; then
51928         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
51929         if test "$wxUSE_UNIVERSAL" != "yes"; then
51930             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
51931         fi
51932     fi
51933     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
51934         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
51935     fi
51936 else
51937     SAMPLES_SUBDIRS="console"
51938     if test "$wxUSE_SOCKETS" = "yes" ; then
51939         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
51940     fi
51941     if test "$wxUSE_IPC" = "yes" ; then
51942         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
51943     fi
51944 fi
51945
51946
51947 if test "x$INTELCC" = "xyes" ; then
51948                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
51949 elif test "$GCC" = yes ; then
51950     CWARNINGS="-Wall -Wundef"
51951 fi
51952
51953 if test "x$INTELCXX" = "xyes" ; then
51954                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
51955 elif test "$GXX" = yes ; then
51956     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
51957     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
51958 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
51959 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
51960   echo $ECHO_N "(cached) $ECHO_C" >&6
51961 else
51962   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
51963
51964  ac_ext=cpp
51965 ac_cpp='$CXXCPP $CPPFLAGS'
51966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51969
51970  ac_save_CXXFLAGS="$CXXFLAGS"
51971 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
51972 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
51973    cat >conftest.$ac_ext <<_ACEOF
51974 /* confdefs.h.  */
51975 _ACEOF
51976 cat confdefs.h >>conftest.$ac_ext
51977 cat >>conftest.$ac_ext <<_ACEOF
51978 /* end confdefs.h.  */
51979
51980 int
51981 main ()
51982 {
51983 return 0;
51984   ;
51985   return 0;
51986 }
51987 _ACEOF
51988 rm -f conftest.$ac_objext
51989 if { (ac_try="$ac_compile"
51990 case "(($ac_try" in
51991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51992   *) ac_try_echo=$ac_try;;
51993 esac
51994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51995   (eval "$ac_compile") 2>conftest.er1
51996   ac_status=$?
51997   grep -v '^ *+' conftest.er1 >conftest.err
51998   rm -f conftest.er1
51999   cat conftest.err >&5
52000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52001   (exit $ac_status); } && {
52002          test -z "$ac_cxx_werror_flag" ||
52003          test ! -s conftest.err
52004        } && test -s conftest.$ac_objext; then
52005   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
52006 else
52007   echo "$as_me: failed program was:" >&5
52008 sed 's/^/| /' conftest.$ac_ext >&5
52009
52010
52011 fi
52012
52013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52014 done
52015  CXXFLAGS="$ac_save_CXXFLAGS"
52016  ac_ext=c
52017 ac_cpp='$CPP $CPPFLAGS'
52018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52021
52022
52023 fi
52024 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
52025 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
52026 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
52027      .ok|.ok,*)  ;;
52028    .|.no|.no,*)  ;;
52029    *)
52030    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
52031    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
52032   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
52033   ac_status=$?
52034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52035   (exit $ac_status); }
52036    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
52037   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
52038   ac_status=$?
52039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52040   (exit $ac_status); }
52041                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
52042    fi
52043  ;;
52044 esac
52045
52046
52047                     if test "$wxUSE_MAC" = 1 ; then
52048         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
52049     fi
52050 fi
52051
52052
52053 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
52054 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
52055
52056
52057 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
52058  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
52059  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
52060  $CPPFLAGS `
52061
52062 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
52063 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
52064 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
52065 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
52066 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
52067
52068 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
52069
52070
52071 if test "x$MWCC" = "xyes"; then
52072
52073             CC="$CC -cwd source -I-"
52074     CXX="$CXX -cwd source -I-"
52075 fi
52076
52077
52078 LIBS=`echo $LIBS`
52079 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
52080 EXTRALIBS_XML="$EXPAT_LINK"
52081 EXTRALIBS_HTML="$MSPACK_LINK"
52082 EXTRALIBS_MEDIA="$GST_LIBS"
52083 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
52084 if test "$wxUSE_GUI" = "yes"; then
52085     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
52086 fi
52087 if test "$wxUSE_OPENGL" = "yes"; then
52088     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
52089 fi
52090
52091 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
52092
52093 WXCONFIG_LIBS="$LIBS"
52094
52095 if test "$wxUSE_REGEX" = "builtin" ; then
52096     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
52097 fi
52098 if test "$wxUSE_EXPAT" = "builtin" ; then
52099     wxconfig_3rdparty="expat $wxconfig_3rdparty"
52100 fi
52101 if test "$wxUSE_LIBTIFF" = "builtin" ; then
52102     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
52103 fi
52104 if test "$wxUSE_LIBJPEG" = "builtin" ; then
52105     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
52106 fi
52107 if test "$wxUSE_LIBPNG" = "builtin" ; then
52108     wxconfig_3rdparty="png $wxconfig_3rdparty"
52109 fi
52110 if test "$wxUSE_ZLIB" = "builtin" ; then
52111     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
52112 fi
52113
52114 for i in $wxconfig_3rdparty ; do
52115     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
52116 done
52117
52118
52119 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
52120     WXUNIV=1
52121
52122     case "$wxUNIV_THEMES" in
52123         ''|all)
52124             cat >>confdefs.h <<\_ACEOF
52125 #define wxUSE_ALL_THEMES 1
52126 _ACEOF
52127
52128             ;;
52129
52130         *)
52131             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
52132                 cat >>confdefs.h <<_ACEOF
52133 #define wxUSE_THEME_$t 1
52134 _ACEOF
52135
52136             done
52137     esac
52138 else
52139     WXUNIV=0
52140 fi
52141
52142
52143
52144
52145
52146
52147
52148
52149 if test $wxUSE_MONOLITHIC = "yes" ; then
52150     MONOLITHIC=1
52151 else
52152     MONOLITHIC=0
52153 fi
52154
52155 if test $wxUSE_PLUGINS = "yes" ; then
52156     USE_PLUGINS=1
52157 else
52158     USE_PLUGINS=0
52159 fi
52160
52161 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
52162     USE_QA=1
52163 else
52164     USE_QA=0
52165 fi
52166
52167 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
52168     OFFICIAL_BUILD=1
52169 else
52170     OFFICIAL_BUILD=0
52171 fi
52172
52173
52174
52175
52176
52177
52178
52179
52180
52181
52182
52183
52184
52185
52186
52187
52188
52189
52190
52191
52192
52193
52194
52195
52196
52197
52198
52199 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
52200
52201
52202
52203
52204
52205
52206
52207
52208
52209
52210 case "$TOOLKIT" in
52211     GTK)
52212         TOOLKIT_DESC="GTK+"
52213         if test "$WXGTK2" = 1; then
52214             TOOLKIT_DESC="$TOOLKIT_DESC 2"
52215             if test "$wxUSE_GTKPRINT" = "yes" ; then
52216                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
52217             fi
52218             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
52219                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
52220             fi
52221             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
52222                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
52223             fi
52224             if test "$wxUSE_LIBHILDON" = "yes"; then
52225                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
52226             fi
52227             if test "$wxUSE_LIBHILDON2" = "yes"; then
52228                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
52229             fi
52230
52231             if test "$TOOLKIT_EXTRA" != ""; then
52232                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
52233             fi
52234         fi
52235         ;;
52236
52237     ?*)
52238         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
52239         ;;
52240
52241     *)
52242         TOOLKIT_DESC="base only"
52243         ;;
52244 esac
52245
52246 if test "$wxUSE_WINE" = "yes"; then
52247     BAKEFILE_FORCE_PLATFORM=win32
52248 fi
52249
52250 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
52251 then
52252     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
52253 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
52254 if test "${wx_cv_gcc_pch_bug+set}" = set; then
52255   echo $ECHO_N "(cached) $ECHO_C" >&6
52256 else
52257
52258             echo '#include <stdio.h>
52259                   const wchar_t test_var[] = L"awidetest";' > conftest.h
52260
52261             echo '#include "conftest.h"
52262                   int main()
52263                   {
52264                      printf("%ls", test_var);
52265                      return 0;
52266                   }' > conftest.cpp
52267
52268             wx_cv_gcc_pch_bug="pch not supported"
52269
52270             if $CXX conftest.h >/dev/null 2>&1
52271             then
52272                 wx_cv_gcc_pch_bug=
52273
52274                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
52275                 then
52276                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
52277                         grep awidetest >/dev/null
52278                     then
52279                         wx_cv_gcc_pch_bug=no
52280                     else
52281                         wx_cv_gcc_pch_bug=yes
52282                     fi
52283                 fi
52284             fi
52285
52286             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
52287
52288 fi
52289 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
52290 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
52291
52292     if test "$wx_cv_gcc_pch_bug" = yes; then
52293                         bk_use_pch=no
52294     fi
52295 fi
52296
52297
52298
52299
52300
52301
52302
52303     if test "x$BAKEFILE_HOST" = "x"; then
52304                if test "x${host}" = "x" ; then
52305                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
52306 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
52307    { (exit 1); exit 1; }; }
52308                fi
52309
52310         BAKEFILE_HOST="${host}"
52311     fi
52312
52313     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
52314
52315     if test -n "$ac_tool_prefix"; then
52316   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
52317 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
52318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52320 if test "${ac_cv_prog_RANLIB+set}" = set; then
52321   echo $ECHO_N "(cached) $ECHO_C" >&6
52322 else
52323   if test -n "$RANLIB"; then
52324   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
52325 else
52326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52327 for as_dir in $PATH
52328 do
52329   IFS=$as_save_IFS
52330   test -z "$as_dir" && as_dir=.
52331   for ac_exec_ext in '' $ac_executable_extensions; do
52332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52333     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
52334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52335     break 2
52336   fi
52337 done
52338 done
52339 IFS=$as_save_IFS
52340
52341 fi
52342 fi
52343 RANLIB=$ac_cv_prog_RANLIB
52344 if test -n "$RANLIB"; then
52345   { echo "$as_me:$LINENO: result: $RANLIB" >&5
52346 echo "${ECHO_T}$RANLIB" >&6; }
52347 else
52348   { echo "$as_me:$LINENO: result: no" >&5
52349 echo "${ECHO_T}no" >&6; }
52350 fi
52351
52352
52353 fi
52354 if test -z "$ac_cv_prog_RANLIB"; then
52355   ac_ct_RANLIB=$RANLIB
52356   # Extract the first word of "ranlib", so it can be a program name with args.
52357 set dummy ranlib; ac_word=$2
52358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52360 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
52361   echo $ECHO_N "(cached) $ECHO_C" >&6
52362 else
52363   if test -n "$ac_ct_RANLIB"; then
52364   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
52365 else
52366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52367 for as_dir in $PATH
52368 do
52369   IFS=$as_save_IFS
52370   test -z "$as_dir" && as_dir=.
52371   for ac_exec_ext in '' $ac_executable_extensions; do
52372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52373     ac_cv_prog_ac_ct_RANLIB="ranlib"
52374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52375     break 2
52376   fi
52377 done
52378 done
52379 IFS=$as_save_IFS
52380
52381 fi
52382 fi
52383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
52384 if test -n "$ac_ct_RANLIB"; then
52385   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
52386 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
52387 else
52388   { echo "$as_me:$LINENO: result: no" >&5
52389 echo "${ECHO_T}no" >&6; }
52390 fi
52391
52392   if test "x$ac_ct_RANLIB" = x; then
52393     RANLIB=":"
52394   else
52395     case $cross_compiling:$ac_tool_warned in
52396 yes:)
52397 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52398 whose name does not start with the host triplet.  If you think this
52399 configuration is useful to you, please write to autoconf@gnu.org." >&5
52400 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52401 whose name does not start with the host triplet.  If you think this
52402 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52403 ac_tool_warned=yes ;;
52404 esac
52405     RANLIB=$ac_ct_RANLIB
52406   fi
52407 else
52408   RANLIB="$ac_cv_prog_RANLIB"
52409 fi
52410
52411     # Find a good install program.  We prefer a C program (faster),
52412 # so one script is as good as another.  But avoid the broken or
52413 # incompatible versions:
52414 # SysV /etc/install, /usr/sbin/install
52415 # SunOS /usr/etc/install
52416 # IRIX /sbin/install
52417 # AIX /bin/install
52418 # AmigaOS /C/install, which installs bootblocks on floppy discs
52419 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
52420 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
52421 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
52422 # OS/2's system install, which has a completely different semantic
52423 # ./install, which can be erroneously created by make from ./install.sh.
52424 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
52425 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
52426 if test -z "$INSTALL"; then
52427 if test "${ac_cv_path_install+set}" = set; then
52428   echo $ECHO_N "(cached) $ECHO_C" >&6
52429 else
52430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52431 for as_dir in $PATH
52432 do
52433   IFS=$as_save_IFS
52434   test -z "$as_dir" && as_dir=.
52435   # Account for people who put trailing slashes in PATH elements.
52436 case $as_dir/ in
52437   ./ | .// | /cC/* | \
52438   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
52439   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
52440   /usr/ucb/* ) ;;
52441   *)
52442     # OSF1 and SCO ODT 3.0 have their own names for install.
52443     # Don't use installbsd from OSF since it installs stuff as root
52444     # by default.
52445     for ac_prog in ginstall scoinst install; do
52446       for ac_exec_ext in '' $ac_executable_extensions; do
52447         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
52448           if test $ac_prog = install &&
52449             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
52450             # AIX install.  It has an incompatible calling convention.
52451             :
52452           elif test $ac_prog = install &&
52453             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
52454             # program-specific install script used by HP pwplus--don't use.
52455             :
52456           else
52457             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
52458             break 3
52459           fi
52460         fi
52461       done
52462     done
52463     ;;
52464 esac
52465 done
52466 IFS=$as_save_IFS
52467
52468
52469 fi
52470   if test "${ac_cv_path_install+set}" = set; then
52471     INSTALL=$ac_cv_path_install
52472   else
52473     # As a last resort, use the slow shell script.  Don't cache a
52474     # value for INSTALL within a source directory, because that will
52475     # break other packages using the cache if that directory is
52476     # removed, or if the value is a relative name.
52477     INSTALL=$ac_install_sh
52478   fi
52479 fi
52480 { echo "$as_me:$LINENO: result: $INSTALL" >&5
52481 echo "${ECHO_T}$INSTALL" >&6; }
52482
52483 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
52484 # It thinks the first close brace ends the variable substitution.
52485 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
52486
52487 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
52488
52489 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
52490
52491     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
52492 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
52493 LN_S=$as_ln_s
52494 if test "$LN_S" = "ln -s"; then
52495   { echo "$as_me:$LINENO: result: yes" >&5
52496 echo "${ECHO_T}yes" >&6; }
52497 else
52498   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
52499 echo "${ECHO_T}no, using $LN_S" >&6; }
52500 fi
52501
52502
52503     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52504 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52505 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52506 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52507   echo $ECHO_N "(cached) $ECHO_C" >&6
52508 else
52509   cat >conftest.make <<\_ACEOF
52510 SHELL = /bin/sh
52511 all:
52512         @echo '@@@%%%=$(MAKE)=@@@%%%'
52513 _ACEOF
52514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52516   *@@@%%%=?*=@@@%%%*)
52517     eval ac_cv_prog_make_${ac_make}_set=yes;;
52518   *)
52519     eval ac_cv_prog_make_${ac_make}_set=no;;
52520 esac
52521 rm -f conftest.make
52522 fi
52523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52524   { echo "$as_me:$LINENO: result: yes" >&5
52525 echo "${ECHO_T}yes" >&6; }
52526   SET_MAKE=
52527 else
52528   { echo "$as_me:$LINENO: result: no" >&5
52529 echo "${ECHO_T}no" >&6; }
52530   SET_MAKE="MAKE=${MAKE-make}"
52531 fi
52532
52533
52534
52535     if test "x$SUNCXX" = "xyes"; then
52536                                 AR=$CXX
52537         AROPTIONS="-xar -o"
52538
52539     elif test "x$SGICC" = "xyes"; then
52540                 AR=$CXX
52541         AROPTIONS="-ar -o"
52542
52543     else
52544         if test -n "$ac_tool_prefix"; then
52545   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
52546 set dummy ${ac_tool_prefix}ar; ac_word=$2
52547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52549 if test "${ac_cv_prog_AR+set}" = set; then
52550   echo $ECHO_N "(cached) $ECHO_C" >&6
52551 else
52552   if test -n "$AR"; then
52553   ac_cv_prog_AR="$AR" # Let the user override the test.
52554 else
52555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52556 for as_dir in $PATH
52557 do
52558   IFS=$as_save_IFS
52559   test -z "$as_dir" && as_dir=.
52560   for ac_exec_ext in '' $ac_executable_extensions; do
52561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52562     ac_cv_prog_AR="${ac_tool_prefix}ar"
52563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52564     break 2
52565   fi
52566 done
52567 done
52568 IFS=$as_save_IFS
52569
52570 fi
52571 fi
52572 AR=$ac_cv_prog_AR
52573 if test -n "$AR"; then
52574   { echo "$as_me:$LINENO: result: $AR" >&5
52575 echo "${ECHO_T}$AR" >&6; }
52576 else
52577   { echo "$as_me:$LINENO: result: no" >&5
52578 echo "${ECHO_T}no" >&6; }
52579 fi
52580
52581
52582 fi
52583 if test -z "$ac_cv_prog_AR"; then
52584   ac_ct_AR=$AR
52585   # Extract the first word of "ar", so it can be a program name with args.
52586 set dummy ar; ac_word=$2
52587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52589 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
52590   echo $ECHO_N "(cached) $ECHO_C" >&6
52591 else
52592   if test -n "$ac_ct_AR"; then
52593   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
52594 else
52595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52596 for as_dir in $PATH
52597 do
52598   IFS=$as_save_IFS
52599   test -z "$as_dir" && as_dir=.
52600   for ac_exec_ext in '' $ac_executable_extensions; do
52601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52602     ac_cv_prog_ac_ct_AR="ar"
52603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52604     break 2
52605   fi
52606 done
52607 done
52608 IFS=$as_save_IFS
52609
52610 fi
52611 fi
52612 ac_ct_AR=$ac_cv_prog_ac_ct_AR
52613 if test -n "$ac_ct_AR"; then
52614   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
52615 echo "${ECHO_T}$ac_ct_AR" >&6; }
52616 else
52617   { echo "$as_me:$LINENO: result: no" >&5
52618 echo "${ECHO_T}no" >&6; }
52619 fi
52620
52621   if test "x$ac_ct_AR" = x; then
52622     AR="ar"
52623   else
52624     case $cross_compiling:$ac_tool_warned in
52625 yes:)
52626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52627 whose name does not start with the host triplet.  If you think this
52628 configuration is useful to you, please write to autoconf@gnu.org." >&5
52629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52630 whose name does not start with the host triplet.  If you think this
52631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52632 ac_tool_warned=yes ;;
52633 esac
52634     AR=$ac_ct_AR
52635   fi
52636 else
52637   AR="$ac_cv_prog_AR"
52638 fi
52639
52640         AROPTIONS=rcu
52641     fi
52642
52643
52644     if test -n "$ac_tool_prefix"; then
52645   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
52646 set dummy ${ac_tool_prefix}strip; ac_word=$2
52647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52649 if test "${ac_cv_prog_STRIP+set}" = set; then
52650   echo $ECHO_N "(cached) $ECHO_C" >&6
52651 else
52652   if test -n "$STRIP"; then
52653   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
52654 else
52655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52656 for as_dir in $PATH
52657 do
52658   IFS=$as_save_IFS
52659   test -z "$as_dir" && as_dir=.
52660   for ac_exec_ext in '' $ac_executable_extensions; do
52661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52662     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
52663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52664     break 2
52665   fi
52666 done
52667 done
52668 IFS=$as_save_IFS
52669
52670 fi
52671 fi
52672 STRIP=$ac_cv_prog_STRIP
52673 if test -n "$STRIP"; then
52674   { echo "$as_me:$LINENO: result: $STRIP" >&5
52675 echo "${ECHO_T}$STRIP" >&6; }
52676 else
52677   { echo "$as_me:$LINENO: result: no" >&5
52678 echo "${ECHO_T}no" >&6; }
52679 fi
52680
52681
52682 fi
52683 if test -z "$ac_cv_prog_STRIP"; then
52684   ac_ct_STRIP=$STRIP
52685   # Extract the first word of "strip", so it can be a program name with args.
52686 set dummy strip; ac_word=$2
52687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52689 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
52690   echo $ECHO_N "(cached) $ECHO_C" >&6
52691 else
52692   if test -n "$ac_ct_STRIP"; then
52693   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
52694 else
52695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52696 for as_dir in $PATH
52697 do
52698   IFS=$as_save_IFS
52699   test -z "$as_dir" && as_dir=.
52700   for ac_exec_ext in '' $ac_executable_extensions; do
52701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52702     ac_cv_prog_ac_ct_STRIP="strip"
52703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52704     break 2
52705   fi
52706 done
52707 done
52708 IFS=$as_save_IFS
52709
52710 fi
52711 fi
52712 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
52713 if test -n "$ac_ct_STRIP"; then
52714   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
52715 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
52716 else
52717   { echo "$as_me:$LINENO: result: no" >&5
52718 echo "${ECHO_T}no" >&6; }
52719 fi
52720
52721   if test "x$ac_ct_STRIP" = x; then
52722     STRIP=":"
52723   else
52724     case $cross_compiling:$ac_tool_warned in
52725 yes:)
52726 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52727 whose name does not start with the host triplet.  If you think this
52728 configuration is useful to you, please write to autoconf@gnu.org." >&5
52729 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52730 whose name does not start with the host triplet.  If you think this
52731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52732 ac_tool_warned=yes ;;
52733 esac
52734     STRIP=$ac_ct_STRIP
52735   fi
52736 else
52737   STRIP="$ac_cv_prog_STRIP"
52738 fi
52739
52740     if test -n "$ac_tool_prefix"; then
52741   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
52742 set dummy ${ac_tool_prefix}nm; ac_word=$2
52743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52745 if test "${ac_cv_prog_NM+set}" = set; then
52746   echo $ECHO_N "(cached) $ECHO_C" >&6
52747 else
52748   if test -n "$NM"; then
52749   ac_cv_prog_NM="$NM" # Let the user override the test.
52750 else
52751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52752 for as_dir in $PATH
52753 do
52754   IFS=$as_save_IFS
52755   test -z "$as_dir" && as_dir=.
52756   for ac_exec_ext in '' $ac_executable_extensions; do
52757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52758     ac_cv_prog_NM="${ac_tool_prefix}nm"
52759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52760     break 2
52761   fi
52762 done
52763 done
52764 IFS=$as_save_IFS
52765
52766 fi
52767 fi
52768 NM=$ac_cv_prog_NM
52769 if test -n "$NM"; then
52770   { echo "$as_me:$LINENO: result: $NM" >&5
52771 echo "${ECHO_T}$NM" >&6; }
52772 else
52773   { echo "$as_me:$LINENO: result: no" >&5
52774 echo "${ECHO_T}no" >&6; }
52775 fi
52776
52777
52778 fi
52779 if test -z "$ac_cv_prog_NM"; then
52780   ac_ct_NM=$NM
52781   # Extract the first word of "nm", so it can be a program name with args.
52782 set dummy nm; ac_word=$2
52783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52785 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
52786   echo $ECHO_N "(cached) $ECHO_C" >&6
52787 else
52788   if test -n "$ac_ct_NM"; then
52789   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
52790 else
52791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52792 for as_dir in $PATH
52793 do
52794   IFS=$as_save_IFS
52795   test -z "$as_dir" && as_dir=.
52796   for ac_exec_ext in '' $ac_executable_extensions; do
52797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52798     ac_cv_prog_ac_ct_NM="nm"
52799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52800     break 2
52801   fi
52802 done
52803 done
52804 IFS=$as_save_IFS
52805
52806 fi
52807 fi
52808 ac_ct_NM=$ac_cv_prog_ac_ct_NM
52809 if test -n "$ac_ct_NM"; then
52810   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
52811 echo "${ECHO_T}$ac_ct_NM" >&6; }
52812 else
52813   { echo "$as_me:$LINENO: result: no" >&5
52814 echo "${ECHO_T}no" >&6; }
52815 fi
52816
52817   if test "x$ac_ct_NM" = x; then
52818     NM=":"
52819   else
52820     case $cross_compiling:$ac_tool_warned in
52821 yes:)
52822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52823 whose name does not start with the host triplet.  If you think this
52824 configuration is useful to you, please write to autoconf@gnu.org." >&5
52825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52826 whose name does not start with the host triplet.  If you think this
52827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52828 ac_tool_warned=yes ;;
52829 esac
52830     NM=$ac_ct_NM
52831   fi
52832 else
52833   NM="$ac_cv_prog_NM"
52834 fi
52835
52836
52837         INSTALL_DIR="mkdir -p"
52838
52839
52840     LDFLAGS_GUI=
52841     case ${BAKEFILE_HOST} in
52842         *-*-cygwin* | *-*-mingw32* )
52843         LDFLAGS_GUI="-mwindows"
52844     esac
52845
52846
52847     fi
52848
52849         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
52850 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
52851 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
52852   echo $ECHO_N "(cached) $ECHO_C" >&6
52853 else
52854
52855         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
52856                 egrep -s GNU > /dev/null); then
52857             bakefile_cv_prog_makeisgnu="yes"
52858         else
52859             bakefile_cv_prog_makeisgnu="no"
52860         fi
52861
52862 fi
52863 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
52864 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
52865
52866     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
52867         IF_GNU_MAKE=""
52868     else
52869         IF_GNU_MAKE="#"
52870     fi
52871
52872
52873
52874     PLATFORM_UNIX=0
52875     PLATFORM_WIN32=0
52876     PLATFORM_MSDOS=0
52877     PLATFORM_MAC=0
52878     PLATFORM_MACOS=0
52879     PLATFORM_MACOSX=0
52880     PLATFORM_OS2=0
52881     PLATFORM_BEOS=0
52882
52883     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
52884         case "${BAKEFILE_HOST}" in
52885             *-*-mingw32* )
52886                 PLATFORM_WIN32=1
52887             ;;
52888             *-pc-msdosdjgpp )
52889                 PLATFORM_MSDOS=1
52890             ;;
52891             *-pc-os2_emx | *-pc-os2-emx )
52892                 PLATFORM_OS2=1
52893             ;;
52894             *-*-darwin* )
52895                 PLATFORM_MAC=1
52896                 PLATFORM_MACOSX=1
52897             ;;
52898             *-*-beos* )
52899                 PLATFORM_BEOS=1
52900             ;;
52901             powerpc-apple-macos* )
52902                 PLATFORM_MAC=1
52903                 PLATFORM_MACOS=1
52904             ;;
52905             * )
52906                 PLATFORM_UNIX=1
52907             ;;
52908         esac
52909     else
52910         case "$BAKEFILE_FORCE_PLATFORM" in
52911             win32 )
52912                 PLATFORM_WIN32=1
52913             ;;
52914             msdos )
52915                 PLATFORM_MSDOS=1
52916             ;;
52917             os2 )
52918                 PLATFORM_OS2=1
52919             ;;
52920             darwin )
52921                 PLATFORM_MAC=1
52922                 PLATFORM_MACOSX=1
52923             ;;
52924             unix )
52925                 PLATFORM_UNIX=1
52926             ;;
52927             beos )
52928                 PLATFORM_BEOS=1
52929             ;;
52930             * )
52931                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
52932 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
52933    { (exit 1); exit 1; }; }
52934             ;;
52935         esac
52936     fi
52937
52938
52939
52940
52941
52942
52943
52944
52945
52946
52947
52948     # Check whether --enable-omf was given.
52949 if test "${enable_omf+set}" = set; then
52950   enableval=$enable_omf; bk_os2_use_omf="$enableval"
52951 fi
52952
52953
52954     case "${BAKEFILE_HOST}" in
52955       *-*-darwin* )
52956                         if test "x$GCC" = "xyes"; then
52957             CFLAGS="$CFLAGS -fno-common"
52958             CXXFLAGS="$CXXFLAGS -fno-common"
52959         fi
52960         if test "x$XLCC" = "xyes"; then
52961             CFLAGS="$CFLAGS -qnocommon"
52962             CXXFLAGS="$CXXFLAGS -qnocommon"
52963         fi
52964         ;;
52965
52966       *-pc-os2_emx | *-pc-os2-emx )
52967         if test "x$bk_os2_use_omf" = "xyes" ; then
52968             AR=emxomfar
52969             RANLIB=:
52970             LDFLAGS="-Zomf $LDFLAGS"
52971             CFLAGS="-Zomf $CFLAGS"
52972             CXXFLAGS="-Zomf $CXXFLAGS"
52973             OS2_LIBEXT="lib"
52974         else
52975             OS2_LIBEXT="a"
52976         fi
52977         ;;
52978
52979       i*86-*-beos* )
52980         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
52981         ;;
52982     esac
52983
52984
52985     SO_SUFFIX="so"
52986     SO_SUFFIX_MODULE="so"
52987     EXEEXT=""
52988     LIBPREFIX="lib"
52989     LIBEXT=".a"
52990     DLLPREFIX="lib"
52991     DLLPREFIX_MODULE=""
52992     DLLIMP_SUFFIX=""
52993     dlldir="$libdir"
52994
52995     case "${BAKEFILE_HOST}" in
52996                         ia64-hp-hpux* )
52997         ;;
52998         *-hp-hpux* )
52999             SO_SUFFIX="sl"
53000             SO_SUFFIX_MODULE="sl"
53001         ;;
53002         *-*-aix* )
53003                                                                         SO_SUFFIX="a"
53004             SO_SUFFIX_MODULE="a"
53005         ;;
53006         *-*-cygwin* )
53007             SO_SUFFIX="dll"
53008             SO_SUFFIX_MODULE="dll"
53009             DLLIMP_SUFFIX="dll.a"
53010             EXEEXT=".exe"
53011             DLLPREFIX="cyg"
53012             dlldir="$bindir"
53013         ;;
53014         *-*-mingw32* )
53015             SO_SUFFIX="dll"
53016             SO_SUFFIX_MODULE="dll"
53017             DLLIMP_SUFFIX="dll.a"
53018             EXEEXT=".exe"
53019             DLLPREFIX=""
53020             dlldir="$bindir"
53021         ;;
53022         *-pc-msdosdjgpp )
53023             EXEEXT=".exe"
53024             DLLPREFIX=""
53025             dlldir="$bindir"
53026         ;;
53027         *-pc-os2_emx | *-pc-os2-emx )
53028             SO_SUFFIX="dll"
53029             SO_SUFFIX_MODULE="dll"
53030             DLLIMP_SUFFIX=$OS2_LIBEXT
53031             EXEEXT=".exe"
53032             DLLPREFIX=""
53033             LIBPREFIX=""
53034             LIBEXT=".$OS2_LIBEXT"
53035             dlldir="$bindir"
53036         ;;
53037         *-*-darwin* )
53038             SO_SUFFIX="dylib"
53039             SO_SUFFIX_MODULE="bundle"
53040         ;;
53041     esac
53042
53043     if test "x$DLLIMP_SUFFIX" = "x" ; then
53044         DLLIMP_SUFFIX="$SO_SUFFIX"
53045     fi
53046
53047
53048
53049
53050
53051
53052
53053
53054
53055
53056
53057
53058         PIC_FLAG=""
53059     if test "x$GCC" = "xyes"; then
53060                 PIC_FLAG="-fPIC"
53061     fi
53062
53063         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
53064     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
53065     WINDOWS_IMPLIB=0
53066
53067     case "${BAKEFILE_HOST}" in
53068       *-hp-hpux* )
53069                 if test "x$GCC" != "xyes"; then
53070                         LDFLAGS="$LDFLAGS -L/usr/lib"
53071
53072             SHARED_LD_CC="${CC} -b -o"
53073             SHARED_LD_CXX="${CXX} -b -o"
53074             PIC_FLAG="+Z"
53075         fi
53076       ;;
53077
53078       *-*-linux* )
53079                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
53080             PIC_FLAG="-KPIC"
53081         elif test "x$SUNCXX" = "xyes"; then
53082             SHARED_LD_CC="${CC} -G -o"
53083             SHARED_LD_CXX="${CXX} -G -o"
53084             PIC_FLAG="-KPIC"
53085         fi
53086       ;;
53087
53088       *-*-solaris2* )
53089         if test "x$SUNCXX" = xyes ; then
53090             SHARED_LD_CC="${CC} -G -o"
53091             SHARED_LD_CXX="${CXX} -G -o"
53092             PIC_FLAG="-KPIC"
53093         fi
53094       ;;
53095
53096       *-*-darwin* )
53097
53098 D='$'
53099 cat <<EOF >shared-ld-sh
53100 #!/bin/sh
53101 #-----------------------------------------------------------------------------
53102 #-- Name:        distrib/mac/shared-ld-sh
53103 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
53104 #-- Author:      Gilles Depeyrot
53105 #-- Copyright:   (c) 2002 Gilles Depeyrot
53106 #-- Licence:     any use permitted
53107 #-----------------------------------------------------------------------------
53108
53109 verbose=0
53110 args=""
53111 objects=""
53112 linking_flag="-dynamiclib"
53113 ldargs="-r -keep_private_externs -nostdlib"
53114
53115 if test "x${D}CXX" = "x"; then
53116     CXX="c++"
53117 fi
53118
53119 while test ${D}# -gt 0; do
53120     case ${D}1 in
53121
53122        -v)
53123         verbose=1
53124         ;;
53125
53126        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
53127         # collect these options and values
53128         args="${D}{args} ${D}1 ${D}2"
53129         shift
53130         ;;
53131
53132        -arch|-isysroot)
53133         # collect these options and values
53134         ldargs="${D}{ldargs} ${D}1 ${D}2"
53135         shift
53136         ;;
53137
53138        -s|-Wl,*)
53139         # collect these load args
53140         ldargs="${D}{ldargs} ${D}1"
53141         ;;
53142
53143        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
53144         # collect these options
53145         args="${D}{args} ${D}1"
53146         ;;
53147
53148        -dynamiclib|-bundle)
53149         linking_flag="${D}1"
53150         ;;
53151
53152        -*)
53153         echo "shared-ld: unhandled option '${D}1'"
53154         exit 1
53155         ;;
53156
53157         *.o | *.a | *.dylib)
53158         # collect object files
53159         objects="${D}{objects} ${D}1"
53160         ;;
53161
53162         *)
53163         echo "shared-ld: unhandled argument '${D}1'"
53164         exit 1
53165         ;;
53166
53167     esac
53168     shift
53169 done
53170
53171 status=0
53172
53173 #
53174 # Link one module containing all the others
53175 #
53176 if test ${D}{verbose} = 1; then
53177     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
53178 fi
53179 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
53180 status=${D}?
53181
53182 #
53183 # Link the shared library from the single module created, but only if the
53184 # previous command didn't fail:
53185 #
53186 if test ${D}{status} = 0; then
53187     if test ${D}{verbose} = 1; then
53188         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
53189     fi
53190     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
53191     status=${D}?
53192 fi
53193
53194 #
53195 # Remove intermediate module
53196 #
53197 rm -f master.${D}${D}.o
53198
53199 exit ${D}status
53200 EOF
53201
53202         chmod +x shared-ld-sh
53203
53204         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
53205         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
53206
53207
53208                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
53209 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
53210 if test "${bakefile_cv_gcc31+set}" = set; then
53211   echo $ECHO_N "(cached) $ECHO_C" >&6
53212 else
53213
53214            cat >conftest.$ac_ext <<_ACEOF
53215 /* confdefs.h.  */
53216 _ACEOF
53217 cat confdefs.h >>conftest.$ac_ext
53218 cat >>conftest.$ac_ext <<_ACEOF
53219 /* end confdefs.h.  */
53220
53221 int
53222 main ()
53223 {
53224
53225                    #if (__GNUC__ < 3) || \
53226                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
53227                        This is old gcc
53228                    #endif
53229
53230   ;
53231   return 0;
53232 }
53233 _ACEOF
53234 rm -f conftest.$ac_objext
53235 if { (ac_try="$ac_compile"
53236 case "(($ac_try" in
53237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53238   *) ac_try_echo=$ac_try;;
53239 esac
53240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53241   (eval "$ac_compile") 2>conftest.er1
53242   ac_status=$?
53243   grep -v '^ *+' conftest.er1 >conftest.err
53244   rm -f conftest.er1
53245   cat conftest.err >&5
53246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53247   (exit $ac_status); } && {
53248          test -z "$ac_c_werror_flag" ||
53249          test ! -s conftest.err
53250        } && test -s conftest.$ac_objext; then
53251
53252                    bakefile_cv_gcc31=yes
53253
53254 else
53255   echo "$as_me: failed program was:" >&5
53256 sed 's/^/| /' conftest.$ac_ext >&5
53257
53258
53259                    bakefile_cv_gcc31=no
53260
53261
53262 fi
53263
53264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53265
53266 fi
53267 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
53268 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
53269         if test "$bakefile_cv_gcc31" = "no"; then
53270                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
53271             SHARED_LD_CXX="$SHARED_LD_CC"
53272         else
53273                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
53274             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
53275         fi
53276
53277         if test "x$GCC" == "xyes"; then
53278             PIC_FLAG="-dynamic -fPIC"
53279         fi
53280         if test "x$XLCC" = "xyes"; then
53281             PIC_FLAG="-dynamic -DPIC"
53282         fi
53283       ;;
53284
53285       *-*-aix* )
53286         if test "x$GCC" = "xyes"; then
53287                                                             PIC_FLAG=""
53288
53289                                                                                     case "${BAKEFILE_HOST}" in
53290                 *-*-aix5* )
53291                     LD_EXPFULL="-Wl,-bexpfull"
53292                     ;;
53293             esac
53294
53295             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
53296             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
53297         else
53298                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
53299 set dummy makeC++SharedLib; ac_word=$2
53300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53302 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
53303   echo $ECHO_N "(cached) $ECHO_C" >&6
53304 else
53305   if test -n "$AIX_CXX_LD"; then
53306   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
53307 else
53308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53309 for as_dir in $PATH
53310 do
53311   IFS=$as_save_IFS
53312   test -z "$as_dir" && as_dir=.
53313   for ac_exec_ext in '' $ac_executable_extensions; do
53314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53315     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
53316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53317     break 2
53318   fi
53319 done
53320 done
53321 IFS=$as_save_IFS
53322
53323   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
53324 fi
53325 fi
53326 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
53327 if test -n "$AIX_CXX_LD"; then
53328   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
53329 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
53330 else
53331   { echo "$as_me:$LINENO: result: no" >&5
53332 echo "${ECHO_T}no" >&6; }
53333 fi
53334
53335
53336             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
53337             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
53338         fi
53339       ;;
53340
53341       *-*-beos* )
53342                         SHARED_LD_CC="${LD} -nostart -o"
53343         SHARED_LD_CXX="${LD} -nostart -o"
53344       ;;
53345
53346       *-*-irix* )
53347                 if test "x$GCC" != "xyes"; then
53348             PIC_FLAG="-KPIC"
53349         fi
53350       ;;
53351
53352       *-*-cygwin* | *-*-mingw32* )
53353         PIC_FLAG=""
53354         SHARED_LD_CC="\$(CC) -shared -o"
53355         SHARED_LD_CXX="\$(CXX) -shared -o"
53356         WINDOWS_IMPLIB=1
53357       ;;
53358
53359       *-pc-os2_emx | *-pc-os2-emx )
53360         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53361         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53362         PIC_FLAG=""
53363
53364 D='$'
53365 cat <<EOF >dllar.sh
53366 #!/bin/sh
53367 #
53368 # dllar - a tool to build both a .dll and an .a file
53369 # from a set of object (.o) files for EMX/OS2.
53370 #
53371 #  Written by Andrew Zabolotny, bit@freya.etu.ru
53372 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
53373 #
53374 #  This script will accept a set of files on the command line.
53375 #  All the public symbols from the .o files will be exported into
53376 #  a .DEF file, then linker will be run (through gcc) against them to
53377 #  build a shared library consisting of all given .o files. All libraries
53378 #  (.a) will be first decompressed into component .o files then act as
53379 #  described above. You can optionally give a description (-d "description")
53380 #  which will be put into .DLL. To see the list of accepted options (as well
53381 #  as command-line format) simply run this program without options. The .DLL
53382 #  is built to be imported by name (there is no guarantee that new versions
53383 #  of the library you build will have same ordinals for same symbols).
53384 #
53385 #  dllar is free software; you can redistribute it and/or modify
53386 #  it under the terms of the GNU General Public License as published by
53387 #  the Free Software Foundation; either version 2, or (at your option)
53388 #  any later version.
53389 #
53390 #  dllar is distributed in the hope that it will be useful,
53391 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
53392 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
53393 #  GNU General Public License for more details.
53394 #
53395 #  You should have received a copy of the GNU General Public License
53396 #  along with dllar; see the file COPYING.  If not, write to the Free
53397 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
53398 #  02111-1307, USA.
53399
53400 # To successfuly run this program you will need:
53401 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
53402 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
53403 #  - gcc
53404 #    (used to build the .dll)
53405 #  - emxexp
53406 #    (used to create .def file from .o files)
53407 #  - emximp
53408 #    (used to create .a file from .def file)
53409 #  - GNU text utilites (cat, sort, uniq)
53410 #    used to process emxexp output
53411 #  - GNU file utilities (mv, rm)
53412 #  - GNU sed
53413 #  - lxlite (optional, see flag below)
53414 #    (used for general .dll cleanup)
53415 #
53416
53417 flag_USE_LXLITE=1;
53418
53419 #
53420 # helper functions
53421 # basnam, variant of basename, which does _not_ remove the path, _iff_
53422 #                              second argument (suffix to remove) is given
53423 basnam(){
53424     case ${D}# in
53425     1)
53426         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
53427         ;;
53428     2)
53429         echo ${D}1 | sed 's/'${D}2'${D}//'
53430         ;;
53431     *)
53432         echo "error in basnam ${D}*"
53433         exit 8
53434         ;;
53435     esac
53436 }
53437
53438 # Cleanup temporary files and output
53439 CleanUp() {
53440     cd ${D}curDir
53441     for i in ${D}inputFiles ; do
53442         case ${D}i in
53443         *!)
53444             rm -rf \`basnam ${D}i !\`
53445             ;;
53446         *)
53447             ;;
53448         esac
53449     done
53450
53451     # Kill result in case of failure as there is just to many stupid make/nmake
53452     # things out there which doesn't do this.
53453     if [ ${D}# -eq 0 ]; then
53454         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
53455     fi
53456 }
53457
53458 # Print usage and exit script with rc=1.
53459 PrintHelp() {
53460  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
53461  echo '       [-name-mangler-script script.sh]'
53462  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
53463  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
53464  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
53465  echo '       [*.o] [*.a]'
53466  echo '*> "output_file" should have no extension.'
53467  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
53468  echo '   The import library name is derived from this and is set to "name".a,'
53469  echo '   unless overridden by -import'
53470  echo '*> "importlib_name" should have no extension.'
53471  echo '   If it has the .o, or .a extension, it is automatically removed.'
53472  echo '   This name is used as the import library name and may be longer and'
53473  echo '   more descriptive than the DLL name which has to follow the old '
53474  echo '   8.3 convention of FAT.'
53475  echo '*> "script.sh may be given to override the output_file name by a'
53476  echo '   different name. It is mainly useful if the regular make process'
53477  echo '   of some package does not take into account OS/2 restriction of'
53478  echo '   DLL name lengths. It takes the importlib name as input and is'
53479  echo '   supposed to procude a shorter name as output. The script should'
53480  echo '   expect to get importlib_name without extension and should produce'
53481  echo '   a (max.) 8 letter name without extension.'
53482  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
53483  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
53484  echo '   These flags will be put at the start of GCC command line.'
53485  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
53486  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
53487  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
53488  echo '   If the last character of a symbol is "*", all symbols beginning'
53489  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
53490  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
53491  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
53492  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
53493  echo '   C runtime DLLs.'
53494  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
53495  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
53496  echo '   unchanged to GCC at the end of command line.'
53497  echo '*> If you create a DLL from a library and you do not specify -o,'
53498  echo '   the basename for DLL and import library will be set to library name,'
53499  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
53500  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
53501  echo '   library will be renamed into gcc_s.a.'
53502  echo '--------'
53503  echo 'Example:'
53504  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
53505  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
53506  CleanUp
53507  exit 1
53508 }
53509
53510 # Execute a command.
53511 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
53512 # @Uses    Whatever CleanUp() uses.
53513 doCommand() {
53514     echo "${D}*"
53515     eval ${D}*
53516     rcCmd=${D}?
53517
53518     if [ ${D}rcCmd -ne 0 ]; then
53519         echo "command failed, exit code="${D}rcCmd
53520         CleanUp
53521         exit ${D}rcCmd
53522     fi
53523 }
53524
53525 # main routine
53526 # setup globals
53527 cmdLine=${D}*
53528 outFile=""
53529 outimpFile=""
53530 inputFiles=""
53531 renameScript=""
53532 description=""
53533 CC=gcc.exe
53534 CFLAGS="-s -Zcrtdll"
53535 EXTRA_CFLAGS=""
53536 EXPORT_BY_ORDINALS=0
53537 exclude_symbols=""
53538 library_flags=""
53539 curDir=\`pwd\`
53540 curDirS=curDir
53541 case ${D}curDirS in
53542 */)
53543   ;;
53544 *)
53545   curDirS=${D}{curDirS}"/"
53546   ;;
53547 esac
53548 # Parse commandline
53549 libsToLink=0
53550 omfLinking=0
53551 while [ ${D}1 ]; do
53552     case ${D}1 in
53553     -ord*)
53554         EXPORT_BY_ORDINALS=1;
53555         ;;
53556     -o*)
53557         shift
53558         outFile=${D}1
53559         ;;
53560     -i*)
53561         shift
53562         outimpFile=${D}1
53563         ;;
53564     -name-mangler-script)
53565         shift
53566         renameScript=${D}1
53567         ;;
53568     -d*)
53569         shift
53570         description=${D}1
53571         ;;
53572     -f*)
53573         shift
53574         CFLAGS=${D}1
53575         ;;
53576     -c*)
53577         shift
53578         CC=${D}1
53579         ;;
53580     -h*)
53581         PrintHelp
53582         ;;
53583     -ex*)
53584         shift
53585         exclude_symbols=${D}{exclude_symbols}${D}1" "
53586         ;;
53587     -libf*)
53588         shift
53589         library_flags=${D}{library_flags}${D}1" "
53590         ;;
53591     -nocrt*)
53592         CFLAGS="-s"
53593         ;;
53594     -nolxl*)
53595         flag_USE_LXLITE=0
53596         ;;
53597     -* | /*)
53598         case ${D}1 in
53599         -L* | -l*)
53600             libsToLink=1
53601             ;;
53602         -Zomf)
53603             omfLinking=1
53604             ;;
53605         *)
53606             ;;
53607         esac
53608         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
53609         ;;
53610     *.dll)
53611         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
53612         if [ ${D}omfLinking -eq 1 ]; then
53613             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
53614         else
53615             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
53616         fi
53617         ;;
53618     *)
53619         found=0;
53620         if [ ${D}libsToLink -ne 0 ]; then
53621             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
53622         else
53623             for file in ${D}1 ; do
53624                 if [ -f ${D}file ]; then
53625                     inputFiles="${D}{inputFiles} ${D}file"
53626                     found=1
53627                 fi
53628             done
53629             if [ ${D}found -eq 0 ]; then
53630                 echo "ERROR: No file(s) found: "${D}1
53631                 exit 8
53632             fi
53633         fi
53634       ;;
53635     esac
53636     shift
53637 done # iterate cmdline words
53638
53639 #
53640 if [ -z "${D}inputFiles" ]; then
53641     echo "dllar: no input files"
53642     PrintHelp
53643 fi
53644
53645 # Now extract all .o files from .a files
53646 newInputFiles=""
53647 for file in ${D}inputFiles ; do
53648     case ${D}file in
53649     *.a | *.lib)
53650         case ${D}file in
53651         *.a)
53652             suffix=".a"
53653             AR="ar"
53654             ;;
53655         *.lib)
53656             suffix=".lib"
53657             AR="emxomfar"
53658             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
53659             ;;
53660         *)
53661             ;;
53662         esac
53663         dirname=\`basnam ${D}file ${D}suffix\`"_%"
53664         mkdir ${D}dirname
53665         if [ ${D}? -ne 0 ]; then
53666             echo "Failed to create subdirectory ./${D}dirname"
53667             CleanUp
53668             exit 8;
53669         fi
53670         # Append '!' to indicate archive
53671         newInputFiles="${D}newInputFiles ${D}{dirname}!"
53672         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
53673         cd ${D}curDir
53674         found=0;
53675         for subfile in ${D}dirname/*.o* ; do
53676             if [ -f ${D}subfile ]; then
53677                 found=1
53678                 if [ -s ${D}subfile ]; then
53679                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
53680                     newInputFiles="${D}newInputFiles ${D}subfile"
53681                 fi
53682             fi
53683         done
53684         if [ ${D}found -eq 0 ]; then
53685             echo "WARNING: there are no files in archive \\'${D}file\\'"
53686         fi
53687         ;;
53688     *)
53689         newInputFiles="${D}{newInputFiles} ${D}file"
53690         ;;
53691     esac
53692 done
53693 inputFiles="${D}newInputFiles"
53694
53695 # Output filename(s).
53696 do_backup=0;
53697 if [ -z ${D}outFile ]; then
53698     do_backup=1;
53699     set outFile ${D}inputFiles; outFile=${D}2
53700 fi
53701
53702 # If it is an archive, remove the '!' and the '_%' suffixes
53703 case ${D}outFile in
53704 *_%!)
53705     outFile=\`basnam ${D}outFile _%!\`
53706     ;;
53707 *)
53708     ;;
53709 esac
53710 case ${D}outFile in
53711 *.dll)
53712     outFile=\`basnam ${D}outFile .dll\`
53713     ;;
53714 *.DLL)
53715     outFile=\`basnam ${D}outFile .DLL\`
53716     ;;
53717 *.o)
53718     outFile=\`basnam ${D}outFile .o\`
53719     ;;
53720 *.obj)
53721     outFile=\`basnam ${D}outFile .obj\`
53722     ;;
53723 *.a)
53724     outFile=\`basnam ${D}outFile .a\`
53725     ;;
53726 *.lib)
53727     outFile=\`basnam ${D}outFile .lib\`
53728     ;;
53729 *)
53730     ;;
53731 esac
53732 case ${D}outimpFile in
53733 *.a)
53734     outimpFile=\`basnam ${D}outimpFile .a\`
53735     ;;
53736 *.lib)
53737     outimpFile=\`basnam ${D}outimpFile .lib\`
53738     ;;
53739 *)
53740     ;;
53741 esac
53742 if [ -z ${D}outimpFile ]; then
53743     outimpFile=${D}outFile
53744 fi
53745 defFile="${D}{outFile}.def"
53746 arcFile="${D}{outimpFile}.a"
53747 arcFile2="${D}{outimpFile}.lib"
53748
53749 #create ${D}dllFile as something matching 8.3 restrictions,
53750 if [ -z ${D}renameScript ] ; then
53751     dllFile="${D}outFile"
53752 else
53753     dllFile=\`${D}renameScript ${D}outimpFile\`
53754 fi
53755
53756 if [ ${D}do_backup -ne 0 ] ; then
53757     if [ -f ${D}arcFile ] ; then
53758         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
53759     fi
53760     if [ -f ${D}arcFile2 ] ; then
53761         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
53762     fi
53763 fi
53764
53765 # Extract public symbols from all the object files.
53766 tmpdefFile=${D}{defFile}_%
53767 rm -f ${D}tmpdefFile
53768 for file in ${D}inputFiles ; do
53769     case ${D}file in
53770     *!)
53771         ;;
53772     *)
53773         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
53774         ;;
53775     esac
53776 done
53777
53778 # Create the def file.
53779 rm -f ${D}defFile
53780 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
53781 dllFile="${D}{dllFile}.dll"
53782 if [ ! -z ${D}description ]; then
53783     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
53784 fi
53785 echo "EXPORTS" >> ${D}defFile
53786
53787 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
53788 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
53789
53790 # Checks if the export is ok or not.
53791 for word in ${D}exclude_symbols; do
53792     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
53793     mv ${D}{tmpdefFile}% ${D}tmpdefFile
53794 done
53795
53796
53797 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
53798     sed "=" < ${D}tmpdefFile | \\
53799     sed '
53800       N
53801       : loop
53802       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
53803       t loop
53804     ' > ${D}{tmpdefFile}%
53805     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
53806 else
53807     rm -f ${D}{tmpdefFile}%
53808 fi
53809 cat ${D}tmpdefFile >> ${D}defFile
53810 rm -f ${D}tmpdefFile
53811
53812 # Do linking, create implib, and apply lxlite.
53813 gccCmdl="";
53814 for file in ${D}inputFiles ; do
53815     case ${D}file in
53816     *!)
53817         ;;
53818     *)
53819         gccCmdl="${D}gccCmdl ${D}file"
53820         ;;
53821     esac
53822 done
53823 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
53824 touch "${D}{outFile}.dll"
53825
53826 doCommand "emximp -o ${D}arcFile ${D}defFile"
53827 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
53828     add_flags="";
53829     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
53830         add_flags="-ynd"
53831     fi
53832     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
53833 fi
53834 doCommand "emxomf -s -l ${D}arcFile"
53835
53836 # Successful exit.
53837 CleanUp 1
53838 exit 0
53839 EOF
53840
53841         chmod +x dllar.sh
53842       ;;
53843
53844       powerpc-apple-macos* | \
53845       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
53846       *-*-mirbsd* | \
53847       *-*-sunos4* | \
53848       *-*-osf* | \
53849       *-*-dgux5* | \
53850       *-*-sysv5* | \
53851       *-pc-msdosdjgpp )
53852               ;;
53853
53854       *)
53855         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
53856 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
53857    { (exit 1); exit 1; }; }
53858     esac
53859
53860     if test "x$PIC_FLAG" != "x" ; then
53861         PIC_FLAG="$PIC_FLAG -DPIC"
53862     fi
53863
53864     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
53865         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
53866     fi
53867     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
53868         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
53869     fi
53870
53871
53872
53873
53874
53875
53876
53877
53878
53879     USE_SOVERSION=0
53880     USE_SOVERLINUX=0
53881     USE_SOVERSOLARIS=0
53882     USE_SOVERCYGWIN=0
53883     USE_SOTWOSYMLINKS=0
53884     USE_MACVERSION=0
53885     SONAME_FLAG=
53886
53887     case "${BAKEFILE_HOST}" in
53888       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
53889       *-*-k*bsd*-gnu | *-*-mirbsd* )
53890         if test "x$SUNCXX" = "xyes"; then
53891             SONAME_FLAG="-h "
53892         else
53893             SONAME_FLAG="-Wl,-soname,"
53894         fi
53895         USE_SOVERSION=1
53896         USE_SOVERLINUX=1
53897         USE_SOTWOSYMLINKS=1
53898       ;;
53899
53900       *-*-solaris2* )
53901         SONAME_FLAG="-h "
53902         USE_SOVERSION=1
53903         USE_SOVERSOLARIS=1
53904       ;;
53905
53906       *-*-darwin* )
53907         USE_MACVERSION=1
53908         USE_SOVERSION=1
53909         USE_SOTWOSYMLINKS=1
53910       ;;
53911
53912       *-*-cygwin* )
53913         USE_SOVERSION=1
53914         USE_SOVERCYGWIN=1
53915       ;;
53916     esac
53917
53918
53919
53920
53921
53922
53923
53924
53925
53926
53927     # Check whether --enable-dependency-tracking was given.
53928 if test "${enable_dependency_tracking+set}" = set; then
53929   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
53930 fi
53931
53932
53933     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
53934 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
53935
53936     BK_DEPS=""
53937     if test "x$bk_use_trackdeps" = "xno" ; then
53938         DEPS_TRACKING=0
53939         { echo "$as_me:$LINENO: result: disabled" >&5
53940 echo "${ECHO_T}disabled" >&6; }
53941     else
53942         DEPS_TRACKING=1
53943
53944         if test "x$GCC" = "xyes"; then
53945             DEPSMODE=gcc
53946             case "${BAKEFILE_HOST}" in
53947                 *-*-darwin* )
53948                                                             DEPSFLAG="-no-cpp-precomp -MMD"
53949                 ;;
53950                 * )
53951                     DEPSFLAG="-MMD"
53952                 ;;
53953             esac
53954             { echo "$as_me:$LINENO: result: gcc" >&5
53955 echo "${ECHO_T}gcc" >&6; }
53956         elif test "x$MWCC" = "xyes"; then
53957             DEPSMODE=mwcc
53958             DEPSFLAG="-MM"
53959             { echo "$as_me:$LINENO: result: mwcc" >&5
53960 echo "${ECHO_T}mwcc" >&6; }
53961         elif test "x$SUNCC" = "xyes"; then
53962             DEPSMODE=unixcc
53963             DEPSFLAG="-xM1"
53964             { echo "$as_me:$LINENO: result: Sun cc" >&5
53965 echo "${ECHO_T}Sun cc" >&6; }
53966         elif test "x$SGICC" = "xyes"; then
53967             DEPSMODE=unixcc
53968             DEPSFLAG="-M"
53969             { echo "$as_me:$LINENO: result: SGI cc" >&5
53970 echo "${ECHO_T}SGI cc" >&6; }
53971         elif test "x$HPCC" = "xyes"; then
53972             DEPSMODE=unixcc
53973             DEPSFLAG="+make"
53974             { echo "$as_me:$LINENO: result: HP cc" >&5
53975 echo "${ECHO_T}HP cc" >&6; }
53976         elif test "x$COMPAQCC" = "xyes"; then
53977             DEPSMODE=gcc
53978             DEPSFLAG="-MD"
53979             { echo "$as_me:$LINENO: result: Compaq cc" >&5
53980 echo "${ECHO_T}Compaq cc" >&6; }
53981         else
53982             DEPS_TRACKING=0
53983             { echo "$as_me:$LINENO: result: none" >&5
53984 echo "${ECHO_T}none" >&6; }
53985         fi
53986
53987         if test $DEPS_TRACKING = 1 ; then
53988
53989 D='$'
53990 cat <<EOF >bk-deps
53991 #!/bin/sh
53992
53993 # This script is part of Bakefile (http://www.bakefile.org) autoconf
53994 # script. It is used to track C/C++ files dependencies in portable way.
53995 #
53996 # Permission is given to use this file in any way.
53997
53998 DEPSMODE=${DEPSMODE}
53999 DEPSFLAG="${DEPSFLAG}"
54000 DEPSDIRBASE=.deps
54001
54002 if test ${D}DEPSMODE = gcc ; then
54003     ${D}* ${D}{DEPSFLAG}
54004     status=${D}?
54005
54006     # determine location of created files:
54007     while test ${D}# -gt 0; do
54008         case "${D}1" in
54009             -o )
54010                 shift
54011                 objfile=${D}1
54012             ;;
54013             -* )
54014             ;;
54015             * )
54016                 srcfile=${D}1
54017             ;;
54018         esac
54019         shift
54020     done
54021     objfilebase=\`basename ${D}objfile\`
54022     builddir=\`dirname ${D}objfile\`
54023     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
54024     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
54025     depsdir=${D}builddir/${D}DEPSDIRBASE
54026     mkdir -p ${D}depsdir
54027
54028     # if the compiler failed, we're done:
54029     if test ${D}{status} != 0 ; then
54030         rm -f ${D}depfile
54031         exit ${D}{status}
54032     fi
54033
54034     # move created file to the location we want it in:
54035     if test -f ${D}depfile ; then
54036         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
54037         rm -f ${D}depfile
54038     else
54039         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
54040         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
54041         if test ! -f ${D}depfile ; then
54042             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
54043             depfile="${D}objfile.d"
54044         fi
54045         if test -f ${D}depfile ; then
54046             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
54047             rm -f ${D}depfile
54048         fi
54049     fi
54050     exit 0
54051
54052 elif test ${D}DEPSMODE = mwcc ; then
54053     ${D}* || exit ${D}?
54054     # Run mwcc again with -MM and redirect into the dep file we want
54055     # NOTE: We can't use shift here because we need ${D}* to be valid
54056     prevarg=
54057     for arg in ${D}* ; do
54058         if test "${D}prevarg" = "-o"; then
54059             objfile=${D}arg
54060         else
54061             case "${D}arg" in
54062                 -* )
54063                 ;;
54064                 * )
54065                     srcfile=${D}arg
54066                 ;;
54067             esac
54068         fi
54069         prevarg="${D}arg"
54070     done
54071
54072     objfilebase=\`basename ${D}objfile\`
54073     builddir=\`dirname ${D}objfile\`
54074     depsdir=${D}builddir/${D}DEPSDIRBASE
54075     mkdir -p ${D}depsdir
54076
54077     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
54078     exit 0
54079
54080 elif test ${D}DEPSMODE = unixcc; then
54081     ${D}* || exit ${D}?
54082     # Run compiler again with deps flag and redirect into the dep file.
54083     # It doesn't work if the '-o FILE' option is used, but without it the
54084     # dependency file will contain the wrong name for the object. So it is
54085     # removed from the command line, and the dep file is fixed with sed.
54086     cmd=""
54087     while test ${D}# -gt 0; do
54088         case "${D}1" in
54089             -o )
54090                 shift
54091                 objfile=${D}1
54092             ;;
54093             * )
54094                 eval arg${D}#=\\${D}1
54095                 cmd="${D}cmd \\${D}arg${D}#"
54096             ;;
54097         esac
54098         shift
54099     done
54100
54101     objfilebase=\`basename ${D}objfile\`
54102     builddir=\`dirname ${D}objfile\`
54103     depsdir=${D}builddir/${D}DEPSDIRBASE
54104     mkdir -p ${D}depsdir
54105
54106     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
54107     exit 0
54108
54109 else
54110     ${D}*
54111     exit ${D}?
54112 fi
54113 EOF
54114
54115             chmod +x bk-deps
54116                                     BK_DEPS="`pwd`/bk-deps"
54117         fi
54118     fi
54119
54120
54121
54122
54123
54124     case ${BAKEFILE_HOST} in
54125         *-*-cygwin* | *-*-mingw32* )
54126                         if test -n "$ac_tool_prefix"; then
54127   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
54128 set dummy ${ac_tool_prefix}windres; ac_word=$2
54129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54131 if test "${ac_cv_prog_WINDRES+set}" = set; then
54132   echo $ECHO_N "(cached) $ECHO_C" >&6
54133 else
54134   if test -n "$WINDRES"; then
54135   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
54136 else
54137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54138 for as_dir in $PATH
54139 do
54140   IFS=$as_save_IFS
54141   test -z "$as_dir" && as_dir=.
54142   for ac_exec_ext in '' $ac_executable_extensions; do
54143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54144     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
54145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54146     break 2
54147   fi
54148 done
54149 done
54150 IFS=$as_save_IFS
54151
54152 fi
54153 fi
54154 WINDRES=$ac_cv_prog_WINDRES
54155 if test -n "$WINDRES"; then
54156   { echo "$as_me:$LINENO: result: $WINDRES" >&5
54157 echo "${ECHO_T}$WINDRES" >&6; }
54158 else
54159   { echo "$as_me:$LINENO: result: no" >&5
54160 echo "${ECHO_T}no" >&6; }
54161 fi
54162
54163
54164 fi
54165 if test -z "$ac_cv_prog_WINDRES"; then
54166   ac_ct_WINDRES=$WINDRES
54167   # Extract the first word of "windres", so it can be a program name with args.
54168 set dummy windres; ac_word=$2
54169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54171 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
54172   echo $ECHO_N "(cached) $ECHO_C" >&6
54173 else
54174   if test -n "$ac_ct_WINDRES"; then
54175   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
54176 else
54177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54178 for as_dir in $PATH
54179 do
54180   IFS=$as_save_IFS
54181   test -z "$as_dir" && as_dir=.
54182   for ac_exec_ext in '' $ac_executable_extensions; do
54183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54184     ac_cv_prog_ac_ct_WINDRES="windres"
54185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54186     break 2
54187   fi
54188 done
54189 done
54190 IFS=$as_save_IFS
54191
54192 fi
54193 fi
54194 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
54195 if test -n "$ac_ct_WINDRES"; then
54196   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
54197 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
54198 else
54199   { echo "$as_me:$LINENO: result: no" >&5
54200 echo "${ECHO_T}no" >&6; }
54201 fi
54202
54203   if test "x$ac_ct_WINDRES" = x; then
54204     WINDRES=""
54205   else
54206     case $cross_compiling:$ac_tool_warned in
54207 yes:)
54208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54209 whose name does not start with the host triplet.  If you think this
54210 configuration is useful to you, please write to autoconf@gnu.org." >&5
54211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54212 whose name does not start with the host triplet.  If you think this
54213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54214 ac_tool_warned=yes ;;
54215 esac
54216     WINDRES=$ac_ct_WINDRES
54217   fi
54218 else
54219   WINDRES="$ac_cv_prog_WINDRES"
54220 fi
54221
54222          ;;
54223
54224       *-*-darwin* | powerpc-apple-macos* )
54225             # Extract the first word of "Rez", so it can be a program name with args.
54226 set dummy Rez; ac_word=$2
54227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54229 if test "${ac_cv_prog_REZ+set}" = set; then
54230   echo $ECHO_N "(cached) $ECHO_C" >&6
54231 else
54232   if test -n "$REZ"; then
54233   ac_cv_prog_REZ="$REZ" # Let the user override the test.
54234 else
54235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54236 for as_dir in $PATH
54237 do
54238   IFS=$as_save_IFS
54239   test -z "$as_dir" && as_dir=.
54240   for ac_exec_ext in '' $ac_executable_extensions; do
54241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54242     ac_cv_prog_REZ="Rez"
54243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54244     break 2
54245   fi
54246 done
54247 done
54248 IFS=$as_save_IFS
54249
54250   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
54251 fi
54252 fi
54253 REZ=$ac_cv_prog_REZ
54254 if test -n "$REZ"; then
54255   { echo "$as_me:$LINENO: result: $REZ" >&5
54256 echo "${ECHO_T}$REZ" >&6; }
54257 else
54258   { echo "$as_me:$LINENO: result: no" >&5
54259 echo "${ECHO_T}no" >&6; }
54260 fi
54261
54262
54263             # Extract the first word of "SetFile", so it can be a program name with args.
54264 set dummy SetFile; ac_word=$2
54265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54267 if test "${ac_cv_prog_SETFILE+set}" = set; then
54268   echo $ECHO_N "(cached) $ECHO_C" >&6
54269 else
54270   if test -n "$SETFILE"; then
54271   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
54272 else
54273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54274 for as_dir in $PATH
54275 do
54276   IFS=$as_save_IFS
54277   test -z "$as_dir" && as_dir=.
54278   for ac_exec_ext in '' $ac_executable_extensions; do
54279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54280     ac_cv_prog_SETFILE="SetFile"
54281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54282     break 2
54283   fi
54284 done
54285 done
54286 IFS=$as_save_IFS
54287
54288   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
54289 fi
54290 fi
54291 SETFILE=$ac_cv_prog_SETFILE
54292 if test -n "$SETFILE"; then
54293   { echo "$as_me:$LINENO: result: $SETFILE" >&5
54294 echo "${ECHO_T}$SETFILE" >&6; }
54295 else
54296   { echo "$as_me:$LINENO: result: no" >&5
54297 echo "${ECHO_T}no" >&6; }
54298 fi
54299
54300
54301         ;;
54302     esac
54303
54304
54305
54306
54307
54308
54309
54310
54311
54312     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
54313
54314
54315 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
54316
54317
54318
54319     # Check whether --enable-precomp-headers was given.
54320 if test "${enable_precomp_headers+set}" = set; then
54321   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
54322 fi
54323
54324
54325     GCC_PCH=0
54326     ICC_PCH=0
54327     USE_PCH=0
54328     BK_MAKE_PCH=""
54329
54330     case ${BAKEFILE_HOST} in
54331         *-*-cygwin* )
54332                                                 bk_use_pch="no"
54333             ;;
54334     esac
54335
54336     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
54337         if test "x$GCC" = "xyes"; then
54338                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
54339 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
54340             cat >conftest.$ac_ext <<_ACEOF
54341 /* confdefs.h.  */
54342 _ACEOF
54343 cat confdefs.h >>conftest.$ac_ext
54344 cat >>conftest.$ac_ext <<_ACEOF
54345 /* end confdefs.h.  */
54346
54347 int
54348 main ()
54349 {
54350
54351                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
54352                         There is no PCH support
54353                     #endif
54354                     #if (__GNUC__ < 3)
54355                         There is no PCH support
54356                     #endif
54357                     #if (__GNUC__ == 3) && \
54358                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
54359                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
54360                        ( defined(__INTEL_COMPILER) )
54361                         There is no PCH support
54362                     #endif
54363
54364   ;
54365   return 0;
54366 }
54367 _ACEOF
54368 rm -f conftest.$ac_objext
54369 if { (ac_try="$ac_compile"
54370 case "(($ac_try" in
54371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54372   *) ac_try_echo=$ac_try;;
54373 esac
54374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54375   (eval "$ac_compile") 2>conftest.er1
54376   ac_status=$?
54377   grep -v '^ *+' conftest.er1 >conftest.err
54378   rm -f conftest.er1
54379   cat conftest.err >&5
54380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54381   (exit $ac_status); } && {
54382          test -z "$ac_c_werror_flag" ||
54383          test ! -s conftest.err
54384        } && test -s conftest.$ac_objext; then
54385
54386                     { echo "$as_me:$LINENO: result: yes" >&5
54387 echo "${ECHO_T}yes" >&6; }
54388                     GCC_PCH=1
54389
54390 else
54391   echo "$as_me: failed program was:" >&5
54392 sed 's/^/| /' conftest.$ac_ext >&5
54393
54394
54395                     if test "$INTELCXX8" = "yes"; then
54396                         { echo "$as_me:$LINENO: result: yes" >&5
54397 echo "${ECHO_T}yes" >&6; }
54398                         ICC_PCH=1
54399                         if test "$INTELCXX10" = "yes"; then
54400                             ICC_PCH_CREATE_SWITCH="-pch-create"
54401                             ICC_PCH_USE_SWITCH="-pch-use"
54402                         else
54403                             ICC_PCH_CREATE_SWITCH="-create-pch"
54404                             ICC_PCH_USE_SWITCH="-use-pch"
54405                         fi
54406                     else
54407                         { echo "$as_me:$LINENO: result: no" >&5
54408 echo "${ECHO_T}no" >&6; }
54409                     fi
54410
54411 fi
54412
54413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54414             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
54415                 USE_PCH=1
54416
54417 D='$'
54418 cat <<EOF >bk-make-pch
54419 #!/bin/sh
54420
54421 # This script is part of Bakefile (http://www.bakefile.org) autoconf
54422 # script. It is used to generated precompiled headers.
54423 #
54424 # Permission is given to use this file in any way.
54425
54426 outfile="${D}{1}"
54427 header="${D}{2}"
54428 shift
54429 shift
54430
54431 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
54432
54433 compiler=""
54434 headerfile=""
54435
54436 while test ${D}{#} -gt 0; do
54437     add_to_cmdline=1
54438     case "${D}{1}" in
54439         -I* )
54440             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
54441             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
54442                 headerfile="${D}{incdir}/${D}{header}"
54443             fi
54444         ;;
54445         -use-pch|-use_pch|-pch-use )
54446             shift
54447             add_to_cmdline=0
54448         ;;
54449     esac
54450     if test ${D}add_to_cmdline = 1 ; then
54451         compiler="${D}{compiler} ${D}{1}"
54452     fi
54453     shift
54454 done
54455
54456 if test "x${D}{headerfile}" = "x" ; then
54457     echo "error: can't find header ${D}{header} in include paths" >&2
54458 else
54459     if test -f ${D}{outfile} ; then
54460         rm -f ${D}{outfile}
54461     else
54462         mkdir -p \`dirname ${D}{outfile}\`
54463     fi
54464     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
54465     mkdir -p ${D}{builddir}/.deps
54466     if test "x${GCC_PCH}" = "x1" ; then
54467         # can do this because gcc is >= 3.4:
54468         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
54469     elif test "x${ICC_PCH}" = "x1" ; then
54470         filename=pch_gen-${D}${D}
54471         file=${D}{filename}.c
54472         dfile=${D}{filename}.d
54473         cat > ${D}file <<EOT
54474 #include "${D}header"
54475 EOT
54476         # using -MF icc complains about differing command lines in creation/use
54477         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
54478           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
54479           rm -f ${D}file ${D}dfile ${D}{filename}.o
54480     fi
54481     exit ${D}{?}
54482 fi
54483 EOF
54484
54485                 chmod +x bk-make-pch
54486                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
54487             fi
54488         fi
54489     fi
54490
54491
54492
54493
54494
54495
54496
54497     COND_BUILD_DEBUG="#"
54498     if test "x$BUILD" = "xdebug" ; then
54499         COND_BUILD_DEBUG=""
54500     fi
54501
54502     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
54503     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
54504         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
54505     fi
54506
54507     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
54508     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
54509         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
54510     fi
54511
54512     COND_BUILD_DEBUG_UNICODE_0="#"
54513     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
54514         COND_BUILD_DEBUG_UNICODE_0=""
54515     fi
54516
54517     COND_BUILD_DEBUG_UNICODE_1="#"
54518     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
54519         COND_BUILD_DEBUG_UNICODE_1=""
54520     fi
54521
54522     COND_BUILD_RELEASE="#"
54523     if test "x$BUILD" = "xrelease" ; then
54524         COND_BUILD_RELEASE=""
54525     fi
54526
54527     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
54528     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
54529         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
54530     fi
54531
54532     COND_BUILD_RELEASE_UNICODE_0="#"
54533     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
54534         COND_BUILD_RELEASE_UNICODE_0=""
54535     fi
54536
54537     COND_BUILD_RELEASE_UNICODE_1="#"
54538     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
54539         COND_BUILD_RELEASE_UNICODE_1=""
54540     fi
54541
54542     COND_BUILD_debug="#"
54543     if test "x$BUILD" = "xdebug" ; then
54544         COND_BUILD_debug=""
54545     fi
54546
54547     COND_BUILD_debug_DEBUG_FLAG_default="#"
54548     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
54549         COND_BUILD_debug_DEBUG_FLAG_default=""
54550     fi
54551
54552     COND_BUILD_debug_DEBUG_INFO_default="#"
54553     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
54554         COND_BUILD_debug_DEBUG_INFO_default=""
54555     fi
54556
54557     COND_BUILD_debug_UNICODE_0="#"
54558     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
54559         COND_BUILD_debug_UNICODE_0=""
54560     fi
54561
54562     COND_BUILD_debug_UNICODE_1="#"
54563     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
54564         COND_BUILD_debug_UNICODE_1=""
54565     fi
54566
54567     COND_BUILD_release="#"
54568     if test "x$BUILD" = "xrelease" ; then
54569         COND_BUILD_release=""
54570     fi
54571
54572     COND_BUILD_release_DEBUG_INFO_default="#"
54573     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
54574         COND_BUILD_release_DEBUG_INFO_default=""
54575     fi
54576
54577     COND_BUILD_release_UNICODE_0="#"
54578     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
54579         COND_BUILD_release_UNICODE_0=""
54580     fi
54581
54582     COND_BUILD_release_UNICODE_1="#"
54583     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
54584         COND_BUILD_release_UNICODE_1=""
54585     fi
54586
54587     COND_DEBUG_FLAG_0="#"
54588     if test "x$DEBUG_FLAG" = "x0" ; then
54589         COND_DEBUG_FLAG_0=""
54590     fi
54591
54592     COND_DEBUG_FLAG_1="#"
54593     if test "x$DEBUG_FLAG" = "x1" ; then
54594         COND_DEBUG_FLAG_1=""
54595     fi
54596
54597     COND_DEBUG_INFO_0="#"
54598     if test "x$DEBUG_INFO" = "x0" ; then
54599         COND_DEBUG_INFO_0=""
54600     fi
54601
54602     COND_DEBUG_INFO_1="#"
54603     if test "x$DEBUG_INFO" = "x1" ; then
54604         COND_DEBUG_INFO_1=""
54605     fi
54606
54607     COND_DEPS_TRACKING_0="#"
54608     if test "x$DEPS_TRACKING" = "x0" ; then
54609         COND_DEPS_TRACKING_0=""
54610     fi
54611
54612     COND_DEPS_TRACKING_1="#"
54613     if test "x$DEPS_TRACKING" = "x1" ; then
54614         COND_DEPS_TRACKING_1=""
54615     fi
54616
54617     COND_GCC_PCH_1="#"
54618     if test "x$GCC_PCH" = "x1" ; then
54619         COND_GCC_PCH_1=""
54620     fi
54621
54622     COND_ICC_PCH_1="#"
54623     if test "x$ICC_PCH" = "x1" ; then
54624         COND_ICC_PCH_1=""
54625     fi
54626
54627     COND_MONOLITHIC_0="#"
54628     if test "x$MONOLITHIC" = "x0" ; then
54629         COND_MONOLITHIC_0=""
54630     fi
54631
54632     COND_MONOLITHIC_0_SHARED_0="#"
54633     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
54634         COND_MONOLITHIC_0_SHARED_0=""
54635     fi
54636
54637     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
54638     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
54639         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
54640     fi
54641
54642     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
54643     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
54644         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
54645     fi
54646
54647     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
54648     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
54649         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
54650     fi
54651
54652     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
54653     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54654         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
54655     fi
54656
54657     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
54658     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
54659         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
54660     fi
54661
54662     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1="#"
54663     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
54664         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1=""
54665     fi
54666
54667     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
54668     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
54669         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
54670     fi
54671
54672     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
54673     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
54674         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
54675     fi
54676
54677     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
54678     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
54679         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
54680     fi
54681
54682     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
54683     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
54684         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
54685     fi
54686
54687     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
54688     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
54689         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
54690     fi
54691
54692     COND_MONOLITHIC_0_SHARED_1="#"
54693     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
54694         COND_MONOLITHIC_0_SHARED_1=""
54695     fi
54696
54697     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
54698     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
54699         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
54700     fi
54701
54702     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
54703     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
54704         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
54705     fi
54706
54707     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
54708     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
54709         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
54710     fi
54711
54712     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
54713     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54714         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
54715     fi
54716
54717     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
54718     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
54719         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
54720     fi
54721
54722     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1="#"
54723     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
54724         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1=""
54725     fi
54726
54727     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
54728     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
54729         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
54730     fi
54731
54732     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
54733     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
54734         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
54735     fi
54736
54737     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
54738     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
54739         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
54740     fi
54741
54742     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
54743     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
54744         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
54745     fi
54746
54747     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
54748     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
54749         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
54750     fi
54751
54752     COND_MONOLITHIC_0_USE_AUI_1="#"
54753     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
54754         COND_MONOLITHIC_0_USE_AUI_1=""
54755     fi
54756
54757     COND_MONOLITHIC_0_USE_GUI_1="#"
54758     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
54759         COND_MONOLITHIC_0_USE_GUI_1=""
54760     fi
54761
54762     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
54763     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54764         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
54765     fi
54766
54767     COND_MONOLITHIC_0_USE_HTML_1="#"
54768     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
54769         COND_MONOLITHIC_0_USE_HTML_1=""
54770     fi
54771
54772     COND_MONOLITHIC_0_USE_MEDIA_1="#"
54773     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
54774         COND_MONOLITHIC_0_USE_MEDIA_1=""
54775     fi
54776
54777     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
54778     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
54779         COND_MONOLITHIC_0_USE_PROPGRID_1=""
54780     fi
54781
54782     COND_MONOLITHIC_0_USE_QA_1="#"
54783     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
54784         COND_MONOLITHIC_0_USE_QA_1=""
54785     fi
54786
54787     COND_MONOLITHIC_0_USE_RIBBON_1="#"
54788     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
54789         COND_MONOLITHIC_0_USE_RIBBON_1=""
54790     fi
54791
54792     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
54793     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
54794         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
54795     fi
54796
54797     COND_MONOLITHIC_0_USE_STC_1="#"
54798     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
54799         COND_MONOLITHIC_0_USE_STC_1=""
54800     fi
54801
54802     COND_MONOLITHIC_0_USE_WEBVIEW_1="#"
54803     if test "x$MONOLITHIC" = "x0" -a "x$USE_WEBVIEW" = "x1" ; then
54804         COND_MONOLITHIC_0_USE_WEBVIEW_1=""
54805     fi
54806
54807     COND_MONOLITHIC_0_USE_XRC_1="#"
54808     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
54809         COND_MONOLITHIC_0_USE_XRC_1=""
54810     fi
54811
54812     COND_MONOLITHIC_1="#"
54813     if test "x$MONOLITHIC" = "x1" ; then
54814         COND_MONOLITHIC_1=""
54815     fi
54816
54817     COND_MONOLITHIC_1_SHARED_0="#"
54818     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
54819         COND_MONOLITHIC_1_SHARED_0=""
54820     fi
54821
54822     COND_MONOLITHIC_1_SHARED_1="#"
54823     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
54824         COND_MONOLITHIC_1_SHARED_1=""
54825     fi
54826
54827     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
54828     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
54829         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
54830     fi
54831
54832     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
54833     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
54834         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
54835     fi
54836
54837     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
54838     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
54839         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
54840     fi
54841
54842     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
54843     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
54844         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
54845     fi
54846
54847     COND_PLATFORM_MACOSX_1="#"
54848     if test "x$PLATFORM_MACOSX" = "x1" ; then
54849         COND_PLATFORM_MACOSX_1=""
54850     fi
54851
54852     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
54853     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
54854         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
54855     fi
54856
54857     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
54858     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
54859         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
54860     fi
54861
54862     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
54863     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
54864         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
54865     fi
54866
54867     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
54868     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54869         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
54870     fi
54871
54872     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
54873     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
54874         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
54875     fi
54876
54877     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
54878     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54879         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
54880     fi
54881
54882     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
54883     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
54884         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
54885     fi
54886
54887     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
54888     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54889         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
54890     fi
54891
54892     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
54893     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
54894         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
54895     fi
54896
54897     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
54898     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
54899         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
54900     fi
54901
54902     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
54903     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
54904         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
54905     fi
54906
54907     COND_PLATFORM_MACOS_1="#"
54908     if test "x$PLATFORM_MACOS" = "x1" ; then
54909         COND_PLATFORM_MACOS_1=""
54910     fi
54911
54912     COND_PLATFORM_MAC_0="#"
54913     if test "x$PLATFORM_MAC" = "x0" ; then
54914         COND_PLATFORM_MAC_0=""
54915     fi
54916
54917     COND_PLATFORM_MAC_1="#"
54918     if test "x$PLATFORM_MAC" = "x1" ; then
54919         COND_PLATFORM_MAC_1=""
54920     fi
54921
54922     COND_PLATFORM_MSDOS_0="#"
54923     if test "x$PLATFORM_MSDOS" = "x0" ; then
54924         COND_PLATFORM_MSDOS_0=""
54925     fi
54926
54927     COND_PLATFORM_MSDOS_1="#"
54928     if test "x$PLATFORM_MSDOS" = "x1" ; then
54929         COND_PLATFORM_MSDOS_1=""
54930     fi
54931
54932     COND_PLATFORM_OS2_1="#"
54933     if test "x$PLATFORM_OS2" = "x1" ; then
54934         COND_PLATFORM_OS2_1=""
54935     fi
54936
54937     COND_PLATFORM_UNIX_0="#"
54938     if test "x$PLATFORM_UNIX" = "x0" ; then
54939         COND_PLATFORM_UNIX_0=""
54940     fi
54941
54942     COND_PLATFORM_UNIX_1="#"
54943     if test "x$PLATFORM_UNIX" = "x1" ; then
54944         COND_PLATFORM_UNIX_1=""
54945     fi
54946
54947     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
54948     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
54949         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
54950     fi
54951
54952     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
54953     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
54954         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
54955     fi
54956
54957     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
54958     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
54959         COND_PLATFORM_UNIX_1_USE_GUI_1=""
54960     fi
54961
54962     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
54963     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
54964         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
54965     fi
54966
54967     COND_PLATFORM_WIN32_0="#"
54968     if test "x$PLATFORM_WIN32" = "x0" ; then
54969         COND_PLATFORM_WIN32_0=""
54970     fi
54971
54972     COND_PLATFORM_WIN32_1="#"
54973     if test "x$PLATFORM_WIN32" = "x1" ; then
54974         COND_PLATFORM_WIN32_1=""
54975     fi
54976
54977     COND_PLATFORM_WIN32_1_SHARED_0="#"
54978     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
54979         COND_PLATFORM_WIN32_1_SHARED_0=""
54980     fi
54981
54982     COND_SHARED_0="#"
54983     if test "x$SHARED" = "x0" ; then
54984         COND_SHARED_0=""
54985     fi
54986
54987     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
54988     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
54989         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
54990     fi
54991
54992     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
54993     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
54994         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
54995     fi
54996
54997     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
54998     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
54999         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
55000     fi
55001
55002     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
55003     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
55004         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
55005     fi
55006
55007     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
55008     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55009         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
55010     fi
55011
55012     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
55013     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55014         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
55015     fi
55016
55017     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
55018     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55019         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
55020     fi
55021
55022     COND_SHARED_0_USE_STC_1="#"
55023     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
55024         COND_SHARED_0_USE_STC_1=""
55025     fi
55026
55027     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
55028     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
55029         COND_SHARED_0_wxUSE_EXPAT_builtin=""
55030     fi
55031
55032     COND_SHARED_0_wxUSE_REGEX_builtin="#"
55033     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
55034         COND_SHARED_0_wxUSE_REGEX_builtin=""
55035     fi
55036
55037     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
55038     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
55039         COND_SHARED_0_wxUSE_ZLIB_builtin=""
55040     fi
55041
55042     COND_SHARED_1="#"
55043     if test "x$SHARED" = "x1" ; then
55044         COND_SHARED_1=""
55045     fi
55046
55047     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
55048     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
55049         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
55050     fi
55051
55052     COND_TOOLKIT_="#"
55053     if test "x$TOOLKIT" = "x" ; then
55054         COND_TOOLKIT_=""
55055     fi
55056
55057     COND_TOOLKIT_COCOA="#"
55058     if test "x$TOOLKIT" = "xCOCOA" ; then
55059         COND_TOOLKIT_COCOA=""
55060     fi
55061
55062     COND_TOOLKIT_COCOA_USE_GUI_1="#"
55063     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
55064         COND_TOOLKIT_COCOA_USE_GUI_1=""
55065     fi
55066
55067     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
55068     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55069         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
55070     fi
55071
55072     COND_TOOLKIT_DFB="#"
55073     if test "x$TOOLKIT" = "xDFB" ; then
55074         COND_TOOLKIT_DFB=""
55075     fi
55076
55077     COND_TOOLKIT_DFB_USE_GUI_1="#"
55078     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
55079         COND_TOOLKIT_DFB_USE_GUI_1=""
55080     fi
55081
55082     COND_TOOLKIT_GTK="#"
55083     if test "x$TOOLKIT" = "xGTK" ; then
55084         COND_TOOLKIT_GTK=""
55085     fi
55086
55087     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
55088     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
55089         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
55090     fi
55091
55092     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
55093     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
55094         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
55095     fi
55096
55097     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
55098     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
55099         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
55100     fi
55101
55102     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
55103     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55104         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
55105     fi
55106
55107     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
55108     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
55109         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
55110     fi
55111
55112     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
55113     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55114         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
55115     fi
55116
55117     COND_TOOLKIT_GTK_USE_GUI_1="#"
55118     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
55119         COND_TOOLKIT_GTK_USE_GUI_1=""
55120     fi
55121
55122     COND_TOOLKIT_MAC="#"
55123     if test "x$TOOLKIT" = "xMAC" ; then
55124         COND_TOOLKIT_MAC=""
55125     fi
55126
55127     COND_TOOLKIT_MGL="#"
55128     if test "x$TOOLKIT" = "xMGL" ; then
55129         COND_TOOLKIT_MGL=""
55130     fi
55131
55132     COND_TOOLKIT_MGL_USE_GUI_1="#"
55133     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
55134         COND_TOOLKIT_MGL_USE_GUI_1=""
55135     fi
55136
55137     COND_TOOLKIT_MOTIF="#"
55138     if test "x$TOOLKIT" = "xMOTIF" ; then
55139         COND_TOOLKIT_MOTIF=""
55140     fi
55141
55142     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
55143     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
55144         COND_TOOLKIT_MOTIF_USE_GUI_1=""
55145     fi
55146
55147     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
55148     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55149         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
55150     fi
55151
55152     COND_TOOLKIT_MSW="#"
55153     if test "x$TOOLKIT" = "xMSW" ; then
55154         COND_TOOLKIT_MSW=""
55155     fi
55156
55157     COND_TOOLKIT_MSW_USE_GUI_1="#"
55158     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
55159         COND_TOOLKIT_MSW_USE_GUI_1=""
55160     fi
55161
55162     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
55163     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55164         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
55165     fi
55166
55167     COND_TOOLKIT_MSW_WXUNIV_0="#"
55168     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
55169         COND_TOOLKIT_MSW_WXUNIV_0=""
55170     fi
55171
55172     COND_TOOLKIT_OSX_CARBON="#"
55173     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
55174         COND_TOOLKIT_OSX_CARBON=""
55175     fi
55176
55177     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
55178     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
55179         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
55180     fi
55181
55182     COND_TOOLKIT_OSX_COCOA="#"
55183     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
55184         COND_TOOLKIT_OSX_COCOA=""
55185     fi
55186
55187     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
55188     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
55189         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
55190     fi
55191
55192     COND_TOOLKIT_OSX_IPHONE="#"
55193     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
55194         COND_TOOLKIT_OSX_IPHONE=""
55195     fi
55196
55197     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
55198     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
55199         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
55200     fi
55201
55202     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
55203     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55204         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
55205     fi
55206
55207     COND_TOOLKIT_PM="#"
55208     if test "x$TOOLKIT" = "xPM" ; then
55209         COND_TOOLKIT_PM=""
55210     fi
55211
55212     COND_TOOLKIT_PM_USE_GUI_1="#"
55213     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
55214         COND_TOOLKIT_PM_USE_GUI_1=""
55215     fi
55216
55217     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
55218     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55219         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
55220     fi
55221
55222     COND_TOOLKIT_WINCE="#"
55223     if test "x$TOOLKIT" = "xWINCE" ; then
55224         COND_TOOLKIT_WINCE=""
55225     fi
55226
55227     COND_TOOLKIT_WINCE_USE_GUI_1="#"
55228     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
55229         COND_TOOLKIT_WINCE_USE_GUI_1=""
55230     fi
55231
55232     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
55233     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55234         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
55235     fi
55236
55237     COND_TOOLKIT_WINCE_WXUNIV_0="#"
55238     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
55239         COND_TOOLKIT_WINCE_WXUNIV_0=""
55240     fi
55241
55242     COND_TOOLKIT_X11="#"
55243     if test "x$TOOLKIT" = "xX11" ; then
55244         COND_TOOLKIT_X11=""
55245     fi
55246
55247     COND_TOOLKIT_X11_USE_GUI_1="#"
55248     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
55249         COND_TOOLKIT_X11_USE_GUI_1=""
55250     fi
55251
55252     COND_UNICODE_1="#"
55253     if test "x$UNICODE" = "x1" ; then
55254         COND_UNICODE_1=""
55255     fi
55256
55257     COND_USE_CAIRO_1="#"
55258     if test "x$USE_CAIRO" = "x1" ; then
55259         COND_USE_CAIRO_1=""
55260     fi
55261
55262     COND_USE_EXCEPTIONS_0="#"
55263     if test "x$USE_EXCEPTIONS" = "x0" ; then
55264         COND_USE_EXCEPTIONS_0=""
55265     fi
55266
55267     COND_USE_EXCEPTIONS_1="#"
55268     if test "x$USE_EXCEPTIONS" = "x1" ; then
55269         COND_USE_EXCEPTIONS_1=""
55270     fi
55271
55272     COND_USE_GUI_0="#"
55273     if test "x$USE_GUI" = "x0" ; then
55274         COND_USE_GUI_0=""
55275     fi
55276
55277     COND_USE_GUI_1="#"
55278     if test "x$USE_GUI" = "x1" ; then
55279         COND_USE_GUI_1=""
55280     fi
55281
55282     COND_USE_GUI_1_USE_OPENGL_1="#"
55283     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
55284         COND_USE_GUI_1_USE_OPENGL_1=""
55285     fi
55286
55287     COND_USE_GUI_1_WXUNIV_0="#"
55288     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55289         COND_USE_GUI_1_WXUNIV_0=""
55290     fi
55291
55292     COND_USE_GUI_1_WXUNIV_1="#"
55293     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
55294         COND_USE_GUI_1_WXUNIV_1=""
55295     fi
55296
55297     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
55298     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55299         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
55300     fi
55301
55302     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
55303     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55304         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
55305     fi
55306
55307     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
55308     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55309         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
55310     fi
55311
55312     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
55313     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55314         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
55315     fi
55316
55317     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
55318     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55319         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
55320     fi
55321
55322     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
55323     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55324         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
55325     fi
55326
55327     COND_USE_OPENGL_1="#"
55328     if test "x$USE_OPENGL" = "x1" ; then
55329         COND_USE_OPENGL_1=""
55330     fi
55331
55332     COND_USE_PCH_1="#"
55333     if test "x$USE_PCH" = "x1" ; then
55334         COND_USE_PCH_1=""
55335     fi
55336
55337     COND_USE_PLUGINS_0="#"
55338     if test "x$USE_PLUGINS" = "x0" ; then
55339         COND_USE_PLUGINS_0=""
55340     fi
55341
55342     COND_USE_RTTI_0="#"
55343     if test "x$USE_RTTI" = "x0" ; then
55344         COND_USE_RTTI_0=""
55345     fi
55346
55347     COND_USE_RTTI_1="#"
55348     if test "x$USE_RTTI" = "x1" ; then
55349         COND_USE_RTTI_1=""
55350     fi
55351
55352     COND_USE_SOTWOSYMLINKS_1="#"
55353     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
55354         COND_USE_SOTWOSYMLINKS_1=""
55355     fi
55356
55357     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
55358     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
55359         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
55360     fi
55361
55362     COND_USE_SOVERLINUX_1="#"
55363     if test "x$USE_SOVERLINUX" = "x1" ; then
55364         COND_USE_SOVERLINUX_1=""
55365     fi
55366
55367     COND_USE_SOVERSION_0="#"
55368     if test "x$USE_SOVERSION" = "x0" ; then
55369         COND_USE_SOVERSION_0=""
55370     fi
55371
55372     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
55373     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
55374         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
55375     fi
55376
55377     COND_USE_SOVERSOLARIS_1="#"
55378     if test "x$USE_SOVERSOLARIS" = "x1" ; then
55379         COND_USE_SOVERSOLARIS_1=""
55380     fi
55381
55382     COND_USE_STC_1="#"
55383     if test "x$USE_STC" = "x1" ; then
55384         COND_USE_STC_1=""
55385     fi
55386
55387     COND_USE_THREADS_0="#"
55388     if test "x$USE_THREADS" = "x0" ; then
55389         COND_USE_THREADS_0=""
55390     fi
55391
55392     COND_USE_THREADS_1="#"
55393     if test "x$USE_THREADS" = "x1" ; then
55394         COND_USE_THREADS_1=""
55395     fi
55396
55397     COND_USE_XRC_1="#"
55398     if test "x$USE_XRC" = "x1" ; then
55399         COND_USE_XRC_1=""
55400     fi
55401
55402     COND_WINDOWS_IMPLIB_1="#"
55403     if test "x$WINDOWS_IMPLIB" = "x1" ; then
55404         COND_WINDOWS_IMPLIB_1=""
55405     fi
55406
55407     COND_WITH_PLUGIN_SDL_1="#"
55408     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
55409         COND_WITH_PLUGIN_SDL_1=""
55410     fi
55411
55412     COND_WXUNIV_0="#"
55413     if test "x$WXUNIV" = "x0" ; then
55414         COND_WXUNIV_0=""
55415     fi
55416
55417     COND_WXUNIV_1="#"
55418     if test "x$WXUNIV" = "x1" ; then
55419         COND_WXUNIV_1=""
55420     fi
55421
55422     COND_WXUSE_EXPAT_BUILTIN="#"
55423     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
55424         COND_WXUSE_EXPAT_BUILTIN=""
55425     fi
55426
55427     COND_WXUSE_LIBJPEG_BUILTIN="#"
55428     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55429         COND_WXUSE_LIBJPEG_BUILTIN=""
55430     fi
55431
55432     COND_WXUSE_LIBPNG_BUILTIN="#"
55433     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55434         COND_WXUSE_LIBPNG_BUILTIN=""
55435     fi
55436
55437     COND_WXUSE_LIBTIFF_BUILTIN="#"
55438     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55439         COND_WXUSE_LIBTIFF_BUILTIN=""
55440     fi
55441
55442     COND_WXUSE_REGEX_BUILTIN="#"
55443     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
55444         COND_WXUSE_REGEX_BUILTIN=""
55445     fi
55446
55447     COND_WXUSE_ZLIB_BUILTIN="#"
55448     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
55449         COND_WXUSE_ZLIB_BUILTIN=""
55450     fi
55451
55452     COND_wxUSE_EXPAT_builtin="#"
55453     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
55454         COND_wxUSE_EXPAT_builtin=""
55455     fi
55456
55457     COND_wxUSE_LIBJPEG_builtin="#"
55458     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55459         COND_wxUSE_LIBJPEG_builtin=""
55460     fi
55461
55462     COND_wxUSE_LIBPNG_builtin="#"
55463     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55464         COND_wxUSE_LIBPNG_builtin=""
55465     fi
55466
55467     COND_wxUSE_LIBTIFF_builtin="#"
55468     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55469         COND_wxUSE_LIBTIFF_builtin=""
55470     fi
55471
55472     COND_wxUSE_REGEX_builtin="#"
55473     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
55474         COND_wxUSE_REGEX_builtin=""
55475     fi
55476
55477     COND_wxUSE_ZLIB_builtin="#"
55478     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
55479         COND_wxUSE_ZLIB_builtin=""
55480     fi
55481
55482
55483
55484     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
55485         { { 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
55486 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;}
55487    { (exit 1); exit 1; }; }
55488     fi
55489
55490     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
55491         { { 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
55492 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;}
55493    { (exit 1); exit 1; }; }
55494     fi
55495
55496
55497 case ${INSTALL} in
55498   /* ) # Absolute
55499      ;;
55500   ?:* ) # Drive letter, considered as absolute.
55501      ;;
55502   *)
55503      INSTALL=`pwd`/${INSTALL} ;;
55504 esac
55505
55506 if test "$wxUSE_GUI" = "yes"; then
55507
55508 if test "$wxUSE_MSW" = 1 ; then
55509     if test "x$WINDRES" = "x"; then
55510         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
55511 echo "$as_me: error: Required windres program not found" >&2;}
55512    { (exit 1); exit 1; }; }
55513     fi
55514
55515     RESCOMP="$WINDRES"
55516 fi
55517
55518 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
55519             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
55520     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
55521
55522         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
55523
55524     # Extract the first word of "DeRez", so it can be a program name with args.
55525 set dummy DeRez; ac_word=$2
55526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55528 if test "${ac_cv_prog_DEREZ+set}" = set; then
55529   echo $ECHO_N "(cached) $ECHO_C" >&6
55530 else
55531   if test -n "$DEREZ"; then
55532   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
55533 else
55534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55535 for as_dir in $PATH
55536 do
55537   IFS=$as_save_IFS
55538   test -z "$as_dir" && as_dir=.
55539   for ac_exec_ext in '' $ac_executable_extensions; do
55540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55541     ac_cv_prog_DEREZ="DeRez"
55542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55543     break 2
55544   fi
55545 done
55546 done
55547 IFS=$as_save_IFS
55548
55549   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
55550 fi
55551 fi
55552 DEREZ=$ac_cv_prog_DEREZ
55553 if test -n "$DEREZ"; then
55554   { echo "$as_me:$LINENO: result: $DEREZ" >&5
55555 echo "${ECHO_T}$DEREZ" >&6; }
55556 else
55557   { echo "$as_me:$LINENO: result: no" >&5
55558 echo "${ECHO_T}no" >&6; }
55559 fi
55560
55561
55562
55563     MACSETFILE="\$(SETFILE)"
55564
55565             if test "$wxUSE_OSX_CARBON" = 1; then
55566         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
55567         RESCOMP="$REZ"
55568         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
55569     else
55570         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
55571         RESCOMP="cat /dev/null \| $REZ"
55572         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
55573     fi
55574
55575 else
55576         MACSETFILE="@true"
55577
55578     if test "$wxUSE_PM" = 1; then
55579         RESCOMP="emxbind"
55580         WXCONFIG_RESFLAGS="-ep"
55581
55582                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
55583     else
55584         POSTLINK_COMMAND="@true"
55585     fi
55586 fi
55587
55588 fi
55589
55590
55591 if test $GCC_PCH = 1
55592 then
55593     if test "$wx_cv_gcc_pch_bug" = yes; then
55594         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
55595 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
55596         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
55597 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
55598         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
55599 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
55600     fi
55601
55602     # Our WX_PRECOMP flag does not make sense for any language except C++ because
55603     # the headers that benefit from precompilation are mostly C++ headers.
55604     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
55605     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
55606     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
55607 fi
55608
55609
55610 if test "$wxUSE_MAC" = 1 ; then
55611     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
55612         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
55613         mv temp bk-deps
55614         chmod +x bk-deps
55615     fi
55616 fi
55617
55618 if test "$wxUSE_SHARED" = "yes"; then
55619                 case "${host}" in
55620       *-pc-os2_emx | *-pc-os2-emx )
55621         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55622         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55623         cp -p ${srcdir}/src/os2/dllnames.sh .
55624         cp -p ${srcdir}/src/os2/dllar.sh .
55625       ;;
55626     esac
55627 fi
55628 if test "$wxUSE_OMF" = "yes"; then
55629     case "${host}" in
55630       *-pc-os2_emx | *-pc-os2-emx )
55631         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
55632         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
55633         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
55634       ;;
55635     esac
55636 fi
55637
55638 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
55639
55640
55641 case "${host}" in
55642     *-*-solaris2* )
55643                         if test "$GCC" = yes; then
55644             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
55645             LIBS=`echo $LIBS | sed 's/-mt//'`
55646             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
55647         fi
55648         ;;
55649
55650     *-*-linux* )
55651                         if test "x$SUNCXX" = xyes; then
55652             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
55653             LIBS=`echo $LIBS | sed 's/-pthread//'`
55654             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
55655         fi
55656         ;;
55657 esac
55658
55659 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
55660 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
55661 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
55662 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
55663
55664 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
55665
55666
55667
55668
55669
55670
55671
55672
55673
55674
55675
55676
55677
55678
55679
55680
55681
55682
55683
55684
55685
55686
55687
55688
55689
55690
55691
55692
55693
55694
55695
55696
55697
55698
55699
55700
55701
55702
55703
55704
55705
55706
55707
55708
55709
55710
55711
55712
55713
55714
55715
55716
55717
55718
55719
55720
55721
55722
55723
55724
55725 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
55726 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
55727 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
55728 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
55729   echo $ECHO_N "(cached) $ECHO_C" >&6
55730 else
55731   cat >conftest.make <<\_ACEOF
55732 SHELL = /bin/sh
55733 all:
55734         @echo '@@@%%%=$(MAKE)=@@@%%%'
55735 _ACEOF
55736 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
55737 case `${MAKE-make} -f conftest.make 2>/dev/null` in
55738   *@@@%%%=?*=@@@%%%*)
55739     eval ac_cv_prog_make_${ac_make}_set=yes;;
55740   *)
55741     eval ac_cv_prog_make_${ac_make}_set=no;;
55742 esac
55743 rm -f conftest.make
55744 fi
55745 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
55746   { echo "$as_me:$LINENO: result: yes" >&5
55747 echo "${ECHO_T}yes" >&6; }
55748   SET_MAKE=
55749 else
55750   { echo "$as_me:$LINENO: result: no" >&5
55751 echo "${ECHO_T}no" >&6; }
55752   SET_MAKE="MAKE=${MAKE-make}"
55753 fi
55754
55755
55756
55757 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
55758
55759
55760 if test "$USE_WIN32" = 1; then
55761     ac_config_commands="$ac_config_commands rcdefs.h"
55762
55763 fi
55764
55765 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
55766
55767
55768 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
55769
55770
55771 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
55772
55773
55774 if test "$wx_cv_version_script" = "yes"; then
55775     ac_config_files="$ac_config_files version-script"
55776
55777 fi
55778 ac_config_files="$ac_config_files Makefile"
55779
55780
55781 ac_config_commands="$ac_config_commands wx-config"
55782
55783
55784
55785 if test "$wxWITH_SUBDIRS" != "no"; then
55786 if test "$wxUSE_GUI" = "yes"; then
55787     SUBDIRS="samples demos utils"
55788 else
55789             SUBDIRS="samples utils"
55790 fi
55791
55792
55793
55794 # Check whether --with-cppunit-prefix was given.
55795 if test "${with_cppunit_prefix+set}" = set; then
55796   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
55797 else
55798   cppunit_config_prefix=""
55799 fi
55800
55801
55802 # Check whether --with-cppunit-exec-prefix was given.
55803 if test "${with_cppunit_exec_prefix+set}" = set; then
55804   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
55805 else
55806   cppunit_config_exec_prefix=""
55807 fi
55808
55809
55810   if test x$cppunit_config_exec_prefix != x ; then
55811      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
55812      if test x${CPPUNIT_CONFIG+set} != xset ; then
55813         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
55814      fi
55815   fi
55816   if test x$cppunit_config_prefix != x ; then
55817      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
55818      if test x${CPPUNIT_CONFIG+set} != xset ; then
55819         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
55820      fi
55821   fi
55822
55823   # Extract the first word of "cppunit-config", so it can be a program name with args.
55824 set dummy cppunit-config; ac_word=$2
55825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55827 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
55828   echo $ECHO_N "(cached) $ECHO_C" >&6
55829 else
55830   case $CPPUNIT_CONFIG in
55831   [\\/]* | ?:[\\/]*)
55832   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
55833   ;;
55834   *)
55835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55836 for as_dir in $PATH
55837 do
55838   IFS=$as_save_IFS
55839   test -z "$as_dir" && as_dir=.
55840   for ac_exec_ext in '' $ac_executable_extensions; do
55841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55842     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
55843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55844     break 2
55845   fi
55846 done
55847 done
55848 IFS=$as_save_IFS
55849
55850   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
55851   ;;
55852 esac
55853 fi
55854 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
55855 if test -n "$CPPUNIT_CONFIG"; then
55856   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
55857 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
55858 else
55859   { echo "$as_me:$LINENO: result: no" >&5
55860 echo "${ECHO_T}no" >&6; }
55861 fi
55862
55863
55864   cppunit_version_min=1.8.0
55865
55866   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
55867 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
55868   no_cppunit=""
55869   if test "$CPPUNIT_CONFIG" = "no" ; then
55870     { echo "$as_me:$LINENO: result: no" >&5
55871 echo "${ECHO_T}no" >&6; }
55872     no_cppunit=yes
55873   else
55874     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
55875     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
55876     cppunit_version=`$CPPUNIT_CONFIG --version`
55877
55878     cppunit_major_version=`echo $cppunit_version | \
55879            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
55880     cppunit_minor_version=`echo $cppunit_version | \
55881            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
55882     cppunit_micro_version=`echo $cppunit_version | \
55883            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
55884
55885     cppunit_major_min=`echo $cppunit_version_min | \
55886            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
55887     cppunit_minor_min=`echo $cppunit_version_min | \
55888            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
55889     cppunit_micro_min=`echo $cppunit_version_min | \
55890            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
55891
55892     cppunit_version_proper=`expr \
55893         $cppunit_major_version \> $cppunit_major_min \| \
55894         $cppunit_major_version \= $cppunit_major_min \& \
55895         $cppunit_minor_version \> $cppunit_minor_min \| \
55896         $cppunit_major_version \= $cppunit_major_min \& \
55897         $cppunit_minor_version \= $cppunit_minor_min \& \
55898         $cppunit_micro_version \>= $cppunit_micro_min `
55899
55900     if test "$cppunit_version_proper" = "1" ; then
55901       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
55902 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
55903     else
55904       { echo "$as_me:$LINENO: result: no" >&5
55905 echo "${ECHO_T}no" >&6; }
55906       no_cppunit=yes
55907     fi
55908   fi
55909
55910   if test "x$no_cppunit" = x ; then
55911      SUBDIRS="$SUBDIRS tests"
55912   else
55913      CPPUNIT_CFLAGS=""
55914      CPPUNIT_LIBS=""
55915      :
55916   fi
55917
55918
55919
55920
55921
55922 for subdir in $SUBDIRS; do
55923     if test -d ${srcdir}/${subdir} ; then
55924         if test "$wxUSE_GUI" = "yes"; then
55925             if test ${subdir} = "samples"; then
55926                                                 makefiles="samples/Makefile.in $makefiles"
55927                 for sample in $SAMPLES_SUBDIRS; do
55928                     if test -d $srcdir/samples/$sample; then
55929                         makefiles="samples/$sample/Makefile.in $makefiles"
55930                     fi
55931                 done
55932             else
55933                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
55934                 eval "disabled=\$$disabled_var"
55935                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
55936                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
55937             fi
55938         else
55939                                     if test ${subdir} = "samples"; then
55940                                                 makefiles="samples/Makefile.in $makefiles"
55941                 for sample in `echo $SAMPLES_SUBDIRS`; do
55942                     if test -d $srcdir/samples/$sample; then
55943                         makefiles="samples/$sample/Makefile.in $makefiles"
55944                     fi
55945                 done
55946             elif test ${subdir} = "utils"; then
55947                 makefiles=""
55948                 for util in ifacecheck ; do
55949                     if test -d $srcdir/utils/$util ; then
55950                         makefiles="utils/$util/src/Makefile.in \
55951                                    $makefiles"
55952                     fi
55953                 done
55954             else
55955                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
55956             fi
55957         fi
55958
55959         for mkin in $makefiles ; do
55960             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
55961             ac_config_files="$ac_config_files $mk"
55962
55963         done
55964     fi
55965 done
55966 fi
55967 cat >confcache <<\_ACEOF
55968 # This file is a shell script that caches the results of configure
55969 # tests run on this system so they can be shared between configure
55970 # scripts and configure runs, see configure's option --config-cache.
55971 # It is not useful on other systems.  If it contains results you don't
55972 # want to keep, you may remove or edit it.
55973 #
55974 # config.status only pays attention to the cache file if you give it
55975 # the --recheck option to rerun configure.
55976 #
55977 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55978 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55979 # following values.
55980
55981 _ACEOF
55982
55983 # The following way of writing the cache mishandles newlines in values,
55984 # but we know of no workaround that is simple, portable, and efficient.
55985 # So, we kill variables containing newlines.
55986 # Ultrix sh set writes to stderr and can't be redirected directly,
55987 # and sets the high bit in the cache file unless we assign to the vars.
55988 (
55989   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
55990     eval ac_val=\$$ac_var
55991     case $ac_val in #(
55992     *${as_nl}*)
55993       case $ac_var in #(
55994       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
55995 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
55996       esac
55997       case $ac_var in #(
55998       _ | IFS | as_nl) ;; #(
55999       *) $as_unset $ac_var ;;
56000       esac ;;
56001     esac
56002   done
56003
56004   (set) 2>&1 |
56005     case $as_nl`(ac_space=' '; set) 2>&1` in #(
56006     *${as_nl}ac_space=\ *)
56007       # `set' does not quote correctly, so add quotes (double-quote
56008       # substitution turns \\\\ into \\, and sed turns \\ into \).
56009       sed -n \
56010         "s/'/'\\\\''/g;
56011           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
56012       ;; #(
56013     *)
56014       # `set' quotes correctly as required by POSIX, so do not add quotes.
56015       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
56016       ;;
56017     esac |
56018     sort
56019 ) |
56020   sed '
56021      /^ac_cv_env_/b end
56022      t clear
56023      :clear
56024      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
56025      t end
56026      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
56027      :end' >>confcache
56028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
56029   if test -w "$cache_file"; then
56030     test "x$cache_file" != "x/dev/null" &&
56031       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
56032 echo "$as_me: updating cache $cache_file" >&6;}
56033     cat confcache >$cache_file
56034   else
56035     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
56036 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
56037   fi
56038 fi
56039 rm -f confcache
56040
56041 test "x$prefix" = xNONE && prefix=$ac_default_prefix
56042 # Let make expand exec_prefix.
56043 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
56044
56045 DEFS=-DHAVE_CONFIG_H
56046
56047 ac_libobjs=
56048 ac_ltlibobjs=
56049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
56050   # 1. Remove the extension, and $U if already installed.
56051   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
56052   ac_i=`echo "$ac_i" | sed "$ac_script"`
56053   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
56054   #    will be set to the directory where LIBOBJS objects are built.
56055   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
56056   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
56057 done
56058 LIBOBJS=$ac_libobjs
56059
56060 LTLIBOBJS=$ac_ltlibobjs
56061
56062
56063
56064 : ${CONFIG_STATUS=./config.status}
56065 ac_clean_files_save=$ac_clean_files
56066 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
56067 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
56068 echo "$as_me: creating $CONFIG_STATUS" >&6;}
56069 cat >$CONFIG_STATUS <<_ACEOF
56070 #! $SHELL
56071 # Generated by $as_me.
56072 # Run this file to recreate the current configuration.
56073 # Compiler output produced by configure, useful for debugging
56074 # configure, is in config.log if it exists.
56075
56076 debug=false
56077 ac_cs_recheck=false
56078 ac_cs_silent=false
56079 SHELL=\${CONFIG_SHELL-$SHELL}
56080 _ACEOF
56081
56082 cat >>$CONFIG_STATUS <<\_ACEOF
56083 ## --------------------- ##
56084 ## M4sh Initialization.  ##
56085 ## --------------------- ##
56086
56087 # Be more Bourne compatible
56088 DUALCASE=1; export DUALCASE # for MKS sh
56089 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
56090   emulate sh
56091   NULLCMD=:
56092   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
56093   # is contrary to our usage.  Disable this feature.
56094   alias -g '${1+"$@"}'='"$@"'
56095   setopt NO_GLOB_SUBST
56096 else
56097   case `(set -o) 2>/dev/null` in
56098   *posix*) set -o posix ;;
56099 esac
56100
56101 fi
56102
56103
56104
56105
56106 # PATH needs CR
56107 # Avoid depending upon Character Ranges.
56108 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
56109 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
56110 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
56111 as_cr_digits='0123456789'
56112 as_cr_alnum=$as_cr_Letters$as_cr_digits
56113
56114 # The user is always right.
56115 if test "${PATH_SEPARATOR+set}" != set; then
56116   echo "#! /bin/sh" >conf$$.sh
56117   echo  "exit 0"   >>conf$$.sh
56118   chmod +x conf$$.sh
56119   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56120     PATH_SEPARATOR=';'
56121   else
56122     PATH_SEPARATOR=:
56123   fi
56124   rm -f conf$$.sh
56125 fi
56126
56127 # Support unset when possible.
56128 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56129   as_unset=unset
56130 else
56131   as_unset=false
56132 fi
56133
56134
56135 # IFS
56136 # We need space, tab and new line, in precisely that order.  Quoting is
56137 # there to prevent editors from complaining about space-tab.
56138 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
56139 # splitting by setting IFS to empty value.)
56140 as_nl='
56141 '
56142 IFS=" ""        $as_nl"
56143
56144 # Find who we are.  Look in the path if we contain no directory separator.
56145 case $0 in
56146   *[\\/]* ) as_myself=$0 ;;
56147   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56148 for as_dir in $PATH
56149 do
56150   IFS=$as_save_IFS
56151   test -z "$as_dir" && as_dir=.
56152   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56153 done
56154 IFS=$as_save_IFS
56155
56156      ;;
56157 esac
56158 # We did not find ourselves, most probably we were run as `sh COMMAND'
56159 # in which case we are not to be found in the path.
56160 if test "x$as_myself" = x; then
56161   as_myself=$0
56162 fi
56163 if test ! -f "$as_myself"; then
56164   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
56165   { (exit 1); exit 1; }
56166 fi
56167
56168 # Work around bugs in pre-3.0 UWIN ksh.
56169 for as_var in ENV MAIL MAILPATH
56170 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56171 done
56172 PS1='$ '
56173 PS2='> '
56174 PS4='+ '
56175
56176 # NLS nuisances.
56177 for as_var in \
56178   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
56179   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
56180   LC_TELEPHONE LC_TIME
56181 do
56182   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
56183     eval $as_var=C; export $as_var
56184   else
56185     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56186   fi
56187 done
56188
56189 # Required to use basename.
56190 if expr a : '\(a\)' >/dev/null 2>&1 &&
56191    test "X`expr 00001 : '.*\(...\)'`" = X001; then
56192   as_expr=expr
56193 else
56194   as_expr=false
56195 fi
56196
56197 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
56198   as_basename=basename
56199 else
56200   as_basename=false
56201 fi
56202
56203
56204 # Name of the executable.
56205 as_me=`$as_basename -- "$0" ||
56206 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
56207          X"$0" : 'X\(//\)$' \| \
56208          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56209 echo X/"$0" |
56210     sed '/^.*\/\([^/][^/]*\)\/*$/{
56211             s//\1/
56212             q
56213           }
56214           /^X\/\(\/\/\)$/{
56215             s//\1/
56216             q
56217           }
56218           /^X\/\(\/\).*/{
56219             s//\1/
56220             q
56221           }
56222           s/.*/./; q'`
56223
56224 # CDPATH.
56225 $as_unset CDPATH
56226
56227
56228
56229   as_lineno_1=$LINENO
56230   as_lineno_2=$LINENO
56231   test "x$as_lineno_1" != "x$as_lineno_2" &&
56232   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
56233
56234   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56235   # uniformly replaced by the line number.  The first 'sed' inserts a
56236   # line-number line after each line using $LINENO; the second 'sed'
56237   # does the real work.  The second script uses 'N' to pair each
56238   # line-number line with the line containing $LINENO, and appends
56239   # trailing '-' during substitution so that $LINENO is not a special
56240   # case at line end.
56241   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56242   # scripts with optimization help from Paolo Bonzini.  Blame Lee
56243   # E. McMahon (1931-1989) for sed's syntax.  :-)
56244   sed -n '
56245     p
56246     /[$]LINENO/=
56247   ' <$as_myself |
56248     sed '
56249       s/[$]LINENO.*/&-/
56250       t lineno
56251       b
56252       :lineno
56253       N
56254       :loop
56255       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
56256       t loop
56257       s/-\n.*//
56258     ' >$as_me.lineno &&
56259   chmod +x "$as_me.lineno" ||
56260     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
56261    { (exit 1); exit 1; }; }
56262
56263   # Don't try to exec as it changes $[0], causing all sort of problems
56264   # (the dirname of $[0] is not the place where we might find the
56265   # original and so on.  Autoconf is especially sensitive to this).
56266   . "./$as_me.lineno"
56267   # Exit status is that of the last command.
56268   exit
56269 }
56270
56271
56272 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56273   as_dirname=dirname
56274 else
56275   as_dirname=false
56276 fi
56277
56278 ECHO_C= ECHO_N= ECHO_T=
56279 case `echo -n x` in
56280 -n*)
56281   case `echo 'x\c'` in
56282   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
56283   *)   ECHO_C='\c';;
56284   esac;;
56285 *)
56286   ECHO_N='-n';;
56287 esac
56288
56289 if expr a : '\(a\)' >/dev/null 2>&1 &&
56290    test "X`expr 00001 : '.*\(...\)'`" = X001; then
56291   as_expr=expr
56292 else
56293   as_expr=false
56294 fi
56295
56296 rm -f conf$$ conf$$.exe conf$$.file
56297 if test -d conf$$.dir; then
56298   rm -f conf$$.dir/conf$$.file
56299 else
56300   rm -f conf$$.dir
56301   mkdir conf$$.dir
56302 fi
56303 echo >conf$$.file
56304 if ln -s conf$$.file conf$$ 2>/dev/null; then
56305   as_ln_s='ln -s'
56306   # ... but there are two gotchas:
56307   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56308   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56309   # In both cases, we have to default to `cp -p'.
56310   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56311     as_ln_s='cp -p'
56312 elif ln conf$$.file conf$$ 2>/dev/null; then
56313   as_ln_s=ln
56314 else
56315   as_ln_s='cp -p'
56316 fi
56317 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56318 rmdir conf$$.dir 2>/dev/null
56319
56320 if mkdir -p . 2>/dev/null; then
56321   as_mkdir_p=:
56322 else
56323   test -d ./-p && rmdir ./-p
56324   as_mkdir_p=false
56325 fi
56326
56327 if test -x / >/dev/null 2>&1; then
56328   as_test_x='test -x'
56329 else
56330   if ls -dL / >/dev/null 2>&1; then
56331     as_ls_L_option=L
56332   else
56333     as_ls_L_option=
56334   fi
56335   as_test_x='
56336     eval sh -c '\''
56337       if test -d "$1"; then
56338         test -d "$1/.";
56339       else
56340         case $1 in
56341         -*)set "./$1";;
56342         esac;
56343         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
56344         ???[sx]*):;;*)false;;esac;fi
56345     '\'' sh
56346   '
56347 fi
56348 as_executable_p=$as_test_x
56349
56350 # Sed expression to map a string onto a valid CPP name.
56351 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56352
56353 # Sed expression to map a string onto a valid variable name.
56354 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56355
56356
56357 exec 6>&1
56358
56359 # Save the log message, to keep $[0] and so on meaningful, and to
56360 # report actual input values of CONFIG_FILES etc. instead of their
56361 # values after options handling.
56362 ac_log="
56363 This file was extended by wxWidgets $as_me 2.9.3, which was
56364 generated by GNU Autoconf 2.61.  Invocation command line was
56365
56366   CONFIG_FILES    = $CONFIG_FILES
56367   CONFIG_HEADERS  = $CONFIG_HEADERS
56368   CONFIG_LINKS    = $CONFIG_LINKS
56369   CONFIG_COMMANDS = $CONFIG_COMMANDS
56370   $ $0 $@
56371
56372 on `(hostname || uname -n) 2>/dev/null | sed 1q`
56373 "
56374
56375 _ACEOF
56376
56377 cat >>$CONFIG_STATUS <<_ACEOF
56378 # Files that config.status was made for.
56379 config_files="$ac_config_files"
56380 config_headers="$ac_config_headers"
56381 config_commands="$ac_config_commands"
56382
56383 _ACEOF
56384
56385 cat >>$CONFIG_STATUS <<\_ACEOF
56386 ac_cs_usage="\
56387 \`$as_me' instantiates files from templates according to the
56388 current configuration.
56389
56390 Usage: $0 [OPTIONS] [FILE]...
56391
56392   -h, --help       print this help, then exit
56393   -V, --version    print version number and configuration settings, then exit
56394   -q, --quiet      do not print progress messages
56395   -d, --debug      don't remove temporary files
56396       --recheck    update $as_me by reconfiguring in the same conditions
56397   --file=FILE[:TEMPLATE]
56398                    instantiate the configuration file FILE
56399   --header=FILE[:TEMPLATE]
56400                    instantiate the configuration header FILE
56401
56402 Configuration files:
56403 $config_files
56404
56405 Configuration headers:
56406 $config_headers
56407
56408 Configuration commands:
56409 $config_commands
56410
56411 Report bugs to <bug-autoconf@gnu.org>."
56412
56413 _ACEOF
56414 cat >>$CONFIG_STATUS <<_ACEOF
56415 ac_cs_version="\\
56416 wxWidgets config.status 2.9.3
56417 configured by $0, generated by GNU Autoconf 2.61,
56418   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
56419
56420 Copyright (C) 2006 Free Software Foundation, Inc.
56421 This config.status script is free software; the Free Software Foundation
56422 gives unlimited permission to copy, distribute and modify it."
56423
56424 ac_pwd='$ac_pwd'
56425 srcdir='$srcdir'
56426 INSTALL='$INSTALL'
56427 _ACEOF
56428
56429 cat >>$CONFIG_STATUS <<\_ACEOF
56430 # If no file are specified by the user, then we need to provide default
56431 # value.  By we need to know if files were specified by the user.
56432 ac_need_defaults=:
56433 while test $# != 0
56434 do
56435   case $1 in
56436   --*=*)
56437     ac_option=`expr "X$1" : 'X\([^=]*\)='`
56438     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
56439     ac_shift=:
56440     ;;
56441   *)
56442     ac_option=$1
56443     ac_optarg=$2
56444     ac_shift=shift
56445     ;;
56446   esac
56447
56448   case $ac_option in
56449   # Handling of the options.
56450   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
56451     ac_cs_recheck=: ;;
56452   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
56453     echo "$ac_cs_version"; exit ;;
56454   --debug | --debu | --deb | --de | --d | -d )
56455     debug=: ;;
56456   --file | --fil | --fi | --f )
56457     $ac_shift
56458     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
56459     ac_need_defaults=false;;
56460   --header | --heade | --head | --hea )
56461     $ac_shift
56462     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
56463     ac_need_defaults=false;;
56464   --he | --h)
56465     # Conflict between --help and --header
56466     { echo "$as_me: error: ambiguous option: $1
56467 Try \`$0 --help' for more information." >&2
56468    { (exit 1); exit 1; }; };;
56469   --help | --hel | -h )
56470     echo "$ac_cs_usage"; exit ;;
56471   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56472   | -silent | --silent | --silen | --sile | --sil | --si | --s)
56473     ac_cs_silent=: ;;
56474
56475   # This is an error.
56476   -*) { echo "$as_me: error: unrecognized option: $1
56477 Try \`$0 --help' for more information." >&2
56478    { (exit 1); exit 1; }; } ;;
56479
56480   *) ac_config_targets="$ac_config_targets $1"
56481      ac_need_defaults=false ;;
56482
56483   esac
56484   shift
56485 done
56486
56487 ac_configure_extra_args=
56488
56489 if $ac_cs_silent; then
56490   exec 6>/dev/null
56491   ac_configure_extra_args="$ac_configure_extra_args --silent"
56492 fi
56493
56494 _ACEOF
56495 cat >>$CONFIG_STATUS <<_ACEOF
56496 if \$ac_cs_recheck; then
56497   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
56498   CONFIG_SHELL=$SHELL
56499   export CONFIG_SHELL
56500   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
56501 fi
56502
56503 _ACEOF
56504 cat >>$CONFIG_STATUS <<\_ACEOF
56505 exec 5>>config.log
56506 {
56507   echo
56508   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
56509 ## Running $as_me. ##
56510 _ASBOX
56511   echo "$ac_log"
56512 } >&5
56513
56514 _ACEOF
56515 cat >>$CONFIG_STATUS <<_ACEOF
56516 #
56517 # INIT-COMMANDS
56518 #
56519
56520             CPP="$CPP"
56521             infile="$srcdir/include/wx/msw/genrcdefs.h"
56522             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
56523
56524
56525  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56526  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56527  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56528                      LN_S="${LN_S}"
56529
56530
56531 _ACEOF
56532
56533 cat >>$CONFIG_STATUS <<\_ACEOF
56534
56535 # Handling of arguments.
56536 for ac_config_target in $ac_config_targets
56537 do
56538   case $ac_config_target in
56539     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
56540     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
56541     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
56542     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
56543     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
56544     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
56545     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56546     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
56547     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
56548
56549   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
56550 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
56551    { (exit 1); exit 1; }; };;
56552   esac
56553 done
56554
56555
56556 # If the user did not use the arguments to specify the items to instantiate,
56557 # then the envvar interface is used.  Set only those that are not.
56558 # We use the long form for the default assignment because of an extremely
56559 # bizarre bug on SunOS 4.1.3.
56560 if $ac_need_defaults; then
56561   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56562   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56563   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
56564 fi
56565
56566 # Have a temporary directory for convenience.  Make it in the build tree
56567 # simply because there is no reason against having it here, and in addition,
56568 # creating and moving files from /tmp can sometimes cause problems.
56569 # Hook for its removal unless debugging.
56570 # Note that there is a small window in which the directory will not be cleaned:
56571 # after its creation but before its name has been assigned to `$tmp'.
56572 $debug ||
56573 {
56574   tmp=
56575   trap 'exit_status=$?
56576   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
56577 ' 0
56578   trap '{ (exit 1); exit 1; }' 1 2 13 15
56579 }
56580 # Create a (secure) tmp directory for tmp files.
56581
56582 {
56583   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
56584   test -n "$tmp" && test -d "$tmp"
56585 }  ||
56586 {
56587   tmp=./conf$$-$RANDOM
56588   (umask 077 && mkdir "$tmp")
56589 } ||
56590 {
56591    echo "$me: cannot create a temporary directory in ." >&2
56592    { (exit 1); exit 1; }
56593 }
56594
56595 #
56596 # Set up the sed scripts for CONFIG_FILES section.
56597 #
56598
56599 # No need to generate the scripts if there are no CONFIG_FILES.
56600 # This happens for instance when ./config.status config.h
56601 if test -n "$CONFIG_FILES"; then
56602
56603 _ACEOF
56604
56605
56606
56607 ac_delim='%!_!# '
56608 for ac_last_try in false false false false false :; do
56609   cat >conf$$subs.sed <<_ACEOF
56610 SHELL!$SHELL$ac_delim
56611 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
56612 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
56613 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
56614 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
56615 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
56616 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
56617 exec_prefix!$exec_prefix$ac_delim
56618 prefix!$prefix$ac_delim
56619 program_transform_name!$program_transform_name$ac_delim
56620 bindir!$bindir$ac_delim
56621 sbindir!$sbindir$ac_delim
56622 libexecdir!$libexecdir$ac_delim
56623 datarootdir!$datarootdir$ac_delim
56624 datadir!$datadir$ac_delim
56625 sysconfdir!$sysconfdir$ac_delim
56626 sharedstatedir!$sharedstatedir$ac_delim
56627 localstatedir!$localstatedir$ac_delim
56628 includedir!$includedir$ac_delim
56629 oldincludedir!$oldincludedir$ac_delim
56630 docdir!$docdir$ac_delim
56631 infodir!$infodir$ac_delim
56632 htmldir!$htmldir$ac_delim
56633 dvidir!$dvidir$ac_delim
56634 pdfdir!$pdfdir$ac_delim
56635 psdir!$psdir$ac_delim
56636 libdir!$libdir$ac_delim
56637 localedir!$localedir$ac_delim
56638 mandir!$mandir$ac_delim
56639 DEFS!$DEFS$ac_delim
56640 ECHO_C!$ECHO_C$ac_delim
56641 ECHO_N!$ECHO_N$ac_delim
56642 ECHO_T!$ECHO_T$ac_delim
56643 LIBS!$LIBS$ac_delim
56644 build_alias!$build_alias$ac_delim
56645 host_alias!$host_alias$ac_delim
56646 target_alias!$target_alias$ac_delim
56647 build!$build$ac_delim
56648 build_cpu!$build_cpu$ac_delim
56649 build_vendor!$build_vendor$ac_delim
56650 build_os!$build_os$ac_delim
56651 host!$host$ac_delim
56652 host_cpu!$host_cpu$ac_delim
56653 host_vendor!$host_vendor$ac_delim
56654 host_os!$host_os$ac_delim
56655 wx_top_builddir!$wx_top_builddir$ac_delim
56656 CC!$CC$ac_delim
56657 CFLAGS!$CFLAGS$ac_delim
56658 LDFLAGS!$LDFLAGS$ac_delim
56659 CPPFLAGS!$CPPFLAGS$ac_delim
56660 ac_ct_CC!$ac_ct_CC$ac_delim
56661 EXEEXT!$EXEEXT$ac_delim
56662 OBJEXT!$OBJEXT$ac_delim
56663 CPP!$CPP$ac_delim
56664 GREP!$GREP$ac_delim
56665 EGREP!$EGREP$ac_delim
56666 CXX!$CXX$ac_delim
56667 CXXFLAGS!$CXXFLAGS$ac_delim
56668 ac_ct_CXX!$ac_ct_CXX$ac_delim
56669 AR!$AR$ac_delim
56670 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
56671 CXXCPP!$CXXCPP$ac_delim
56672 subdirs!$subdirs$ac_delim
56673 PKG_CONFIG!$PKG_CONFIG$ac_delim
56674 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
56675 GTK_LIBS!$GTK_LIBS$ac_delim
56676 GTK_CONFIG!$GTK_CONFIG$ac_delim
56677 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
56678 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
56679 XMKMF!$XMKMF$ac_delim
56680 X_CFLAGS!$X_CFLAGS$ac_delim
56681 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
56682 X_LIBS!$X_LIBS$ac_delim
56683 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
56684 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
56685 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
56686 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
56687 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
56688 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
56689 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
56690 Xinerama_CFLAGS!$Xinerama_CFLAGS$ac_delim
56691 Xinerama_LIBS!$Xinerama_LIBS$ac_delim
56692 Xxf86vm_CFLAGS!$Xxf86vm_CFLAGS$ac_delim
56693 Xxf86vm_LIBS!$Xxf86vm_LIBS$ac_delim
56694 SM_CFLAGS!$SM_CFLAGS$ac_delim
56695 SM_LIBS!$SM_LIBS$ac_delim
56696 GL_CFLAGS!$GL_CFLAGS$ac_delim
56697 GL_LIBS!$GL_LIBS$ac_delim
56698 GLU_CFLAGS!$GLU_CFLAGS$ac_delim
56699 GLU_LIBS!$GLU_LIBS$ac_delim
56700 MesaGL_CFLAGS!$MesaGL_CFLAGS$ac_delim
56701 MesaGL_LIBS!$MesaGL_LIBS$ac_delim
56702 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
56703 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
56704 LIBICONV!$LIBICONV$ac_delim
56705 GXX_VERSION!$GXX_VERSION$ac_delim
56706 SDL_CONFIG!$SDL_CONFIG$ac_delim
56707 _ACEOF
56708
56709   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56710     break
56711   elif $ac_last_try; then
56712     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56713 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56714    { (exit 1); exit 1; }; }
56715   else
56716     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56717   fi
56718 done
56719
56720 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56721 if test -n "$ac_eof"; then
56722   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56723   ac_eof=`expr $ac_eof + 1`
56724 fi
56725
56726 cat >>$CONFIG_STATUS <<_ACEOF
56727 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
56728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56729 _ACEOF
56730 sed '
56731 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56732 s/^/s,@/; s/!/@,|#_!!_#|/
56733 :n
56734 t n
56735 s/'"$ac_delim"'$/,g/; t
56736 s/$/\\/; p
56737 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56738 ' >>$CONFIG_STATUS <conf$$subs.sed
56739 rm -f conf$$subs.sed
56740 cat >>$CONFIG_STATUS <<_ACEOF
56741 CEOF$ac_eof
56742 _ACEOF
56743
56744
56745 ac_delim='%!_!# '
56746 for ac_last_try in false false false false false :; do
56747   cat >conf$$subs.sed <<_ACEOF
56748 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
56749 SDL_LIBS!$SDL_LIBS$ac_delim
56750 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
56751 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
56752 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
56753 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
56754 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
56755 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
56756 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
56757 HILDON_LIBS!$HILDON_LIBS$ac_delim
56758 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
56759 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
56760 PYTHON!$PYTHON$ac_delim
56761 COND_PYTHON!$COND_PYTHON$ac_delim
56762 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
56763 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
56764 GST_CFLAGS!$GST_CFLAGS$ac_delim
56765 GST_LIBS!$GST_LIBS$ac_delim
56766 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
56767 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
56768 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
56769 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
56770 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
56771 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
56772 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
56773 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
56774 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
56775 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
56776 VENDOR!$VENDOR$ac_delim
56777 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
56778 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
56779 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
56780 WXUNIV!$WXUNIV$ac_delim
56781 MONOLITHIC!$MONOLITHIC$ac_delim
56782 USE_PLUGINS!$USE_PLUGINS$ac_delim
56783 CXXWARNINGS!$CXXWARNINGS$ac_delim
56784 EXTRALIBS!$EXTRALIBS$ac_delim
56785 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
56786 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
56787 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
56788 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
56789 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
56790 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
56791 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
56792 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
56793 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
56794 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
56795 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
56796 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
56797 UNICODE!$UNICODE$ac_delim
56798 DEBUG_INFO!$DEBUG_INFO$ac_delim
56799 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
56800 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
56801 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
56802 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
56803 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
56804 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
56805 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
56806 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
56807 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
56808 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
56809 RANLIB!$RANLIB$ac_delim
56810 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
56811 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
56812 INSTALL_DATA!$INSTALL_DATA$ac_delim
56813 LN_S!$LN_S$ac_delim
56814 SET_MAKE!$SET_MAKE$ac_delim
56815 MAKE_SET!$MAKE_SET$ac_delim
56816 AROPTIONS!$AROPTIONS$ac_delim
56817 STRIP!$STRIP$ac_delim
56818 NM!$NM$ac_delim
56819 INSTALL_DIR!$INSTALL_DIR$ac_delim
56820 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
56821 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
56822 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
56823 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
56824 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
56825 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
56826 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
56827 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
56828 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
56829 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
56830 SO_SUFFIX!$SO_SUFFIX$ac_delim
56831 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
56832 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
56833 LIBPREFIX!$LIBPREFIX$ac_delim
56834 LIBEXT!$LIBEXT$ac_delim
56835 DLLPREFIX!$DLLPREFIX$ac_delim
56836 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
56837 dlldir!$dlldir$ac_delim
56838 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
56839 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
56840 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
56841 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
56842 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
56843 PIC_FLAG!$PIC_FLAG$ac_delim
56844 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
56845 _ACEOF
56846
56847   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56848     break
56849   elif $ac_last_try; then
56850     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56851 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56852    { (exit 1); exit 1; }; }
56853   else
56854     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56855   fi
56856 done
56857
56858 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56859 if test -n "$ac_eof"; then
56860   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56861   ac_eof=`expr $ac_eof + 1`
56862 fi
56863
56864 cat >>$CONFIG_STATUS <<_ACEOF
56865 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
56866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56867 _ACEOF
56868 sed '
56869 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56870 s/^/s,@/; s/!/@,|#_!!_#|/
56871 :n
56872 t n
56873 s/'"$ac_delim"'$/,g/; t
56874 s/$/\\/; p
56875 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56876 ' >>$CONFIG_STATUS <conf$$subs.sed
56877 rm -f conf$$subs.sed
56878 cat >>$CONFIG_STATUS <<_ACEOF
56879 CEOF$ac_eof
56880 _ACEOF
56881
56882
56883 ac_delim='%!_!# '
56884 for ac_last_try in false false false false false :; do
56885   cat >conf$$subs.sed <<_ACEOF
56886 USE_SOVERSION!$USE_SOVERSION$ac_delim
56887 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
56888 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
56889 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
56890 USE_MACVERSION!$USE_MACVERSION$ac_delim
56891 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
56892 SONAME_FLAG!$SONAME_FLAG$ac_delim
56893 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
56894 BK_DEPS!$BK_DEPS$ac_delim
56895 WINDRES!$WINDRES$ac_delim
56896 REZ!$REZ$ac_delim
56897 SETFILE!$SETFILE$ac_delim
56898 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
56899 GCC_PCH!$GCC_PCH$ac_delim
56900 ICC_PCH!$ICC_PCH$ac_delim
56901 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
56902 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
56903 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
56904 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
56905 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
56906 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
56907 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
56908 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
56909 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
56910 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
56911 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
56912 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
56913 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
56914 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
56915 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
56916 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
56917 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
56918 COND_BUILD_release!$COND_BUILD_release$ac_delim
56919 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
56920 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
56921 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
56922 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
56923 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
56924 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
56925 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
56926 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
56927 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
56928 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
56929 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
56930 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
56931 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
56932 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
56933 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
56934 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
56935 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
56936 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
56937 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1$ac_delim
56938 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
56939 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
56940 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
56941 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
56942 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
56943 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
56944 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
56945 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
56946 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
56947 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
56948 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
56949 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1$ac_delim
56950 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
56951 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
56952 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
56953 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
56954 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
56955 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
56956 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
56957 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
56958 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
56959 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
56960 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
56961 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
56962 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
56963 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
56964 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
56965 COND_MONOLITHIC_0_USE_WEBVIEW_1!$COND_MONOLITHIC_0_USE_WEBVIEW_1$ac_delim
56966 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
56967 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
56968 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
56969 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
56970 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
56971 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
56972 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
56973 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
56974 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
56975 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
56976 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
56977 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
56978 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
56979 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
56980 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
56981 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
56982 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
56983 _ACEOF
56984
56985   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56986     break
56987   elif $ac_last_try; then
56988     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56989 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56990    { (exit 1); exit 1; }; }
56991   else
56992     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56993   fi
56994 done
56995
56996 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56997 if test -n "$ac_eof"; then
56998   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56999   ac_eof=`expr $ac_eof + 1`
57000 fi
57001
57002 cat >>$CONFIG_STATUS <<_ACEOF
57003 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
57004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57005 _ACEOF
57006 sed '
57007 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
57008 s/^/s,@/; s/!/@,|#_!!_#|/
57009 :n
57010 t n
57011 s/'"$ac_delim"'$/,g/; t
57012 s/$/\\/; p
57013 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
57014 ' >>$CONFIG_STATUS <conf$$subs.sed
57015 rm -f conf$$subs.sed
57016 cat >>$CONFIG_STATUS <<_ACEOF
57017 CEOF$ac_eof
57018 _ACEOF
57019
57020
57021 ac_delim='%!_!# '
57022 for ac_last_try in false false false false false :; do
57023   cat >conf$$subs.sed <<_ACEOF
57024 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
57025 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
57026 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
57027 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
57028 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
57029 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
57030 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
57031 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
57032 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
57033 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
57034 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
57035 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
57036 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
57037 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
57038 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
57039 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
57040 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
57041 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
57042 COND_SHARED_0!$COND_SHARED_0$ac_delim
57043 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
57044 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
57045 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
57046 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
57047 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
57048 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
57049 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
57050 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
57051 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
57052 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
57053 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
57054 COND_SHARED_1!$COND_SHARED_1$ac_delim
57055 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
57056 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
57057 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
57058 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
57059 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
57060 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
57061 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
57062 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
57063 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
57064 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
57065 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
57066 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
57067 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
57068 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
57069 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
57070 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
57071 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
57072 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
57073 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
57074 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
57075 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
57076 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
57077 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
57078 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
57079 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
57080 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
57081 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
57082 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
57083 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
57084 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
57085 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
57086 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
57087 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
57088 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
57089 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
57090 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
57091 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
57092 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
57093 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
57094 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
57095 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
57096 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
57097 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
57098 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
57099 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
57100 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
57101 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
57102 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
57103 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
57104 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
57105 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
57106 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
57107 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
57108 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
57109 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
57110 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
57111 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
57112 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
57113 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
57114 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
57115 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
57116 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
57117 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
57118 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
57119 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
57120 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
57121 _ACEOF
57122
57123   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
57124     break
57125   elif $ac_last_try; then
57126     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57127 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57128    { (exit 1); exit 1; }; }
57129   else
57130     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57131   fi
57132 done
57133
57134 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
57135 if test -n "$ac_eof"; then
57136   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
57137   ac_eof=`expr $ac_eof + 1`
57138 fi
57139
57140 cat >>$CONFIG_STATUS <<_ACEOF
57141 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
57142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57143 _ACEOF
57144 sed '
57145 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
57146 s/^/s,@/; s/!/@,|#_!!_#|/
57147 :n
57148 t n
57149 s/'"$ac_delim"'$/,g/; t
57150 s/$/\\/; p
57151 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
57152 ' >>$CONFIG_STATUS <conf$$subs.sed
57153 rm -f conf$$subs.sed
57154 cat >>$CONFIG_STATUS <<_ACEOF
57155 CEOF$ac_eof
57156 _ACEOF
57157
57158
57159 ac_delim='%!_!# '
57160 for ac_last_try in false false false false false :; do
57161   cat >conf$$subs.sed <<_ACEOF
57162 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
57163 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
57164 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
57165 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
57166 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
57167 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
57168 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
57169 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
57170 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
57171 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
57172 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
57173 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
57174 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
57175 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
57176 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
57177 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
57178 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
57179 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
57180 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
57181 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
57182 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
57183 DEREZ!$DEREZ$ac_delim
57184 SHARED!$SHARED$ac_delim
57185 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
57186 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
57187 USE_GUI!$USE_GUI$ac_delim
57188 AFMINSTALL!$AFMINSTALL$ac_delim
57189 WIN32INSTALL!$WIN32INSTALL$ac_delim
57190 TOOLKIT!$TOOLKIT$ac_delim
57191 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
57192 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
57193 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
57194 cross_compiling!$cross_compiling$ac_delim
57195 WIDGET_SET!$WIDGET_SET$ac_delim
57196 WX_RELEASE!$WX_RELEASE$ac_delim
57197 WX_VERSION!$WX_VERSION$ac_delim
57198 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
57199 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
57200 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
57201 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
57202 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
57203 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
57204 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
57205 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
57206 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
57207 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
57208 GUIDIST!$GUIDIST$ac_delim
57209 DISTDIR!$DISTDIR$ac_delim
57210 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
57211 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
57212 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
57213 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
57214 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
57215 RESCOMP!$RESCOMP$ac_delim
57216 RESFLAGS!$RESFLAGS$ac_delim
57217 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
57218 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
57219 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
57220 LIBWXMACRES!$LIBWXMACRES$ac_delim
57221 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
57222 MACSETFILE!$MACSETFILE$ac_delim
57223 GCC!$GCC$ac_delim
57224 DLLTOOL!$DLLTOOL$ac_delim
57225 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
57226 LIBOBJS!$LIBOBJS$ac_delim
57227 LTLIBOBJS!$LTLIBOBJS$ac_delim
57228 _ACEOF
57229
57230   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
57231     break
57232   elif $ac_last_try; then
57233     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57234 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57235    { (exit 1); exit 1; }; }
57236   else
57237     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57238   fi
57239 done
57240
57241 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
57242 if test -n "$ac_eof"; then
57243   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
57244   ac_eof=`expr $ac_eof + 1`
57245 fi
57246
57247 cat >>$CONFIG_STATUS <<_ACEOF
57248 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
57249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
57250 _ACEOF
57251 sed '
57252 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
57253 s/^/s,@/; s/!/@,|#_!!_#|/
57254 :n
57255 t n
57256 s/'"$ac_delim"'$/,g/; t
57257 s/$/\\/; p
57258 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
57259 ' >>$CONFIG_STATUS <conf$$subs.sed
57260 rm -f conf$$subs.sed
57261 cat >>$CONFIG_STATUS <<_ACEOF
57262 :end
57263 s/|#_!!_#|//g
57264 CEOF$ac_eof
57265 _ACEOF
57266
57267
57268 # VPATH may cause trouble with some makes, so we remove $(srcdir),
57269 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
57270 # trailing colons and then remove the whole line if VPATH becomes empty
57271 # (actually we leave an empty line to preserve line numbers).
57272 if test "x$srcdir" = x.; then
57273   ac_vpsub='/^[  ]*VPATH[        ]*=/{
57274 s/:*\$(srcdir):*/:/
57275 s/:*\${srcdir}:*/:/
57276 s/:*@srcdir@:*/:/
57277 s/^\([^=]*=[     ]*\):*/\1/
57278 s/:*$//
57279 s/^[^=]*=[       ]*$//
57280 }'
57281 fi
57282
57283 cat >>$CONFIG_STATUS <<\_ACEOF
57284 fi # test -n "$CONFIG_FILES"
57285
57286
57287 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
57288 do
57289   case $ac_tag in
57290   :[FHLC]) ac_mode=$ac_tag; continue;;
57291   esac
57292   case $ac_mode$ac_tag in
57293   :[FHL]*:*);;
57294   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
57295 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
57296    { (exit 1); exit 1; }; };;
57297   :[FH]-) ac_tag=-:-;;
57298   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
57299   esac
57300   ac_save_IFS=$IFS
57301   IFS=:
57302   set x $ac_tag
57303   IFS=$ac_save_IFS
57304   shift
57305   ac_file=$1
57306   shift
57307
57308   case $ac_mode in
57309   :L) ac_source=$1;;
57310   :[FH])
57311     ac_file_inputs=
57312     for ac_f
57313     do
57314       case $ac_f in
57315       -) ac_f="$tmp/stdin";;
57316       *) # Look for the file first in the build tree, then in the source tree
57317          # (if the path is not absolute).  The absolute path cannot be DOS-style,
57318          # because $ac_f cannot contain `:'.
57319          test -f "$ac_f" ||
57320            case $ac_f in
57321            [\\/$]*) false;;
57322            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
57323            esac ||
57324            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
57325 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
57326    { (exit 1); exit 1; }; };;
57327       esac
57328       ac_file_inputs="$ac_file_inputs $ac_f"
57329     done
57330
57331     # Let's still pretend it is `configure' which instantiates (i.e., don't
57332     # use $as_me), people would be surprised to read:
57333     #    /* config.h.  Generated by config.status.  */
57334     configure_input="Generated from "`IFS=:
57335           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
57336     if test x"$ac_file" != x-; then
57337       configure_input="$ac_file.  $configure_input"
57338       { echo "$as_me:$LINENO: creating $ac_file" >&5
57339 echo "$as_me: creating $ac_file" >&6;}
57340     fi
57341
57342     case $ac_tag in
57343     *:-:* | *:-) cat >"$tmp/stdin";;
57344     esac
57345     ;;
57346   esac
57347
57348   ac_dir=`$as_dirname -- "$ac_file" ||
57349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57350          X"$ac_file" : 'X\(//\)[^/]' \| \
57351          X"$ac_file" : 'X\(//\)$' \| \
57352          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
57353 echo X"$ac_file" |
57354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57355             s//\1/
57356             q
57357           }
57358           /^X\(\/\/\)[^/].*/{
57359             s//\1/
57360             q
57361           }
57362           /^X\(\/\/\)$/{
57363             s//\1/
57364             q
57365           }
57366           /^X\(\/\).*/{
57367             s//\1/
57368             q
57369           }
57370           s/.*/./; q'`
57371   { as_dir="$ac_dir"
57372   case $as_dir in #(
57373   -*) as_dir=./$as_dir;;
57374   esac
57375   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57376     as_dirs=
57377     while :; do
57378       case $as_dir in #(
57379       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
57380       *) as_qdir=$as_dir;;
57381       esac
57382       as_dirs="'$as_qdir' $as_dirs"
57383       as_dir=`$as_dirname -- "$as_dir" ||
57384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57385          X"$as_dir" : 'X\(//\)[^/]' \| \
57386          X"$as_dir" : 'X\(//\)$' \| \
57387          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57388 echo X"$as_dir" |
57389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57390             s//\1/
57391             q
57392           }
57393           /^X\(\/\/\)[^/].*/{
57394             s//\1/
57395             q
57396           }
57397           /^X\(\/\/\)$/{
57398             s//\1/
57399             q
57400           }
57401           /^X\(\/\).*/{
57402             s//\1/
57403             q
57404           }
57405           s/.*/./; q'`
57406       test -d "$as_dir" && break
57407     done
57408     test -z "$as_dirs" || eval "mkdir $as_dirs"
57409   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57410 echo "$as_me: error: cannot create directory $as_dir" >&2;}
57411    { (exit 1); exit 1; }; }; }
57412   ac_builddir=.
57413
57414 case "$ac_dir" in
57415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57416 *)
57417   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57418   # A ".." for each directory in $ac_dir_suffix.
57419   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
57420   case $ac_top_builddir_sub in
57421   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57422   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57423   esac ;;
57424 esac
57425 ac_abs_top_builddir=$ac_pwd
57426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57427 # for backward compatibility:
57428 ac_top_builddir=$ac_top_build_prefix
57429
57430 case $srcdir in
57431   .)  # We are building in place.
57432     ac_srcdir=.
57433     ac_top_srcdir=$ac_top_builddir_sub
57434     ac_abs_top_srcdir=$ac_pwd ;;
57435   [\\/]* | ?:[\\/]* )  # Absolute name.
57436     ac_srcdir=$srcdir$ac_dir_suffix;
57437     ac_top_srcdir=$srcdir
57438     ac_abs_top_srcdir=$srcdir ;;
57439   *) # Relative name.
57440     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57441     ac_top_srcdir=$ac_top_build_prefix$srcdir
57442     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57443 esac
57444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57445
57446
57447   case $ac_mode in
57448   :F)
57449   #
57450   # CONFIG_FILE
57451   #
57452
57453   case $INSTALL in
57454   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
57455   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
57456   esac
57457 _ACEOF
57458
57459 cat >>$CONFIG_STATUS <<\_ACEOF
57460 # If the template does not know about datarootdir, expand it.
57461 # FIXME: This hack should be removed a few years after 2.60.
57462 ac_datarootdir_hack=; ac_datarootdir_seen=
57463
57464 case `sed -n '/datarootdir/ {
57465   p
57466   q
57467 }
57468 /@datadir@/p
57469 /@docdir@/p
57470 /@infodir@/p
57471 /@localedir@/p
57472 /@mandir@/p
57473 ' $ac_file_inputs` in
57474 *datarootdir*) ac_datarootdir_seen=yes;;
57475 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57476   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
57477 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
57478 _ACEOF
57479 cat >>$CONFIG_STATUS <<_ACEOF
57480   ac_datarootdir_hack='
57481   s&@datadir@&$datadir&g
57482   s&@docdir@&$docdir&g
57483   s&@infodir@&$infodir&g
57484   s&@localedir@&$localedir&g
57485   s&@mandir@&$mandir&g
57486     s&\\\${datarootdir}&$datarootdir&g' ;;
57487 esac
57488 _ACEOF
57489
57490 # Neutralize VPATH when `$srcdir' = `.'.
57491 # Shell code in configure.ac might set extrasub.
57492 # FIXME: do we really want to maintain this feature?
57493 cat >>$CONFIG_STATUS <<_ACEOF
57494   sed "$ac_vpsub
57495 $extrasub
57496 _ACEOF
57497 cat >>$CONFIG_STATUS <<\_ACEOF
57498 :t
57499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57500 s&@configure_input@&$configure_input&;t t
57501 s&@top_builddir@&$ac_top_builddir_sub&;t t
57502 s&@srcdir@&$ac_srcdir&;t t
57503 s&@abs_srcdir@&$ac_abs_srcdir&;t t
57504 s&@top_srcdir@&$ac_top_srcdir&;t t
57505 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
57506 s&@builddir@&$ac_builddir&;t t
57507 s&@abs_builddir@&$ac_abs_builddir&;t t
57508 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
57509 s&@INSTALL@&$ac_INSTALL&;t t
57510 $ac_datarootdir_hack
57511 " $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
57512
57513 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
57514   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
57515   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
57516   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57517 which seems to be undefined.  Please make sure it is defined." >&5
57518 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57519 which seems to be undefined.  Please make sure it is defined." >&2;}
57520
57521   rm -f "$tmp/stdin"
57522   case $ac_file in
57523   -) cat "$tmp/out"; rm -f "$tmp/out";;
57524   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
57525   esac
57526  ;;
57527   :H)
57528   #
57529   # CONFIG_HEADER
57530   #
57531 _ACEOF
57532
57533 # Transform confdefs.h into a sed script `conftest.defines', that
57534 # substitutes the proper values into config.h.in to produce config.h.
57535 rm -f conftest.defines conftest.tail
57536 # First, append a space to every undef/define line, to ease matching.
57537 echo 's/$/ /' >conftest.defines
57538 # Then, protect against being on the right side of a sed subst, or in
57539 # an unquoted here document, in config.status.  If some macros were
57540 # called several times there might be several #defines for the same
57541 # symbol, which is useless.  But do not sort them, since the last
57542 # AC_DEFINE must be honored.
57543 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
57544 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
57545 # NAME is the cpp macro being defined, VALUE is the value it is being given.
57546 # PARAMS is the parameter list in the macro definition--in most cases, it's
57547 # just an empty string.
57548 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
57549 ac_dB='\\)[      (].*,\\1define\\2'
57550 ac_dC=' '
57551 ac_dD=' ,'
57552
57553 uniq confdefs.h |
57554   sed -n '
57555         t rset
57556         :rset
57557         s/^[     ]*#[    ]*define[       ][      ]*//
57558         t ok
57559         d
57560         :ok
57561         s/[\\&,]/\\&/g
57562         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
57563         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
57564   ' >>conftest.defines
57565
57566 # Remove the space that was appended to ease matching.
57567 # Then replace #undef with comments.  This is necessary, for
57568 # example, in the case of _POSIX_SOURCE, which is predefined and required
57569 # on some systems where configure will not decide to define it.
57570 # (The regexp can be short, since the line contains either #define or #undef.)
57571 echo 's/ $//
57572 s,^[     #]*u.*,/* & */,' >>conftest.defines
57573
57574 # Break up conftest.defines:
57575 ac_max_sed_lines=50
57576
57577 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
57578 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
57579 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
57580 # et cetera.
57581 ac_in='$ac_file_inputs'
57582 ac_out='"$tmp/out1"'
57583 ac_nxt='"$tmp/out2"'
57584
57585 while :
57586 do
57587   # Write a here document:
57588     cat >>$CONFIG_STATUS <<_ACEOF
57589     # First, check the format of the line:
57590     cat >"\$tmp/defines.sed" <<\\CEOF
57591 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
57592 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
57593 b
57594 :def
57595 _ACEOF
57596   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
57597   echo 'CEOF
57598     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
57599   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
57600   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
57601   grep . conftest.tail >/dev/null || break
57602   rm -f conftest.defines
57603   mv conftest.tail conftest.defines
57604 done
57605 rm -f conftest.defines conftest.tail
57606
57607 echo "ac_result=$ac_in" >>$CONFIG_STATUS
57608 cat >>$CONFIG_STATUS <<\_ACEOF
57609   if test x"$ac_file" != x-; then
57610     echo "/* $configure_input  */" >"$tmp/config.h"
57611     cat "$ac_result" >>"$tmp/config.h"
57612     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
57613       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
57614 echo "$as_me: $ac_file is unchanged" >&6;}
57615     else
57616       rm -f $ac_file
57617       mv "$tmp/config.h" $ac_file
57618     fi
57619   else
57620     echo "/* $configure_input  */"
57621     cat "$ac_result"
57622   fi
57623   rm -f "$tmp/out12"
57624  ;;
57625
57626   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
57627 echo "$as_me: executing $ac_file commands" >&6;}
57628  ;;
57629   esac
57630
57631
57632   case $ac_file$ac_mode in
57633     "rcdefs.h":C)
57634             mkdir -p $outdir &&
57635             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
57636          ;;
57637     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
57638     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
57639     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
57640     "wx-config":C)  rm -f wx-config
57641                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
57642                     ;;
57643
57644   esac
57645 done # for ac_tag
57646
57647
57648 { (exit 0); exit 0; }
57649 _ACEOF
57650 chmod +x $CONFIG_STATUS
57651 ac_clean_files=$ac_clean_files_save
57652
57653
57654 # configure is writing to config.log, and then calls config.status.
57655 # config.status does its own redirection, appending to config.log.
57656 # Unfortunately, on DOS this fails, as config.log is still kept open
57657 # by configure, so config.status won't be able to write to it; its
57658 # output is simply discarded.  So we exec the FD to /dev/null,
57659 # effectively closing config.log, so it can be properly (re)opened and
57660 # appended to by config.status.  When coming back to configure, we
57661 # need to make the FD available again.
57662 if test "$no_create" != yes; then
57663   ac_cs_success=:
57664   ac_config_status_args=
57665   test "$silent" = yes &&
57666     ac_config_status_args="$ac_config_status_args --quiet"
57667   exec 5>/dev/null
57668   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
57669   exec 5>>config.log
57670   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
57671   # would make configure fail if this is the last instruction.
57672   $ac_cs_success || { (exit 1); exit 1; }
57673 fi
57674
57675 #
57676 # CONFIG_SUBDIRS section.
57677 #
57678 if test "$no_recursion" != yes; then
57679
57680   # Remove --cache-file and --srcdir arguments so they do not pile up.
57681   ac_sub_configure_args=
57682   ac_prev=
57683   eval "set x $ac_configure_args"
57684   shift
57685   for ac_arg
57686   do
57687     if test -n "$ac_prev"; then
57688       ac_prev=
57689       continue
57690     fi
57691     case $ac_arg in
57692     -cache-file | --cache-file | --cache-fil | --cache-fi \
57693     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
57694       ac_prev=cache_file ;;
57695     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
57696     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
57697     | --c=*)
57698       ;;
57699     --config-cache | -C)
57700       ;;
57701     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
57702       ac_prev=srcdir ;;
57703     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
57704       ;;
57705     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
57706       ac_prev=prefix ;;
57707     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
57708       ;;
57709     *)
57710       case $ac_arg in
57711       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57712       esac
57713       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
57714     esac
57715   done
57716
57717   # Always prepend --prefix to ensure using the same prefix
57718   # in subdir configurations.
57719   ac_arg="--prefix=$prefix"
57720   case $ac_arg in
57721   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57722   esac
57723   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
57724
57725   # Pass --silent
57726   if test "$silent" = yes; then
57727     ac_sub_configure_args="--silent $ac_sub_configure_args"
57728   fi
57729
57730   ac_popdir=`pwd`
57731   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
57732
57733     # Do not complain, so a configure script can configure whichever
57734     # parts of a large source tree are present.
57735     test -d "$srcdir/$ac_dir" || continue
57736
57737     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
57738     echo "$as_me:$LINENO: $ac_msg" >&5
57739     echo "$ac_msg" >&6
57740     { as_dir="$ac_dir"
57741   case $as_dir in #(
57742   -*) as_dir=./$as_dir;;
57743   esac
57744   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57745     as_dirs=
57746     while :; do
57747       case $as_dir in #(
57748       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
57749       *) as_qdir=$as_dir;;
57750       esac
57751       as_dirs="'$as_qdir' $as_dirs"
57752       as_dir=`$as_dirname -- "$as_dir" ||
57753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57754          X"$as_dir" : 'X\(//\)[^/]' \| \
57755          X"$as_dir" : 'X\(//\)$' \| \
57756          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57757 echo X"$as_dir" |
57758     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57759             s//\1/
57760             q
57761           }
57762           /^X\(\/\/\)[^/].*/{
57763             s//\1/
57764             q
57765           }
57766           /^X\(\/\/\)$/{
57767             s//\1/
57768             q
57769           }
57770           /^X\(\/\).*/{
57771             s//\1/
57772             q
57773           }
57774           s/.*/./; q'`
57775       test -d "$as_dir" && break
57776     done
57777     test -z "$as_dirs" || eval "mkdir $as_dirs"
57778   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57779 echo "$as_me: error: cannot create directory $as_dir" >&2;}
57780    { (exit 1); exit 1; }; }; }
57781     ac_builddir=.
57782
57783 case "$ac_dir" in
57784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57785 *)
57786   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57787   # A ".." for each directory in $ac_dir_suffix.
57788   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
57789   case $ac_top_builddir_sub in
57790   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57791   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57792   esac ;;
57793 esac
57794 ac_abs_top_builddir=$ac_pwd
57795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57796 # for backward compatibility:
57797 ac_top_builddir=$ac_top_build_prefix
57798
57799 case $srcdir in
57800   .)  # We are building in place.
57801     ac_srcdir=.
57802     ac_top_srcdir=$ac_top_builddir_sub
57803     ac_abs_top_srcdir=$ac_pwd ;;
57804   [\\/]* | ?:[\\/]* )  # Absolute name.
57805     ac_srcdir=$srcdir$ac_dir_suffix;
57806     ac_top_srcdir=$srcdir
57807     ac_abs_top_srcdir=$srcdir ;;
57808   *) # Relative name.
57809     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57810     ac_top_srcdir=$ac_top_build_prefix$srcdir
57811     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57812 esac
57813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57814
57815
57816     cd "$ac_dir"
57817
57818     # Check for guested configure; otherwise get Cygnus style configure.
57819     if test -f "$ac_srcdir/configure.gnu"; then
57820       ac_sub_configure=$ac_srcdir/configure.gnu
57821     elif test -f "$ac_srcdir/configure"; then
57822       ac_sub_configure=$ac_srcdir/configure
57823     elif test -f "$ac_srcdir/configure.in"; then
57824       # This should be Cygnus configure.
57825       ac_sub_configure=$ac_aux_dir/configure
57826     else
57827       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
57828 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
57829       ac_sub_configure=
57830     fi
57831
57832     # The recursion is here.
57833     if test -n "$ac_sub_configure"; then
57834       # Make the cache file name correct relative to the subdirectory.
57835       case $cache_file in
57836       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
57837       *) # Relative name.
57838         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
57839       esac
57840
57841       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
57842 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
57843       # The eval makes quoting arguments work.
57844       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
57845            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
57846         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
57847 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
57848    { (exit 1); exit 1; }; }
57849     fi
57850
57851     cd "$ac_popdir"
57852   done
57853 fi
57854
57855
57856 echo
57857 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
57858 echo ""
57859 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
57860 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
57861 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
57862 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
57863 if test "$wxUSE_UNICODE" = "yes"; then
57864     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
57865         echo " (using UTF-8)"
57866     else
57867         echo " (using wchar_t)"
57868     fi
57869 else
57870     echo
57871 fi
57872
57873 echo "  What level of wxWidgets compatibility should be enabled?"
57874 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
57875 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
57876
57877 echo "  Which libraries should wxWidgets use?"
57878 echo "                                       STL                ${wxUSE_STL}"
57879 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
57880 echo "                                       png                ${wxUSE_LIBPNG-none}"
57881 echo "                                       regex              ${wxUSE_REGEX}"
57882 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
57883 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
57884 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
57885 fi
57886 echo "                                       zlib               ${wxUSE_ZLIB}"
57887 echo "                                       expat              ${wxUSE_EXPAT}"
57888 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
57889 echo "                                       sdl                ${wxUSE_LIBSDL}"
57890
57891 echo ""
57892