Remove wxHAVE_GLIBC2 from configure, always predefine _GNU_SOURCE.
[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 "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19587                     cat >>confdefs.h <<\_ACEOF
19588 #define _GNU_SOURCE 1
19589 _ACEOF
19590
19591 fi
19592
19593 if test "x$USE_AIX" = "x1"; then
19594             if test "x$XLCXX" = "xyes"; then
19595         CXXFLAGS="-qunique $CXXFLAGS"
19596     fi
19597
19598                                 CPPFLAGS="-D_LINUX_SOURCE_COMPAT $CPPFLAGS"
19599 fi
19600
19601 case "${host}" in
19602   powerpc-*-darwin* )
19603     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19604 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19605     cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h.  */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h.  */
19611
19612 int
19613 main ()
19614 {
19615 #ifndef __POWERPC__
19616         choke me for lack of PowerPC
19617 #endif
19618
19619   ;
19620   return 0;
19621 }
19622 _ACEOF
19623 rm -f conftest.$ac_objext
19624 if { (ac_try="$ac_compile"
19625 case "(($ac_try" in
19626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627   *) ac_try_echo=$ac_try;;
19628 esac
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630   (eval "$ac_compile") 2>conftest.er1
19631   ac_status=$?
19632   grep -v '^ *+' conftest.er1 >conftest.err
19633   rm -f conftest.er1
19634   cat conftest.err >&5
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); } && {
19637          test -z "$ac_c_werror_flag" ||
19638          test ! -s conftest.err
19639        } && test -s conftest.$ac_objext; then
19640   { echo "$as_me:$LINENO: result: yes" >&5
19641 echo "${ECHO_T}yes" >&6; }
19642 else
19643   echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19645
19646         { echo "$as_me:$LINENO: result: no" >&5
19647 echo "${ECHO_T}no" >&6; }
19648         cat >>confdefs.h <<\_ACEOF
19649 #define __POWERPC__ 1
19650 _ACEOF
19651
19652
19653 fi
19654
19655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19656   ;;
19657 esac
19658
19659 case "${host}" in
19660   *-*-darwin* )
19661     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19662 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19663     cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h.  */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h.  */
19669 #include <CoreFoundation/CFBase.h>
19670
19671 int
19672 main ()
19673 {
19674
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
19681 case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686   (eval "$ac_compile") 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } && {
19693          test -z "$ac_c_werror_flag" ||
19694          test ! -s conftest.err
19695        } && test -s conftest.$ac_objext; then
19696   { echo "$as_me:$LINENO: result: yes" >&5
19697 echo "${ECHO_T}yes" >&6; }
19698 else
19699   echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19701
19702         { echo "$as_me:$LINENO: result: no" >&5
19703 echo "${ECHO_T}no" >&6; }
19704         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19705 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19706         cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h.  */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h.  */
19712 #define __CF_USE_FRAMEWORK_INCLUDES__
19713 #include <CoreFoundation/CFBase.h>
19714
19715 int
19716 main ()
19717 {
19718
19719   ;
19720   return 0;
19721 }
19722 _ACEOF
19723 rm -f conftest.$ac_objext
19724 if { (ac_try="$ac_compile"
19725 case "(($ac_try" in
19726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727   *) ac_try_echo=$ac_try;;
19728 esac
19729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730   (eval "$ac_compile") 2>conftest.er1
19731   ac_status=$?
19732   grep -v '^ *+' conftest.er1 >conftest.err
19733   rm -f conftest.er1
19734   cat conftest.err >&5
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); } && {
19737          test -z "$ac_c_werror_flag" ||
19738          test ! -s conftest.err
19739        } && test -s conftest.$ac_objext; then
19740   { echo "$as_me:$LINENO: result: yes" >&5
19741 echo "${ECHO_T}yes" >&6; }
19742                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19743 else
19744   echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19748 See \`config.log' for more details." >&5
19749 echo "$as_me: error: no.  CoreFoundation not available.
19750 See \`config.log' for more details." >&2;}
19751    { (exit 1); exit 1; }; }
19752
19753 fi
19754
19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19756
19757
19758 fi
19759
19760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19761   ;;
19762 esac
19763
19764 wants_win32=0
19765 doesnt_want_win32=0
19766 case "${host}" in
19767   *-*-cygwin*)
19768       if test "$wxUSE_MSW" = 1 ; then
19769         wants_win32=1
19770       else
19771                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19772 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19773 if test "${wx_cv_nocygwin+set}" = set; then
19774   echo $ECHO_N "(cached) $ECHO_C" >&6
19775 else
19776
19777                 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h.  */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h.  */
19783
19784 int
19785 main ()
19786 {
19787
19788                         #ifdef __MINGW32__
19789                             choke me
19790                         #endif
19791
19792   ;
19793   return 0;
19794 }
19795 _ACEOF
19796 rm -f conftest.$ac_objext
19797 if { (ac_try="$ac_compile"
19798 case "(($ac_try" in
19799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800   *) ac_try_echo=$ac_try;;
19801 esac
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803   (eval "$ac_compile") 2>conftest.er1
19804   ac_status=$?
19805   grep -v '^ *+' conftest.er1 >conftest.err
19806   rm -f conftest.er1
19807   cat conftest.err >&5
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); } && {
19810          test -z "$ac_c_werror_flag" ||
19811          test ! -s conftest.err
19812        } && test -s conftest.$ac_objext; then
19813   wx_cv_nocygwin=no
19814 else
19815   echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818         wx_cv_nocygwin=yes
19819
19820 fi
19821
19822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19823
19824
19825 fi
19826 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19827 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19828
19829         if test "$wx_cv_nocygwin" = "yes"; then
19830             wants_win32=1
19831         else
19832             doesnt_want_win32=1
19833         fi
19834       fi
19835       if test "$wants_win32" = 1 ; then
19836         BAKEFILE_FORCE_PLATFORM=win32
19837       fi
19838   ;;
19839   *-*-mingw*)
19840       wants_win32=1
19841   ;;
19842 esac
19843
19844 if test "$wxUSE_WINE" = "yes"; then
19845     wants_win32=1
19846     LDFLAGS_GUI="-mwindows"
19847 fi
19848
19849 if test "$wants_win32" = 1 ; then
19850     USE_UNIX=0
19851     USE_WIN32=1
19852     cat >>confdefs.h <<\_ACEOF
19853 #define __WIN32__ 1
19854 _ACEOF
19855
19856     cat >>confdefs.h <<\_ACEOF
19857 #define __WIN95__ 1
19858 _ACEOF
19859
19860     cat >>confdefs.h <<\_ACEOF
19861 #define __WINDOWS__ 1
19862 _ACEOF
19863
19864     cat >>confdefs.h <<\_ACEOF
19865 #define __GNUWIN32__ 1
19866 _ACEOF
19867
19868     cat >>confdefs.h <<\_ACEOF
19869 #define STRICT 1
19870 _ACEOF
19871
19872 fi
19873 if test "$doesnt_want_win32" = 1 ; then
19874     USE_UNIX=1
19875     USE_WIN32=0
19876 fi
19877
19878 if test "$USE_UNIX" = 1 ; then
19879     wxUSE_UNIX=yes
19880     cat >>confdefs.h <<\_ACEOF
19881 #define __UNIX__ 1
19882 _ACEOF
19883
19884 fi
19885
19886 case "${host}" in
19887   *-pc-os2_emx | *-pc-os2-emx )
19888                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19889                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19890 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19891 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19892   echo $ECHO_N "(cached) $ECHO_C" >&6
19893 else
19894   ac_check_lib_save_LIBS=$LIBS
19895 LIBS="-lcExt  $LIBS"
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h.  */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h.  */
19902
19903 /* Override any GCC internal prototype to avoid an error.
19904    Use char because int might match the return type of a GCC
19905    builtin and then its argument prototype would still apply.  */
19906 #ifdef __cplusplus
19907 extern "C"
19908 #endif
19909 char drand48 ();
19910 int
19911 main ()
19912 {
19913 return drand48 ();
19914   ;
19915   return 0;
19916 }
19917 _ACEOF
19918 rm -f conftest.$ac_objext conftest$ac_exeext
19919 if { (ac_try="$ac_link"
19920 case "(($ac_try" in
19921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922   *) ac_try_echo=$ac_try;;
19923 esac
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925   (eval "$ac_link") 2>conftest.er1
19926   ac_status=$?
19927   grep -v '^ *+' conftest.er1 >conftest.err
19928   rm -f conftest.er1
19929   cat conftest.err >&5
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); } && {
19932          test -z "$ac_c_werror_flag" ||
19933          test ! -s conftest.err
19934        } && test -s conftest$ac_exeext &&
19935        $as_test_x conftest$ac_exeext; then
19936   ac_cv_lib_cExt_drand48=yes
19937 else
19938   echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941         ac_cv_lib_cExt_drand48=no
19942 fi
19943
19944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19945       conftest$ac_exeext conftest.$ac_ext
19946 LIBS=$ac_check_lib_save_LIBS
19947 fi
19948 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19949 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19950 if test $ac_cv_lib_cExt_drand48 = yes; then
19951   LIBS="$LIBS -lcExt"
19952 fi
19953
19954       else
19955                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19956       fi
19957                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19958 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19959 if test "${wx_cv_gccversion+set}" = set; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962
19963           if test "$cross_compiling" = yes; then
19964                 wx_cv_gccversion="EMX2"
19965
19966 else
19967   cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973
19974                   #include <stdio.h>
19975
19976                   int main()
19977                   {
19978                       FILE *f=fopen("conftestval", "w");
19979                       if (!f) exit(1);
19980                       fprintf(f,
19981                   #if (__GNUC__ < 3)
19982                               "EMX2"
19983                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19984                               "EMX3"
19985                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19986                               "Innotek5"
19987                   #else
19988                               "Innotek6"
19989                   #endif
19990                       );
19991                       exit(0);
19992                   }
19993
19994 _ACEOF
19995 rm -f conftest$ac_exeext
19996 if { (ac_try="$ac_link"
19997 case "(($ac_try" in
19998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999   *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002   (eval "$ac_link") 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20006   { (case "(($ac_try" in
20007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008   *) ac_try_echo=$ac_try;;
20009 esac
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011   (eval "$ac_try") 2>&5
20012   ac_status=$?
20013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014   (exit $ac_status); }; }; then
20015   wx_cv_gccversion=`cat conftestval`
20016 else
20017   echo "$as_me: program exited with status $ac_status" >&5
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021 ( exit $ac_status )
20022 wx_cv_gccversion="EMX2"
20023 fi
20024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20025 fi
20026
20027
20028
20029 fi
20030 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
20031 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
20032       if test "$wx_cv_gccversion" = "EMX2"; then
20033           LIBS="$LIBS -lstdcpp"
20034           LDFLAGS="$LDFLAGS -Zsysv-signals"
20035       else
20036           if test "$wx_cv_gccversion" = "EMX3"; then
20037               LIBS="$LIBS -lstdcxx -lgcc"
20038               LDFLAGS="$LDFLAGS -Zsysv-signals"
20039           else
20040               LIBS="$LIBS -lstdc++"
20041           fi
20042       fi
20043       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
20044         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
20045 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
20046         wxUSE_OMF=yes
20047         enable_omf=yes
20048       fi
20049         ;;
20050   *)
20051
20052       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
20053 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
20054 if test "${ac_cv_string_strcasecmp+set}" = set; then
20055   echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057
20058           cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064
20065               #include <string.h>
20066
20067 int
20068 main ()
20069 {
20070
20071                   strcasecmp("foo", "bar");
20072
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (ac_try="$ac_link"
20079 case "(($ac_try" in
20080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081   *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084   (eval "$ac_link") 2>conftest.er1
20085   ac_status=$?
20086   grep -v '^ *+' conftest.er1 >conftest.err
20087   rm -f conftest.er1
20088   cat conftest.err >&5
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); } && {
20091          test -z "$ac_c_werror_flag" ||
20092          test ! -s conftest.err
20093        } && test -s conftest$ac_exeext &&
20094        $as_test_x conftest$ac_exeext; then
20095   ac_cv_string_strcasecmp=yes
20096 else
20097   echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20099
20100         ac_cv_string_strcasecmp=no
20101
20102 fi
20103
20104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105       conftest$ac_exeext conftest.$ac_ext
20106
20107 fi
20108 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
20109 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
20110
20111       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
20112           cat >>confdefs.h <<\_ACEOF
20113 #define HAVE_STRCASECMP_IN_STRING_H 1
20114 _ACEOF
20115
20116       else
20117           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
20118 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
20119 if test "${ac_cv_strings_strcasecmp+set}" = set; then
20120   echo $ECHO_N "(cached) $ECHO_C" >&6
20121 else
20122
20123               cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h.  */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h.  */
20129
20130                   #include <strings.h>
20131
20132 int
20133 main ()
20134 {
20135
20136                       strcasecmp("foo", "bar");
20137
20138   ;
20139   return 0;
20140 }
20141 _ACEOF
20142 rm -f conftest.$ac_objext conftest$ac_exeext
20143 if { (ac_try="$ac_link"
20144 case "(($ac_try" in
20145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146   *) ac_try_echo=$ac_try;;
20147 esac
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149   (eval "$ac_link") 2>conftest.er1
20150   ac_status=$?
20151   grep -v '^ *+' conftest.er1 >conftest.err
20152   rm -f conftest.er1
20153   cat conftest.err >&5
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); } && {
20156          test -z "$ac_c_werror_flag" ||
20157          test ! -s conftest.err
20158        } && test -s conftest$ac_exeext &&
20159        $as_test_x conftest$ac_exeext; then
20160   ac_cv_strings_strcasecmp=yes
20161 else
20162   echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165         ac_cv_strings_strcasecmp=no
20166
20167 fi
20168
20169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20170       conftest$ac_exeext conftest.$ac_ext
20171
20172 fi
20173 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
20174 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
20175
20176           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
20177               cat >>confdefs.h <<\_ACEOF
20178 #define HAVE_STRCASECMP_IN_STRINGS_H 1
20179 _ACEOF
20180
20181           else
20182               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
20183 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
20184    { (exit 1); exit 1; }; }
20185           fi
20186       fi
20187
20188         ;;
20189 esac
20190
20191
20192 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20194 if test "${ac_cv_header_stdc+set}" = set; then
20195   echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20197   cat >conftest.$ac_ext <<_ACEOF
20198 /* confdefs.h.  */
20199 _ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h.  */
20203 #include <stdlib.h>
20204 #include <stdarg.h>
20205 #include <string.h>
20206 #include <float.h>
20207
20208 int
20209 main ()
20210 {
20211
20212   ;
20213   return 0;
20214 }
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220   *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223   (eval "$ac_compile") 2>conftest.er1
20224   ac_status=$?
20225   grep -v '^ *+' conftest.er1 >conftest.err
20226   rm -f conftest.er1
20227   cat conftest.err >&5
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } && {
20230          test -z "$ac_c_werror_flag" ||
20231          test ! -s conftest.err
20232        } && test -s conftest.$ac_objext; then
20233   ac_cv_header_stdc=yes
20234 else
20235   echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20237
20238         ac_cv_header_stdc=no
20239 fi
20240
20241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20242
20243 if test $ac_cv_header_stdc = yes; then
20244   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20245   cat >conftest.$ac_ext <<_ACEOF
20246 /* confdefs.h.  */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h.  */
20251 #include <string.h>
20252
20253 _ACEOF
20254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20255   $EGREP "memchr" >/dev/null 2>&1; then
20256   :
20257 else
20258   ac_cv_header_stdc=no
20259 fi
20260 rm -f conftest*
20261
20262 fi
20263
20264 if test $ac_cv_header_stdc = yes; then
20265   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20266   cat >conftest.$ac_ext <<_ACEOF
20267 /* confdefs.h.  */
20268 _ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h.  */
20272 #include <stdlib.h>
20273
20274 _ACEOF
20275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20276   $EGREP "free" >/dev/null 2>&1; then
20277   :
20278 else
20279   ac_cv_header_stdc=no
20280 fi
20281 rm -f conftest*
20282
20283 fi
20284
20285 if test $ac_cv_header_stdc = yes; then
20286   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20287   if test "$cross_compiling" = yes; then
20288   :
20289 else
20290   cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h.  */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h.  */
20296 #include <ctype.h>
20297 #include <stdlib.h>
20298 #if ((' ' & 0x0FF) == 0x020)
20299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20301 #else
20302 # define ISLOWER(c) \
20303                    (('a' <= (c) && (c) <= 'i') \
20304                      || ('j' <= (c) && (c) <= 'r') \
20305                      || ('s' <= (c) && (c) <= 'z'))
20306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20307 #endif
20308
20309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20310 int
20311 main ()
20312 {
20313   int i;
20314   for (i = 0; i < 256; i++)
20315     if (XOR (islower (i), ISLOWER (i))
20316         || toupper (i) != TOUPPER (i))
20317       return 2;
20318   return 0;
20319 }
20320 _ACEOF
20321 rm -f conftest$ac_exeext
20322 if { (ac_try="$ac_link"
20323 case "(($ac_try" in
20324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325   *) ac_try_echo=$ac_try;;
20326 esac
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328   (eval "$ac_link") 2>&5
20329   ac_status=$?
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20332   { (case "(($ac_try" in
20333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334   *) ac_try_echo=$ac_try;;
20335 esac
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337   (eval "$ac_try") 2>&5
20338   ac_status=$?
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); }; }; then
20341   :
20342 else
20343   echo "$as_me: program exited with status $ac_status" >&5
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20346
20347 ( exit $ac_status )
20348 ac_cv_header_stdc=no
20349 fi
20350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20351 fi
20352
20353
20354 fi
20355 fi
20356 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20357 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20358 if test $ac_cv_header_stdc = yes; then
20359
20360 cat >>confdefs.h <<\_ACEOF
20361 #define STDC_HEADERS 1
20362 _ACEOF
20363
20364 fi
20365
20366 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20377                   inttypes.h stdint.h unistd.h
20378 do
20379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20383   echo $ECHO_N "(cached) $ECHO_C" >&6
20384 else
20385   cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391 $ac_includes_default
20392
20393 #include <$ac_header>
20394 _ACEOF
20395 rm -f conftest.$ac_objext
20396 if { (ac_try="$ac_compile"
20397 case "(($ac_try" in
20398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399   *) ac_try_echo=$ac_try;;
20400 esac
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402   (eval "$ac_compile") 2>conftest.er1
20403   ac_status=$?
20404   grep -v '^ *+' conftest.er1 >conftest.err
20405   rm -f conftest.er1
20406   cat conftest.err >&5
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); } && {
20409          test -z "$ac_c_werror_flag" ||
20410          test ! -s conftest.err
20411        } && test -s conftest.$ac_objext; then
20412   eval "$as_ac_Header=yes"
20413 else
20414   echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20416
20417         eval "$as_ac_Header=no"
20418 fi
20419
20420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20421 fi
20422 ac_res=`eval echo '${'$as_ac_Header'}'`
20423                { echo "$as_me:$LINENO: result: $ac_res" >&5
20424 echo "${ECHO_T}$ac_res" >&6; }
20425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20426   cat >>confdefs.h <<_ACEOF
20427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20428 _ACEOF
20429
20430 fi
20431
20432 done
20433
20434
20435
20436
20437 for ac_header in langinfo.h wchar.h
20438 do
20439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20443   echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445   cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451 $ac_includes_default
20452
20453 #include <$ac_header>
20454 _ACEOF
20455 rm -f conftest.$ac_objext
20456 if { (ac_try="$ac_compile"
20457 case "(($ac_try" in
20458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459   *) ac_try_echo=$ac_try;;
20460 esac
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462   (eval "$ac_compile") 2>conftest.er1
20463   ac_status=$?
20464   grep -v '^ *+' conftest.er1 >conftest.err
20465   rm -f conftest.er1
20466   cat conftest.err >&5
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); } && {
20469          test -z "$ac_c_werror_flag" ||
20470          test ! -s conftest.err
20471        } && test -s conftest.$ac_objext; then
20472   eval "$as_ac_Header=yes"
20473 else
20474   echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20476
20477         eval "$as_ac_Header=no"
20478 fi
20479
20480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20481 fi
20482 ac_res=`eval echo '${'$as_ac_Header'}'`
20483                { echo "$as_me:$LINENO: result: $ac_res" >&5
20484 echo "${ECHO_T}$ac_res" >&6; }
20485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20486   cat >>confdefs.h <<_ACEOF
20487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20488 _ACEOF
20489
20490 fi
20491
20492 done
20493
20494
20495 if test "$ac_cv_header_wchar_h" != "yes"; then
20496
20497 for ac_header in wcstr.h
20498 do
20499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20503   echo $ECHO_N "(cached) $ECHO_C" >&6
20504 else
20505   cat >conftest.$ac_ext <<_ACEOF
20506 /* confdefs.h.  */
20507 _ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h.  */
20511 $ac_includes_default
20512
20513 #include <$ac_header>
20514 _ACEOF
20515 rm -f conftest.$ac_objext
20516 if { (ac_try="$ac_compile"
20517 case "(($ac_try" in
20518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519   *) ac_try_echo=$ac_try;;
20520 esac
20521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522   (eval "$ac_compile") 2>conftest.er1
20523   ac_status=$?
20524   grep -v '^ *+' conftest.er1 >conftest.err
20525   rm -f conftest.er1
20526   cat conftest.err >&5
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); } && {
20529          test -z "$ac_c_werror_flag" ||
20530          test ! -s conftest.err
20531        } && test -s conftest.$ac_objext; then
20532   eval "$as_ac_Header=yes"
20533 else
20534   echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537         eval "$as_ac_Header=no"
20538 fi
20539
20540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20541 fi
20542 ac_res=`eval echo '${'$as_ac_Header'}'`
20543                { echo "$as_me:$LINENO: result: $ac_res" >&5
20544 echo "${ECHO_T}$ac_res" >&6; }
20545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20546   cat >>confdefs.h <<_ACEOF
20547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20548 _ACEOF
20549
20550 fi
20551
20552 done
20553
20554 fi
20555
20556 case "${host}" in
20557   *-pc-os2_emx | *-pc-os2-emx )
20558                   if test $ac_cv_header_langinfo_h = "yes" \
20559                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20560                      -o "$wx_cv_gccversion" = "EMX3" \
20561                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20562           LIBS="$LIBS -lintl"
20563       fi
20564   ;;
20565 esac
20566
20567 if test "$USE_UNIX" = 1 ; then
20568
20569 for ac_header in sys/select.h
20570 do
20571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20575   echo $ECHO_N "(cached) $ECHO_C" >&6
20576 else
20577   cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h.  */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h.  */
20583 $ac_includes_default
20584
20585 #include <$ac_header>
20586 _ACEOF
20587 rm -f conftest.$ac_objext
20588 if { (ac_try="$ac_compile"
20589 case "(($ac_try" in
20590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591   *) ac_try_echo=$ac_try;;
20592 esac
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594   (eval "$ac_compile") 2>conftest.er1
20595   ac_status=$?
20596   grep -v '^ *+' conftest.er1 >conftest.err
20597   rm -f conftest.er1
20598   cat conftest.err >&5
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); } && {
20601          test -z "$ac_c_werror_flag" ||
20602          test ! -s conftest.err
20603        } && test -s conftest.$ac_objext; then
20604   eval "$as_ac_Header=yes"
20605 else
20606   echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20608
20609         eval "$as_ac_Header=no"
20610 fi
20611
20612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613 fi
20614 ac_res=`eval echo '${'$as_ac_Header'}'`
20615                { echo "$as_me:$LINENO: result: $ac_res" >&5
20616 echo "${ECHO_T}$ac_res" >&6; }
20617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20618   cat >>confdefs.h <<_ACEOF
20619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20620 _ACEOF
20621
20622 fi
20623
20624 done
20625
20626 fi
20627
20628
20629 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20631 if test "${ac_cv_c_const+set}" = set; then
20632   echo $ECHO_N "(cached) $ECHO_C" >&6
20633 else
20634   cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h.  */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h.  */
20640
20641 int
20642 main ()
20643 {
20644 /* FIXME: Include the comments suggested by Paul. */
20645 #ifndef __cplusplus
20646   /* Ultrix mips cc rejects this.  */
20647   typedef int charset[2];
20648   const charset cs;
20649   /* SunOS 4.1.1 cc rejects this.  */
20650   char const *const *pcpcc;
20651   char **ppc;
20652   /* NEC SVR4.0.2 mips cc rejects this.  */
20653   struct point {int x, y;};
20654   static struct point const zero = {0,0};
20655   /* AIX XL C 1.02.0.0 rejects this.
20656      It does not let you subtract one const X* pointer from another in
20657      an arm of an if-expression whose if-part is not a constant
20658      expression */
20659   const char *g = "string";
20660   pcpcc = &g + (g ? g-g : 0);
20661   /* HPUX 7.0 cc rejects these. */
20662   ++pcpcc;
20663   ppc = (char**) pcpcc;
20664   pcpcc = (char const *const *) ppc;
20665   { /* SCO 3.2v4 cc rejects this.  */
20666     char *t;
20667     char const *s = 0 ? (char *) 0 : (char const *) 0;
20668
20669     *t++ = 0;
20670     if (s) return 0;
20671   }
20672   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20673     int x[] = {25, 17};
20674     const int *foo = &x[0];
20675     ++foo;
20676   }
20677   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20678     typedef const int *iptr;
20679     iptr p = 0;
20680     ++p;
20681   }
20682   { /* AIX XL C 1.02.0.0 rejects this saying
20683        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20684     struct s { int j; const int *ap[3]; };
20685     struct s *b; b->j = 5;
20686   }
20687   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20688     const int foo = 10;
20689     if (!foo) return 0;
20690   }
20691   return !cs[0] && !zero.x;
20692 #endif
20693
20694   ;
20695   return 0;
20696 }
20697 _ACEOF
20698 rm -f conftest.$ac_objext
20699 if { (ac_try="$ac_compile"
20700 case "(($ac_try" in
20701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702   *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705   (eval "$ac_compile") 2>conftest.er1
20706   ac_status=$?
20707   grep -v '^ *+' conftest.er1 >conftest.err
20708   rm -f conftest.er1
20709   cat conftest.err >&5
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); } && {
20712          test -z "$ac_c_werror_flag" ||
20713          test ! -s conftest.err
20714        } && test -s conftest.$ac_objext; then
20715   ac_cv_c_const=yes
20716 else
20717   echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720         ac_cv_c_const=no
20721 fi
20722
20723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20724 fi
20725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20727 if test $ac_cv_c_const = no; then
20728
20729 cat >>confdefs.h <<\_ACEOF
20730 #define const
20731 _ACEOF
20732
20733 fi
20734
20735 { echo "$as_me:$LINENO: checking for inline" >&5
20736 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20737 if test "${ac_cv_c_inline+set}" = set; then
20738   echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740   ac_cv_c_inline=no
20741 for ac_kw in inline __inline__ __inline; do
20742   cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h.  */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h.  */
20748 #ifndef __cplusplus
20749 typedef int foo_t;
20750 static $ac_kw foo_t static_foo () {return 0; }
20751 $ac_kw foo_t foo () {return 0; }
20752 #endif
20753
20754 _ACEOF
20755 rm -f conftest.$ac_objext
20756 if { (ac_try="$ac_compile"
20757 case "(($ac_try" in
20758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759   *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762   (eval "$ac_compile") 2>conftest.er1
20763   ac_status=$?
20764   grep -v '^ *+' conftest.er1 >conftest.err
20765   rm -f conftest.er1
20766   cat conftest.err >&5
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); } && {
20769          test -z "$ac_c_werror_flag" ||
20770          test ! -s conftest.err
20771        } && test -s conftest.$ac_objext; then
20772   ac_cv_c_inline=$ac_kw
20773 else
20774   echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.$ac_ext >&5
20776
20777
20778 fi
20779
20780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20781   test "$ac_cv_c_inline" != no && break
20782 done
20783
20784 fi
20785 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20786 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20787
20788
20789 case $ac_cv_c_inline in
20790   inline | yes) ;;
20791   *)
20792     case $ac_cv_c_inline in
20793       no) ac_val=;;
20794       *) ac_val=$ac_cv_c_inline;;
20795     esac
20796     cat >>confdefs.h <<_ACEOF
20797 #ifndef __cplusplus
20798 #define inline $ac_val
20799 #endif
20800 _ACEOF
20801     ;;
20802 esac
20803
20804
20805 { echo "$as_me:$LINENO: checking for short" >&5
20806 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20807 if test "${ac_cv_type_short+set}" = set; then
20808   echo $ECHO_N "(cached) $ECHO_C" >&6
20809 else
20810   cat >conftest.$ac_ext <<_ACEOF
20811 /* confdefs.h.  */
20812 _ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h.  */
20816 $ac_includes_default
20817 typedef short ac__type_new_;
20818 int
20819 main ()
20820 {
20821 if ((ac__type_new_ *) 0)
20822   return 0;
20823 if (sizeof (ac__type_new_))
20824   return 0;
20825   ;
20826   return 0;
20827 }
20828 _ACEOF
20829 rm -f conftest.$ac_objext
20830 if { (ac_try="$ac_compile"
20831 case "(($ac_try" in
20832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833   *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836   (eval "$ac_compile") 2>conftest.er1
20837   ac_status=$?
20838   grep -v '^ *+' conftest.er1 >conftest.err
20839   rm -f conftest.er1
20840   cat conftest.err >&5
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); } && {
20843          test -z "$ac_c_werror_flag" ||
20844          test ! -s conftest.err
20845        } && test -s conftest.$ac_objext; then
20846   ac_cv_type_short=yes
20847 else
20848   echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20850
20851         ac_cv_type_short=no
20852 fi
20853
20854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20855 fi
20856 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20857 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20858
20859 # The cast to long int works around a bug in the HP C Compiler
20860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20862 # This bug is HP SR number 8606223364.
20863 { echo "$as_me:$LINENO: checking size of short" >&5
20864 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20865 if test "${ac_cv_sizeof_short+set}" = set; then
20866   echo $ECHO_N "(cached) $ECHO_C" >&6
20867 else
20868   if test "$cross_compiling" = yes; then
20869   # Depending upon the size, compute the lo and hi bounds.
20870 cat >conftest.$ac_ext <<_ACEOF
20871 /* confdefs.h.  */
20872 _ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h.  */
20876 $ac_includes_default
20877    typedef short ac__type_sizeof_;
20878 int
20879 main ()
20880 {
20881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20882 test_array [0] = 0
20883
20884   ;
20885   return 0;
20886 }
20887 _ACEOF
20888 rm -f conftest.$ac_objext
20889 if { (ac_try="$ac_compile"
20890 case "(($ac_try" in
20891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892   *) ac_try_echo=$ac_try;;
20893 esac
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895   (eval "$ac_compile") 2>conftest.er1
20896   ac_status=$?
20897   grep -v '^ *+' conftest.er1 >conftest.err
20898   rm -f conftest.er1
20899   cat conftest.err >&5
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); } && {
20902          test -z "$ac_c_werror_flag" ||
20903          test ! -s conftest.err
20904        } && test -s conftest.$ac_objext; then
20905   ac_lo=0 ac_mid=0
20906   while :; do
20907     cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h.  */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h.  */
20913 $ac_includes_default
20914    typedef short ac__type_sizeof_;
20915 int
20916 main ()
20917 {
20918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20919 test_array [0] = 0
20920
20921   ;
20922   return 0;
20923 }
20924 _ACEOF
20925 rm -f conftest.$ac_objext
20926 if { (ac_try="$ac_compile"
20927 case "(($ac_try" in
20928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929   *) ac_try_echo=$ac_try;;
20930 esac
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932   (eval "$ac_compile") 2>conftest.er1
20933   ac_status=$?
20934   grep -v '^ *+' conftest.er1 >conftest.err
20935   rm -f conftest.er1
20936   cat conftest.err >&5
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); } && {
20939          test -z "$ac_c_werror_flag" ||
20940          test ! -s conftest.err
20941        } && test -s conftest.$ac_objext; then
20942   ac_hi=$ac_mid; break
20943 else
20944   echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947         ac_lo=`expr $ac_mid + 1`
20948                         if test $ac_lo -le $ac_mid; then
20949                           ac_lo= ac_hi=
20950                           break
20951                         fi
20952                         ac_mid=`expr 2 '*' $ac_mid + 1`
20953 fi
20954
20955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956   done
20957 else
20958   echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20960
20961         cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h.  */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h.  */
20967 $ac_includes_default
20968    typedef short ac__type_sizeof_;
20969 int
20970 main ()
20971 {
20972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20973 test_array [0] = 0
20974
20975   ;
20976   return 0;
20977 }
20978 _ACEOF
20979 rm -f conftest.$ac_objext
20980 if { (ac_try="$ac_compile"
20981 case "(($ac_try" in
20982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983   *) ac_try_echo=$ac_try;;
20984 esac
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986   (eval "$ac_compile") 2>conftest.er1
20987   ac_status=$?
20988   grep -v '^ *+' conftest.er1 >conftest.err
20989   rm -f conftest.er1
20990   cat conftest.err >&5
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); } && {
20993          test -z "$ac_c_werror_flag" ||
20994          test ! -s conftest.err
20995        } && test -s conftest.$ac_objext; then
20996   ac_hi=-1 ac_mid=-1
20997   while :; do
20998     cat >conftest.$ac_ext <<_ACEOF
20999 /* confdefs.h.  */
21000 _ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h.  */
21004 $ac_includes_default
21005    typedef short ac__type_sizeof_;
21006 int
21007 main ()
21008 {
21009 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21010 test_array [0] = 0
21011
21012   ;
21013   return 0;
21014 }
21015 _ACEOF
21016 rm -f conftest.$ac_objext
21017 if { (ac_try="$ac_compile"
21018 case "(($ac_try" in
21019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020   *) ac_try_echo=$ac_try;;
21021 esac
21022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023   (eval "$ac_compile") 2>conftest.er1
21024   ac_status=$?
21025   grep -v '^ *+' conftest.er1 >conftest.err
21026   rm -f conftest.er1
21027   cat conftest.err >&5
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); } && {
21030          test -z "$ac_c_werror_flag" ||
21031          test ! -s conftest.err
21032        } && test -s conftest.$ac_objext; then
21033   ac_lo=$ac_mid; break
21034 else
21035   echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21037
21038         ac_hi=`expr '(' $ac_mid ')' - 1`
21039                         if test $ac_mid -le $ac_hi; then
21040                           ac_lo= ac_hi=
21041                           break
21042                         fi
21043                         ac_mid=`expr 2 '*' $ac_mid`
21044 fi
21045
21046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21047   done
21048 else
21049   echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052         ac_lo= ac_hi=
21053 fi
21054
21055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056 fi
21057
21058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21059 # Binary search between lo and hi bounds.
21060 while test "x$ac_lo" != "x$ac_hi"; do
21061   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21062   cat >conftest.$ac_ext <<_ACEOF
21063 /* confdefs.h.  */
21064 _ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h.  */
21068 $ac_includes_default
21069    typedef short ac__type_sizeof_;
21070 int
21071 main ()
21072 {
21073 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21074 test_array [0] = 0
21075
21076   ;
21077   return 0;
21078 }
21079 _ACEOF
21080 rm -f conftest.$ac_objext
21081 if { (ac_try="$ac_compile"
21082 case "(($ac_try" in
21083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084   *) ac_try_echo=$ac_try;;
21085 esac
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087   (eval "$ac_compile") 2>conftest.er1
21088   ac_status=$?
21089   grep -v '^ *+' conftest.er1 >conftest.err
21090   rm -f conftest.er1
21091   cat conftest.err >&5
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); } && {
21094          test -z "$ac_c_werror_flag" ||
21095          test ! -s conftest.err
21096        } && test -s conftest.$ac_objext; then
21097   ac_hi=$ac_mid
21098 else
21099   echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102         ac_lo=`expr '(' $ac_mid ')' + 1`
21103 fi
21104
21105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21106 done
21107 case $ac_lo in
21108 ?*) ac_cv_sizeof_short=$ac_lo;;
21109 '') if test "$ac_cv_type_short" = yes; then
21110      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21111 See \`config.log' for more details." >&5
21112 echo "$as_me: error: cannot compute sizeof (short)
21113 See \`config.log' for more details." >&2;}
21114    { (exit 77); exit 77; }; }
21115    else
21116      ac_cv_sizeof_short=0
21117    fi ;;
21118 esac
21119 else
21120   cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126 $ac_includes_default
21127    typedef short ac__type_sizeof_;
21128 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21129 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21130 #include <stdio.h>
21131 #include <stdlib.h>
21132 int
21133 main ()
21134 {
21135
21136   FILE *f = fopen ("conftest.val", "w");
21137   if (! f)
21138     return 1;
21139   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21140     {
21141       long int i = longval ();
21142       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21143         return 1;
21144       fprintf (f, "%ld\n", i);
21145     }
21146   else
21147     {
21148       unsigned long int i = ulongval ();
21149       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21150         return 1;
21151       fprintf (f, "%lu\n", i);
21152     }
21153   return ferror (f) || fclose (f) != 0;
21154
21155   ;
21156   return 0;
21157 }
21158 _ACEOF
21159 rm -f conftest$ac_exeext
21160 if { (ac_try="$ac_link"
21161 case "(($ac_try" in
21162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163   *) ac_try_echo=$ac_try;;
21164 esac
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166   (eval "$ac_link") 2>&5
21167   ac_status=$?
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21170   { (case "(($ac_try" in
21171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172   *) ac_try_echo=$ac_try;;
21173 esac
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175   (eval "$ac_try") 2>&5
21176   ac_status=$?
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); }; }; then
21179   ac_cv_sizeof_short=`cat conftest.val`
21180 else
21181   echo "$as_me: program exited with status $ac_status" >&5
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21184
21185 ( exit $ac_status )
21186 if test "$ac_cv_type_short" = yes; then
21187      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21188 See \`config.log' for more details." >&5
21189 echo "$as_me: error: cannot compute sizeof (short)
21190 See \`config.log' for more details." >&2;}
21191    { (exit 77); exit 77; }; }
21192    else
21193      ac_cv_sizeof_short=0
21194    fi
21195 fi
21196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21197 fi
21198 rm -f conftest.val
21199 fi
21200 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21201 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21202
21203
21204
21205 cat >>confdefs.h <<_ACEOF
21206 #define SIZEOF_SHORT $ac_cv_sizeof_short
21207 _ACEOF
21208
21209
21210 { echo "$as_me:$LINENO: checking for void *" >&5
21211 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21212 if test "${ac_cv_type_void_p+set}" = set; then
21213   echo $ECHO_N "(cached) $ECHO_C" >&6
21214 else
21215   cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h.  */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h.  */
21221 $ac_includes_default
21222 typedef void * ac__type_new_;
21223 int
21224 main ()
21225 {
21226 if ((ac__type_new_ *) 0)
21227   return 0;
21228 if (sizeof (ac__type_new_))
21229   return 0;
21230   ;
21231   return 0;
21232 }
21233 _ACEOF
21234 rm -f conftest.$ac_objext
21235 if { (ac_try="$ac_compile"
21236 case "(($ac_try" in
21237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238   *) ac_try_echo=$ac_try;;
21239 esac
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241   (eval "$ac_compile") 2>conftest.er1
21242   ac_status=$?
21243   grep -v '^ *+' conftest.er1 >conftest.err
21244   rm -f conftest.er1
21245   cat conftest.err >&5
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); } && {
21248          test -z "$ac_c_werror_flag" ||
21249          test ! -s conftest.err
21250        } && test -s conftest.$ac_objext; then
21251   ac_cv_type_void_p=yes
21252 else
21253   echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21255
21256         ac_cv_type_void_p=no
21257 fi
21258
21259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 fi
21261 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21262 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21263
21264 # The cast to long int works around a bug in the HP C Compiler
21265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21267 # This bug is HP SR number 8606223364.
21268 { echo "$as_me:$LINENO: checking size of void *" >&5
21269 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21270 if test "${ac_cv_sizeof_void_p+set}" = set; then
21271   echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273   if test "$cross_compiling" = yes; then
21274   # Depending upon the size, compute the lo and hi bounds.
21275 cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281 $ac_includes_default
21282    typedef void * ac__type_sizeof_;
21283 int
21284 main ()
21285 {
21286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21287 test_array [0] = 0
21288
21289   ;
21290   return 0;
21291 }
21292 _ACEOF
21293 rm -f conftest.$ac_objext
21294 if { (ac_try="$ac_compile"
21295 case "(($ac_try" in
21296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297   *) ac_try_echo=$ac_try;;
21298 esac
21299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300   (eval "$ac_compile") 2>conftest.er1
21301   ac_status=$?
21302   grep -v '^ *+' conftest.er1 >conftest.err
21303   rm -f conftest.er1
21304   cat conftest.err >&5
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); } && {
21307          test -z "$ac_c_werror_flag" ||
21308          test ! -s conftest.err
21309        } && test -s conftest.$ac_objext; then
21310   ac_lo=0 ac_mid=0
21311   while :; do
21312     cat >conftest.$ac_ext <<_ACEOF
21313 /* confdefs.h.  */
21314 _ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h.  */
21318 $ac_includes_default
21319    typedef void * ac__type_sizeof_;
21320 int
21321 main ()
21322 {
21323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21324 test_array [0] = 0
21325
21326   ;
21327   return 0;
21328 }
21329 _ACEOF
21330 rm -f conftest.$ac_objext
21331 if { (ac_try="$ac_compile"
21332 case "(($ac_try" in
21333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334   *) ac_try_echo=$ac_try;;
21335 esac
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337   (eval "$ac_compile") 2>conftest.er1
21338   ac_status=$?
21339   grep -v '^ *+' conftest.er1 >conftest.err
21340   rm -f conftest.er1
21341   cat conftest.err >&5
21342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343   (exit $ac_status); } && {
21344          test -z "$ac_c_werror_flag" ||
21345          test ! -s conftest.err
21346        } && test -s conftest.$ac_objext; then
21347   ac_hi=$ac_mid; break
21348 else
21349   echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21351
21352         ac_lo=`expr $ac_mid + 1`
21353                         if test $ac_lo -le $ac_mid; then
21354                           ac_lo= ac_hi=
21355                           break
21356                         fi
21357                         ac_mid=`expr 2 '*' $ac_mid + 1`
21358 fi
21359
21360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361   done
21362 else
21363   echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21365
21366         cat >conftest.$ac_ext <<_ACEOF
21367 /* confdefs.h.  */
21368 _ACEOF
21369 cat confdefs.h >>conftest.$ac_ext
21370 cat >>conftest.$ac_ext <<_ACEOF
21371 /* end confdefs.h.  */
21372 $ac_includes_default
21373    typedef void * ac__type_sizeof_;
21374 int
21375 main ()
21376 {
21377 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21378 test_array [0] = 0
21379
21380   ;
21381   return 0;
21382 }
21383 _ACEOF
21384 rm -f conftest.$ac_objext
21385 if { (ac_try="$ac_compile"
21386 case "(($ac_try" in
21387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21388   *) ac_try_echo=$ac_try;;
21389 esac
21390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21391   (eval "$ac_compile") 2>conftest.er1
21392   ac_status=$?
21393   grep -v '^ *+' conftest.er1 >conftest.err
21394   rm -f conftest.er1
21395   cat conftest.err >&5
21396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); } && {
21398          test -z "$ac_c_werror_flag" ||
21399          test ! -s conftest.err
21400        } && test -s conftest.$ac_objext; then
21401   ac_hi=-1 ac_mid=-1
21402   while :; do
21403     cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h.  */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h.  */
21409 $ac_includes_default
21410    typedef void * ac__type_sizeof_;
21411 int
21412 main ()
21413 {
21414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21415 test_array [0] = 0
21416
21417   ;
21418   return 0;
21419 }
21420 _ACEOF
21421 rm -f conftest.$ac_objext
21422 if { (ac_try="$ac_compile"
21423 case "(($ac_try" in
21424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425   *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428   (eval "$ac_compile") 2>conftest.er1
21429   ac_status=$?
21430   grep -v '^ *+' conftest.er1 >conftest.err
21431   rm -f conftest.er1
21432   cat conftest.err >&5
21433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); } && {
21435          test -z "$ac_c_werror_flag" ||
21436          test ! -s conftest.err
21437        } && test -s conftest.$ac_objext; then
21438   ac_lo=$ac_mid; break
21439 else
21440   echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21442
21443         ac_hi=`expr '(' $ac_mid ')' - 1`
21444                         if test $ac_mid -le $ac_hi; then
21445                           ac_lo= ac_hi=
21446                           break
21447                         fi
21448                         ac_mid=`expr 2 '*' $ac_mid`
21449 fi
21450
21451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21452   done
21453 else
21454   echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457         ac_lo= ac_hi=
21458 fi
21459
21460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21461 fi
21462
21463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464 # Binary search between lo and hi bounds.
21465 while test "x$ac_lo" != "x$ac_hi"; do
21466   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21467   cat >conftest.$ac_ext <<_ACEOF
21468 /* confdefs.h.  */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h.  */
21473 $ac_includes_default
21474    typedef void * ac__type_sizeof_;
21475 int
21476 main ()
21477 {
21478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21479 test_array [0] = 0
21480
21481   ;
21482   return 0;
21483 }
21484 _ACEOF
21485 rm -f conftest.$ac_objext
21486 if { (ac_try="$ac_compile"
21487 case "(($ac_try" in
21488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489   *) ac_try_echo=$ac_try;;
21490 esac
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492   (eval "$ac_compile") 2>conftest.er1
21493   ac_status=$?
21494   grep -v '^ *+' conftest.er1 >conftest.err
21495   rm -f conftest.er1
21496   cat conftest.err >&5
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); } && {
21499          test -z "$ac_c_werror_flag" ||
21500          test ! -s conftest.err
21501        } && test -s conftest.$ac_objext; then
21502   ac_hi=$ac_mid
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507         ac_lo=`expr '(' $ac_mid ')' + 1`
21508 fi
21509
21510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 done
21512 case $ac_lo in
21513 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21514 '') if test "$ac_cv_type_void_p" = yes; then
21515      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21516 See \`config.log' for more details." >&5
21517 echo "$as_me: error: cannot compute sizeof (void *)
21518 See \`config.log' for more details." >&2;}
21519    { (exit 77); exit 77; }; }
21520    else
21521      ac_cv_sizeof_void_p=0
21522    fi ;;
21523 esac
21524 else
21525   cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h.  */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h.  */
21531 $ac_includes_default
21532    typedef void * ac__type_sizeof_;
21533 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21534 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21535 #include <stdio.h>
21536 #include <stdlib.h>
21537 int
21538 main ()
21539 {
21540
21541   FILE *f = fopen ("conftest.val", "w");
21542   if (! f)
21543     return 1;
21544   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21545     {
21546       long int i = longval ();
21547       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21548         return 1;
21549       fprintf (f, "%ld\n", i);
21550     }
21551   else
21552     {
21553       unsigned long int i = ulongval ();
21554       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21555         return 1;
21556       fprintf (f, "%lu\n", i);
21557     }
21558   return ferror (f) || fclose (f) != 0;
21559
21560   ;
21561   return 0;
21562 }
21563 _ACEOF
21564 rm -f conftest$ac_exeext
21565 if { (ac_try="$ac_link"
21566 case "(($ac_try" in
21567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568   *) ac_try_echo=$ac_try;;
21569 esac
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571   (eval "$ac_link") 2>&5
21572   ac_status=$?
21573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21575   { (case "(($ac_try" in
21576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577   *) ac_try_echo=$ac_try;;
21578 esac
21579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580   (eval "$ac_try") 2>&5
21581   ac_status=$?
21582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583   (exit $ac_status); }; }; then
21584   ac_cv_sizeof_void_p=`cat conftest.val`
21585 else
21586   echo "$as_me: program exited with status $ac_status" >&5
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21589
21590 ( exit $ac_status )
21591 if test "$ac_cv_type_void_p" = yes; then
21592      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21593 See \`config.log' for more details." >&5
21594 echo "$as_me: error: cannot compute sizeof (void *)
21595 See \`config.log' for more details." >&2;}
21596    { (exit 77); exit 77; }; }
21597    else
21598      ac_cv_sizeof_void_p=0
21599    fi
21600 fi
21601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21602 fi
21603 rm -f conftest.val
21604 fi
21605 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21606 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21607
21608
21609
21610 cat >>confdefs.h <<_ACEOF
21611 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21612 _ACEOF
21613
21614
21615 { echo "$as_me:$LINENO: checking for int" >&5
21616 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21617 if test "${ac_cv_type_int+set}" = set; then
21618   echo $ECHO_N "(cached) $ECHO_C" >&6
21619 else
21620   cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626 $ac_includes_default
21627 typedef int ac__type_new_;
21628 int
21629 main ()
21630 {
21631 if ((ac__type_new_ *) 0)
21632   return 0;
21633 if (sizeof (ac__type_new_))
21634   return 0;
21635   ;
21636   return 0;
21637 }
21638 _ACEOF
21639 rm -f conftest.$ac_objext
21640 if { (ac_try="$ac_compile"
21641 case "(($ac_try" in
21642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643   *) ac_try_echo=$ac_try;;
21644 esac
21645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646   (eval "$ac_compile") 2>conftest.er1
21647   ac_status=$?
21648   grep -v '^ *+' conftest.er1 >conftest.err
21649   rm -f conftest.er1
21650   cat conftest.err >&5
21651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652   (exit $ac_status); } && {
21653          test -z "$ac_c_werror_flag" ||
21654          test ! -s conftest.err
21655        } && test -s conftest.$ac_objext; then
21656   ac_cv_type_int=yes
21657 else
21658   echo "$as_me: failed program was:" >&5
21659 sed 's/^/| /' conftest.$ac_ext >&5
21660
21661         ac_cv_type_int=no
21662 fi
21663
21664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665 fi
21666 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21667 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21668
21669 # The cast to long int works around a bug in the HP C Compiler
21670 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21671 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21672 # This bug is HP SR number 8606223364.
21673 { echo "$as_me:$LINENO: checking size of int" >&5
21674 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21675 if test "${ac_cv_sizeof_int+set}" = set; then
21676   echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678   if test "$cross_compiling" = yes; then
21679   # Depending upon the size, compute the lo and hi bounds.
21680 cat >conftest.$ac_ext <<_ACEOF
21681 /* confdefs.h.  */
21682 _ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h.  */
21686 $ac_includes_default
21687    typedef int ac__type_sizeof_;
21688 int
21689 main ()
21690 {
21691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21692 test_array [0] = 0
21693
21694   ;
21695   return 0;
21696 }
21697 _ACEOF
21698 rm -f conftest.$ac_objext
21699 if { (ac_try="$ac_compile"
21700 case "(($ac_try" in
21701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702   *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705   (eval "$ac_compile") 2>conftest.er1
21706   ac_status=$?
21707   grep -v '^ *+' conftest.er1 >conftest.err
21708   rm -f conftest.er1
21709   cat conftest.err >&5
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); } && {
21712          test -z "$ac_c_werror_flag" ||
21713          test ! -s conftest.err
21714        } && test -s conftest.$ac_objext; then
21715   ac_lo=0 ac_mid=0
21716   while :; do
21717     cat >conftest.$ac_ext <<_ACEOF
21718 /* confdefs.h.  */
21719 _ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h.  */
21723 $ac_includes_default
21724    typedef int ac__type_sizeof_;
21725 int
21726 main ()
21727 {
21728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21729 test_array [0] = 0
21730
21731   ;
21732   return 0;
21733 }
21734 _ACEOF
21735 rm -f conftest.$ac_objext
21736 if { (ac_try="$ac_compile"
21737 case "(($ac_try" in
21738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739   *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742   (eval "$ac_compile") 2>conftest.er1
21743   ac_status=$?
21744   grep -v '^ *+' conftest.er1 >conftest.err
21745   rm -f conftest.er1
21746   cat conftest.err >&5
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } && {
21749          test -z "$ac_c_werror_flag" ||
21750          test ! -s conftest.err
21751        } && test -s conftest.$ac_objext; then
21752   ac_hi=$ac_mid; break
21753 else
21754   echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21756
21757         ac_lo=`expr $ac_mid + 1`
21758                         if test $ac_lo -le $ac_mid; then
21759                           ac_lo= ac_hi=
21760                           break
21761                         fi
21762                         ac_mid=`expr 2 '*' $ac_mid + 1`
21763 fi
21764
21765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21766   done
21767 else
21768   echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771         cat >conftest.$ac_ext <<_ACEOF
21772 /* confdefs.h.  */
21773 _ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h.  */
21777 $ac_includes_default
21778    typedef int ac__type_sizeof_;
21779 int
21780 main ()
21781 {
21782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21783 test_array [0] = 0
21784
21785   ;
21786   return 0;
21787 }
21788 _ACEOF
21789 rm -f conftest.$ac_objext
21790 if { (ac_try="$ac_compile"
21791 case "(($ac_try" in
21792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793   *) ac_try_echo=$ac_try;;
21794 esac
21795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796   (eval "$ac_compile") 2>conftest.er1
21797   ac_status=$?
21798   grep -v '^ *+' conftest.er1 >conftest.err
21799   rm -f conftest.er1
21800   cat conftest.err >&5
21801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); } && {
21803          test -z "$ac_c_werror_flag" ||
21804          test ! -s conftest.err
21805        } && test -s conftest.$ac_objext; then
21806   ac_hi=-1 ac_mid=-1
21807   while :; do
21808     cat >conftest.$ac_ext <<_ACEOF
21809 /* confdefs.h.  */
21810 _ACEOF
21811 cat confdefs.h >>conftest.$ac_ext
21812 cat >>conftest.$ac_ext <<_ACEOF
21813 /* end confdefs.h.  */
21814 $ac_includes_default
21815    typedef int ac__type_sizeof_;
21816 int
21817 main ()
21818 {
21819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21820 test_array [0] = 0
21821
21822   ;
21823   return 0;
21824 }
21825 _ACEOF
21826 rm -f conftest.$ac_objext
21827 if { (ac_try="$ac_compile"
21828 case "(($ac_try" in
21829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830   *) ac_try_echo=$ac_try;;
21831 esac
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833   (eval "$ac_compile") 2>conftest.er1
21834   ac_status=$?
21835   grep -v '^ *+' conftest.er1 >conftest.err
21836   rm -f conftest.er1
21837   cat conftest.err >&5
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); } && {
21840          test -z "$ac_c_werror_flag" ||
21841          test ! -s conftest.err
21842        } && test -s conftest.$ac_objext; then
21843   ac_lo=$ac_mid; break
21844 else
21845   echo "$as_me: failed program was:" >&5
21846 sed 's/^/| /' conftest.$ac_ext >&5
21847
21848         ac_hi=`expr '(' $ac_mid ')' - 1`
21849                         if test $ac_mid -le $ac_hi; then
21850                           ac_lo= ac_hi=
21851                           break
21852                         fi
21853                         ac_mid=`expr 2 '*' $ac_mid`
21854 fi
21855
21856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21857   done
21858 else
21859   echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862         ac_lo= ac_hi=
21863 fi
21864
21865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21866 fi
21867
21868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869 # Binary search between lo and hi bounds.
21870 while test "x$ac_lo" != "x$ac_hi"; do
21871   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21872   cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h.  */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h.  */
21878 $ac_includes_default
21879    typedef int ac__type_sizeof_;
21880 int
21881 main ()
21882 {
21883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21884 test_array [0] = 0
21885
21886   ;
21887   return 0;
21888 }
21889 _ACEOF
21890 rm -f conftest.$ac_objext
21891 if { (ac_try="$ac_compile"
21892 case "(($ac_try" in
21893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894   *) ac_try_echo=$ac_try;;
21895 esac
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897   (eval "$ac_compile") 2>conftest.er1
21898   ac_status=$?
21899   grep -v '^ *+' conftest.er1 >conftest.err
21900   rm -f conftest.er1
21901   cat conftest.err >&5
21902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); } && {
21904          test -z "$ac_c_werror_flag" ||
21905          test ! -s conftest.err
21906        } && test -s conftest.$ac_objext; then
21907   ac_hi=$ac_mid
21908 else
21909   echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21911
21912         ac_lo=`expr '(' $ac_mid ')' + 1`
21913 fi
21914
21915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916 done
21917 case $ac_lo in
21918 ?*) ac_cv_sizeof_int=$ac_lo;;
21919 '') if test "$ac_cv_type_int" = yes; then
21920      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21921 See \`config.log' for more details." >&5
21922 echo "$as_me: error: cannot compute sizeof (int)
21923 See \`config.log' for more details." >&2;}
21924    { (exit 77); exit 77; }; }
21925    else
21926      ac_cv_sizeof_int=0
21927    fi ;;
21928 esac
21929 else
21930   cat >conftest.$ac_ext <<_ACEOF
21931 /* confdefs.h.  */
21932 _ACEOF
21933 cat confdefs.h >>conftest.$ac_ext
21934 cat >>conftest.$ac_ext <<_ACEOF
21935 /* end confdefs.h.  */
21936 $ac_includes_default
21937    typedef int ac__type_sizeof_;
21938 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21939 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21940 #include <stdio.h>
21941 #include <stdlib.h>
21942 int
21943 main ()
21944 {
21945
21946   FILE *f = fopen ("conftest.val", "w");
21947   if (! f)
21948     return 1;
21949   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21950     {
21951       long int i = longval ();
21952       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21953         return 1;
21954       fprintf (f, "%ld\n", i);
21955     }
21956   else
21957     {
21958       unsigned long int i = ulongval ();
21959       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21960         return 1;
21961       fprintf (f, "%lu\n", i);
21962     }
21963   return ferror (f) || fclose (f) != 0;
21964
21965   ;
21966   return 0;
21967 }
21968 _ACEOF
21969 rm -f conftest$ac_exeext
21970 if { (ac_try="$ac_link"
21971 case "(($ac_try" in
21972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973   *) ac_try_echo=$ac_try;;
21974 esac
21975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976   (eval "$ac_link") 2>&5
21977   ac_status=$?
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21980   { (case "(($ac_try" in
21981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982   *) ac_try_echo=$ac_try;;
21983 esac
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985   (eval "$ac_try") 2>&5
21986   ac_status=$?
21987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988   (exit $ac_status); }; }; then
21989   ac_cv_sizeof_int=`cat conftest.val`
21990 else
21991   echo "$as_me: program exited with status $ac_status" >&5
21992 echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21994
21995 ( exit $ac_status )
21996 if test "$ac_cv_type_int" = yes; then
21997      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21998 See \`config.log' for more details." >&5
21999 echo "$as_me: error: cannot compute sizeof (int)
22000 See \`config.log' for more details." >&2;}
22001    { (exit 77); exit 77; }; }
22002    else
22003      ac_cv_sizeof_int=0
22004    fi
22005 fi
22006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22007 fi
22008 rm -f conftest.val
22009 fi
22010 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22011 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22012
22013
22014
22015 cat >>confdefs.h <<_ACEOF
22016 #define SIZEOF_INT $ac_cv_sizeof_int
22017 _ACEOF
22018
22019
22020 { echo "$as_me:$LINENO: checking for long" >&5
22021 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22022 if test "${ac_cv_type_long+set}" = set; then
22023   echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22025   cat >conftest.$ac_ext <<_ACEOF
22026 /* confdefs.h.  */
22027 _ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h.  */
22031 $ac_includes_default
22032 typedef long ac__type_new_;
22033 int
22034 main ()
22035 {
22036 if ((ac__type_new_ *) 0)
22037   return 0;
22038 if (sizeof (ac__type_new_))
22039   return 0;
22040   ;
22041   return 0;
22042 }
22043 _ACEOF
22044 rm -f conftest.$ac_objext
22045 if { (ac_try="$ac_compile"
22046 case "(($ac_try" in
22047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048   *) ac_try_echo=$ac_try;;
22049 esac
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051   (eval "$ac_compile") 2>conftest.er1
22052   ac_status=$?
22053   grep -v '^ *+' conftest.er1 >conftest.err
22054   rm -f conftest.er1
22055   cat conftest.err >&5
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); } && {
22058          test -z "$ac_c_werror_flag" ||
22059          test ! -s conftest.err
22060        } && test -s conftest.$ac_objext; then
22061   ac_cv_type_long=yes
22062 else
22063   echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22065
22066         ac_cv_type_long=no
22067 fi
22068
22069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22070 fi
22071 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22072 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22073
22074 # The cast to long int works around a bug in the HP C Compiler
22075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22077 # This bug is HP SR number 8606223364.
22078 { echo "$as_me:$LINENO: checking size of long" >&5
22079 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22080 if test "${ac_cv_sizeof_long+set}" = set; then
22081   echo $ECHO_N "(cached) $ECHO_C" >&6
22082 else
22083   if test "$cross_compiling" = yes; then
22084   # Depending upon the size, compute the lo and hi bounds.
22085 cat >conftest.$ac_ext <<_ACEOF
22086 /* confdefs.h.  */
22087 _ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h.  */
22091 $ac_includes_default
22092    typedef long ac__type_sizeof_;
22093 int
22094 main ()
22095 {
22096 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22097 test_array [0] = 0
22098
22099   ;
22100   return 0;
22101 }
22102 _ACEOF
22103 rm -f conftest.$ac_objext
22104 if { (ac_try="$ac_compile"
22105 case "(($ac_try" in
22106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107   *) ac_try_echo=$ac_try;;
22108 esac
22109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110   (eval "$ac_compile") 2>conftest.er1
22111   ac_status=$?
22112   grep -v '^ *+' conftest.er1 >conftest.err
22113   rm -f conftest.er1
22114   cat conftest.err >&5
22115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); } && {
22117          test -z "$ac_c_werror_flag" ||
22118          test ! -s conftest.err
22119        } && test -s conftest.$ac_objext; then
22120   ac_lo=0 ac_mid=0
22121   while :; do
22122     cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h.  */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h.  */
22128 $ac_includes_default
22129    typedef long ac__type_sizeof_;
22130 int
22131 main ()
22132 {
22133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22134 test_array [0] = 0
22135
22136   ;
22137   return 0;
22138 }
22139 _ACEOF
22140 rm -f conftest.$ac_objext
22141 if { (ac_try="$ac_compile"
22142 case "(($ac_try" in
22143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144   *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147   (eval "$ac_compile") 2>conftest.er1
22148   ac_status=$?
22149   grep -v '^ *+' conftest.er1 >conftest.err
22150   rm -f conftest.er1
22151   cat conftest.err >&5
22152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153   (exit $ac_status); } && {
22154          test -z "$ac_c_werror_flag" ||
22155          test ! -s conftest.err
22156        } && test -s conftest.$ac_objext; then
22157   ac_hi=$ac_mid; break
22158 else
22159   echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22161
22162         ac_lo=`expr $ac_mid + 1`
22163                         if test $ac_lo -le $ac_mid; then
22164                           ac_lo= ac_hi=
22165                           break
22166                         fi
22167                         ac_mid=`expr 2 '*' $ac_mid + 1`
22168 fi
22169
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171   done
22172 else
22173   echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22175
22176         cat >conftest.$ac_ext <<_ACEOF
22177 /* confdefs.h.  */
22178 _ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h.  */
22182 $ac_includes_default
22183    typedef long ac__type_sizeof_;
22184 int
22185 main ()
22186 {
22187 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22188 test_array [0] = 0
22189
22190   ;
22191   return 0;
22192 }
22193 _ACEOF
22194 rm -f conftest.$ac_objext
22195 if { (ac_try="$ac_compile"
22196 case "(($ac_try" in
22197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198   *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201   (eval "$ac_compile") 2>conftest.er1
22202   ac_status=$?
22203   grep -v '^ *+' conftest.er1 >conftest.err
22204   rm -f conftest.er1
22205   cat conftest.err >&5
22206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); } && {
22208          test -z "$ac_c_werror_flag" ||
22209          test ! -s conftest.err
22210        } && test -s conftest.$ac_objext; then
22211   ac_hi=-1 ac_mid=-1
22212   while :; do
22213     cat >conftest.$ac_ext <<_ACEOF
22214 /* confdefs.h.  */
22215 _ACEOF
22216 cat confdefs.h >>conftest.$ac_ext
22217 cat >>conftest.$ac_ext <<_ACEOF
22218 /* end confdefs.h.  */
22219 $ac_includes_default
22220    typedef long ac__type_sizeof_;
22221 int
22222 main ()
22223 {
22224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22225 test_array [0] = 0
22226
22227   ;
22228   return 0;
22229 }
22230 _ACEOF
22231 rm -f conftest.$ac_objext
22232 if { (ac_try="$ac_compile"
22233 case "(($ac_try" in
22234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235   *) ac_try_echo=$ac_try;;
22236 esac
22237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22238   (eval "$ac_compile") 2>conftest.er1
22239   ac_status=$?
22240   grep -v '^ *+' conftest.er1 >conftest.err
22241   rm -f conftest.er1
22242   cat conftest.err >&5
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); } && {
22245          test -z "$ac_c_werror_flag" ||
22246          test ! -s conftest.err
22247        } && test -s conftest.$ac_objext; then
22248   ac_lo=$ac_mid; break
22249 else
22250   echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22252
22253         ac_hi=`expr '(' $ac_mid ')' - 1`
22254                         if test $ac_mid -le $ac_hi; then
22255                           ac_lo= ac_hi=
22256                           break
22257                         fi
22258                         ac_mid=`expr 2 '*' $ac_mid`
22259 fi
22260
22261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22262   done
22263 else
22264   echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22266
22267         ac_lo= ac_hi=
22268 fi
22269
22270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22271 fi
22272
22273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22274 # Binary search between lo and hi bounds.
22275 while test "x$ac_lo" != "x$ac_hi"; do
22276   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22277   cat >conftest.$ac_ext <<_ACEOF
22278 /* confdefs.h.  */
22279 _ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h.  */
22283 $ac_includes_default
22284    typedef long ac__type_sizeof_;
22285 int
22286 main ()
22287 {
22288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22289 test_array [0] = 0
22290
22291   ;
22292   return 0;
22293 }
22294 _ACEOF
22295 rm -f conftest.$ac_objext
22296 if { (ac_try="$ac_compile"
22297 case "(($ac_try" in
22298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22299   *) ac_try_echo=$ac_try;;
22300 esac
22301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22302   (eval "$ac_compile") 2>conftest.er1
22303   ac_status=$?
22304   grep -v '^ *+' conftest.er1 >conftest.err
22305   rm -f conftest.er1
22306   cat conftest.err >&5
22307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308   (exit $ac_status); } && {
22309          test -z "$ac_c_werror_flag" ||
22310          test ! -s conftest.err
22311        } && test -s conftest.$ac_objext; then
22312   ac_hi=$ac_mid
22313 else
22314   echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22316
22317         ac_lo=`expr '(' $ac_mid ')' + 1`
22318 fi
22319
22320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22321 done
22322 case $ac_lo in
22323 ?*) ac_cv_sizeof_long=$ac_lo;;
22324 '') if test "$ac_cv_type_long" = yes; then
22325      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22326 See \`config.log' for more details." >&5
22327 echo "$as_me: error: cannot compute sizeof (long)
22328 See \`config.log' for more details." >&2;}
22329    { (exit 77); exit 77; }; }
22330    else
22331      ac_cv_sizeof_long=0
22332    fi ;;
22333 esac
22334 else
22335   cat >conftest.$ac_ext <<_ACEOF
22336 /* confdefs.h.  */
22337 _ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h.  */
22341 $ac_includes_default
22342    typedef long ac__type_sizeof_;
22343 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22344 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22345 #include <stdio.h>
22346 #include <stdlib.h>
22347 int
22348 main ()
22349 {
22350
22351   FILE *f = fopen ("conftest.val", "w");
22352   if (! f)
22353     return 1;
22354   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22355     {
22356       long int i = longval ();
22357       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22358         return 1;
22359       fprintf (f, "%ld\n", i);
22360     }
22361   else
22362     {
22363       unsigned long int i = ulongval ();
22364       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22365         return 1;
22366       fprintf (f, "%lu\n", i);
22367     }
22368   return ferror (f) || fclose (f) != 0;
22369
22370   ;
22371   return 0;
22372 }
22373 _ACEOF
22374 rm -f conftest$ac_exeext
22375 if { (ac_try="$ac_link"
22376 case "(($ac_try" in
22377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378   *) ac_try_echo=$ac_try;;
22379 esac
22380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22381   (eval "$ac_link") 2>&5
22382   ac_status=$?
22383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22385   { (case "(($ac_try" in
22386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22387   *) ac_try_echo=$ac_try;;
22388 esac
22389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22390   (eval "$ac_try") 2>&5
22391   ac_status=$?
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); }; }; then
22394   ac_cv_sizeof_long=`cat conftest.val`
22395 else
22396   echo "$as_me: program exited with status $ac_status" >&5
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22399
22400 ( exit $ac_status )
22401 if test "$ac_cv_type_long" = yes; then
22402      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22403 See \`config.log' for more details." >&5
22404 echo "$as_me: error: cannot compute sizeof (long)
22405 See \`config.log' for more details." >&2;}
22406    { (exit 77); exit 77; }; }
22407    else
22408      ac_cv_sizeof_long=0
22409    fi
22410 fi
22411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22412 fi
22413 rm -f conftest.val
22414 fi
22415 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22416 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22417
22418
22419
22420 cat >>confdefs.h <<_ACEOF
22421 #define SIZEOF_LONG $ac_cv_sizeof_long
22422 _ACEOF
22423
22424
22425 { echo "$as_me:$LINENO: checking for size_t" >&5
22426 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22427 if test "${ac_cv_type_size_t+set}" = set; then
22428   echo $ECHO_N "(cached) $ECHO_C" >&6
22429 else
22430   cat >conftest.$ac_ext <<_ACEOF
22431 /* confdefs.h.  */
22432 _ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h.  */
22436 $ac_includes_default
22437 typedef size_t ac__type_new_;
22438 int
22439 main ()
22440 {
22441 if ((ac__type_new_ *) 0)
22442   return 0;
22443 if (sizeof (ac__type_new_))
22444   return 0;
22445   ;
22446   return 0;
22447 }
22448 _ACEOF
22449 rm -f conftest.$ac_objext
22450 if { (ac_try="$ac_compile"
22451 case "(($ac_try" in
22452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22453   *) ac_try_echo=$ac_try;;
22454 esac
22455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22456   (eval "$ac_compile") 2>conftest.er1
22457   ac_status=$?
22458   grep -v '^ *+' conftest.er1 >conftest.err
22459   rm -f conftest.er1
22460   cat conftest.err >&5
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); } && {
22463          test -z "$ac_c_werror_flag" ||
22464          test ! -s conftest.err
22465        } && test -s conftest.$ac_objext; then
22466   ac_cv_type_size_t=yes
22467 else
22468   echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22470
22471         ac_cv_type_size_t=no
22472 fi
22473
22474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22475 fi
22476 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22477 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22478
22479 # The cast to long int works around a bug in the HP C Compiler
22480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22482 # This bug is HP SR number 8606223364.
22483 { echo "$as_me:$LINENO: checking size of size_t" >&5
22484 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22485 if test "${ac_cv_sizeof_size_t+set}" = set; then
22486   echo $ECHO_N "(cached) $ECHO_C" >&6
22487 else
22488   if test "$cross_compiling" = yes; then
22489   # Depending upon the size, compute the lo and hi bounds.
22490 cat >conftest.$ac_ext <<_ACEOF
22491 /* confdefs.h.  */
22492 _ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h.  */
22496 $ac_includes_default
22497    typedef size_t ac__type_sizeof_;
22498 int
22499 main ()
22500 {
22501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22502 test_array [0] = 0
22503
22504   ;
22505   return 0;
22506 }
22507 _ACEOF
22508 rm -f conftest.$ac_objext
22509 if { (ac_try="$ac_compile"
22510 case "(($ac_try" in
22511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512   *) ac_try_echo=$ac_try;;
22513 esac
22514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22515   (eval "$ac_compile") 2>conftest.er1
22516   ac_status=$?
22517   grep -v '^ *+' conftest.er1 >conftest.err
22518   rm -f conftest.er1
22519   cat conftest.err >&5
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); } && {
22522          test -z "$ac_c_werror_flag" ||
22523          test ! -s conftest.err
22524        } && test -s conftest.$ac_objext; then
22525   ac_lo=0 ac_mid=0
22526   while :; do
22527     cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h.  */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h.  */
22533 $ac_includes_default
22534    typedef size_t ac__type_sizeof_;
22535 int
22536 main ()
22537 {
22538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22539 test_array [0] = 0
22540
22541   ;
22542   return 0;
22543 }
22544 _ACEOF
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549   *) ac_try_echo=$ac_try;;
22550 esac
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552   (eval "$ac_compile") 2>conftest.er1
22553   ac_status=$?
22554   grep -v '^ *+' conftest.er1 >conftest.err
22555   rm -f conftest.er1
22556   cat conftest.err >&5
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); } && {
22559          test -z "$ac_c_werror_flag" ||
22560          test ! -s conftest.err
22561        } && test -s conftest.$ac_objext; then
22562   ac_hi=$ac_mid; break
22563 else
22564   echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567         ac_lo=`expr $ac_mid + 1`
22568                         if test $ac_lo -le $ac_mid; then
22569                           ac_lo= ac_hi=
22570                           break
22571                         fi
22572                         ac_mid=`expr 2 '*' $ac_mid + 1`
22573 fi
22574
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576   done
22577 else
22578   echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22580
22581         cat >conftest.$ac_ext <<_ACEOF
22582 /* confdefs.h.  */
22583 _ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h.  */
22587 $ac_includes_default
22588    typedef size_t ac__type_sizeof_;
22589 int
22590 main ()
22591 {
22592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22593 test_array [0] = 0
22594
22595   ;
22596   return 0;
22597 }
22598 _ACEOF
22599 rm -f conftest.$ac_objext
22600 if { (ac_try="$ac_compile"
22601 case "(($ac_try" in
22602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22603   *) ac_try_echo=$ac_try;;
22604 esac
22605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22606   (eval "$ac_compile") 2>conftest.er1
22607   ac_status=$?
22608   grep -v '^ *+' conftest.er1 >conftest.err
22609   rm -f conftest.er1
22610   cat conftest.err >&5
22611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612   (exit $ac_status); } && {
22613          test -z "$ac_c_werror_flag" ||
22614          test ! -s conftest.err
22615        } && test -s conftest.$ac_objext; then
22616   ac_hi=-1 ac_mid=-1
22617   while :; do
22618     cat >conftest.$ac_ext <<_ACEOF
22619 /* confdefs.h.  */
22620 _ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h.  */
22624 $ac_includes_default
22625    typedef size_t ac__type_sizeof_;
22626 int
22627 main ()
22628 {
22629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22630 test_array [0] = 0
22631
22632   ;
22633   return 0;
22634 }
22635 _ACEOF
22636 rm -f conftest.$ac_objext
22637 if { (ac_try="$ac_compile"
22638 case "(($ac_try" in
22639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640   *) ac_try_echo=$ac_try;;
22641 esac
22642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22643   (eval "$ac_compile") 2>conftest.er1
22644   ac_status=$?
22645   grep -v '^ *+' conftest.er1 >conftest.err
22646   rm -f conftest.er1
22647   cat conftest.err >&5
22648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649   (exit $ac_status); } && {
22650          test -z "$ac_c_werror_flag" ||
22651          test ! -s conftest.err
22652        } && test -s conftest.$ac_objext; then
22653   ac_lo=$ac_mid; break
22654 else
22655   echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22657
22658         ac_hi=`expr '(' $ac_mid ')' - 1`
22659                         if test $ac_mid -le $ac_hi; then
22660                           ac_lo= ac_hi=
22661                           break
22662                         fi
22663                         ac_mid=`expr 2 '*' $ac_mid`
22664 fi
22665
22666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667   done
22668 else
22669   echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22671
22672         ac_lo= ac_hi=
22673 fi
22674
22675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676 fi
22677
22678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22679 # Binary search between lo and hi bounds.
22680 while test "x$ac_lo" != "x$ac_hi"; do
22681   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22682   cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688 $ac_includes_default
22689    typedef size_t ac__type_sizeof_;
22690 int
22691 main ()
22692 {
22693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22694 test_array [0] = 0
22695
22696   ;
22697   return 0;
22698 }
22699 _ACEOF
22700 rm -f conftest.$ac_objext
22701 if { (ac_try="$ac_compile"
22702 case "(($ac_try" in
22703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704   *) ac_try_echo=$ac_try;;
22705 esac
22706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707   (eval "$ac_compile") 2>conftest.er1
22708   ac_status=$?
22709   grep -v '^ *+' conftest.er1 >conftest.err
22710   rm -f conftest.er1
22711   cat conftest.err >&5
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); } && {
22714          test -z "$ac_c_werror_flag" ||
22715          test ! -s conftest.err
22716        } && test -s conftest.$ac_objext; then
22717   ac_hi=$ac_mid
22718 else
22719   echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22721
22722         ac_lo=`expr '(' $ac_mid ')' + 1`
22723 fi
22724
22725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726 done
22727 case $ac_lo in
22728 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22729 '') if test "$ac_cv_type_size_t" = yes; then
22730      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22731 See \`config.log' for more details." >&5
22732 echo "$as_me: error: cannot compute sizeof (size_t)
22733 See \`config.log' for more details." >&2;}
22734    { (exit 77); exit 77; }; }
22735    else
22736      ac_cv_sizeof_size_t=0
22737    fi ;;
22738 esac
22739 else
22740   cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h.  */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h.  */
22746 $ac_includes_default
22747    typedef size_t ac__type_sizeof_;
22748 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22749 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22750 #include <stdio.h>
22751 #include <stdlib.h>
22752 int
22753 main ()
22754 {
22755
22756   FILE *f = fopen ("conftest.val", "w");
22757   if (! f)
22758     return 1;
22759   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22760     {
22761       long int i = longval ();
22762       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22763         return 1;
22764       fprintf (f, "%ld\n", i);
22765     }
22766   else
22767     {
22768       unsigned long int i = ulongval ();
22769       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22770         return 1;
22771       fprintf (f, "%lu\n", i);
22772     }
22773   return ferror (f) || fclose (f) != 0;
22774
22775   ;
22776   return 0;
22777 }
22778 _ACEOF
22779 rm -f conftest$ac_exeext
22780 if { (ac_try="$ac_link"
22781 case "(($ac_try" in
22782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783   *) ac_try_echo=$ac_try;;
22784 esac
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786   (eval "$ac_link") 2>&5
22787   ac_status=$?
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22790   { (case "(($ac_try" in
22791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792   *) ac_try_echo=$ac_try;;
22793 esac
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795   (eval "$ac_try") 2>&5
22796   ac_status=$?
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); }; }; then
22799   ac_cv_sizeof_size_t=`cat conftest.val`
22800 else
22801   echo "$as_me: program exited with status $ac_status" >&5
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22804
22805 ( exit $ac_status )
22806 if test "$ac_cv_type_size_t" = yes; then
22807      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22808 See \`config.log' for more details." >&5
22809 echo "$as_me: error: cannot compute sizeof (size_t)
22810 See \`config.log' for more details." >&2;}
22811    { (exit 77); exit 77; }; }
22812    else
22813      ac_cv_sizeof_size_t=0
22814    fi
22815 fi
22816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22817 fi
22818 rm -f conftest.val
22819 fi
22820 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22821 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22822
22823
22824
22825 cat >>confdefs.h <<_ACEOF
22826 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22827 _ACEOF
22828
22829
22830
22831 case "${host}" in
22832     arm-*-linux* )
22833         { echo "$as_me:$LINENO: checking for long long" >&5
22834 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22835 if test "${ac_cv_type_long_long+set}" = set; then
22836   echo $ECHO_N "(cached) $ECHO_C" >&6
22837 else
22838   cat >conftest.$ac_ext <<_ACEOF
22839 /* confdefs.h.  */
22840 _ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h.  */
22844 $ac_includes_default
22845 typedef long long ac__type_new_;
22846 int
22847 main ()
22848 {
22849 if ((ac__type_new_ *) 0)
22850   return 0;
22851 if (sizeof (ac__type_new_))
22852   return 0;
22853   ;
22854   return 0;
22855 }
22856 _ACEOF
22857 rm -f conftest.$ac_objext
22858 if { (ac_try="$ac_compile"
22859 case "(($ac_try" in
22860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22861   *) ac_try_echo=$ac_try;;
22862 esac
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22864   (eval "$ac_compile") 2>conftest.er1
22865   ac_status=$?
22866   grep -v '^ *+' conftest.er1 >conftest.err
22867   rm -f conftest.er1
22868   cat conftest.err >&5
22869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870   (exit $ac_status); } && {
22871          test -z "$ac_c_werror_flag" ||
22872          test ! -s conftest.err
22873        } && test -s conftest.$ac_objext; then
22874   ac_cv_type_long_long=yes
22875 else
22876   echo "$as_me: failed program was:" >&5
22877 sed 's/^/| /' conftest.$ac_ext >&5
22878
22879         ac_cv_type_long_long=no
22880 fi
22881
22882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22883 fi
22884 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22885 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22886
22887 # The cast to long int works around a bug in the HP C Compiler
22888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22890 # This bug is HP SR number 8606223364.
22891 { echo "$as_me:$LINENO: checking size of long long" >&5
22892 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22893 if test "${ac_cv_sizeof_long_long+set}" = set; then
22894   echo $ECHO_N "(cached) $ECHO_C" >&6
22895 else
22896   if test "$cross_compiling" = yes; then
22897   # Depending upon the size, compute the lo and hi bounds.
22898 cat >conftest.$ac_ext <<_ACEOF
22899 /* confdefs.h.  */
22900 _ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h.  */
22904 $ac_includes_default
22905    typedef long long ac__type_sizeof_;
22906 int
22907 main ()
22908 {
22909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22910 test_array [0] = 0
22911
22912   ;
22913   return 0;
22914 }
22915 _ACEOF
22916 rm -f conftest.$ac_objext
22917 if { (ac_try="$ac_compile"
22918 case "(($ac_try" in
22919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920   *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923   (eval "$ac_compile") 2>conftest.er1
22924   ac_status=$?
22925   grep -v '^ *+' conftest.er1 >conftest.err
22926   rm -f conftest.er1
22927   cat conftest.err >&5
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); } && {
22930          test -z "$ac_c_werror_flag" ||
22931          test ! -s conftest.err
22932        } && test -s conftest.$ac_objext; then
22933   ac_lo=0 ac_mid=0
22934   while :; do
22935     cat >conftest.$ac_ext <<_ACEOF
22936 /* confdefs.h.  */
22937 _ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h.  */
22941 $ac_includes_default
22942    typedef long long ac__type_sizeof_;
22943 int
22944 main ()
22945 {
22946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22947 test_array [0] = 0
22948
22949   ;
22950   return 0;
22951 }
22952 _ACEOF
22953 rm -f conftest.$ac_objext
22954 if { (ac_try="$ac_compile"
22955 case "(($ac_try" in
22956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957   *) ac_try_echo=$ac_try;;
22958 esac
22959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22960   (eval "$ac_compile") 2>conftest.er1
22961   ac_status=$?
22962   grep -v '^ *+' conftest.er1 >conftest.err
22963   rm -f conftest.er1
22964   cat conftest.err >&5
22965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966   (exit $ac_status); } && {
22967          test -z "$ac_c_werror_flag" ||
22968          test ! -s conftest.err
22969        } && test -s conftest.$ac_objext; then
22970   ac_hi=$ac_mid; break
22971 else
22972   echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22974
22975         ac_lo=`expr $ac_mid + 1`
22976                         if test $ac_lo -le $ac_mid; then
22977                           ac_lo= ac_hi=
22978                           break
22979                         fi
22980                         ac_mid=`expr 2 '*' $ac_mid + 1`
22981 fi
22982
22983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22984   done
22985 else
22986   echo "$as_me: failed program was:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22988
22989         cat >conftest.$ac_ext <<_ACEOF
22990 /* confdefs.h.  */
22991 _ACEOF
22992 cat confdefs.h >>conftest.$ac_ext
22993 cat >>conftest.$ac_ext <<_ACEOF
22994 /* end confdefs.h.  */
22995 $ac_includes_default
22996    typedef long long ac__type_sizeof_;
22997 int
22998 main ()
22999 {
23000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23001 test_array [0] = 0
23002
23003   ;
23004   return 0;
23005 }
23006 _ACEOF
23007 rm -f conftest.$ac_objext
23008 if { (ac_try="$ac_compile"
23009 case "(($ac_try" in
23010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23011   *) ac_try_echo=$ac_try;;
23012 esac
23013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23014   (eval "$ac_compile") 2>conftest.er1
23015   ac_status=$?
23016   grep -v '^ *+' conftest.er1 >conftest.err
23017   rm -f conftest.er1
23018   cat conftest.err >&5
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); } && {
23021          test -z "$ac_c_werror_flag" ||
23022          test ! -s conftest.err
23023        } && test -s conftest.$ac_objext; then
23024   ac_hi=-1 ac_mid=-1
23025   while :; do
23026     cat >conftest.$ac_ext <<_ACEOF
23027 /* confdefs.h.  */
23028 _ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h.  */
23032 $ac_includes_default
23033    typedef long long ac__type_sizeof_;
23034 int
23035 main ()
23036 {
23037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23038 test_array [0] = 0
23039
23040   ;
23041   return 0;
23042 }
23043 _ACEOF
23044 rm -f conftest.$ac_objext
23045 if { (ac_try="$ac_compile"
23046 case "(($ac_try" in
23047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048   *) ac_try_echo=$ac_try;;
23049 esac
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051   (eval "$ac_compile") 2>conftest.er1
23052   ac_status=$?
23053   grep -v '^ *+' conftest.er1 >conftest.err
23054   rm -f conftest.er1
23055   cat conftest.err >&5
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); } && {
23058          test -z "$ac_c_werror_flag" ||
23059          test ! -s conftest.err
23060        } && test -s conftest.$ac_objext; then
23061   ac_lo=$ac_mid; break
23062 else
23063   echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23065
23066         ac_hi=`expr '(' $ac_mid ')' - 1`
23067                         if test $ac_mid -le $ac_hi; then
23068                           ac_lo= ac_hi=
23069                           break
23070                         fi
23071                         ac_mid=`expr 2 '*' $ac_mid`
23072 fi
23073
23074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23075   done
23076 else
23077   echo "$as_me: failed program was:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23079
23080         ac_lo= ac_hi=
23081 fi
23082
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084 fi
23085
23086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 # Binary search between lo and hi bounds.
23088 while test "x$ac_lo" != "x$ac_hi"; do
23089   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23090   cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h.  */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h.  */
23096 $ac_includes_default
23097    typedef long long ac__type_sizeof_;
23098 int
23099 main ()
23100 {
23101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23102 test_array [0] = 0
23103
23104   ;
23105   return 0;
23106 }
23107 _ACEOF
23108 rm -f conftest.$ac_objext
23109 if { (ac_try="$ac_compile"
23110 case "(($ac_try" in
23111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23112   *) ac_try_echo=$ac_try;;
23113 esac
23114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23115   (eval "$ac_compile") 2>conftest.er1
23116   ac_status=$?
23117   grep -v '^ *+' conftest.er1 >conftest.err
23118   rm -f conftest.er1
23119   cat conftest.err >&5
23120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121   (exit $ac_status); } && {
23122          test -z "$ac_c_werror_flag" ||
23123          test ! -s conftest.err
23124        } && test -s conftest.$ac_objext; then
23125   ac_hi=$ac_mid
23126 else
23127   echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23129
23130         ac_lo=`expr '(' $ac_mid ')' + 1`
23131 fi
23132
23133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134 done
23135 case $ac_lo in
23136 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23137 '') if test "$ac_cv_type_long_long" = yes; then
23138      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23139 See \`config.log' for more details." >&5
23140 echo "$as_me: error: cannot compute sizeof (long long)
23141 See \`config.log' for more details." >&2;}
23142    { (exit 77); exit 77; }; }
23143    else
23144      ac_cv_sizeof_long_long=0
23145    fi ;;
23146 esac
23147 else
23148   cat >conftest.$ac_ext <<_ACEOF
23149 /* confdefs.h.  */
23150 _ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h.  */
23154 $ac_includes_default
23155    typedef long long ac__type_sizeof_;
23156 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23157 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23158 #include <stdio.h>
23159 #include <stdlib.h>
23160 int
23161 main ()
23162 {
23163
23164   FILE *f = fopen ("conftest.val", "w");
23165   if (! f)
23166     return 1;
23167   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23168     {
23169       long int i = longval ();
23170       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23171         return 1;
23172       fprintf (f, "%ld\n", i);
23173     }
23174   else
23175     {
23176       unsigned long int i = ulongval ();
23177       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23178         return 1;
23179       fprintf (f, "%lu\n", i);
23180     }
23181   return ferror (f) || fclose (f) != 0;
23182
23183   ;
23184   return 0;
23185 }
23186 _ACEOF
23187 rm -f conftest$ac_exeext
23188 if { (ac_try="$ac_link"
23189 case "(($ac_try" in
23190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191   *) ac_try_echo=$ac_try;;
23192 esac
23193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194   (eval "$ac_link") 2>&5
23195   ac_status=$?
23196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23198   { (case "(($ac_try" in
23199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200   *) ac_try_echo=$ac_try;;
23201 esac
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203   (eval "$ac_try") 2>&5
23204   ac_status=$?
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); }; }; then
23207   ac_cv_sizeof_long_long=`cat conftest.val`
23208 else
23209   echo "$as_me: program exited with status $ac_status" >&5
23210 echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213 ( exit $ac_status )
23214 if test "$ac_cv_type_long_long" = yes; then
23215      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23216 See \`config.log' for more details." >&5
23217 echo "$as_me: error: cannot compute sizeof (long long)
23218 See \`config.log' for more details." >&2;}
23219    { (exit 77); exit 77; }; }
23220    else
23221      ac_cv_sizeof_long_long=0
23222    fi
23223 fi
23224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23225 fi
23226 rm -f conftest.val
23227 fi
23228 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23229 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23230
23231
23232
23233 cat >>confdefs.h <<_ACEOF
23234 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23235 _ACEOF
23236
23237
23238     ;;
23239     *-hp-hpux* )
23240         { echo "$as_me:$LINENO: checking for long long" >&5
23241 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23242 if test "${ac_cv_type_long_long+set}" = set; then
23243   echo $ECHO_N "(cached) $ECHO_C" >&6
23244 else
23245   cat >conftest.$ac_ext <<_ACEOF
23246 /* confdefs.h.  */
23247 _ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h.  */
23251 $ac_includes_default
23252 typedef long long ac__type_new_;
23253 int
23254 main ()
23255 {
23256 if ((ac__type_new_ *) 0)
23257   return 0;
23258 if (sizeof (ac__type_new_))
23259   return 0;
23260   ;
23261   return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext
23265 if { (ac_try="$ac_compile"
23266 case "(($ac_try" in
23267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268   *) ac_try_echo=$ac_try;;
23269 esac
23270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23271   (eval "$ac_compile") 2>conftest.er1
23272   ac_status=$?
23273   grep -v '^ *+' conftest.er1 >conftest.err
23274   rm -f conftest.er1
23275   cat conftest.err >&5
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } && {
23278          test -z "$ac_c_werror_flag" ||
23279          test ! -s conftest.err
23280        } && test -s conftest.$ac_objext; then
23281   ac_cv_type_long_long=yes
23282 else
23283   echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286         ac_cv_type_long_long=no
23287 fi
23288
23289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23290 fi
23291 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23292 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23293
23294 # The cast to long int works around a bug in the HP C Compiler
23295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23297 # This bug is HP SR number 8606223364.
23298 { echo "$as_me:$LINENO: checking size of long long" >&5
23299 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23300 if test "${ac_cv_sizeof_long_long+set}" = set; then
23301   echo $ECHO_N "(cached) $ECHO_C" >&6
23302 else
23303   if test "$cross_compiling" = yes; then
23304   # Depending upon the size, compute the lo and hi bounds.
23305 cat >conftest.$ac_ext <<_ACEOF
23306 /* confdefs.h.  */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h.  */
23311 $ac_includes_default
23312    typedef long long ac__type_sizeof_;
23313 int
23314 main ()
23315 {
23316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23317 test_array [0] = 0
23318
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest.$ac_objext
23324 if { (ac_try="$ac_compile"
23325 case "(($ac_try" in
23326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327   *) ac_try_echo=$ac_try;;
23328 esac
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330   (eval "$ac_compile") 2>conftest.er1
23331   ac_status=$?
23332   grep -v '^ *+' conftest.er1 >conftest.err
23333   rm -f conftest.er1
23334   cat conftest.err >&5
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); } && {
23337          test -z "$ac_c_werror_flag" ||
23338          test ! -s conftest.err
23339        } && test -s conftest.$ac_objext; then
23340   ac_lo=0 ac_mid=0
23341   while :; do
23342     cat >conftest.$ac_ext <<_ACEOF
23343 /* confdefs.h.  */
23344 _ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h.  */
23348 $ac_includes_default
23349    typedef long long ac__type_sizeof_;
23350 int
23351 main ()
23352 {
23353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23354 test_array [0] = 0
23355
23356   ;
23357   return 0;
23358 }
23359 _ACEOF
23360 rm -f conftest.$ac_objext
23361 if { (ac_try="$ac_compile"
23362 case "(($ac_try" in
23363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364   *) ac_try_echo=$ac_try;;
23365 esac
23366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367   (eval "$ac_compile") 2>conftest.er1
23368   ac_status=$?
23369   grep -v '^ *+' conftest.er1 >conftest.err
23370   rm -f conftest.er1
23371   cat conftest.err >&5
23372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373   (exit $ac_status); } && {
23374          test -z "$ac_c_werror_flag" ||
23375          test ! -s conftest.err
23376        } && test -s conftest.$ac_objext; then
23377   ac_hi=$ac_mid; break
23378 else
23379   echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23381
23382         ac_lo=`expr $ac_mid + 1`
23383                         if test $ac_lo -le $ac_mid; then
23384                           ac_lo= ac_hi=
23385                           break
23386                         fi
23387                         ac_mid=`expr 2 '*' $ac_mid + 1`
23388 fi
23389
23390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23391   done
23392 else
23393   echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23395
23396         cat >conftest.$ac_ext <<_ACEOF
23397 /* confdefs.h.  */
23398 _ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h.  */
23402 $ac_includes_default
23403    typedef long long ac__type_sizeof_;
23404 int
23405 main ()
23406 {
23407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23408 test_array [0] = 0
23409
23410   ;
23411   return 0;
23412 }
23413 _ACEOF
23414 rm -f conftest.$ac_objext
23415 if { (ac_try="$ac_compile"
23416 case "(($ac_try" in
23417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418   *) ac_try_echo=$ac_try;;
23419 esac
23420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23421   (eval "$ac_compile") 2>conftest.er1
23422   ac_status=$?
23423   grep -v '^ *+' conftest.er1 >conftest.err
23424   rm -f conftest.er1
23425   cat conftest.err >&5
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); } && {
23428          test -z "$ac_c_werror_flag" ||
23429          test ! -s conftest.err
23430        } && test -s conftest.$ac_objext; then
23431   ac_hi=-1 ac_mid=-1
23432   while :; do
23433     cat >conftest.$ac_ext <<_ACEOF
23434 /* confdefs.h.  */
23435 _ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h.  */
23439 $ac_includes_default
23440    typedef long long ac__type_sizeof_;
23441 int
23442 main ()
23443 {
23444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23445 test_array [0] = 0
23446
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext
23452 if { (ac_try="$ac_compile"
23453 case "(($ac_try" in
23454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455   *) ac_try_echo=$ac_try;;
23456 esac
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458   (eval "$ac_compile") 2>conftest.er1
23459   ac_status=$?
23460   grep -v '^ *+' conftest.er1 >conftest.err
23461   rm -f conftest.er1
23462   cat conftest.err >&5
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); } && {
23465          test -z "$ac_c_werror_flag" ||
23466          test ! -s conftest.err
23467        } && test -s conftest.$ac_objext; then
23468   ac_lo=$ac_mid; break
23469 else
23470   echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23472
23473         ac_hi=`expr '(' $ac_mid ')' - 1`
23474                         if test $ac_mid -le $ac_hi; then
23475                           ac_lo= ac_hi=
23476                           break
23477                         fi
23478                         ac_mid=`expr 2 '*' $ac_mid`
23479 fi
23480
23481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23482   done
23483 else
23484   echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487         ac_lo= ac_hi=
23488 fi
23489
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491 fi
23492
23493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23494 # Binary search between lo and hi bounds.
23495 while test "x$ac_lo" != "x$ac_hi"; do
23496   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23497   cat >conftest.$ac_ext <<_ACEOF
23498 /* confdefs.h.  */
23499 _ACEOF
23500 cat confdefs.h >>conftest.$ac_ext
23501 cat >>conftest.$ac_ext <<_ACEOF
23502 /* end confdefs.h.  */
23503 $ac_includes_default
23504    typedef long long ac__type_sizeof_;
23505 int
23506 main ()
23507 {
23508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23509 test_array [0] = 0
23510
23511   ;
23512   return 0;
23513 }
23514 _ACEOF
23515 rm -f conftest.$ac_objext
23516 if { (ac_try="$ac_compile"
23517 case "(($ac_try" in
23518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23519   *) ac_try_echo=$ac_try;;
23520 esac
23521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23522   (eval "$ac_compile") 2>conftest.er1
23523   ac_status=$?
23524   grep -v '^ *+' conftest.er1 >conftest.err
23525   rm -f conftest.er1
23526   cat conftest.err >&5
23527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); } && {
23529          test -z "$ac_c_werror_flag" ||
23530          test ! -s conftest.err
23531        } && test -s conftest.$ac_objext; then
23532   ac_hi=$ac_mid
23533 else
23534   echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23536
23537         ac_lo=`expr '(' $ac_mid ')' + 1`
23538 fi
23539
23540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23541 done
23542 case $ac_lo in
23543 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23544 '') if test "$ac_cv_type_long_long" = yes; then
23545      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23546 See \`config.log' for more details." >&5
23547 echo "$as_me: error: cannot compute sizeof (long long)
23548 See \`config.log' for more details." >&2;}
23549    { (exit 77); exit 77; }; }
23550    else
23551      ac_cv_sizeof_long_long=0
23552    fi ;;
23553 esac
23554 else
23555   cat >conftest.$ac_ext <<_ACEOF
23556 /* confdefs.h.  */
23557 _ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h.  */
23561 $ac_includes_default
23562    typedef long long ac__type_sizeof_;
23563 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23564 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23565 #include <stdio.h>
23566 #include <stdlib.h>
23567 int
23568 main ()
23569 {
23570
23571   FILE *f = fopen ("conftest.val", "w");
23572   if (! f)
23573     return 1;
23574   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23575     {
23576       long int i = longval ();
23577       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23578         return 1;
23579       fprintf (f, "%ld\n", i);
23580     }
23581   else
23582     {
23583       unsigned long int i = ulongval ();
23584       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23585         return 1;
23586       fprintf (f, "%lu\n", i);
23587     }
23588   return ferror (f) || fclose (f) != 0;
23589
23590   ;
23591   return 0;
23592 }
23593 _ACEOF
23594 rm -f conftest$ac_exeext
23595 if { (ac_try="$ac_link"
23596 case "(($ac_try" in
23597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598   *) ac_try_echo=$ac_try;;
23599 esac
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601   (eval "$ac_link") 2>&5
23602   ac_status=$?
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23605   { (case "(($ac_try" in
23606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23607   *) ac_try_echo=$ac_try;;
23608 esac
23609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23610   (eval "$ac_try") 2>&5
23611   ac_status=$?
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); }; }; then
23614   ac_cv_sizeof_long_long=`cat conftest.val`
23615 else
23616   echo "$as_me: program exited with status $ac_status" >&5
23617 echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23619
23620 ( exit $ac_status )
23621 if test "$ac_cv_type_long_long" = yes; then
23622      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23623 See \`config.log' for more details." >&5
23624 echo "$as_me: error: cannot compute sizeof (long long)
23625 See \`config.log' for more details." >&2;}
23626    { (exit 77); exit 77; }; }
23627    else
23628      ac_cv_sizeof_long_long=0
23629    fi
23630 fi
23631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23632 fi
23633 rm -f conftest.val
23634 fi
23635 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23636 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23637
23638
23639
23640 cat >>confdefs.h <<_ACEOF
23641 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23642 _ACEOF
23643
23644
23645         if test "$ac_cv_sizeof_long_long" != 0; then
23646                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23647         fi
23648     ;;
23649     * )
23650         { echo "$as_me:$LINENO: checking for long long" >&5
23651 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23652 if test "${ac_cv_type_long_long+set}" = set; then
23653   echo $ECHO_N "(cached) $ECHO_C" >&6
23654 else
23655   cat >conftest.$ac_ext <<_ACEOF
23656 /* confdefs.h.  */
23657 _ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h.  */
23661 $ac_includes_default
23662 typedef long long ac__type_new_;
23663 int
23664 main ()
23665 {
23666 if ((ac__type_new_ *) 0)
23667   return 0;
23668 if (sizeof (ac__type_new_))
23669   return 0;
23670   ;
23671   return 0;
23672 }
23673 _ACEOF
23674 rm -f conftest.$ac_objext
23675 if { (ac_try="$ac_compile"
23676 case "(($ac_try" in
23677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678   *) ac_try_echo=$ac_try;;
23679 esac
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681   (eval "$ac_compile") 2>conftest.er1
23682   ac_status=$?
23683   grep -v '^ *+' conftest.er1 >conftest.err
23684   rm -f conftest.er1
23685   cat conftest.err >&5
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); } && {
23688          test -z "$ac_c_werror_flag" ||
23689          test ! -s conftest.err
23690        } && test -s conftest.$ac_objext; then
23691   ac_cv_type_long_long=yes
23692 else
23693   echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23695
23696         ac_cv_type_long_long=no
23697 fi
23698
23699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23700 fi
23701 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23702 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23703
23704 # The cast to long int works around a bug in the HP C Compiler
23705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23707 # This bug is HP SR number 8606223364.
23708 { echo "$as_me:$LINENO: checking size of long long" >&5
23709 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23710 if test "${ac_cv_sizeof_long_long+set}" = set; then
23711   echo $ECHO_N "(cached) $ECHO_C" >&6
23712 else
23713   if test "$cross_compiling" = yes; then
23714   # Depending upon the size, compute the lo and hi bounds.
23715 cat >conftest.$ac_ext <<_ACEOF
23716 /* confdefs.h.  */
23717 _ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h.  */
23721 $ac_includes_default
23722    typedef long long ac__type_sizeof_;
23723 int
23724 main ()
23725 {
23726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23727 test_array [0] = 0
23728
23729   ;
23730   return 0;
23731 }
23732 _ACEOF
23733 rm -f conftest.$ac_objext
23734 if { (ac_try="$ac_compile"
23735 case "(($ac_try" in
23736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23737   *) ac_try_echo=$ac_try;;
23738 esac
23739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23740   (eval "$ac_compile") 2>conftest.er1
23741   ac_status=$?
23742   grep -v '^ *+' conftest.er1 >conftest.err
23743   rm -f conftest.er1
23744   cat conftest.err >&5
23745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746   (exit $ac_status); } && {
23747          test -z "$ac_c_werror_flag" ||
23748          test ! -s conftest.err
23749        } && test -s conftest.$ac_objext; then
23750   ac_lo=0 ac_mid=0
23751   while :; do
23752     cat >conftest.$ac_ext <<_ACEOF
23753 /* confdefs.h.  */
23754 _ACEOF
23755 cat confdefs.h >>conftest.$ac_ext
23756 cat >>conftest.$ac_ext <<_ACEOF
23757 /* end confdefs.h.  */
23758 $ac_includes_default
23759    typedef long long ac__type_sizeof_;
23760 int
23761 main ()
23762 {
23763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23764 test_array [0] = 0
23765
23766   ;
23767   return 0;
23768 }
23769 _ACEOF
23770 rm -f conftest.$ac_objext
23771 if { (ac_try="$ac_compile"
23772 case "(($ac_try" in
23773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774   *) ac_try_echo=$ac_try;;
23775 esac
23776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23777   (eval "$ac_compile") 2>conftest.er1
23778   ac_status=$?
23779   grep -v '^ *+' conftest.er1 >conftest.err
23780   rm -f conftest.er1
23781   cat conftest.err >&5
23782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783   (exit $ac_status); } && {
23784          test -z "$ac_c_werror_flag" ||
23785          test ! -s conftest.err
23786        } && test -s conftest.$ac_objext; then
23787   ac_hi=$ac_mid; break
23788 else
23789   echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23791
23792         ac_lo=`expr $ac_mid + 1`
23793                         if test $ac_lo -le $ac_mid; then
23794                           ac_lo= ac_hi=
23795                           break
23796                         fi
23797                         ac_mid=`expr 2 '*' $ac_mid + 1`
23798 fi
23799
23800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23801   done
23802 else
23803   echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23805
23806         cat >conftest.$ac_ext <<_ACEOF
23807 /* confdefs.h.  */
23808 _ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h.  */
23812 $ac_includes_default
23813    typedef long long ac__type_sizeof_;
23814 int
23815 main ()
23816 {
23817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23818 test_array [0] = 0
23819
23820   ;
23821   return 0;
23822 }
23823 _ACEOF
23824 rm -f conftest.$ac_objext
23825 if { (ac_try="$ac_compile"
23826 case "(($ac_try" in
23827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828   *) ac_try_echo=$ac_try;;
23829 esac
23830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23831   (eval "$ac_compile") 2>conftest.er1
23832   ac_status=$?
23833   grep -v '^ *+' conftest.er1 >conftest.err
23834   rm -f conftest.er1
23835   cat conftest.err >&5
23836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837   (exit $ac_status); } && {
23838          test -z "$ac_c_werror_flag" ||
23839          test ! -s conftest.err
23840        } && test -s conftest.$ac_objext; then
23841   ac_hi=-1 ac_mid=-1
23842   while :; do
23843     cat >conftest.$ac_ext <<_ACEOF
23844 /* confdefs.h.  */
23845 _ACEOF
23846 cat confdefs.h >>conftest.$ac_ext
23847 cat >>conftest.$ac_ext <<_ACEOF
23848 /* end confdefs.h.  */
23849 $ac_includes_default
23850    typedef long long ac__type_sizeof_;
23851 int
23852 main ()
23853 {
23854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23855 test_array [0] = 0
23856
23857   ;
23858   return 0;
23859 }
23860 _ACEOF
23861 rm -f conftest.$ac_objext
23862 if { (ac_try="$ac_compile"
23863 case "(($ac_try" in
23864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865   *) ac_try_echo=$ac_try;;
23866 esac
23867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868   (eval "$ac_compile") 2>conftest.er1
23869   ac_status=$?
23870   grep -v '^ *+' conftest.er1 >conftest.err
23871   rm -f conftest.er1
23872   cat conftest.err >&5
23873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874   (exit $ac_status); } && {
23875          test -z "$ac_c_werror_flag" ||
23876          test ! -s conftest.err
23877        } && test -s conftest.$ac_objext; then
23878   ac_lo=$ac_mid; break
23879 else
23880   echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23882
23883         ac_hi=`expr '(' $ac_mid ')' - 1`
23884                         if test $ac_mid -le $ac_hi; then
23885                           ac_lo= ac_hi=
23886                           break
23887                         fi
23888                         ac_mid=`expr 2 '*' $ac_mid`
23889 fi
23890
23891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23892   done
23893 else
23894   echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23896
23897         ac_lo= ac_hi=
23898 fi
23899
23900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23901 fi
23902
23903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 # Binary search between lo and hi bounds.
23905 while test "x$ac_lo" != "x$ac_hi"; do
23906   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23907   cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h.  */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h.  */
23913 $ac_includes_default
23914    typedef long long ac__type_sizeof_;
23915 int
23916 main ()
23917 {
23918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23919 test_array [0] = 0
23920
23921   ;
23922   return 0;
23923 }
23924 _ACEOF
23925 rm -f conftest.$ac_objext
23926 if { (ac_try="$ac_compile"
23927 case "(($ac_try" in
23928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929   *) ac_try_echo=$ac_try;;
23930 esac
23931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23932   (eval "$ac_compile") 2>conftest.er1
23933   ac_status=$?
23934   grep -v '^ *+' conftest.er1 >conftest.err
23935   rm -f conftest.er1
23936   cat conftest.err >&5
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); } && {
23939          test -z "$ac_c_werror_flag" ||
23940          test ! -s conftest.err
23941        } && test -s conftest.$ac_objext; then
23942   ac_hi=$ac_mid
23943 else
23944   echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947         ac_lo=`expr '(' $ac_mid ')' + 1`
23948 fi
23949
23950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951 done
23952 case $ac_lo in
23953 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23954 '') if test "$ac_cv_type_long_long" = yes; then
23955      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23956 See \`config.log' for more details." >&5
23957 echo "$as_me: error: cannot compute sizeof (long long)
23958 See \`config.log' for more details." >&2;}
23959    { (exit 77); exit 77; }; }
23960    else
23961      ac_cv_sizeof_long_long=0
23962    fi ;;
23963 esac
23964 else
23965   cat >conftest.$ac_ext <<_ACEOF
23966 /* confdefs.h.  */
23967 _ACEOF
23968 cat confdefs.h >>conftest.$ac_ext
23969 cat >>conftest.$ac_ext <<_ACEOF
23970 /* end confdefs.h.  */
23971 $ac_includes_default
23972    typedef long long ac__type_sizeof_;
23973 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23974 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23975 #include <stdio.h>
23976 #include <stdlib.h>
23977 int
23978 main ()
23979 {
23980
23981   FILE *f = fopen ("conftest.val", "w");
23982   if (! f)
23983     return 1;
23984   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23985     {
23986       long int i = longval ();
23987       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23988         return 1;
23989       fprintf (f, "%ld\n", i);
23990     }
23991   else
23992     {
23993       unsigned long int i = ulongval ();
23994       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23995         return 1;
23996       fprintf (f, "%lu\n", i);
23997     }
23998   return ferror (f) || fclose (f) != 0;
23999
24000   ;
24001   return 0;
24002 }
24003 _ACEOF
24004 rm -f conftest$ac_exeext
24005 if { (ac_try="$ac_link"
24006 case "(($ac_try" in
24007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24008   *) ac_try_echo=$ac_try;;
24009 esac
24010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24011   (eval "$ac_link") 2>&5
24012   ac_status=$?
24013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24015   { (case "(($ac_try" in
24016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24017   *) ac_try_echo=$ac_try;;
24018 esac
24019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24020   (eval "$ac_try") 2>&5
24021   ac_status=$?
24022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023   (exit $ac_status); }; }; then
24024   ac_cv_sizeof_long_long=`cat conftest.val`
24025 else
24026   echo "$as_me: program exited with status $ac_status" >&5
24027 echo "$as_me: failed program was:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24029
24030 ( exit $ac_status )
24031 if test "$ac_cv_type_long_long" = yes; then
24032      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24033 See \`config.log' for more details." >&5
24034 echo "$as_me: error: cannot compute sizeof (long long)
24035 See \`config.log' for more details." >&2;}
24036    { (exit 77); exit 77; }; }
24037    else
24038      ac_cv_sizeof_long_long=0
24039    fi
24040 fi
24041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24042 fi
24043 rm -f conftest.val
24044 fi
24045 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24046 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24047
24048
24049
24050 cat >>confdefs.h <<_ACEOF
24051 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24052 _ACEOF
24053
24054
24055 esac
24056
24057 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24058 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24059 if test "${ac_cv_type_wchar_t+set}" = set; then
24060   echo $ECHO_N "(cached) $ECHO_C" >&6
24061 else
24062   cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h.  */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h.  */
24068
24069         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24070         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24071         #  error "fake wchar_t"
24072         #endif
24073         #ifdef HAVE_WCHAR_H
24074         #  ifdef __CYGWIN__
24075         #    include <stddef.h>
24076         #  endif
24077         #  include <wchar.h>
24078         #endif
24079         #ifdef HAVE_STDLIB_H
24080         #  include <stdlib.h>
24081         #endif
24082         #include <stdio.h>
24083
24084
24085
24086 typedef wchar_t ac__type_new_;
24087 int
24088 main ()
24089 {
24090 if ((ac__type_new_ *) 0)
24091   return 0;
24092 if (sizeof (ac__type_new_))
24093   return 0;
24094   ;
24095   return 0;
24096 }
24097 _ACEOF
24098 rm -f conftest.$ac_objext
24099 if { (ac_try="$ac_compile"
24100 case "(($ac_try" in
24101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102   *) ac_try_echo=$ac_try;;
24103 esac
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105   (eval "$ac_compile") 2>conftest.er1
24106   ac_status=$?
24107   grep -v '^ *+' conftest.er1 >conftest.err
24108   rm -f conftest.er1
24109   cat conftest.err >&5
24110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111   (exit $ac_status); } && {
24112          test -z "$ac_c_werror_flag" ||
24113          test ! -s conftest.err
24114        } && test -s conftest.$ac_objext; then
24115   ac_cv_type_wchar_t=yes
24116 else
24117   echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24119
24120         ac_cv_type_wchar_t=no
24121 fi
24122
24123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24124 fi
24125 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24126 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24127
24128 # The cast to long int works around a bug in the HP C Compiler
24129 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24130 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24131 # This bug is HP SR number 8606223364.
24132 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24133 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24134 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24135   echo $ECHO_N "(cached) $ECHO_C" >&6
24136 else
24137   if test "$cross_compiling" = yes; then
24138   # Depending upon the size, compute the lo and hi bounds.
24139 cat >conftest.$ac_ext <<_ACEOF
24140 /* confdefs.h.  */
24141 _ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h.  */
24145
24146         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24147         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24148         #  error "fake wchar_t"
24149         #endif
24150         #ifdef HAVE_WCHAR_H
24151         #  ifdef __CYGWIN__
24152         #    include <stddef.h>
24153         #  endif
24154         #  include <wchar.h>
24155         #endif
24156         #ifdef HAVE_STDLIB_H
24157         #  include <stdlib.h>
24158         #endif
24159         #include <stdio.h>
24160
24161
24162
24163    typedef wchar_t ac__type_sizeof_;
24164 int
24165 main ()
24166 {
24167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24168 test_array [0] = 0
24169
24170   ;
24171   return 0;
24172 }
24173 _ACEOF
24174 rm -f conftest.$ac_objext
24175 if { (ac_try="$ac_compile"
24176 case "(($ac_try" in
24177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24178   *) ac_try_echo=$ac_try;;
24179 esac
24180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24181   (eval "$ac_compile") 2>conftest.er1
24182   ac_status=$?
24183   grep -v '^ *+' conftest.er1 >conftest.err
24184   rm -f conftest.er1
24185   cat conftest.err >&5
24186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); } && {
24188          test -z "$ac_c_werror_flag" ||
24189          test ! -s conftest.err
24190        } && test -s conftest.$ac_objext; then
24191   ac_lo=0 ac_mid=0
24192   while :; do
24193     cat >conftest.$ac_ext <<_ACEOF
24194 /* confdefs.h.  */
24195 _ACEOF
24196 cat confdefs.h >>conftest.$ac_ext
24197 cat >>conftest.$ac_ext <<_ACEOF
24198 /* end confdefs.h.  */
24199
24200         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24201         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24202         #  error "fake wchar_t"
24203         #endif
24204         #ifdef HAVE_WCHAR_H
24205         #  ifdef __CYGWIN__
24206         #    include <stddef.h>
24207         #  endif
24208         #  include <wchar.h>
24209         #endif
24210         #ifdef HAVE_STDLIB_H
24211         #  include <stdlib.h>
24212         #endif
24213         #include <stdio.h>
24214
24215
24216
24217    typedef wchar_t ac__type_sizeof_;
24218 int
24219 main ()
24220 {
24221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24222 test_array [0] = 0
24223
24224   ;
24225   return 0;
24226 }
24227 _ACEOF
24228 rm -f conftest.$ac_objext
24229 if { (ac_try="$ac_compile"
24230 case "(($ac_try" in
24231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232   *) ac_try_echo=$ac_try;;
24233 esac
24234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24235   (eval "$ac_compile") 2>conftest.er1
24236   ac_status=$?
24237   grep -v '^ *+' conftest.er1 >conftest.err
24238   rm -f conftest.er1
24239   cat conftest.err >&5
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); } && {
24242          test -z "$ac_c_werror_flag" ||
24243          test ! -s conftest.err
24244        } && test -s conftest.$ac_objext; then
24245   ac_hi=$ac_mid; break
24246 else
24247   echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24249
24250         ac_lo=`expr $ac_mid + 1`
24251                         if test $ac_lo -le $ac_mid; then
24252                           ac_lo= ac_hi=
24253                           break
24254                         fi
24255                         ac_mid=`expr 2 '*' $ac_mid + 1`
24256 fi
24257
24258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24259   done
24260 else
24261   echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24263
24264         cat >conftest.$ac_ext <<_ACEOF
24265 /* confdefs.h.  */
24266 _ACEOF
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h.  */
24270
24271         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24272         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24273         #  error "fake wchar_t"
24274         #endif
24275         #ifdef HAVE_WCHAR_H
24276         #  ifdef __CYGWIN__
24277         #    include <stddef.h>
24278         #  endif
24279         #  include <wchar.h>
24280         #endif
24281         #ifdef HAVE_STDLIB_H
24282         #  include <stdlib.h>
24283         #endif
24284         #include <stdio.h>
24285
24286
24287
24288    typedef wchar_t ac__type_sizeof_;
24289 int
24290 main ()
24291 {
24292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24293 test_array [0] = 0
24294
24295   ;
24296   return 0;
24297 }
24298 _ACEOF
24299 rm -f conftest.$ac_objext
24300 if { (ac_try="$ac_compile"
24301 case "(($ac_try" in
24302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303   *) ac_try_echo=$ac_try;;
24304 esac
24305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306   (eval "$ac_compile") 2>conftest.er1
24307   ac_status=$?
24308   grep -v '^ *+' conftest.er1 >conftest.err
24309   rm -f conftest.er1
24310   cat conftest.err >&5
24311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312   (exit $ac_status); } && {
24313          test -z "$ac_c_werror_flag" ||
24314          test ! -s conftest.err
24315        } && test -s conftest.$ac_objext; then
24316   ac_hi=-1 ac_mid=-1
24317   while :; do
24318     cat >conftest.$ac_ext <<_ACEOF
24319 /* confdefs.h.  */
24320 _ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h.  */
24324
24325         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24326         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24327         #  error "fake wchar_t"
24328         #endif
24329         #ifdef HAVE_WCHAR_H
24330         #  ifdef __CYGWIN__
24331         #    include <stddef.h>
24332         #  endif
24333         #  include <wchar.h>
24334         #endif
24335         #ifdef HAVE_STDLIB_H
24336         #  include <stdlib.h>
24337         #endif
24338         #include <stdio.h>
24339
24340
24341
24342    typedef wchar_t ac__type_sizeof_;
24343 int
24344 main ()
24345 {
24346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24347 test_array [0] = 0
24348
24349   ;
24350   return 0;
24351 }
24352 _ACEOF
24353 rm -f conftest.$ac_objext
24354 if { (ac_try="$ac_compile"
24355 case "(($ac_try" in
24356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24357   *) ac_try_echo=$ac_try;;
24358 esac
24359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24360   (eval "$ac_compile") 2>conftest.er1
24361   ac_status=$?
24362   grep -v '^ *+' conftest.er1 >conftest.err
24363   rm -f conftest.er1
24364   cat conftest.err >&5
24365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366   (exit $ac_status); } && {
24367          test -z "$ac_c_werror_flag" ||
24368          test ! -s conftest.err
24369        } && test -s conftest.$ac_objext; then
24370   ac_lo=$ac_mid; break
24371 else
24372   echo "$as_me: failed program was:" >&5
24373 sed 's/^/| /' conftest.$ac_ext >&5
24374
24375         ac_hi=`expr '(' $ac_mid ')' - 1`
24376                         if test $ac_mid -le $ac_hi; then
24377                           ac_lo= ac_hi=
24378                           break
24379                         fi
24380                         ac_mid=`expr 2 '*' $ac_mid`
24381 fi
24382
24383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24384   done
24385 else
24386   echo "$as_me: failed program was:" >&5
24387 sed 's/^/| /' conftest.$ac_ext >&5
24388
24389         ac_lo= ac_hi=
24390 fi
24391
24392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24393 fi
24394
24395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24396 # Binary search between lo and hi bounds.
24397 while test "x$ac_lo" != "x$ac_hi"; do
24398   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24399   cat >conftest.$ac_ext <<_ACEOF
24400 /* confdefs.h.  */
24401 _ACEOF
24402 cat confdefs.h >>conftest.$ac_ext
24403 cat >>conftest.$ac_ext <<_ACEOF
24404 /* end confdefs.h.  */
24405
24406         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24407         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24408         #  error "fake wchar_t"
24409         #endif
24410         #ifdef HAVE_WCHAR_H
24411         #  ifdef __CYGWIN__
24412         #    include <stddef.h>
24413         #  endif
24414         #  include <wchar.h>
24415         #endif
24416         #ifdef HAVE_STDLIB_H
24417         #  include <stdlib.h>
24418         #endif
24419         #include <stdio.h>
24420
24421
24422
24423    typedef wchar_t ac__type_sizeof_;
24424 int
24425 main ()
24426 {
24427 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24428 test_array [0] = 0
24429
24430   ;
24431   return 0;
24432 }
24433 _ACEOF
24434 rm -f conftest.$ac_objext
24435 if { (ac_try="$ac_compile"
24436 case "(($ac_try" in
24437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438   *) ac_try_echo=$ac_try;;
24439 esac
24440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24441   (eval "$ac_compile") 2>conftest.er1
24442   ac_status=$?
24443   grep -v '^ *+' conftest.er1 >conftest.err
24444   rm -f conftest.er1
24445   cat conftest.err >&5
24446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447   (exit $ac_status); } && {
24448          test -z "$ac_c_werror_flag" ||
24449          test ! -s conftest.err
24450        } && test -s conftest.$ac_objext; then
24451   ac_hi=$ac_mid
24452 else
24453   echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24455
24456         ac_lo=`expr '(' $ac_mid ')' + 1`
24457 fi
24458
24459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24460 done
24461 case $ac_lo in
24462 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24463 '') if test "$ac_cv_type_wchar_t" = yes; then
24464      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24465 See \`config.log' for more details." >&5
24466 echo "$as_me: error: cannot compute sizeof (wchar_t)
24467 See \`config.log' for more details." >&2;}
24468    { (exit 77); exit 77; }; }
24469    else
24470      ac_cv_sizeof_wchar_t=0
24471    fi ;;
24472 esac
24473 else
24474   cat >conftest.$ac_ext <<_ACEOF
24475 /* confdefs.h.  */
24476 _ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h.  */
24480
24481         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24482         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24483         #  error "fake wchar_t"
24484         #endif
24485         #ifdef HAVE_WCHAR_H
24486         #  ifdef __CYGWIN__
24487         #    include <stddef.h>
24488         #  endif
24489         #  include <wchar.h>
24490         #endif
24491         #ifdef HAVE_STDLIB_H
24492         #  include <stdlib.h>
24493         #endif
24494         #include <stdio.h>
24495
24496
24497
24498    typedef wchar_t ac__type_sizeof_;
24499 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24500 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24501 #include <stdio.h>
24502 #include <stdlib.h>
24503 int
24504 main ()
24505 {
24506
24507   FILE *f = fopen ("conftest.val", "w");
24508   if (! f)
24509     return 1;
24510   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24511     {
24512       long int i = longval ();
24513       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24514         return 1;
24515       fprintf (f, "%ld\n", i);
24516     }
24517   else
24518     {
24519       unsigned long int i = ulongval ();
24520       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24521         return 1;
24522       fprintf (f, "%lu\n", i);
24523     }
24524   return ferror (f) || fclose (f) != 0;
24525
24526   ;
24527   return 0;
24528 }
24529 _ACEOF
24530 rm -f conftest$ac_exeext
24531 if { (ac_try="$ac_link"
24532 case "(($ac_try" in
24533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534   *) ac_try_echo=$ac_try;;
24535 esac
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537   (eval "$ac_link") 2>&5
24538   ac_status=$?
24539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24541   { (case "(($ac_try" in
24542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24543   *) ac_try_echo=$ac_try;;
24544 esac
24545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24546   (eval "$ac_try") 2>&5
24547   ac_status=$?
24548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549   (exit $ac_status); }; }; then
24550   ac_cv_sizeof_wchar_t=`cat conftest.val`
24551 else
24552   echo "$as_me: program exited with status $ac_status" >&5
24553 echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24555
24556 ( exit $ac_status )
24557 if test "$ac_cv_type_wchar_t" = yes; then
24558      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24559 See \`config.log' for more details." >&5
24560 echo "$as_me: error: cannot compute sizeof (wchar_t)
24561 See \`config.log' for more details." >&2;}
24562    { (exit 77); exit 77; }; }
24563    else
24564      ac_cv_sizeof_wchar_t=0
24565    fi
24566 fi
24567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24568 fi
24569 rm -f conftest.val
24570 fi
24571 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24572 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24573
24574
24575
24576 cat >>confdefs.h <<_ACEOF
24577 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24578 _ACEOF
24579
24580
24581 if test "$ac_cv_sizeof_wchar_t" = 0; then
24582     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24583 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24584    { (exit 1); exit 1; }; }
24585 fi
24586 cat >>confdefs.h <<\_ACEOF
24587 #define wxUSE_WCHAR_T 1
24588 _ACEOF
24589
24590
24591 { echo "$as_me:$LINENO: checking for va_copy" >&5
24592 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24593 if test "${wx_cv_func_va_copy+set}" = set; then
24594   echo $ECHO_N "(cached) $ECHO_C" >&6
24595 else
24596
24597         ac_ext=cpp
24598 ac_cpp='$CXXCPP $CPPFLAGS'
24599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24602
24603         cat >conftest.$ac_ext <<_ACEOF
24604
24605             /* confdefs.h.  */
24606 _ACEOF
24607 cat confdefs.h >>conftest.$ac_ext
24608 cat >>conftest.$ac_ext <<_ACEOF
24609 /* end confdefs.h.  */
24610
24611                 #include <stdarg.h>
24612                 void foo(char *f, ...)
24613                 {
24614                     va_list ap1, ap2;
24615                     va_start(ap1, f);
24616                     va_copy(ap2, ap1);
24617                     va_end(ap2);
24618                     va_end(ap1);
24619                 }
24620                 int main()
24621                 {
24622                     foo("hi", 17);
24623                     return 0;
24624                 }
24625
24626 _ACEOF
24627 rm -f conftest.$ac_objext conftest$ac_exeext
24628 if { (ac_try="$ac_link"
24629 case "(($ac_try" in
24630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24631   *) ac_try_echo=$ac_try;;
24632 esac
24633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24634   (eval "$ac_link") 2>conftest.er1
24635   ac_status=$?
24636   grep -v '^ *+' conftest.er1 >conftest.err
24637   rm -f conftest.er1
24638   cat conftest.err >&5
24639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640   (exit $ac_status); } && {
24641          test -z "$ac_cxx_werror_flag" ||
24642          test ! -s conftest.err
24643        } && test -s conftest$ac_exeext &&
24644        $as_test_x conftest$ac_exeext; then
24645   wx_cv_func_va_copy=yes
24646 else
24647   echo "$as_me: failed program was:" >&5
24648 sed 's/^/| /' conftest.$ac_ext >&5
24649
24650         wx_cv_func_va_copy=no
24651
24652 fi
24653
24654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24655       conftest$ac_exeext conftest.$ac_ext
24656         ac_ext=c
24657 ac_cpp='$CPP $CPPFLAGS'
24658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24661
24662
24663
24664 fi
24665 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24666 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24667
24668 if test $wx_cv_func_va_copy = "yes"; then
24669     cat >>confdefs.h <<\_ACEOF
24670 #define HAVE_VA_COPY 1
24671 _ACEOF
24672
24673 else
24674         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24675 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24676 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24677   echo $ECHO_N "(cached) $ECHO_C" >&6
24678 else
24679
24680             if test "$cross_compiling" = yes; then
24681                   wx_cv_type_va_list_lvalue=yes
24682
24683 else
24684   cat >conftest.$ac_ext <<_ACEOF
24685
24686                 /* confdefs.h.  */
24687 _ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h.  */
24691
24692                     #include <stdarg.h>
24693                     int foo(char *f, ...)
24694                     {
24695                         va_list ap1, ap2;
24696                         va_start(ap1, f);
24697                         ap2 = ap1;
24698                         if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24699                             return 1;
24700                         va_end(ap2);
24701                         va_end(ap1);
24702                         return 0;
24703                     }
24704                     int main()
24705                     {
24706                         return foo("hi", 17);
24707                     }
24708
24709 _ACEOF
24710 rm -f conftest$ac_exeext
24711 if { (ac_try="$ac_link"
24712 case "(($ac_try" in
24713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714   *) ac_try_echo=$ac_try;;
24715 esac
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717   (eval "$ac_link") 2>&5
24718   ac_status=$?
24719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24721   { (case "(($ac_try" in
24722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723   *) ac_try_echo=$ac_try;;
24724 esac
24725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726   (eval "$ac_try") 2>&5
24727   ac_status=$?
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); }; }; then
24730   wx_cv_type_va_list_lvalue=yes
24731 else
24732   echo "$as_me: program exited with status $ac_status" >&5
24733 echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24735
24736 ( exit $ac_status )
24737 wx_cv_type_va_list_lvalue=no
24738 fi
24739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24740 fi
24741
24742
24743
24744
24745 fi
24746 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24747 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24748
24749     if test $wx_cv_type_va_list_lvalue != "yes"; then
24750                         cat >>confdefs.h <<\_ACEOF
24751 #define VA_LIST_IS_ARRAY 1
24752 _ACEOF
24753
24754     fi
24755 fi
24756
24757 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24758
24759 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24760 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24761 if test "${wx_cv_have_variadic_macros+set}" = set; then
24762   echo $ECHO_N "(cached) $ECHO_C" >&6
24763 else
24764
24765                         ac_ext=cpp
24766 ac_cpp='$CXXCPP $CPPFLAGS'
24767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24770
24771         cat >conftest.$ac_ext <<_ACEOF
24772
24773             /* confdefs.h.  */
24774 _ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h.  */
24778
24779                     #include <stdio.h>
24780                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24781
24782 int
24783 main ()
24784 {
24785
24786                     test("%s %d %p", "test", 1, 0);
24787
24788
24789   ;
24790   return 0;
24791 }
24792 _ACEOF
24793 rm -f conftest.$ac_objext
24794 if { (ac_try="$ac_compile"
24795 case "(($ac_try" in
24796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797   *) ac_try_echo=$ac_try;;
24798 esac
24799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800   (eval "$ac_compile") 2>conftest.er1
24801   ac_status=$?
24802   grep -v '^ *+' conftest.er1 >conftest.err
24803   rm -f conftest.er1
24804   cat conftest.err >&5
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); } && {
24807          test -z "$ac_cxx_werror_flag" ||
24808          test ! -s conftest.err
24809        } && test -s conftest.$ac_objext; then
24810   wx_cv_have_variadic_macros=yes
24811 else
24812   echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24814
24815         wx_cv_have_variadic_macros=no
24816
24817 fi
24818
24819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24820         ac_ext=c
24821 ac_cpp='$CPP $CPPFLAGS'
24822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24825
24826
24827
24828 fi
24829 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24830 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24831
24832 if test $wx_cv_have_variadic_macros = "yes"; then
24833     cat >>confdefs.h <<\_ACEOF
24834 #define HAVE_VARIADIC_MACROS 1
24835 _ACEOF
24836
24837 fi
24838
24839 fi
24840
24841 LARGEFILE_CPPFLAGS=
24842 # Check whether --enable-largefile was given.
24843 if test "${enable_largefile+set}" = set; then
24844   enableval=$enable_largefile;
24845 fi
24846
24847 if test "$enable_largefile" != no; then
24848             wx_largefile=no
24849
24850     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24851 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24852 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24853   echo $ECHO_N "(cached) $ECHO_C" >&6
24854 else
24855
24856           cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h.  */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h.  */
24862 #define _FILE_OFFSET_BITS 64
24863                           #include <sys/types.h>
24864 int
24865 main ()
24866 {
24867 typedef struct {
24868     unsigned int field: sizeof(off_t) == 8;
24869 } wxlf;
24870
24871   ;
24872   return 0;
24873 }
24874 _ACEOF
24875 rm -f conftest.$ac_objext
24876 if { (ac_try="$ac_compile"
24877 case "(($ac_try" in
24878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24879   *) ac_try_echo=$ac_try;;
24880 esac
24881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24882   (eval "$ac_compile") 2>conftest.er1
24883   ac_status=$?
24884   grep -v '^ *+' conftest.er1 >conftest.err
24885   rm -f conftest.er1
24886   cat conftest.err >&5
24887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888   (exit $ac_status); } && {
24889          test -z "$ac_c_werror_flag" ||
24890          test ! -s conftest.err
24891        } && test -s conftest.$ac_objext; then
24892   ac_cv_sys_file_offset_bits=64
24893 else
24894   echo "$as_me: failed program was:" >&5
24895 sed 's/^/| /' conftest.$ac_ext >&5
24896
24897         ac_cv_sys_file_offset_bits=no
24898 fi
24899
24900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24901
24902
24903 fi
24904 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24905 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24906
24907     if test "$ac_cv_sys_file_offset_bits" != no; then
24908         wx_largefile=yes
24909         cat >>confdefs.h <<_ACEOF
24910 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24911 _ACEOF
24912
24913     fi
24914
24915     if test "x$wx_largefile" != "xyes"; then
24916
24917     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24918 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24919 if test "${ac_cv_sys_large_files+set}" = set; then
24920   echo $ECHO_N "(cached) $ECHO_C" >&6
24921 else
24922
24923           cat >conftest.$ac_ext <<_ACEOF
24924 /* confdefs.h.  */
24925 _ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h.  */
24929 #define _LARGE_FILES 1
24930                           #include <sys/types.h>
24931 int
24932 main ()
24933 {
24934 typedef struct {
24935     unsigned int field: sizeof(off_t) == 8;
24936 } wxlf;
24937
24938   ;
24939   return 0;
24940 }
24941 _ACEOF
24942 rm -f conftest.$ac_objext
24943 if { (ac_try="$ac_compile"
24944 case "(($ac_try" in
24945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24946   *) ac_try_echo=$ac_try;;
24947 esac
24948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24949   (eval "$ac_compile") 2>conftest.er1
24950   ac_status=$?
24951   grep -v '^ *+' conftest.er1 >conftest.err
24952   rm -f conftest.er1
24953   cat conftest.err >&5
24954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955   (exit $ac_status); } && {
24956          test -z "$ac_c_werror_flag" ||
24957          test ! -s conftest.err
24958        } && test -s conftest.$ac_objext; then
24959   ac_cv_sys_large_files=1
24960 else
24961   echo "$as_me: failed program was:" >&5
24962 sed 's/^/| /' conftest.$ac_ext >&5
24963
24964         ac_cv_sys_large_files=no
24965 fi
24966
24967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24968
24969
24970 fi
24971 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24972 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24973
24974     if test "$ac_cv_sys_large_files" != no; then
24975         wx_largefile=yes
24976         cat >>confdefs.h <<_ACEOF
24977 #define _LARGE_FILES $ac_cv_sys_large_files
24978 _ACEOF
24979
24980     fi
24981
24982     fi
24983
24984     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24985 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24986     if test "x$wx_largefile" = "xyes"; then
24987         cat >>confdefs.h <<\_ACEOF
24988 #define HAVE_LARGEFILE_SUPPORT 1
24989 _ACEOF
24990
24991     fi
24992     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24993 echo "${ECHO_T}$wx_largefile" >&6; }
24994 fi
24995
24996 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24997     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24998 elif test "$ac_cv_sys_large_files" = 1; then
24999     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
25000 fi
25001
25002 if test -n "$LARGEFILE_CPPFLAGS"; then
25003     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
25004
25005                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
25006         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
25007 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
25008 if test "${wx_cv_STDC_EXT_required+set}" = set; then
25009   echo $ECHO_N "(cached) $ECHO_C" >&6
25010 else
25011
25012                 ac_ext=cpp
25013 ac_cpp='$CXXCPP $CPPFLAGS'
25014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25017
25018                 cat >conftest.$ac_ext <<_ACEOF
25019 /* confdefs.h.  */
25020 _ACEOF
25021 cat confdefs.h >>conftest.$ac_ext
25022 cat >>conftest.$ac_ext <<_ACEOF
25023 /* end confdefs.h.  */
25024
25025 int
25026 main ()
25027 {
25028
25029                         #ifndef __STDC_EXT__
25030                             choke me
25031                         #endif
25032
25033   ;
25034   return 0;
25035 }
25036 _ACEOF
25037 rm -f conftest.$ac_objext
25038 if { (ac_try="$ac_compile"
25039 case "(($ac_try" in
25040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041   *) ac_try_echo=$ac_try;;
25042 esac
25043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25044   (eval "$ac_compile") 2>conftest.er1
25045   ac_status=$?
25046   grep -v '^ *+' conftest.er1 >conftest.err
25047   rm -f conftest.er1
25048   cat conftest.err >&5
25049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050   (exit $ac_status); } && {
25051          test -z "$ac_cxx_werror_flag" ||
25052          test ! -s conftest.err
25053        } && test -s conftest.$ac_objext; then
25054   wx_cv_STDC_EXT_required=no
25055 else
25056   echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25058
25059         wx_cv_STDC_EXT_required=yes
25060
25061 fi
25062
25063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25064                 ac_ext=c
25065 ac_cpp='$CPP $CPPFLAGS'
25066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25069
25070
25071
25072 fi
25073 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
25074 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
25075         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
25076             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
25077         fi
25078     fi
25079 fi
25080
25081 ac_ext=cpp
25082 ac_cpp='$CXXCPP $CPPFLAGS'
25083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25086
25087 old_CPPFLAGS="$CPPFLAGS"
25088 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
25089 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25090 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
25091 if test "${ac_cv_sys_largefile_source+set}" = set; then
25092   echo $ECHO_N "(cached) $ECHO_C" >&6
25093 else
25094   while :; do
25095   cat >conftest.$ac_ext <<_ACEOF
25096 /* confdefs.h.  */
25097 _ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h.  */
25101 #include <sys/types.h> /* for off_t */
25102      #include <stdio.h>
25103 int
25104 main ()
25105 {
25106 int (*fp) (FILE *, off_t, int) = fseeko;
25107      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25108   ;
25109   return 0;
25110 }
25111 _ACEOF
25112 rm -f conftest.$ac_objext conftest$ac_exeext
25113 if { (ac_try="$ac_link"
25114 case "(($ac_try" in
25115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25116   *) ac_try_echo=$ac_try;;
25117 esac
25118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119   (eval "$ac_link") 2>conftest.er1
25120   ac_status=$?
25121   grep -v '^ *+' conftest.er1 >conftest.err
25122   rm -f conftest.er1
25123   cat conftest.err >&5
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); } && {
25126          test -z "$ac_cxx_werror_flag" ||
25127          test ! -s conftest.err
25128        } && test -s conftest$ac_exeext &&
25129        $as_test_x conftest$ac_exeext; then
25130   ac_cv_sys_largefile_source=no; break
25131 else
25132   echo "$as_me: failed program was:" >&5
25133 sed 's/^/| /' conftest.$ac_ext >&5
25134
25135
25136 fi
25137
25138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25139       conftest$ac_exeext conftest.$ac_ext
25140   cat >conftest.$ac_ext <<_ACEOF
25141 /* confdefs.h.  */
25142 _ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h.  */
25146 #define _LARGEFILE_SOURCE 1
25147 #include <sys/types.h> /* for off_t */
25148      #include <stdio.h>
25149 int
25150 main ()
25151 {
25152 int (*fp) (FILE *, off_t, int) = fseeko;
25153      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25154   ;
25155   return 0;
25156 }
25157 _ACEOF
25158 rm -f conftest.$ac_objext conftest$ac_exeext
25159 if { (ac_try="$ac_link"
25160 case "(($ac_try" in
25161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162   *) ac_try_echo=$ac_try;;
25163 esac
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165   (eval "$ac_link") 2>conftest.er1
25166   ac_status=$?
25167   grep -v '^ *+' conftest.er1 >conftest.err
25168   rm -f conftest.er1
25169   cat conftest.err >&5
25170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); } && {
25172          test -z "$ac_cxx_werror_flag" ||
25173          test ! -s conftest.err
25174        } && test -s conftest$ac_exeext &&
25175        $as_test_x conftest$ac_exeext; then
25176   ac_cv_sys_largefile_source=1; break
25177 else
25178   echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25180
25181
25182 fi
25183
25184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25185       conftest$ac_exeext conftest.$ac_ext
25186   ac_cv_sys_largefile_source=unknown
25187   break
25188 done
25189 fi
25190 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25191 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25192 case $ac_cv_sys_largefile_source in #(
25193   no | unknown) ;;
25194   *)
25195 cat >>confdefs.h <<_ACEOF
25196 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25197 _ACEOF
25198 ;;
25199 esac
25200 rm -f conftest*
25201
25202 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25203 # in glibc 2.1.3, but that breaks too many other things.
25204 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25205 if test $ac_cv_sys_largefile_source != unknown; then
25206
25207 cat >>confdefs.h <<\_ACEOF
25208 #define HAVE_FSEEKO 1
25209 _ACEOF
25210
25211 fi
25212
25213 CPPFLAGS="$old_CPPFLAGS"
25214 ac_ext=c
25215 ac_cpp='$CPP $CPPFLAGS'
25216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25219
25220 if test "$ac_cv_sys_largefile_source" != no; then
25221     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25222 fi
25223
25224 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25225 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25226 if test "${ac_cv_c_bigendian+set}" = set; then
25227   echo $ECHO_N "(cached) $ECHO_C" >&6
25228 else
25229   ac_cv_c_bigendian=unknown
25230 # See if sys/param.h defines the BYTE_ORDER macro.
25231 cat >conftest.$ac_ext <<_ACEOF
25232 /* confdefs.h.  */
25233 _ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h.  */
25237 #include <sys/types.h>
25238 #include <sys/param.h>
25239 int
25240 main ()
25241 {
25242
25243 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25244  bogus endian macros
25245 #endif
25246   ;
25247   return 0;
25248 }
25249 _ACEOF
25250 rm -f conftest.$ac_objext
25251 if { (ac_try="$ac_compile"
25252 case "(($ac_try" in
25253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25254   *) ac_try_echo=$ac_try;;
25255 esac
25256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25257   (eval "$ac_compile") 2>conftest.er1
25258   ac_status=$?
25259   grep -v '^ *+' conftest.er1 >conftest.err
25260   rm -f conftest.er1
25261   cat conftest.err >&5
25262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263   (exit $ac_status); } && {
25264          test -z "$ac_c_werror_flag" ||
25265          test ! -s conftest.err
25266        } && test -s conftest.$ac_objext; then
25267   # It does; now see whether it defined to BIG_ENDIAN or not.
25268 cat >conftest.$ac_ext <<_ACEOF
25269 /* confdefs.h.  */
25270 _ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h.  */
25274 #include <sys/types.h>
25275 #include <sys/param.h>
25276 int
25277 main ()
25278 {
25279
25280 #if BYTE_ORDER != BIG_ENDIAN
25281  not big endian
25282 #endif
25283   ;
25284   return 0;
25285 }
25286 _ACEOF
25287 rm -f conftest.$ac_objext
25288 if { (ac_try="$ac_compile"
25289 case "(($ac_try" in
25290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25291   *) ac_try_echo=$ac_try;;
25292 esac
25293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25294   (eval "$ac_compile") 2>conftest.er1
25295   ac_status=$?
25296   grep -v '^ *+' conftest.er1 >conftest.err
25297   rm -f conftest.er1
25298   cat conftest.err >&5
25299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300   (exit $ac_status); } && {
25301          test -z "$ac_c_werror_flag" ||
25302          test ! -s conftest.err
25303        } && test -s conftest.$ac_objext; then
25304   ac_cv_c_bigendian=yes
25305 else
25306   echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25308
25309         ac_cv_c_bigendian=no
25310 fi
25311
25312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25313 else
25314   echo "$as_me: failed program was:" >&5
25315 sed 's/^/| /' conftest.$ac_ext >&5
25316
25317
25318 fi
25319
25320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25321 if test $ac_cv_c_bigendian = unknown; then
25322 if test "$cross_compiling" = yes; then
25323   ac_cv_c_bigendian=unknown
25324 else
25325   cat >conftest.$ac_ext <<_ACEOF
25326 /* confdefs.h.  */
25327 _ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h.  */
25331 main () {
25332   /* Are we little or big endian?  From Harbison&Steele.  */
25333   union
25334   {
25335     long l;
25336     char c[sizeof (long)];
25337   } u;
25338   u.l = 1;
25339   exit (u.c[sizeof (long) - 1] == 1);
25340 }
25341 _ACEOF
25342 rm -f conftest$ac_exeext
25343 if { (ac_try="$ac_link"
25344 case "(($ac_try" in
25345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346   *) ac_try_echo=$ac_try;;
25347 esac
25348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25349   (eval "$ac_link") 2>&5
25350   ac_status=$?
25351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25353   { (case "(($ac_try" in
25354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355   *) ac_try_echo=$ac_try;;
25356 esac
25357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25358   (eval "$ac_try") 2>&5
25359   ac_status=$?
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); }; }; then
25362   ac_cv_c_bigendian=no
25363 else
25364   echo "$as_me: program exited with status $ac_status" >&5
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368 ( exit $ac_status )
25369 ac_cv_c_bigendian=yes
25370 fi
25371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25372 fi
25373
25374
25375 fi
25376 fi
25377 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25378 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25379 if test $ac_cv_c_bigendian = unknown; then
25380   { 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
25381 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;}
25382 fi
25383 if test $ac_cv_c_bigendian = yes; then
25384   cat >>confdefs.h <<\_ACEOF
25385 #define WORDS_BIGENDIAN 1
25386 _ACEOF
25387
25388 fi
25389
25390
25391
25392
25393     ac_ext=cpp
25394 ac_cpp='$CXXCPP $CPPFLAGS'
25395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25398
25399
25400
25401 for ac_header in iostream
25402 do
25403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25407   echo $ECHO_N "(cached) $ECHO_C" >&6
25408 else
25409   cat >conftest.$ac_ext <<_ACEOF
25410 /* confdefs.h.  */
25411 _ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h.  */
25415
25416
25417 #include <$ac_header>
25418 _ACEOF
25419 rm -f conftest.$ac_objext
25420 if { (ac_try="$ac_compile"
25421 case "(($ac_try" in
25422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423   *) ac_try_echo=$ac_try;;
25424 esac
25425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25426   (eval "$ac_compile") 2>conftest.er1
25427   ac_status=$?
25428   grep -v '^ *+' conftest.er1 >conftest.err
25429   rm -f conftest.er1
25430   cat conftest.err >&5
25431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432   (exit $ac_status); } && {
25433          test -z "$ac_cxx_werror_flag" ||
25434          test ! -s conftest.err
25435        } && test -s conftest.$ac_objext; then
25436   eval "$as_ac_Header=yes"
25437 else
25438   echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25440
25441         eval "$as_ac_Header=no"
25442 fi
25443
25444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25445 fi
25446 ac_res=`eval echo '${'$as_ac_Header'}'`
25447                { echo "$as_me:$LINENO: result: $ac_res" >&5
25448 echo "${ECHO_T}$ac_res" >&6; }
25449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25450   cat >>confdefs.h <<_ACEOF
25451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25452 _ACEOF
25453
25454 fi
25455
25456 done
25457
25458
25459     if test "$ac_cv_header_iostream" = "yes" ; then
25460       :
25461     else
25462       cat >>confdefs.h <<\_ACEOF
25463 #define wxUSE_IOSTREAMH 1
25464 _ACEOF
25465
25466     fi
25467
25468     ac_ext=c
25469 ac_cpp='$CPP $CPPFLAGS'
25470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25473
25474
25475
25476
25477   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25478 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25479 if test "${wx_cv_explicit+set}" = set; then
25480   echo $ECHO_N "(cached) $ECHO_C" >&6
25481 else
25482
25483
25484     ac_ext=cpp
25485 ac_cpp='$CXXCPP $CPPFLAGS'
25486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25489
25490
25491             cat >conftest.$ac_ext <<_ACEOF
25492 /* confdefs.h.  */
25493 _ACEOF
25494 cat confdefs.h >>conftest.$ac_ext
25495 cat >>conftest.$ac_ext <<_ACEOF
25496 /* end confdefs.h.  */
25497
25498         class Foo { public: explicit Foo(int) {} };
25499
25500 int
25501 main ()
25502 {
25503
25504         return 0;
25505
25506   ;
25507   return 0;
25508 }
25509 _ACEOF
25510 rm -f conftest.$ac_objext
25511 if { (ac_try="$ac_compile"
25512 case "(($ac_try" in
25513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25514   *) ac_try_echo=$ac_try;;
25515 esac
25516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25517   (eval "$ac_compile") 2>conftest.er1
25518   ac_status=$?
25519   grep -v '^ *+' conftest.er1 >conftest.err
25520   rm -f conftest.er1
25521   cat conftest.err >&5
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); } && {
25524          test -z "$ac_cxx_werror_flag" ||
25525          test ! -s conftest.err
25526        } && test -s conftest.$ac_objext; then
25527
25528         cat >conftest.$ac_ext <<_ACEOF
25529 /* confdefs.h.  */
25530 _ACEOF
25531 cat confdefs.h >>conftest.$ac_ext
25532 cat >>conftest.$ac_ext <<_ACEOF
25533 /* end confdefs.h.  */
25534
25535                 class Foo { public: explicit Foo(int) {} };
25536                 static void TakeFoo(const Foo& foo) { }
25537
25538 int
25539 main ()
25540 {
25541
25542                 TakeFoo(17);
25543                 return 0;
25544
25545   ;
25546   return 0;
25547 }
25548 _ACEOF
25549 rm -f conftest.$ac_objext
25550 if { (ac_try="$ac_compile"
25551 case "(($ac_try" in
25552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25553   *) ac_try_echo=$ac_try;;
25554 esac
25555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25556   (eval "$ac_compile") 2>conftest.er1
25557   ac_status=$?
25558   grep -v '^ *+' conftest.er1 >conftest.err
25559   rm -f conftest.er1
25560   cat conftest.err >&5
25561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562   (exit $ac_status); } && {
25563          test -z "$ac_cxx_werror_flag" ||
25564          test ! -s conftest.err
25565        } && test -s conftest.$ac_objext; then
25566   wx_cv_explicit=no
25567 else
25568   echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25570
25571         wx_cv_explicit=yes
25572
25573 fi
25574
25575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25576
25577 else
25578   echo "$as_me: failed program was:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25580
25581         wx_cv_explicit=no
25582
25583 fi
25584
25585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25586
25587     ac_ext=c
25588 ac_cpp='$CPP $CPPFLAGS'
25589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25592
25593
25594 fi
25595 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25596 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25597
25598   if test "$wx_cv_explicit" = "yes"; then
25599     cat >>confdefs.h <<\_ACEOF
25600 #define HAVE_EXPLICIT 1
25601 _ACEOF
25602
25603   fi
25604
25605
25606 if test "x$SUNCXX" = xyes; then
25607     CXXFLAGS="-features=tmplife $CXXFLAGS"
25608 fi
25609
25610 if test "x$SUNCC" = xyes; then
25611     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25612 fi
25613
25614 if test "x$SGICC" = "xyes"; then
25615     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25616 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25617 if test "${wx_cv_prog_sgicc744+set}" = set; then
25618   echo $ECHO_N "(cached) $ECHO_C" >&6
25619 else
25620
25621             cat >conftest.$ac_ext <<_ACEOF
25622 /* confdefs.h.  */
25623 _ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h.  */
25627
25628 int
25629 main ()
25630 {
25631
25632                     #if _SGI_COMPILER_VERSION >= 744
25633                     chock me: mipsPro is 7.4.4 or later
25634                     #endif
25635
25636   ;
25637   return 0;
25638 }
25639 _ACEOF
25640 rm -f conftest.$ac_objext
25641 if { (ac_try="$ac_compile"
25642 case "(($ac_try" in
25643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25644   *) ac_try_echo=$ac_try;;
25645 esac
25646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25647   (eval "$ac_compile") 2>conftest.er1
25648   ac_status=$?
25649   grep -v '^ *+' conftest.er1 >conftest.err
25650   rm -f conftest.er1
25651   cat conftest.err >&5
25652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653   (exit $ac_status); } && {
25654          test -z "$ac_c_werror_flag" ||
25655          test ! -s conftest.err
25656        } && test -s conftest.$ac_objext; then
25657   wx_cv_prog_sgicc744=no
25658 else
25659   echo "$as_me: failed program was:" >&5
25660 sed 's/^/| /' conftest.$ac_ext >&5
25661
25662         wx_cv_prog_sgicc744=yes
25663
25664 fi
25665
25666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25667
25668
25669 fi
25670 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25671 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25672
25673     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25674         CFLAGS="-woff 3970 $CFLAGS"
25675     fi
25676 fi
25677 if test "x$SGICXX" = "xyes"; then
25678     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25679 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25680 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25681   echo $ECHO_N "(cached) $ECHO_C" >&6
25682 else
25683
25684             ac_ext=cpp
25685 ac_cpp='$CXXCPP $CPPFLAGS'
25686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25689
25690             cat >conftest.$ac_ext <<_ACEOF
25691 /* confdefs.h.  */
25692 _ACEOF
25693 cat confdefs.h >>conftest.$ac_ext
25694 cat >>conftest.$ac_ext <<_ACEOF
25695 /* end confdefs.h.  */
25696
25697 int
25698 main ()
25699 {
25700
25701                     #if _SGI_COMPILER_VERSION >= 744
25702                     chock me: mipsPro is 7.4.4 or later
25703                     #endif
25704
25705   ;
25706   return 0;
25707 }
25708 _ACEOF
25709 rm -f conftest.$ac_objext
25710 if { (ac_try="$ac_compile"
25711 case "(($ac_try" in
25712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25713   *) ac_try_echo=$ac_try;;
25714 esac
25715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25716   (eval "$ac_compile") 2>conftest.er1
25717   ac_status=$?
25718   grep -v '^ *+' conftest.er1 >conftest.err
25719   rm -f conftest.er1
25720   cat conftest.err >&5
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); } && {
25723          test -z "$ac_cxx_werror_flag" ||
25724          test ! -s conftest.err
25725        } && test -s conftest.$ac_objext; then
25726   wx_cv_prog_sgicxx744=no
25727 else
25728   echo "$as_me: failed program was:" >&5
25729 sed 's/^/| /' conftest.$ac_ext >&5
25730
25731         wx_cv_prog_sgicxx744=yes
25732
25733 fi
25734
25735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25736             ac_ext=c
25737 ac_cpp='$CPP $CPPFLAGS'
25738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25741
25742
25743
25744 fi
25745 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25746 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25747
25748     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25749         CXXFLAGS="-woff 3970 $CXXFLAGS"
25750     fi
25751 fi
25752
25753 if test "x$HPCC" = "xyes"; then
25754                     CFLAGS="+W 2011,2450 $CFLAGS"
25755 fi
25756 if test "x$HPCXX" = "xyes"; then
25757                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25758 fi
25759
25760 if test "x$COMPAQCXX" = "xyes"; then
25761                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25762 fi
25763
25764 ac_ext=cpp
25765 ac_cpp='$CXXCPP $CPPFLAGS'
25766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25769
25770
25771 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25772     if test "$wxUSE_UNICODE" = "yes"; then
25773         std_string="std::wstring"
25774         char_type="wchar_t"
25775     else
25776         std_string="std::string"
25777         char_type="char"
25778     fi
25779
25780         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25781 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25782 if test "${wx_cv_class_stdstring+set}" = set; then
25783   echo $ECHO_N "(cached) $ECHO_C" >&6
25784 else
25785
25786             cat >conftest.$ac_ext <<_ACEOF
25787 /* confdefs.h.  */
25788 _ACEOF
25789 cat confdefs.h >>conftest.$ac_ext
25790 cat >>conftest.$ac_ext <<_ACEOF
25791 /* end confdefs.h.  */
25792 #include <string>
25793 int
25794 main ()
25795 {
25796 $std_string foo;
25797   ;
25798   return 0;
25799 }
25800 _ACEOF
25801 rm -f conftest.$ac_objext
25802 if { (ac_try="$ac_compile"
25803 case "(($ac_try" in
25804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25805   *) ac_try_echo=$ac_try;;
25806 esac
25807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25808   (eval "$ac_compile") 2>conftest.er1
25809   ac_status=$?
25810   grep -v '^ *+' conftest.er1 >conftest.err
25811   rm -f conftest.er1
25812   cat conftest.err >&5
25813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814   (exit $ac_status); } && {
25815          test -z "$ac_cxx_werror_flag" ||
25816          test ! -s conftest.err
25817        } && test -s conftest.$ac_objext; then
25818   wx_cv_class_stdstring=yes
25819 else
25820   echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25822
25823         wx_cv_class_stdstring=no
25824
25825 fi
25826
25827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25828
25829
25830 fi
25831 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25832 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25833
25834     if test "$wx_cv_class_stdstring" = yes; then
25835         if test "$wxUSE_UNICODE" = "yes"; then
25836             cat >>confdefs.h <<\_ACEOF
25837 #define HAVE_STD_WSTRING 1
25838 _ACEOF
25839
25840         fi
25841                     else
25842         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25843 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25844 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25845   echo $ECHO_N "(cached) $ECHO_C" >&6
25846 else
25847
25848                 cat >conftest.$ac_ext <<_ACEOF
25849 /* confdefs.h.  */
25850 _ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h.  */
25854
25855                     #ifdef HAVE_WCHAR_H
25856                     #  ifdef __CYGWIN__
25857                     #    include <stddef.h>
25858                     #  endif
25859                     #  include <wchar.h>
25860                     #endif
25861                     #ifdef HAVE_STDLIB_H
25862                     #  include <stdlib.h>
25863                     #endif
25864                     #include <stdio.h>
25865                     #include <string>
25866
25867 int
25868 main ()
25869 {
25870 std::basic_string<$char_type> foo;
25871                      const $char_type* dummy = foo.c_str();
25872   ;
25873   return 0;
25874 }
25875 _ACEOF
25876 rm -f conftest.$ac_objext
25877 if { (ac_try="$ac_compile"
25878 case "(($ac_try" in
25879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25880   *) ac_try_echo=$ac_try;;
25881 esac
25882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25883   (eval "$ac_compile") 2>conftest.er1
25884   ac_status=$?
25885   grep -v '^ *+' conftest.er1 >conftest.err
25886   rm -f conftest.er1
25887   cat conftest.err >&5
25888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889   (exit $ac_status); } && {
25890          test -z "$ac_cxx_werror_flag" ||
25891          test ! -s conftest.err
25892        } && test -s conftest.$ac_objext; then
25893   wx_cv_class_stdbasicstring=yes
25894 else
25895   echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25897
25898         wx_cv_class_stdbasicstring=no
25899
25900 fi
25901
25902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25903
25904
25905 fi
25906 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25907 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25908
25909         if test "$wx_cv_class_stdbasicstring" != yes; then
25910             if test "$wxUSE_STL" = "yes"; then
25911                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25912 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25913    { (exit 1); exit 1; }; }
25914             elif test "$wxUSE_STD_STRING" = "yes"; then
25915                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25916 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25917    { (exit 1); exit 1; }; }
25918             else
25919                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25920 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25921                 wxUSE_STD_STRING=no
25922             fi
25923         fi
25924     fi
25925 fi
25926
25927 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25928     { echo "$as_me:$LINENO: checking for std::istream" >&5
25929 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25930 if test "${ac_cv_type_std__istream+set}" = set; then
25931   echo $ECHO_N "(cached) $ECHO_C" >&6
25932 else
25933   cat >conftest.$ac_ext <<_ACEOF
25934 /* confdefs.h.  */
25935 _ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h.  */
25939 #include <iostream>
25940
25941 typedef std::istream ac__type_new_;
25942 int
25943 main ()
25944 {
25945 if ((ac__type_new_ *) 0)
25946   return 0;
25947 if (sizeof (ac__type_new_))
25948   return 0;
25949   ;
25950   return 0;
25951 }
25952 _ACEOF
25953 rm -f conftest.$ac_objext
25954 if { (ac_try="$ac_compile"
25955 case "(($ac_try" in
25956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25957   *) ac_try_echo=$ac_try;;
25958 esac
25959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25960   (eval "$ac_compile") 2>conftest.er1
25961   ac_status=$?
25962   grep -v '^ *+' conftest.er1 >conftest.err
25963   rm -f conftest.er1
25964   cat conftest.err >&5
25965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966   (exit $ac_status); } && {
25967          test -z "$ac_cxx_werror_flag" ||
25968          test ! -s conftest.err
25969        } && test -s conftest.$ac_objext; then
25970   ac_cv_type_std__istream=yes
25971 else
25972   echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25974
25975         ac_cv_type_std__istream=no
25976 fi
25977
25978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25979 fi
25980 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25981 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25982 if test $ac_cv_type_std__istream = yes; then
25983
25984 cat >>confdefs.h <<_ACEOF
25985 #define HAVE_STD__ISTREAM 1
25986 _ACEOF
25987
25988
25989 else
25990   wxUSE_STD_IOSTREAM=no
25991 fi
25992 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25993 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25994 if test "${ac_cv_type_std__ostream+set}" = set; then
25995   echo $ECHO_N "(cached) $ECHO_C" >&6
25996 else
25997   cat >conftest.$ac_ext <<_ACEOF
25998 /* confdefs.h.  */
25999 _ACEOF
26000 cat confdefs.h >>conftest.$ac_ext
26001 cat >>conftest.$ac_ext <<_ACEOF
26002 /* end confdefs.h.  */
26003 #include <iostream>
26004
26005 typedef std::ostream ac__type_new_;
26006 int
26007 main ()
26008 {
26009 if ((ac__type_new_ *) 0)
26010   return 0;
26011 if (sizeof (ac__type_new_))
26012   return 0;
26013   ;
26014   return 0;
26015 }
26016 _ACEOF
26017 rm -f conftest.$ac_objext
26018 if { (ac_try="$ac_compile"
26019 case "(($ac_try" in
26020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021   *) ac_try_echo=$ac_try;;
26022 esac
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024   (eval "$ac_compile") 2>conftest.er1
26025   ac_status=$?
26026   grep -v '^ *+' conftest.er1 >conftest.err
26027   rm -f conftest.er1
26028   cat conftest.err >&5
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); } && {
26031          test -z "$ac_cxx_werror_flag" ||
26032          test ! -s conftest.err
26033        } && test -s conftest.$ac_objext; then
26034   ac_cv_type_std__ostream=yes
26035 else
26036   echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26038
26039         ac_cv_type_std__ostream=no
26040 fi
26041
26042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 fi
26044 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
26045 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
26046 if test $ac_cv_type_std__ostream = yes; then
26047
26048 cat >>confdefs.h <<_ACEOF
26049 #define HAVE_STD__OSTREAM 1
26050 _ACEOF
26051
26052
26053 else
26054   wxUSE_STD_IOSTREAM=no
26055 fi
26056
26057
26058     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
26059         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
26060             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
26061 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
26062    { (exit 1); exit 1; }; }
26063         else
26064             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
26065 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
26066         fi
26067     fi
26068 fi
26069
26070 if test "$wxUSE_STL" = "yes"; then
26071         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26072 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26073 if test "${wx_cv_lib_stl+set}" = set; then
26074   echo $ECHO_N "(cached) $ECHO_C" >&6
26075 else
26076   cat >conftest.$ac_ext <<_ACEOF
26077 /* confdefs.h.  */
26078 _ACEOF
26079 cat confdefs.h >>conftest.$ac_ext
26080 cat >>conftest.$ac_ext <<_ACEOF
26081 /* end confdefs.h.  */
26082 #include <string>
26083             #include <functional>
26084             #include <algorithm>
26085             #include <vector>
26086             #include <list>
26087 int
26088 main ()
26089 {
26090 std::vector<int> moo;
26091              std::list<int> foo;
26092              std::vector<int>::iterator it =
26093                  std::find_if(moo.begin(), moo.end(),
26094                               std::bind2nd(std::less<int>(), 3));
26095   ;
26096   return 0;
26097 }
26098 _ACEOF
26099 rm -f conftest.$ac_objext
26100 if { (ac_try="$ac_compile"
26101 case "(($ac_try" in
26102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26103   *) ac_try_echo=$ac_try;;
26104 esac
26105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26106   (eval "$ac_compile") 2>conftest.er1
26107   ac_status=$?
26108   grep -v '^ *+' conftest.er1 >conftest.err
26109   rm -f conftest.er1
26110   cat conftest.err >&5
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); } && {
26113          test -z "$ac_cxx_werror_flag" ||
26114          test ! -s conftest.err
26115        } && test -s conftest.$ac_objext; then
26116   wx_cv_lib_stl=yes
26117 else
26118   echo "$as_me: failed program was:" >&5
26119 sed 's/^/| /' conftest.$ac_ext >&5
26120
26121         wx_cv_lib_stl=no
26122
26123 fi
26124
26125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26126
26127 fi
26128 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26129 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26130
26131     if test "$wx_cv_lib_stl" != yes; then
26132          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26133 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26134    { (exit 1); exit 1; }; }
26135     fi
26136
26137         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26138 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26139 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26140   echo $ECHO_N "(cached) $ECHO_C" >&6
26141 else
26142   cat >conftest.$ac_ext <<_ACEOF
26143 /* confdefs.h.  */
26144 _ACEOF
26145 cat confdefs.h >>conftest.$ac_ext
26146 cat >>conftest.$ac_ext <<_ACEOF
26147 /* end confdefs.h.  */
26148 #include <string>
26149 int
26150 main ()
26151 {
26152 std::string foo, bar;
26153             foo.compare(bar);
26154             foo.compare(1, 1, bar);
26155             foo.compare(1, 1, bar, 1, 1);
26156             foo.compare("");
26157             foo.compare(1, 1, "");
26158             foo.compare(1, 1, "", 2);
26159   ;
26160   return 0;
26161 }
26162 _ACEOF
26163 rm -f conftest.$ac_objext
26164 if { (ac_try="$ac_compile"
26165 case "(($ac_try" in
26166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167   *) ac_try_echo=$ac_try;;
26168 esac
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170   (eval "$ac_compile") 2>conftest.er1
26171   ac_status=$?
26172   grep -v '^ *+' conftest.er1 >conftest.err
26173   rm -f conftest.er1
26174   cat conftest.err >&5
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); } && {
26177          test -z "$ac_cxx_werror_flag" ||
26178          test ! -s conftest.err
26179        } && test -s conftest.$ac_objext; then
26180   wx_cv_func_stdstring_compare=yes
26181 else
26182   echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26184
26185         wx_cv_func_stdstring_compare=no
26186
26187 fi
26188
26189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26190
26191 fi
26192 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26193 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26194
26195     if test "$wx_cv_func_stdstring_compare" = yes; then
26196         cat >>confdefs.h <<\_ACEOF
26197 #define HAVE_STD_STRING_COMPARE 1
26198 _ACEOF
26199
26200     fi
26201
26202     if test "$wx_cv_class_gnuhashmapset" = yes; then
26203          cat >>confdefs.h <<\_ACEOF
26204 #define HAVE_EXT_HASH_MAP 1
26205 _ACEOF
26206
26207          cat >>confdefs.h <<\_ACEOF
26208 #define HAVE_GNU_CXX_HASH_MAP 1
26209 _ACEOF
26210
26211     fi
26212
26213     { echo "$as_me:$LINENO: checking for unordered_map" >&5
26214 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
26215 if test "${ac_cv_header_unordered_map+set}" = set; then
26216   echo $ECHO_N "(cached) $ECHO_C" >&6
26217 else
26218   cat >conftest.$ac_ext <<_ACEOF
26219 /* confdefs.h.  */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h.  */
26224
26225
26226
26227 #include <unordered_map>
26228 _ACEOF
26229 rm -f conftest.$ac_objext
26230 if { (ac_try="$ac_compile"
26231 case "(($ac_try" in
26232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233   *) ac_try_echo=$ac_try;;
26234 esac
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236   (eval "$ac_compile") 2>conftest.er1
26237   ac_status=$?
26238   grep -v '^ *+' conftest.er1 >conftest.err
26239   rm -f conftest.er1
26240   cat conftest.err >&5
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); } && {
26243          test -z "$ac_cxx_werror_flag" ||
26244          test ! -s conftest.err
26245        } && test -s conftest.$ac_objext; then
26246   ac_cv_header_unordered_map=yes
26247 else
26248   echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26250
26251         ac_cv_header_unordered_map=no
26252 fi
26253
26254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26255 fi
26256 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
26257 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
26258 if test $ac_cv_header_unordered_map = yes; then
26259   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
26260 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
26261 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
26262   echo $ECHO_N "(cached) $ECHO_C" >&6
26263 else
26264   cat >conftest.$ac_ext <<_ACEOF
26265 /* confdefs.h.  */
26266 _ACEOF
26267 cat confdefs.h >>conftest.$ac_ext
26268 cat >>conftest.$ac_ext <<_ACEOF
26269 /* end confdefs.h.  */
26270 #include <unordered_map>
26271                 #include <unordered_set>
26272 int
26273 main ()
26274 {
26275 std::unordered_map<double*, char*> test1;
26276                  std::unordered_set<char*> test2;
26277   ;
26278   return 0;
26279 }
26280 _ACEOF
26281 rm -f conftest.$ac_objext
26282 if { (ac_try="$ac_compile"
26283 case "(($ac_try" in
26284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26285   *) ac_try_echo=$ac_try;;
26286 esac
26287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26288   (eval "$ac_compile") 2>conftest.er1
26289   ac_status=$?
26290   grep -v '^ *+' conftest.er1 >conftest.err
26291   rm -f conftest.er1
26292   cat conftest.err >&5
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); } && {
26295          test -z "$ac_cxx_werror_flag" ||
26296          test ! -s conftest.err
26297        } && test -s conftest.$ac_objext; then
26298   wx_cv_class_stdunorderedmapset=yes
26299 else
26300   echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26302
26303         wx_cv_class_stdunorderedmapset=no
26304 fi
26305
26306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26307
26308
26309 fi
26310 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
26311 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
26312 fi
26313
26314
26315
26316     if test "$wx_cv_class_stdunorderedmapset" = yes; then
26317          cat >>confdefs.h <<\_ACEOF
26318 #define HAVE_STD_UNORDERED_MAP 1
26319 _ACEOF
26320
26321          cat >>confdefs.h <<\_ACEOF
26322 #define HAVE_STD_UNORDERED_SET 1
26323 _ACEOF
26324
26325     else
26326         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
26327 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
26328 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
26329   echo $ECHO_N "(cached) $ECHO_C" >&6
26330 else
26331   cat >conftest.$ac_ext <<_ACEOF
26332 /* confdefs.h.  */
26333 _ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h.  */
26337
26338
26339
26340 #include <tr1/unordered_map>
26341 _ACEOF
26342 rm -f conftest.$ac_objext
26343 if { (ac_try="$ac_compile"
26344 case "(($ac_try" in
26345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26346   *) ac_try_echo=$ac_try;;
26347 esac
26348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26349   (eval "$ac_compile") 2>conftest.er1
26350   ac_status=$?
26351   grep -v '^ *+' conftest.er1 >conftest.err
26352   rm -f conftest.er1
26353   cat conftest.err >&5
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); } && {
26356          test -z "$ac_cxx_werror_flag" ||
26357          test ! -s conftest.err
26358        } && test -s conftest.$ac_objext; then
26359   ac_cv_header_tr1_unordered_map=yes
26360 else
26361   echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26363
26364         ac_cv_header_tr1_unordered_map=no
26365 fi
26366
26367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26368 fi
26369 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
26370 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
26371 if test $ac_cv_header_tr1_unordered_map = yes; then
26372   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
26373 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
26374 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
26375   echo $ECHO_N "(cached) $ECHO_C" >&6
26376 else
26377   cat >conftest.$ac_ext <<_ACEOF
26378 /* confdefs.h.  */
26379 _ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h.  */
26383 #include <tr1/unordered_map>
26384                     #include <tr1/unordered_set>
26385 int
26386 main ()
26387 {
26388 std::tr1::unordered_map<double*, char*> test1;
26389                      std::tr1::unordered_set<char*> test2;
26390             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
26391             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
26392             #endif
26393   ;
26394   return 0;
26395 }
26396 _ACEOF
26397 rm -f conftest.$ac_objext
26398 if { (ac_try="$ac_compile"
26399 case "(($ac_try" in
26400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26401   *) ac_try_echo=$ac_try;;
26402 esac
26403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26404   (eval "$ac_compile") 2>conftest.er1
26405   ac_status=$?
26406   grep -v '^ *+' conftest.er1 >conftest.err
26407   rm -f conftest.er1
26408   cat conftest.err >&5
26409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410   (exit $ac_status); } && {
26411          test -z "$ac_cxx_werror_flag" ||
26412          test ! -s conftest.err
26413        } && test -s conftest.$ac_objext; then
26414   wx_cv_class_tr1unorderedmapset=yes
26415 else
26416   echo "$as_me: failed program was:" >&5
26417 sed 's/^/| /' conftest.$ac_ext >&5
26418
26419         wx_cv_class_tr1unorderedmapset=no
26420 fi
26421
26422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26423
26424
26425 fi
26426 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26427 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26428 fi
26429
26430
26431
26432         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26433             cat >>confdefs.h <<\_ACEOF
26434 #define HAVE_TR1_UNORDERED_MAP 1
26435 _ACEOF
26436
26437             cat >>confdefs.h <<\_ACEOF
26438 #define HAVE_TR1_UNORDERED_SET 1
26439 _ACEOF
26440
26441         else
26442                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26443 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26444 if test "${ac_cv_header_hash_map+set}" = set; then
26445   echo $ECHO_N "(cached) $ECHO_C" >&6
26446 else
26447   cat >conftest.$ac_ext <<_ACEOF
26448 /* confdefs.h.  */
26449 _ACEOF
26450 cat confdefs.h >>conftest.$ac_ext
26451 cat >>conftest.$ac_ext <<_ACEOF
26452 /* end confdefs.h.  */
26453
26454
26455
26456 #include <hash_map>
26457 _ACEOF
26458 rm -f conftest.$ac_objext
26459 if { (ac_try="$ac_compile"
26460 case "(($ac_try" in
26461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26462   *) ac_try_echo=$ac_try;;
26463 esac
26464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26465   (eval "$ac_compile") 2>conftest.er1
26466   ac_status=$?
26467   grep -v '^ *+' conftest.er1 >conftest.err
26468   rm -f conftest.er1
26469   cat conftest.err >&5
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); } && {
26472          test -z "$ac_cxx_werror_flag" ||
26473          test ! -s conftest.err
26474        } && test -s conftest.$ac_objext; then
26475   ac_cv_header_hash_map=yes
26476 else
26477   echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.$ac_ext >&5
26479
26480         ac_cv_header_hash_map=no
26481 fi
26482
26483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26484 fi
26485 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26486 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26487 if test $ac_cv_header_hash_map = yes; then
26488   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26489 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26490 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26491   echo $ECHO_N "(cached) $ECHO_C" >&6
26492 else
26493   cat >conftest.$ac_ext <<_ACEOF
26494 /* confdefs.h.  */
26495 _ACEOF
26496 cat confdefs.h >>conftest.$ac_ext
26497 cat >>conftest.$ac_ext <<_ACEOF
26498 /* end confdefs.h.  */
26499 #include <hash_map>
26500                         #include <hash_set>
26501 int
26502 main ()
26503 {
26504 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26505                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26506   ;
26507   return 0;
26508 }
26509 _ACEOF
26510 rm -f conftest.$ac_objext
26511 if { (ac_try="$ac_compile"
26512 case "(($ac_try" in
26513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26514   *) ac_try_echo=$ac_try;;
26515 esac
26516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26517   (eval "$ac_compile") 2>conftest.er1
26518   ac_status=$?
26519   grep -v '^ *+' conftest.er1 >conftest.err
26520   rm -f conftest.er1
26521   cat conftest.err >&5
26522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523   (exit $ac_status); } && {
26524          test -z "$ac_cxx_werror_flag" ||
26525          test ! -s conftest.err
26526        } && test -s conftest.$ac_objext; then
26527   wx_cv_class_stdhashmapset=yes
26528 else
26529   echo "$as_me: failed program was:" >&5
26530 sed 's/^/| /' conftest.$ac_ext >&5
26531
26532         wx_cv_class_stdhashmapset=no
26533 fi
26534
26535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26536
26537
26538 fi
26539 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26540 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26541 fi
26542
26543
26544
26545             if test "$wx_cv_class_stdhashmapset" = yes; then
26546                 cat >>confdefs.h <<\_ACEOF
26547 #define HAVE_HASH_MAP 1
26548 _ACEOF
26549
26550                 cat >>confdefs.h <<\_ACEOF
26551 #define HAVE_STD_HASH_MAP 1
26552 _ACEOF
26553
26554             fi
26555
26556             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26557 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26558 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26559   echo $ECHO_N "(cached) $ECHO_C" >&6
26560 else
26561   cat >conftest.$ac_ext <<_ACEOF
26562 /* confdefs.h.  */
26563 _ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h.  */
26567
26568
26569
26570 #include <ext/hash_map>
26571 _ACEOF
26572 rm -f conftest.$ac_objext
26573 if { (ac_try="$ac_compile"
26574 case "(($ac_try" in
26575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576   *) ac_try_echo=$ac_try;;
26577 esac
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579   (eval "$ac_compile") 2>conftest.er1
26580   ac_status=$?
26581   grep -v '^ *+' conftest.er1 >conftest.err
26582   rm -f conftest.er1
26583   cat conftest.err >&5
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); } && {
26586          test -z "$ac_cxx_werror_flag" ||
26587          test ! -s conftest.err
26588        } && test -s conftest.$ac_objext; then
26589   ac_cv_header_ext_hash_map=yes
26590 else
26591   echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.$ac_ext >&5
26593
26594         ac_cv_header_ext_hash_map=no
26595 fi
26596
26597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26598 fi
26599 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26600 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26601 if test $ac_cv_header_ext_hash_map = yes; then
26602   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26603 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26604 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26605   echo $ECHO_N "(cached) $ECHO_C" >&6
26606 else
26607   cat >conftest.$ac_ext <<_ACEOF
26608 /* confdefs.h.  */
26609 _ACEOF
26610 cat confdefs.h >>conftest.$ac_ext
26611 cat >>conftest.$ac_ext <<_ACEOF
26612 /* end confdefs.h.  */
26613 #include <ext/hash_map>
26614                         #include <ext/hash_set>
26615 int
26616 main ()
26617 {
26618 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26619                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26620   ;
26621   return 0;
26622 }
26623 _ACEOF
26624 rm -f conftest.$ac_objext
26625 if { (ac_try="$ac_compile"
26626 case "(($ac_try" in
26627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628   *) ac_try_echo=$ac_try;;
26629 esac
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631   (eval "$ac_compile") 2>conftest.er1
26632   ac_status=$?
26633   grep -v '^ *+' conftest.er1 >conftest.err
26634   rm -f conftest.er1
26635   cat conftest.err >&5
26636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637   (exit $ac_status); } && {
26638          test -z "$ac_cxx_werror_flag" ||
26639          test ! -s conftest.err
26640        } && test -s conftest.$ac_objext; then
26641   wx_cv_class_gnuhashmapset=yes
26642 else
26643   echo "$as_me: failed program was:" >&5
26644 sed 's/^/| /' conftest.$ac_ext >&5
26645
26646         wx_cv_class_gnuhashmapset=no
26647 fi
26648
26649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26650
26651
26652 fi
26653 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26654 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26655 fi
26656
26657
26658
26659         fi
26660     fi
26661 fi
26662
26663 ac_ext=cpp
26664 ac_cpp='$CXXCPP $CPPFLAGS'
26665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26668 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26669 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26670 if test -z "$CXXCPP"; then
26671   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26672   echo $ECHO_N "(cached) $ECHO_C" >&6
26673 else
26674       # Double quotes because CXXCPP needs to be expanded
26675     for CXXCPP in "$CXX -E" "/lib/cpp"
26676     do
26677       ac_preproc_ok=false
26678 for ac_cxx_preproc_warn_flag in '' yes
26679 do
26680   # Use a header file that comes with gcc, so configuring glibc
26681   # with a fresh cross-compiler works.
26682   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26683   # <limits.h> exists even on freestanding compilers.
26684   # On the NeXT, cc -E runs the code through the compiler's parser,
26685   # not just through cpp. "Syntax error" is here to catch this case.
26686   cat >conftest.$ac_ext <<_ACEOF
26687 /* confdefs.h.  */
26688 _ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h.  */
26692 #ifdef __STDC__
26693 # include <limits.h>
26694 #else
26695 # include <assert.h>
26696 #endif
26697                      Syntax error
26698 _ACEOF
26699 if { (ac_try="$ac_cpp conftest.$ac_ext"
26700 case "(($ac_try" in
26701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26702   *) ac_try_echo=$ac_try;;
26703 esac
26704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26706   ac_status=$?
26707   grep -v '^ *+' conftest.er1 >conftest.err
26708   rm -f conftest.er1
26709   cat conftest.err >&5
26710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711   (exit $ac_status); } >/dev/null && {
26712          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26713          test ! -s conftest.err
26714        }; then
26715   :
26716 else
26717   echo "$as_me: failed program was:" >&5
26718 sed 's/^/| /' conftest.$ac_ext >&5
26719
26720   # Broken: fails on valid input.
26721 continue
26722 fi
26723
26724 rm -f conftest.err conftest.$ac_ext
26725
26726   # OK, works on sane cases.  Now check whether nonexistent headers
26727   # can be detected and how.
26728   cat >conftest.$ac_ext <<_ACEOF
26729 /* confdefs.h.  */
26730 _ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h.  */
26734 #include <ac_nonexistent.h>
26735 _ACEOF
26736 if { (ac_try="$ac_cpp conftest.$ac_ext"
26737 case "(($ac_try" in
26738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739   *) ac_try_echo=$ac_try;;
26740 esac
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26743   ac_status=$?
26744   grep -v '^ *+' conftest.er1 >conftest.err
26745   rm -f conftest.er1
26746   cat conftest.err >&5
26747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748   (exit $ac_status); } >/dev/null && {
26749          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26750          test ! -s conftest.err
26751        }; then
26752   # Broken: success on invalid input.
26753 continue
26754 else
26755   echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26757
26758   # Passes both tests.
26759 ac_preproc_ok=:
26760 break
26761 fi
26762
26763 rm -f conftest.err conftest.$ac_ext
26764
26765 done
26766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26767 rm -f conftest.err conftest.$ac_ext
26768 if $ac_preproc_ok; then
26769   break
26770 fi
26771
26772     done
26773     ac_cv_prog_CXXCPP=$CXXCPP
26774
26775 fi
26776   CXXCPP=$ac_cv_prog_CXXCPP
26777 else
26778   ac_cv_prog_CXXCPP=$CXXCPP
26779 fi
26780 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26781 echo "${ECHO_T}$CXXCPP" >&6; }
26782 ac_preproc_ok=false
26783 for ac_cxx_preproc_warn_flag in '' yes
26784 do
26785   # Use a header file that comes with gcc, so configuring glibc
26786   # with a fresh cross-compiler works.
26787   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26788   # <limits.h> exists even on freestanding compilers.
26789   # On the NeXT, cc -E runs the code through the compiler's parser,
26790   # not just through cpp. "Syntax error" is here to catch this case.
26791   cat >conftest.$ac_ext <<_ACEOF
26792 /* confdefs.h.  */
26793 _ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h.  */
26797 #ifdef __STDC__
26798 # include <limits.h>
26799 #else
26800 # include <assert.h>
26801 #endif
26802                      Syntax error
26803 _ACEOF
26804 if { (ac_try="$ac_cpp conftest.$ac_ext"
26805 case "(($ac_try" in
26806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26807   *) ac_try_echo=$ac_try;;
26808 esac
26809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26811   ac_status=$?
26812   grep -v '^ *+' conftest.er1 >conftest.err
26813   rm -f conftest.er1
26814   cat conftest.err >&5
26815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816   (exit $ac_status); } >/dev/null && {
26817          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26818          test ! -s conftest.err
26819        }; then
26820   :
26821 else
26822   echo "$as_me: failed program was:" >&5
26823 sed 's/^/| /' conftest.$ac_ext >&5
26824
26825   # Broken: fails on valid input.
26826 continue
26827 fi
26828
26829 rm -f conftest.err conftest.$ac_ext
26830
26831   # OK, works on sane cases.  Now check whether nonexistent headers
26832   # can be detected and how.
26833   cat >conftest.$ac_ext <<_ACEOF
26834 /* confdefs.h.  */
26835 _ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h.  */
26839 #include <ac_nonexistent.h>
26840 _ACEOF
26841 if { (ac_try="$ac_cpp conftest.$ac_ext"
26842 case "(($ac_try" in
26843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844   *) ac_try_echo=$ac_try;;
26845 esac
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26848   ac_status=$?
26849   grep -v '^ *+' conftest.er1 >conftest.err
26850   rm -f conftest.er1
26851   cat conftest.err >&5
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); } >/dev/null && {
26854          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26855          test ! -s conftest.err
26856        }; then
26857   # Broken: success on invalid input.
26858 continue
26859 else
26860   echo "$as_me: failed program was:" >&5
26861 sed 's/^/| /' conftest.$ac_ext >&5
26862
26863   # Passes both tests.
26864 ac_preproc_ok=:
26865 break
26866 fi
26867
26868 rm -f conftest.err conftest.$ac_ext
26869
26870 done
26871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26872 rm -f conftest.err conftest.$ac_ext
26873 if $ac_preproc_ok; then
26874   :
26875 else
26876   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26877 See \`config.log' for more details." >&5
26878 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26879 See \`config.log' for more details." >&2;}
26880    { (exit 1); exit 1; }; }
26881 fi
26882
26883 ac_ext=cpp
26884 ac_cpp='$CXXCPP $CPPFLAGS'
26885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26888
26889
26890
26891
26892 for ac_header in type_traits tr1/type_traits
26893 do
26894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26896   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26899   echo $ECHO_N "(cached) $ECHO_C" >&6
26900 fi
26901 ac_res=`eval echo '${'$as_ac_Header'}'`
26902                { echo "$as_me:$LINENO: result: $ac_res" >&5
26903 echo "${ECHO_T}$ac_res" >&6; }
26904 else
26905   # Is the header compilable?
26906 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26908 cat >conftest.$ac_ext <<_ACEOF
26909 /* confdefs.h.  */
26910 _ACEOF
26911 cat confdefs.h >>conftest.$ac_ext
26912 cat >>conftest.$ac_ext <<_ACEOF
26913 /* end confdefs.h.  */
26914 $ac_includes_default
26915 #include <$ac_header>
26916 _ACEOF
26917 rm -f conftest.$ac_objext
26918 if { (ac_try="$ac_compile"
26919 case "(($ac_try" in
26920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921   *) ac_try_echo=$ac_try;;
26922 esac
26923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26924   (eval "$ac_compile") 2>conftest.er1
26925   ac_status=$?
26926   grep -v '^ *+' conftest.er1 >conftest.err
26927   rm -f conftest.er1
26928   cat conftest.err >&5
26929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930   (exit $ac_status); } && {
26931          test -z "$ac_cxx_werror_flag" ||
26932          test ! -s conftest.err
26933        } && test -s conftest.$ac_objext; then
26934   ac_header_compiler=yes
26935 else
26936   echo "$as_me: failed program was:" >&5
26937 sed 's/^/| /' conftest.$ac_ext >&5
26938
26939         ac_header_compiler=no
26940 fi
26941
26942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26944 echo "${ECHO_T}$ac_header_compiler" >&6; }
26945
26946 # Is the header present?
26947 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26949 cat >conftest.$ac_ext <<_ACEOF
26950 /* confdefs.h.  */
26951 _ACEOF
26952 cat confdefs.h >>conftest.$ac_ext
26953 cat >>conftest.$ac_ext <<_ACEOF
26954 /* end confdefs.h.  */
26955 #include <$ac_header>
26956 _ACEOF
26957 if { (ac_try="$ac_cpp conftest.$ac_ext"
26958 case "(($ac_try" in
26959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960   *) ac_try_echo=$ac_try;;
26961 esac
26962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26964   ac_status=$?
26965   grep -v '^ *+' conftest.er1 >conftest.err
26966   rm -f conftest.er1
26967   cat conftest.err >&5
26968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969   (exit $ac_status); } >/dev/null && {
26970          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26971          test ! -s conftest.err
26972        }; then
26973   ac_header_preproc=yes
26974 else
26975   echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26977
26978   ac_header_preproc=no
26979 fi
26980
26981 rm -f conftest.err conftest.$ac_ext
26982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26983 echo "${ECHO_T}$ac_header_preproc" >&6; }
26984
26985 # So?  What about this header?
26986 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26987   yes:no: )
26988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26992     ac_header_preproc=yes
26993     ;;
26994   no:yes:* )
26995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26997     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26998 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26999     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27001     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27002 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27005     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27007     ( cat <<\_ASBOX
27008 ## ----------------------------------------- ##
27009 ## Report this to wx-dev@lists.wxwidgets.org ##
27010 ## ----------------------------------------- ##
27011 _ASBOX
27012      ) | sed "s/^/$as_me: WARNING:     /" >&2
27013     ;;
27014 esac
27015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27018   echo $ECHO_N "(cached) $ECHO_C" >&6
27019 else
27020   eval "$as_ac_Header=\$ac_header_preproc"
27021 fi
27022 ac_res=`eval echo '${'$as_ac_Header'}'`
27023                { echo "$as_me:$LINENO: result: $ac_res" >&5
27024 echo "${ECHO_T}$ac_res" >&6; }
27025
27026 fi
27027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27028   cat >>confdefs.h <<_ACEOF
27029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27030 _ACEOF
27031
27032 fi
27033
27034 done
27035
27036
27037
27038
27039   if test -n "$GCC"; then
27040     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
27041 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
27042     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
27043   echo $ECHO_N "(cached) $ECHO_C" >&6
27044 else
27045
27046       cat >conftest.$ac_ext <<_ACEOF
27047 /* confdefs.h.  */
27048 _ACEOF
27049 cat confdefs.h >>conftest.$ac_ext
27050 cat >>conftest.$ac_ext <<_ACEOF
27051 /* end confdefs.h.  */
27052
27053 int
27054 main ()
27055 {
27056
27057           unsigned int value=0;
27058           /* wxAtomicInc doesn't use return value here */
27059           __sync_fetch_and_add(&value, 2);
27060           __sync_sub_and_fetch(&value, 1);
27061           /* but wxAtomicDec does, so mimic that: */
27062           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
27063
27064   ;
27065   return 0;
27066 }
27067 _ACEOF
27068 rm -f conftest.$ac_objext conftest$ac_exeext
27069 if { (ac_try="$ac_link"
27070 case "(($ac_try" in
27071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072   *) ac_try_echo=$ac_try;;
27073 esac
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075   (eval "$ac_link") 2>conftest.er1
27076   ac_status=$?
27077   grep -v '^ *+' conftest.er1 >conftest.err
27078   rm -f conftest.er1
27079   cat conftest.err >&5
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); } && {
27082          test -z "$ac_cxx_werror_flag" ||
27083          test ! -s conftest.err
27084        } && test -s conftest$ac_exeext &&
27085        $as_test_x conftest$ac_exeext; then
27086   wx_cv_cc_gcc_atomic_builtins=yes
27087 else
27088   echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27090
27091         wx_cv_cc_gcc_atomic_builtins=no
27092 fi
27093
27094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27095       conftest$ac_exeext conftest.$ac_ext
27096
27097 fi
27098
27099     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
27100 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
27101     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
27102       cat >>confdefs.h <<\_ACEOF
27103 #define HAVE_GCC_ATOMIC_BUILTINS 1
27104 _ACEOF
27105
27106     fi
27107   fi
27108
27109
27110 ac_ext=c
27111 ac_cpp='$CPP $CPPFLAGS'
27112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27115
27116
27117
27118 SEARCH_INCLUDE="\
27119     /usr/local/include        \
27120     /usr/local/X11/include    \
27121     /usr/local/include/X11    \
27122     /usr/local/X11R7/include  \
27123     /usr/local/X11R6/include  \
27124     /usr/local/include/X11R7  \
27125     /usr/local/include/X11R6  \
27126                               \
27127     /usr/Motif-2.1/include    \
27128     /usr/Motif-1.2/include    \
27129     /usr/include/Motif1.2     \
27130                               \
27131     /usr/dt/include           \
27132     /usr/openwin/include      \
27133                               \
27134     /usr/include/Xm           \
27135                               \
27136     /usr/X11R7/include        \
27137     /usr/X11R6/include        \
27138     /usr/X11R6.4/include      \
27139                               \
27140     /usr/include/X11R7        \
27141     /usr/include/X11R6        \
27142                               \
27143     /usr/X11/include          \
27144     /usr/include/X11          \
27145                               \
27146     /usr/XFree86/include/X11  \
27147     /usr/pkg/include          \
27148                               \
27149     /usr/local/X1R5/include  \
27150     /usr/local/include/X11R5  \
27151     /usr/X11R5/include        \
27152     /usr/include/X11R5        \
27153                               \
27154     /usr/local/X11R4/include  \
27155     /usr/local/include/X11R4  \
27156     /usr/X11R4/include        \
27157     /usr/include/X11R4        \
27158                               \
27159     /usr/openwin/share/include"
27160
27161 { echo "$as_me:$LINENO: checking for libraries directories" >&5
27162 echo $ECHO_N "checking for libraries directories... $ECHO_C" >&6; }
27163
27164 case "${host}" in
27165     *-*-irix6* )
27166         if test "${wx_cv_std_libpath+set}" = set; then
27167   echo $ECHO_N "(cached) $ECHO_C" >&6
27168 else
27169
27170                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27171                     for e in a so sl dylib dll.a; do
27172                         libc="$d/libc.$e"
27173                         if test -f $libc; then
27174                             save_LIBS="$LIBS"
27175                             LIBS="$libc"
27176                             cat >conftest.$ac_ext <<_ACEOF
27177
27178                                     /* confdefs.h.  */
27179 _ACEOF
27180 cat confdefs.h >>conftest.$ac_ext
27181 cat >>conftest.$ac_ext <<_ACEOF
27182 /* end confdefs.h.  */
27183 int main() { return 0; }
27184
27185 _ACEOF
27186 rm -f conftest.$ac_objext conftest$ac_exeext
27187 if { (ac_try="$ac_link"
27188 case "(($ac_try" in
27189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190   *) ac_try_echo=$ac_try;;
27191 esac
27192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27193   (eval "$ac_link") 2>conftest.er1
27194   ac_status=$?
27195   grep -v '^ *+' conftest.er1 >conftest.err
27196   rm -f conftest.er1
27197   cat conftest.err >&5
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); } && {
27200          test -z "$ac_c_werror_flag" ||
27201          test ! -s conftest.err
27202        } && test -s conftest$ac_exeext &&
27203        $as_test_x conftest$ac_exeext; then
27204   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27205 else
27206   echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27208
27209
27210 fi
27211
27212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27213       conftest$ac_exeext conftest.$ac_ext
27214                             LIBS="$save_LIBS"
27215                             if test "x$wx_cv_std_libpath" != "x"; then
27216                                 break 2
27217                             fi
27218                         fi
27219                     done
27220                 done
27221
27222
27223 fi
27224
27225         ;;
27226
27227     *-*-solaris2* )
27228                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27229             wx_cv_std_libpath="lib/64"
27230         fi
27231         ;;
27232
27233     *-*-linux* )
27234                                         if test "$ac_cv_sizeof_void_p" = 8; then
27235             if test -d "/usr/lib/`uname -m`-linux-gnu"; then
27236                 wx_cv_std_libfullpath="/usr/lib/`uname -m`-linux-gnu"
27237             elif test -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27238                 wx_cv_std_libpath="lib64"
27239             fi
27240         else
27241             case "${host}" in
27242                 i*86-*-linux* )
27243                     if test -d '/usr/lib/i386-linux-gnu'; then
27244                         wx_cv_std_libfullpath='/usr/lib/i386-linux-gnu'
27245                     fi
27246             esac
27247         fi
27248
27249                                 if test -n "$wx_cv_std_libfullpath" -a -d "/usr/lib"; then
27250             wx_cv_std_libfullpath="$wx_cv_std_libfullpath /usr/lib"
27251         fi
27252         ;;
27253 esac
27254
27255 if test -z "$wx_cv_std_libpath"; then
27256     wx_cv_std_libpath="lib"
27257 fi
27258
27259 if test -z "$wx_cv_std_libfullpath"; then
27260     wx_cv_std_libfullpath="/usr/$wx_cv_std_libpath"
27261 fi
27262
27263
27264 { echo "$as_me:$LINENO: result: $wx_cv_std_libfullpath" >&5
27265 echo "${ECHO_T}$wx_cv_std_libfullpath" >&6; }
27266
27267 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` $wx_cv_std_libfullpath"
27268
27269 if test "$build" != "$host" -a "$GCC" = yes; then
27270                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27271         cross_root=`dirname $cross_root`
27272         cross_root=`dirname $cross_root`
27273
27274                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27275         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27276         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27277
27278                 if test -z "$PKG_CONFIG_PATH"; then
27279             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27280             export PKG_CONFIG_PATH
27281         fi
27282
27283                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27284
27285 ac_find_includes=
27286 for ac_dir in $SEARCH_INCLUDE /usr/include
27287   do
27288     if test -f "$ac_dir/X11/Intrinsic.h"; then
27289       ac_find_includes=$ac_dir
27290       break
27291     fi
27292   done
27293
27294             x_includes=$ac_find_includes
27295         fi
27296         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27297
27298   ac_find_libraries=
27299   for ac_dir in  $SEARCH_LIB
27300   do
27301     for ac_extension in a so sl dylib dll.a; do
27302       if test -f "$ac_dir/libXt.$ac_extension"; then
27303         ac_find_libraries=$ac_dir
27304         break 2
27305       fi
27306     done
27307   done
27308
27309             x_libraries=$ac_find_libraries
27310         fi
27311     fi
27312 fi
27313
27314
27315 cat >confcache <<\_ACEOF
27316 # This file is a shell script that caches the results of configure
27317 # tests run on this system so they can be shared between configure
27318 # scripts and configure runs, see configure's option --config-cache.
27319 # It is not useful on other systems.  If it contains results you don't
27320 # want to keep, you may remove or edit it.
27321 #
27322 # config.status only pays attention to the cache file if you give it
27323 # the --recheck option to rerun configure.
27324 #
27325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27327 # following values.
27328
27329 _ACEOF
27330
27331 # The following way of writing the cache mishandles newlines in values,
27332 # but we know of no workaround that is simple, portable, and efficient.
27333 # So, we kill variables containing newlines.
27334 # Ultrix sh set writes to stderr and can't be redirected directly,
27335 # and sets the high bit in the cache file unless we assign to the vars.
27336 (
27337   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27338     eval ac_val=\$$ac_var
27339     case $ac_val in #(
27340     *${as_nl}*)
27341       case $ac_var in #(
27342       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27343 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27344       esac
27345       case $ac_var in #(
27346       _ | IFS | as_nl) ;; #(
27347       *) $as_unset $ac_var ;;
27348       esac ;;
27349     esac
27350   done
27351
27352   (set) 2>&1 |
27353     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27354     *${as_nl}ac_space=\ *)
27355       # `set' does not quote correctly, so add quotes (double-quote
27356       # substitution turns \\\\ into \\, and sed turns \\ into \).
27357       sed -n \
27358         "s/'/'\\\\''/g;
27359           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27360       ;; #(
27361     *)
27362       # `set' quotes correctly as required by POSIX, so do not add quotes.
27363       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27364       ;;
27365     esac |
27366     sort
27367 ) |
27368   sed '
27369      /^ac_cv_env_/b end
27370      t clear
27371      :clear
27372      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27373      t end
27374      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27375      :end' >>confcache
27376 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27377   if test -w "$cache_file"; then
27378     test "x$cache_file" != "x/dev/null" &&
27379       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27380 echo "$as_me: updating cache $cache_file" >&6;}
27381     cat confcache >$cache_file
27382   else
27383     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27384 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27385   fi
27386 fi
27387 rm -f confcache
27388
27389 have_cos=0
27390 have_floor=0
27391
27392 for ac_func in cos
27393 do
27394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27398   echo $ECHO_N "(cached) $ECHO_C" >&6
27399 else
27400   cat >conftest.$ac_ext <<_ACEOF
27401 /* confdefs.h.  */
27402 _ACEOF
27403 cat confdefs.h >>conftest.$ac_ext
27404 cat >>conftest.$ac_ext <<_ACEOF
27405 /* end confdefs.h.  */
27406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27408 #define $ac_func innocuous_$ac_func
27409
27410 /* System header to define __stub macros and hopefully few prototypes,
27411     which can conflict with char $ac_func (); below.
27412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27413     <limits.h> exists even on freestanding compilers.  */
27414
27415 #ifdef __STDC__
27416 # include <limits.h>
27417 #else
27418 # include <assert.h>
27419 #endif
27420
27421 #undef $ac_func
27422
27423 /* Override any GCC internal prototype to avoid an error.
27424    Use char because int might match the return type of a GCC
27425    builtin and then its argument prototype would still apply.  */
27426 #ifdef __cplusplus
27427 extern "C"
27428 #endif
27429 char $ac_func ();
27430 /* The GNU C library defines this for functions which it implements
27431     to always fail with ENOSYS.  Some functions are actually named
27432     something starting with __ and the normal name is an alias.  */
27433 #if defined __stub_$ac_func || defined __stub___$ac_func
27434 choke me
27435 #endif
27436
27437 int
27438 main ()
27439 {
27440 return $ac_func ();
27441   ;
27442   return 0;
27443 }
27444 _ACEOF
27445 rm -f conftest.$ac_objext conftest$ac_exeext
27446 if { (ac_try="$ac_link"
27447 case "(($ac_try" in
27448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27449   *) ac_try_echo=$ac_try;;
27450 esac
27451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27452   (eval "$ac_link") 2>conftest.er1
27453   ac_status=$?
27454   grep -v '^ *+' conftest.er1 >conftest.err
27455   rm -f conftest.er1
27456   cat conftest.err >&5
27457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); } && {
27459          test -z "$ac_c_werror_flag" ||
27460          test ! -s conftest.err
27461        } && test -s conftest$ac_exeext &&
27462        $as_test_x conftest$ac_exeext; then
27463   eval "$as_ac_var=yes"
27464 else
27465   echo "$as_me: failed program was:" >&5
27466 sed 's/^/| /' conftest.$ac_ext >&5
27467
27468         eval "$as_ac_var=no"
27469 fi
27470
27471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27472       conftest$ac_exeext conftest.$ac_ext
27473 fi
27474 ac_res=`eval echo '${'$as_ac_var'}'`
27475                { echo "$as_me:$LINENO: result: $ac_res" >&5
27476 echo "${ECHO_T}$ac_res" >&6; }
27477 if test `eval echo '${'$as_ac_var'}'` = yes; then
27478   cat >>confdefs.h <<_ACEOF
27479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27480 _ACEOF
27481  have_cos=1
27482 fi
27483 done
27484
27485
27486 for ac_func in floor
27487 do
27488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27492   echo $ECHO_N "(cached) $ECHO_C" >&6
27493 else
27494   cat >conftest.$ac_ext <<_ACEOF
27495 /* confdefs.h.  */
27496 _ACEOF
27497 cat confdefs.h >>conftest.$ac_ext
27498 cat >>conftest.$ac_ext <<_ACEOF
27499 /* end confdefs.h.  */
27500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27502 #define $ac_func innocuous_$ac_func
27503
27504 /* System header to define __stub macros and hopefully few prototypes,
27505     which can conflict with char $ac_func (); below.
27506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27507     <limits.h> exists even on freestanding compilers.  */
27508
27509 #ifdef __STDC__
27510 # include <limits.h>
27511 #else
27512 # include <assert.h>
27513 #endif
27514
27515 #undef $ac_func
27516
27517 /* Override any GCC internal prototype to avoid an error.
27518    Use char because int might match the return type of a GCC
27519    builtin and then its argument prototype would still apply.  */
27520 #ifdef __cplusplus
27521 extern "C"
27522 #endif
27523 char $ac_func ();
27524 /* The GNU C library defines this for functions which it implements
27525     to always fail with ENOSYS.  Some functions are actually named
27526     something starting with __ and the normal name is an alias.  */
27527 #if defined __stub_$ac_func || defined __stub___$ac_func
27528 choke me
27529 #endif
27530
27531 int
27532 main ()
27533 {
27534 return $ac_func ();
27535   ;
27536   return 0;
27537 }
27538 _ACEOF
27539 rm -f conftest.$ac_objext conftest$ac_exeext
27540 if { (ac_try="$ac_link"
27541 case "(($ac_try" in
27542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543   *) ac_try_echo=$ac_try;;
27544 esac
27545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546   (eval "$ac_link") 2>conftest.er1
27547   ac_status=$?
27548   grep -v '^ *+' conftest.er1 >conftest.err
27549   rm -f conftest.er1
27550   cat conftest.err >&5
27551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552   (exit $ac_status); } && {
27553          test -z "$ac_c_werror_flag" ||
27554          test ! -s conftest.err
27555        } && test -s conftest$ac_exeext &&
27556        $as_test_x conftest$ac_exeext; then
27557   eval "$as_ac_var=yes"
27558 else
27559   echo "$as_me: failed program was:" >&5
27560 sed 's/^/| /' conftest.$ac_ext >&5
27561
27562         eval "$as_ac_var=no"
27563 fi
27564
27565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27566       conftest$ac_exeext conftest.$ac_ext
27567 fi
27568 ac_res=`eval echo '${'$as_ac_var'}'`
27569                { echo "$as_me:$LINENO: result: $ac_res" >&5
27570 echo "${ECHO_T}$ac_res" >&6; }
27571 if test `eval echo '${'$as_ac_var'}'` = yes; then
27572   cat >>confdefs.h <<_ACEOF
27573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27574 _ACEOF
27575  have_floor=1
27576 fi
27577 done
27578
27579 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27580 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27581 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27582     { echo "$as_me:$LINENO: result: yes" >&5
27583 echo "${ECHO_T}yes" >&6; }
27584 else
27585     { echo "$as_me:$LINENO: result: no" >&5
27586 echo "${ECHO_T}no" >&6; }
27587     LIBS="$LIBS -lm"
27588     # use different functions to avoid configure caching
27589     have_sin=0
27590     have_ceil=0
27591
27592 for ac_func in sin
27593 do
27594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27598   echo $ECHO_N "(cached) $ECHO_C" >&6
27599 else
27600   cat >conftest.$ac_ext <<_ACEOF
27601 /* confdefs.h.  */
27602 _ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h.  */
27606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27608 #define $ac_func innocuous_$ac_func
27609
27610 /* System header to define __stub macros and hopefully few prototypes,
27611     which can conflict with char $ac_func (); below.
27612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27613     <limits.h> exists even on freestanding compilers.  */
27614
27615 #ifdef __STDC__
27616 # include <limits.h>
27617 #else
27618 # include <assert.h>
27619 #endif
27620
27621 #undef $ac_func
27622
27623 /* Override any GCC internal prototype to avoid an error.
27624    Use char because int might match the return type of a GCC
27625    builtin and then its argument prototype would still apply.  */
27626 #ifdef __cplusplus
27627 extern "C"
27628 #endif
27629 char $ac_func ();
27630 /* The GNU C library defines this for functions which it implements
27631     to always fail with ENOSYS.  Some functions are actually named
27632     something starting with __ and the normal name is an alias.  */
27633 #if defined __stub_$ac_func || defined __stub___$ac_func
27634 choke me
27635 #endif
27636
27637 int
27638 main ()
27639 {
27640 return $ac_func ();
27641   ;
27642   return 0;
27643 }
27644 _ACEOF
27645 rm -f conftest.$ac_objext conftest$ac_exeext
27646 if { (ac_try="$ac_link"
27647 case "(($ac_try" in
27648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649   *) ac_try_echo=$ac_try;;
27650 esac
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652   (eval "$ac_link") 2>conftest.er1
27653   ac_status=$?
27654   grep -v '^ *+' conftest.er1 >conftest.err
27655   rm -f conftest.er1
27656   cat conftest.err >&5
27657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658   (exit $ac_status); } && {
27659          test -z "$ac_c_werror_flag" ||
27660          test ! -s conftest.err
27661        } && test -s conftest$ac_exeext &&
27662        $as_test_x conftest$ac_exeext; then
27663   eval "$as_ac_var=yes"
27664 else
27665   echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27667
27668         eval "$as_ac_var=no"
27669 fi
27670
27671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27672       conftest$ac_exeext conftest.$ac_ext
27673 fi
27674 ac_res=`eval echo '${'$as_ac_var'}'`
27675                { echo "$as_me:$LINENO: result: $ac_res" >&5
27676 echo "${ECHO_T}$ac_res" >&6; }
27677 if test `eval echo '${'$as_ac_var'}'` = yes; then
27678   cat >>confdefs.h <<_ACEOF
27679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27680 _ACEOF
27681  have_sin=1
27682 fi
27683 done
27684
27685
27686 for ac_func in ceil
27687 do
27688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27692   echo $ECHO_N "(cached) $ECHO_C" >&6
27693 else
27694   cat >conftest.$ac_ext <<_ACEOF
27695 /* confdefs.h.  */
27696 _ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h.  */
27700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27702 #define $ac_func innocuous_$ac_func
27703
27704 /* System header to define __stub macros and hopefully few prototypes,
27705     which can conflict with char $ac_func (); below.
27706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27707     <limits.h> exists even on freestanding compilers.  */
27708
27709 #ifdef __STDC__
27710 # include <limits.h>
27711 #else
27712 # include <assert.h>
27713 #endif
27714
27715 #undef $ac_func
27716
27717 /* Override any GCC internal prototype to avoid an error.
27718    Use char because int might match the return type of a GCC
27719    builtin and then its argument prototype would still apply.  */
27720 #ifdef __cplusplus
27721 extern "C"
27722 #endif
27723 char $ac_func ();
27724 /* The GNU C library defines this for functions which it implements
27725     to always fail with ENOSYS.  Some functions are actually named
27726     something starting with __ and the normal name is an alias.  */
27727 #if defined __stub_$ac_func || defined __stub___$ac_func
27728 choke me
27729 #endif
27730
27731 int
27732 main ()
27733 {
27734 return $ac_func ();
27735   ;
27736   return 0;
27737 }
27738 _ACEOF
27739 rm -f conftest.$ac_objext conftest$ac_exeext
27740 if { (ac_try="$ac_link"
27741 case "(($ac_try" in
27742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743   *) ac_try_echo=$ac_try;;
27744 esac
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746   (eval "$ac_link") 2>conftest.er1
27747   ac_status=$?
27748   grep -v '^ *+' conftest.er1 >conftest.err
27749   rm -f conftest.er1
27750   cat conftest.err >&5
27751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752   (exit $ac_status); } && {
27753          test -z "$ac_c_werror_flag" ||
27754          test ! -s conftest.err
27755        } && test -s conftest$ac_exeext &&
27756        $as_test_x conftest$ac_exeext; then
27757   eval "$as_ac_var=yes"
27758 else
27759   echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27761
27762         eval "$as_ac_var=no"
27763 fi
27764
27765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27766       conftest$ac_exeext conftest.$ac_ext
27767 fi
27768 ac_res=`eval echo '${'$as_ac_var'}'`
27769                { echo "$as_me:$LINENO: result: $ac_res" >&5
27770 echo "${ECHO_T}$ac_res" >&6; }
27771 if test `eval echo '${'$as_ac_var'}'` = yes; then
27772   cat >>confdefs.h <<_ACEOF
27773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27774 _ACEOF
27775  have_ceil=1
27776 fi
27777 done
27778
27779     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27780 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27781     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27782         { echo "$as_me:$LINENO: result: yes" >&5
27783 echo "${ECHO_T}yes" >&6; }
27784     else
27785         { echo "$as_me:$LINENO: result: no" >&5
27786 echo "${ECHO_T}no" >&6; }
27787         # not sure we should warn the user, crash, etc.
27788     fi
27789 fi
27790
27791 ac_ext=cpp
27792 ac_cpp='$CXXCPP $CPPFLAGS'
27793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27796
27797 if test "wxUSE_UNICODE" = "yes"; then
27798
27799   for wx_func in wcstoull
27800   do
27801     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27802 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27803 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27804   echo $ECHO_N "(cached) $ECHO_C" >&6
27805 else
27806
27807         cat >conftest.$ac_ext <<_ACEOF
27808
27809             /* confdefs.h.  */
27810 _ACEOF
27811 cat confdefs.h >>conftest.$ac_ext
27812 cat >>conftest.$ac_ext <<_ACEOF
27813 /* end confdefs.h.  */
27814
27815
27816                 $ac_includes_default
27817
27818 int
27819 main ()
27820 {
27821
27822                 #ifndef $wx_func
27823                   &$wx_func;
27824                 #endif
27825
27826
27827   ;
27828   return 0;
27829 }
27830
27831 _ACEOF
27832 rm -f conftest.$ac_objext conftest$ac_exeext
27833 if { (ac_try="$ac_link"
27834 case "(($ac_try" in
27835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27836   *) ac_try_echo=$ac_try;;
27837 esac
27838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27839   (eval "$ac_link") 2>conftest.er1
27840   ac_status=$?
27841   grep -v '^ *+' conftest.er1 >conftest.err
27842   rm -f conftest.er1
27843   cat conftest.err >&5
27844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845   (exit $ac_status); } && {
27846          test -z "$ac_cxx_werror_flag" ||
27847          test ! -s conftest.err
27848        } && test -s conftest$ac_exeext &&
27849        $as_test_x conftest$ac_exeext; then
27850   eval wx_cv_func_$wx_func=yes
27851 else
27852   echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27854
27855         eval wx_cv_func_$wx_func=no
27856 fi
27857
27858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27859       conftest$ac_exeext conftest.$ac_ext
27860
27861 fi
27862 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27863                { echo "$as_me:$LINENO: result: $ac_res" >&5
27864 echo "${ECHO_T}$ac_res" >&6; }
27865
27866     if eval test \$wx_cv_func_$wx_func = yes
27867     then
27868       cat >>confdefs.h <<_ACEOF
27869 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27870 _ACEOF
27871
27872
27873     else
27874       :
27875
27876     fi
27877   done
27878
27879 else
27880
27881   for wx_func in strtoull
27882   do
27883     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27884 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27885 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27886   echo $ECHO_N "(cached) $ECHO_C" >&6
27887 else
27888
27889         cat >conftest.$ac_ext <<_ACEOF
27890
27891             /* confdefs.h.  */
27892 _ACEOF
27893 cat confdefs.h >>conftest.$ac_ext
27894 cat >>conftest.$ac_ext <<_ACEOF
27895 /* end confdefs.h.  */
27896
27897
27898                 $ac_includes_default
27899
27900 int
27901 main ()
27902 {
27903
27904                 #ifndef $wx_func
27905                   &$wx_func;
27906                 #endif
27907
27908
27909   ;
27910   return 0;
27911 }
27912
27913 _ACEOF
27914 rm -f conftest.$ac_objext conftest$ac_exeext
27915 if { (ac_try="$ac_link"
27916 case "(($ac_try" in
27917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27918   *) ac_try_echo=$ac_try;;
27919 esac
27920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27921   (eval "$ac_link") 2>conftest.er1
27922   ac_status=$?
27923   grep -v '^ *+' conftest.er1 >conftest.err
27924   rm -f conftest.er1
27925   cat conftest.err >&5
27926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927   (exit $ac_status); } && {
27928          test -z "$ac_cxx_werror_flag" ||
27929          test ! -s conftest.err
27930        } && test -s conftest$ac_exeext &&
27931        $as_test_x conftest$ac_exeext; then
27932   eval wx_cv_func_$wx_func=yes
27933 else
27934   echo "$as_me: failed program was:" >&5
27935 sed 's/^/| /' conftest.$ac_ext >&5
27936
27937         eval wx_cv_func_$wx_func=no
27938 fi
27939
27940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27941       conftest$ac_exeext conftest.$ac_ext
27942
27943 fi
27944 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27945                { echo "$as_me:$LINENO: result: $ac_res" >&5
27946 echo "${ECHO_T}$ac_res" >&6; }
27947
27948     if eval test \$wx_cv_func_$wx_func = yes
27949     then
27950       cat >>confdefs.h <<_ACEOF
27951 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27952 _ACEOF
27953
27954
27955     else
27956       :
27957
27958     fi
27959   done
27960
27961 fi
27962 ac_ext=c
27963 ac_cpp='$CPP $CPPFLAGS'
27964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27967
27968
27969
27970
27971 if test "$wxUSE_REGEX" != "no"; then
27972     cat >>confdefs.h <<\_ACEOF
27973 #define wxUSE_REGEX 1
27974 _ACEOF
27975
27976
27977     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27978         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
27979 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
27980         wxUSE_REGEX=builtin
27981     fi
27982
27983     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27984                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27985 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27986 if test "${ac_cv_header_regex_h+set}" = set; then
27987   echo $ECHO_N "(cached) $ECHO_C" >&6
27988 else
27989   cat >conftest.$ac_ext <<_ACEOF
27990 /* confdefs.h.  */
27991 _ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h.  */
27995
27996
27997 #include <regex.h>
27998 _ACEOF
27999 rm -f conftest.$ac_objext
28000 if { (ac_try="$ac_compile"
28001 case "(($ac_try" in
28002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003   *) ac_try_echo=$ac_try;;
28004 esac
28005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006   (eval "$ac_compile") 2>conftest.er1
28007   ac_status=$?
28008   grep -v '^ *+' conftest.er1 >conftest.err
28009   rm -f conftest.er1
28010   cat conftest.err >&5
28011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012   (exit $ac_status); } && {
28013          test -z "$ac_c_werror_flag" ||
28014          test ! -s conftest.err
28015        } && test -s conftest.$ac_objext; then
28016   ac_cv_header_regex_h=yes
28017 else
28018   echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021         ac_cv_header_regex_h=no
28022 fi
28023
28024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28025 fi
28026 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28027 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28028 if test $ac_cv_header_regex_h = yes; then
28029
28030
28031 for ac_func in regcomp re_search
28032 do
28033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28037   echo $ECHO_N "(cached) $ECHO_C" >&6
28038 else
28039   cat >conftest.$ac_ext <<_ACEOF
28040 /* confdefs.h.  */
28041 _ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h.  */
28045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28047 #define $ac_func innocuous_$ac_func
28048
28049 /* System header to define __stub macros and hopefully few prototypes,
28050     which can conflict with char $ac_func (); below.
28051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28052     <limits.h> exists even on freestanding compilers.  */
28053
28054 #ifdef __STDC__
28055 # include <limits.h>
28056 #else
28057 # include <assert.h>
28058 #endif
28059
28060 #undef $ac_func
28061
28062 /* Override any GCC internal prototype to avoid an error.
28063    Use char because int might match the return type of a GCC
28064    builtin and then its argument prototype would still apply.  */
28065 #ifdef __cplusplus
28066 extern "C"
28067 #endif
28068 char $ac_func ();
28069 /* The GNU C library defines this for functions which it implements
28070     to always fail with ENOSYS.  Some functions are actually named
28071     something starting with __ and the normal name is an alias.  */
28072 #if defined __stub_$ac_func || defined __stub___$ac_func
28073 choke me
28074 #endif
28075
28076 int
28077 main ()
28078 {
28079 return $ac_func ();
28080   ;
28081   return 0;
28082 }
28083 _ACEOF
28084 rm -f conftest.$ac_objext conftest$ac_exeext
28085 if { (ac_try="$ac_link"
28086 case "(($ac_try" in
28087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088   *) ac_try_echo=$ac_try;;
28089 esac
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091   (eval "$ac_link") 2>conftest.er1
28092   ac_status=$?
28093   grep -v '^ *+' conftest.er1 >conftest.err
28094   rm -f conftest.er1
28095   cat conftest.err >&5
28096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097   (exit $ac_status); } && {
28098          test -z "$ac_c_werror_flag" ||
28099          test ! -s conftest.err
28100        } && test -s conftest$ac_exeext &&
28101        $as_test_x conftest$ac_exeext; then
28102   eval "$as_ac_var=yes"
28103 else
28104   echo "$as_me: failed program was:" >&5
28105 sed 's/^/| /' conftest.$ac_ext >&5
28106
28107         eval "$as_ac_var=no"
28108 fi
28109
28110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28111       conftest$ac_exeext conftest.$ac_ext
28112 fi
28113 ac_res=`eval echo '${'$as_ac_var'}'`
28114                { echo "$as_me:$LINENO: result: $ac_res" >&5
28115 echo "${ECHO_T}$ac_res" >&6; }
28116 if test `eval echo '${'$as_ac_var'}'` = yes; then
28117   cat >>confdefs.h <<_ACEOF
28118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28119 _ACEOF
28120
28121 fi
28122 done
28123
28124 fi
28125
28126
28127
28128         if test "x$ac_cv_func_regcomp" != "xyes"; then
28129             if test "$wxUSE_REGEX" = "sys" ; then
28130                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28131 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28132    { (exit 1); exit 1; }; }
28133             else
28134                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28135 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28136                 wxUSE_REGEX=builtin
28137             fi
28138         else
28139                         wxUSE_REGEX=sys
28140                         cat >>confdefs.h <<\_ACEOF
28141 #define WX_NO_REGEX_ADVANCED 1
28142 _ACEOF
28143
28144         fi
28145     fi
28146 fi
28147
28148
28149 ZLIB_LINK=
28150 if test "$wxUSE_ZLIB" != "no" ; then
28151     cat >>confdefs.h <<\_ACEOF
28152 #define wxUSE_ZLIB 1
28153 _ACEOF
28154
28155
28156     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28157                                                 if test "$USE_DARWIN" = 1; then
28158             system_zlib_h_ok="yes"
28159         else
28160                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28161 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28162 if test "${ac_cv_header_zlib_h+set}" = set; then
28163   echo $ECHO_N "(cached) $ECHO_C" >&6
28164 else
28165   if test "$cross_compiling" = yes; then
28166                       unset ac_cv_header_zlib_h
28167
28168 else
28169   cat >conftest.$ac_ext <<_ACEOF
28170 /* confdefs.h.  */
28171 _ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h.  */
28175
28176                         #include <zlib.h>
28177                         #include <stdio.h>
28178
28179                         int main()
28180                         {
28181                             FILE *f=fopen("conftestval", "w");
28182                             if (!f) exit(1);
28183                             fprintf(f, "%s",
28184                                     ZLIB_VERSION[0] == '1' &&
28185                                     (ZLIB_VERSION[2] > '1' ||
28186                                     (ZLIB_VERSION[2] == '1' &&
28187                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28188                             exit(0);
28189                         }
28190
28191 _ACEOF
28192 rm -f conftest$ac_exeext
28193 if { (ac_try="$ac_link"
28194 case "(($ac_try" in
28195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196   *) ac_try_echo=$ac_try;;
28197 esac
28198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199   (eval "$ac_link") 2>&5
28200   ac_status=$?
28201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28203   { (case "(($ac_try" in
28204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205   *) ac_try_echo=$ac_try;;
28206 esac
28207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208   (eval "$ac_try") 2>&5
28209   ac_status=$?
28210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211   (exit $ac_status); }; }; then
28212   ac_cv_header_zlib_h=`cat conftestval`
28213 else
28214   echo "$as_me: program exited with status $ac_status" >&5
28215 echo "$as_me: failed program was:" >&5
28216 sed 's/^/| /' conftest.$ac_ext >&5
28217
28218 ( exit $ac_status )
28219 ac_cv_header_zlib_h=no
28220 fi
28221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28222 fi
28223
28224
28225
28226 fi
28227 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28228 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28229                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28230 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28231 if test "${ac_cv_header_zlib_h+set}" = set; then
28232   echo $ECHO_N "(cached) $ECHO_C" >&6
28233 else
28234   cat >conftest.$ac_ext <<_ACEOF
28235 /* confdefs.h.  */
28236 _ACEOF
28237 cat confdefs.h >>conftest.$ac_ext
28238 cat >>conftest.$ac_ext <<_ACEOF
28239 /* end confdefs.h.  */
28240
28241
28242 #include <zlib.h>
28243 _ACEOF
28244 rm -f conftest.$ac_objext
28245 if { (ac_try="$ac_compile"
28246 case "(($ac_try" in
28247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28248   *) ac_try_echo=$ac_try;;
28249 esac
28250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28251   (eval "$ac_compile") 2>conftest.er1
28252   ac_status=$?
28253   grep -v '^ *+' conftest.er1 >conftest.err
28254   rm -f conftest.er1
28255   cat conftest.err >&5
28256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257   (exit $ac_status); } && {
28258          test -z "$ac_c_werror_flag" ||
28259          test ! -s conftest.err
28260        } && test -s conftest.$ac_objext; then
28261   ac_cv_header_zlib_h=yes
28262 else
28263   echo "$as_me: failed program was:" >&5
28264 sed 's/^/| /' conftest.$ac_ext >&5
28265
28266         ac_cv_header_zlib_h=no
28267 fi
28268
28269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28270 fi
28271 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28272 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28273
28274
28275
28276             system_zlib_h_ok=$ac_cv_header_zlib_h
28277         fi
28278
28279         if test "$system_zlib_h_ok" = "yes"; then
28280             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28281 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28282 if test "${ac_cv_lib_z_deflate+set}" = set; then
28283   echo $ECHO_N "(cached) $ECHO_C" >&6
28284 else
28285   ac_check_lib_save_LIBS=$LIBS
28286 LIBS="-lz  $LIBS"
28287 cat >conftest.$ac_ext <<_ACEOF
28288 /* confdefs.h.  */
28289 _ACEOF
28290 cat confdefs.h >>conftest.$ac_ext
28291 cat >>conftest.$ac_ext <<_ACEOF
28292 /* end confdefs.h.  */
28293
28294 /* Override any GCC internal prototype to avoid an error.
28295    Use char because int might match the return type of a GCC
28296    builtin and then its argument prototype would still apply.  */
28297 #ifdef __cplusplus
28298 extern "C"
28299 #endif
28300 char deflate ();
28301 int
28302 main ()
28303 {
28304 return deflate ();
28305   ;
28306   return 0;
28307 }
28308 _ACEOF
28309 rm -f conftest.$ac_objext conftest$ac_exeext
28310 if { (ac_try="$ac_link"
28311 case "(($ac_try" in
28312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28313   *) ac_try_echo=$ac_try;;
28314 esac
28315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28316   (eval "$ac_link") 2>conftest.er1
28317   ac_status=$?
28318   grep -v '^ *+' conftest.er1 >conftest.err
28319   rm -f conftest.er1
28320   cat conftest.err >&5
28321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322   (exit $ac_status); } && {
28323          test -z "$ac_c_werror_flag" ||
28324          test ! -s conftest.err
28325        } && test -s conftest$ac_exeext &&
28326        $as_test_x conftest$ac_exeext; then
28327   ac_cv_lib_z_deflate=yes
28328 else
28329   echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28331
28332         ac_cv_lib_z_deflate=no
28333 fi
28334
28335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28336       conftest$ac_exeext conftest.$ac_ext
28337 LIBS=$ac_check_lib_save_LIBS
28338 fi
28339 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28340 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28341 if test $ac_cv_lib_z_deflate = yes; then
28342   ZLIB_LINK=" -lz"
28343 fi
28344
28345         fi
28346
28347         if test "x$ZLIB_LINK" = "x" ; then
28348             if test "$wxUSE_ZLIB" = "sys" ; then
28349                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28350 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28351    { (exit 1); exit 1; }; }
28352             else
28353                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28354 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28355                 wxUSE_ZLIB=builtin
28356             fi
28357         else
28358                         wxUSE_ZLIB=sys
28359         fi
28360     fi
28361 fi
28362
28363
28364 PNG_LINK=
28365 if test "$wxUSE_LIBPNG" != "no" ; then
28366     cat >>confdefs.h <<\_ACEOF
28367 #define wxUSE_LIBPNG 1
28368 _ACEOF
28369
28370
28371     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28372         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28373 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28374         wxUSE_LIBPNG=sys
28375     fi
28376
28377                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28378         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28379 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28380         wxUSE_LIBPNG=builtin
28381     fi
28382
28383     if test "$wxUSE_MGL" != 1 ; then
28384                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28385                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28386 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28387 if test "${ac_cv_header_png_h+set}" = set; then
28388   echo $ECHO_N "(cached) $ECHO_C" >&6
28389 else
28390   if test "$cross_compiling" = yes; then
28391                       unset ac_cv_header_png_h
28392
28393 else
28394   cat >conftest.$ac_ext <<_ACEOF
28395 /* confdefs.h.  */
28396 _ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h.  */
28400
28401                         #include <png.h>
28402                         #include <stdio.h>
28403
28404                         int main()
28405                         {
28406                             FILE *f=fopen("conftestval", "w");
28407                             if (!f) exit(1);
28408                             fprintf(f, "%s",
28409                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28410                             exit(0);
28411                         }
28412
28413 _ACEOF
28414 rm -f conftest$ac_exeext
28415 if { (ac_try="$ac_link"
28416 case "(($ac_try" in
28417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418   *) ac_try_echo=$ac_try;;
28419 esac
28420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28421   (eval "$ac_link") 2>&5
28422   ac_status=$?
28423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28425   { (case "(($ac_try" in
28426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427   *) ac_try_echo=$ac_try;;
28428 esac
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430   (eval "$ac_try") 2>&5
28431   ac_status=$?
28432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433   (exit $ac_status); }; }; then
28434   ac_cv_header_png_h=`cat conftestval`
28435 else
28436   echo "$as_me: program exited with status $ac_status" >&5
28437 echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28439
28440 ( exit $ac_status )
28441 ac_cv_header_png_h=no
28442 fi
28443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28444 fi
28445
28446
28447
28448 fi
28449 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28450 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28451             { echo "$as_me:$LINENO: checking for png.h" >&5
28452 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28453 if test "${ac_cv_header_png_h+set}" = set; then
28454   echo $ECHO_N "(cached) $ECHO_C" >&6
28455 else
28456   cat >conftest.$ac_ext <<_ACEOF
28457 /* confdefs.h.  */
28458 _ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h.  */
28462
28463
28464 #include <png.h>
28465 _ACEOF
28466 rm -f conftest.$ac_objext
28467 if { (ac_try="$ac_compile"
28468 case "(($ac_try" in
28469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470   *) ac_try_echo=$ac_try;;
28471 esac
28472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473   (eval "$ac_compile") 2>conftest.er1
28474   ac_status=$?
28475   grep -v '^ *+' conftest.er1 >conftest.err
28476   rm -f conftest.er1
28477   cat conftest.err >&5
28478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479   (exit $ac_status); } && {
28480          test -z "$ac_c_werror_flag" ||
28481          test ! -s conftest.err
28482        } && test -s conftest.$ac_objext; then
28483   ac_cv_header_png_h=yes
28484 else
28485   echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28487
28488         ac_cv_header_png_h=no
28489 fi
28490
28491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28492 fi
28493 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28494 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28495
28496
28497
28498             if test "$ac_cv_header_png_h" = "yes"; then
28499                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28500 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28501 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28502   echo $ECHO_N "(cached) $ECHO_C" >&6
28503 else
28504   ac_check_lib_save_LIBS=$LIBS
28505 LIBS="-lpng -lz -lm $LIBS"
28506 cat >conftest.$ac_ext <<_ACEOF
28507 /* confdefs.h.  */
28508 _ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h.  */
28512
28513 /* Override any GCC internal prototype to avoid an error.
28514    Use char because int might match the return type of a GCC
28515    builtin and then its argument prototype would still apply.  */
28516 #ifdef __cplusplus
28517 extern "C"
28518 #endif
28519 char png_sig_cmp ();
28520 int
28521 main ()
28522 {
28523 return png_sig_cmp ();
28524   ;
28525   return 0;
28526 }
28527 _ACEOF
28528 rm -f conftest.$ac_objext conftest$ac_exeext
28529 if { (ac_try="$ac_link"
28530 case "(($ac_try" in
28531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28532   *) ac_try_echo=$ac_try;;
28533 esac
28534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28535   (eval "$ac_link") 2>conftest.er1
28536   ac_status=$?
28537   grep -v '^ *+' conftest.er1 >conftest.err
28538   rm -f conftest.er1
28539   cat conftest.err >&5
28540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541   (exit $ac_status); } && {
28542          test -z "$ac_c_werror_flag" ||
28543          test ! -s conftest.err
28544        } && test -s conftest$ac_exeext &&
28545        $as_test_x conftest$ac_exeext; then
28546   ac_cv_lib_png_png_sig_cmp=yes
28547 else
28548   echo "$as_me: failed program was:" >&5
28549 sed 's/^/| /' conftest.$ac_ext >&5
28550
28551         ac_cv_lib_png_png_sig_cmp=no
28552 fi
28553
28554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28555       conftest$ac_exeext conftest.$ac_ext
28556 LIBS=$ac_check_lib_save_LIBS
28557 fi
28558 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28559 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28560 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28561   PNG_LINK=" -lpng -lz"
28562 fi
28563
28564             fi
28565
28566             if test "x$PNG_LINK" = "x" ; then
28567                 if test "$wxUSE_LIBPNG" = "sys" ; then
28568                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28569 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28570    { (exit 1); exit 1; }; }
28571                 else
28572                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28573 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28574                     wxUSE_LIBPNG=builtin
28575                 fi
28576             else
28577                                 wxUSE_LIBPNG=sys
28578             fi
28579         fi
28580     fi
28581 fi
28582
28583
28584 JPEG_LINK=
28585 if test "$wxUSE_LIBJPEG" != "no" ; then
28586     cat >>confdefs.h <<\_ACEOF
28587 #define wxUSE_LIBJPEG 1
28588 _ACEOF
28589
28590
28591     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28592         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28593 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28594         wxUSE_LIBJPEG=sys
28595     fi
28596
28597     if test "$wxUSE_MGL" != 1 ; then
28598                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28599                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28600 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28601             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28602   echo $ECHO_N "(cached) $ECHO_C" >&6
28603 else
28604   cat >conftest.$ac_ext <<_ACEOF
28605 /* confdefs.h.  */
28606 _ACEOF
28607 cat confdefs.h >>conftest.$ac_ext
28608 cat >>conftest.$ac_ext <<_ACEOF
28609 /* end confdefs.h.  */
28610
28611                         #undef HAVE_STDLIB_H
28612                         #include <stdio.h>
28613                         #include <jpeglib.h>
28614
28615 int
28616 main ()
28617 {
28618
28619
28620   ;
28621   return 0;
28622 }
28623 _ACEOF
28624 rm -f conftest.$ac_objext
28625 if { (ac_try="$ac_compile"
28626 case "(($ac_try" in
28627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28628   *) ac_try_echo=$ac_try;;
28629 esac
28630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28631   (eval "$ac_compile") 2>conftest.er1
28632   ac_status=$?
28633   grep -v '^ *+' conftest.er1 >conftest.err
28634   rm -f conftest.er1
28635   cat conftest.err >&5
28636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637   (exit $ac_status); } && {
28638          test -z "$ac_c_werror_flag" ||
28639          test ! -s conftest.err
28640        } && test -s conftest.$ac_objext; then
28641   ac_cv_header_jpeglib_h=yes
28642 else
28643   echo "$as_me: failed program was:" >&5
28644 sed 's/^/| /' conftest.$ac_ext >&5
28645
28646         ac_cv_header_jpeglib_h=no
28647
28648 fi
28649
28650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28651
28652 fi
28653
28654             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28655 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28656
28657             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28658                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28659 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28660 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28661   echo $ECHO_N "(cached) $ECHO_C" >&6
28662 else
28663   ac_check_lib_save_LIBS=$LIBS
28664 LIBS="-ljpeg  $LIBS"
28665 cat >conftest.$ac_ext <<_ACEOF
28666 /* confdefs.h.  */
28667 _ACEOF
28668 cat confdefs.h >>conftest.$ac_ext
28669 cat >>conftest.$ac_ext <<_ACEOF
28670 /* end confdefs.h.  */
28671
28672 /* Override any GCC internal prototype to avoid an error.
28673    Use char because int might match the return type of a GCC
28674    builtin and then its argument prototype would still apply.  */
28675 #ifdef __cplusplus
28676 extern "C"
28677 #endif
28678 char jpeg_read_header ();
28679 int
28680 main ()
28681 {
28682 return jpeg_read_header ();
28683   ;
28684   return 0;
28685 }
28686 _ACEOF
28687 rm -f conftest.$ac_objext conftest$ac_exeext
28688 if { (ac_try="$ac_link"
28689 case "(($ac_try" in
28690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691   *) ac_try_echo=$ac_try;;
28692 esac
28693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694   (eval "$ac_link") 2>conftest.er1
28695   ac_status=$?
28696   grep -v '^ *+' conftest.er1 >conftest.err
28697   rm -f conftest.er1
28698   cat conftest.err >&5
28699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700   (exit $ac_status); } && {
28701          test -z "$ac_c_werror_flag" ||
28702          test ! -s conftest.err
28703        } && test -s conftest$ac_exeext &&
28704        $as_test_x conftest$ac_exeext; then
28705   ac_cv_lib_jpeg_jpeg_read_header=yes
28706 else
28707   echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28709
28710         ac_cv_lib_jpeg_jpeg_read_header=no
28711 fi
28712
28713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28714       conftest$ac_exeext conftest.$ac_ext
28715 LIBS=$ac_check_lib_save_LIBS
28716 fi
28717 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28718 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28719 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28720   JPEG_LINK=" -ljpeg"
28721 fi
28722
28723             fi
28724
28725             if test "x$JPEG_LINK" = "x" ; then
28726                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28727                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28728 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28729    { (exit 1); exit 1; }; }
28730                 else
28731                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28732 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28733                     wxUSE_LIBJPEG=builtin
28734                 fi
28735             else
28736                                 wxUSE_LIBJPEG=sys
28737
28738                 if test "$wxUSE_MSW" = 1; then
28739                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28740 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28741 if test "${ac_cv_type_boolean+set}" = set; then
28742   echo $ECHO_N "(cached) $ECHO_C" >&6
28743 else
28744   cat >conftest.$ac_ext <<_ACEOF
28745 /* confdefs.h.  */
28746 _ACEOF
28747 cat confdefs.h >>conftest.$ac_ext
28748 cat >>conftest.$ac_ext <<_ACEOF
28749 /* end confdefs.h.  */
28750 #include <windows.h>
28751
28752 typedef boolean ac__type_new_;
28753 int
28754 main ()
28755 {
28756 if ((ac__type_new_ *) 0)
28757   return 0;
28758 if (sizeof (ac__type_new_))
28759   return 0;
28760   ;
28761   return 0;
28762 }
28763 _ACEOF
28764 rm -f conftest.$ac_objext
28765 if { (ac_try="$ac_compile"
28766 case "(($ac_try" in
28767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768   *) ac_try_echo=$ac_try;;
28769 esac
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771   (eval "$ac_compile") 2>conftest.er1
28772   ac_status=$?
28773   grep -v '^ *+' conftest.er1 >conftest.err
28774   rm -f conftest.er1
28775   cat conftest.err >&5
28776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777   (exit $ac_status); } && {
28778          test -z "$ac_c_werror_flag" ||
28779          test ! -s conftest.err
28780        } && test -s conftest.$ac_objext; then
28781   ac_cv_type_boolean=yes
28782 else
28783   echo "$as_me: failed program was:" >&5
28784 sed 's/^/| /' conftest.$ac_ext >&5
28785
28786         ac_cv_type_boolean=no
28787 fi
28788
28789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28790 fi
28791 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28792 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28793 if test $ac_cv_type_boolean = yes; then
28794
28795 cat >>confdefs.h <<_ACEOF
28796 #define HAVE_BOOLEAN 1
28797 _ACEOF
28798
28799
28800                             { echo "$as_me:$LINENO: checking for boolean" >&5
28801 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28802 if test "${ac_cv_type_boolean+set}" = set; then
28803   echo $ECHO_N "(cached) $ECHO_C" >&6
28804 else
28805   cat >conftest.$ac_ext <<_ACEOF
28806 /* confdefs.h.  */
28807 _ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h.  */
28811
28812                                     #undef HAVE_BOOLEAN
28813                                     #include <stdio.h>
28814                                     #include <jpeglib.h>
28815
28816
28817 typedef boolean ac__type_new_;
28818 int
28819 main ()
28820 {
28821 if ((ac__type_new_ *) 0)
28822   return 0;
28823 if (sizeof (ac__type_new_))
28824   return 0;
28825   ;
28826   return 0;
28827 }
28828 _ACEOF
28829 rm -f conftest.$ac_objext
28830 if { (ac_try="$ac_compile"
28831 case "(($ac_try" in
28832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833   *) ac_try_echo=$ac_try;;
28834 esac
28835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28836   (eval "$ac_compile") 2>conftest.er1
28837   ac_status=$?
28838   grep -v '^ *+' conftest.er1 >conftest.err
28839   rm -f conftest.er1
28840   cat conftest.err >&5
28841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842   (exit $ac_status); } && {
28843          test -z "$ac_c_werror_flag" ||
28844          test ! -s conftest.err
28845        } && test -s conftest.$ac_objext; then
28846   ac_cv_type_boolean=yes
28847 else
28848   echo "$as_me: failed program was:" >&5
28849 sed 's/^/| /' conftest.$ac_ext >&5
28850
28851         ac_cv_type_boolean=no
28852 fi
28853
28854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855 fi
28856 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28857 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28858
28859 # The cast to long int works around a bug in the HP C Compiler
28860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28862 # This bug is HP SR number 8606223364.
28863 { echo "$as_me:$LINENO: checking size of boolean" >&5
28864 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28865 if test "${ac_cv_sizeof_boolean+set}" = set; then
28866   echo $ECHO_N "(cached) $ECHO_C" >&6
28867 else
28868   if test "$cross_compiling" = yes; then
28869   # Depending upon the size, compute the lo and hi bounds.
28870 cat >conftest.$ac_ext <<_ACEOF
28871 /* confdefs.h.  */
28872 _ACEOF
28873 cat confdefs.h >>conftest.$ac_ext
28874 cat >>conftest.$ac_ext <<_ACEOF
28875 /* end confdefs.h.  */
28876
28877                                     #undef HAVE_BOOLEAN
28878                                     #include <stdio.h>
28879                                     #include <jpeglib.h>
28880
28881
28882    typedef boolean ac__type_sizeof_;
28883 int
28884 main ()
28885 {
28886 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28887 test_array [0] = 0
28888
28889   ;
28890   return 0;
28891 }
28892 _ACEOF
28893 rm -f conftest.$ac_objext
28894 if { (ac_try="$ac_compile"
28895 case "(($ac_try" in
28896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897   *) ac_try_echo=$ac_try;;
28898 esac
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900   (eval "$ac_compile") 2>conftest.er1
28901   ac_status=$?
28902   grep -v '^ *+' conftest.er1 >conftest.err
28903   rm -f conftest.er1
28904   cat conftest.err >&5
28905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906   (exit $ac_status); } && {
28907          test -z "$ac_c_werror_flag" ||
28908          test ! -s conftest.err
28909        } && test -s conftest.$ac_objext; then
28910   ac_lo=0 ac_mid=0
28911   while :; do
28912     cat >conftest.$ac_ext <<_ACEOF
28913 /* confdefs.h.  */
28914 _ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h.  */
28918
28919                                     #undef HAVE_BOOLEAN
28920                                     #include <stdio.h>
28921                                     #include <jpeglib.h>
28922
28923
28924    typedef boolean ac__type_sizeof_;
28925 int
28926 main ()
28927 {
28928 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28929 test_array [0] = 0
28930
28931   ;
28932   return 0;
28933 }
28934 _ACEOF
28935 rm -f conftest.$ac_objext
28936 if { (ac_try="$ac_compile"
28937 case "(($ac_try" in
28938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939   *) ac_try_echo=$ac_try;;
28940 esac
28941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942   (eval "$ac_compile") 2>conftest.er1
28943   ac_status=$?
28944   grep -v '^ *+' conftest.er1 >conftest.err
28945   rm -f conftest.er1
28946   cat conftest.err >&5
28947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948   (exit $ac_status); } && {
28949          test -z "$ac_c_werror_flag" ||
28950          test ! -s conftest.err
28951        } && test -s conftest.$ac_objext; then
28952   ac_hi=$ac_mid; break
28953 else
28954   echo "$as_me: failed program was:" >&5
28955 sed 's/^/| /' conftest.$ac_ext >&5
28956
28957         ac_lo=`expr $ac_mid + 1`
28958                         if test $ac_lo -le $ac_mid; then
28959                           ac_lo= ac_hi=
28960                           break
28961                         fi
28962                         ac_mid=`expr 2 '*' $ac_mid + 1`
28963 fi
28964
28965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28966   done
28967 else
28968   echo "$as_me: failed program was:" >&5
28969 sed 's/^/| /' conftest.$ac_ext >&5
28970
28971         cat >conftest.$ac_ext <<_ACEOF
28972 /* confdefs.h.  */
28973 _ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h.  */
28977
28978                                     #undef HAVE_BOOLEAN
28979                                     #include <stdio.h>
28980                                     #include <jpeglib.h>
28981
28982
28983    typedef boolean ac__type_sizeof_;
28984 int
28985 main ()
28986 {
28987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28988 test_array [0] = 0
28989
28990   ;
28991   return 0;
28992 }
28993 _ACEOF
28994 rm -f conftest.$ac_objext
28995 if { (ac_try="$ac_compile"
28996 case "(($ac_try" in
28997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998   *) ac_try_echo=$ac_try;;
28999 esac
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001   (eval "$ac_compile") 2>conftest.er1
29002   ac_status=$?
29003   grep -v '^ *+' conftest.er1 >conftest.err
29004   rm -f conftest.er1
29005   cat conftest.err >&5
29006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007   (exit $ac_status); } && {
29008          test -z "$ac_c_werror_flag" ||
29009          test ! -s conftest.err
29010        } && test -s conftest.$ac_objext; then
29011   ac_hi=-1 ac_mid=-1
29012   while :; do
29013     cat >conftest.$ac_ext <<_ACEOF
29014 /* confdefs.h.  */
29015 _ACEOF
29016 cat confdefs.h >>conftest.$ac_ext
29017 cat >>conftest.$ac_ext <<_ACEOF
29018 /* end confdefs.h.  */
29019
29020                                     #undef HAVE_BOOLEAN
29021                                     #include <stdio.h>
29022                                     #include <jpeglib.h>
29023
29024
29025    typedef boolean ac__type_sizeof_;
29026 int
29027 main ()
29028 {
29029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29030 test_array [0] = 0
29031
29032   ;
29033   return 0;
29034 }
29035 _ACEOF
29036 rm -f conftest.$ac_objext
29037 if { (ac_try="$ac_compile"
29038 case "(($ac_try" in
29039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29040   *) ac_try_echo=$ac_try;;
29041 esac
29042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29043   (eval "$ac_compile") 2>conftest.er1
29044   ac_status=$?
29045   grep -v '^ *+' conftest.er1 >conftest.err
29046   rm -f conftest.er1
29047   cat conftest.err >&5
29048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049   (exit $ac_status); } && {
29050          test -z "$ac_c_werror_flag" ||
29051          test ! -s conftest.err
29052        } && test -s conftest.$ac_objext; then
29053   ac_lo=$ac_mid; break
29054 else
29055   echo "$as_me: failed program was:" >&5
29056 sed 's/^/| /' conftest.$ac_ext >&5
29057
29058         ac_hi=`expr '(' $ac_mid ')' - 1`
29059                         if test $ac_mid -le $ac_hi; then
29060                           ac_lo= ac_hi=
29061                           break
29062                         fi
29063                         ac_mid=`expr 2 '*' $ac_mid`
29064 fi
29065
29066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29067   done
29068 else
29069   echo "$as_me: failed program was:" >&5
29070 sed 's/^/| /' conftest.$ac_ext >&5
29071
29072         ac_lo= ac_hi=
29073 fi
29074
29075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29076 fi
29077
29078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29079 # Binary search between lo and hi bounds.
29080 while test "x$ac_lo" != "x$ac_hi"; do
29081   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29082   cat >conftest.$ac_ext <<_ACEOF
29083 /* confdefs.h.  */
29084 _ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h.  */
29088
29089                                     #undef HAVE_BOOLEAN
29090                                     #include <stdio.h>
29091                                     #include <jpeglib.h>
29092
29093
29094    typedef boolean ac__type_sizeof_;
29095 int
29096 main ()
29097 {
29098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29099 test_array [0] = 0
29100
29101   ;
29102   return 0;
29103 }
29104 _ACEOF
29105 rm -f conftest.$ac_objext
29106 if { (ac_try="$ac_compile"
29107 case "(($ac_try" in
29108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109   *) ac_try_echo=$ac_try;;
29110 esac
29111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112   (eval "$ac_compile") 2>conftest.er1
29113   ac_status=$?
29114   grep -v '^ *+' conftest.er1 >conftest.err
29115   rm -f conftest.er1
29116   cat conftest.err >&5
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); } && {
29119          test -z "$ac_c_werror_flag" ||
29120          test ! -s conftest.err
29121        } && test -s conftest.$ac_objext; then
29122   ac_hi=$ac_mid
29123 else
29124   echo "$as_me: failed program was:" >&5
29125 sed 's/^/| /' conftest.$ac_ext >&5
29126
29127         ac_lo=`expr '(' $ac_mid ')' + 1`
29128 fi
29129
29130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29131 done
29132 case $ac_lo in
29133 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29134 '') if test "$ac_cv_type_boolean" = yes; then
29135      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29136 See \`config.log' for more details." >&5
29137 echo "$as_me: error: cannot compute sizeof (boolean)
29138 See \`config.log' for more details." >&2;}
29139    { (exit 77); exit 77; }; }
29140    else
29141      ac_cv_sizeof_boolean=0
29142    fi ;;
29143 esac
29144 else
29145   cat >conftest.$ac_ext <<_ACEOF
29146 /* confdefs.h.  */
29147 _ACEOF
29148 cat confdefs.h >>conftest.$ac_ext
29149 cat >>conftest.$ac_ext <<_ACEOF
29150 /* end confdefs.h.  */
29151
29152                                     #undef HAVE_BOOLEAN
29153                                     #include <stdio.h>
29154                                     #include <jpeglib.h>
29155
29156
29157    typedef boolean ac__type_sizeof_;
29158 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29159 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29160 #include <stdio.h>
29161 #include <stdlib.h>
29162 int
29163 main ()
29164 {
29165
29166   FILE *f = fopen ("conftest.val", "w");
29167   if (! f)
29168     return 1;
29169   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29170     {
29171       long int i = longval ();
29172       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29173         return 1;
29174       fprintf (f, "%ld\n", i);
29175     }
29176   else
29177     {
29178       unsigned long int i = ulongval ();
29179       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29180         return 1;
29181       fprintf (f, "%lu\n", i);
29182     }
29183   return ferror (f) || fclose (f) != 0;
29184
29185   ;
29186   return 0;
29187 }
29188 _ACEOF
29189 rm -f conftest$ac_exeext
29190 if { (ac_try="$ac_link"
29191 case "(($ac_try" in
29192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29193   *) ac_try_echo=$ac_try;;
29194 esac
29195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29196   (eval "$ac_link") 2>&5
29197   ac_status=$?
29198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29200   { (case "(($ac_try" in
29201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29202   *) ac_try_echo=$ac_try;;
29203 esac
29204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29205   (eval "$ac_try") 2>&5
29206   ac_status=$?
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); }; }; then
29209   ac_cv_sizeof_boolean=`cat conftest.val`
29210 else
29211   echo "$as_me: program exited with status $ac_status" >&5
29212 echo "$as_me: failed program was:" >&5
29213 sed 's/^/| /' conftest.$ac_ext >&5
29214
29215 ( exit $ac_status )
29216 if test "$ac_cv_type_boolean" = yes; then
29217      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29218 See \`config.log' for more details." >&5
29219 echo "$as_me: error: cannot compute sizeof (boolean)
29220 See \`config.log' for more details." >&2;}
29221    { (exit 77); exit 77; }; }
29222    else
29223      ac_cv_sizeof_boolean=0
29224    fi
29225 fi
29226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29227 fi
29228 rm -f conftest.val
29229 fi
29230 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29231 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29232
29233
29234
29235 cat >>confdefs.h <<_ACEOF
29236 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29237 _ACEOF
29238
29239
29240                             cat >>confdefs.h <<_ACEOF
29241 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29242 _ACEOF
29243
29244
29245 fi
29246
29247                 fi
29248             fi
29249         fi
29250     fi
29251 fi
29252
29253
29254 TIFF_LINK=
29255 TIFF_PREREQ_LINKS=-lm
29256 if test "$wxUSE_LIBTIFF" != "no" ; then
29257     cat >>confdefs.h <<\_ACEOF
29258 #define wxUSE_LIBTIFF 1
29259 _ACEOF
29260
29261
29262     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29263                         if test "$wxUSE_LIBJPEG" = "sys"; then
29264             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29265         fi
29266         if test "$wxUSE_ZLIB" = "sys"; then
29267             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29268         fi
29269         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29270 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29271 if test "${ac_cv_header_tiffio_h+set}" = set; then
29272   echo $ECHO_N "(cached) $ECHO_C" >&6
29273 else
29274   cat >conftest.$ac_ext <<_ACEOF
29275 /* confdefs.h.  */
29276 _ACEOF
29277 cat confdefs.h >>conftest.$ac_ext
29278 cat >>conftest.$ac_ext <<_ACEOF
29279 /* end confdefs.h.  */
29280
29281
29282
29283 #include <tiffio.h>
29284 _ACEOF
29285 rm -f conftest.$ac_objext
29286 if { (ac_try="$ac_compile"
29287 case "(($ac_try" in
29288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289   *) ac_try_echo=$ac_try;;
29290 esac
29291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292   (eval "$ac_compile") 2>conftest.er1
29293   ac_status=$?
29294   grep -v '^ *+' conftest.er1 >conftest.err
29295   rm -f conftest.er1
29296   cat conftest.err >&5
29297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298   (exit $ac_status); } && {
29299          test -z "$ac_c_werror_flag" ||
29300          test ! -s conftest.err
29301        } && test -s conftest.$ac_objext; then
29302   ac_cv_header_tiffio_h=yes
29303 else
29304   echo "$as_me: failed program was:" >&5
29305 sed 's/^/| /' conftest.$ac_ext >&5
29306
29307         ac_cv_header_tiffio_h=no
29308 fi
29309
29310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29311 fi
29312 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29313 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29314 if test $ac_cv_header_tiffio_h = yes; then
29315
29316                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29317 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29318 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29319   echo $ECHO_N "(cached) $ECHO_C" >&6
29320 else
29321   ac_check_lib_save_LIBS=$LIBS
29322 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29323 cat >conftest.$ac_ext <<_ACEOF
29324 /* confdefs.h.  */
29325 _ACEOF
29326 cat confdefs.h >>conftest.$ac_ext
29327 cat >>conftest.$ac_ext <<_ACEOF
29328 /* end confdefs.h.  */
29329
29330 /* Override any GCC internal prototype to avoid an error.
29331    Use char because int might match the return type of a GCC
29332    builtin and then its argument prototype would still apply.  */
29333 #ifdef __cplusplus
29334 extern "C"
29335 #endif
29336 char TIFFError ();
29337 int
29338 main ()
29339 {
29340 return TIFFError ();
29341   ;
29342   return 0;
29343 }
29344 _ACEOF
29345 rm -f conftest.$ac_objext conftest$ac_exeext
29346 if { (ac_try="$ac_link"
29347 case "(($ac_try" in
29348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29349   *) ac_try_echo=$ac_try;;
29350 esac
29351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29352   (eval "$ac_link") 2>conftest.er1
29353   ac_status=$?
29354   grep -v '^ *+' conftest.er1 >conftest.err
29355   rm -f conftest.er1
29356   cat conftest.err >&5
29357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358   (exit $ac_status); } && {
29359          test -z "$ac_c_werror_flag" ||
29360          test ! -s conftest.err
29361        } && test -s conftest$ac_exeext &&
29362        $as_test_x conftest$ac_exeext; then
29363   ac_cv_lib_tiff_TIFFError=yes
29364 else
29365   echo "$as_me: failed program was:" >&5
29366 sed 's/^/| /' conftest.$ac_ext >&5
29367
29368         ac_cv_lib_tiff_TIFFError=no
29369 fi
29370
29371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29372       conftest$ac_exeext conftest.$ac_ext
29373 LIBS=$ac_check_lib_save_LIBS
29374 fi
29375 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29376 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29377 if test $ac_cv_lib_tiff_TIFFError = yes; then
29378   TIFF_LINK=" -ltiff"
29379 fi
29380
29381
29382 fi
29383
29384
29385
29386         if test "x$TIFF_LINK" = "x" ; then
29387             if test "$wxUSE_LIBTIFF" = "sys" ; then
29388                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29389 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29390    { (exit 1); exit 1; }; }
29391             else
29392                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29393 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29394                 wxUSE_LIBTIFF=builtin
29395             fi
29396         else
29397                         wxUSE_LIBTIFF=sys
29398         fi
29399     fi
29400     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29401         if test "$wxUSE_LIBJPEG" = "no"; then
29402                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29403         fi
29404         subdirs="$subdirs src/tiff"
29405
29406     fi
29407 fi
29408
29409
29410 if test "$wxUSE_EXPAT" != "no"; then
29411     wxUSE_XML=yes
29412     cat >>confdefs.h <<\_ACEOF
29413 #define wxUSE_EXPAT 1
29414 _ACEOF
29415
29416     cat >>confdefs.h <<\_ACEOF
29417 #define wxUSE_XML 1
29418 _ACEOF
29419
29420
29421     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29422         { echo "$as_me:$LINENO: checking for expat.h" >&5
29423 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29424 if test "${ac_cv_header_expat_h+set}" = set; then
29425   echo $ECHO_N "(cached) $ECHO_C" >&6
29426 else
29427   cat >conftest.$ac_ext <<_ACEOF
29428 /* confdefs.h.  */
29429 _ACEOF
29430 cat confdefs.h >>conftest.$ac_ext
29431 cat >>conftest.$ac_ext <<_ACEOF
29432 /* end confdefs.h.  */
29433
29434
29435 #include <expat.h>
29436 _ACEOF
29437 rm -f conftest.$ac_objext
29438 if { (ac_try="$ac_compile"
29439 case "(($ac_try" in
29440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29441   *) ac_try_echo=$ac_try;;
29442 esac
29443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29444   (eval "$ac_compile") 2>conftest.er1
29445   ac_status=$?
29446   grep -v '^ *+' conftest.er1 >conftest.err
29447   rm -f conftest.er1
29448   cat conftest.err >&5
29449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450   (exit $ac_status); } && {
29451          test -z "$ac_c_werror_flag" ||
29452          test ! -s conftest.err
29453        } && test -s conftest.$ac_objext; then
29454   ac_cv_header_expat_h=yes
29455 else
29456   echo "$as_me: failed program was:" >&5
29457 sed 's/^/| /' conftest.$ac_ext >&5
29458
29459         ac_cv_header_expat_h=no
29460 fi
29461
29462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29463 fi
29464 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29465 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29466 if test $ac_cv_header_expat_h = yes; then
29467   found_expat_h=1
29468 fi
29469
29470
29471         if test "x$found_expat_h" = "x1"; then
29472                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29473 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29474 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29475   echo $ECHO_N "(cached) $ECHO_C" >&6
29476 else
29477
29478                 ac_ext=cpp
29479 ac_cpp='$CXXCPP $CPPFLAGS'
29480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29483
29484                 cat >conftest.$ac_ext <<_ACEOF
29485 /* confdefs.h.  */
29486 _ACEOF
29487 cat confdefs.h >>conftest.$ac_ext
29488 cat >>conftest.$ac_ext <<_ACEOF
29489 /* end confdefs.h.  */
29490 #include <expat.h>
29491 int
29492 main ()
29493 {
29494
29495   ;
29496   return 0;
29497 }
29498 _ACEOF
29499 rm -f conftest.$ac_objext
29500 if { (ac_try="$ac_compile"
29501 case "(($ac_try" in
29502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503   *) ac_try_echo=$ac_try;;
29504 esac
29505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29506   (eval "$ac_compile") 2>conftest.er1
29507   ac_status=$?
29508   grep -v '^ *+' conftest.er1 >conftest.err
29509   rm -f conftest.er1
29510   cat conftest.err >&5
29511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); } && {
29513          test -z "$ac_cxx_werror_flag" ||
29514          test ! -s conftest.err
29515        } && test -s conftest.$ac_objext; then
29516   wx_cv_expat_is_not_broken=yes
29517 else
29518   echo "$as_me: failed program was:" >&5
29519 sed 's/^/| /' conftest.$ac_ext >&5
29520
29521         wx_cv_expat_is_not_broken=no
29522
29523 fi
29524
29525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29526                 ac_ext=c
29527 ac_cpp='$CPP $CPPFLAGS'
29528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29531
29532
29533
29534 fi
29535 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29536 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29537             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29538                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29539 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29540 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29541   echo $ECHO_N "(cached) $ECHO_C" >&6
29542 else
29543   ac_check_lib_save_LIBS=$LIBS
29544 LIBS="-lexpat  $LIBS"
29545 cat >conftest.$ac_ext <<_ACEOF
29546 /* confdefs.h.  */
29547 _ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h.  */
29551
29552 /* Override any GCC internal prototype to avoid an error.
29553    Use char because int might match the return type of a GCC
29554    builtin and then its argument prototype would still apply.  */
29555 #ifdef __cplusplus
29556 extern "C"
29557 #endif
29558 char XML_ParserCreate ();
29559 int
29560 main ()
29561 {
29562 return XML_ParserCreate ();
29563   ;
29564   return 0;
29565 }
29566 _ACEOF
29567 rm -f conftest.$ac_objext conftest$ac_exeext
29568 if { (ac_try="$ac_link"
29569 case "(($ac_try" in
29570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571   *) ac_try_echo=$ac_try;;
29572 esac
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574   (eval "$ac_link") 2>conftest.er1
29575   ac_status=$?
29576   grep -v '^ *+' conftest.er1 >conftest.err
29577   rm -f conftest.er1
29578   cat conftest.err >&5
29579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580   (exit $ac_status); } && {
29581          test -z "$ac_c_werror_flag" ||
29582          test ! -s conftest.err
29583        } && test -s conftest$ac_exeext &&
29584        $as_test_x conftest$ac_exeext; then
29585   ac_cv_lib_expat_XML_ParserCreate=yes
29586 else
29587   echo "$as_me: failed program was:" >&5
29588 sed 's/^/| /' conftest.$ac_ext >&5
29589
29590         ac_cv_lib_expat_XML_ParserCreate=no
29591 fi
29592
29593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29594       conftest$ac_exeext conftest.$ac_ext
29595 LIBS=$ac_check_lib_save_LIBS
29596 fi
29597 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29598 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29599 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29600   EXPAT_LINK=" -lexpat"
29601 fi
29602
29603             fi
29604         fi
29605         if test "x$EXPAT_LINK" = "x" ; then
29606             if test "$wxUSE_EXPAT" = "sys" ; then
29607                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29608 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29609    { (exit 1); exit 1; }; }
29610             else
29611                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29612 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29613                 wxUSE_EXPAT=builtin
29614             fi
29615         else
29616                         wxUSE_EXPAT=sys
29617         fi
29618     fi
29619     if test "$wxUSE_EXPAT" = "builtin" ; then
29620                 subdirs="$subdirs src/expat"
29621
29622     fi
29623 fi
29624
29625
29626
29627 if test "$wxUSE_LIBMSPACK" != "no"; then
29628     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29629 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29630 if test "${ac_cv_header_mspack_h+set}" = set; then
29631   echo $ECHO_N "(cached) $ECHO_C" >&6
29632 else
29633   cat >conftest.$ac_ext <<_ACEOF
29634 /* confdefs.h.  */
29635 _ACEOF
29636 cat confdefs.h >>conftest.$ac_ext
29637 cat >>conftest.$ac_ext <<_ACEOF
29638 /* end confdefs.h.  */
29639
29640
29641 #include <mspack.h>
29642 _ACEOF
29643 rm -f conftest.$ac_objext
29644 if { (ac_try="$ac_compile"
29645 case "(($ac_try" in
29646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647   *) ac_try_echo=$ac_try;;
29648 esac
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650   (eval "$ac_compile") 2>conftest.er1
29651   ac_status=$?
29652   grep -v '^ *+' conftest.er1 >conftest.err
29653   rm -f conftest.er1
29654   cat conftest.err >&5
29655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656   (exit $ac_status); } && {
29657          test -z "$ac_c_werror_flag" ||
29658          test ! -s conftest.err
29659        } && test -s conftest.$ac_objext; then
29660   ac_cv_header_mspack_h=yes
29661 else
29662   echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.$ac_ext >&5
29664
29665         ac_cv_header_mspack_h=no
29666 fi
29667
29668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29669 fi
29670 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29671 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29672 if test $ac_cv_header_mspack_h = yes; then
29673   found_mspack_h=1
29674 fi
29675
29676
29677     if test "x$found_mspack_h" = "x1"; then
29678         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29679 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29680 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29681   echo $ECHO_N "(cached) $ECHO_C" >&6
29682 else
29683   ac_check_lib_save_LIBS=$LIBS
29684 LIBS="-lmspack  $LIBS"
29685 cat >conftest.$ac_ext <<_ACEOF
29686 /* confdefs.h.  */
29687 _ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h.  */
29691
29692 /* Override any GCC internal prototype to avoid an error.
29693    Use char because int might match the return type of a GCC
29694    builtin and then its argument prototype would still apply.  */
29695 #ifdef __cplusplus
29696 extern "C"
29697 #endif
29698 char mspack_create_chm_decompressor ();
29699 int
29700 main ()
29701 {
29702 return mspack_create_chm_decompressor ();
29703   ;
29704   return 0;
29705 }
29706 _ACEOF
29707 rm -f conftest.$ac_objext conftest$ac_exeext
29708 if { (ac_try="$ac_link"
29709 case "(($ac_try" in
29710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29711   *) ac_try_echo=$ac_try;;
29712 esac
29713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29714   (eval "$ac_link") 2>conftest.er1
29715   ac_status=$?
29716   grep -v '^ *+' conftest.er1 >conftest.err
29717   rm -f conftest.er1
29718   cat conftest.err >&5
29719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720   (exit $ac_status); } && {
29721          test -z "$ac_c_werror_flag" ||
29722          test ! -s conftest.err
29723        } && test -s conftest$ac_exeext &&
29724        $as_test_x conftest$ac_exeext; then
29725   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29726 else
29727   echo "$as_me: failed program was:" >&5
29728 sed 's/^/| /' conftest.$ac_ext >&5
29729
29730         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29731 fi
29732
29733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29734       conftest$ac_exeext conftest.$ac_ext
29735 LIBS=$ac_check_lib_save_LIBS
29736 fi
29737 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29738 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29739 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29740   MSPACK_LINK=" -lmspack"
29741 fi
29742
29743     fi
29744     if test "x$MSPACK_LINK" = "x" ; then
29745         wxUSE_LIBMSPACK=no
29746     fi
29747 fi
29748
29749 if test "$wxUSE_LIBMSPACK" != "no"; then
29750     cat >>confdefs.h <<\_ACEOF
29751 #define wxUSE_LIBMSPACK 1
29752 _ACEOF
29753
29754 fi
29755
29756
29757
29758 AFMINSTALL=
29759 WIN32INSTALL=
29760
29761 TOOLKIT=
29762 TOOLKIT_INCLUDE=
29763 WIDGET_SET=
29764
29765 if test "$USE_WIN32" = 1 ; then
29766
29767 for ac_header in w32api.h
29768 do
29769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29773   echo $ECHO_N "(cached) $ECHO_C" >&6
29774 else
29775   cat >conftest.$ac_ext <<_ACEOF
29776 /* confdefs.h.  */
29777 _ACEOF
29778 cat confdefs.h >>conftest.$ac_ext
29779 cat >>conftest.$ac_ext <<_ACEOF
29780 /* end confdefs.h.  */
29781
29782
29783 #include <$ac_header>
29784 _ACEOF
29785 rm -f conftest.$ac_objext
29786 if { (ac_try="$ac_compile"
29787 case "(($ac_try" in
29788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789   *) ac_try_echo=$ac_try;;
29790 esac
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792   (eval "$ac_compile") 2>conftest.er1
29793   ac_status=$?
29794   grep -v '^ *+' conftest.er1 >conftest.err
29795   rm -f conftest.er1
29796   cat conftest.err >&5
29797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798   (exit $ac_status); } && {
29799          test -z "$ac_c_werror_flag" ||
29800          test ! -s conftest.err
29801        } && test -s conftest.$ac_objext; then
29802   eval "$as_ac_Header=yes"
29803 else
29804   echo "$as_me: failed program was:" >&5
29805 sed 's/^/| /' conftest.$ac_ext >&5
29806
29807         eval "$as_ac_Header=no"
29808 fi
29809
29810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29811 fi
29812 ac_res=`eval echo '${'$as_ac_Header'}'`
29813                { echo "$as_me:$LINENO: result: $ac_res" >&5
29814 echo "${ECHO_T}$ac_res" >&6; }
29815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29816   cat >>confdefs.h <<_ACEOF
29817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29818 _ACEOF
29819
29820 fi
29821
29822 done
29823
29824     { echo "$as_me:$LINENO: checking for windows.h" >&5
29825 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29826 if test "${ac_cv_header_windows_h+set}" = set; then
29827   echo $ECHO_N "(cached) $ECHO_C" >&6
29828 else
29829   cat >conftest.$ac_ext <<_ACEOF
29830 /* confdefs.h.  */
29831 _ACEOF
29832 cat confdefs.h >>conftest.$ac_ext
29833 cat >>conftest.$ac_ext <<_ACEOF
29834 /* end confdefs.h.  */
29835
29836
29837 #include <windows.h>
29838 _ACEOF
29839 rm -f conftest.$ac_objext
29840 if { (ac_try="$ac_compile"
29841 case "(($ac_try" in
29842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843   *) ac_try_echo=$ac_try;;
29844 esac
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846   (eval "$ac_compile") 2>conftest.er1
29847   ac_status=$?
29848   grep -v '^ *+' conftest.er1 >conftest.err
29849   rm -f conftest.er1
29850   cat conftest.err >&5
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); } && {
29853          test -z "$ac_c_werror_flag" ||
29854          test ! -s conftest.err
29855        } && test -s conftest.$ac_objext; then
29856   ac_cv_header_windows_h=yes
29857 else
29858   echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29860
29861         ac_cv_header_windows_h=no
29862 fi
29863
29864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29865 fi
29866 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29867 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29868 if test $ac_cv_header_windows_h = yes; then
29869   :
29870 else
29871
29872         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29873 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29874    { (exit 1); exit 1; }; }
29875
29876 fi
29877
29878
29879
29880     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29881     case "${host}" in
29882         x86_64-*-mingw32* )
29883                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29884         ;;
29885     esac
29886     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29887         LIBS="$LIBS -loleacc"
29888     fi
29889
29890     case "${host}" in
29891         *-*-cygwin* )
29892                         LIBS="$LIBS -lkernel32 -luser32"
29893     esac
29894
29895         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29896     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29897
29898                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29899
29900         WIN32INSTALL=win32install
29901 fi
29902
29903 if test "$wxUSE_GUI" = "yes"; then
29904     USE_GUI=1
29905
29906     GUI_TK_LIBRARY=
29907
29908     WXGTK127=
29909     WXGTK2=
29910     WXGPE=
29911
29912     if test "$wxUSE_OLD_COCOA" = 1 ; then
29913         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29914             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29915 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29916             wxUSE_PRINTING_ARCHITECTURE=no
29917         fi
29918         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29919             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29920 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29921             wxUSE_DRAG_AND_DROP=no
29922         fi
29923         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29924             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29925 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29926             wxUSE_DRAGIMAGE=no
29927         fi
29928     fi
29929
29930     if test "$wxUSE_MSW" = 1 ; then
29931         TOOLKIT=MSW
29932         GUIDIST=MSW_DIST
29933
29934                 case "${host}" in
29935             *-*-mingw32* )
29936                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29937         esac
29938     fi
29939
29940     if test "$wxUSE_GTK" = 1; then
29941                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
29942 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
29943
29944         gtk_version_cached=1
29945         if test "${wx_cv_lib_gtk+set}" = set; then
29946   echo $ECHO_N "(cached) $ECHO_C" >&6
29947 else
29948
29949                                                 gtk_version_cached=0
29950                 { echo "$as_me:$LINENO: result: " >&5
29951 echo "${ECHO_T}" >&6; }
29952
29953                                                 GTK_MODULES=
29954                 if test "$wxUSE_THREADS" = "yes"; then
29955                     GTK_MODULES=gthread
29956                 fi
29957
29958                                 wx_cv_lib_gtk=
29959                 if test "x$wxGTK_VERSION" != "x1"
29960                 then
29961                                                                                 case "${host}" in
29962                         *-*-solaris2* )
29963                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29964                                 enable_gtktest=no
29965                             fi
29966                     esac
29967
29968                     # Check whether --enable-gtktest was given.
29969 if test "${enable_gtktest+set}" = set; then
29970   enableval=$enable_gtktest;
29971 else
29972   enable_gtktest=yes
29973 fi
29974
29975
29976   pkg_config_args=gtk+-2.0
29977   for module in . $GTK_MODULES
29978   do
29979       case "$module" in
29980          gthread)
29981              pkg_config_args="$pkg_config_args gthread-2.0"
29982          ;;
29983       esac
29984   done
29985
29986   no_gtk=""
29987
29988   # Extract the first word of "pkg-config", so it can be a program name with args.
29989 set dummy pkg-config; ac_word=$2
29990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29992 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29993   echo $ECHO_N "(cached) $ECHO_C" >&6
29994 else
29995   case $PKG_CONFIG in
29996   [\\/]* | ?:[\\/]*)
29997   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29998   ;;
29999   *)
30000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30001 for as_dir in $PATH
30002 do
30003   IFS=$as_save_IFS
30004   test -z "$as_dir" && as_dir=.
30005   for ac_exec_ext in '' $ac_executable_extensions; do
30006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30007     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30009     break 2
30010   fi
30011 done
30012 done
30013 IFS=$as_save_IFS
30014
30015   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30016   ;;
30017 esac
30018 fi
30019 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30020 if test -n "$PKG_CONFIG"; then
30021   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30022 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30023 else
30024   { echo "$as_me:$LINENO: result: no" >&5
30025 echo "${ECHO_T}no" >&6; }
30026 fi
30027
30028
30029
30030   if test x$PKG_CONFIG != xno ; then
30031     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30032       :
30033     else
30034       echo "*** pkg-config too old; version 0.7 or better required."
30035       no_gtk=yes
30036       PKG_CONFIG=no
30037     fi
30038   else
30039     no_gtk=yes
30040   fi
30041
30042   min_gtk_version=2.4.0
30043   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30044 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30045
30046   if test x$PKG_CONFIG != xno ; then
30047     ## don't try to run the test against uninstalled libtool libs
30048     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30049           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30050           enable_gtktest=no
30051     fi
30052
30053     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30054           :
30055     else
30056           no_gtk=yes
30057     fi
30058   fi
30059
30060   if test x"$no_gtk" = x ; then
30061     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30062     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30063     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30064            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30065     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30066            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30067     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30068            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30069     if test "x$enable_gtktest" = "xyes" ; then
30070       ac_save_CFLAGS="$CFLAGS"
30071       ac_save_LIBS="$LIBS"
30072       CFLAGS="$CFLAGS $GTK_CFLAGS"
30073       LIBS="$GTK_LIBS $LIBS"
30074       rm -f conf.gtktest
30075       if test "$cross_compiling" = yes; then
30076   echo $ac_n "cross compiling; assumed OK... $ac_c"
30077 else
30078   cat >conftest.$ac_ext <<_ACEOF
30079 /* confdefs.h.  */
30080 _ACEOF
30081 cat confdefs.h >>conftest.$ac_ext
30082 cat >>conftest.$ac_ext <<_ACEOF
30083 /* end confdefs.h.  */
30084
30085 #include <gtk/gtk.h>
30086 #include <stdio.h>
30087 #include <stdlib.h>
30088
30089 int
30090 main ()
30091 {
30092   int major, minor, micro;
30093   char *tmp_version;
30094
30095   system ("touch conf.gtktest");
30096
30097   /* HP/UX 9 (%@#!) writes to sscanf strings */
30098   tmp_version = g_strdup("$min_gtk_version");
30099   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30100      printf("%s, bad version string\n", "$min_gtk_version");
30101      exit(1);
30102    }
30103
30104   if ((gtk_major_version != $gtk_config_major_version) ||
30105       (gtk_minor_version != $gtk_config_minor_version) ||
30106       (gtk_micro_version != $gtk_config_micro_version))
30107     {
30108       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30109              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30110              gtk_major_version, gtk_minor_version, gtk_micro_version);
30111       printf ("*** was found! If pkg-config was correct, then it is best\n");
30112       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30113       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30114       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30115       printf("*** required on your system.\n");
30116       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30117       printf("*** to point to the correct configuration files\n");
30118     }
30119   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30120            (gtk_minor_version != GTK_MINOR_VERSION) ||
30121            (gtk_micro_version != GTK_MICRO_VERSION))
30122     {
30123       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30124              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30125       printf("*** library (version %d.%d.%d)\n",
30126              gtk_major_version, gtk_minor_version, gtk_micro_version);
30127     }
30128   else
30129     {
30130       if ((gtk_major_version > major) ||
30131         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30132         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30133       {
30134         return 0;
30135        }
30136      else
30137       {
30138         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30139                gtk_major_version, gtk_minor_version, gtk_micro_version);
30140         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30141                major, minor, micro);
30142         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30143         printf("***\n");
30144         printf("*** If you have already installed a sufficiently new version, this error\n");
30145         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30146         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30147         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30148         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30149         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30150         printf("*** so that the correct libraries are found at run-time))\n");
30151       }
30152     }
30153   return 1;
30154 }
30155
30156 _ACEOF
30157 rm -f conftest$ac_exeext
30158 if { (ac_try="$ac_link"
30159 case "(($ac_try" in
30160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30161   *) ac_try_echo=$ac_try;;
30162 esac
30163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30164   (eval "$ac_link") 2>&5
30165   ac_status=$?
30166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30168   { (case "(($ac_try" in
30169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170   *) ac_try_echo=$ac_try;;
30171 esac
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173   (eval "$ac_try") 2>&5
30174   ac_status=$?
30175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176   (exit $ac_status); }; }; then
30177   :
30178 else
30179   echo "$as_me: program exited with status $ac_status" >&5
30180 echo "$as_me: failed program was:" >&5
30181 sed 's/^/| /' conftest.$ac_ext >&5
30182
30183 ( exit $ac_status )
30184 no_gtk=yes
30185 fi
30186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30187 fi
30188
30189
30190        CFLAGS="$ac_save_CFLAGS"
30191        LIBS="$ac_save_LIBS"
30192      fi
30193   fi
30194   if test "x$no_gtk" = x ; then
30195      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30196 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30197      wx_cv_lib_gtk=2.0
30198   else
30199      { echo "$as_me:$LINENO: result: no" >&5
30200 echo "${ECHO_T}no" >&6; }
30201      if test "$PKG_CONFIG" = "no" ; then
30202        echo "*** A new enough version of pkg-config was not found."
30203        echo "*** See http://pkgconfig.sourceforge.net"
30204      else
30205        if test -f conf.gtktest ; then
30206         :
30207        else
30208           echo "*** Could not run GTK+ test program, checking why..."
30209           ac_save_CFLAGS="$CFLAGS"
30210           ac_save_LIBS="$LIBS"
30211           CFLAGS="$CFLAGS $GTK_CFLAGS"
30212           LIBS="$LIBS $GTK_LIBS"
30213           cat >conftest.$ac_ext <<_ACEOF
30214 /* confdefs.h.  */
30215 _ACEOF
30216 cat confdefs.h >>conftest.$ac_ext
30217 cat >>conftest.$ac_ext <<_ACEOF
30218 /* end confdefs.h.  */
30219
30220 #include <gtk/gtk.h>
30221 #include <stdio.h>
30222
30223 int
30224 main ()
30225 {
30226  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30227   ;
30228   return 0;
30229 }
30230 _ACEOF
30231 rm -f conftest.$ac_objext conftest$ac_exeext
30232 if { (ac_try="$ac_link"
30233 case "(($ac_try" in
30234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235   *) ac_try_echo=$ac_try;;
30236 esac
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238   (eval "$ac_link") 2>conftest.er1
30239   ac_status=$?
30240   grep -v '^ *+' conftest.er1 >conftest.err
30241   rm -f conftest.er1
30242   cat conftest.err >&5
30243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244   (exit $ac_status); } && {
30245          test -z "$ac_c_werror_flag" ||
30246          test ! -s conftest.err
30247        } && test -s conftest$ac_exeext &&
30248        $as_test_x conftest$ac_exeext; then
30249    echo "*** The test program compiled, but did not run. This usually means"
30250           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30251           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30252           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30253           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30254           echo "*** is required on your system"
30255           echo "***"
30256           echo "*** If you have an old version installed, it is best to remove it, although"
30257           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30258 else
30259   echo "$as_me: failed program was:" >&5
30260 sed 's/^/| /' conftest.$ac_ext >&5
30261
30262          echo "*** The test program failed to compile or link. See the file config.log for the"
30263           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30264 fi
30265
30266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30267       conftest$ac_exeext conftest.$ac_ext
30268           CFLAGS="$ac_save_CFLAGS"
30269           LIBS="$ac_save_LIBS"
30270        fi
30271      fi
30272      GTK_CFLAGS=""
30273      GTK_LIBS=""
30274      :
30275   fi
30276
30277
30278   rm -f conf.gtktest
30279
30280                 fi
30281
30282                                 if test -z "$wx_cv_lib_gtk"; then
30283                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30284
30285 # Check whether --with-gtk-prefix was given.
30286 if test "${with_gtk_prefix+set}" = set; then
30287   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30288 else
30289   gtk_config_prefix=""
30290 fi
30291
30292
30293 # Check whether --with-gtk-exec-prefix was given.
30294 if test "${with_gtk_exec_prefix+set}" = set; then
30295   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30296 else
30297   gtk_config_exec_prefix=""
30298 fi
30299
30300 # Check whether --enable-gtktest was given.
30301 if test "${enable_gtktest+set}" = set; then
30302   enableval=$enable_gtktest;
30303 else
30304   enable_gtktest=yes
30305 fi
30306
30307
30308   for module in . $GTK_MODULES
30309   do
30310       case "$module" in
30311          gthread)
30312              gtk_config_args="$gtk_config_args gthread"
30313          ;;
30314       esac
30315   done
30316
30317   if test x$gtk_config_exec_prefix != x ; then
30318      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30319      if test x${GTK_CONFIG+set} != xset ; then
30320         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30321      fi
30322   fi
30323   if test x$gtk_config_prefix != x ; then
30324      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30325      if test x${GTK_CONFIG+set} != xset ; then
30326         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30327      fi
30328   fi
30329
30330   # Extract the first word of "gtk-config", so it can be a program name with args.
30331 set dummy gtk-config; ac_word=$2
30332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30334 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30335   echo $ECHO_N "(cached) $ECHO_C" >&6
30336 else
30337   case $GTK_CONFIG in
30338   [\\/]* | ?:[\\/]*)
30339   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30340   ;;
30341   *)
30342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30343 for as_dir in $PATH
30344 do
30345   IFS=$as_save_IFS
30346   test -z "$as_dir" && as_dir=.
30347   for ac_exec_ext in '' $ac_executable_extensions; do
30348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30349     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30351     break 2
30352   fi
30353 done
30354 done
30355 IFS=$as_save_IFS
30356
30357   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30358   ;;
30359 esac
30360 fi
30361 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30362 if test -n "$GTK_CONFIG"; then
30363   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30364 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30365 else
30366   { echo "$as_me:$LINENO: result: no" >&5
30367 echo "${ECHO_T}no" >&6; }
30368 fi
30369
30370
30371   min_gtk_version=1.2.7
30372   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30373 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30374   no_gtk=""
30375   if test "$GTK_CONFIG" = "no" ; then
30376     no_gtk=yes
30377   else
30378     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30379     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30380     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30381            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30382     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30383            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30384     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30385            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30386     if test "x$enable_gtktest" = "xyes" ; then
30387       ac_save_CFLAGS="$CFLAGS"
30388       ac_save_LIBS="$LIBS"
30389       CFLAGS="$CFLAGS $GTK_CFLAGS"
30390       LIBS="$GTK_LIBS $LIBS"
30391       rm -f conf.gtktest
30392       if test "$cross_compiling" = yes; then
30393   echo $ac_n "cross compiling; assumed OK... $ac_c"
30394 else
30395   cat >conftest.$ac_ext <<_ACEOF
30396 /* confdefs.h.  */
30397 _ACEOF
30398 cat confdefs.h >>conftest.$ac_ext
30399 cat >>conftest.$ac_ext <<_ACEOF
30400 /* end confdefs.h.  */
30401
30402 #include <gtk/gtk.h>
30403 #include <stdio.h>
30404 #include <stdlib.h>
30405
30406 int
30407 main ()
30408 {
30409   int major, minor, micro;
30410   char *tmp_version;
30411
30412   system ("touch conf.gtktest");
30413
30414   /* HP/UX 9 (%@#!) writes to sscanf strings */
30415   tmp_version = g_strdup("$min_gtk_version");
30416   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30417      printf("%s, bad version string\n", "$min_gtk_version");
30418      exit(1);
30419    }
30420
30421   if ((gtk_major_version != $gtk_config_major_version) ||
30422       (gtk_minor_version != $gtk_config_minor_version) ||
30423       (gtk_micro_version != $gtk_config_micro_version))
30424     {
30425       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30426              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30427              gtk_major_version, gtk_minor_version, gtk_micro_version);
30428       printf ("*** was found! If gtk-config was correct, then it is best\n");
30429       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30430       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30431       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30432       printf("*** required on your system.\n");
30433       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30434       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30435       printf("*** before re-running configure\n");
30436     }
30437 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30438   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30439            (gtk_minor_version != GTK_MINOR_VERSION) ||
30440            (gtk_micro_version != GTK_MICRO_VERSION))
30441     {
30442       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30443              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30444       printf("*** library (version %d.%d.%d)\n",
30445              gtk_major_version, gtk_minor_version, gtk_micro_version);
30446     }
30447 #endif /* defined (GTK_MAJOR_VERSION) ... */
30448   else
30449     {
30450       if ((gtk_major_version > major) ||
30451         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30452         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30453       {
30454         return 0;
30455        }
30456      else
30457       {
30458         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30459                gtk_major_version, gtk_minor_version, gtk_micro_version);
30460         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30461                major, minor, micro);
30462         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30463         printf("***\n");
30464         printf("*** If you have already installed a sufficiently new version, this error\n");
30465         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30466         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30467         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30468         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30469         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30470         printf("*** so that the correct libraries are found at run-time))\n");
30471       }
30472     }
30473   return 1;
30474 }
30475
30476 _ACEOF
30477 rm -f conftest$ac_exeext
30478 if { (ac_try="$ac_link"
30479 case "(($ac_try" in
30480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30481   *) ac_try_echo=$ac_try;;
30482 esac
30483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30484   (eval "$ac_link") 2>&5
30485   ac_status=$?
30486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30488   { (case "(($ac_try" in
30489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490   *) ac_try_echo=$ac_try;;
30491 esac
30492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30493   (eval "$ac_try") 2>&5
30494   ac_status=$?
30495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496   (exit $ac_status); }; }; then
30497   :
30498 else
30499   echo "$as_me: program exited with status $ac_status" >&5
30500 echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30502
30503 ( exit $ac_status )
30504 no_gtk=yes
30505 fi
30506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30507 fi
30508
30509
30510        CFLAGS="$ac_save_CFLAGS"
30511        LIBS="$ac_save_LIBS"
30512      fi
30513   fi
30514   if test "x$no_gtk" = x ; then
30515      { echo "$as_me:$LINENO: result: yes" >&5
30516 echo "${ECHO_T}yes" >&6; }
30517      wx_cv_lib_gtk=1.2.7
30518   else
30519      { echo "$as_me:$LINENO: result: no" >&5
30520 echo "${ECHO_T}no" >&6; }
30521      if test "$GTK_CONFIG" = "no" ; then
30522        echo "*** The gtk-config script installed by GTK could not be found"
30523        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30524        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30525        echo "*** full path to gtk-config."
30526      else
30527        if test -f conf.gtktest ; then
30528         :
30529        else
30530           echo "*** Could not run GTK test program, checking why..."
30531           CFLAGS="$CFLAGS $GTK_CFLAGS"
30532           LIBS="$LIBS $GTK_LIBS"
30533           cat >conftest.$ac_ext <<_ACEOF
30534 /* confdefs.h.  */
30535 _ACEOF
30536 cat confdefs.h >>conftest.$ac_ext
30537 cat >>conftest.$ac_ext <<_ACEOF
30538 /* end confdefs.h.  */
30539
30540 #include <gtk/gtk.h>
30541 #include <stdio.h>
30542
30543 int
30544 main ()
30545 {
30546  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30547   ;
30548   return 0;
30549 }
30550 _ACEOF
30551 rm -f conftest.$ac_objext conftest$ac_exeext
30552 if { (ac_try="$ac_link"
30553 case "(($ac_try" in
30554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30555   *) ac_try_echo=$ac_try;;
30556 esac
30557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30558   (eval "$ac_link") 2>conftest.er1
30559   ac_status=$?
30560   grep -v '^ *+' conftest.er1 >conftest.err
30561   rm -f conftest.er1
30562   cat conftest.err >&5
30563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564   (exit $ac_status); } && {
30565          test -z "$ac_c_werror_flag" ||
30566          test ! -s conftest.err
30567        } && test -s conftest$ac_exeext &&
30568        $as_test_x conftest$ac_exeext; then
30569    echo "*** The test program compiled, but did not run. This usually means"
30570           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30571           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30572           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30573           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30574           echo "*** is required on your system"
30575           echo "***"
30576           echo "*** If you have an old version installed, it is best to remove it, although"
30577           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30578           echo "***"
30579           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30580           echo "*** came with the system with the command"
30581           echo "***"
30582           echo "***    rpm --erase --nodeps gtk gtk-devel"
30583 else
30584   echo "$as_me: failed program was:" >&5
30585 sed 's/^/| /' conftest.$ac_ext >&5
30586
30587          echo "*** The test program failed to compile or link. See the file config.log for the"
30588           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30589           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30590           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30591 fi
30592
30593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30594       conftest$ac_exeext conftest.$ac_ext
30595           CFLAGS="$ac_save_CFLAGS"
30596           LIBS="$ac_save_LIBS"
30597        fi
30598      fi
30599      GTK_CFLAGS=""
30600      GTK_LIBS=""
30601      :
30602   fi
30603
30604
30605   rm -f conf.gtktest
30606
30607
30608                         if test -z "$wx_cv_lib_gtk"; then
30609
30610 # Check whether --with-gtk-prefix was given.
30611 if test "${with_gtk_prefix+set}" = set; then
30612   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30613 else
30614   gtk_config_prefix=""
30615 fi
30616
30617
30618 # Check whether --with-gtk-exec-prefix was given.
30619 if test "${with_gtk_exec_prefix+set}" = set; then
30620   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30621 else
30622   gtk_config_exec_prefix=""
30623 fi
30624
30625 # Check whether --enable-gtktest was given.
30626 if test "${enable_gtktest+set}" = set; then
30627   enableval=$enable_gtktest;
30628 else
30629   enable_gtktest=yes
30630 fi
30631
30632
30633   for module in . $GTK_MODULES
30634   do
30635       case "$module" in
30636          gthread)
30637              gtk_config_args="$gtk_config_args gthread"
30638          ;;
30639       esac
30640   done
30641
30642   if test x$gtk_config_exec_prefix != x ; then
30643      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30644      if test x${GTK_CONFIG+set} != xset ; then
30645         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30646      fi
30647   fi
30648   if test x$gtk_config_prefix != x ; then
30649      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30650      if test x${GTK_CONFIG+set} != xset ; then
30651         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30652      fi
30653   fi
30654
30655   # Extract the first word of "gtk-config", so it can be a program name with args.
30656 set dummy gtk-config; ac_word=$2
30657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30659 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30660   echo $ECHO_N "(cached) $ECHO_C" >&6
30661 else
30662   case $GTK_CONFIG in
30663   [\\/]* | ?:[\\/]*)
30664   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30665   ;;
30666   *)
30667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30668 for as_dir in $PATH
30669 do
30670   IFS=$as_save_IFS
30671   test -z "$as_dir" && as_dir=.
30672   for ac_exec_ext in '' $ac_executable_extensions; do
30673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30674     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30676     break 2
30677   fi
30678 done
30679 done
30680 IFS=$as_save_IFS
30681
30682   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30683   ;;
30684 esac
30685 fi
30686 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30687 if test -n "$GTK_CONFIG"; then
30688   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30689 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30690 else
30691   { echo "$as_me:$LINENO: result: no" >&5
30692 echo "${ECHO_T}no" >&6; }
30693 fi
30694
30695
30696   min_gtk_version=1.2.3
30697   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30698 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30699   no_gtk=""
30700   if test "$GTK_CONFIG" = "no" ; then
30701     no_gtk=yes
30702   else
30703     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30704     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30705     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30706            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30707     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30708            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30709     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30710            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30711     if test "x$enable_gtktest" = "xyes" ; then
30712       ac_save_CFLAGS="$CFLAGS"
30713       ac_save_LIBS="$LIBS"
30714       CFLAGS="$CFLAGS $GTK_CFLAGS"
30715       LIBS="$GTK_LIBS $LIBS"
30716       rm -f conf.gtktest
30717       if test "$cross_compiling" = yes; then
30718   echo $ac_n "cross compiling; assumed OK... $ac_c"
30719 else
30720   cat >conftest.$ac_ext <<_ACEOF
30721 /* confdefs.h.  */
30722 _ACEOF
30723 cat confdefs.h >>conftest.$ac_ext
30724 cat >>conftest.$ac_ext <<_ACEOF
30725 /* end confdefs.h.  */
30726
30727 #include <gtk/gtk.h>
30728 #include <stdio.h>
30729 #include <stdlib.h>
30730
30731 int
30732 main ()
30733 {
30734   int major, minor, micro;
30735   char *tmp_version;
30736
30737   system ("touch conf.gtktest");
30738
30739   /* HP/UX 9 (%@#!) writes to sscanf strings */
30740   tmp_version = g_strdup("$min_gtk_version");
30741   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30742      printf("%s, bad version string\n", "$min_gtk_version");
30743      exit(1);
30744    }
30745
30746   if ((gtk_major_version != $gtk_config_major_version) ||
30747       (gtk_minor_version != $gtk_config_minor_version) ||
30748       (gtk_micro_version != $gtk_config_micro_version))
30749     {
30750       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30751              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30752              gtk_major_version, gtk_minor_version, gtk_micro_version);
30753       printf ("*** was found! If gtk-config was correct, then it is best\n");
30754       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30755       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30756       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30757       printf("*** required on your system.\n");
30758       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30759       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30760       printf("*** before re-running configure\n");
30761     }
30762 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30763   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30764            (gtk_minor_version != GTK_MINOR_VERSION) ||
30765            (gtk_micro_version != GTK_MICRO_VERSION))
30766     {
30767       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30768              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30769       printf("*** library (version %d.%d.%d)\n",
30770              gtk_major_version, gtk_minor_version, gtk_micro_version);
30771     }
30772 #endif /* defined (GTK_MAJOR_VERSION) ... */
30773   else
30774     {
30775       if ((gtk_major_version > major) ||
30776         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30777         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30778       {
30779         return 0;
30780        }
30781      else
30782       {
30783         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30784                gtk_major_version, gtk_minor_version, gtk_micro_version);
30785         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30786                major, minor, micro);
30787         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30788         printf("***\n");
30789         printf("*** If you have already installed a sufficiently new version, this error\n");
30790         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30791         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30792         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30793         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30794         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30795         printf("*** so that the correct libraries are found at run-time))\n");
30796       }
30797     }
30798   return 1;
30799 }
30800
30801 _ACEOF
30802 rm -f conftest$ac_exeext
30803 if { (ac_try="$ac_link"
30804 case "(($ac_try" in
30805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30806   *) ac_try_echo=$ac_try;;
30807 esac
30808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30809   (eval "$ac_link") 2>&5
30810   ac_status=$?
30811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30813   { (case "(($ac_try" in
30814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815   *) ac_try_echo=$ac_try;;
30816 esac
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818   (eval "$ac_try") 2>&5
30819   ac_status=$?
30820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821   (exit $ac_status); }; }; then
30822   :
30823 else
30824   echo "$as_me: program exited with status $ac_status" >&5
30825 echo "$as_me: failed program was:" >&5
30826 sed 's/^/| /' conftest.$ac_ext >&5
30827
30828 ( exit $ac_status )
30829 no_gtk=yes
30830 fi
30831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30832 fi
30833
30834
30835        CFLAGS="$ac_save_CFLAGS"
30836        LIBS="$ac_save_LIBS"
30837      fi
30838   fi
30839   if test "x$no_gtk" = x ; then
30840      { echo "$as_me:$LINENO: result: yes" >&5
30841 echo "${ECHO_T}yes" >&6; }
30842      wx_cv_lib_gtk=1.2.3
30843   else
30844      { echo "$as_me:$LINENO: result: no" >&5
30845 echo "${ECHO_T}no" >&6; }
30846      if test "$GTK_CONFIG" = "no" ; then
30847        echo "*** The gtk-config script installed by GTK could not be found"
30848        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30849        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30850        echo "*** full path to gtk-config."
30851      else
30852        if test -f conf.gtktest ; then
30853         :
30854        else
30855           echo "*** Could not run GTK test program, checking why..."
30856           CFLAGS="$CFLAGS $GTK_CFLAGS"
30857           LIBS="$LIBS $GTK_LIBS"
30858           cat >conftest.$ac_ext <<_ACEOF
30859 /* confdefs.h.  */
30860 _ACEOF
30861 cat confdefs.h >>conftest.$ac_ext
30862 cat >>conftest.$ac_ext <<_ACEOF
30863 /* end confdefs.h.  */
30864
30865 #include <gtk/gtk.h>
30866 #include <stdio.h>
30867
30868 int
30869 main ()
30870 {
30871  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30872   ;
30873   return 0;
30874 }
30875 _ACEOF
30876 rm -f conftest.$ac_objext conftest$ac_exeext
30877 if { (ac_try="$ac_link"
30878 case "(($ac_try" in
30879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30880   *) ac_try_echo=$ac_try;;
30881 esac
30882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30883   (eval "$ac_link") 2>conftest.er1
30884   ac_status=$?
30885   grep -v '^ *+' conftest.er1 >conftest.err
30886   rm -f conftest.er1
30887   cat conftest.err >&5
30888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889   (exit $ac_status); } && {
30890          test -z "$ac_c_werror_flag" ||
30891          test ! -s conftest.err
30892        } && test -s conftest$ac_exeext &&
30893        $as_test_x conftest$ac_exeext; then
30894    echo "*** The test program compiled, but did not run. This usually means"
30895           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30896           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30897           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30898           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30899           echo "*** is required on your system"
30900           echo "***"
30901           echo "*** If you have an old version installed, it is best to remove it, although"
30902           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30903           echo "***"
30904           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30905           echo "*** came with the system with the command"
30906           echo "***"
30907           echo "***    rpm --erase --nodeps gtk gtk-devel"
30908 else
30909   echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30911
30912          echo "*** The test program failed to compile or link. See the file config.log for the"
30913           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30914           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30915           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30916 fi
30917
30918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30919       conftest$ac_exeext conftest.$ac_ext
30920           CFLAGS="$ac_save_CFLAGS"
30921           LIBS="$ac_save_LIBS"
30922        fi
30923      fi
30924      GTK_CFLAGS=""
30925      GTK_LIBS=""
30926      :
30927   fi
30928
30929
30930   rm -f conf.gtktest
30931
30932                         fi
30933                     fi
30934                 fi
30935
30936                 if test -z "$wx_cv_lib_gtk"; then
30937                                         wx_cv_lib_gtk=none
30938                 else
30939                                         GTK_LIBS="$GTK_LIBS -lX11"
30940
30941                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
30942                     wx_cv_libs_gtk=$GTK_LIBS
30943                 fi
30944
30945
30946 fi
30947
30948
30949                         if test "$gtk_version_cached" = 1; then
30950             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
30951 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
30952         fi
30953
30954         case "$wx_cv_lib_gtk" in
30955             2.0)    WXGTK2=1
30956                     TOOLKIT_VERSION=2
30957                     ;;
30958             1.2.7)  WXGTK127=1
30959                     ;;
30960             1.2*) ;;
30961             *)      { { echo "$as_me:$LINENO: error:
30962 The development files for GTK+ were not found. For GTK+ 2, please
30963 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30964 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30965 and that the version is 1.2.3 or above. Also check that the
30966 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30967 --libs' are in the LD_LIBRARY_PATH or equivalent.
30968                             " >&5
30969 echo "$as_me: error:
30970 The development files for GTK+ were not found. For GTK+ 2, please
30971 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30972 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30973 and that the version is 1.2.3 or above. Also check that the
30974 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30975 --libs' are in the LD_LIBRARY_PATH or equivalent.
30976                             " >&2;}
30977    { (exit 1); exit 1; }; }
30978                     ;;
30979         esac
30980
30981         if test "$WXGTK2" = 1; then
30982             save_CFLAGS="$CFLAGS"
30983             save_LIBS="$LIBS"
30984             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30985             LIBS="$LIBS $wx_cv_libs_gtk"
30986
30987                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
30988 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
30989             cat >conftest.$ac_ext <<_ACEOF
30990 /* confdefs.h.  */
30991 _ACEOF
30992 cat confdefs.h >>conftest.$ac_ext
30993 cat >>conftest.$ac_ext <<_ACEOF
30994 /* end confdefs.h.  */
30995
30996                             #include <gtk/gtk.h>
30997
30998 int
30999 main ()
31000 {
31001
31002                             #if !GTK_CHECK_VERSION(2,18,0)
31003                             Not GTK+ 2.18
31004                             #endif
31005
31006   ;
31007   return 0;
31008 }
31009 _ACEOF
31010 rm -f conftest.$ac_objext
31011 if { (ac_try="$ac_compile"
31012 case "(($ac_try" in
31013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31014   *) ac_try_echo=$ac_try;;
31015 esac
31016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31017   (eval "$ac_compile") 2>conftest.er1
31018   ac_status=$?
31019   grep -v '^ *+' conftest.er1 >conftest.err
31020   rm -f conftest.er1
31021   cat conftest.err >&5
31022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023   (exit $ac_status); } && {
31024          test -z "$ac_c_werror_flag" ||
31025          test ! -s conftest.err
31026        } && test -s conftest.$ac_objext; then
31027
31028                             cat >>confdefs.h <<\_ACEOF
31029 #define __WXGTK218__ 1
31030 _ACEOF
31031
31032                             cat >>confdefs.h <<\_ACEOF
31033 #define __WXGTK210__ 1
31034 _ACEOF
31035
31036                             cat >>confdefs.h <<\_ACEOF
31037 #define __WXGTK26__ 1
31038 _ACEOF
31039
31040                             { echo "$as_me:$LINENO: result: yes" >&5
31041 echo "${ECHO_T}yes" >&6; }
31042                             ac_wxgtk218=1
31043
31044 else
31045   echo "$as_me: failed program was:" >&5
31046 sed 's/^/| /' conftest.$ac_ext >&5
31047
31048
31049                             { echo "$as_me:$LINENO: result: no" >&5
31050 echo "${ECHO_T}no" >&6; }
31051                             ac_wxgtk218=0
31052
31053 fi
31054
31055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31056
31057             if test "$ac_wxgtk218" = 0; then
31058                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31059 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31060                 cat >conftest.$ac_ext <<_ACEOF
31061 /* confdefs.h.  */
31062 _ACEOF
31063 cat confdefs.h >>conftest.$ac_ext
31064 cat >>conftest.$ac_ext <<_ACEOF
31065 /* end confdefs.h.  */
31066
31067                                 #include <gtk/gtk.h>
31068
31069 int
31070 main ()
31071 {
31072
31073                                 #if !GTK_CHECK_VERSION(2,10,0)
31074                                 Not GTK+ 2.10
31075                                 #endif
31076
31077   ;
31078   return 0;
31079 }
31080 _ACEOF
31081 rm -f conftest.$ac_objext
31082 if { (ac_try="$ac_compile"
31083 case "(($ac_try" in
31084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31085   *) ac_try_echo=$ac_try;;
31086 esac
31087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31088   (eval "$ac_compile") 2>conftest.er1
31089   ac_status=$?
31090   grep -v '^ *+' conftest.er1 >conftest.err
31091   rm -f conftest.er1
31092   cat conftest.err >&5
31093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094   (exit $ac_status); } && {
31095          test -z "$ac_c_werror_flag" ||
31096          test ! -s conftest.err
31097        } && test -s conftest.$ac_objext; then
31098
31099                                 cat >>confdefs.h <<\_ACEOF
31100 #define __WXGTK210__ 1
31101 _ACEOF
31102
31103                                 cat >>confdefs.h <<\_ACEOF
31104 #define __WXGTK26__ 1
31105 _ACEOF
31106
31107                                 { echo "$as_me:$LINENO: result: yes" >&5
31108 echo "${ECHO_T}yes" >&6; }
31109                                 ac_wxgtk210=1
31110
31111 else
31112   echo "$as_me: failed program was:" >&5
31113 sed 's/^/| /' conftest.$ac_ext >&5
31114
31115
31116                                 { echo "$as_me:$LINENO: result: no" >&5
31117 echo "${ECHO_T}no" >&6; }
31118                                 ac_wxgtk210=0
31119
31120 fi
31121
31122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31123
31124                 if test "$ac_wxgtk210" = 0; then
31125                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31126 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31127                     cat >conftest.$ac_ext <<_ACEOF
31128 /* confdefs.h.  */
31129 _ACEOF
31130 cat confdefs.h >>conftest.$ac_ext
31131 cat >>conftest.$ac_ext <<_ACEOF
31132 /* end confdefs.h.  */
31133
31134                                     #include <gtk/gtk.h>
31135
31136 int
31137 main ()
31138 {
31139
31140                                     #if !GTK_CHECK_VERSION(2,6,0)
31141                                     Not GTK+ 2.6
31142                                     #endif
31143
31144   ;
31145   return 0;
31146 }
31147 _ACEOF
31148 rm -f conftest.$ac_objext
31149 if { (ac_try="$ac_compile"
31150 case "(($ac_try" in
31151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31152   *) ac_try_echo=$ac_try;;
31153 esac
31154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31155   (eval "$ac_compile") 2>conftest.er1
31156   ac_status=$?
31157   grep -v '^ *+' conftest.er1 >conftest.err
31158   rm -f conftest.er1
31159   cat conftest.err >&5
31160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161   (exit $ac_status); } && {
31162          test -z "$ac_c_werror_flag" ||
31163          test ! -s conftest.err
31164        } && test -s conftest.$ac_objext; then
31165
31166                                     cat >>confdefs.h <<\_ACEOF
31167 #define __WXGTK26__ 1
31168 _ACEOF
31169
31170                                     { echo "$as_me:$LINENO: result: yes" >&5
31171 echo "${ECHO_T}yes" >&6; }
31172                                     ac_wxgtk26=1
31173
31174 else
31175   echo "$as_me: failed program was:" >&5
31176 sed 's/^/| /' conftest.$ac_ext >&5
31177
31178
31179                                     { echo "$as_me:$LINENO: result: no" >&5
31180 echo "${ECHO_T}no" >&6; }
31181                                     ac_wxgtk26=0
31182
31183 fi
31184
31185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31186                 fi
31187             fi
31188
31189             CFLAGS="$save_CFLAGS"
31190             LIBS="$save_LIBS"
31191         else
31192             if test "$wxUSE_UNICODE" = "yes"; then
31193                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31194 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31195                 wxUSE_UNICODE=no
31196             fi
31197
31198                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31199 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31200 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31201   echo $ECHO_N "(cached) $ECHO_C" >&6
31202 else
31203   ac_check_lib_save_LIBS=$LIBS
31204 LIBS="-lgdk  $LIBS"
31205 cat >conftest.$ac_ext <<_ACEOF
31206 /* confdefs.h.  */
31207 _ACEOF
31208 cat confdefs.h >>conftest.$ac_ext
31209 cat >>conftest.$ac_ext <<_ACEOF
31210 /* end confdefs.h.  */
31211
31212 /* Override any GCC internal prototype to avoid an error.
31213    Use char because int might match the return type of a GCC
31214    builtin and then its argument prototype would still apply.  */
31215 #ifdef __cplusplus
31216 extern "C"
31217 #endif
31218 char gdk_im_open ();
31219 int
31220 main ()
31221 {
31222 return gdk_im_open ();
31223   ;
31224   return 0;
31225 }
31226 _ACEOF
31227 rm -f conftest.$ac_objext conftest$ac_exeext
31228 if { (ac_try="$ac_link"
31229 case "(($ac_try" in
31230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31231   *) ac_try_echo=$ac_try;;
31232 esac
31233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31234   (eval "$ac_link") 2>conftest.er1
31235   ac_status=$?
31236   grep -v '^ *+' conftest.er1 >conftest.err
31237   rm -f conftest.er1
31238   cat conftest.err >&5
31239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240   (exit $ac_status); } && {
31241          test -z "$ac_c_werror_flag" ||
31242          test ! -s conftest.err
31243        } && test -s conftest$ac_exeext &&
31244        $as_test_x conftest$ac_exeext; then
31245   ac_cv_lib_gdk_gdk_im_open=yes
31246 else
31247   echo "$as_me: failed program was:" >&5
31248 sed 's/^/| /' conftest.$ac_ext >&5
31249
31250         ac_cv_lib_gdk_gdk_im_open=no
31251 fi
31252
31253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31254       conftest$ac_exeext conftest.$ac_ext
31255 LIBS=$ac_check_lib_save_LIBS
31256 fi
31257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31258 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31259 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31260   cat >>confdefs.h <<\_ACEOF
31261 #define HAVE_XIM 1
31262 _ACEOF
31263
31264 fi
31265
31266
31267                                     if test "$USE_DARWIN" != 1; then
31268
31269 for ac_func in poll
31270 do
31271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31275   echo $ECHO_N "(cached) $ECHO_C" >&6
31276 else
31277   cat >conftest.$ac_ext <<_ACEOF
31278 /* confdefs.h.  */
31279 _ACEOF
31280 cat confdefs.h >>conftest.$ac_ext
31281 cat >>conftest.$ac_ext <<_ACEOF
31282 /* end confdefs.h.  */
31283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31285 #define $ac_func innocuous_$ac_func
31286
31287 /* System header to define __stub macros and hopefully few prototypes,
31288     which can conflict with char $ac_func (); below.
31289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31290     <limits.h> exists even on freestanding compilers.  */
31291
31292 #ifdef __STDC__
31293 # include <limits.h>
31294 #else
31295 # include <assert.h>
31296 #endif
31297
31298 #undef $ac_func
31299
31300 /* Override any GCC internal prototype to avoid an error.
31301    Use char because int might match the return type of a GCC
31302    builtin and then its argument prototype would still apply.  */
31303 #ifdef __cplusplus
31304 extern "C"
31305 #endif
31306 char $ac_func ();
31307 /* The GNU C library defines this for functions which it implements
31308     to always fail with ENOSYS.  Some functions are actually named
31309     something starting with __ and the normal name is an alias.  */
31310 #if defined __stub_$ac_func || defined __stub___$ac_func
31311 choke me
31312 #endif
31313
31314 int
31315 main ()
31316 {
31317 return $ac_func ();
31318   ;
31319   return 0;
31320 }
31321 _ACEOF
31322 rm -f conftest.$ac_objext conftest$ac_exeext
31323 if { (ac_try="$ac_link"
31324 case "(($ac_try" in
31325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31326   *) ac_try_echo=$ac_try;;
31327 esac
31328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31329   (eval "$ac_link") 2>conftest.er1
31330   ac_status=$?
31331   grep -v '^ *+' conftest.er1 >conftest.err
31332   rm -f conftest.er1
31333   cat conftest.err >&5
31334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335   (exit $ac_status); } && {
31336          test -z "$ac_c_werror_flag" ||
31337          test ! -s conftest.err
31338        } && test -s conftest$ac_exeext &&
31339        $as_test_x conftest$ac_exeext; then
31340   eval "$as_ac_var=yes"
31341 else
31342   echo "$as_me: failed program was:" >&5
31343 sed 's/^/| /' conftest.$ac_ext >&5
31344
31345         eval "$as_ac_var=no"
31346 fi
31347
31348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31349       conftest$ac_exeext conftest.$ac_ext
31350 fi
31351 ac_res=`eval echo '${'$as_ac_var'}'`
31352                { echo "$as_me:$LINENO: result: $ac_res" >&5
31353 echo "${ECHO_T}$ac_res" >&6; }
31354 if test `eval echo '${'$as_ac_var'}'` = yes; then
31355   cat >>confdefs.h <<_ACEOF
31356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31357 _ACEOF
31358
31359 fi
31360 done
31361
31362             fi
31363         fi
31364
31365         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31366         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31367         AFMINSTALL=afminstall
31368         TOOLKIT=GTK
31369         GUIDIST=GTK_DIST
31370
31371                 if test "$wxUSE_GPE" = "yes"; then
31372             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31373 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31374
31375   ac_find_libraries=
31376   for ac_dir in  $SEARCH_LIB
31377   do
31378     for ac_extension in a so sl dylib dll.a; do
31379       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31380         ac_find_libraries=$ac_dir
31381         break 2
31382       fi
31383     done
31384   done
31385
31386             if test "$ac_find_libraries" != "" ; then
31387
31388     if test "$ac_find_libraries" = "default location"; then
31389     ac_path_to_link=""
31390   else
31391     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31392     result=$?
31393     if test $result = 0; then
31394       ac_path_to_link=""
31395     else
31396       ac_path_to_link=" -L$ac_find_libraries"
31397     fi
31398   fi
31399
31400                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31401                 WXGPE=1
31402                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31403 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31404             else
31405                 { echo "$as_me:$LINENO: result: not found" >&5
31406 echo "${ECHO_T}not found" >&6; }
31407             fi
31408
31409                                                                                                                     fi
31410     fi
31411
31412     if test "$wxUSE_MGL" = 1; then
31413        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31414 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31415         if test "x$MGL_ROOT" = x ; then
31416             { echo "$as_me:$LINENO: result: not found" >&5
31417 echo "${ECHO_T}not found" >&6; }
31418             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31419 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31420    { (exit 1); exit 1; }; }
31421         else
31422             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31423 echo "${ECHO_T}$MGL_ROOT" >&6; }
31424         fi
31425
31426         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31427 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31428                                 case "${host}" in
31429             *-*-linux* )
31430                                           if test "x$wxUSE_SHARED" = xyes ; then
31431                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31432               else
31433                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31434               fi
31435               ;;
31436             *-pc-msdosdjgpp )
31437               mgl_os_candidates="dos32/dj2"
31438               ;;
31439             *)
31440               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31441 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31442    { (exit 1); exit 1; }; }
31443         esac
31444
31445         mgl_lib_type=""
31446         mgl_os=""
31447
31448         for mgl_os_i in $mgl_os_candidates ; do
31449             if test "x$mgl_os" = x ; then
31450                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31451                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31452                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31453                         mgl_lib_type=debug
31454                         mgl_os=$mgl_os_i
31455                     fi
31456                 fi
31457                 if test "x$mgl_lib_type" = x ; then
31458                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31459                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31460                         mgl_lib_type=release
31461                         mgl_os=$mgl_os_i
31462                     fi
31463                 fi
31464             fi
31465         done
31466
31467         if test "x$mgl_os" = x ; then
31468             { echo "$as_me:$LINENO: result: not found" >&5
31469 echo "${ECHO_T}not found" >&6; }
31470             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31471 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31472    { (exit 1); exit 1; }; }
31473         fi
31474         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31475 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31476
31477         wxUSE_UNIVERSAL="yes"
31478
31479         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31480         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31481
31482         AFMINSTALL=afminstall
31483         TOOLKIT=MGL
31484         GUIDIST=MGL_DIST
31485     fi
31486
31487     if test "$wxUSE_DFB" = 1; then
31488
31489
31490 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31491         if test -n "$ac_tool_prefix"; then
31492   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31493 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31496 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31497   echo $ECHO_N "(cached) $ECHO_C" >&6
31498 else
31499   case $PKG_CONFIG in
31500   [\\/]* | ?:[\\/]*)
31501   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31502   ;;
31503   *)
31504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31505 for as_dir in $PATH
31506 do
31507   IFS=$as_save_IFS
31508   test -z "$as_dir" && as_dir=.
31509   for ac_exec_ext in '' $ac_executable_extensions; do
31510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31511     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31513     break 2
31514   fi
31515 done
31516 done
31517 IFS=$as_save_IFS
31518
31519   ;;
31520 esac
31521 fi
31522 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31523 if test -n "$PKG_CONFIG"; then
31524   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31525 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31526 else
31527   { echo "$as_me:$LINENO: result: no" >&5
31528 echo "${ECHO_T}no" >&6; }
31529 fi
31530
31531
31532 fi
31533 if test -z "$ac_cv_path_PKG_CONFIG"; then
31534   ac_pt_PKG_CONFIG=$PKG_CONFIG
31535   # Extract the first word of "pkg-config", so it can be a program name with args.
31536 set dummy pkg-config; ac_word=$2
31537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31539 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31540   echo $ECHO_N "(cached) $ECHO_C" >&6
31541 else
31542   case $ac_pt_PKG_CONFIG in
31543   [\\/]* | ?:[\\/]*)
31544   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31545   ;;
31546   *)
31547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31548 for as_dir in $PATH
31549 do
31550   IFS=$as_save_IFS
31551   test -z "$as_dir" && as_dir=.
31552   for ac_exec_ext in '' $ac_executable_extensions; do
31553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31554     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31556     break 2
31557   fi
31558 done
31559 done
31560 IFS=$as_save_IFS
31561
31562   ;;
31563 esac
31564 fi
31565 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31566 if test -n "$ac_pt_PKG_CONFIG"; then
31567   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31568 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31569 else
31570   { echo "$as_me:$LINENO: result: no" >&5
31571 echo "${ECHO_T}no" >&6; }
31572 fi
31573
31574   if test "x$ac_pt_PKG_CONFIG" = x; then
31575     PKG_CONFIG=""
31576   else
31577     case $cross_compiling:$ac_tool_warned in
31578 yes:)
31579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31580 whose name does not start with the host triplet.  If you think this
31581 configuration is useful to you, please write to autoconf@gnu.org." >&5
31582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31583 whose name does not start with the host triplet.  If you think this
31584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31585 ac_tool_warned=yes ;;
31586 esac
31587     PKG_CONFIG=$ac_pt_PKG_CONFIG
31588   fi
31589 else
31590   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31591 fi
31592
31593 fi
31594 if test -n "$PKG_CONFIG"; then
31595         _pkg_min_version=0.9.0
31596         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31597 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31598         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31599                 { echo "$as_me:$LINENO: result: yes" >&5
31600 echo "${ECHO_T}yes" >&6; }
31601         else
31602                 { echo "$as_me:$LINENO: result: no" >&5
31603 echo "${ECHO_T}no" >&6; }
31604                 PKG_CONFIG=""
31605         fi
31606
31607 fi
31608
31609
31610 pkg_failed=no
31611 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31612 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31613
31614 if test -n "$PKG_CONFIG"; then
31615     if test -n "$DIRECTFB_CFLAGS"; then
31616         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31617     else
31618         if test -n "$PKG_CONFIG" && \
31619     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31620   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31621   ac_status=$?
31622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623   (exit $ac_status); }; then
31624   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31625 else
31626   pkg_failed=yes
31627 fi
31628     fi
31629 else
31630         pkg_failed=untried
31631 fi
31632 if test -n "$PKG_CONFIG"; then
31633     if test -n "$DIRECTFB_LIBS"; then
31634         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31635     else
31636         if test -n "$PKG_CONFIG" && \
31637     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31638   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31639   ac_status=$?
31640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641   (exit $ac_status); }; then
31642   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31643 else
31644   pkg_failed=yes
31645 fi
31646     fi
31647 else
31648         pkg_failed=untried
31649 fi
31650
31651
31652
31653 if test $pkg_failed = yes; then
31654
31655 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31656         _pkg_short_errors_supported=yes
31657 else
31658         _pkg_short_errors_supported=no
31659 fi
31660         if test $_pkg_short_errors_supported = yes; then
31661                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31662         else
31663                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31664         fi
31665         # Put the nasty error message in config.log where it belongs
31666         echo "$DIRECTFB_PKG_ERRORS" >&5
31667
31668
31669                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31670 echo "$as_me: error: DirectFB not found." >&2;}
31671    { (exit 1); exit 1; }; }
31672
31673
31674 elif test $pkg_failed = untried; then
31675
31676                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31677 echo "$as_me: error: DirectFB not found." >&2;}
31678    { (exit 1); exit 1; }; }
31679
31680
31681 else
31682         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31683         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31684         { echo "$as_me:$LINENO: result: yes" >&5
31685 echo "${ECHO_T}yes" >&6; }
31686
31687                            wxUSE_UNIVERSAL="yes"
31688                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31689                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31690                            TOOLKIT=DFB
31691                            GUIDIST=DFB_DIST
31692
31693 fi
31694     fi
31695
31696     if test "$wxUSE_MICROWIN" = 1; then
31697         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31698 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31699         if test "x$MICROWINDOWS" = x ; then
31700             { echo "$as_me:$LINENO: result: not found" >&5
31701 echo "${ECHO_T}not found" >&6; }
31702             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31703 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31704    { (exit 1); exit 1; }; }
31705         else
31706             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31707 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31708         fi
31709
31710         if test -f $MICROWINDOWS/lib/libmwin.a; then
31711             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31712 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31713         else
31714             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31715 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31716    { (exit 1); exit 1; }; }
31717         fi
31718
31719         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31720         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31721
31722         wxUSE_UNIVERSAL="yes"
31723
31724         AFMINSTALL=afminstall
31725         TOOLKIT=MICROWIN
31726         GUIDIST=MICROWIN_DIST
31727
31728         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31729     fi
31730
31731         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31732                                 { echo "$as_me:$LINENO: checking for X" >&5
31733 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31734
31735
31736 # Check whether --with-x was given.
31737 if test "${with_x+set}" = set; then
31738   withval=$with_x;
31739 fi
31740
31741 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31742 if test "x$with_x" = xno; then
31743   # The user explicitly disabled X.
31744   have_x=disabled
31745 else
31746   case $x_includes,$x_libraries in #(
31747     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31748 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31749    { (exit 1); exit 1; }; };; #(
31750     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31751   echo $ECHO_N "(cached) $ECHO_C" >&6
31752 else
31753   # One or both of the vars are not set, and there is no cached value.
31754 ac_x_includes=no ac_x_libraries=no
31755 rm -f -r conftest.dir
31756 if mkdir conftest.dir; then
31757   cd conftest.dir
31758   cat >Imakefile <<'_ACEOF'
31759 incroot:
31760         @echo incroot='${INCROOT}'
31761 usrlibdir:
31762         @echo usrlibdir='${USRLIBDIR}'
31763 libdir:
31764         @echo libdir='${LIBDIR}'
31765 _ACEOF
31766   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31767     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31768     for ac_var in incroot usrlibdir libdir; do
31769       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31770     done
31771     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31772     for ac_extension in a so sl; do
31773       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31774          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31775         ac_im_usrlibdir=$ac_im_libdir; break
31776       fi
31777     done
31778     # Screen out bogus values from the imake configuration.  They are
31779     # bogus both because they are the default anyway, and because
31780     # using them would break gcc on systems where it needs fixed includes.
31781     case $ac_im_incroot in
31782         /usr/include) ac_x_includes= ;;
31783         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31784     esac
31785     case $ac_im_usrlibdir in
31786         /usr/lib | /lib) ;;
31787         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31788     esac
31789   fi
31790   cd ..
31791   rm -f -r conftest.dir
31792 fi
31793
31794 # Standard set of common directories for X headers.
31795 # Check X11 before X11Rn because it is often a symlink to the current release.
31796 ac_x_header_dirs='
31797 /usr/X11/include
31798 /usr/X11R6/include
31799 /usr/X11R5/include
31800 /usr/X11R4/include
31801
31802 /usr/include/X11
31803 /usr/include/X11R6
31804 /usr/include/X11R5
31805 /usr/include/X11R4
31806
31807 /usr/local/X11/include
31808 /usr/local/X11R6/include
31809 /usr/local/X11R5/include
31810 /usr/local/X11R4/include
31811
31812 /usr/local/include/X11
31813 /usr/local/include/X11R6
31814 /usr/local/include/X11R5
31815 /usr/local/include/X11R4
31816
31817 /usr/X386/include
31818 /usr/x386/include
31819 /usr/XFree86/include/X11
31820
31821 /usr/include
31822 /usr/local/include
31823 /usr/unsupported/include
31824 /usr/athena/include
31825 /usr/local/x11r5/include
31826 /usr/lpp/Xamples/include
31827
31828 /usr/openwin/include
31829 /usr/openwin/share/include'
31830
31831 if test "$ac_x_includes" = no; then
31832   # Guess where to find include files, by looking for Xlib.h.
31833   # First, try using that file with no special directory specified.
31834   cat >conftest.$ac_ext <<_ACEOF
31835 /* confdefs.h.  */
31836 _ACEOF
31837 cat confdefs.h >>conftest.$ac_ext
31838 cat >>conftest.$ac_ext <<_ACEOF
31839 /* end confdefs.h.  */
31840 #include <X11/Xlib.h>
31841 _ACEOF
31842 if { (ac_try="$ac_cpp conftest.$ac_ext"
31843 case "(($ac_try" in
31844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31845   *) ac_try_echo=$ac_try;;
31846 esac
31847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31849   ac_status=$?
31850   grep -v '^ *+' conftest.er1 >conftest.err
31851   rm -f conftest.er1
31852   cat conftest.err >&5
31853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854   (exit $ac_status); } >/dev/null && {
31855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31856          test ! -s conftest.err
31857        }; then
31858   # We can compile using X headers with no special include directory.
31859 ac_x_includes=
31860 else
31861   echo "$as_me: failed program was:" >&5
31862 sed 's/^/| /' conftest.$ac_ext >&5
31863
31864   for ac_dir in $ac_x_header_dirs; do
31865   if test -r "$ac_dir/X11/Xlib.h"; then
31866     ac_x_includes=$ac_dir
31867     break
31868   fi
31869 done
31870 fi
31871
31872 rm -f conftest.err conftest.$ac_ext
31873 fi # $ac_x_includes = no
31874
31875 if test "$ac_x_libraries" = no; then
31876   # Check for the libraries.
31877   # See if we find them without any special options.
31878   # Don't add to $LIBS permanently.
31879   ac_save_LIBS=$LIBS
31880   LIBS="-lX11 $LIBS"
31881   cat >conftest.$ac_ext <<_ACEOF
31882 /* confdefs.h.  */
31883 _ACEOF
31884 cat confdefs.h >>conftest.$ac_ext
31885 cat >>conftest.$ac_ext <<_ACEOF
31886 /* end confdefs.h.  */
31887 #include <X11/Xlib.h>
31888 int
31889 main ()
31890 {
31891 XrmInitialize ()
31892   ;
31893   return 0;
31894 }
31895 _ACEOF
31896 rm -f conftest.$ac_objext conftest$ac_exeext
31897 if { (ac_try="$ac_link"
31898 case "(($ac_try" in
31899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31900   *) ac_try_echo=$ac_try;;
31901 esac
31902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903   (eval "$ac_link") 2>conftest.er1
31904   ac_status=$?
31905   grep -v '^ *+' conftest.er1 >conftest.err
31906   rm -f conftest.er1
31907   cat conftest.err >&5
31908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909   (exit $ac_status); } && {
31910          test -z "$ac_c_werror_flag" ||
31911          test ! -s conftest.err
31912        } && test -s conftest$ac_exeext &&
31913        $as_test_x conftest$ac_exeext; then
31914   LIBS=$ac_save_LIBS
31915 # We can link X programs with no special library path.
31916 ac_x_libraries=
31917 else
31918   echo "$as_me: failed program was:" >&5
31919 sed 's/^/| /' conftest.$ac_ext >&5
31920
31921         LIBS=$ac_save_LIBS
31922 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31923 do
31924   # Don't even attempt the hair of trying to link an X program!
31925   for ac_extension in a so sl; do
31926     if test -r "$ac_dir/libX11.$ac_extension"; then
31927       ac_x_libraries=$ac_dir
31928       break 2
31929     fi
31930   done
31931 done
31932 fi
31933
31934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31935       conftest$ac_exeext conftest.$ac_ext
31936 fi # $ac_x_libraries = no
31937
31938 case $ac_x_includes,$ac_x_libraries in #(
31939   no,* | *,no | *\'*)
31940     # Didn't find X, or a directory has "'" in its name.
31941     ac_cv_have_x="have_x=no";; #(
31942   *)
31943     # Record where we found X for the cache.
31944     ac_cv_have_x="have_x=yes\
31945         ac_x_includes='$ac_x_includes'\
31946         ac_x_libraries='$ac_x_libraries'"
31947 esac
31948 fi
31949 ;; #(
31950     *) have_x=yes;;
31951   esac
31952   eval "$ac_cv_have_x"
31953 fi # $with_x != no
31954
31955 if test "$have_x" != yes; then
31956   { echo "$as_me:$LINENO: result: $have_x" >&5
31957 echo "${ECHO_T}$have_x" >&6; }
31958   no_x=yes
31959 else
31960   # If each of the values was on the command line, it overrides each guess.
31961   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31962   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31963   # Update the cache value to reflect the command line values.
31964   ac_cv_have_x="have_x=yes\
31965         ac_x_includes='$x_includes'\
31966         ac_x_libraries='$x_libraries'"
31967   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
31968 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
31969 fi
31970
31971 if test "$no_x" = yes; then
31972   # Not all programs may use this symbol, but it does not hurt to define it.
31973
31974 cat >>confdefs.h <<\_ACEOF
31975 #define X_DISPLAY_MISSING 1
31976 _ACEOF
31977
31978   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
31979 else
31980   if test -n "$x_includes"; then
31981     X_CFLAGS="$X_CFLAGS -I$x_includes"
31982   fi
31983
31984   # It would also be nice to do this for all -L options, not just this one.
31985   if test -n "$x_libraries"; then
31986     X_LIBS="$X_LIBS -L$x_libraries"
31987     # For Solaris; some versions of Sun CC require a space after -R and
31988     # others require no space.  Words are not sufficient . . . .
31989     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
31990 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
31991     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
31992     ac_xsave_c_werror_flag=$ac_c_werror_flag
31993     ac_c_werror_flag=yes
31994     cat >conftest.$ac_ext <<_ACEOF
31995 /* confdefs.h.  */
31996 _ACEOF
31997 cat confdefs.h >>conftest.$ac_ext
31998 cat >>conftest.$ac_ext <<_ACEOF
31999 /* end confdefs.h.  */
32000
32001 int
32002 main ()
32003 {
32004
32005   ;
32006   return 0;
32007 }
32008 _ACEOF
32009 rm -f conftest.$ac_objext conftest$ac_exeext
32010 if { (ac_try="$ac_link"
32011 case "(($ac_try" in
32012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013   *) ac_try_echo=$ac_try;;
32014 esac
32015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016   (eval "$ac_link") 2>conftest.er1
32017   ac_status=$?
32018   grep -v '^ *+' conftest.er1 >conftest.err
32019   rm -f conftest.er1
32020   cat conftest.err >&5
32021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022   (exit $ac_status); } && {
32023          test -z "$ac_c_werror_flag" ||
32024          test ! -s conftest.err
32025        } && test -s conftest$ac_exeext &&
32026        $as_test_x conftest$ac_exeext; then
32027   { echo "$as_me:$LINENO: result: no" >&5
32028 echo "${ECHO_T}no" >&6; }
32029        X_LIBS="$X_LIBS -R$x_libraries"
32030 else
32031   echo "$as_me: failed program was:" >&5
32032 sed 's/^/| /' conftest.$ac_ext >&5
32033
32034         LIBS="$ac_xsave_LIBS -R $x_libraries"
32035        cat >conftest.$ac_ext <<_ACEOF
32036 /* confdefs.h.  */
32037 _ACEOF
32038 cat confdefs.h >>conftest.$ac_ext
32039 cat >>conftest.$ac_ext <<_ACEOF
32040 /* end confdefs.h.  */
32041
32042 int
32043 main ()
32044 {
32045
32046   ;
32047   return 0;
32048 }
32049 _ACEOF
32050 rm -f conftest.$ac_objext conftest$ac_exeext
32051 if { (ac_try="$ac_link"
32052 case "(($ac_try" in
32053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054   *) ac_try_echo=$ac_try;;
32055 esac
32056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057   (eval "$ac_link") 2>conftest.er1
32058   ac_status=$?
32059   grep -v '^ *+' conftest.er1 >conftest.err
32060   rm -f conftest.er1
32061   cat conftest.err >&5
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); } && {
32064          test -z "$ac_c_werror_flag" ||
32065          test ! -s conftest.err
32066        } && test -s conftest$ac_exeext &&
32067        $as_test_x conftest$ac_exeext; then
32068   { echo "$as_me:$LINENO: result: yes" >&5
32069 echo "${ECHO_T}yes" >&6; }
32070           X_LIBS="$X_LIBS -R $x_libraries"
32071 else
32072   echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32074
32075         { echo "$as_me:$LINENO: result: neither works" >&5
32076 echo "${ECHO_T}neither works" >&6; }
32077 fi
32078
32079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32080       conftest$ac_exeext conftest.$ac_ext
32081 fi
32082
32083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32084       conftest$ac_exeext conftest.$ac_ext
32085     ac_c_werror_flag=$ac_xsave_c_werror_flag
32086     LIBS=$ac_xsave_LIBS
32087   fi
32088
32089   # Check for system-dependent libraries X programs must link with.
32090   # Do this before checking for the system-independent R6 libraries
32091   # (-lICE), since we may need -lsocket or whatever for X linking.
32092
32093   if test "$ISC" = yes; then
32094     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32095   else
32096     # Martyn Johnson says this is needed for Ultrix, if the X
32097     # libraries were built with DECnet support.  And Karl Berry says
32098     # the Alpha needs dnet_stub (dnet does not exist).
32099     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32100     cat >conftest.$ac_ext <<_ACEOF
32101 /* confdefs.h.  */
32102 _ACEOF
32103 cat confdefs.h >>conftest.$ac_ext
32104 cat >>conftest.$ac_ext <<_ACEOF
32105 /* end confdefs.h.  */
32106
32107 /* Override any GCC internal prototype to avoid an error.
32108    Use char because int might match the return type of a GCC
32109    builtin and then its argument prototype would still apply.  */
32110 #ifdef __cplusplus
32111 extern "C"
32112 #endif
32113 char XOpenDisplay ();
32114 int
32115 main ()
32116 {
32117 return XOpenDisplay ();
32118   ;
32119   return 0;
32120 }
32121 _ACEOF
32122 rm -f conftest.$ac_objext conftest$ac_exeext
32123 if { (ac_try="$ac_link"
32124 case "(($ac_try" in
32125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126   *) ac_try_echo=$ac_try;;
32127 esac
32128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129   (eval "$ac_link") 2>conftest.er1
32130   ac_status=$?
32131   grep -v '^ *+' conftest.er1 >conftest.err
32132   rm -f conftest.er1
32133   cat conftest.err >&5
32134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135   (exit $ac_status); } && {
32136          test -z "$ac_c_werror_flag" ||
32137          test ! -s conftest.err
32138        } && test -s conftest$ac_exeext &&
32139        $as_test_x conftest$ac_exeext; then
32140   :
32141 else
32142   echo "$as_me: failed program was:" >&5
32143 sed 's/^/| /' conftest.$ac_ext >&5
32144
32145         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32146 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32147 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32148   echo $ECHO_N "(cached) $ECHO_C" >&6
32149 else
32150   ac_check_lib_save_LIBS=$LIBS
32151 LIBS="-ldnet  $LIBS"
32152 cat >conftest.$ac_ext <<_ACEOF
32153 /* confdefs.h.  */
32154 _ACEOF
32155 cat confdefs.h >>conftest.$ac_ext
32156 cat >>conftest.$ac_ext <<_ACEOF
32157 /* end confdefs.h.  */
32158
32159 /* Override any GCC internal prototype to avoid an error.
32160    Use char because int might match the return type of a GCC
32161    builtin and then its argument prototype would still apply.  */
32162 #ifdef __cplusplus
32163 extern "C"
32164 #endif
32165 char dnet_ntoa ();
32166 int
32167 main ()
32168 {
32169 return dnet_ntoa ();
32170   ;
32171   return 0;
32172 }
32173 _ACEOF
32174 rm -f conftest.$ac_objext conftest$ac_exeext
32175 if { (ac_try="$ac_link"
32176 case "(($ac_try" in
32177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32178   *) ac_try_echo=$ac_try;;
32179 esac
32180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32181   (eval "$ac_link") 2>conftest.er1
32182   ac_status=$?
32183   grep -v '^ *+' conftest.er1 >conftest.err
32184   rm -f conftest.er1
32185   cat conftest.err >&5
32186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187   (exit $ac_status); } && {
32188          test -z "$ac_c_werror_flag" ||
32189          test ! -s conftest.err
32190        } && test -s conftest$ac_exeext &&
32191        $as_test_x conftest$ac_exeext; then
32192   ac_cv_lib_dnet_dnet_ntoa=yes
32193 else
32194   echo "$as_me: failed program was:" >&5
32195 sed 's/^/| /' conftest.$ac_ext >&5
32196
32197         ac_cv_lib_dnet_dnet_ntoa=no
32198 fi
32199
32200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32201       conftest$ac_exeext conftest.$ac_ext
32202 LIBS=$ac_check_lib_save_LIBS
32203 fi
32204 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32205 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32206 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32207   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32208 fi
32209
32210     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32211       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32212 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32213 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32214   echo $ECHO_N "(cached) $ECHO_C" >&6
32215 else
32216   ac_check_lib_save_LIBS=$LIBS
32217 LIBS="-ldnet_stub  $LIBS"
32218 cat >conftest.$ac_ext <<_ACEOF
32219 /* confdefs.h.  */
32220 _ACEOF
32221 cat confdefs.h >>conftest.$ac_ext
32222 cat >>conftest.$ac_ext <<_ACEOF
32223 /* end confdefs.h.  */
32224
32225 /* Override any GCC internal prototype to avoid an error.
32226    Use char because int might match the return type of a GCC
32227    builtin and then its argument prototype would still apply.  */
32228 #ifdef __cplusplus
32229 extern "C"
32230 #endif
32231 char dnet_ntoa ();
32232 int
32233 main ()
32234 {
32235 return dnet_ntoa ();
32236   ;
32237   return 0;
32238 }
32239 _ACEOF
32240 rm -f conftest.$ac_objext conftest$ac_exeext
32241 if { (ac_try="$ac_link"
32242 case "(($ac_try" in
32243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244   *) ac_try_echo=$ac_try;;
32245 esac
32246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32247   (eval "$ac_link") 2>conftest.er1
32248   ac_status=$?
32249   grep -v '^ *+' conftest.er1 >conftest.err
32250   rm -f conftest.er1
32251   cat conftest.err >&5
32252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32253   (exit $ac_status); } && {
32254          test -z "$ac_c_werror_flag" ||
32255          test ! -s conftest.err
32256        } && test -s conftest$ac_exeext &&
32257        $as_test_x conftest$ac_exeext; then
32258   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32259 else
32260   echo "$as_me: failed program was:" >&5
32261 sed 's/^/| /' conftest.$ac_ext >&5
32262
32263         ac_cv_lib_dnet_stub_dnet_ntoa=no
32264 fi
32265
32266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32267       conftest$ac_exeext conftest.$ac_ext
32268 LIBS=$ac_check_lib_save_LIBS
32269 fi
32270 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32271 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32272 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32273   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32274 fi
32275
32276     fi
32277 fi
32278
32279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32280       conftest$ac_exeext conftest.$ac_ext
32281     LIBS="$ac_xsave_LIBS"
32282
32283     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32284     # to get the SysV transport functions.
32285     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32286     # needs -lnsl.
32287     # The nsl library prevents programs from opening the X display
32288     # on Irix 5.2, according to T.E. Dickey.
32289     # The functions gethostbyname, getservbyname, and inet_addr are
32290     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32291     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32292 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32293 if test "${ac_cv_func_gethostbyname+set}" = set; then
32294   echo $ECHO_N "(cached) $ECHO_C" >&6
32295 else
32296   cat >conftest.$ac_ext <<_ACEOF
32297 /* confdefs.h.  */
32298 _ACEOF
32299 cat confdefs.h >>conftest.$ac_ext
32300 cat >>conftest.$ac_ext <<_ACEOF
32301 /* end confdefs.h.  */
32302 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32304 #define gethostbyname innocuous_gethostbyname
32305
32306 /* System header to define __stub macros and hopefully few prototypes,
32307     which can conflict with char gethostbyname (); below.
32308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32309     <limits.h> exists even on freestanding compilers.  */
32310
32311 #ifdef __STDC__
32312 # include <limits.h>
32313 #else
32314 # include <assert.h>
32315 #endif
32316
32317 #undef gethostbyname
32318
32319 /* Override any GCC internal prototype to avoid an error.
32320    Use char because int might match the return type of a GCC
32321    builtin and then its argument prototype would still apply.  */
32322 #ifdef __cplusplus
32323 extern "C"
32324 #endif
32325 char gethostbyname ();
32326 /* The GNU C library defines this for functions which it implements
32327     to always fail with ENOSYS.  Some functions are actually named
32328     something starting with __ and the normal name is an alias.  */
32329 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32330 choke me
32331 #endif
32332
32333 int
32334 main ()
32335 {
32336 return gethostbyname ();
32337   ;
32338   return 0;
32339 }
32340 _ACEOF
32341 rm -f conftest.$ac_objext conftest$ac_exeext
32342 if { (ac_try="$ac_link"
32343 case "(($ac_try" in
32344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345   *) ac_try_echo=$ac_try;;
32346 esac
32347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32348   (eval "$ac_link") 2>conftest.er1
32349   ac_status=$?
32350   grep -v '^ *+' conftest.er1 >conftest.err
32351   rm -f conftest.er1
32352   cat conftest.err >&5
32353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354   (exit $ac_status); } && {
32355          test -z "$ac_c_werror_flag" ||
32356          test ! -s conftest.err
32357        } && test -s conftest$ac_exeext &&
32358        $as_test_x conftest$ac_exeext; then
32359   ac_cv_func_gethostbyname=yes
32360 else
32361   echo "$as_me: failed program was:" >&5
32362 sed 's/^/| /' conftest.$ac_ext >&5
32363
32364         ac_cv_func_gethostbyname=no
32365 fi
32366
32367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32368       conftest$ac_exeext conftest.$ac_ext
32369 fi
32370 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32371 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32372
32373     if test $ac_cv_func_gethostbyname = no; then
32374       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32375 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32376 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32377   echo $ECHO_N "(cached) $ECHO_C" >&6
32378 else
32379   ac_check_lib_save_LIBS=$LIBS
32380 LIBS="-lnsl  $LIBS"
32381 cat >conftest.$ac_ext <<_ACEOF
32382 /* confdefs.h.  */
32383 _ACEOF
32384 cat confdefs.h >>conftest.$ac_ext
32385 cat >>conftest.$ac_ext <<_ACEOF
32386 /* end confdefs.h.  */
32387
32388 /* Override any GCC internal prototype to avoid an error.
32389    Use char because int might match the return type of a GCC
32390    builtin and then its argument prototype would still apply.  */
32391 #ifdef __cplusplus
32392 extern "C"
32393 #endif
32394 char gethostbyname ();
32395 int
32396 main ()
32397 {
32398 return gethostbyname ();
32399   ;
32400   return 0;
32401 }
32402 _ACEOF
32403 rm -f conftest.$ac_objext conftest$ac_exeext
32404 if { (ac_try="$ac_link"
32405 case "(($ac_try" in
32406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32407   *) ac_try_echo=$ac_try;;
32408 esac
32409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32410   (eval "$ac_link") 2>conftest.er1
32411   ac_status=$?
32412   grep -v '^ *+' conftest.er1 >conftest.err
32413   rm -f conftest.er1
32414   cat conftest.err >&5
32415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416   (exit $ac_status); } && {
32417          test -z "$ac_c_werror_flag" ||
32418          test ! -s conftest.err
32419        } && test -s conftest$ac_exeext &&
32420        $as_test_x conftest$ac_exeext; then
32421   ac_cv_lib_nsl_gethostbyname=yes
32422 else
32423   echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32425
32426         ac_cv_lib_nsl_gethostbyname=no
32427 fi
32428
32429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32430       conftest$ac_exeext conftest.$ac_ext
32431 LIBS=$ac_check_lib_save_LIBS
32432 fi
32433 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32434 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32435 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32436   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32437 fi
32438
32439       if test $ac_cv_lib_nsl_gethostbyname = no; then
32440         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32441 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32442 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32443   echo $ECHO_N "(cached) $ECHO_C" >&6
32444 else
32445   ac_check_lib_save_LIBS=$LIBS
32446 LIBS="-lbsd  $LIBS"
32447 cat >conftest.$ac_ext <<_ACEOF
32448 /* confdefs.h.  */
32449 _ACEOF
32450 cat confdefs.h >>conftest.$ac_ext
32451 cat >>conftest.$ac_ext <<_ACEOF
32452 /* end confdefs.h.  */
32453
32454 /* Override any GCC internal prototype to avoid an error.
32455    Use char because int might match the return type of a GCC
32456    builtin and then its argument prototype would still apply.  */
32457 #ifdef __cplusplus
32458 extern "C"
32459 #endif
32460 char gethostbyname ();
32461 int
32462 main ()
32463 {
32464 return gethostbyname ();
32465   ;
32466   return 0;
32467 }
32468 _ACEOF
32469 rm -f conftest.$ac_objext conftest$ac_exeext
32470 if { (ac_try="$ac_link"
32471 case "(($ac_try" in
32472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473   *) ac_try_echo=$ac_try;;
32474 esac
32475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476   (eval "$ac_link") 2>conftest.er1
32477   ac_status=$?
32478   grep -v '^ *+' conftest.er1 >conftest.err
32479   rm -f conftest.er1
32480   cat conftest.err >&5
32481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482   (exit $ac_status); } && {
32483          test -z "$ac_c_werror_flag" ||
32484          test ! -s conftest.err
32485        } && test -s conftest$ac_exeext &&
32486        $as_test_x conftest$ac_exeext; then
32487   ac_cv_lib_bsd_gethostbyname=yes
32488 else
32489   echo "$as_me: failed program was:" >&5
32490 sed 's/^/| /' conftest.$ac_ext >&5
32491
32492         ac_cv_lib_bsd_gethostbyname=no
32493 fi
32494
32495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32496       conftest$ac_exeext conftest.$ac_ext
32497 LIBS=$ac_check_lib_save_LIBS
32498 fi
32499 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32500 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32501 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32502   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32503 fi
32504
32505       fi
32506     fi
32507
32508     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32509     # socket/setsockopt and other routines are undefined under SCO ODT
32510     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32511     # on later versions), says Simon Leinen: it contains gethostby*
32512     # variants that don't use the name server (or something).  -lsocket
32513     # must be given before -lnsl if both are needed.  We assume that
32514     # if connect needs -lnsl, so does gethostbyname.
32515     { echo "$as_me:$LINENO: checking for connect" >&5
32516 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32517 if test "${ac_cv_func_connect+set}" = set; then
32518   echo $ECHO_N "(cached) $ECHO_C" >&6
32519 else
32520   cat >conftest.$ac_ext <<_ACEOF
32521 /* confdefs.h.  */
32522 _ACEOF
32523 cat confdefs.h >>conftest.$ac_ext
32524 cat >>conftest.$ac_ext <<_ACEOF
32525 /* end confdefs.h.  */
32526 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32528 #define connect innocuous_connect
32529
32530 /* System header to define __stub macros and hopefully few prototypes,
32531     which can conflict with char connect (); below.
32532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32533     <limits.h> exists even on freestanding compilers.  */
32534
32535 #ifdef __STDC__
32536 # include <limits.h>
32537 #else
32538 # include <assert.h>
32539 #endif
32540
32541 #undef connect
32542
32543 /* Override any GCC internal prototype to avoid an error.
32544    Use char because int might match the return type of a GCC
32545    builtin and then its argument prototype would still apply.  */
32546 #ifdef __cplusplus
32547 extern "C"
32548 #endif
32549 char connect ();
32550 /* The GNU C library defines this for functions which it implements
32551     to always fail with ENOSYS.  Some functions are actually named
32552     something starting with __ and the normal name is an alias.  */
32553 #if defined __stub_connect || defined __stub___connect
32554 choke me
32555 #endif
32556
32557 int
32558 main ()
32559 {
32560 return connect ();
32561   ;
32562   return 0;
32563 }
32564 _ACEOF
32565 rm -f conftest.$ac_objext conftest$ac_exeext
32566 if { (ac_try="$ac_link"
32567 case "(($ac_try" in
32568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32569   *) ac_try_echo=$ac_try;;
32570 esac
32571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32572   (eval "$ac_link") 2>conftest.er1
32573   ac_status=$?
32574   grep -v '^ *+' conftest.er1 >conftest.err
32575   rm -f conftest.er1
32576   cat conftest.err >&5
32577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578   (exit $ac_status); } && {
32579          test -z "$ac_c_werror_flag" ||
32580          test ! -s conftest.err
32581        } && test -s conftest$ac_exeext &&
32582        $as_test_x conftest$ac_exeext; then
32583   ac_cv_func_connect=yes
32584 else
32585   echo "$as_me: failed program was:" >&5
32586 sed 's/^/| /' conftest.$ac_ext >&5
32587
32588         ac_cv_func_connect=no
32589 fi
32590
32591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32592       conftest$ac_exeext conftest.$ac_ext
32593 fi
32594 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32595 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32596
32597     if test $ac_cv_func_connect = no; then
32598       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32599 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32600 if test "${ac_cv_lib_socket_connect+set}" = set; then
32601   echo $ECHO_N "(cached) $ECHO_C" >&6
32602 else
32603   ac_check_lib_save_LIBS=$LIBS
32604 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32605 cat >conftest.$ac_ext <<_ACEOF
32606 /* confdefs.h.  */
32607 _ACEOF
32608 cat confdefs.h >>conftest.$ac_ext
32609 cat >>conftest.$ac_ext <<_ACEOF
32610 /* end confdefs.h.  */
32611
32612 /* Override any GCC internal prototype to avoid an error.
32613    Use char because int might match the return type of a GCC
32614    builtin and then its argument prototype would still apply.  */
32615 #ifdef __cplusplus
32616 extern "C"
32617 #endif
32618 char connect ();
32619 int
32620 main ()
32621 {
32622 return connect ();
32623   ;
32624   return 0;
32625 }
32626 _ACEOF
32627 rm -f conftest.$ac_objext conftest$ac_exeext
32628 if { (ac_try="$ac_link"
32629 case "(($ac_try" in
32630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631   *) ac_try_echo=$ac_try;;
32632 esac
32633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634   (eval "$ac_link") 2>conftest.er1
32635   ac_status=$?
32636   grep -v '^ *+' conftest.er1 >conftest.err
32637   rm -f conftest.er1
32638   cat conftest.err >&5
32639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640   (exit $ac_status); } && {
32641          test -z "$ac_c_werror_flag" ||
32642          test ! -s conftest.err
32643        } && test -s conftest$ac_exeext &&
32644        $as_test_x conftest$ac_exeext; then
32645   ac_cv_lib_socket_connect=yes
32646 else
32647   echo "$as_me: failed program was:" >&5
32648 sed 's/^/| /' conftest.$ac_ext >&5
32649
32650         ac_cv_lib_socket_connect=no
32651 fi
32652
32653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32654       conftest$ac_exeext conftest.$ac_ext
32655 LIBS=$ac_check_lib_save_LIBS
32656 fi
32657 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32658 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32659 if test $ac_cv_lib_socket_connect = yes; then
32660   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32661 fi
32662
32663     fi
32664
32665     # Guillermo Gomez says -lposix is necessary on A/UX.
32666     { echo "$as_me:$LINENO: checking for remove" >&5
32667 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32668 if test "${ac_cv_func_remove+set}" = set; then
32669   echo $ECHO_N "(cached) $ECHO_C" >&6
32670 else
32671   cat >conftest.$ac_ext <<_ACEOF
32672 /* confdefs.h.  */
32673 _ACEOF
32674 cat confdefs.h >>conftest.$ac_ext
32675 cat >>conftest.$ac_ext <<_ACEOF
32676 /* end confdefs.h.  */
32677 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32679 #define remove innocuous_remove
32680
32681 /* System header to define __stub macros and hopefully few prototypes,
32682     which can conflict with char remove (); below.
32683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32684     <limits.h> exists even on freestanding compilers.  */
32685
32686 #ifdef __STDC__
32687 # include <limits.h>
32688 #else
32689 # include <assert.h>
32690 #endif
32691
32692 #undef remove
32693
32694 /* Override any GCC internal prototype to avoid an error.
32695    Use char because int might match the return type of a GCC
32696    builtin and then its argument prototype would still apply.  */
32697 #ifdef __cplusplus
32698 extern "C"
32699 #endif
32700 char remove ();
32701 /* The GNU C library defines this for functions which it implements
32702     to always fail with ENOSYS.  Some functions are actually named
32703     something starting with __ and the normal name is an alias.  */
32704 #if defined __stub_remove || defined __stub___remove
32705 choke me
32706 #endif
32707
32708 int
32709 main ()
32710 {
32711 return remove ();
32712   ;
32713   return 0;
32714 }
32715 _ACEOF
32716 rm -f conftest.$ac_objext conftest$ac_exeext
32717 if { (ac_try="$ac_link"
32718 case "(($ac_try" in
32719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32720   *) ac_try_echo=$ac_try;;
32721 esac
32722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32723   (eval "$ac_link") 2>conftest.er1
32724   ac_status=$?
32725   grep -v '^ *+' conftest.er1 >conftest.err
32726   rm -f conftest.er1
32727   cat conftest.err >&5
32728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729   (exit $ac_status); } && {
32730          test -z "$ac_c_werror_flag" ||
32731          test ! -s conftest.err
32732        } && test -s conftest$ac_exeext &&
32733        $as_test_x conftest$ac_exeext; then
32734   ac_cv_func_remove=yes
32735 else
32736   echo "$as_me: failed program was:" >&5
32737 sed 's/^/| /' conftest.$ac_ext >&5
32738
32739         ac_cv_func_remove=no
32740 fi
32741
32742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32743       conftest$ac_exeext conftest.$ac_ext
32744 fi
32745 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32746 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32747
32748     if test $ac_cv_func_remove = no; then
32749       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32750 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32751 if test "${ac_cv_lib_posix_remove+set}" = set; then
32752   echo $ECHO_N "(cached) $ECHO_C" >&6
32753 else
32754   ac_check_lib_save_LIBS=$LIBS
32755 LIBS="-lposix  $LIBS"
32756 cat >conftest.$ac_ext <<_ACEOF
32757 /* confdefs.h.  */
32758 _ACEOF
32759 cat confdefs.h >>conftest.$ac_ext
32760 cat >>conftest.$ac_ext <<_ACEOF
32761 /* end confdefs.h.  */
32762
32763 /* Override any GCC internal prototype to avoid an error.
32764    Use char because int might match the return type of a GCC
32765    builtin and then its argument prototype would still apply.  */
32766 #ifdef __cplusplus
32767 extern "C"
32768 #endif
32769 char remove ();
32770 int
32771 main ()
32772 {
32773 return remove ();
32774   ;
32775   return 0;
32776 }
32777 _ACEOF
32778 rm -f conftest.$ac_objext conftest$ac_exeext
32779 if { (ac_try="$ac_link"
32780 case "(($ac_try" in
32781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782   *) ac_try_echo=$ac_try;;
32783 esac
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785   (eval "$ac_link") 2>conftest.er1
32786   ac_status=$?
32787   grep -v '^ *+' conftest.er1 >conftest.err
32788   rm -f conftest.er1
32789   cat conftest.err >&5
32790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791   (exit $ac_status); } && {
32792          test -z "$ac_c_werror_flag" ||
32793          test ! -s conftest.err
32794        } && test -s conftest$ac_exeext &&
32795        $as_test_x conftest$ac_exeext; then
32796   ac_cv_lib_posix_remove=yes
32797 else
32798   echo "$as_me: failed program was:" >&5
32799 sed 's/^/| /' conftest.$ac_ext >&5
32800
32801         ac_cv_lib_posix_remove=no
32802 fi
32803
32804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32805       conftest$ac_exeext conftest.$ac_ext
32806 LIBS=$ac_check_lib_save_LIBS
32807 fi
32808 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32809 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32810 if test $ac_cv_lib_posix_remove = yes; then
32811   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32812 fi
32813
32814     fi
32815
32816     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32817     { echo "$as_me:$LINENO: checking for shmat" >&5
32818 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32819 if test "${ac_cv_func_shmat+set}" = set; then
32820   echo $ECHO_N "(cached) $ECHO_C" >&6
32821 else
32822   cat >conftest.$ac_ext <<_ACEOF
32823 /* confdefs.h.  */
32824 _ACEOF
32825 cat confdefs.h >>conftest.$ac_ext
32826 cat >>conftest.$ac_ext <<_ACEOF
32827 /* end confdefs.h.  */
32828 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32830 #define shmat innocuous_shmat
32831
32832 /* System header to define __stub macros and hopefully few prototypes,
32833     which can conflict with char shmat (); below.
32834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32835     <limits.h> exists even on freestanding compilers.  */
32836
32837 #ifdef __STDC__
32838 # include <limits.h>
32839 #else
32840 # include <assert.h>
32841 #endif
32842
32843 #undef shmat
32844
32845 /* Override any GCC internal prototype to avoid an error.
32846    Use char because int might match the return type of a GCC
32847    builtin and then its argument prototype would still apply.  */
32848 #ifdef __cplusplus
32849 extern "C"
32850 #endif
32851 char shmat ();
32852 /* The GNU C library defines this for functions which it implements
32853     to always fail with ENOSYS.  Some functions are actually named
32854     something starting with __ and the normal name is an alias.  */
32855 #if defined __stub_shmat || defined __stub___shmat
32856 choke me
32857 #endif
32858
32859 int
32860 main ()
32861 {
32862 return shmat ();
32863   ;
32864   return 0;
32865 }
32866 _ACEOF
32867 rm -f conftest.$ac_objext conftest$ac_exeext
32868 if { (ac_try="$ac_link"
32869 case "(($ac_try" in
32870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32871   *) ac_try_echo=$ac_try;;
32872 esac
32873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874   (eval "$ac_link") 2>conftest.er1
32875   ac_status=$?
32876   grep -v '^ *+' conftest.er1 >conftest.err
32877   rm -f conftest.er1
32878   cat conftest.err >&5
32879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880   (exit $ac_status); } && {
32881          test -z "$ac_c_werror_flag" ||
32882          test ! -s conftest.err
32883        } && test -s conftest$ac_exeext &&
32884        $as_test_x conftest$ac_exeext; then
32885   ac_cv_func_shmat=yes
32886 else
32887   echo "$as_me: failed program was:" >&5
32888 sed 's/^/| /' conftest.$ac_ext >&5
32889
32890         ac_cv_func_shmat=no
32891 fi
32892
32893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32894       conftest$ac_exeext conftest.$ac_ext
32895 fi
32896 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32897 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32898
32899     if test $ac_cv_func_shmat = no; then
32900       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32901 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32902 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32903   echo $ECHO_N "(cached) $ECHO_C" >&6
32904 else
32905   ac_check_lib_save_LIBS=$LIBS
32906 LIBS="-lipc  $LIBS"
32907 cat >conftest.$ac_ext <<_ACEOF
32908 /* confdefs.h.  */
32909 _ACEOF
32910 cat confdefs.h >>conftest.$ac_ext
32911 cat >>conftest.$ac_ext <<_ACEOF
32912 /* end confdefs.h.  */
32913
32914 /* Override any GCC internal prototype to avoid an error.
32915    Use char because int might match the return type of a GCC
32916    builtin and then its argument prototype would still apply.  */
32917 #ifdef __cplusplus
32918 extern "C"
32919 #endif
32920 char shmat ();
32921 int
32922 main ()
32923 {
32924 return shmat ();
32925   ;
32926   return 0;
32927 }
32928 _ACEOF
32929 rm -f conftest.$ac_objext conftest$ac_exeext
32930 if { (ac_try="$ac_link"
32931 case "(($ac_try" in
32932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933   *) ac_try_echo=$ac_try;;
32934 esac
32935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936   (eval "$ac_link") 2>conftest.er1
32937   ac_status=$?
32938   grep -v '^ *+' conftest.er1 >conftest.err
32939   rm -f conftest.er1
32940   cat conftest.err >&5
32941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942   (exit $ac_status); } && {
32943          test -z "$ac_c_werror_flag" ||
32944          test ! -s conftest.err
32945        } && test -s conftest$ac_exeext &&
32946        $as_test_x conftest$ac_exeext; then
32947   ac_cv_lib_ipc_shmat=yes
32948 else
32949   echo "$as_me: failed program was:" >&5
32950 sed 's/^/| /' conftest.$ac_ext >&5
32951
32952         ac_cv_lib_ipc_shmat=no
32953 fi
32954
32955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32956       conftest$ac_exeext conftest.$ac_ext
32957 LIBS=$ac_check_lib_save_LIBS
32958 fi
32959 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
32960 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
32961 if test $ac_cv_lib_ipc_shmat = yes; then
32962   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
32963 fi
32964
32965     fi
32966   fi
32967
32968   # Check for libraries that X11R6 Xt/Xaw programs need.
32969   ac_save_LDFLAGS=$LDFLAGS
32970   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
32971   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
32972   # check for ICE first), but we must link in the order -lSM -lICE or
32973   # we get undefined symbols.  So assume we have SM if we have ICE.
32974   # These have to be linked with before -lX11, unlike the other
32975   # libraries we check for below, so use a different variable.
32976   # John Interrante, Karl Berry
32977   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
32978 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
32979 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
32980   echo $ECHO_N "(cached) $ECHO_C" >&6
32981 else
32982   ac_check_lib_save_LIBS=$LIBS
32983 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
32984 cat >conftest.$ac_ext <<_ACEOF
32985 /* confdefs.h.  */
32986 _ACEOF
32987 cat confdefs.h >>conftest.$ac_ext
32988 cat >>conftest.$ac_ext <<_ACEOF
32989 /* end confdefs.h.  */
32990
32991 /* Override any GCC internal prototype to avoid an error.
32992    Use char because int might match the return type of a GCC
32993    builtin and then its argument prototype would still apply.  */
32994 #ifdef __cplusplus
32995 extern "C"
32996 #endif
32997 char IceConnectionNumber ();
32998 int
32999 main ()
33000 {
33001 return IceConnectionNumber ();
33002   ;
33003   return 0;
33004 }
33005 _ACEOF
33006 rm -f conftest.$ac_objext conftest$ac_exeext
33007 if { (ac_try="$ac_link"
33008 case "(($ac_try" in
33009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010   *) ac_try_echo=$ac_try;;
33011 esac
33012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013   (eval "$ac_link") 2>conftest.er1
33014   ac_status=$?
33015   grep -v '^ *+' conftest.er1 >conftest.err
33016   rm -f conftest.er1
33017   cat conftest.err >&5
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); } && {
33020          test -z "$ac_c_werror_flag" ||
33021          test ! -s conftest.err
33022        } && test -s conftest$ac_exeext &&
33023        $as_test_x conftest$ac_exeext; then
33024   ac_cv_lib_ICE_IceConnectionNumber=yes
33025 else
33026   echo "$as_me: failed program was:" >&5
33027 sed 's/^/| /' conftest.$ac_ext >&5
33028
33029         ac_cv_lib_ICE_IceConnectionNumber=no
33030 fi
33031
33032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33033       conftest$ac_exeext conftest.$ac_ext
33034 LIBS=$ac_check_lib_save_LIBS
33035 fi
33036 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33037 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33038 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33039   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33040 fi
33041
33042   LDFLAGS=$ac_save_LDFLAGS
33043
33044 fi
33045
33046
33047         if test "$no_x" = "yes"; then
33048           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33049 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33050    { (exit 1); exit 1; }; }
33051         fi
33052
33053                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33054         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33055         AFMINSTALL=afminstall
33056         COMPILED_X_PROGRAM=0
33057
33058     fi
33059
33060     if test "$wxUSE_X11" = 1; then
33061         if test "$wxUSE_NANOX" = "yes"; then
33062             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33063 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33064             if test "x$MICROWIN" = x ; then
33065                 { echo "$as_me:$LINENO: result: not found" >&5
33066 echo "${ECHO_T}not found" >&6; }
33067                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33068 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33069    { (exit 1); exit 1; }; }
33070             else
33071                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33072 echo "${ECHO_T}$MICROWIN" >&6; }
33073                 cat >>confdefs.h <<\_ACEOF
33074 #define wxUSE_NANOX 1
33075 _ACEOF
33076
33077             fi
33078         fi
33079
33080         if test "$wxUSE_UNICODE" = "yes"; then
33081
33082
33083 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33084         if test -n "$ac_tool_prefix"; then
33085   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33086 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33089 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33090   echo $ECHO_N "(cached) $ECHO_C" >&6
33091 else
33092   case $PKG_CONFIG in
33093   [\\/]* | ?:[\\/]*)
33094   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33095   ;;
33096   *)
33097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33098 for as_dir in $PATH
33099 do
33100   IFS=$as_save_IFS
33101   test -z "$as_dir" && as_dir=.
33102   for ac_exec_ext in '' $ac_executable_extensions; do
33103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33104     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33106     break 2
33107   fi
33108 done
33109 done
33110 IFS=$as_save_IFS
33111
33112   ;;
33113 esac
33114 fi
33115 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33116 if test -n "$PKG_CONFIG"; then
33117   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33118 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33119 else
33120   { echo "$as_me:$LINENO: result: no" >&5
33121 echo "${ECHO_T}no" >&6; }
33122 fi
33123
33124
33125 fi
33126 if test -z "$ac_cv_path_PKG_CONFIG"; then
33127   ac_pt_PKG_CONFIG=$PKG_CONFIG
33128   # Extract the first word of "pkg-config", so it can be a program name with args.
33129 set dummy pkg-config; ac_word=$2
33130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33132 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33133   echo $ECHO_N "(cached) $ECHO_C" >&6
33134 else
33135   case $ac_pt_PKG_CONFIG in
33136   [\\/]* | ?:[\\/]*)
33137   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33138   ;;
33139   *)
33140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33141 for as_dir in $PATH
33142 do
33143   IFS=$as_save_IFS
33144   test -z "$as_dir" && as_dir=.
33145   for ac_exec_ext in '' $ac_executable_extensions; do
33146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33147     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33149     break 2
33150   fi
33151 done
33152 done
33153 IFS=$as_save_IFS
33154
33155   ;;
33156 esac
33157 fi
33158 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33159 if test -n "$ac_pt_PKG_CONFIG"; then
33160   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33161 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33162 else
33163   { echo "$as_me:$LINENO: result: no" >&5
33164 echo "${ECHO_T}no" >&6; }
33165 fi
33166
33167   if test "x$ac_pt_PKG_CONFIG" = x; then
33168     PKG_CONFIG=""
33169   else
33170     case $cross_compiling:$ac_tool_warned in
33171 yes:)
33172 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33173 whose name does not start with the host triplet.  If you think this
33174 configuration is useful to you, please write to autoconf@gnu.org." >&5
33175 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33176 whose name does not start with the host triplet.  If you think this
33177 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33178 ac_tool_warned=yes ;;
33179 esac
33180     PKG_CONFIG=$ac_pt_PKG_CONFIG
33181   fi
33182 else
33183   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33184 fi
33185
33186 fi
33187 if test -n "$PKG_CONFIG"; then
33188         _pkg_min_version=0.9.0
33189         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33190 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33191         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33192                 { echo "$as_me:$LINENO: result: yes" >&5
33193 echo "${ECHO_T}yes" >&6; }
33194         else
33195                 { echo "$as_me:$LINENO: result: no" >&5
33196 echo "${ECHO_T}no" >&6; }
33197                 PKG_CONFIG=""
33198         fi
33199
33200 fi
33201
33202
33203 pkg_failed=no
33204 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33205 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33206
33207 if test -n "$PKG_CONFIG"; then
33208     if test -n "$PANGOX_CFLAGS"; then
33209         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33210     else
33211         if test -n "$PKG_CONFIG" && \
33212     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33213   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33214   ac_status=$?
33215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216   (exit $ac_status); }; then
33217   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33218 else
33219   pkg_failed=yes
33220 fi
33221     fi
33222 else
33223         pkg_failed=untried
33224 fi
33225 if test -n "$PKG_CONFIG"; then
33226     if test -n "$PANGOX_LIBS"; then
33227         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33228     else
33229         if test -n "$PKG_CONFIG" && \
33230     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33231   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33232   ac_status=$?
33233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234   (exit $ac_status); }; then
33235   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33236 else
33237   pkg_failed=yes
33238 fi
33239     fi
33240 else
33241         pkg_failed=untried
33242 fi
33243
33244
33245
33246 if test $pkg_failed = yes; then
33247
33248 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33249         _pkg_short_errors_supported=yes
33250 else
33251         _pkg_short_errors_supported=no
33252 fi
33253         if test $_pkg_short_errors_supported = yes; then
33254                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33255         else
33256                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33257         fi
33258         # Put the nasty error message in config.log where it belongs
33259         echo "$PANGOX_PKG_ERRORS" >&5
33260
33261
33262                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33263 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33264    { (exit 1); exit 1; }; }
33265
33266
33267 elif test $pkg_failed = untried; then
33268
33269                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33270 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33271    { (exit 1); exit 1; }; }
33272
33273
33274 else
33275         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33276         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33277         { echo "$as_me:$LINENO: result: yes" >&5
33278 echo "${ECHO_T}yes" >&6; }
33279
33280                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33281                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33282                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33283
33284 fi
33285
33286 pkg_failed=no
33287 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33288 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33289
33290 if test -n "$PKG_CONFIG"; then
33291     if test -n "$PANGOFT2_CFLAGS"; then
33292         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33293     else
33294         if test -n "$PKG_CONFIG" && \
33295     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33296   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33297   ac_status=$?
33298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299   (exit $ac_status); }; then
33300   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33301 else
33302   pkg_failed=yes
33303 fi
33304     fi
33305 else
33306         pkg_failed=untried
33307 fi
33308 if test -n "$PKG_CONFIG"; then
33309     if test -n "$PANGOFT2_LIBS"; then
33310         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33311     else
33312         if test -n "$PKG_CONFIG" && \
33313     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33314   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33315   ac_status=$?
33316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33317   (exit $ac_status); }; then
33318   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33319 else
33320   pkg_failed=yes
33321 fi
33322     fi
33323 else
33324         pkg_failed=untried
33325 fi
33326
33327
33328
33329 if test $pkg_failed = yes; then
33330
33331 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33332         _pkg_short_errors_supported=yes
33333 else
33334         _pkg_short_errors_supported=no
33335 fi
33336         if test $_pkg_short_errors_supported = yes; then
33337                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33338         else
33339                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33340         fi
33341         # Put the nasty error message in config.log where it belongs
33342         echo "$PANGOFT2_PKG_ERRORS" >&5
33343
33344
33345                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33346 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33347                     wxUSE_PRINTING_ARCHITECTURE="no"
33348
33349
33350 elif test $pkg_failed = untried; then
33351
33352                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33353 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33354                     wxUSE_PRINTING_ARCHITECTURE="no"
33355
33356
33357 else
33358         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33359         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33360         { echo "$as_me:$LINENO: result: yes" >&5
33361 echo "${ECHO_T}yes" >&6; }
33362
33363                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33364                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33365                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33366
33367 fi
33368
33369 pkg_failed=no
33370 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33371 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33372
33373 if test -n "$PKG_CONFIG"; then
33374     if test -n "$PANGOXFT_CFLAGS"; then
33375         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33376     else
33377         if test -n "$PKG_CONFIG" && \
33378     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33379   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33380   ac_status=$?
33381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382   (exit $ac_status); }; then
33383   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33384 else
33385   pkg_failed=yes
33386 fi
33387     fi
33388 else
33389         pkg_failed=untried
33390 fi
33391 if test -n "$PKG_CONFIG"; then
33392     if test -n "$PANGOXFT_LIBS"; then
33393         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33394     else
33395         if test -n "$PKG_CONFIG" && \
33396     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33397   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33398   ac_status=$?
33399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400   (exit $ac_status); }; then
33401   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33402 else
33403   pkg_failed=yes
33404 fi
33405     fi
33406 else
33407         pkg_failed=untried
33408 fi
33409
33410
33411
33412 if test $pkg_failed = yes; then
33413
33414 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33415         _pkg_short_errors_supported=yes
33416 else
33417         _pkg_short_errors_supported=no
33418 fi
33419         if test $_pkg_short_errors_supported = yes; then
33420                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33421         else
33422                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33423         fi
33424         # Put the nasty error message in config.log where it belongs
33425         echo "$PANGOXFT_PKG_ERRORS" >&5
33426
33427
33428                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33429 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33430
33431
33432 elif test $pkg_failed = untried; then
33433
33434                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33435 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33436
33437
33438 else
33439         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33440         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33441         { echo "$as_me:$LINENO: result: yes" >&5
33442 echo "${ECHO_T}yes" >&6; }
33443
33444                     cat >>confdefs.h <<\_ACEOF
33445 #define HAVE_PANGO_XFT 1
33446 _ACEOF
33447
33448                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33449                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33450                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33451
33452 fi
33453             save_LIBS="$LIBS"
33454             LIBS="$LIBS $PANGOX_LIBS"
33455
33456 for ac_func in pango_font_family_is_monospace
33457 do
33458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33462   echo $ECHO_N "(cached) $ECHO_C" >&6
33463 else
33464   cat >conftest.$ac_ext <<_ACEOF
33465 /* confdefs.h.  */
33466 _ACEOF
33467 cat confdefs.h >>conftest.$ac_ext
33468 cat >>conftest.$ac_ext <<_ACEOF
33469 /* end confdefs.h.  */
33470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33472 #define $ac_func innocuous_$ac_func
33473
33474 /* System header to define __stub macros and hopefully few prototypes,
33475     which can conflict with char $ac_func (); below.
33476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33477     <limits.h> exists even on freestanding compilers.  */
33478
33479 #ifdef __STDC__
33480 # include <limits.h>
33481 #else
33482 # include <assert.h>
33483 #endif
33484
33485 #undef $ac_func
33486
33487 /* Override any GCC internal prototype to avoid an error.
33488    Use char because int might match the return type of a GCC
33489    builtin and then its argument prototype would still apply.  */
33490 #ifdef __cplusplus
33491 extern "C"
33492 #endif
33493 char $ac_func ();
33494 /* The GNU C library defines this for functions which it implements
33495     to always fail with ENOSYS.  Some functions are actually named
33496     something starting with __ and the normal name is an alias.  */
33497 #if defined __stub_$ac_func || defined __stub___$ac_func
33498 choke me
33499 #endif
33500
33501 int
33502 main ()
33503 {
33504 return $ac_func ();
33505   ;
33506   return 0;
33507 }
33508 _ACEOF
33509 rm -f conftest.$ac_objext conftest$ac_exeext
33510 if { (ac_try="$ac_link"
33511 case "(($ac_try" in
33512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33513   *) ac_try_echo=$ac_try;;
33514 esac
33515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33516   (eval "$ac_link") 2>conftest.er1
33517   ac_status=$?
33518   grep -v '^ *+' conftest.er1 >conftest.err
33519   rm -f conftest.er1
33520   cat conftest.err >&5
33521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522   (exit $ac_status); } && {
33523          test -z "$ac_c_werror_flag" ||
33524          test ! -s conftest.err
33525        } && test -s conftest$ac_exeext &&
33526        $as_test_x conftest$ac_exeext; then
33527   eval "$as_ac_var=yes"
33528 else
33529   echo "$as_me: failed program was:" >&5
33530 sed 's/^/| /' conftest.$ac_ext >&5
33531
33532         eval "$as_ac_var=no"
33533 fi
33534
33535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33536       conftest$ac_exeext conftest.$ac_ext
33537 fi
33538 ac_res=`eval echo '${'$as_ac_var'}'`
33539                { echo "$as_me:$LINENO: result: $ac_res" >&5
33540 echo "${ECHO_T}$ac_res" >&6; }
33541 if test `eval echo '${'$as_ac_var'}'` = yes; then
33542   cat >>confdefs.h <<_ACEOF
33543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33544 _ACEOF
33545
33546 fi
33547 done
33548
33549             LIBS="$save_LIBS"
33550         fi
33551
33552         wxUSE_UNIVERSAL="yes"
33553
33554         if test "$wxUSE_NANOX" = "yes"; then
33555             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33556             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"
33557             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33558         else
33559             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33560         fi
33561
33562         TOOLKIT=X11
33563         GUIDIST=X11_DIST
33564     fi
33565
33566     if test "$wxUSE_MOTIF" = 1; then
33567         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33568 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33569
33570 ac_find_includes=
33571 for ac_dir in $SEARCH_INCLUDE /usr/include
33572   do
33573     if test -f "$ac_dir/Xm/Xm.h"; then
33574       ac_find_includes=$ac_dir
33575       break
33576     fi
33577   done
33578
33579         if test "$ac_find_includes" != "" ; then
33580             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33581 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33582
33583     if test "x$ac_find_includes" = "x/usr/include"; then
33584     ac_path_to_include=""
33585   else
33586     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33587     result=$?
33588     if test $result = 0; then
33589       ac_path_to_include=""
33590     else
33591       ac_path_to_include=" -I$ac_find_includes"
33592     fi
33593   fi
33594
33595             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33596         else
33597             save_CFLAGS=$CFLAGS
33598             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33599
33600             cat >conftest.$ac_ext <<_ACEOF
33601 /* confdefs.h.  */
33602 _ACEOF
33603 cat confdefs.h >>conftest.$ac_ext
33604 cat >>conftest.$ac_ext <<_ACEOF
33605 /* end confdefs.h.  */
33606
33607                     #include <Xm/Xm.h>
33608
33609 int
33610 main ()
33611 {
33612
33613                     int version;
33614                     version = xmUseVersion;
33615
33616   ;
33617   return 0;
33618 }
33619 _ACEOF
33620 rm -f conftest.$ac_objext
33621 if { (ac_try="$ac_compile"
33622 case "(($ac_try" in
33623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33624   *) ac_try_echo=$ac_try;;
33625 esac
33626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33627   (eval "$ac_compile") 2>conftest.er1
33628   ac_status=$?
33629   grep -v '^ *+' conftest.er1 >conftest.err
33630   rm -f conftest.er1
33631   cat conftest.err >&5
33632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633   (exit $ac_status); } && {
33634          test -z "$ac_c_werror_flag" ||
33635          test ! -s conftest.err
33636        } && test -s conftest.$ac_objext; then
33637
33638                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33639 echo "${ECHO_T}found in default search path" >&6; }
33640                     COMPILED_X_PROGRAM=1
33641
33642 else
33643   echo "$as_me: failed program was:" >&5
33644 sed 's/^/| /' conftest.$ac_ext >&5
33645
33646
33647                     { echo "$as_me:$LINENO: result: no" >&5
33648 echo "${ECHO_T}no" >&6; }
33649                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33650 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33651    { (exit 1); exit 1; }; }
33652
33653
33654 fi
33655
33656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33657
33658             CFLAGS=$save_CFLAGS
33659         fi
33660
33661
33662         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33663 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33664
33665   ac_find_libraries=
33666   for ac_dir in  $SEARCH_LIB
33667   do
33668     for ac_extension in a so sl dylib dll.a; do
33669       if test -f "$ac_dir/libXm.$ac_extension"; then
33670         ac_find_libraries=$ac_dir
33671         break 2
33672       fi
33673     done
33674   done
33675
33676
33677         if test "x$ac_find_libraries" != "x" ; then
33678             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33679 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33680
33681
33682     if test "$ac_find_libraries" = "default location"; then
33683     ac_path_to_link=""
33684   else
33685     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33686     result=$?
33687     if test $result = 0; then
33688       ac_path_to_link=""
33689     else
33690       ac_path_to_link=" -L$ac_find_libraries"
33691     fi
33692   fi
33693
33694             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33695         else
33696                                                 save_CFLAGS=$CFLAGS
33697             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33698             save_LIBS="$LIBS"
33699             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33700
33701             cat >conftest.$ac_ext <<_ACEOF
33702 /* confdefs.h.  */
33703 _ACEOF
33704 cat confdefs.h >>conftest.$ac_ext
33705 cat >>conftest.$ac_ext <<_ACEOF
33706 /* end confdefs.h.  */
33707
33708                     #include <Xm/Xm.h>
33709
33710 int
33711 main ()
33712 {
33713
33714                     int version;
33715                     version = xmUseVersion;
33716
33717   ;
33718   return 0;
33719 }
33720 _ACEOF
33721 rm -f conftest.$ac_objext conftest$ac_exeext
33722 if { (ac_try="$ac_link"
33723 case "(($ac_try" in
33724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33725   *) ac_try_echo=$ac_try;;
33726 esac
33727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33728   (eval "$ac_link") 2>conftest.er1
33729   ac_status=$?
33730   grep -v '^ *+' conftest.er1 >conftest.err
33731   rm -f conftest.er1
33732   cat conftest.err >&5
33733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734   (exit $ac_status); } && {
33735          test -z "$ac_c_werror_flag" ||
33736          test ! -s conftest.err
33737        } && test -s conftest$ac_exeext &&
33738        $as_test_x conftest$ac_exeext; then
33739
33740                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33741 echo "${ECHO_T}found in default search path" >&6; }
33742                     COMPILED_X_PROGRAM=1
33743
33744 else
33745   echo "$as_me: failed program was:" >&5
33746 sed 's/^/| /' conftest.$ac_ext >&5
33747
33748
33749                     { echo "$as_me:$LINENO: result: no" >&5
33750 echo "${ECHO_T}no" >&6; }
33751                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33752 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33753    { (exit 1); exit 1; }; }
33754
33755
33756 fi
33757
33758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33759       conftest$ac_exeext conftest.$ac_ext
33760
33761             CFLAGS=$save_CFLAGS
33762             LIBS="$save_LIBS"
33763         fi
33764
33765         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33766 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33767         libp_link=""
33768         libsm_ice_link=""
33769         libs_found=0
33770         for libp in "" " -lXp"; do
33771             if test "$libs_found" = 0; then
33772                 for libsm_ice in "" " -lSM -lICE"; do
33773                     if test "$libs_found" = 0; then
33774                         save_LIBS="$LIBS"
33775                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33776                         save_CFLAGS=$CFLAGS
33777                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33778
33779                         cat >conftest.$ac_ext <<_ACEOF
33780 /* confdefs.h.  */
33781 _ACEOF
33782 cat confdefs.h >>conftest.$ac_ext
33783 cat >>conftest.$ac_ext <<_ACEOF
33784 /* end confdefs.h.  */
33785
33786                                 #include <Xm/Xm.h>
33787                                 #include <Xm/List.h>
33788
33789 int
33790 main ()
33791 {
33792
33793                                 XmString string = NULL;
33794                                 Widget w = NULL;
33795                                 int position = 0;
33796                                 XmListAddItem(w, string, position);
33797
33798   ;
33799   return 0;
33800 }
33801 _ACEOF
33802 rm -f conftest.$ac_objext conftest$ac_exeext
33803 if { (ac_try="$ac_link"
33804 case "(($ac_try" in
33805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33806   *) ac_try_echo=$ac_try;;
33807 esac
33808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33809   (eval "$ac_link") 2>conftest.er1
33810   ac_status=$?
33811   grep -v '^ *+' conftest.er1 >conftest.err
33812   rm -f conftest.er1
33813   cat conftest.err >&5
33814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815   (exit $ac_status); } && {
33816          test -z "$ac_c_werror_flag" ||
33817          test ! -s conftest.err
33818        } && test -s conftest$ac_exeext &&
33819        $as_test_x conftest$ac_exeext; then
33820
33821                                 libp_link="$libp"
33822                                 libsm_ice_link="$libsm_ice"
33823                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33824 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33825                                 libs_found=1
33826
33827 else
33828   echo "$as_me: failed program was:" >&5
33829 sed 's/^/| /' conftest.$ac_ext >&5
33830
33831
33832
33833 fi
33834
33835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33836       conftest$ac_exeext conftest.$ac_ext
33837
33838                         LIBS="$save_LIBS"
33839                         CFLAGS=$save_CFLAGS
33840                     fi
33841                 done
33842             fi
33843         done
33844
33845         if test "$libs_found" = 0; then
33846             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33847 echo "${ECHO_T}can't find the right libraries" >&6; }
33848             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33849 echo "$as_me: error: can't link a simple motif program" >&2;}
33850    { (exit 1); exit 1; }; }
33851         fi
33852
33853                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33854 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33855 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33856   echo $ECHO_N "(cached) $ECHO_C" >&6
33857 else
33858   ac_check_lib_save_LIBS=$LIBS
33859 LIBS="-lSgm  $LIBS"
33860 cat >conftest.$ac_ext <<_ACEOF
33861 /* confdefs.h.  */
33862 _ACEOF
33863 cat confdefs.h >>conftest.$ac_ext
33864 cat >>conftest.$ac_ext <<_ACEOF
33865 /* end confdefs.h.  */
33866
33867 /* Override any GCC internal prototype to avoid an error.
33868    Use char because int might match the return type of a GCC
33869    builtin and then its argument prototype would still apply.  */
33870 #ifdef __cplusplus
33871 extern "C"
33872 #endif
33873 char SgCreateList ();
33874 int
33875 main ()
33876 {
33877 return SgCreateList ();
33878   ;
33879   return 0;
33880 }
33881 _ACEOF
33882 rm -f conftest.$ac_objext conftest$ac_exeext
33883 if { (ac_try="$ac_link"
33884 case "(($ac_try" in
33885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886   *) ac_try_echo=$ac_try;;
33887 esac
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889   (eval "$ac_link") 2>conftest.er1
33890   ac_status=$?
33891   grep -v '^ *+' conftest.er1 >conftest.err
33892   rm -f conftest.er1
33893   cat conftest.err >&5
33894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895   (exit $ac_status); } && {
33896          test -z "$ac_c_werror_flag" ||
33897          test ! -s conftest.err
33898        } && test -s conftest$ac_exeext &&
33899        $as_test_x conftest$ac_exeext; then
33900   ac_cv_lib_Sgm_SgCreateList=yes
33901 else
33902   echo "$as_me: failed program was:" >&5
33903 sed 's/^/| /' conftest.$ac_ext >&5
33904
33905         ac_cv_lib_Sgm_SgCreateList=no
33906 fi
33907
33908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33909       conftest$ac_exeext conftest.$ac_ext
33910 LIBS=$ac_check_lib_save_LIBS
33911 fi
33912 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33913 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33914 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33915   libsgm_link=" -lSgm"
33916 fi
33917
33918
33919         save_CFLAGS=$CFLAGS
33920         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33921
33922         { echo "$as_me:$LINENO: checking for Motif 2" >&5
33923 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
33924 if test "${wx_cv_lib_motif2+set}" = set; then
33925   echo $ECHO_N "(cached) $ECHO_C" >&6
33926 else
33927   cat >conftest.$ac_ext <<_ACEOF
33928 /* confdefs.h.  */
33929 _ACEOF
33930 cat confdefs.h >>conftest.$ac_ext
33931 cat >>conftest.$ac_ext <<_ACEOF
33932 /* end confdefs.h.  */
33933
33934                             #include <Xm/Xm.h>
33935
33936 int
33937 main ()
33938 {
33939
33940                             #if XmVersion < 2000
33941                             Not Motif 2
33942                             #endif
33943
33944   ;
33945   return 0;
33946 }
33947 _ACEOF
33948 rm -f conftest.$ac_objext
33949 if { (ac_try="$ac_compile"
33950 case "(($ac_try" in
33951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952   *) ac_try_echo=$ac_try;;
33953 esac
33954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955   (eval "$ac_compile") 2>conftest.er1
33956   ac_status=$?
33957   grep -v '^ *+' conftest.er1 >conftest.err
33958   rm -f conftest.er1
33959   cat conftest.err >&5
33960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961   (exit $ac_status); } && {
33962          test -z "$ac_c_werror_flag" ||
33963          test ! -s conftest.err
33964        } && test -s conftest.$ac_objext; then
33965   wx_cv_lib_motif2="yes"
33966 else
33967   echo "$as_me: failed program was:" >&5
33968 sed 's/^/| /' conftest.$ac_ext >&5
33969
33970         wx_cv_lib_motif2="no"
33971 fi
33972
33973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33974 fi
33975 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
33976 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
33977         if test "$wx_cv_lib_motif2" = "yes"; then
33978             cat >>confdefs.h <<\_ACEOF
33979 #define __WXMOTIF20__ 1
33980 _ACEOF
33981
33982         else
33983             cat >>confdefs.h <<\_ACEOF
33984 #define __WXMOTIF20__ 0
33985 _ACEOF
33986
33987         fi
33988
33989         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
33990 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
33991 if test "${wx_cv_lib_lesstif+set}" = set; then
33992   echo $ECHO_N "(cached) $ECHO_C" >&6
33993 else
33994   cat >conftest.$ac_ext <<_ACEOF
33995 /* confdefs.h.  */
33996 _ACEOF
33997 cat confdefs.h >>conftest.$ac_ext
33998 cat >>conftest.$ac_ext <<_ACEOF
33999 /* end confdefs.h.  */
34000
34001                             #include <Xm/Xm.h>
34002
34003 int
34004 main ()
34005 {
34006
34007                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34008                             Not Lesstif
34009                             #endif
34010
34011   ;
34012   return 0;
34013 }
34014 _ACEOF
34015 rm -f conftest.$ac_objext
34016 if { (ac_try="$ac_compile"
34017 case "(($ac_try" in
34018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019   *) ac_try_echo=$ac_try;;
34020 esac
34021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022   (eval "$ac_compile") 2>conftest.er1
34023   ac_status=$?
34024   grep -v '^ *+' conftest.er1 >conftest.err
34025   rm -f conftest.er1
34026   cat conftest.err >&5
34027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028   (exit $ac_status); } && {
34029          test -z "$ac_c_werror_flag" ||
34030          test ! -s conftest.err
34031        } && test -s conftest.$ac_objext; then
34032   wx_cv_lib_lesstif="yes"
34033 else
34034   echo "$as_me: failed program was:" >&5
34035 sed 's/^/| /' conftest.$ac_ext >&5
34036
34037         wx_cv_lib_lesstif="no"
34038 fi
34039
34040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34041
34042 fi
34043 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34044 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34045         if test "$wx_cv_lib_lesstif" = "yes"; then
34046             cat >>confdefs.h <<\_ACEOF
34047 #define __WXLESSTIF__ 1
34048 _ACEOF
34049
34050         else
34051             cat >>confdefs.h <<\_ACEOF
34052 #define __WXLESSTIF__ 0
34053 _ACEOF
34054
34055         fi
34056
34057         CFLAGS=$save_CFLAGS
34058
34059         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34060         TOOLKIT=MOTIF
34061         GUIDIST=MOTIF_DIST
34062     fi
34063
34064         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34065                 if test "$wxUSE_LIBXPM" = "sys"; then
34066             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34067 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34068
34069   ac_find_libraries=
34070   for ac_dir in  $SEARCH_LIB
34071   do
34072     for ac_extension in a so sl dylib dll.a; do
34073       if test -f "$ac_dir/libXpm.$ac_extension"; then
34074         ac_find_libraries=$ac_dir
34075         break 2
34076       fi
34077     done
34078   done
34079
34080             if test "$ac_find_libraries" != "" ; then
34081
34082     if test "$ac_find_libraries" = "default location"; then
34083     ac_path_to_link=""
34084   else
34085     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34086     result=$?
34087     if test $result = 0; then
34088       ac_path_to_link=""
34089     else
34090       ac_path_to_link=" -L$ac_find_libraries"
34091     fi
34092   fi
34093
34094                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34095                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34096 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34097
34098                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34099 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34100 if test "${wx_cv_x11_xpm_h+set}" = set; then
34101   echo $ECHO_N "(cached) $ECHO_C" >&6
34102 else
34103
34104                         save_CFLAGS=$CFLAGS
34105                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34106
34107                         cat >conftest.$ac_ext <<_ACEOF
34108 /* confdefs.h.  */
34109 _ACEOF
34110 cat confdefs.h >>conftest.$ac_ext
34111 cat >>conftest.$ac_ext <<_ACEOF
34112 /* end confdefs.h.  */
34113
34114                                 #include <X11/xpm.h>
34115
34116 int
34117 main ()
34118 {
34119
34120                                 int version;
34121                                 version = XpmLibraryVersion();
34122
34123   ;
34124   return 0;
34125 }
34126 _ACEOF
34127 rm -f conftest.$ac_objext
34128 if { (ac_try="$ac_compile"
34129 case "(($ac_try" in
34130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34131   *) ac_try_echo=$ac_try;;
34132 esac
34133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34134   (eval "$ac_compile") 2>conftest.er1
34135   ac_status=$?
34136   grep -v '^ *+' conftest.er1 >conftest.err
34137   rm -f conftest.er1
34138   cat conftest.err >&5
34139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140   (exit $ac_status); } && {
34141          test -z "$ac_c_werror_flag" ||
34142          test ! -s conftest.err
34143        } && test -s conftest.$ac_objext; then
34144   wx_cv_x11_xpm_h=yes
34145 else
34146   echo "$as_me: failed program was:" >&5
34147 sed 's/^/| /' conftest.$ac_ext >&5
34148
34149         wx_cv_x11_xpm_h=no
34150
34151 fi
34152
34153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34154
34155                         CFLAGS=$save_CFLAGS
34156
34157
34158 fi
34159 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34160 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34161
34162                 if test $wx_cv_x11_xpm_h = "yes"; then
34163                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34164                     cat >>confdefs.h <<\_ACEOF
34165 #define wxHAVE_LIB_XPM 1
34166 _ACEOF
34167
34168                 else
34169                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34170 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34171                 fi
34172             fi
34173
34174         fi
34175
34176                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34177 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34178 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34179   echo $ECHO_N "(cached) $ECHO_C" >&6
34180 else
34181   ac_check_lib_save_LIBS=$LIBS
34182 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34183 cat >conftest.$ac_ext <<_ACEOF
34184 /* confdefs.h.  */
34185 _ACEOF
34186 cat confdefs.h >>conftest.$ac_ext
34187 cat >>conftest.$ac_ext <<_ACEOF
34188 /* end confdefs.h.  */
34189
34190 /* Override any GCC internal prototype to avoid an error.
34191    Use char because int might match the return type of a GCC
34192    builtin and then its argument prototype would still apply.  */
34193 #ifdef __cplusplus
34194 extern "C"
34195 #endif
34196 char XShapeQueryExtension ();
34197 int
34198 main ()
34199 {
34200 return XShapeQueryExtension ();
34201   ;
34202   return 0;
34203 }
34204 _ACEOF
34205 rm -f conftest.$ac_objext conftest$ac_exeext
34206 if { (ac_try="$ac_link"
34207 case "(($ac_try" in
34208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34209   *) ac_try_echo=$ac_try;;
34210 esac
34211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34212   (eval "$ac_link") 2>conftest.er1
34213   ac_status=$?
34214   grep -v '^ *+' conftest.er1 >conftest.err
34215   rm -f conftest.er1
34216   cat conftest.err >&5
34217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218   (exit $ac_status); } && {
34219          test -z "$ac_c_werror_flag" ||
34220          test ! -s conftest.err
34221        } && test -s conftest$ac_exeext &&
34222        $as_test_x conftest$ac_exeext; then
34223   ac_cv_lib_Xext_XShapeQueryExtension=yes
34224 else
34225   echo "$as_me: failed program was:" >&5
34226 sed 's/^/| /' conftest.$ac_ext >&5
34227
34228         ac_cv_lib_Xext_XShapeQueryExtension=no
34229 fi
34230
34231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34232       conftest$ac_exeext conftest.$ac_ext
34233 LIBS=$ac_check_lib_save_LIBS
34234 fi
34235 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34236 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34237 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34238
34239                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34240                       wxHAVE_XEXT_LIB=1
34241
34242 fi
34243
34244
34245         if test "$wxHAVE_XEXT_LIB" = 1; then
34246             save_CFLAGS="$CFLAGS"
34247             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34248
34249             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34250 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34251             cat >conftest.$ac_ext <<_ACEOF
34252 /* confdefs.h.  */
34253 _ACEOF
34254 cat confdefs.h >>conftest.$ac_ext
34255 cat >>conftest.$ac_ext <<_ACEOF
34256 /* end confdefs.h.  */
34257
34258                             #include <X11/Xlib.h>
34259                             #include <X11/extensions/shape.h>
34260
34261 int
34262 main ()
34263 {
34264
34265                             int dummy1, dummy2;
34266                             XShapeQueryExtension((Display*)NULL,
34267                                                  (int*)NULL, (int*)NULL);
34268
34269   ;
34270   return 0;
34271 }
34272 _ACEOF
34273 rm -f conftest.$ac_objext
34274 if { (ac_try="$ac_compile"
34275 case "(($ac_try" in
34276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34277   *) ac_try_echo=$ac_try;;
34278 esac
34279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34280   (eval "$ac_compile") 2>conftest.er1
34281   ac_status=$?
34282   grep -v '^ *+' conftest.er1 >conftest.err
34283   rm -f conftest.er1
34284   cat conftest.err >&5
34285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286   (exit $ac_status); } && {
34287          test -z "$ac_c_werror_flag" ||
34288          test ! -s conftest.err
34289        } && test -s conftest.$ac_objext; then
34290
34291                             cat >>confdefs.h <<\_ACEOF
34292 #define HAVE_XSHAPE 1
34293 _ACEOF
34294
34295                             { echo "$as_me:$LINENO: result: found" >&5
34296 echo "${ECHO_T}found" >&6; }
34297
34298 else
34299   echo "$as_me: failed program was:" >&5
34300 sed 's/^/| /' conftest.$ac_ext >&5
34301
34302
34303                             { echo "$as_me:$LINENO: result: not found" >&5
34304 echo "${ECHO_T}not found" >&6; }
34305
34306 fi
34307
34308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34309             CFLAGS="$save_CFLAGS"
34310
34311         fi
34312     fi
34313
34314     if test "$wxUSE_OSX_CARBON" = 1; then
34315         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34316 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34317         if test "$GCC" = yes; then
34318             { echo "$as_me:$LINENO: result: gcc" >&5
34319 echo "${ECHO_T}gcc" >&6; }
34320             CPPFLAGS_PASCAL="-fpascal-strings"
34321         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34322             { echo "$as_me:$LINENO: result: xlc" >&5
34323 echo "${ECHO_T}xlc" >&6; }
34324             CPPFLAGS_PASCAL="-qmacpstr"
34325         else
34326             { echo "$as_me:$LINENO: result: none" >&5
34327 echo "${ECHO_T}none" >&6; }
34328         fi
34329
34330         if test "x$wxUSE_UNIX" = "xyes"; then
34331             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34332         else
34333                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34334         fi
34335
34336         TOOLKIT=OSX_CARBON
34337                 GUIDIST=OSX_CARBON_DIST
34338                         WXBASEPORT="_carbon"
34339
34340                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34341     fi
34342
34343     if test "$wxUSE_OSX_COCOA" = 1; then
34344         TOOLKIT=OSX_COCOA
34345         GUIDIST=OSX_COCOA_DIST
34346
34347                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34348     fi
34349
34350     if test "$wxUSE_OSX_IPHONE" = 1; then
34351         TOOLKIT=OSX_IPHONE
34352     fi
34353
34354     if test "$wxUSE_OLD_COCOA" = 1; then
34355         TOOLKIT=COCOA
34356         GUIDIST=COCOA_DIST
34357     fi
34358
34359     if test "$wxUSE_PM" = 1; then
34360         TOOLKIT=PM
34361         GUIDIST=PM_DIST
34362         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34363 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34364 if test "${wx_cv_spbcdata+set}" = set; then
34365   echo $ECHO_N "(cached) $ECHO_C" >&6
34366 else
34367
34368                 cat >conftest.$ac_ext <<_ACEOF
34369 /* confdefs.h.  */
34370 _ACEOF
34371 cat confdefs.h >>conftest.$ac_ext
34372 cat >>conftest.$ac_ext <<_ACEOF
34373 /* end confdefs.h.  */
34374
34375                         #define INCL_PM
34376                         #include <os2.h>
34377
34378 int
34379 main ()
34380 {
34381
34382                         SPBCDATA test;
34383
34384   ;
34385   return 0;
34386 }
34387 _ACEOF
34388 rm -f conftest.$ac_objext
34389 if { (ac_try="$ac_compile"
34390 case "(($ac_try" in
34391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34392   *) ac_try_echo=$ac_try;;
34393 esac
34394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34395   (eval "$ac_compile") 2>conftest.er1
34396   ac_status=$?
34397   grep -v '^ *+' conftest.er1 >conftest.err
34398   rm -f conftest.er1
34399   cat conftest.err >&5
34400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401   (exit $ac_status); } && {
34402          test -z "$ac_c_werror_flag" ||
34403          test ! -s conftest.err
34404        } && test -s conftest.$ac_objext; then
34405   wx_cv_spbcdata=yes
34406 else
34407   echo "$as_me: failed program was:" >&5
34408 sed 's/^/| /' conftest.$ac_ext >&5
34409
34410         wx_cv_spbcdata=no
34411
34412 fi
34413
34414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34415
34416
34417 fi
34418 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34419 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34420
34421         if test $wx_cv_spbcdata = "yes"; then
34422             cat >>confdefs.h <<\_ACEOF
34423 #define HAVE_SPBCDATA 1
34424 _ACEOF
34425
34426         fi
34427     fi
34428
34429         if test "$TOOLKIT" = "PM" ; then
34430         TOOLKIT_DIR="os2"
34431     else
34432         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34433     fi
34434
34435     if test "$wxUSE_UNIVERSAL" = "yes"; then
34436         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34437         WIDGET_SET=univ
34438     fi
34439
34440         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34441     DISTDIR="wx\$(TOOLKIT)"
34442 else
34443     USE_GUI=0
34444
34445             TOOLKIT_DIR="base"
34446
34447         if test "$USE_WIN32" = 1 ; then
34448                         TOOLKIT="MSW"
34449     fi
34450
34451         GUIDIST="BASE_DIST"
34452     DISTDIR="wxBase"
34453 fi
34454
34455
34456
34457 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34458     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34459         wxUSE_UNICODE_UTF8=yes
34460     elif test "$USE_OS2" = 1 ; then
34461                                 wxUSE_UNICODE_UTF8=yes
34462     else
34463         wxUSE_UNICODE_UTF8=no
34464     fi
34465 fi
34466
34467
34468 if test "$wxUSE_GUI" = "yes"; then
34469     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34470
34471 for ac_header in X11/Xlib.h
34472 do
34473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34477   echo $ECHO_N "(cached) $ECHO_C" >&6
34478 else
34479   cat >conftest.$ac_ext <<_ACEOF
34480 /* confdefs.h.  */
34481 _ACEOF
34482 cat confdefs.h >>conftest.$ac_ext
34483 cat >>conftest.$ac_ext <<_ACEOF
34484 /* end confdefs.h.  */
34485
34486
34487 #include <$ac_header>
34488 _ACEOF
34489 rm -f conftest.$ac_objext
34490 if { (ac_try="$ac_compile"
34491 case "(($ac_try" in
34492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34493   *) ac_try_echo=$ac_try;;
34494 esac
34495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34496   (eval "$ac_compile") 2>conftest.er1
34497   ac_status=$?
34498   grep -v '^ *+' conftest.er1 >conftest.err
34499   rm -f conftest.er1
34500   cat conftest.err >&5
34501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502   (exit $ac_status); } && {
34503          test -z "$ac_c_werror_flag" ||
34504          test ! -s conftest.err
34505        } && test -s conftest.$ac_objext; then
34506   eval "$as_ac_Header=yes"
34507 else
34508   echo "$as_me: failed program was:" >&5
34509 sed 's/^/| /' conftest.$ac_ext >&5
34510
34511         eval "$as_ac_Header=no"
34512 fi
34513
34514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34515 fi
34516 ac_res=`eval echo '${'$as_ac_Header'}'`
34517                { echo "$as_me:$LINENO: result: $ac_res" >&5
34518 echo "${ECHO_T}$ac_res" >&6; }
34519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34520   cat >>confdefs.h <<_ACEOF
34521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34522 _ACEOF
34523
34524 fi
34525
34526 done
34527
34528
34529 for ac_header in X11/XKBlib.h
34530 do
34531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34535   echo $ECHO_N "(cached) $ECHO_C" >&6
34536 else
34537   cat >conftest.$ac_ext <<_ACEOF
34538 /* confdefs.h.  */
34539 _ACEOF
34540 cat confdefs.h >>conftest.$ac_ext
34541 cat >>conftest.$ac_ext <<_ACEOF
34542 /* end confdefs.h.  */
34543
34544                           #if HAVE_X11_XLIB_H
34545                             #include <X11/Xlib.h>
34546                           #endif
34547
34548
34549 #include <$ac_header>
34550 _ACEOF
34551 rm -f conftest.$ac_objext
34552 if { (ac_try="$ac_compile"
34553 case "(($ac_try" in
34554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34555   *) ac_try_echo=$ac_try;;
34556 esac
34557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34558   (eval "$ac_compile") 2>conftest.er1
34559   ac_status=$?
34560   grep -v '^ *+' conftest.er1 >conftest.err
34561   rm -f conftest.er1
34562   cat conftest.err >&5
34563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564   (exit $ac_status); } && {
34565          test -z "$ac_c_werror_flag" ||
34566          test ! -s conftest.err
34567        } && test -s conftest.$ac_objext; then
34568   eval "$as_ac_Header=yes"
34569 else
34570   echo "$as_me: failed program was:" >&5
34571 sed 's/^/| /' conftest.$ac_ext >&5
34572
34573         eval "$as_ac_Header=no"
34574 fi
34575
34576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34577 fi
34578 ac_res=`eval echo '${'$as_ac_Header'}'`
34579                { echo "$as_me:$LINENO: result: $ac_res" >&5
34580 echo "${ECHO_T}$ac_res" >&6; }
34581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34582   cat >>confdefs.h <<_ACEOF
34583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34584 _ACEOF
34585
34586 fi
34587
34588 done
34589
34590     fi
34591 fi
34592
34593
34594
34595 USE_XINERAMA=0
34596 if test "$wxUSE_DISPLAY" = "yes"; then
34597         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34598
34599   ac_find_libraries=
34600
34601     fl_pkgname=`echo "Xinerama" | tr [:upper:] [:lower:]`
34602
34603
34604 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
34605         if test -n "$ac_tool_prefix"; then
34606   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
34607 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34610 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34611   echo $ECHO_N "(cached) $ECHO_C" >&6
34612 else
34613   case $PKG_CONFIG in
34614   [\\/]* | ?:[\\/]*)
34615   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34616   ;;
34617   *)
34618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34619 for as_dir in $PATH
34620 do
34621   IFS=$as_save_IFS
34622   test -z "$as_dir" && as_dir=.
34623   for ac_exec_ext in '' $ac_executable_extensions; do
34624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34625     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34627     break 2
34628   fi
34629 done
34630 done
34631 IFS=$as_save_IFS
34632
34633   ;;
34634 esac
34635 fi
34636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34637 if test -n "$PKG_CONFIG"; then
34638   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34639 echo "${ECHO_T}$PKG_CONFIG" >&6; }
34640 else
34641   { echo "$as_me:$LINENO: result: no" >&5
34642 echo "${ECHO_T}no" >&6; }
34643 fi
34644
34645
34646 fi
34647 if test -z "$ac_cv_path_PKG_CONFIG"; then
34648   ac_pt_PKG_CONFIG=$PKG_CONFIG
34649   # Extract the first word of "pkg-config", so it can be a program name with args.
34650 set dummy pkg-config; ac_word=$2
34651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34653 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
34654   echo $ECHO_N "(cached) $ECHO_C" >&6
34655 else
34656   case $ac_pt_PKG_CONFIG in
34657   [\\/]* | ?:[\\/]*)
34658   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
34659   ;;
34660   *)
34661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34662 for as_dir in $PATH
34663 do
34664   IFS=$as_save_IFS
34665   test -z "$as_dir" && as_dir=.
34666   for ac_exec_ext in '' $ac_executable_extensions; do
34667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34668     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34670     break 2
34671   fi
34672 done
34673 done
34674 IFS=$as_save_IFS
34675
34676   ;;
34677 esac
34678 fi
34679 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
34680 if test -n "$ac_pt_PKG_CONFIG"; then
34681   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
34682 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
34683 else
34684   { echo "$as_me:$LINENO: result: no" >&5
34685 echo "${ECHO_T}no" >&6; }
34686 fi
34687
34688   if test "x$ac_pt_PKG_CONFIG" = x; then
34689     PKG_CONFIG=""
34690   else
34691     case $cross_compiling:$ac_tool_warned in
34692 yes:)
34693 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34694 whose name does not start with the host triplet.  If you think this
34695 configuration is useful to you, please write to autoconf@gnu.org." >&5
34696 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34697 whose name does not start with the host triplet.  If you think this
34698 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34699 ac_tool_warned=yes ;;
34700 esac
34701     PKG_CONFIG=$ac_pt_PKG_CONFIG
34702   fi
34703 else
34704   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
34705 fi
34706
34707 fi
34708 if test -n "$PKG_CONFIG"; then
34709         _pkg_min_version=0.9.0
34710         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
34711 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
34712         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
34713                 { echo "$as_me:$LINENO: result: yes" >&5
34714 echo "${ECHO_T}yes" >&6; }
34715         else
34716                 { echo "$as_me:$LINENO: result: no" >&5
34717 echo "${ECHO_T}no" >&6; }
34718                 PKG_CONFIG=""
34719         fi
34720
34721 fi 6> /dev/null
34722
34723 pkg_failed=no
34724 { echo "$as_me:$LINENO: checking for Xinerama" >&5
34725 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34726
34727 if test -n "$PKG_CONFIG"; then
34728     if test -n "$Xinerama_CFLAGS"; then
34729         pkg_cv_Xinerama_CFLAGS="$Xinerama_CFLAGS"
34730     else
34731         if test -n "$PKG_CONFIG" && \
34732     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
34733   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
34734   ac_status=$?
34735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736   (exit $ac_status); }; then
34737   pkg_cv_Xinerama_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
34738 else
34739   pkg_failed=yes
34740 fi
34741     fi
34742 else
34743         pkg_failed=untried
34744 fi
34745 if test -n "$PKG_CONFIG"; then
34746     if test -n "$Xinerama_LIBS"; then
34747         pkg_cv_Xinerama_LIBS="$Xinerama_LIBS"
34748     else
34749         if test -n "$PKG_CONFIG" && \
34750     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
34751   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
34752   ac_status=$?
34753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754   (exit $ac_status); }; then
34755   pkg_cv_Xinerama_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
34756 else
34757   pkg_failed=yes
34758 fi
34759     fi
34760 else
34761         pkg_failed=untried
34762 fi
34763
34764
34765
34766 if test $pkg_failed = yes; then
34767
34768 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34769         _pkg_short_errors_supported=yes
34770 else
34771         _pkg_short_errors_supported=no
34772 fi
34773         if test $_pkg_short_errors_supported = yes; then
34774                 Xinerama_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
34775         else
34776                 Xinerama_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
34777         fi
34778         # Put the nasty error message in config.log where it belongs
34779         echo "$Xinerama_PKG_ERRORS" >&5
34780
34781
34782       if test "x$ac_find_libraries" = "x"; then
34783                 if test "xXineramaQueryScreens" != "x"; then
34784           { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
34785 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
34786 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
34787   echo $ECHO_N "(cached) $ECHO_C" >&6
34788 else
34789   ac_check_lib_save_LIBS=$LIBS
34790 LIBS="-lXinerama  $LIBS"
34791 cat >conftest.$ac_ext <<_ACEOF
34792 /* confdefs.h.  */
34793 _ACEOF
34794 cat confdefs.h >>conftest.$ac_ext
34795 cat >>conftest.$ac_ext <<_ACEOF
34796 /* end confdefs.h.  */
34797
34798 /* Override any GCC internal prototype to avoid an error.
34799    Use char because int might match the return type of a GCC
34800    builtin and then its argument prototype would still apply.  */
34801 #ifdef __cplusplus
34802 extern "C"
34803 #endif
34804 char XineramaQueryScreens ();
34805 int
34806 main ()
34807 {
34808 return XineramaQueryScreens ();
34809   ;
34810   return 0;
34811 }
34812 _ACEOF
34813 rm -f conftest.$ac_objext conftest$ac_exeext
34814 if { (ac_try="$ac_link"
34815 case "(($ac_try" in
34816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34817   *) ac_try_echo=$ac_try;;
34818 esac
34819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34820   (eval "$ac_link") 2>conftest.er1
34821   ac_status=$?
34822   grep -v '^ *+' conftest.er1 >conftest.err
34823   rm -f conftest.er1
34824   cat conftest.err >&5
34825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826   (exit $ac_status); } && {
34827          test -z "$ac_c_werror_flag" ||
34828          test ! -s conftest.err
34829        } && test -s conftest$ac_exeext &&
34830        $as_test_x conftest$ac_exeext; then
34831   ac_cv_lib_Xinerama_XineramaQueryScreens=yes
34832 else
34833   echo "$as_me: failed program was:" >&5
34834 sed 's/^/| /' conftest.$ac_ext >&5
34835
34836         ac_cv_lib_Xinerama_XineramaQueryScreens=no
34837 fi
34838
34839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34840       conftest$ac_exeext conftest.$ac_ext
34841 LIBS=$ac_check_lib_save_LIBS
34842 fi
34843 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
34844 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
34845 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
34846   ac_find_libraries="std"
34847 fi
34848
34849         fi
34850       fi
34851
34852       if test "x$ac_find_libraries" = "x"; then
34853                         { echo "$as_me:$LINENO: checking elsewhere" >&5
34854 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
34855
34856   ac_find_libraries=
34857   for ac_dir in  $SEARCH_LIB
34858   do
34859     for ac_extension in a so sl dylib dll.a; do
34860       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34861         ac_find_libraries=$ac_dir
34862         break 2
34863       fi
34864     done
34865   done
34866
34867         if test "x$ac_find_libraries" != "x"; then
34868           { echo "$as_me:$LINENO: result: yes" >&5
34869 echo "${ECHO_T}yes" >&6; }
34870         else
34871           { echo "$as_me:$LINENO: result: no" >&5
34872 echo "${ECHO_T}no" >&6; }
34873         fi
34874       fi
34875
34876 elif test $pkg_failed = untried; then
34877
34878       if test "x$ac_find_libraries" = "x"; then
34879                 if test "xXineramaQueryScreens" != "x"; then
34880           { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
34881 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
34882 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
34883   echo $ECHO_N "(cached) $ECHO_C" >&6
34884 else
34885   ac_check_lib_save_LIBS=$LIBS
34886 LIBS="-lXinerama  $LIBS"
34887 cat >conftest.$ac_ext <<_ACEOF
34888 /* confdefs.h.  */
34889 _ACEOF
34890 cat confdefs.h >>conftest.$ac_ext
34891 cat >>conftest.$ac_ext <<_ACEOF
34892 /* end confdefs.h.  */
34893
34894 /* Override any GCC internal prototype to avoid an error.
34895    Use char because int might match the return type of a GCC
34896    builtin and then its argument prototype would still apply.  */
34897 #ifdef __cplusplus
34898 extern "C"
34899 #endif
34900 char XineramaQueryScreens ();
34901 int
34902 main ()
34903 {
34904 return XineramaQueryScreens ();
34905   ;
34906   return 0;
34907 }
34908 _ACEOF
34909 rm -f conftest.$ac_objext conftest$ac_exeext
34910 if { (ac_try="$ac_link"
34911 case "(($ac_try" in
34912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34913   *) ac_try_echo=$ac_try;;
34914 esac
34915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34916   (eval "$ac_link") 2>conftest.er1
34917   ac_status=$?
34918   grep -v '^ *+' conftest.er1 >conftest.err
34919   rm -f conftest.er1
34920   cat conftest.err >&5
34921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922   (exit $ac_status); } && {
34923          test -z "$ac_c_werror_flag" ||
34924          test ! -s conftest.err
34925        } && test -s conftest$ac_exeext &&
34926        $as_test_x conftest$ac_exeext; then
34927   ac_cv_lib_Xinerama_XineramaQueryScreens=yes
34928 else
34929   echo "$as_me: failed program was:" >&5
34930 sed 's/^/| /' conftest.$ac_ext >&5
34931
34932         ac_cv_lib_Xinerama_XineramaQueryScreens=no
34933 fi
34934
34935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34936       conftest$ac_exeext conftest.$ac_ext
34937 LIBS=$ac_check_lib_save_LIBS
34938 fi
34939 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
34940 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
34941 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
34942   ac_find_libraries="std"
34943 fi
34944
34945         fi
34946       fi
34947
34948       if test "x$ac_find_libraries" = "x"; then
34949                         { echo "$as_me:$LINENO: checking elsewhere" >&5
34950 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
34951
34952   ac_find_libraries=
34953   for ac_dir in  $SEARCH_LIB
34954   do
34955     for ac_extension in a so sl dylib dll.a; do
34956       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34957         ac_find_libraries=$ac_dir
34958         break 2
34959       fi
34960     done
34961   done
34962
34963         if test "x$ac_find_libraries" != "x"; then
34964           { echo "$as_me:$LINENO: result: yes" >&5
34965 echo "${ECHO_T}yes" >&6; }
34966         else
34967           { echo "$as_me:$LINENO: result: no" >&5
34968 echo "${ECHO_T}no" >&6; }
34969         fi
34970       fi
34971
34972 else
34973         Xinerama_CFLAGS=$pkg_cv_Xinerama_CFLAGS
34974         Xinerama_LIBS=$pkg_cv_Xinerama_LIBS
34975         { echo "$as_me:$LINENO: result: yes" >&5
34976 echo "${ECHO_T}yes" >&6; }
34977
34978             ac_find_libraries="std"
34979
34980                                                 eval ac_find_cflags=\$Xinerama_CFLAGS
34981       eval fl_libs=\$Xinerama_LIBS
34982
34983                   for fl_path in $fl_libs
34984       do
34985         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
34986                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
34987         fi
34988       done
34989
34990 fi
34991
34992         if test "$ac_find_libraries" != "" ; then
34993             if test "$ac_find_libraries" != "std" ; then
34994
34995     if test "$ac_find_libraries" = "default location"; then
34996     ac_path_to_link=""
34997   else
34998     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34999     result=$?
35000     if test $result = 0; then
35001       ac_path_to_link=""
35002     else
35003       ac_path_to_link=" -L$ac_find_libraries"
35004     fi
35005   fi
35006
35007               if test "$ac_path_to_link" != " -L/usr/lib" ; then
35008                   LDFLAGS="$LDFLAGS $ac_path_to_link"
35009               fi
35010             fi
35011             USE_XINERAMA=1
35012             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35013         else
35014             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35015 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35016             wxUSE_DISPLAY="no"
35017         fi
35018     elif test "$wxUSE_MSW" = 1; then
35019                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35020 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35021 if test "${ac_cv_header_ddraw_h+set}" = set; then
35022   echo $ECHO_N "(cached) $ECHO_C" >&6
35023 else
35024   cat >conftest.$ac_ext <<_ACEOF
35025 /* confdefs.h.  */
35026 _ACEOF
35027 cat confdefs.h >>conftest.$ac_ext
35028 cat >>conftest.$ac_ext <<_ACEOF
35029 /* end confdefs.h.  */
35030 #include <windows.h>
35031
35032 #include <ddraw.h>
35033 _ACEOF
35034 rm -f conftest.$ac_objext
35035 if { (ac_try="$ac_compile"
35036 case "(($ac_try" in
35037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35038   *) ac_try_echo=$ac_try;;
35039 esac
35040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35041   (eval "$ac_compile") 2>conftest.er1
35042   ac_status=$?
35043   grep -v '^ *+' conftest.er1 >conftest.err
35044   rm -f conftest.er1
35045   cat conftest.err >&5
35046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35047   (exit $ac_status); } && {
35048          test -z "$ac_c_werror_flag" ||
35049          test ! -s conftest.err
35050        } && test -s conftest.$ac_objext; then
35051   ac_cv_header_ddraw_h=yes
35052 else
35053   echo "$as_me: failed program was:" >&5
35054 sed 's/^/| /' conftest.$ac_ext >&5
35055
35056         ac_cv_header_ddraw_h=no
35057 fi
35058
35059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35060 fi
35061 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35062 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35063
35064
35065     fi
35066 fi
35067
35068 if test "$wxUSE_DISPLAY" = "yes"; then
35069         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
35070
35071   ac_find_libraries=
35072
35073     fl_pkgname=`echo "Xxf86vm" | tr [:upper:] [:lower:]`
35074
35075
35076 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
35077         if test -n "$ac_tool_prefix"; then
35078   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35079 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35082 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35083   echo $ECHO_N "(cached) $ECHO_C" >&6
35084 else
35085   case $PKG_CONFIG in
35086   [\\/]* | ?:[\\/]*)
35087   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35088   ;;
35089   *)
35090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35091 for as_dir in $PATH
35092 do
35093   IFS=$as_save_IFS
35094   test -z "$as_dir" && as_dir=.
35095   for ac_exec_ext in '' $ac_executable_extensions; do
35096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35097     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35099     break 2
35100   fi
35101 done
35102 done
35103 IFS=$as_save_IFS
35104
35105   ;;
35106 esac
35107 fi
35108 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35109 if test -n "$PKG_CONFIG"; then
35110   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35111 echo "${ECHO_T}$PKG_CONFIG" >&6; }
35112 else
35113   { echo "$as_me:$LINENO: result: no" >&5
35114 echo "${ECHO_T}no" >&6; }
35115 fi
35116
35117
35118 fi
35119 if test -z "$ac_cv_path_PKG_CONFIG"; then
35120   ac_pt_PKG_CONFIG=$PKG_CONFIG
35121   # Extract the first word of "pkg-config", so it can be a program name with args.
35122 set dummy pkg-config; ac_word=$2
35123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35125 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35126   echo $ECHO_N "(cached) $ECHO_C" >&6
35127 else
35128   case $ac_pt_PKG_CONFIG in
35129   [\\/]* | ?:[\\/]*)
35130   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35131   ;;
35132   *)
35133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35134 for as_dir in $PATH
35135 do
35136   IFS=$as_save_IFS
35137   test -z "$as_dir" && as_dir=.
35138   for ac_exec_ext in '' $ac_executable_extensions; do
35139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35140     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35142     break 2
35143   fi
35144 done
35145 done
35146 IFS=$as_save_IFS
35147
35148   ;;
35149 esac
35150 fi
35151 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35152 if test -n "$ac_pt_PKG_CONFIG"; then
35153   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35154 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
35155 else
35156   { echo "$as_me:$LINENO: result: no" >&5
35157 echo "${ECHO_T}no" >&6; }
35158 fi
35159
35160   if test "x$ac_pt_PKG_CONFIG" = x; then
35161     PKG_CONFIG=""
35162   else
35163     case $cross_compiling:$ac_tool_warned in
35164 yes:)
35165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35166 whose name does not start with the host triplet.  If you think this
35167 configuration is useful to you, please write to autoconf@gnu.org." >&5
35168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35169 whose name does not start with the host triplet.  If you think this
35170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35171 ac_tool_warned=yes ;;
35172 esac
35173     PKG_CONFIG=$ac_pt_PKG_CONFIG
35174   fi
35175 else
35176   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35177 fi
35178
35179 fi
35180 if test -n "$PKG_CONFIG"; then
35181         _pkg_min_version=0.9.0
35182         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35183 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
35184         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35185                 { echo "$as_me:$LINENO: result: yes" >&5
35186 echo "${ECHO_T}yes" >&6; }
35187         else
35188                 { echo "$as_me:$LINENO: result: no" >&5
35189 echo "${ECHO_T}no" >&6; }
35190                 PKG_CONFIG=""
35191         fi
35192
35193 fi 6> /dev/null
35194
35195 pkg_failed=no
35196 { echo "$as_me:$LINENO: checking for Xxf86vm" >&5
35197 echo $ECHO_N "checking for Xxf86vm... $ECHO_C" >&6; }
35198
35199 if test -n "$PKG_CONFIG"; then
35200     if test -n "$Xxf86vm_CFLAGS"; then
35201         pkg_cv_Xxf86vm_CFLAGS="$Xxf86vm_CFLAGS"
35202     else
35203         if test -n "$PKG_CONFIG" && \
35204     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35205   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35206   ac_status=$?
35207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208   (exit $ac_status); }; then
35209   pkg_cv_Xxf86vm_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
35210 else
35211   pkg_failed=yes
35212 fi
35213     fi
35214 else
35215         pkg_failed=untried
35216 fi
35217 if test -n "$PKG_CONFIG"; then
35218     if test -n "$Xxf86vm_LIBS"; then
35219         pkg_cv_Xxf86vm_LIBS="$Xxf86vm_LIBS"
35220     else
35221         if test -n "$PKG_CONFIG" && \
35222     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35223   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35224   ac_status=$?
35225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226   (exit $ac_status); }; then
35227   pkg_cv_Xxf86vm_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
35228 else
35229   pkg_failed=yes
35230 fi
35231     fi
35232 else
35233         pkg_failed=untried
35234 fi
35235
35236
35237
35238 if test $pkg_failed = yes; then
35239
35240 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35241         _pkg_short_errors_supported=yes
35242 else
35243         _pkg_short_errors_supported=no
35244 fi
35245         if test $_pkg_short_errors_supported = yes; then
35246                 Xxf86vm_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
35247         else
35248                 Xxf86vm_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
35249         fi
35250         # Put the nasty error message in config.log where it belongs
35251         echo "$Xxf86vm_PKG_ERRORS" >&5
35252
35253
35254       if test "x$ac_find_libraries" = "x"; then
35255                 if test "xXF86VidModeQueryExtension" != "x"; then
35256           { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
35257 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
35258 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
35259   echo $ECHO_N "(cached) $ECHO_C" >&6
35260 else
35261   ac_check_lib_save_LIBS=$LIBS
35262 LIBS="-lXxf86vm  $LIBS"
35263 cat >conftest.$ac_ext <<_ACEOF
35264 /* confdefs.h.  */
35265 _ACEOF
35266 cat confdefs.h >>conftest.$ac_ext
35267 cat >>conftest.$ac_ext <<_ACEOF
35268 /* end confdefs.h.  */
35269
35270 /* Override any GCC internal prototype to avoid an error.
35271    Use char because int might match the return type of a GCC
35272    builtin and then its argument prototype would still apply.  */
35273 #ifdef __cplusplus
35274 extern "C"
35275 #endif
35276 char XF86VidModeQueryExtension ();
35277 int
35278 main ()
35279 {
35280 return XF86VidModeQueryExtension ();
35281   ;
35282   return 0;
35283 }
35284 _ACEOF
35285 rm -f conftest.$ac_objext conftest$ac_exeext
35286 if { (ac_try="$ac_link"
35287 case "(($ac_try" in
35288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35289   *) ac_try_echo=$ac_try;;
35290 esac
35291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35292   (eval "$ac_link") 2>conftest.er1
35293   ac_status=$?
35294   grep -v '^ *+' conftest.er1 >conftest.err
35295   rm -f conftest.er1
35296   cat conftest.err >&5
35297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35298   (exit $ac_status); } && {
35299          test -z "$ac_c_werror_flag" ||
35300          test ! -s conftest.err
35301        } && test -s conftest$ac_exeext &&
35302        $as_test_x conftest$ac_exeext; then
35303   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
35304 else
35305   echo "$as_me: failed program was:" >&5
35306 sed 's/^/| /' conftest.$ac_ext >&5
35307
35308         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
35309 fi
35310
35311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35312       conftest$ac_exeext conftest.$ac_ext
35313 LIBS=$ac_check_lib_save_LIBS
35314 fi
35315 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
35316 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
35317 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
35318   ac_find_libraries="std"
35319 fi
35320
35321         fi
35322       fi
35323
35324       if test "x$ac_find_libraries" = "x"; then
35325                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35326 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35327
35328   ac_find_libraries=
35329   for ac_dir in  $SEARCH_LIB
35330   do
35331     for ac_extension in a so sl dylib dll.a; do
35332       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35333         ac_find_libraries=$ac_dir
35334         break 2
35335       fi
35336     done
35337   done
35338
35339         if test "x$ac_find_libraries" != "x"; then
35340           { echo "$as_me:$LINENO: result: yes" >&5
35341 echo "${ECHO_T}yes" >&6; }
35342         else
35343           { echo "$as_me:$LINENO: result: no" >&5
35344 echo "${ECHO_T}no" >&6; }
35345         fi
35346       fi
35347
35348 elif test $pkg_failed = untried; then
35349
35350       if test "x$ac_find_libraries" = "x"; then
35351                 if test "xXF86VidModeQueryExtension" != "x"; then
35352           { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
35353 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
35354 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
35355   echo $ECHO_N "(cached) $ECHO_C" >&6
35356 else
35357   ac_check_lib_save_LIBS=$LIBS
35358 LIBS="-lXxf86vm  $LIBS"
35359 cat >conftest.$ac_ext <<_ACEOF
35360 /* confdefs.h.  */
35361 _ACEOF
35362 cat confdefs.h >>conftest.$ac_ext
35363 cat >>conftest.$ac_ext <<_ACEOF
35364 /* end confdefs.h.  */
35365
35366 /* Override any GCC internal prototype to avoid an error.
35367    Use char because int might match the return type of a GCC
35368    builtin and then its argument prototype would still apply.  */
35369 #ifdef __cplusplus
35370 extern "C"
35371 #endif
35372 char XF86VidModeQueryExtension ();
35373 int
35374 main ()
35375 {
35376 return XF86VidModeQueryExtension ();
35377   ;
35378   return 0;
35379 }
35380 _ACEOF
35381 rm -f conftest.$ac_objext conftest$ac_exeext
35382 if { (ac_try="$ac_link"
35383 case "(($ac_try" in
35384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35385   *) ac_try_echo=$ac_try;;
35386 esac
35387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35388   (eval "$ac_link") 2>conftest.er1
35389   ac_status=$?
35390   grep -v '^ *+' conftest.er1 >conftest.err
35391   rm -f conftest.er1
35392   cat conftest.err >&5
35393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35394   (exit $ac_status); } && {
35395          test -z "$ac_c_werror_flag" ||
35396          test ! -s conftest.err
35397        } && test -s conftest$ac_exeext &&
35398        $as_test_x conftest$ac_exeext; then
35399   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
35400 else
35401   echo "$as_me: failed program was:" >&5
35402 sed 's/^/| /' conftest.$ac_ext >&5
35403
35404         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
35405 fi
35406
35407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35408       conftest$ac_exeext conftest.$ac_ext
35409 LIBS=$ac_check_lib_save_LIBS
35410 fi
35411 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
35412 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
35413 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
35414   ac_find_libraries="std"
35415 fi
35416
35417         fi
35418       fi
35419
35420       if test "x$ac_find_libraries" = "x"; then
35421                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35422 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35423
35424   ac_find_libraries=
35425   for ac_dir in  $SEARCH_LIB
35426   do
35427     for ac_extension in a so sl dylib dll.a; do
35428       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35429         ac_find_libraries=$ac_dir
35430         break 2
35431       fi
35432     done
35433   done
35434
35435         if test "x$ac_find_libraries" != "x"; then
35436           { echo "$as_me:$LINENO: result: yes" >&5
35437 echo "${ECHO_T}yes" >&6; }
35438         else
35439           { echo "$as_me:$LINENO: result: no" >&5
35440 echo "${ECHO_T}no" >&6; }
35441         fi
35442       fi
35443
35444 else
35445         Xxf86vm_CFLAGS=$pkg_cv_Xxf86vm_CFLAGS
35446         Xxf86vm_LIBS=$pkg_cv_Xxf86vm_LIBS
35447         { echo "$as_me:$LINENO: result: yes" >&5
35448 echo "${ECHO_T}yes" >&6; }
35449
35450             ac_find_libraries="std"
35451
35452                                                 eval ac_find_cflags=\$Xxf86vm_CFLAGS
35453       eval fl_libs=\$Xxf86vm_LIBS
35454
35455                   for fl_path in $fl_libs
35456       do
35457         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
35458                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
35459         fi
35460       done
35461
35462 fi
35463
35464         if test "$ac_find_libraries" != "" ; then
35465
35466 for ac_header in X11/extensions/xf86vmode.h
35467 do
35468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35472   echo $ECHO_N "(cached) $ECHO_C" >&6
35473 else
35474   cat >conftest.$ac_ext <<_ACEOF
35475 /* confdefs.h.  */
35476 _ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h.  */
35480
35481                                   #if HAVE_X11_XLIB_H
35482                                     #include <X11/Xlib.h>
35483                                   #endif
35484
35485
35486 #include <$ac_header>
35487 _ACEOF
35488 rm -f conftest.$ac_objext
35489 if { (ac_try="$ac_compile"
35490 case "(($ac_try" in
35491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35492   *) ac_try_echo=$ac_try;;
35493 esac
35494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35495   (eval "$ac_compile") 2>conftest.er1
35496   ac_status=$?
35497   grep -v '^ *+' conftest.er1 >conftest.err
35498   rm -f conftest.er1
35499   cat conftest.err >&5
35500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501   (exit $ac_status); } && {
35502          test -z "$ac_c_werror_flag" ||
35503          test ! -s conftest.err
35504        } && test -s conftest.$ac_objext; then
35505   eval "$as_ac_Header=yes"
35506 else
35507   echo "$as_me: failed program was:" >&5
35508 sed 's/^/| /' conftest.$ac_ext >&5
35509
35510         eval "$as_ac_Header=no"
35511 fi
35512
35513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35514 fi
35515 ac_res=`eval echo '${'$as_ac_Header'}'`
35516                { echo "$as_me:$LINENO: result: $ac_res" >&5
35517 echo "${ECHO_T}$ac_res" >&6; }
35518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35519   cat >>confdefs.h <<_ACEOF
35520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35521 _ACEOF
35522
35523                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35524
35525 fi
35526
35527 done
35528
35529         fi
35530     fi
35531 fi
35532
35533 if test "$wxUSE_DETECT_SM" = "yes"; then
35534     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
35535
35536   ac_find_libraries=
35537
35538     fl_pkgname=`echo "SM" | tr [:upper:] [:lower:]`
35539
35540
35541 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
35542         if test -n "$ac_tool_prefix"; then
35543   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35544 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35547 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35548   echo $ECHO_N "(cached) $ECHO_C" >&6
35549 else
35550   case $PKG_CONFIG in
35551   [\\/]* | ?:[\\/]*)
35552   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35553   ;;
35554   *)
35555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35556 for as_dir in $PATH
35557 do
35558   IFS=$as_save_IFS
35559   test -z "$as_dir" && as_dir=.
35560   for ac_exec_ext in '' $ac_executable_extensions; do
35561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35562     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35564     break 2
35565   fi
35566 done
35567 done
35568 IFS=$as_save_IFS
35569
35570   ;;
35571 esac
35572 fi
35573 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35574 if test -n "$PKG_CONFIG"; then
35575   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35576 echo "${ECHO_T}$PKG_CONFIG" >&6; }
35577 else
35578   { echo "$as_me:$LINENO: result: no" >&5
35579 echo "${ECHO_T}no" >&6; }
35580 fi
35581
35582
35583 fi
35584 if test -z "$ac_cv_path_PKG_CONFIG"; then
35585   ac_pt_PKG_CONFIG=$PKG_CONFIG
35586   # Extract the first word of "pkg-config", so it can be a program name with args.
35587 set dummy pkg-config; ac_word=$2
35588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35590 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35591   echo $ECHO_N "(cached) $ECHO_C" >&6
35592 else
35593   case $ac_pt_PKG_CONFIG in
35594   [\\/]* | ?:[\\/]*)
35595   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35596   ;;
35597   *)
35598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35599 for as_dir in $PATH
35600 do
35601   IFS=$as_save_IFS
35602   test -z "$as_dir" && as_dir=.
35603   for ac_exec_ext in '' $ac_executable_extensions; do
35604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35605     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35607     break 2
35608   fi
35609 done
35610 done
35611 IFS=$as_save_IFS
35612
35613   ;;
35614 esac
35615 fi
35616 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35617 if test -n "$ac_pt_PKG_CONFIG"; then
35618   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35619 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
35620 else
35621   { echo "$as_me:$LINENO: result: no" >&5
35622 echo "${ECHO_T}no" >&6; }
35623 fi
35624
35625   if test "x$ac_pt_PKG_CONFIG" = x; then
35626     PKG_CONFIG=""
35627   else
35628     case $cross_compiling:$ac_tool_warned in
35629 yes:)
35630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35631 whose name does not start with the host triplet.  If you think this
35632 configuration is useful to you, please write to autoconf@gnu.org." >&5
35633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35634 whose name does not start with the host triplet.  If you think this
35635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35636 ac_tool_warned=yes ;;
35637 esac
35638     PKG_CONFIG=$ac_pt_PKG_CONFIG
35639   fi
35640 else
35641   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35642 fi
35643
35644 fi
35645 if test -n "$PKG_CONFIG"; then
35646         _pkg_min_version=0.9.0
35647         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35648 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
35649         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35650                 { echo "$as_me:$LINENO: result: yes" >&5
35651 echo "${ECHO_T}yes" >&6; }
35652         else
35653                 { echo "$as_me:$LINENO: result: no" >&5
35654 echo "${ECHO_T}no" >&6; }
35655                 PKG_CONFIG=""
35656         fi
35657
35658 fi 6> /dev/null
35659
35660 pkg_failed=no
35661 { echo "$as_me:$LINENO: checking for SM" >&5
35662 echo $ECHO_N "checking for SM... $ECHO_C" >&6; }
35663
35664 if test -n "$PKG_CONFIG"; then
35665     if test -n "$SM_CFLAGS"; then
35666         pkg_cv_SM_CFLAGS="$SM_CFLAGS"
35667     else
35668         if test -n "$PKG_CONFIG" && \
35669     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35670   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35671   ac_status=$?
35672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35673   (exit $ac_status); }; then
35674   pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
35675 else
35676   pkg_failed=yes
35677 fi
35678     fi
35679 else
35680         pkg_failed=untried
35681 fi
35682 if test -n "$PKG_CONFIG"; then
35683     if test -n "$SM_LIBS"; then
35684         pkg_cv_SM_LIBS="$SM_LIBS"
35685     else
35686         if test -n "$PKG_CONFIG" && \
35687     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
35688   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
35689   ac_status=$?
35690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691   (exit $ac_status); }; then
35692   pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
35693 else
35694   pkg_failed=yes
35695 fi
35696     fi
35697 else
35698         pkg_failed=untried
35699 fi
35700
35701
35702
35703 if test $pkg_failed = yes; then
35704
35705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35706         _pkg_short_errors_supported=yes
35707 else
35708         _pkg_short_errors_supported=no
35709 fi
35710         if test $_pkg_short_errors_supported = yes; then
35711                 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
35712         else
35713                 SM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
35714         fi
35715         # Put the nasty error message in config.log where it belongs
35716         echo "$SM_PKG_ERRORS" >&5
35717
35718
35719       if test "x$ac_find_libraries" = "x"; then
35720                 if test "xSmcOpenConnection" != "x"; then
35721           { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
35722 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
35723 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
35724   echo $ECHO_N "(cached) $ECHO_C" >&6
35725 else
35726   ac_check_lib_save_LIBS=$LIBS
35727 LIBS="-lSM  $LIBS"
35728 cat >conftest.$ac_ext <<_ACEOF
35729 /* confdefs.h.  */
35730 _ACEOF
35731 cat confdefs.h >>conftest.$ac_ext
35732 cat >>conftest.$ac_ext <<_ACEOF
35733 /* end confdefs.h.  */
35734
35735 /* Override any GCC internal prototype to avoid an error.
35736    Use char because int might match the return type of a GCC
35737    builtin and then its argument prototype would still apply.  */
35738 #ifdef __cplusplus
35739 extern "C"
35740 #endif
35741 char SmcOpenConnection ();
35742 int
35743 main ()
35744 {
35745 return SmcOpenConnection ();
35746   ;
35747   return 0;
35748 }
35749 _ACEOF
35750 rm -f conftest.$ac_objext conftest$ac_exeext
35751 if { (ac_try="$ac_link"
35752 case "(($ac_try" in
35753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35754   *) ac_try_echo=$ac_try;;
35755 esac
35756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35757   (eval "$ac_link") 2>conftest.er1
35758   ac_status=$?
35759   grep -v '^ *+' conftest.er1 >conftest.err
35760   rm -f conftest.er1
35761   cat conftest.err >&5
35762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763   (exit $ac_status); } && {
35764          test -z "$ac_c_werror_flag" ||
35765          test ! -s conftest.err
35766        } && test -s conftest$ac_exeext &&
35767        $as_test_x conftest$ac_exeext; then
35768   ac_cv_lib_SM_SmcOpenConnection=yes
35769 else
35770   echo "$as_me: failed program was:" >&5
35771 sed 's/^/| /' conftest.$ac_ext >&5
35772
35773         ac_cv_lib_SM_SmcOpenConnection=no
35774 fi
35775
35776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35777       conftest$ac_exeext conftest.$ac_ext
35778 LIBS=$ac_check_lib_save_LIBS
35779 fi
35780 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
35781 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
35782 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
35783   ac_find_libraries="std"
35784 fi
35785
35786         fi
35787       fi
35788
35789       if test "x$ac_find_libraries" = "x"; then
35790                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35791 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35792
35793   ac_find_libraries=
35794   for ac_dir in  $SEARCH_LIB
35795   do
35796     for ac_extension in a so sl dylib dll.a; do
35797       if test -f "$ac_dir/libSM.$ac_extension"; then
35798         ac_find_libraries=$ac_dir
35799         break 2
35800       fi
35801     done
35802   done
35803
35804         if test "x$ac_find_libraries" != "x"; then
35805           { echo "$as_me:$LINENO: result: yes" >&5
35806 echo "${ECHO_T}yes" >&6; }
35807         else
35808           { echo "$as_me:$LINENO: result: no" >&5
35809 echo "${ECHO_T}no" >&6; }
35810         fi
35811       fi
35812
35813 elif test $pkg_failed = untried; then
35814
35815       if test "x$ac_find_libraries" = "x"; then
35816                 if test "xSmcOpenConnection" != "x"; then
35817           { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
35818 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
35819 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
35820   echo $ECHO_N "(cached) $ECHO_C" >&6
35821 else
35822   ac_check_lib_save_LIBS=$LIBS
35823 LIBS="-lSM  $LIBS"
35824 cat >conftest.$ac_ext <<_ACEOF
35825 /* confdefs.h.  */
35826 _ACEOF
35827 cat confdefs.h >>conftest.$ac_ext
35828 cat >>conftest.$ac_ext <<_ACEOF
35829 /* end confdefs.h.  */
35830
35831 /* Override any GCC internal prototype to avoid an error.
35832    Use char because int might match the return type of a GCC
35833    builtin and then its argument prototype would still apply.  */
35834 #ifdef __cplusplus
35835 extern "C"
35836 #endif
35837 char SmcOpenConnection ();
35838 int
35839 main ()
35840 {
35841 return SmcOpenConnection ();
35842   ;
35843   return 0;
35844 }
35845 _ACEOF
35846 rm -f conftest.$ac_objext conftest$ac_exeext
35847 if { (ac_try="$ac_link"
35848 case "(($ac_try" in
35849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35850   *) ac_try_echo=$ac_try;;
35851 esac
35852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35853   (eval "$ac_link") 2>conftest.er1
35854   ac_status=$?
35855   grep -v '^ *+' conftest.er1 >conftest.err
35856   rm -f conftest.er1
35857   cat conftest.err >&5
35858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859   (exit $ac_status); } && {
35860          test -z "$ac_c_werror_flag" ||
35861          test ! -s conftest.err
35862        } && test -s conftest$ac_exeext &&
35863        $as_test_x conftest$ac_exeext; then
35864   ac_cv_lib_SM_SmcOpenConnection=yes
35865 else
35866   echo "$as_me: failed program was:" >&5
35867 sed 's/^/| /' conftest.$ac_ext >&5
35868
35869         ac_cv_lib_SM_SmcOpenConnection=no
35870 fi
35871
35872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35873       conftest$ac_exeext conftest.$ac_ext
35874 LIBS=$ac_check_lib_save_LIBS
35875 fi
35876 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
35877 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
35878 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
35879   ac_find_libraries="std"
35880 fi
35881
35882         fi
35883       fi
35884
35885       if test "x$ac_find_libraries" = "x"; then
35886                         { echo "$as_me:$LINENO: checking elsewhere" >&5
35887 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
35888
35889   ac_find_libraries=
35890   for ac_dir in  $SEARCH_LIB
35891   do
35892     for ac_extension in a so sl dylib dll.a; do
35893       if test -f "$ac_dir/libSM.$ac_extension"; then
35894         ac_find_libraries=$ac_dir
35895         break 2
35896       fi
35897     done
35898   done
35899
35900         if test "x$ac_find_libraries" != "x"; then
35901           { echo "$as_me:$LINENO: result: yes" >&5
35902 echo "${ECHO_T}yes" >&6; }
35903         else
35904           { echo "$as_me:$LINENO: result: no" >&5
35905 echo "${ECHO_T}no" >&6; }
35906         fi
35907       fi
35908
35909 else
35910         SM_CFLAGS=$pkg_cv_SM_CFLAGS
35911         SM_LIBS=$pkg_cv_SM_LIBS
35912         { echo "$as_me:$LINENO: result: yes" >&5
35913 echo "${ECHO_T}yes" >&6; }
35914
35915             ac_find_libraries="std"
35916
35917                                                 eval ac_find_cflags=\$SM_CFLAGS
35918       eval fl_libs=\$SM_LIBS
35919
35920                   for fl_path in $fl_libs
35921       do
35922         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
35923                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
35924         fi
35925       done
35926
35927 fi
35928
35929         if test "$ac_find_libraries" != "" ; then
35930             if test "$ac_find_libraries" != "std" ; then
35931
35932     if test "$ac_find_libraries" = "default location"; then
35933     ac_path_to_link=""
35934   else
35935     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35936     result=$?
35937     if test $result = 0; then
35938       ac_path_to_link=""
35939     else
35940       ac_path_to_link=" -L$ac_find_libraries"
35941     fi
35942   fi
35943
35944               if test "$ac_path_to_link" != " -L/usr/lib" ; then
35945                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35946               fi
35947             fi
35948             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35949         else
35950             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35951 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35952             wxUSE_DETECT_SM="no"
35953         fi
35954     else
35955         wxUSE_DETECT_SM="no"
35956     fi
35957 fi
35958
35959
35960
35961 USE_OPENGL=0
35962 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
35963
35964
35965     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35966         OPENGL_LIBS="-framework OpenGL -framework AGL"
35967     elif test "$wxUSE_MSW" = 1; then
35968         OPENGL_LIBS="-lopengl32 -lglu32"
35969     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
35970
35971                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35972 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35973
35974 ac_find_includes=
35975 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
35976   do
35977     if test -f "$ac_dir/GL/gl.h"; then
35978       ac_find_includes=$ac_dir
35979       break
35980     fi
35981   done
35982
35983         if test "$ac_find_includes" != "" ; then
35984             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35985 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35986
35987     if test "x$ac_find_includes" = "x/usr/include"; then
35988     ac_path_to_include=""
35989   else
35990     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35991     result=$?
35992     if test $result = 0; then
35993       ac_path_to_include=""
35994     else
35995       ac_path_to_include=" -I$ac_find_includes"
35996     fi
35997   fi
35998
35999             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
36000         else
36001             { echo "$as_me:$LINENO: result: not found" >&5
36002 echo "${ECHO_T}not found" >&6; }
36003         fi
36004
36005         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
36006 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
36007 if test "${ac_cv_header_GL_gl_h+set}" = set; then
36008   echo $ECHO_N "(cached) $ECHO_C" >&6
36009 else
36010   cat >conftest.$ac_ext <<_ACEOF
36011 /* confdefs.h.  */
36012 _ACEOF
36013 cat confdefs.h >>conftest.$ac_ext
36014 cat >>conftest.$ac_ext <<_ACEOF
36015 /* end confdefs.h.  */
36016
36017
36018 #include <GL/gl.h>
36019 _ACEOF
36020 rm -f conftest.$ac_objext
36021 if { (ac_try="$ac_compile"
36022 case "(($ac_try" in
36023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36024   *) ac_try_echo=$ac_try;;
36025 esac
36026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36027   (eval "$ac_compile") 2>conftest.er1
36028   ac_status=$?
36029   grep -v '^ *+' conftest.er1 >conftest.err
36030   rm -f conftest.er1
36031   cat conftest.err >&5
36032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36033   (exit $ac_status); } && {
36034          test -z "$ac_c_werror_flag" ||
36035          test ! -s conftest.err
36036        } && test -s conftest.$ac_objext; then
36037   ac_cv_header_GL_gl_h=yes
36038 else
36039   echo "$as_me: failed program was:" >&5
36040 sed 's/^/| /' conftest.$ac_ext >&5
36041
36042         ac_cv_header_GL_gl_h=no
36043 fi
36044
36045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36046 fi
36047 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
36048 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
36049 if test $ac_cv_header_GL_gl_h = yes; then
36050
36051             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
36052 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
36053 if test "${ac_cv_header_GL_glu_h+set}" = set; then
36054   echo $ECHO_N "(cached) $ECHO_C" >&6
36055 else
36056   cat >conftest.$ac_ext <<_ACEOF
36057 /* confdefs.h.  */
36058 _ACEOF
36059 cat confdefs.h >>conftest.$ac_ext
36060 cat >>conftest.$ac_ext <<_ACEOF
36061 /* end confdefs.h.  */
36062
36063
36064 #include <GL/glu.h>
36065 _ACEOF
36066 rm -f conftest.$ac_objext
36067 if { (ac_try="$ac_compile"
36068 case "(($ac_try" in
36069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36070   *) ac_try_echo=$ac_try;;
36071 esac
36072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36073   (eval "$ac_compile") 2>conftest.er1
36074   ac_status=$?
36075   grep -v '^ *+' conftest.er1 >conftest.err
36076   rm -f conftest.er1
36077   cat conftest.err >&5
36078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079   (exit $ac_status); } && {
36080          test -z "$ac_c_werror_flag" ||
36081          test ! -s conftest.err
36082        } && test -s conftest.$ac_objext; then
36083   ac_cv_header_GL_glu_h=yes
36084 else
36085   echo "$as_me: failed program was:" >&5
36086 sed 's/^/| /' conftest.$ac_ext >&5
36087
36088         ac_cv_header_GL_glu_h=no
36089 fi
36090
36091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36092 fi
36093 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
36094 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
36095 if test $ac_cv_header_GL_glu_h = yes; then
36096
36097                 found_gl=0
36098
36099
36100   ac_find_libraries=
36101
36102     fl_pkgname=`echo "GL" | tr [:upper:] [:lower:]`
36103
36104
36105 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
36106         if test -n "$ac_tool_prefix"; then
36107   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
36108 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
36109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36111 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36112   echo $ECHO_N "(cached) $ECHO_C" >&6
36113 else
36114   case $PKG_CONFIG in
36115   [\\/]* | ?:[\\/]*)
36116   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36117   ;;
36118   *)
36119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36120 for as_dir in $PATH
36121 do
36122   IFS=$as_save_IFS
36123   test -z "$as_dir" && as_dir=.
36124   for ac_exec_ext in '' $ac_executable_extensions; do
36125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36126     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36128     break 2
36129   fi
36130 done
36131 done
36132 IFS=$as_save_IFS
36133
36134   ;;
36135 esac
36136 fi
36137 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36138 if test -n "$PKG_CONFIG"; then
36139   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36140 echo "${ECHO_T}$PKG_CONFIG" >&6; }
36141 else
36142   { echo "$as_me:$LINENO: result: no" >&5
36143 echo "${ECHO_T}no" >&6; }
36144 fi
36145
36146
36147 fi
36148 if test -z "$ac_cv_path_PKG_CONFIG"; then
36149   ac_pt_PKG_CONFIG=$PKG_CONFIG
36150   # Extract the first word of "pkg-config", so it can be a program name with args.
36151 set dummy pkg-config; ac_word=$2
36152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36154 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
36155   echo $ECHO_N "(cached) $ECHO_C" >&6
36156 else
36157   case $ac_pt_PKG_CONFIG in
36158   [\\/]* | ?:[\\/]*)
36159   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
36160   ;;
36161   *)
36162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36163 for as_dir in $PATH
36164 do
36165   IFS=$as_save_IFS
36166   test -z "$as_dir" && as_dir=.
36167   for ac_exec_ext in '' $ac_executable_extensions; do
36168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36169     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36171     break 2
36172   fi
36173 done
36174 done
36175 IFS=$as_save_IFS
36176
36177   ;;
36178 esac
36179 fi
36180 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
36181 if test -n "$ac_pt_PKG_CONFIG"; then
36182   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
36183 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
36184 else
36185   { echo "$as_me:$LINENO: result: no" >&5
36186 echo "${ECHO_T}no" >&6; }
36187 fi
36188
36189   if test "x$ac_pt_PKG_CONFIG" = x; then
36190     PKG_CONFIG=""
36191   else
36192     case $cross_compiling:$ac_tool_warned in
36193 yes:)
36194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36195 whose name does not start with the host triplet.  If you think this
36196 configuration is useful to you, please write to autoconf@gnu.org." >&5
36197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36198 whose name does not start with the host triplet.  If you think this
36199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36200 ac_tool_warned=yes ;;
36201 esac
36202     PKG_CONFIG=$ac_pt_PKG_CONFIG
36203   fi
36204 else
36205   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
36206 fi
36207
36208 fi
36209 if test -n "$PKG_CONFIG"; then
36210         _pkg_min_version=0.9.0
36211         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
36212 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
36213         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
36214                 { echo "$as_me:$LINENO: result: yes" >&5
36215 echo "${ECHO_T}yes" >&6; }
36216         else
36217                 { echo "$as_me:$LINENO: result: no" >&5
36218 echo "${ECHO_T}no" >&6; }
36219                 PKG_CONFIG=""
36220         fi
36221
36222 fi 6> /dev/null
36223
36224 pkg_failed=no
36225 { echo "$as_me:$LINENO: checking for GL" >&5
36226 echo $ECHO_N "checking for GL... $ECHO_C" >&6; }
36227
36228 if test -n "$PKG_CONFIG"; then
36229     if test -n "$GL_CFLAGS"; then
36230         pkg_cv_GL_CFLAGS="$GL_CFLAGS"
36231     else
36232         if test -n "$PKG_CONFIG" && \
36233     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36234   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36235   ac_status=$?
36236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237   (exit $ac_status); }; then
36238   pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
36239 else
36240   pkg_failed=yes
36241 fi
36242     fi
36243 else
36244         pkg_failed=untried
36245 fi
36246 if test -n "$PKG_CONFIG"; then
36247     if test -n "$GL_LIBS"; then
36248         pkg_cv_GL_LIBS="$GL_LIBS"
36249     else
36250         if test -n "$PKG_CONFIG" && \
36251     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36252   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36253   ac_status=$?
36254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255   (exit $ac_status); }; then
36256   pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
36257 else
36258   pkg_failed=yes
36259 fi
36260     fi
36261 else
36262         pkg_failed=untried
36263 fi
36264
36265
36266
36267 if test $pkg_failed = yes; then
36268
36269 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36270         _pkg_short_errors_supported=yes
36271 else
36272         _pkg_short_errors_supported=no
36273 fi
36274         if test $_pkg_short_errors_supported = yes; then
36275                 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
36276         else
36277                 GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
36278         fi
36279         # Put the nasty error message in config.log where it belongs
36280         echo "$GL_PKG_ERRORS" >&5
36281
36282
36283       if test "x$ac_find_libraries" = "x"; then
36284                 if test "xglBegin" != "x"; then
36285           { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
36286 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
36287 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
36288   echo $ECHO_N "(cached) $ECHO_C" >&6
36289 else
36290   ac_check_lib_save_LIBS=$LIBS
36291 LIBS="-lGL  $LIBS"
36292 cat >conftest.$ac_ext <<_ACEOF
36293 /* confdefs.h.  */
36294 _ACEOF
36295 cat confdefs.h >>conftest.$ac_ext
36296 cat >>conftest.$ac_ext <<_ACEOF
36297 /* end confdefs.h.  */
36298
36299 /* Override any GCC internal prototype to avoid an error.
36300    Use char because int might match the return type of a GCC
36301    builtin and then its argument prototype would still apply.  */
36302 #ifdef __cplusplus
36303 extern "C"
36304 #endif
36305 char glBegin ();
36306 int
36307 main ()
36308 {
36309 return glBegin ();
36310   ;
36311   return 0;
36312 }
36313 _ACEOF
36314 rm -f conftest.$ac_objext conftest$ac_exeext
36315 if { (ac_try="$ac_link"
36316 case "(($ac_try" in
36317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36318   *) ac_try_echo=$ac_try;;
36319 esac
36320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36321   (eval "$ac_link") 2>conftest.er1
36322   ac_status=$?
36323   grep -v '^ *+' conftest.er1 >conftest.err
36324   rm -f conftest.er1
36325   cat conftest.err >&5
36326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327   (exit $ac_status); } && {
36328          test -z "$ac_c_werror_flag" ||
36329          test ! -s conftest.err
36330        } && test -s conftest$ac_exeext &&
36331        $as_test_x conftest$ac_exeext; then
36332   ac_cv_lib_GL_glBegin=yes
36333 else
36334   echo "$as_me: failed program was:" >&5
36335 sed 's/^/| /' conftest.$ac_ext >&5
36336
36337         ac_cv_lib_GL_glBegin=no
36338 fi
36339
36340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36341       conftest$ac_exeext conftest.$ac_ext
36342 LIBS=$ac_check_lib_save_LIBS
36343 fi
36344 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
36345 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
36346 if test $ac_cv_lib_GL_glBegin = yes; then
36347   ac_find_libraries="std"
36348 fi
36349
36350         fi
36351       fi
36352
36353       if test "x$ac_find_libraries" = "x"; then
36354                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36355 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36356
36357   ac_find_libraries=
36358   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36359   do
36360     for ac_extension in a so sl dylib dll.a; do
36361       if test -f "$ac_dir/libGL.$ac_extension"; then
36362         ac_find_libraries=$ac_dir
36363         break 2
36364       fi
36365     done
36366   done
36367
36368         if test "x$ac_find_libraries" != "x"; then
36369           { echo "$as_me:$LINENO: result: yes" >&5
36370 echo "${ECHO_T}yes" >&6; }
36371         else
36372           { echo "$as_me:$LINENO: result: no" >&5
36373 echo "${ECHO_T}no" >&6; }
36374         fi
36375       fi
36376
36377 elif test $pkg_failed = untried; then
36378
36379       if test "x$ac_find_libraries" = "x"; then
36380                 if test "xglBegin" != "x"; then
36381           { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
36382 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
36383 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
36384   echo $ECHO_N "(cached) $ECHO_C" >&6
36385 else
36386   ac_check_lib_save_LIBS=$LIBS
36387 LIBS="-lGL  $LIBS"
36388 cat >conftest.$ac_ext <<_ACEOF
36389 /* confdefs.h.  */
36390 _ACEOF
36391 cat confdefs.h >>conftest.$ac_ext
36392 cat >>conftest.$ac_ext <<_ACEOF
36393 /* end confdefs.h.  */
36394
36395 /* Override any GCC internal prototype to avoid an error.
36396    Use char because int might match the return type of a GCC
36397    builtin and then its argument prototype would still apply.  */
36398 #ifdef __cplusplus
36399 extern "C"
36400 #endif
36401 char glBegin ();
36402 int
36403 main ()
36404 {
36405 return glBegin ();
36406   ;
36407   return 0;
36408 }
36409 _ACEOF
36410 rm -f conftest.$ac_objext conftest$ac_exeext
36411 if { (ac_try="$ac_link"
36412 case "(($ac_try" in
36413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36414   *) ac_try_echo=$ac_try;;
36415 esac
36416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36417   (eval "$ac_link") 2>conftest.er1
36418   ac_status=$?
36419   grep -v '^ *+' conftest.er1 >conftest.err
36420   rm -f conftest.er1
36421   cat conftest.err >&5
36422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36423   (exit $ac_status); } && {
36424          test -z "$ac_c_werror_flag" ||
36425          test ! -s conftest.err
36426        } && test -s conftest$ac_exeext &&
36427        $as_test_x conftest$ac_exeext; then
36428   ac_cv_lib_GL_glBegin=yes
36429 else
36430   echo "$as_me: failed program was:" >&5
36431 sed 's/^/| /' conftest.$ac_ext >&5
36432
36433         ac_cv_lib_GL_glBegin=no
36434 fi
36435
36436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36437       conftest$ac_exeext conftest.$ac_ext
36438 LIBS=$ac_check_lib_save_LIBS
36439 fi
36440 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
36441 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
36442 if test $ac_cv_lib_GL_glBegin = yes; then
36443   ac_find_libraries="std"
36444 fi
36445
36446         fi
36447       fi
36448
36449       if test "x$ac_find_libraries" = "x"; then
36450                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36451 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36452
36453   ac_find_libraries=
36454   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36455   do
36456     for ac_extension in a so sl dylib dll.a; do
36457       if test -f "$ac_dir/libGL.$ac_extension"; then
36458         ac_find_libraries=$ac_dir
36459         break 2
36460       fi
36461     done
36462   done
36463
36464         if test "x$ac_find_libraries" != "x"; then
36465           { echo "$as_me:$LINENO: result: yes" >&5
36466 echo "${ECHO_T}yes" >&6; }
36467         else
36468           { echo "$as_me:$LINENO: result: no" >&5
36469 echo "${ECHO_T}no" >&6; }
36470         fi
36471       fi
36472
36473 else
36474         GL_CFLAGS=$pkg_cv_GL_CFLAGS
36475         GL_LIBS=$pkg_cv_GL_LIBS
36476         { echo "$as_me:$LINENO: result: yes" >&5
36477 echo "${ECHO_T}yes" >&6; }
36478
36479             ac_find_libraries="std"
36480
36481                                                 eval ac_find_cflags=\$GL_CFLAGS
36482       eval fl_libs=\$GL_LIBS
36483
36484                   for fl_path in $fl_libs
36485       do
36486         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
36487                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
36488         fi
36489       done
36490
36491 fi
36492
36493                 if test "$ac_find_libraries" != "" ; then
36494                     if test "$ac_find_libraries" != "std" ; then
36495
36496     if test "$ac_find_libraries" = "default location"; then
36497     ac_path_to_link=""
36498   else
36499     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36500     result=$?
36501     if test $result = 0; then
36502       ac_path_to_link=""
36503     else
36504       ac_path_to_link=" -L$ac_find_libraries"
36505     fi
36506   fi
36507
36508                       if test "$ac_path_to_link" != " -L/usr/lib" ; then
36509                         LDFLAGS_GL="$ac_path_to_link"
36510                       fi
36511                     fi
36512
36513
36514   ac_find_libraries=
36515
36516     fl_pkgname=`echo "GLU" | tr [:upper:] [:lower:]`
36517
36518
36519 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
36520         if test -n "$ac_tool_prefix"; then
36521   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
36522 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
36523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36525 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36526   echo $ECHO_N "(cached) $ECHO_C" >&6
36527 else
36528   case $PKG_CONFIG in
36529   [\\/]* | ?:[\\/]*)
36530   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36531   ;;
36532   *)
36533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36534 for as_dir in $PATH
36535 do
36536   IFS=$as_save_IFS
36537   test -z "$as_dir" && as_dir=.
36538   for ac_exec_ext in '' $ac_executable_extensions; do
36539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36540     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36542     break 2
36543   fi
36544 done
36545 done
36546 IFS=$as_save_IFS
36547
36548   ;;
36549 esac
36550 fi
36551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36552 if test -n "$PKG_CONFIG"; then
36553   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36554 echo "${ECHO_T}$PKG_CONFIG" >&6; }
36555 else
36556   { echo "$as_me:$LINENO: result: no" >&5
36557 echo "${ECHO_T}no" >&6; }
36558 fi
36559
36560
36561 fi
36562 if test -z "$ac_cv_path_PKG_CONFIG"; then
36563   ac_pt_PKG_CONFIG=$PKG_CONFIG
36564   # Extract the first word of "pkg-config", so it can be a program name with args.
36565 set dummy pkg-config; ac_word=$2
36566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36568 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
36569   echo $ECHO_N "(cached) $ECHO_C" >&6
36570 else
36571   case $ac_pt_PKG_CONFIG in
36572   [\\/]* | ?:[\\/]*)
36573   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
36574   ;;
36575   *)
36576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36577 for as_dir in $PATH
36578 do
36579   IFS=$as_save_IFS
36580   test -z "$as_dir" && as_dir=.
36581   for ac_exec_ext in '' $ac_executable_extensions; do
36582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36583     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36585     break 2
36586   fi
36587 done
36588 done
36589 IFS=$as_save_IFS
36590
36591   ;;
36592 esac
36593 fi
36594 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
36595 if test -n "$ac_pt_PKG_CONFIG"; then
36596   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
36597 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
36598 else
36599   { echo "$as_me:$LINENO: result: no" >&5
36600 echo "${ECHO_T}no" >&6; }
36601 fi
36602
36603   if test "x$ac_pt_PKG_CONFIG" = x; then
36604     PKG_CONFIG=""
36605   else
36606     case $cross_compiling:$ac_tool_warned in
36607 yes:)
36608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
36609 whose name does not start with the host triplet.  If you think this
36610 configuration is useful to you, please write to autoconf@gnu.org." >&5
36611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
36612 whose name does not start with the host triplet.  If you think this
36613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
36614 ac_tool_warned=yes ;;
36615 esac
36616     PKG_CONFIG=$ac_pt_PKG_CONFIG
36617   fi
36618 else
36619   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
36620 fi
36621
36622 fi
36623 if test -n "$PKG_CONFIG"; then
36624         _pkg_min_version=0.9.0
36625         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
36626 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
36627         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
36628                 { echo "$as_me:$LINENO: result: yes" >&5
36629 echo "${ECHO_T}yes" >&6; }
36630         else
36631                 { echo "$as_me:$LINENO: result: no" >&5
36632 echo "${ECHO_T}no" >&6; }
36633                 PKG_CONFIG=""
36634         fi
36635
36636 fi 6> /dev/null
36637
36638 pkg_failed=no
36639 { echo "$as_me:$LINENO: checking for GLU" >&5
36640 echo $ECHO_N "checking for GLU... $ECHO_C" >&6; }
36641
36642 if test -n "$PKG_CONFIG"; then
36643     if test -n "$GLU_CFLAGS"; then
36644         pkg_cv_GLU_CFLAGS="$GLU_CFLAGS"
36645     else
36646         if test -n "$PKG_CONFIG" && \
36647     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36648   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36649   ac_status=$?
36650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651   (exit $ac_status); }; then
36652   pkg_cv_GLU_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
36653 else
36654   pkg_failed=yes
36655 fi
36656     fi
36657 else
36658         pkg_failed=untried
36659 fi
36660 if test -n "$PKG_CONFIG"; then
36661     if test -n "$GLU_LIBS"; then
36662         pkg_cv_GLU_LIBS="$GLU_LIBS"
36663     else
36664         if test -n "$PKG_CONFIG" && \
36665     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
36666   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
36667   ac_status=$?
36668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669   (exit $ac_status); }; then
36670   pkg_cv_GLU_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
36671 else
36672   pkg_failed=yes
36673 fi
36674     fi
36675 else
36676         pkg_failed=untried
36677 fi
36678
36679
36680
36681 if test $pkg_failed = yes; then
36682
36683 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36684         _pkg_short_errors_supported=yes
36685 else
36686         _pkg_short_errors_supported=no
36687 fi
36688         if test $_pkg_short_errors_supported = yes; then
36689                 GLU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
36690         else
36691                 GLU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
36692         fi
36693         # Put the nasty error message in config.log where it belongs
36694         echo "$GLU_PKG_ERRORS" >&5
36695
36696
36697       if test "x$ac_find_libraries" = "x"; then
36698                 if test "xgluBeginCurve" != "x"; then
36699           { echo "$as_me:$LINENO: checking for gluBeginCurve in -lGLU" >&5
36700 echo $ECHO_N "checking for gluBeginCurve in -lGLU... $ECHO_C" >&6; }
36701 if test "${ac_cv_lib_GLU_gluBeginCurve+set}" = set; then
36702   echo $ECHO_N "(cached) $ECHO_C" >&6
36703 else
36704   ac_check_lib_save_LIBS=$LIBS
36705 LIBS="-lGLU  $LIBS"
36706 cat >conftest.$ac_ext <<_ACEOF
36707 /* confdefs.h.  */
36708 _ACEOF
36709 cat confdefs.h >>conftest.$ac_ext
36710 cat >>conftest.$ac_ext <<_ACEOF
36711 /* end confdefs.h.  */
36712
36713 /* Override any GCC internal prototype to avoid an error.
36714    Use char because int might match the return type of a GCC
36715    builtin and then its argument prototype would still apply.  */
36716 #ifdef __cplusplus
36717 extern "C"
36718 #endif
36719 char gluBeginCurve ();
36720 int
36721 main ()
36722 {
36723 return gluBeginCurve ();
36724   ;
36725   return 0;
36726 }
36727 _ACEOF
36728 rm -f conftest.$ac_objext conftest$ac_exeext
36729 if { (ac_try="$ac_link"
36730 case "(($ac_try" in
36731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36732   *) ac_try_echo=$ac_try;;
36733 esac
36734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36735   (eval "$ac_link") 2>conftest.er1
36736   ac_status=$?
36737   grep -v '^ *+' conftest.er1 >conftest.err
36738   rm -f conftest.er1
36739   cat conftest.err >&5
36740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741   (exit $ac_status); } && {
36742          test -z "$ac_c_werror_flag" ||
36743          test ! -s conftest.err
36744        } && test -s conftest$ac_exeext &&
36745        $as_test_x conftest$ac_exeext; then
36746   ac_cv_lib_GLU_gluBeginCurve=yes
36747 else
36748   echo "$as_me: failed program was:" >&5
36749 sed 's/^/| /' conftest.$ac_ext >&5
36750
36751         ac_cv_lib_GLU_gluBeginCurve=no
36752 fi
36753
36754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36755       conftest$ac_exeext conftest.$ac_ext
36756 LIBS=$ac_check_lib_save_LIBS
36757 fi
36758 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
36759 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginCurve" >&6; }
36760 if test $ac_cv_lib_GLU_gluBeginCurve = yes; then
36761   ac_find_libraries="std"
36762 fi
36763
36764         fi
36765       fi
36766
36767       if test "x$ac_find_libraries" = "x"; then
36768                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36769 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36770
36771   ac_find_libraries=
36772   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36773   do
36774     for ac_extension in a so sl dylib dll.a; do
36775       if test -f "$ac_dir/libGLU.$ac_extension"; then
36776         ac_find_libraries=$ac_dir
36777         break 2
36778       fi
36779     done
36780   done
36781
36782         if test "x$ac_find_libraries" != "x"; then
36783           { echo "$as_me:$LINENO: result: yes" >&5
36784 echo "${ECHO_T}yes" >&6; }
36785         else
36786           { echo "$as_me:$LINENO: result: no" >&5
36787 echo "${ECHO_T}no" >&6; }
36788         fi
36789       fi
36790
36791 elif test $pkg_failed = untried; then
36792
36793       if test "x$ac_find_libraries" = "x"; then
36794                 if test "xgluBeginCurve" != "x"; then
36795           { echo "$as_me:$LINENO: checking for gluBeginCurve in -lGLU" >&5
36796 echo $ECHO_N "checking for gluBeginCurve in -lGLU... $ECHO_C" >&6; }
36797 if test "${ac_cv_lib_GLU_gluBeginCurve+set}" = set; then
36798   echo $ECHO_N "(cached) $ECHO_C" >&6
36799 else
36800   ac_check_lib_save_LIBS=$LIBS
36801 LIBS="-lGLU  $LIBS"
36802 cat >conftest.$ac_ext <<_ACEOF
36803 /* confdefs.h.  */
36804 _ACEOF
36805 cat confdefs.h >>conftest.$ac_ext
36806 cat >>conftest.$ac_ext <<_ACEOF
36807 /* end confdefs.h.  */
36808
36809 /* Override any GCC internal prototype to avoid an error.
36810    Use char because int might match the return type of a GCC
36811    builtin and then its argument prototype would still apply.  */
36812 #ifdef __cplusplus
36813 extern "C"
36814 #endif
36815 char gluBeginCurve ();
36816 int
36817 main ()
36818 {
36819 return gluBeginCurve ();
36820   ;
36821   return 0;
36822 }
36823 _ACEOF
36824 rm -f conftest.$ac_objext conftest$ac_exeext
36825 if { (ac_try="$ac_link"
36826 case "(($ac_try" in
36827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36828   *) ac_try_echo=$ac_try;;
36829 esac
36830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36831   (eval "$ac_link") 2>conftest.er1
36832   ac_status=$?
36833   grep -v '^ *+' conftest.er1 >conftest.err
36834   rm -f conftest.er1
36835   cat conftest.err >&5
36836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837   (exit $ac_status); } && {
36838          test -z "$ac_c_werror_flag" ||
36839          test ! -s conftest.err
36840        } && test -s conftest$ac_exeext &&
36841        $as_test_x conftest$ac_exeext; then
36842   ac_cv_lib_GLU_gluBeginCurve=yes
36843 else
36844   echo "$as_me: failed program was:" >&5
36845 sed 's/^/| /' conftest.$ac_ext >&5
36846
36847         ac_cv_lib_GLU_gluBeginCurve=no
36848 fi
36849
36850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36851       conftest$ac_exeext conftest.$ac_ext
36852 LIBS=$ac_check_lib_save_LIBS
36853 fi
36854 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
36855 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginCurve" >&6; }
36856 if test $ac_cv_lib_GLU_gluBeginCurve = yes; then
36857   ac_find_libraries="std"
36858 fi
36859
36860         fi
36861       fi
36862
36863       if test "x$ac_find_libraries" = "x"; then
36864                         { echo "$as_me:$LINENO: checking elsewhere" >&5
36865 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
36866
36867   ac_find_libraries=
36868   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
36869   do
36870     for ac_extension in a so sl dylib dll.a; do
36871       if test -f "$ac_dir/libGLU.$ac_extension"; then
36872         ac_find_libraries=$ac_dir
36873         break 2
36874       fi
36875     done
36876   done
36877
36878         if test "x$ac_find_libraries" != "x"; then
36879           { echo "$as_me:$LINENO: result: yes" >&5
36880 echo "${ECHO_T}yes" >&6; }
36881         else
36882           { echo "$as_me:$LINENO: result: no" >&5
36883 echo "${ECHO_T}no" >&6; }
36884         fi
36885       fi
36886
36887 else
36888         GLU_CFLAGS=$pkg_cv_GLU_CFLAGS
36889         GLU_LIBS=$pkg_cv_GLU_LIBS
36890         { echo "$as_me:$LINENO: result: yes" >&5
36891 echo "${ECHO_T}yes" >&6; }
36892
36893             ac_find_libraries="std"
36894
36895                                                 eval ac_find_cflags=\$GLU_CFLAGS
36896       eval fl_libs=\$GLU_LIBS
36897
36898                   for fl_path in $fl_libs
36899       do
36900         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
36901                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
36902         fi
36903       done
36904
36905 fi
36906
36907                     if test "$ac_find_libraries" != "" ; then
36908                       if test "$ac_find_libraries" != "std" ; then
36909
36910     if test "$ac_find_libraries" = "default location"; then
36911     ac_path_to_link=""
36912   else
36913     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36914     result=$?
36915     if test $result = 0; then
36916       ac_path_to_link=""
36917     else
36918       ac_path_to_link=" -L$ac_find_libraries"
36919     fi
36920   fi
36921
36922                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
36923                                 "$ac_path_to_link" != "$LDFLAGS_GL" ; then
36924                           LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
36925                         fi
36926                       fi
36927
36928                         found_gl=1
36929                         OPENGL_LIBS="-lGL -lGLU"
36930                     fi
36931                 fi
36932
36933                 if test "$found_gl" != 1; then
36934
36935   ac_find_libraries=
36936
36937     fl_pkgname=`echo "MesaGL" | tr [:upper:] [:lower:]`
36938
36939
36940 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
36941         if test -n "$ac_tool_prefix"; then
36942   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
36943 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
36944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36946 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36947   echo $ECHO_N "(cached) $ECHO_C" >&6
36948 else
36949   case $PKG_CONFIG in
36950   [\\/]* | ?:[\\/]*)
36951   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36952   ;;
36953   *)
36954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36955 for as_dir in $PATH
36956 do
36957   IFS=$as_save_IFS
36958   test -z "$as_dir" && as_dir=.
36959   for ac_exec_ext in '' $ac_executable_extensions; do
36960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36961     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36963     break 2
36964   fi
36965 done
36966 done
36967 IFS=$as_save_IFS
36968
36969   ;;
36970 esac
36971 fi
36972 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36973 if test -n "$PKG_CONFIG"; then
36974   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36975 echo "${ECHO_T}$PKG_CONFIG" >&6; }
36976 else
36977   { echo "$as_me:$LINENO: result: no" >&5
36978 echo "${ECHO_T}no" >&6; }
36979 fi
36980
36981
36982 fi
36983 if test -z "$ac_cv_path_PKG_CONFIG"; then
36984   ac_pt_PKG_CONFIG=$PKG_CONFIG
36985   # Extract the first word of "pkg-config", so it can be a program name with args.
36986 set dummy pkg-config; ac_word=$2
36987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36989 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
36990   echo $ECHO_N "(cached) $ECHO_C" >&6
36991 else
36992   case $ac_pt_PKG_CONFIG in
36993   [\\/]* | ?:[\\/]*)
36994   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
36995   ;;
36996   *)
36997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36998 for as_dir in $PATH
36999 do
37000   IFS=$as_save_IFS
37001   test -z "$as_dir" && as_dir=.
37002   for ac_exec_ext in '' $ac_executable_extensions; do
37003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37004     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37006     break 2
37007   fi
37008 done
37009 done
37010 IFS=$as_save_IFS
37011
37012   ;;
37013 esac
37014 fi
37015 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
37016 if test -n "$ac_pt_PKG_CONFIG"; then
37017   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
37018 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
37019 else
37020   { echo "$as_me:$LINENO: result: no" >&5
37021 echo "${ECHO_T}no" >&6; }
37022 fi
37023
37024   if test "x$ac_pt_PKG_CONFIG" = x; then
37025     PKG_CONFIG=""
37026   else
37027     case $cross_compiling:$ac_tool_warned in
37028 yes:)
37029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37030 whose name does not start with the host triplet.  If you think this
37031 configuration is useful to you, please write to autoconf@gnu.org." >&5
37032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37033 whose name does not start with the host triplet.  If you think this
37034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37035 ac_tool_warned=yes ;;
37036 esac
37037     PKG_CONFIG=$ac_pt_PKG_CONFIG
37038   fi
37039 else
37040   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
37041 fi
37042
37043 fi
37044 if test -n "$PKG_CONFIG"; then
37045         _pkg_min_version=0.9.0
37046         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
37047 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
37048         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
37049                 { echo "$as_me:$LINENO: result: yes" >&5
37050 echo "${ECHO_T}yes" >&6; }
37051         else
37052                 { echo "$as_me:$LINENO: result: no" >&5
37053 echo "${ECHO_T}no" >&6; }
37054                 PKG_CONFIG=""
37055         fi
37056
37057 fi 6> /dev/null
37058
37059 pkg_failed=no
37060 { echo "$as_me:$LINENO: checking for MesaGL" >&5
37061 echo $ECHO_N "checking for MesaGL... $ECHO_C" >&6; }
37062
37063 if test -n "$PKG_CONFIG"; then
37064     if test -n "$MesaGL_CFLAGS"; then
37065         pkg_cv_MesaGL_CFLAGS="$MesaGL_CFLAGS"
37066     else
37067         if test -n "$PKG_CONFIG" && \
37068     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
37069   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
37070   ac_status=$?
37071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37072   (exit $ac_status); }; then
37073   pkg_cv_MesaGL_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null`
37074 else
37075   pkg_failed=yes
37076 fi
37077     fi
37078 else
37079         pkg_failed=untried
37080 fi
37081 if test -n "$PKG_CONFIG"; then
37082     if test -n "$MesaGL_LIBS"; then
37083         pkg_cv_MesaGL_LIBS="$MesaGL_LIBS"
37084     else
37085         if test -n "$PKG_CONFIG" && \
37086     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\"") >&5
37087   ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5
37088   ac_status=$?
37089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37090   (exit $ac_status); }; then
37091   pkg_cv_MesaGL_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null`
37092 else
37093   pkg_failed=yes
37094 fi
37095     fi
37096 else
37097         pkg_failed=untried
37098 fi
37099
37100
37101
37102 if test $pkg_failed = yes; then
37103
37104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37105         _pkg_short_errors_supported=yes
37106 else
37107         _pkg_short_errors_supported=no
37108 fi
37109         if test $_pkg_short_errors_supported = yes; then
37110                 MesaGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"`
37111         else
37112                 MesaGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"`
37113         fi
37114         # Put the nasty error message in config.log where it belongs
37115         echo "$MesaGL_PKG_ERRORS" >&5
37116
37117
37118       if test "x$ac_find_libraries" = "x"; then
37119                 if test "xglEnable" != "x"; then
37120           { echo "$as_me:$LINENO: checking for glEnable in -lMesaGL" >&5
37121 echo $ECHO_N "checking for glEnable in -lMesaGL... $ECHO_C" >&6; }
37122 if test "${ac_cv_lib_MesaGL_glEnable+set}" = set; then
37123   echo $ECHO_N "(cached) $ECHO_C" >&6
37124 else
37125   ac_check_lib_save_LIBS=$LIBS
37126 LIBS="-lMesaGL  $LIBS"
37127 cat >conftest.$ac_ext <<_ACEOF
37128 /* confdefs.h.  */
37129 _ACEOF
37130 cat confdefs.h >>conftest.$ac_ext
37131 cat >>conftest.$ac_ext <<_ACEOF
37132 /* end confdefs.h.  */
37133
37134 /* Override any GCC internal prototype to avoid an error.
37135    Use char because int might match the return type of a GCC
37136    builtin and then its argument prototype would still apply.  */
37137 #ifdef __cplusplus
37138 extern "C"
37139 #endif
37140 char glEnable ();
37141 int
37142 main ()
37143 {
37144 return glEnable ();
37145   ;
37146   return 0;
37147 }
37148 _ACEOF
37149 rm -f conftest.$ac_objext conftest$ac_exeext
37150 if { (ac_try="$ac_link"
37151 case "(($ac_try" in
37152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37153   *) ac_try_echo=$ac_try;;
37154 esac
37155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37156   (eval "$ac_link") 2>conftest.er1
37157   ac_status=$?
37158   grep -v '^ *+' conftest.er1 >conftest.err
37159   rm -f conftest.er1
37160   cat conftest.err >&5
37161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162   (exit $ac_status); } && {
37163          test -z "$ac_c_werror_flag" ||
37164          test ! -s conftest.err
37165        } && test -s conftest$ac_exeext &&
37166        $as_test_x conftest$ac_exeext; then
37167   ac_cv_lib_MesaGL_glEnable=yes
37168 else
37169   echo "$as_me: failed program was:" >&5
37170 sed 's/^/| /' conftest.$ac_ext >&5
37171
37172         ac_cv_lib_MesaGL_glEnable=no
37173 fi
37174
37175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37176       conftest$ac_exeext conftest.$ac_ext
37177 LIBS=$ac_check_lib_save_LIBS
37178 fi
37179 { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glEnable" >&5
37180 echo "${ECHO_T}$ac_cv_lib_MesaGL_glEnable" >&6; }
37181 if test $ac_cv_lib_MesaGL_glEnable = yes; then
37182   ac_find_libraries="std"
37183 fi
37184
37185         fi
37186       fi
37187
37188       if test "x$ac_find_libraries" = "x"; then
37189                         { echo "$as_me:$LINENO: checking elsewhere" >&5
37190 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
37191
37192   ac_find_libraries=
37193   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
37194   do
37195     for ac_extension in a so sl dylib dll.a; do
37196       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
37197         ac_find_libraries=$ac_dir
37198         break 2
37199       fi
37200     done
37201   done
37202
37203         if test "x$ac_find_libraries" != "x"; then
37204           { echo "$as_me:$LINENO: result: yes" >&5
37205 echo "${ECHO_T}yes" >&6; }
37206         else
37207           { echo "$as_me:$LINENO: result: no" >&5
37208 echo "${ECHO_T}no" >&6; }
37209         fi
37210       fi
37211
37212 elif test $pkg_failed = untried; then
37213
37214       if test "x$ac_find_libraries" = "x"; then
37215                 if test "xglEnable" != "x"; then
37216           { echo "$as_me:$LINENO: checking for glEnable in -lMesaGL" >&5
37217 echo $ECHO_N "checking for glEnable in -lMesaGL... $ECHO_C" >&6; }
37218 if test "${ac_cv_lib_MesaGL_glEnable+set}" = set; then
37219   echo $ECHO_N "(cached) $ECHO_C" >&6
37220 else
37221   ac_check_lib_save_LIBS=$LIBS
37222 LIBS="-lMesaGL  $LIBS"
37223 cat >conftest.$ac_ext <<_ACEOF
37224 /* confdefs.h.  */
37225 _ACEOF
37226 cat confdefs.h >>conftest.$ac_ext
37227 cat >>conftest.$ac_ext <<_ACEOF
37228 /* end confdefs.h.  */
37229
37230 /* Override any GCC internal prototype to avoid an error.
37231    Use char because int might match the return type of a GCC
37232    builtin and then its argument prototype would still apply.  */
37233 #ifdef __cplusplus
37234 extern "C"
37235 #endif
37236 char glEnable ();
37237 int
37238 main ()
37239 {
37240 return glEnable ();
37241   ;
37242   return 0;
37243 }
37244 _ACEOF
37245 rm -f conftest.$ac_objext conftest$ac_exeext
37246 if { (ac_try="$ac_link"
37247 case "(($ac_try" in
37248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37249   *) ac_try_echo=$ac_try;;
37250 esac
37251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37252   (eval "$ac_link") 2>conftest.er1
37253   ac_status=$?
37254   grep -v '^ *+' conftest.er1 >conftest.err
37255   rm -f conftest.er1
37256   cat conftest.err >&5
37257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37258   (exit $ac_status); } && {
37259          test -z "$ac_c_werror_flag" ||
37260          test ! -s conftest.err
37261        } && test -s conftest$ac_exeext &&
37262        $as_test_x conftest$ac_exeext; then
37263   ac_cv_lib_MesaGL_glEnable=yes
37264 else
37265   echo "$as_me: failed program was:" >&5
37266 sed 's/^/| /' conftest.$ac_ext >&5
37267
37268         ac_cv_lib_MesaGL_glEnable=no
37269 fi
37270
37271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37272       conftest$ac_exeext conftest.$ac_ext
37273 LIBS=$ac_check_lib_save_LIBS
37274 fi
37275 { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glEnable" >&5
37276 echo "${ECHO_T}$ac_cv_lib_MesaGL_glEnable" >&6; }
37277 if test $ac_cv_lib_MesaGL_glEnable = yes; then
37278   ac_find_libraries="std"
37279 fi
37280
37281         fi
37282       fi
37283
37284       if test "x$ac_find_libraries" = "x"; then
37285                         { echo "$as_me:$LINENO: checking elsewhere" >&5
37286 echo $ECHO_N "checking elsewhere... $ECHO_C" >&6; }
37287
37288   ac_find_libraries=
37289   for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB
37290   do
37291     for ac_extension in a so sl dylib dll.a; do
37292       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
37293         ac_find_libraries=$ac_dir
37294         break 2
37295       fi
37296     done
37297   done
37298
37299         if test "x$ac_find_libraries" != "x"; then
37300           { echo "$as_me:$LINENO: result: yes" >&5
37301 echo "${ECHO_T}yes" >&6; }
37302         else
37303           { echo "$as_me:$LINENO: result: no" >&5
37304 echo "${ECHO_T}no" >&6; }
37305         fi
37306       fi
37307
37308 else
37309         MesaGL_CFLAGS=$pkg_cv_MesaGL_CFLAGS
37310         MesaGL_LIBS=$pkg_cv_MesaGL_LIBS
37311         { echo "$as_me:$LINENO: result: yes" >&5
37312 echo "${ECHO_T}yes" >&6; }
37313
37314             ac_find_libraries="std"
37315
37316                                                 eval ac_find_cflags=\$MesaGL_CFLAGS
37317       eval fl_libs=\$MesaGL_LIBS
37318
37319                   for fl_path in $fl_libs
37320       do
37321         if test `echo "$fl_path" | cut -c 1-2` = "-L"; then
37322                               ac_find_libraries=`echo "$fl_path" | cut -c 3-`
37323         fi
37324       done
37325
37326 fi
37327
37328                     if test "$ac_find_libraries" != "" ; then
37329                       if test "$ac_find_libraries" != "std" ; then
37330
37331     if test "$ac_find_libraries" = "default location"; then
37332     ac_path_to_link=""
37333   else
37334     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
37335     result=$?
37336     if test $result = 0; then
37337       ac_path_to_link=""
37338     else
37339       ac_path_to_link=" -L$ac_find_libraries"
37340     fi
37341   fi
37342
37343                         if test "$ac_path_to_link" != " -L/usr/lib" ; then
37344                           LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
37345                         fi
37346                       fi
37347                       OPENGL_LIBS="-lMesaGL -lMesaGLU"
37348                     fi
37349                 fi
37350
37351 fi
37352
37353
37354
37355 fi
37356
37357
37358
37359         if test "x$OPENGL_LIBS" = "x"; then
37360             if test "$wxUSE_OPENGL" = "yes"; then
37361                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
37362 echo "$as_me: error: OpenGL libraries not available" >&2;}
37363    { (exit 1); exit 1; }; }
37364             else
37365                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
37366 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
37367                 wxUSE_OPENGL=no
37368                 USE_OPENGL=0
37369             fi
37370         fi
37371     else
37372         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
37373 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
37374         wxUSE_OPENGL="no"
37375     fi
37376
37377     if test "$wxUSE_OPENGL" = "auto"; then
37378                                 wxUSE_OPENGL=yes
37379     fi
37380
37381     if test "$wxUSE_OPENGL" = "yes"; then
37382         USE_OPENGL=1
37383         cat >>confdefs.h <<\_ACEOF
37384 #define wxUSE_OPENGL 1
37385 _ACEOF
37386
37387         cat >>confdefs.h <<\_ACEOF
37388 #define wxUSE_GLCANVAS 1
37389 _ACEOF
37390
37391         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
37392     fi
37393 fi
37394
37395
37396 if test -n "$TOOLKIT" ; then
37397     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
37398 fi
37399
37400
37401
37402 if test "$wxUSE_SHARED" = "yes"; then
37403     case "${host}" in
37404       *-pc-msdosdjgpp )
37405                 wxUSE_SHARED=no
37406         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
37407 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
37408       ;;
37409     esac
37410 fi
37411
37412 if test "$wxUSE_SHARED" = "yes"; then
37413
37414
37415     case "${host}" in
37416         *-*-cygwin* | *-*-mingw* )
37417                                                                                                 wx_cv_version_script=no
37418             ;;
37419
37420         *)
37421             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
37422 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
37423 if test "${wx_cv_version_script+set}" = set; then
37424   echo $ECHO_N "(cached) $ECHO_C" >&6
37425 else
37426
37427                 echo "VER_1 { *; };" >conftest.sym
37428                 echo "int main() { return 0; }" >conftest.cpp
37429
37430                 if { ac_try='
37431                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37432                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
37433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37434   (eval $ac_try) 2>&5
37435   ac_status=$?
37436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437   (exit $ac_status); }; } ; then
37438                   if test -s conftest.stderr ; then
37439                       wx_cv_version_script=no
37440                   else
37441                       wx_cv_version_script=yes
37442                   fi
37443                 else
37444                   wx_cv_version_script=no
37445                 fi
37446
37447                                                                                                                                                                                                 if test $wx_cv_version_script = yes
37448                 then
37449                   echo "struct B { virtual ~B() { } }; \
37450                         struct D : public B { }; \
37451                         void F() { D d; }" > conftest.cpp
37452
37453                   if { ac_try='
37454                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37455                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
37456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457   (eval $ac_try) 2>&5
37458   ac_status=$?
37459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460   (exit $ac_status); }; } &&
37461                      { ac_try='
37462                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37463                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
37464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37465   (eval $ac_try) 2>&5
37466   ac_status=$?
37467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468   (exit $ac_status); }; }
37469                   then
37470                     if { ac_try='
37471                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
37472                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
37473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37474   (eval $ac_try) 2>&5
37475   ac_status=$?
37476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37477   (exit $ac_status); }; }
37478                     then
37479                       wx_cv_version_script=yes
37480                     else
37481                       wx_cv_version_script=no
37482                     fi
37483                   fi
37484                 fi
37485
37486                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
37487                 rm -f conftest1.output conftest2.output conftest3.output
37488
37489 fi
37490 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
37491 echo "${ECHO_T}$wx_cv_version_script" >&6; }
37492
37493             if test $wx_cv_version_script = yes ; then
37494                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
37495             fi
37496             ;;
37497     esac
37498
37499
37500             if test "$wxUSE_VISIBILITY" != "no"; then
37501
37502
37503   if test -n "$GCC"; then
37504     CFLAGS_VISIBILITY="-fvisibility=hidden"
37505     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
37506     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
37507 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
37508     if test "${wx_cv_cc_visibility+set}" = set; then
37509   echo $ECHO_N "(cached) $ECHO_C" >&6
37510 else
37511
37512       wx_save_CXXFLAGS="$CXXFLAGS"
37513       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
37514       ac_ext=cpp
37515 ac_cpp='$CXXCPP $CPPFLAGS'
37516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37519
37520       cat >conftest.$ac_ext <<_ACEOF
37521 /* confdefs.h.  */
37522 _ACEOF
37523 cat confdefs.h >>conftest.$ac_ext
37524 cat >>conftest.$ac_ext <<_ACEOF
37525 /* end confdefs.h.  */
37526
37527          /* we need gcc >= 4.0, older versions with visibility support
37528             didn't have class visibility: */
37529          #if defined(__GNUC__) && __GNUC__ < 4
37530          error this gcc is too old;
37531          #endif
37532
37533          /* visibility only makes sense for ELF shared libs: */
37534          #if !defined(__ELF__) && !defined(__APPLE__)
37535          error this platform has no visibility;
37536          #endif
37537
37538          /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
37539          #if defined(__clang__)
37540          clang compiler is still broken w.r.t. visibility;
37541          #endif
37542
37543          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
37544          extern __attribute__((__visibility__("default"))) int exportedvar;
37545          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
37546          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
37547          class __attribute__((__visibility__("default"))) Foo {
37548            Foo() {}
37549          };
37550
37551 int
37552 main ()
37553 {
37554
37555   ;
37556   return 0;
37557 }
37558 _ACEOF
37559 rm -f conftest.$ac_objext
37560 if { (ac_try="$ac_compile"
37561 case "(($ac_try" in
37562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37563   *) ac_try_echo=$ac_try;;
37564 esac
37565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37566   (eval "$ac_compile") 2>conftest.er1
37567   ac_status=$?
37568   grep -v '^ *+' conftest.er1 >conftest.err
37569   rm -f conftest.er1
37570   cat conftest.err >&5
37571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37572   (exit $ac_status); } && {
37573          test -z "$ac_cxx_werror_flag" ||
37574          test ! -s conftest.err
37575        } && test -s conftest.$ac_objext; then
37576   wx_cv_cc_visibility=yes
37577 else
37578   echo "$as_me: failed program was:" >&5
37579 sed 's/^/| /' conftest.$ac_ext >&5
37580
37581         wx_cv_cc_visibility=no
37582 fi
37583
37584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37585       ac_ext=c
37586 ac_cpp='$CPP $CPPFLAGS'
37587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37590
37591       CXXFLAGS="$wx_save_CXXFLAGS"
37592 fi
37593
37594     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
37595 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
37596     if test $wx_cv_cc_visibility = yes; then
37597                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
37598 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
37599       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
37600   echo $ECHO_N "(cached) $ECHO_C" >&6
37601 else
37602
37603         wx_save_CXXFLAGS="$CXXFLAGS"
37604         wx_save_LDFLAGS="$LDFLAGS"
37605         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
37606         LDFLAGS="$LDFLAGS -shared -fPIC"
37607         ac_ext=cpp
37608 ac_cpp='$CXXCPP $CPPFLAGS'
37609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37612
37613         cat >conftest.$ac_ext <<_ACEOF
37614 /* confdefs.h.  */
37615 _ACEOF
37616 cat confdefs.h >>conftest.$ac_ext
37617 cat >>conftest.$ac_ext <<_ACEOF
37618 /* end confdefs.h.  */
37619
37620             #include <string>
37621
37622 int
37623 main ()
37624 {
37625
37626             std::string s("hello");
37627             return s.length();
37628
37629   ;
37630   return 0;
37631 }
37632 _ACEOF
37633 rm -f conftest.$ac_objext conftest$ac_exeext
37634 if { (ac_try="$ac_link"
37635 case "(($ac_try" in
37636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37637   *) ac_try_echo=$ac_try;;
37638 esac
37639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37640   (eval "$ac_link") 2>conftest.er1
37641   ac_status=$?
37642   grep -v '^ *+' conftest.er1 >conftest.err
37643   rm -f conftest.er1
37644   cat conftest.err >&5
37645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646   (exit $ac_status); } && {
37647          test -z "$ac_cxx_werror_flag" ||
37648          test ! -s conftest.err
37649        } && test -s conftest$ac_exeext &&
37650        $as_test_x conftest$ac_exeext; then
37651   wx_cv_cc_broken_libstdcxx_visibility=no
37652 else
37653   echo "$as_me: failed program was:" >&5
37654 sed 's/^/| /' conftest.$ac_ext >&5
37655
37656         wx_cv_cc_broken_libstdcxx_visibility=yes
37657 fi
37658
37659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37660       conftest$ac_exeext conftest.$ac_ext
37661         ac_ext=c
37662 ac_cpp='$CPP $CPPFLAGS'
37663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37666
37667         CXXFLAGS="$wx_save_CXXFLAGS"
37668         LDFLAGS="$wx_save_LDFLAGS"
37669 fi
37670
37671       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
37672 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
37673
37674       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
37675         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
37676 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
37677         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
37678   echo $ECHO_N "(cached) $ECHO_C" >&6
37679 else
37680
37681           ac_ext=cpp
37682 ac_cpp='$CXXCPP $CPPFLAGS'
37683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37686
37687           cat >conftest.$ac_ext <<_ACEOF
37688 /* confdefs.h.  */
37689 _ACEOF
37690 cat confdefs.h >>conftest.$ac_ext
37691 cat >>conftest.$ac_ext <<_ACEOF
37692 /* end confdefs.h.  */
37693
37694               #pragma GCC visibility push(default)
37695               #include <string>
37696               #pragma GCC visibility pop
37697
37698 int
37699 main ()
37700 {
37701
37702               std::string s("hello");
37703               return s.length();
37704
37705   ;
37706   return 0;
37707 }
37708 _ACEOF
37709 rm -f conftest.$ac_objext conftest$ac_exeext
37710 if { (ac_try="$ac_link"
37711 case "(($ac_try" in
37712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37713   *) ac_try_echo=$ac_try;;
37714 esac
37715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37716   (eval "$ac_link") 2>conftest.er1
37717   ac_status=$?
37718   grep -v '^ *+' conftest.er1 >conftest.err
37719   rm -f conftest.er1
37720   cat conftest.err >&5
37721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37722   (exit $ac_status); } && {
37723          test -z "$ac_cxx_werror_flag" ||
37724          test ! -s conftest.err
37725        } && test -s conftest$ac_exeext &&
37726        $as_test_x conftest$ac_exeext; then
37727   wx_cv_cc_visibility_workaround=no
37728 else
37729   echo "$as_me: failed program was:" >&5
37730 sed 's/^/| /' conftest.$ac_ext >&5
37731
37732         wx_cv_cc_visibility_workaround=yes
37733 fi
37734
37735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37736       conftest$ac_exeext conftest.$ac_ext
37737           ac_ext=c
37738 ac_cpp='$CPP $CPPFLAGS'
37739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37742
37743
37744 fi
37745
37746         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
37747 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
37748
37749         if test $wx_cv_cc_visibility_workaround = no; then
37750                     wx_cv_cc_visibility=no
37751         fi
37752       fi
37753     fi
37754
37755     if test $wx_cv_cc_visibility = yes; then
37756       cat >>confdefs.h <<\_ACEOF
37757 #define HAVE_VISIBILITY 1
37758 _ACEOF
37759
37760       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
37761         cat >>confdefs.h <<\_ACEOF
37762 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
37763 _ACEOF
37764
37765       fi
37766     else
37767       CFLAGS_VISIBILITY=""
37768       CXXFLAGS_VISIBILITY=""
37769     fi
37770
37771
37772   fi
37773
37774     fi
37775
37776         if test "x$SUNCXX" = xyes; then
37777         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
37778         WXCONFIG_RPATH="-R\$libdir"
37779     else
37780     case "${host}" in
37781       *-*-linux* | *-*-gnu* )
37782         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
37783         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
37784         ;;
37785
37786       *-*-solaris2* )
37787
37788                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
37789
37790                         saveLdflags="$LDFLAGS"
37791         LDFLAGS="$saveLdflags -Wl,-rpath,/"
37792         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
37793 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
37794         cat >conftest.$ac_ext <<_ACEOF
37795 /* confdefs.h.  */
37796 _ACEOF
37797 cat confdefs.h >>conftest.$ac_ext
37798 cat >>conftest.$ac_ext <<_ACEOF
37799 /* end confdefs.h.  */
37800
37801 int
37802 main ()
37803 {
37804
37805   ;
37806   return 0;
37807 }
37808 _ACEOF
37809 rm -f conftest.$ac_objext conftest$ac_exeext
37810 if { (ac_try="$ac_link"
37811 case "(($ac_try" in
37812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37813   *) ac_try_echo=$ac_try;;
37814 esac
37815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37816   (eval "$ac_link") 2>conftest.er1
37817   ac_status=$?
37818   grep -v '^ *+' conftest.er1 >conftest.err
37819   rm -f conftest.er1
37820   cat conftest.err >&5
37821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37822   (exit $ac_status); } && {
37823          test -z "$ac_c_werror_flag" ||
37824          test ! -s conftest.err
37825        } && test -s conftest$ac_exeext &&
37826        $as_test_x conftest$ac_exeext; then
37827
37828                 { echo "$as_me:$LINENO: result: yes" >&5
37829 echo "${ECHO_T}yes" >&6; }
37830                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
37831                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
37832
37833 else
37834   echo "$as_me: failed program was:" >&5
37835 sed 's/^/| /' conftest.$ac_ext >&5
37836
37837
37838                 { echo "$as_me:$LINENO: result: no" >&5
37839 echo "${ECHO_T}no" >&6; }
37840                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
37841 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
37842                 LDFLAGS="$saveLdflags -Wl,-R,/"
37843                 cat >conftest.$ac_ext <<_ACEOF
37844 /* confdefs.h.  */
37845 _ACEOF
37846 cat confdefs.h >>conftest.$ac_ext
37847 cat >>conftest.$ac_ext <<_ACEOF
37848 /* end confdefs.h.  */
37849
37850 int
37851 main ()
37852 {
37853
37854   ;
37855   return 0;
37856 }
37857 _ACEOF
37858 rm -f conftest.$ac_objext conftest$ac_exeext
37859 if { (ac_try="$ac_link"
37860 case "(($ac_try" in
37861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37862   *) ac_try_echo=$ac_try;;
37863 esac
37864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37865   (eval "$ac_link") 2>conftest.er1
37866   ac_status=$?
37867   grep -v '^ *+' conftest.er1 >conftest.err
37868   rm -f conftest.er1
37869   cat conftest.err >&5
37870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871   (exit $ac_status); } && {
37872          test -z "$ac_c_werror_flag" ||
37873          test ! -s conftest.err
37874        } && test -s conftest$ac_exeext &&
37875        $as_test_x conftest$ac_exeext; then
37876
37877                         { echo "$as_me:$LINENO: result: yes" >&5
37878 echo "${ECHO_T}yes" >&6; }
37879                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
37880                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
37881
37882 else
37883   echo "$as_me: failed program was:" >&5
37884 sed 's/^/| /' conftest.$ac_ext >&5
37885
37886
37887                         { echo "$as_me:$LINENO: result: no" >&5
37888 echo "${ECHO_T}no" >&6; }
37889
37890 fi
37891
37892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37893       conftest$ac_exeext conftest.$ac_ext
37894
37895 fi
37896
37897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37898       conftest$ac_exeext conftest.$ac_ext
37899         LDFLAGS="$saveLdflags"
37900       ;;
37901
37902       *-*-darwin* )
37903         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
37904         if test "$install_name_tool" -a -x "$install_name_tool"; then
37905             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
37906             cat <<EOF >change-install-names
37907 #!/bin/sh
37908 libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
37909 for i in \${libnames} ; do
37910     ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
37911     for dep in \${libnames} ; do
37912         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
37913     done
37914 done
37915 EOF
37916             chmod +x change-install-names
37917             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
37918         fi
37919
37920                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
37921       ;;
37922
37923       *-*-cygwin* | *-*-mingw32* )
37924         ;;
37925
37926       *-*-hpux* )
37927         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
37928         WXCONFIG_RPATH="-Wl,+b,\$libdir"
37929         ;;
37930
37931     esac
37932     fi
37933
37934             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
37935
37936     if test $wxUSE_RPATH = "no"; then
37937         SAMPLES_RPATH_FLAG=''
37938         DYLIB_PATH_POSTLINK=''
37939         WXCONFIG_RPATH=''
37940     fi
37941
37942     SHARED=1
37943
37944 else
37945
37946     config_linkage_component="-static"
37947     SHARED=0
37948
37949 fi
37950
37951
37952 UNICODE=0
37953 lib_unicode_suffix=
37954 WX_CHARTYPE="ansi"
37955 if test "$wxUSE_UNICODE" = "yes"; then
37956     lib_unicode_suffix=u
37957     WX_CHARTYPE="unicode"
37958     UNICODE=1
37959 fi
37960
37961 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
37962 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
37963
37964 DEBUG_INFO=0
37965 if test "$wxUSE_DEBUG_INFO" = "yes"; then
37966     DEBUG_INFO=1
37967 fi
37968
37969 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
37970
37971 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
37972
37973 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
37974
37975
37976 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
37977     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37978 else
37979     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37980 fi
37981 if test "${TOOLKIT_DIR}" = "os2"; then
37982     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37983 else
37984     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
37985 fi
37986
37987
37988
37989 if test "$wxUSE_OLD_COCOA" = 1; then
37990
37991     ac_ext=c
37992 ac_cpp='$CPP $CPPFLAGS'
37993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37996
37997 ac_ext=m
37998
37999     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
38000 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
38001     cat >conftest.$ac_ext <<_ACEOF
38002 /* confdefs.h.  */
38003 _ACEOF
38004 cat confdefs.h >>conftest.$ac_ext
38005 cat >>conftest.$ac_ext <<_ACEOF
38006 /* end confdefs.h.  */
38007 #include <AppKit/NSEvent.h>
38008 #include <CoreFoundation/CoreFoundation.h>
38009
38010 int
38011 main ()
38012 {
38013
38014   ;
38015   return 0;
38016 }
38017 _ACEOF
38018 rm -f conftest.$ac_objext
38019 if { (ac_try="$ac_compile"
38020 case "(($ac_try" in
38021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38022   *) ac_try_echo=$ac_try;;
38023 esac
38024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38025   (eval "$ac_compile") 2>conftest.er1
38026   ac_status=$?
38027   grep -v '^ *+' conftest.er1 >conftest.err
38028   rm -f conftest.er1
38029   cat conftest.err >&5
38030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38031   (exit $ac_status); } && {
38032          test -z "$ac_c_werror_flag" ||
38033          test ! -s conftest.err
38034        } && test -s conftest.$ac_objext; then
38035   { echo "$as_me:$LINENO: result: no" >&5
38036 echo "${ECHO_T}no" >&6; }
38037 else
38038   echo "$as_me: failed program was:" >&5
38039 sed 's/^/| /' conftest.$ac_ext >&5
38040
38041         { echo "$as_me:$LINENO: result: yes" >&5
38042 echo "${ECHO_T}yes" >&6; }
38043         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
38044 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
38045         cat >conftest.$ac_ext <<_ACEOF
38046 /* confdefs.h.  */
38047 _ACEOF
38048 cat confdefs.h >>conftest.$ac_ext
38049 cat >>conftest.$ac_ext <<_ACEOF
38050 /* end confdefs.h.  */
38051 #define __Point__ 1
38052 #include <AppKit/NSEvent.h>
38053 #include <CoreFoundation/CoreFoundation.h>
38054
38055 int
38056 main ()
38057 {
38058
38059   ;
38060   return 0;
38061 }
38062 _ACEOF
38063 rm -f conftest.$ac_objext
38064 if { (ac_try="$ac_compile"
38065 case "(($ac_try" in
38066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38067   *) ac_try_echo=$ac_try;;
38068 esac
38069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38070   (eval "$ac_compile") 2>conftest.er1
38071   ac_status=$?
38072   grep -v '^ *+' conftest.er1 >conftest.err
38073   rm -f conftest.er1
38074   cat conftest.err >&5
38075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38076   (exit $ac_status); } && {
38077          test -z "$ac_c_werror_flag" ||
38078          test ! -s conftest.err
38079        } && test -s conftest.$ac_objext; then
38080   { echo "$as_me:$LINENO: result: yes" >&5
38081 echo "${ECHO_T}yes" >&6; }
38082             cat >>confdefs.h <<\_ACEOF
38083 #define __Point__ 1
38084 _ACEOF
38085
38086
38087 else
38088   echo "$as_me: failed program was:" >&5
38089 sed 's/^/| /' conftest.$ac_ext >&5
38090
38091         { { echo "$as_me:$LINENO: error: no
38092 See \`config.log' for more details." >&5
38093 echo "$as_me: error: no
38094 See \`config.log' for more details." >&2;}
38095    { (exit 1); exit 1; }; }
38096
38097 fi
38098
38099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38100
38101 fi
38102
38103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38104     ac_ext=c
38105 ac_cpp='$CPP $CPPFLAGS'
38106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38109
38110 fi
38111
38112
38113 { echo "$as_me:$LINENO: checking for mode_t" >&5
38114 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
38115 if test "${ac_cv_type_mode_t+set}" = set; then
38116   echo $ECHO_N "(cached) $ECHO_C" >&6
38117 else
38118   cat >conftest.$ac_ext <<_ACEOF
38119 /* confdefs.h.  */
38120 _ACEOF
38121 cat confdefs.h >>conftest.$ac_ext
38122 cat >>conftest.$ac_ext <<_ACEOF
38123 /* end confdefs.h.  */
38124 $ac_includes_default
38125 typedef mode_t ac__type_new_;
38126 int
38127 main ()
38128 {
38129 if ((ac__type_new_ *) 0)
38130   return 0;
38131 if (sizeof (ac__type_new_))
38132   return 0;
38133   ;
38134   return 0;
38135 }
38136 _ACEOF
38137 rm -f conftest.$ac_objext
38138 if { (ac_try="$ac_compile"
38139 case "(($ac_try" in
38140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38141   *) ac_try_echo=$ac_try;;
38142 esac
38143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38144   (eval "$ac_compile") 2>conftest.er1
38145   ac_status=$?
38146   grep -v '^ *+' conftest.er1 >conftest.err
38147   rm -f conftest.er1
38148   cat conftest.err >&5
38149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38150   (exit $ac_status); } && {
38151          test -z "$ac_c_werror_flag" ||
38152          test ! -s conftest.err
38153        } && test -s conftest.$ac_objext; then
38154   ac_cv_type_mode_t=yes
38155 else
38156   echo "$as_me: failed program was:" >&5
38157 sed 's/^/| /' conftest.$ac_ext >&5
38158
38159         ac_cv_type_mode_t=no
38160 fi
38161
38162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38163 fi
38164 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38165 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
38166 if test $ac_cv_type_mode_t = yes; then
38167   :
38168 else
38169
38170 cat >>confdefs.h <<_ACEOF
38171 #define mode_t int
38172 _ACEOF
38173
38174 fi
38175
38176 { echo "$as_me:$LINENO: checking for off_t" >&5
38177 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
38178 if test "${ac_cv_type_off_t+set}" = set; then
38179   echo $ECHO_N "(cached) $ECHO_C" >&6
38180 else
38181   cat >conftest.$ac_ext <<_ACEOF
38182 /* confdefs.h.  */
38183 _ACEOF
38184 cat confdefs.h >>conftest.$ac_ext
38185 cat >>conftest.$ac_ext <<_ACEOF
38186 /* end confdefs.h.  */
38187 $ac_includes_default
38188 typedef off_t ac__type_new_;
38189 int
38190 main ()
38191 {
38192 if ((ac__type_new_ *) 0)
38193   return 0;
38194 if (sizeof (ac__type_new_))
38195   return 0;
38196   ;
38197   return 0;
38198 }
38199 _ACEOF
38200 rm -f conftest.$ac_objext
38201 if { (ac_try="$ac_compile"
38202 case "(($ac_try" in
38203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38204   *) ac_try_echo=$ac_try;;
38205 esac
38206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38207   (eval "$ac_compile") 2>conftest.er1
38208   ac_status=$?
38209   grep -v '^ *+' conftest.er1 >conftest.err
38210   rm -f conftest.er1
38211   cat conftest.err >&5
38212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213   (exit $ac_status); } && {
38214          test -z "$ac_c_werror_flag" ||
38215          test ! -s conftest.err
38216        } && test -s conftest.$ac_objext; then
38217   ac_cv_type_off_t=yes
38218 else
38219   echo "$as_me: failed program was:" >&5
38220 sed 's/^/| /' conftest.$ac_ext >&5
38221
38222         ac_cv_type_off_t=no
38223 fi
38224
38225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38226 fi
38227 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38228 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
38229 if test $ac_cv_type_off_t = yes; then
38230   :
38231 else
38232
38233 cat >>confdefs.h <<_ACEOF
38234 #define off_t long int
38235 _ACEOF
38236
38237 fi
38238
38239 { echo "$as_me:$LINENO: checking for pid_t" >&5
38240 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
38241 if test "${ac_cv_type_pid_t+set}" = set; then
38242   echo $ECHO_N "(cached) $ECHO_C" >&6
38243 else
38244   cat >conftest.$ac_ext <<_ACEOF
38245 /* confdefs.h.  */
38246 _ACEOF
38247 cat confdefs.h >>conftest.$ac_ext
38248 cat >>conftest.$ac_ext <<_ACEOF
38249 /* end confdefs.h.  */
38250 $ac_includes_default
38251 typedef pid_t ac__type_new_;
38252 int
38253 main ()
38254 {
38255 if ((ac__type_new_ *) 0)
38256   return 0;
38257 if (sizeof (ac__type_new_))
38258   return 0;
38259   ;
38260   return 0;
38261 }
38262 _ACEOF
38263 rm -f conftest.$ac_objext
38264 if { (ac_try="$ac_compile"
38265 case "(($ac_try" in
38266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38267   *) ac_try_echo=$ac_try;;
38268 esac
38269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38270   (eval "$ac_compile") 2>conftest.er1
38271   ac_status=$?
38272   grep -v '^ *+' conftest.er1 >conftest.err
38273   rm -f conftest.er1
38274   cat conftest.err >&5
38275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276   (exit $ac_status); } && {
38277          test -z "$ac_c_werror_flag" ||
38278          test ! -s conftest.err
38279        } && test -s conftest.$ac_objext; then
38280   ac_cv_type_pid_t=yes
38281 else
38282   echo "$as_me: failed program was:" >&5
38283 sed 's/^/| /' conftest.$ac_ext >&5
38284
38285         ac_cv_type_pid_t=no
38286 fi
38287
38288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38289 fi
38290 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38291 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
38292 if test $ac_cv_type_pid_t = yes; then
38293   :
38294 else
38295
38296 cat >>confdefs.h <<_ACEOF
38297 #define pid_t int
38298 _ACEOF
38299
38300 fi
38301
38302 { echo "$as_me:$LINENO: checking for size_t" >&5
38303 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
38304 if test "${ac_cv_type_size_t+set}" = set; then
38305   echo $ECHO_N "(cached) $ECHO_C" >&6
38306 else
38307   cat >conftest.$ac_ext <<_ACEOF
38308 /* confdefs.h.  */
38309 _ACEOF
38310 cat confdefs.h >>conftest.$ac_ext
38311 cat >>conftest.$ac_ext <<_ACEOF
38312 /* end confdefs.h.  */
38313 $ac_includes_default
38314 typedef size_t ac__type_new_;
38315 int
38316 main ()
38317 {
38318 if ((ac__type_new_ *) 0)
38319   return 0;
38320 if (sizeof (ac__type_new_))
38321   return 0;
38322   ;
38323   return 0;
38324 }
38325 _ACEOF
38326 rm -f conftest.$ac_objext
38327 if { (ac_try="$ac_compile"
38328 case "(($ac_try" in
38329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38330   *) ac_try_echo=$ac_try;;
38331 esac
38332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38333   (eval "$ac_compile") 2>conftest.er1
38334   ac_status=$?
38335   grep -v '^ *+' conftest.er1 >conftest.err
38336   rm -f conftest.er1
38337   cat conftest.err >&5
38338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339   (exit $ac_status); } && {
38340          test -z "$ac_c_werror_flag" ||
38341          test ! -s conftest.err
38342        } && test -s conftest.$ac_objext; then
38343   ac_cv_type_size_t=yes
38344 else
38345   echo "$as_me: failed program was:" >&5
38346 sed 's/^/| /' conftest.$ac_ext >&5
38347
38348         ac_cv_type_size_t=no
38349 fi
38350
38351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38352 fi
38353 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38354 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
38355 if test $ac_cv_type_size_t = yes; then
38356   :
38357 else
38358
38359 cat >>confdefs.h <<_ACEOF
38360 #define size_t unsigned int
38361 _ACEOF
38362
38363 fi
38364
38365
38366 { echo "$as_me:$LINENO: checking for ssize_t" >&5
38367 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
38368 if test "${ac_cv_type_ssize_t+set}" = set; then
38369   echo $ECHO_N "(cached) $ECHO_C" >&6
38370 else
38371   cat >conftest.$ac_ext <<_ACEOF
38372 /* confdefs.h.  */
38373 _ACEOF
38374 cat confdefs.h >>conftest.$ac_ext
38375 cat >>conftest.$ac_ext <<_ACEOF
38376 /* end confdefs.h.  */
38377 $ac_includes_default
38378 typedef ssize_t ac__type_new_;
38379 int
38380 main ()
38381 {
38382 if ((ac__type_new_ *) 0)
38383   return 0;
38384 if (sizeof (ac__type_new_))
38385   return 0;
38386   ;
38387   return 0;
38388 }
38389 _ACEOF
38390 rm -f conftest.$ac_objext
38391 if { (ac_try="$ac_compile"
38392 case "(($ac_try" in
38393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38394   *) ac_try_echo=$ac_try;;
38395 esac
38396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38397   (eval "$ac_compile") 2>conftest.er1
38398   ac_status=$?
38399   grep -v '^ *+' conftest.er1 >conftest.err
38400   rm -f conftest.er1
38401   cat conftest.err >&5
38402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38403   (exit $ac_status); } && {
38404          test -z "$ac_c_werror_flag" ||
38405          test ! -s conftest.err
38406        } && test -s conftest.$ac_objext; then
38407   ac_cv_type_ssize_t=yes
38408 else
38409   echo "$as_me: failed program was:" >&5
38410 sed 's/^/| /' conftest.$ac_ext >&5
38411
38412         ac_cv_type_ssize_t=no
38413 fi
38414
38415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38416 fi
38417 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38418 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
38419 if test $ac_cv_type_ssize_t = yes; then
38420
38421 cat >>confdefs.h <<_ACEOF
38422 #define HAVE_SSIZE_T 1
38423 _ACEOF
38424
38425
38426 fi
38427
38428
38429 ac_ext=cpp
38430 ac_cpp='$CXXCPP $CPPFLAGS'
38431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38434  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
38435 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
38436 if test "${wx_cv_size_t_is_uint+set}" = set; then
38437   echo $ECHO_N "(cached) $ECHO_C" >&6
38438 else
38439
38440                             cat >conftest.$ac_ext <<_ACEOF
38441 /* confdefs.h.  */
38442 _ACEOF
38443 cat confdefs.h >>conftest.$ac_ext
38444 cat >>conftest.$ac_ext <<_ACEOF
38445 /* end confdefs.h.  */
38446 #include <stddef.h>
38447 int
38448 main ()
38449 {
38450
38451             return 0; }
38452
38453             struct Foo { void foo(size_t); void foo(unsigned int); };
38454
38455             int bar() {
38456
38457   ;
38458   return 0;
38459 }
38460 _ACEOF
38461 rm -f conftest.$ac_objext
38462 if { (ac_try="$ac_compile"
38463 case "(($ac_try" in
38464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38465   *) ac_try_echo=$ac_try;;
38466 esac
38467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38468   (eval "$ac_compile") 2>conftest.er1
38469   ac_status=$?
38470   grep -v '^ *+' conftest.er1 >conftest.err
38471   rm -f conftest.er1
38472   cat conftest.err >&5
38473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38474   (exit $ac_status); } && {
38475          test -z "$ac_cxx_werror_flag" ||
38476          test ! -s conftest.err
38477        } && test -s conftest.$ac_objext; then
38478   wx_cv_size_t_is_uint=no
38479 else
38480   echo "$as_me: failed program was:" >&5
38481 sed 's/^/| /' conftest.$ac_ext >&5
38482
38483         wx_cv_size_t_is_uint=yes
38484
38485 fi
38486
38487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38488
38489
38490 fi
38491 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
38492 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
38493
38494 if test "$wx_cv_size_t_is_uint" = "yes"; then
38495     cat >>confdefs.h <<\_ACEOF
38496 #define wxSIZE_T_IS_UINT 1
38497 _ACEOF
38498
38499 else
38500     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
38501 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
38502 if test "${wx_cv_size_t_is_ulong+set}" = set; then
38503   echo $ECHO_N "(cached) $ECHO_C" >&6
38504 else
38505   cat >conftest.$ac_ext <<_ACEOF
38506 /* confdefs.h.  */
38507 _ACEOF
38508 cat confdefs.h >>conftest.$ac_ext
38509 cat >>conftest.$ac_ext <<_ACEOF
38510 /* end confdefs.h.  */
38511 #include <stddef.h>
38512 int
38513 main ()
38514 {
38515
38516                 return 0; }
38517
38518                 struct Foo { void foo(size_t); void foo(unsigned long); };
38519
38520                 int bar() {
38521
38522   ;
38523   return 0;
38524 }
38525 _ACEOF
38526 rm -f conftest.$ac_objext
38527 if { (ac_try="$ac_compile"
38528 case "(($ac_try" in
38529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38530   *) ac_try_echo=$ac_try;;
38531 esac
38532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38533   (eval "$ac_compile") 2>conftest.er1
38534   ac_status=$?
38535   grep -v '^ *+' conftest.er1 >conftest.err
38536   rm -f conftest.er1
38537   cat conftest.err >&5
38538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539   (exit $ac_status); } && {
38540          test -z "$ac_cxx_werror_flag" ||
38541          test ! -s conftest.err
38542        } && test -s conftest.$ac_objext; then
38543   wx_cv_size_t_is_ulong=no
38544 else
38545   echo "$as_me: failed program was:" >&5
38546 sed 's/^/| /' conftest.$ac_ext >&5
38547
38548         wx_cv_size_t_is_ulong=yes
38549
38550 fi
38551
38552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38553
38554 fi
38555 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
38556 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
38557
38558     if test "$wx_cv_size_t_is_ulong" = "yes"; then
38559         cat >>confdefs.h <<\_ACEOF
38560 #define wxSIZE_T_IS_ULONG 1
38561 _ACEOF
38562
38563     fi
38564 fi
38565
38566 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
38567 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
38568 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
38569   echo $ECHO_N "(cached) $ECHO_C" >&6
38570 else
38571   cat >conftest.$ac_ext <<_ACEOF
38572 /* confdefs.h.  */
38573 _ACEOF
38574 cat confdefs.h >>conftest.$ac_ext
38575 cat >>conftest.$ac_ext <<_ACEOF
38576 /* end confdefs.h.  */
38577 #include <wchar.h>
38578 int
38579 main ()
38580 {
38581
38582             return 0; }
38583
38584             struct Foo { void foo(wchar_t);
38585                          void foo(unsigned short);
38586                          void foo(unsigned int);
38587                          void foo(unsigned long); };
38588
38589             int bar() {
38590
38591   ;
38592   return 0;
38593 }
38594 _ACEOF
38595 rm -f conftest.$ac_objext
38596 if { (ac_try="$ac_compile"
38597 case "(($ac_try" in
38598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38599   *) ac_try_echo=$ac_try;;
38600 esac
38601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38602   (eval "$ac_compile") 2>conftest.er1
38603   ac_status=$?
38604   grep -v '^ *+' conftest.er1 >conftest.err
38605   rm -f conftest.er1
38606   cat conftest.err >&5
38607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38608   (exit $ac_status); } && {
38609          test -z "$ac_cxx_werror_flag" ||
38610          test ! -s conftest.err
38611        } && test -s conftest.$ac_objext; then
38612   wx_cv_wchar_t_is_separate_type=yes
38613 else
38614   echo "$as_me: failed program was:" >&5
38615 sed 's/^/| /' conftest.$ac_ext >&5
38616
38617         wx_cv_wchar_t_is_separate_type=no
38618
38619 fi
38620
38621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38622
38623 fi
38624 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
38625 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
38626
38627 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
38628     cat >>confdefs.h <<\_ACEOF
38629 #define wxWCHAR_T_IS_REAL_TYPE 1
38630 _ACEOF
38631
38632 else
38633     cat >>confdefs.h <<\_ACEOF
38634 #define wxWCHAR_T_IS_REAL_TYPE 0
38635 _ACEOF
38636
38637 fi
38638
38639 ac_ext=c
38640 ac_cpp='$CPP $CPPFLAGS'
38641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38644
38645
38646 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
38647 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
38648 if test "${wx_cv_struct_pw_gecos+set}" = set; then
38649   echo $ECHO_N "(cached) $ECHO_C" >&6
38650 else
38651
38652         cat >conftest.$ac_ext <<_ACEOF
38653 /* confdefs.h.  */
38654 _ACEOF
38655 cat confdefs.h >>conftest.$ac_ext
38656 cat >>conftest.$ac_ext <<_ACEOF
38657 /* end confdefs.h.  */
38658 #include <pwd.h>
38659 int
38660 main ()
38661 {
38662
38663                 char *p;
38664                 struct passwd *pw;
38665                 p = pw->pw_gecos;
38666
38667   ;
38668   return 0;
38669 }
38670 _ACEOF
38671 rm -f conftest.$ac_objext
38672 if { (ac_try="$ac_compile"
38673 case "(($ac_try" in
38674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38675   *) ac_try_echo=$ac_try;;
38676 esac
38677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38678   (eval "$ac_compile") 2>conftest.er1
38679   ac_status=$?
38680   grep -v '^ *+' conftest.er1 >conftest.err
38681   rm -f conftest.er1
38682   cat conftest.err >&5
38683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38684   (exit $ac_status); } && {
38685          test -z "$ac_c_werror_flag" ||
38686          test ! -s conftest.err
38687        } && test -s conftest.$ac_objext; then
38688
38689                 wx_cv_struct_pw_gecos=yes
38690
38691 else
38692   echo "$as_me: failed program was:" >&5
38693 sed 's/^/| /' conftest.$ac_ext >&5
38694
38695
38696                 wx_cv_struct_pw_gecos=no
38697
38698
38699 fi
38700
38701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38702
38703
38704 fi
38705 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
38706 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
38707
38708 if test "$wx_cv_struct_pw_gecos" = "yes"; then
38709     cat >>confdefs.h <<\_ACEOF
38710 #define HAVE_PW_GECOS 1
38711 _ACEOF
38712
38713 fi
38714
38715
38716 WCSLEN_FOUND=0
38717 WCHAR_LINK=
38718
38719 for ac_func in wcslen
38720 do
38721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38725   echo $ECHO_N "(cached) $ECHO_C" >&6
38726 else
38727   cat >conftest.$ac_ext <<_ACEOF
38728 /* confdefs.h.  */
38729 _ACEOF
38730 cat confdefs.h >>conftest.$ac_ext
38731 cat >>conftest.$ac_ext <<_ACEOF
38732 /* end confdefs.h.  */
38733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38735 #define $ac_func innocuous_$ac_func
38736
38737 /* System header to define __stub macros and hopefully few prototypes,
38738     which can conflict with char $ac_func (); below.
38739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38740     <limits.h> exists even on freestanding compilers.  */
38741
38742 #ifdef __STDC__
38743 # include <limits.h>
38744 #else
38745 # include <assert.h>
38746 #endif
38747
38748 #undef $ac_func
38749
38750 /* Override any GCC internal prototype to avoid an error.
38751    Use char because int might match the return type of a GCC
38752    builtin and then its argument prototype would still apply.  */
38753 #ifdef __cplusplus
38754 extern "C"
38755 #endif
38756 char $ac_func ();
38757 /* The GNU C library defines this for functions which it implements
38758     to always fail with ENOSYS.  Some functions are actually named
38759     something starting with __ and the normal name is an alias.  */
38760 #if defined __stub_$ac_func || defined __stub___$ac_func
38761 choke me
38762 #endif
38763
38764 int
38765 main ()
38766 {
38767 return $ac_func ();
38768   ;
38769   return 0;
38770 }
38771 _ACEOF
38772 rm -f conftest.$ac_objext conftest$ac_exeext
38773 if { (ac_try="$ac_link"
38774 case "(($ac_try" in
38775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38776   *) ac_try_echo=$ac_try;;
38777 esac
38778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38779   (eval "$ac_link") 2>conftest.er1
38780   ac_status=$?
38781   grep -v '^ *+' conftest.er1 >conftest.err
38782   rm -f conftest.er1
38783   cat conftest.err >&5
38784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785   (exit $ac_status); } && {
38786          test -z "$ac_c_werror_flag" ||
38787          test ! -s conftest.err
38788        } && test -s conftest$ac_exeext &&
38789        $as_test_x conftest$ac_exeext; then
38790   eval "$as_ac_var=yes"
38791 else
38792   echo "$as_me: failed program was:" >&5
38793 sed 's/^/| /' conftest.$ac_ext >&5
38794
38795         eval "$as_ac_var=no"
38796 fi
38797
38798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38799       conftest$ac_exeext conftest.$ac_ext
38800 fi
38801 ac_res=`eval echo '${'$as_ac_var'}'`
38802                { echo "$as_me:$LINENO: result: $ac_res" >&5
38803 echo "${ECHO_T}$ac_res" >&6; }
38804 if test `eval echo '${'$as_ac_var'}'` = yes; then
38805   cat >>confdefs.h <<_ACEOF
38806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38807 _ACEOF
38808  WCSLEN_FOUND=1
38809 fi
38810 done
38811
38812
38813 if test "$WCSLEN_FOUND" = 0; then
38814     if test "$TOOLKIT" = "MSW"; then
38815         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
38816 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
38817 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
38818   echo $ECHO_N "(cached) $ECHO_C" >&6
38819 else
38820   ac_check_lib_save_LIBS=$LIBS
38821 LIBS="-lmsvcrt  $LIBS"
38822 cat >conftest.$ac_ext <<_ACEOF
38823 /* confdefs.h.  */
38824 _ACEOF
38825 cat confdefs.h >>conftest.$ac_ext
38826 cat >>conftest.$ac_ext <<_ACEOF
38827 /* end confdefs.h.  */
38828
38829 /* Override any GCC internal prototype to avoid an error.
38830    Use char because int might match the return type of a GCC
38831    builtin and then its argument prototype would still apply.  */
38832 #ifdef __cplusplus
38833 extern "C"
38834 #endif
38835 char wcslen ();
38836 int
38837 main ()
38838 {
38839 return wcslen ();
38840   ;
38841   return 0;
38842 }
38843 _ACEOF
38844 rm -f conftest.$ac_objext conftest$ac_exeext
38845 if { (ac_try="$ac_link"
38846 case "(($ac_try" in
38847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38848   *) ac_try_echo=$ac_try;;
38849 esac
38850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38851   (eval "$ac_link") 2>conftest.er1
38852   ac_status=$?
38853   grep -v '^ *+' conftest.er1 >conftest.err
38854   rm -f conftest.er1
38855   cat conftest.err >&5
38856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38857   (exit $ac_status); } && {
38858          test -z "$ac_c_werror_flag" ||
38859          test ! -s conftest.err
38860        } && test -s conftest$ac_exeext &&
38861        $as_test_x conftest$ac_exeext; then
38862   ac_cv_lib_msvcrt_wcslen=yes
38863 else
38864   echo "$as_me: failed program was:" >&5
38865 sed 's/^/| /' conftest.$ac_ext >&5
38866
38867         ac_cv_lib_msvcrt_wcslen=no
38868 fi
38869
38870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38871       conftest$ac_exeext conftest.$ac_ext
38872 LIBS=$ac_check_lib_save_LIBS
38873 fi
38874 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
38875 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
38876 if test $ac_cv_lib_msvcrt_wcslen = yes; then
38877   WCHAR_OK=1
38878 fi
38879
38880     else
38881         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
38882 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
38883 if test "${ac_cv_lib_w_wcslen+set}" = set; then
38884   echo $ECHO_N "(cached) $ECHO_C" >&6
38885 else
38886   ac_check_lib_save_LIBS=$LIBS
38887 LIBS="-lw  $LIBS"
38888 cat >conftest.$ac_ext <<_ACEOF
38889 /* confdefs.h.  */
38890 _ACEOF
38891 cat confdefs.h >>conftest.$ac_ext
38892 cat >>conftest.$ac_ext <<_ACEOF
38893 /* end confdefs.h.  */
38894
38895 /* Override any GCC internal prototype to avoid an error.
38896    Use char because int might match the return type of a GCC
38897    builtin and then its argument prototype would still apply.  */
38898 #ifdef __cplusplus
38899 extern "C"
38900 #endif
38901 char wcslen ();
38902 int
38903 main ()
38904 {
38905 return wcslen ();
38906   ;
38907   return 0;
38908 }
38909 _ACEOF
38910 rm -f conftest.$ac_objext conftest$ac_exeext
38911 if { (ac_try="$ac_link"
38912 case "(($ac_try" in
38913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38914   *) ac_try_echo=$ac_try;;
38915 esac
38916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38917   (eval "$ac_link") 2>conftest.er1
38918   ac_status=$?
38919   grep -v '^ *+' conftest.er1 >conftest.err
38920   rm -f conftest.er1
38921   cat conftest.err >&5
38922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38923   (exit $ac_status); } && {
38924          test -z "$ac_c_werror_flag" ||
38925          test ! -s conftest.err
38926        } && test -s conftest$ac_exeext &&
38927        $as_test_x conftest$ac_exeext; then
38928   ac_cv_lib_w_wcslen=yes
38929 else
38930   echo "$as_me: failed program was:" >&5
38931 sed 's/^/| /' conftest.$ac_ext >&5
38932
38933         ac_cv_lib_w_wcslen=no
38934 fi
38935
38936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38937       conftest$ac_exeext conftest.$ac_ext
38938 LIBS=$ac_check_lib_save_LIBS
38939 fi
38940 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
38941 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
38942 if test $ac_cv_lib_w_wcslen = yes; then
38943
38944                         WCHAR_LINK=" -lw"
38945                         WCSLEN_FOUND=1
38946
38947 fi
38948
38949     fi
38950 fi
38951
38952 if test "$WCSLEN_FOUND" = 1; then
38953     cat >>confdefs.h <<\_ACEOF
38954 #define HAVE_WCSLEN 1
38955 _ACEOF
38956
38957 fi
38958
38959
38960
38961
38962
38963
38964
38965 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
38966 do
38967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38968 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38971   echo $ECHO_N "(cached) $ECHO_C" >&6
38972 else
38973   cat >conftest.$ac_ext <<_ACEOF
38974 /* confdefs.h.  */
38975 _ACEOF
38976 cat confdefs.h >>conftest.$ac_ext
38977 cat >>conftest.$ac_ext <<_ACEOF
38978 /* end confdefs.h.  */
38979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38981 #define $ac_func innocuous_$ac_func
38982
38983 /* System header to define __stub macros and hopefully few prototypes,
38984     which can conflict with char $ac_func (); below.
38985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38986     <limits.h> exists even on freestanding compilers.  */
38987
38988 #ifdef __STDC__
38989 # include <limits.h>
38990 #else
38991 # include <assert.h>
38992 #endif
38993
38994 #undef $ac_func
38995
38996 /* Override any GCC internal prototype to avoid an error.
38997    Use char because int might match the return type of a GCC
38998    builtin and then its argument prototype would still apply.  */
38999 #ifdef __cplusplus
39000 extern "C"
39001 #endif
39002 char $ac_func ();
39003 /* The GNU C library defines this for functions which it implements
39004     to always fail with ENOSYS.  Some functions are actually named
39005     something starting with __ and the normal name is an alias.  */
39006 #if defined __stub_$ac_func || defined __stub___$ac_func
39007 choke me
39008 #endif
39009
39010 int
39011 main ()
39012 {
39013 return $ac_func ();
39014   ;
39015   return 0;
39016 }
39017 _ACEOF
39018 rm -f conftest.$ac_objext conftest$ac_exeext
39019 if { (ac_try="$ac_link"
39020 case "(($ac_try" in
39021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39022   *) ac_try_echo=$ac_try;;
39023 esac
39024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39025   (eval "$ac_link") 2>conftest.er1
39026   ac_status=$?
39027   grep -v '^ *+' conftest.er1 >conftest.err
39028   rm -f conftest.er1
39029   cat conftest.err >&5
39030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39031   (exit $ac_status); } && {
39032          test -z "$ac_c_werror_flag" ||
39033          test ! -s conftest.err
39034        } && test -s conftest$ac_exeext &&
39035        $as_test_x conftest$ac_exeext; then
39036   eval "$as_ac_var=yes"
39037 else
39038   echo "$as_me: failed program was:" >&5
39039 sed 's/^/| /' conftest.$ac_ext >&5
39040
39041         eval "$as_ac_var=no"
39042 fi
39043
39044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39045       conftest$ac_exeext conftest.$ac_ext
39046 fi
39047 ac_res=`eval echo '${'$as_ac_var'}'`
39048                { echo "$as_me:$LINENO: result: $ac_res" >&5
39049 echo "${ECHO_T}$ac_res" >&6; }
39050 if test `eval echo '${'$as_ac_var'}'` = yes; then
39051   cat >>confdefs.h <<_ACEOF
39052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39053 _ACEOF
39054
39055 fi
39056 done
39057
39058
39059 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
39060     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
39061 fi
39062
39063 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
39064 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
39065 if test "${ac_cv_type_mbstate_t+set}" = set; then
39066   echo $ECHO_N "(cached) $ECHO_C" >&6
39067 else
39068   cat >conftest.$ac_ext <<_ACEOF
39069 /* confdefs.h.  */
39070 _ACEOF
39071 cat confdefs.h >>conftest.$ac_ext
39072 cat >>conftest.$ac_ext <<_ACEOF
39073 /* end confdefs.h.  */
39074 #include <wchar.h>
39075
39076 typedef mbstate_t ac__type_new_;
39077 int
39078 main ()
39079 {
39080 if ((ac__type_new_ *) 0)
39081   return 0;
39082 if (sizeof (ac__type_new_))
39083   return 0;
39084   ;
39085   return 0;
39086 }
39087 _ACEOF
39088 rm -f conftest.$ac_objext
39089 if { (ac_try="$ac_compile"
39090 case "(($ac_try" in
39091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39092   *) ac_try_echo=$ac_try;;
39093 esac
39094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39095   (eval "$ac_compile") 2>conftest.er1
39096   ac_status=$?
39097   grep -v '^ *+' conftest.er1 >conftest.err
39098   rm -f conftest.er1
39099   cat conftest.err >&5
39100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39101   (exit $ac_status); } && {
39102          test -z "$ac_c_werror_flag" ||
39103          test ! -s conftest.err
39104        } && test -s conftest.$ac_objext; then
39105   ac_cv_type_mbstate_t=yes
39106 else
39107   echo "$as_me: failed program was:" >&5
39108 sed 's/^/| /' conftest.$ac_ext >&5
39109
39110         ac_cv_type_mbstate_t=no
39111 fi
39112
39113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39114 fi
39115 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
39116 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
39117 if test $ac_cv_type_mbstate_t = yes; then
39118
39119 cat >>confdefs.h <<_ACEOF
39120 #define HAVE_MBSTATE_T 1
39121 _ACEOF
39122
39123
39124 for ac_func in wcsrtombs
39125 do
39126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39130   echo $ECHO_N "(cached) $ECHO_C" >&6
39131 else
39132   cat >conftest.$ac_ext <<_ACEOF
39133 /* confdefs.h.  */
39134 _ACEOF
39135 cat confdefs.h >>conftest.$ac_ext
39136 cat >>conftest.$ac_ext <<_ACEOF
39137 /* end confdefs.h.  */
39138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39140 #define $ac_func innocuous_$ac_func
39141
39142 /* System header to define __stub macros and hopefully few prototypes,
39143     which can conflict with char $ac_func (); below.
39144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39145     <limits.h> exists even on freestanding compilers.  */
39146
39147 #ifdef __STDC__
39148 # include <limits.h>
39149 #else
39150 # include <assert.h>
39151 #endif
39152
39153 #undef $ac_func
39154
39155 /* Override any GCC internal prototype to avoid an error.
39156    Use char because int might match the return type of a GCC
39157    builtin and then its argument prototype would still apply.  */
39158 #ifdef __cplusplus
39159 extern "C"
39160 #endif
39161 char $ac_func ();
39162 /* The GNU C library defines this for functions which it implements
39163     to always fail with ENOSYS.  Some functions are actually named
39164     something starting with __ and the normal name is an alias.  */
39165 #if defined __stub_$ac_func || defined __stub___$ac_func
39166 choke me
39167 #endif
39168
39169 int
39170 main ()
39171 {
39172 return $ac_func ();
39173   ;
39174   return 0;
39175 }
39176 _ACEOF
39177 rm -f conftest.$ac_objext conftest$ac_exeext
39178 if { (ac_try="$ac_link"
39179 case "(($ac_try" in
39180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39181   *) ac_try_echo=$ac_try;;
39182 esac
39183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39184   (eval "$ac_link") 2>conftest.er1
39185   ac_status=$?
39186   grep -v '^ *+' conftest.er1 >conftest.err
39187   rm -f conftest.er1
39188   cat conftest.err >&5
39189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190   (exit $ac_status); } && {
39191          test -z "$ac_c_werror_flag" ||
39192          test ! -s conftest.err
39193        } && test -s conftest$ac_exeext &&
39194        $as_test_x conftest$ac_exeext; then
39195   eval "$as_ac_var=yes"
39196 else
39197   echo "$as_me: failed program was:" >&5
39198 sed 's/^/| /' conftest.$ac_ext >&5
39199
39200         eval "$as_ac_var=no"
39201 fi
39202
39203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39204       conftest$ac_exeext conftest.$ac_ext
39205 fi
39206 ac_res=`eval echo '${'$as_ac_var'}'`
39207                { echo "$as_me:$LINENO: result: $ac_res" >&5
39208 echo "${ECHO_T}$ac_res" >&6; }
39209 if test `eval echo '${'$as_ac_var'}'` = yes; then
39210   cat >>confdefs.h <<_ACEOF
39211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39212 _ACEOF
39213
39214 fi
39215 done
39216
39217 fi
39218
39219
39220
39221
39222
39223 for ac_func in snprintf vsnprintf vsscanf
39224 do
39225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39229   echo $ECHO_N "(cached) $ECHO_C" >&6
39230 else
39231   cat >conftest.$ac_ext <<_ACEOF
39232 /* confdefs.h.  */
39233 _ACEOF
39234 cat confdefs.h >>conftest.$ac_ext
39235 cat >>conftest.$ac_ext <<_ACEOF
39236 /* end confdefs.h.  */
39237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39239 #define $ac_func innocuous_$ac_func
39240
39241 /* System header to define __stub macros and hopefully few prototypes,
39242     which can conflict with char $ac_func (); below.
39243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39244     <limits.h> exists even on freestanding compilers.  */
39245
39246 #ifdef __STDC__
39247 # include <limits.h>
39248 #else
39249 # include <assert.h>
39250 #endif
39251
39252 #undef $ac_func
39253
39254 /* Override any GCC internal prototype to avoid an error.
39255    Use char because int might match the return type of a GCC
39256    builtin and then its argument prototype would still apply.  */
39257 #ifdef __cplusplus
39258 extern "C"
39259 #endif
39260 char $ac_func ();
39261 /* The GNU C library defines this for functions which it implements
39262     to always fail with ENOSYS.  Some functions are actually named
39263     something starting with __ and the normal name is an alias.  */
39264 #if defined __stub_$ac_func || defined __stub___$ac_func
39265 choke me
39266 #endif
39267
39268 int
39269 main ()
39270 {
39271 return $ac_func ();
39272   ;
39273   return 0;
39274 }
39275 _ACEOF
39276 rm -f conftest.$ac_objext conftest$ac_exeext
39277 if { (ac_try="$ac_link"
39278 case "(($ac_try" in
39279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39280   *) ac_try_echo=$ac_try;;
39281 esac
39282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39283   (eval "$ac_link") 2>conftest.er1
39284   ac_status=$?
39285   grep -v '^ *+' conftest.er1 >conftest.err
39286   rm -f conftest.er1
39287   cat conftest.err >&5
39288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39289   (exit $ac_status); } && {
39290          test -z "$ac_c_werror_flag" ||
39291          test ! -s conftest.err
39292        } && test -s conftest$ac_exeext &&
39293        $as_test_x conftest$ac_exeext; then
39294   eval "$as_ac_var=yes"
39295 else
39296   echo "$as_me: failed program was:" >&5
39297 sed 's/^/| /' conftest.$ac_ext >&5
39298
39299         eval "$as_ac_var=no"
39300 fi
39301
39302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39303       conftest$ac_exeext conftest.$ac_ext
39304 fi
39305 ac_res=`eval echo '${'$as_ac_var'}'`
39306                { echo "$as_me:$LINENO: result: $ac_res" >&5
39307 echo "${ECHO_T}$ac_res" >&6; }
39308 if test `eval echo '${'$as_ac_var'}'` = yes; then
39309   cat >>confdefs.h <<_ACEOF
39310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39311 _ACEOF
39312
39313 fi
39314 done
39315
39316
39317 ac_ext=cpp
39318 ac_cpp='$CXXCPP $CPPFLAGS'
39319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39322
39323 if test "$ac_cv_func_vsnprintf" = "yes"; then
39324         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
39325 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
39326 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
39327   echo $ECHO_N "(cached) $ECHO_C" >&6
39328 else
39329
39330                                                             cat >conftest.$ac_ext <<_ACEOF
39331 /* confdefs.h.  */
39332 _ACEOF
39333 cat confdefs.h >>conftest.$ac_ext
39334 cat >>conftest.$ac_ext <<_ACEOF
39335 /* end confdefs.h.  */
39336
39337                     #include <stdio.h>
39338                     #include <stdarg.h>
39339                     #ifdef __MSL__
39340                     #if __MSL__ >= 0x6000
39341                     namespace std {}
39342                     using namespace std;
39343                     #endif
39344                     #endif
39345
39346 int
39347 main ()
39348 {
39349
39350                     char *buf;
39351                     va_list ap;
39352                     vsnprintf(buf, 10u, "%s", ap);
39353
39354   ;
39355   return 0;
39356 }
39357 _ACEOF
39358 rm -f conftest.$ac_objext
39359 if { (ac_try="$ac_compile"
39360 case "(($ac_try" in
39361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39362   *) ac_try_echo=$ac_try;;
39363 esac
39364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39365   (eval "$ac_compile") 2>conftest.er1
39366   ac_status=$?
39367   grep -v '^ *+' conftest.er1 >conftest.err
39368   rm -f conftest.er1
39369   cat conftest.err >&5
39370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39371   (exit $ac_status); } && {
39372          test -z "$ac_cxx_werror_flag" ||
39373          test ! -s conftest.err
39374        } && test -s conftest.$ac_objext; then
39375   wx_cv_func_vsnprintf_decl=yes
39376 else
39377   echo "$as_me: failed program was:" >&5
39378 sed 's/^/| /' conftest.$ac_ext >&5
39379
39380         wx_cv_func_vsnprintf_decl=no
39381
39382 fi
39383
39384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39385
39386
39387 fi
39388 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
39389 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
39390
39391     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
39392         cat >>confdefs.h <<\_ACEOF
39393 #define HAVE_VSNPRINTF_DECL 1
39394 _ACEOF
39395
39396
39397                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
39398 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
39399 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
39400   echo $ECHO_N "(cached) $ECHO_C" >&6
39401 else
39402
39403                 cat >conftest.$ac_ext <<_ACEOF
39404 /* confdefs.h.  */
39405 _ACEOF
39406 cat confdefs.h >>conftest.$ac_ext
39407 cat >>conftest.$ac_ext <<_ACEOF
39408 /* end confdefs.h.  */
39409
39410                         #include <stdio.h>
39411                         #include <stdarg.h>
39412                         #ifdef __MSL__
39413                         #if __MSL__ >= 0x6000
39414                         namespace std {}
39415                         using namespace std;
39416                         #endif
39417                         #endif
39418
39419 int
39420 main ()
39421 {
39422
39423                         char *buf;
39424                         va_list ap;
39425                         const char *fmt = "%s";
39426                         vsnprintf(buf, 10u, fmt, ap);
39427
39428   ;
39429   return 0;
39430 }
39431 _ACEOF
39432 rm -f conftest.$ac_objext
39433 if { (ac_try="$ac_compile"
39434 case "(($ac_try" in
39435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39436   *) ac_try_echo=$ac_try;;
39437 esac
39438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39439   (eval "$ac_compile") 2>conftest.er1
39440   ac_status=$?
39441   grep -v '^ *+' conftest.er1 >conftest.err
39442   rm -f conftest.er1
39443   cat conftest.err >&5
39444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445   (exit $ac_status); } && {
39446          test -z "$ac_cxx_werror_flag" ||
39447          test ! -s conftest.err
39448        } && test -s conftest.$ac_objext; then
39449   wx_cv_func_broken_vsnprintf_decl=no
39450 else
39451   echo "$as_me: failed program was:" >&5
39452 sed 's/^/| /' conftest.$ac_ext >&5
39453
39454         wx_cv_func_broken_vsnprintf_decl=yes
39455
39456 fi
39457
39458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39459
39460
39461 fi
39462 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
39463 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
39464
39465         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
39466             cat >>confdefs.h <<\_ACEOF
39467 #define HAVE_BROKEN_VSNPRINTF_DECL 1
39468 _ACEOF
39469
39470         fi
39471     fi
39472 fi
39473
39474 if test "$ac_cv_func_snprintf" = "yes"; then
39475     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
39476 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
39477 if test "${wx_cv_func_snprintf_decl+set}" = set; then
39478   echo $ECHO_N "(cached) $ECHO_C" >&6
39479 else
39480
39481             cat >conftest.$ac_ext <<_ACEOF
39482 /* confdefs.h.  */
39483 _ACEOF
39484 cat confdefs.h >>conftest.$ac_ext
39485 cat >>conftest.$ac_ext <<_ACEOF
39486 /* end confdefs.h.  */
39487
39488                     #include <stdio.h>
39489                     #include <stdarg.h>
39490                     #ifdef __MSL__
39491                     #if __MSL__ >= 0x6000
39492                     namespace std {}
39493                     using namespace std;
39494                     #endif
39495                     #endif
39496
39497 int
39498 main ()
39499 {
39500
39501                     char *buf;
39502                     snprintf(buf, 10u, "%s", "wx");
39503
39504   ;
39505   return 0;
39506 }
39507 _ACEOF
39508 rm -f conftest.$ac_objext
39509 if { (ac_try="$ac_compile"
39510 case "(($ac_try" in
39511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39512   *) ac_try_echo=$ac_try;;
39513 esac
39514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39515   (eval "$ac_compile") 2>conftest.er1
39516   ac_status=$?
39517   grep -v '^ *+' conftest.er1 >conftest.err
39518   rm -f conftest.er1
39519   cat conftest.err >&5
39520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39521   (exit $ac_status); } && {
39522          test -z "$ac_cxx_werror_flag" ||
39523          test ! -s conftest.err
39524        } && test -s conftest.$ac_objext; then
39525   wx_cv_func_snprintf_decl=yes
39526 else
39527   echo "$as_me: failed program was:" >&5
39528 sed 's/^/| /' conftest.$ac_ext >&5
39529
39530         wx_cv_func_snprintf_decl=no
39531
39532 fi
39533
39534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39535
39536
39537 fi
39538 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
39539 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
39540
39541     if test "$wx_cv_func_snprintf_decl" = "yes"; then
39542         cat >>confdefs.h <<\_ACEOF
39543 #define HAVE_SNPRINTF_DECL 1
39544 _ACEOF
39545
39546     fi
39547
39548     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
39549
39550                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
39551 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
39552 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
39553   echo $ECHO_N "(cached) $ECHO_C" >&6
39554 else
39555
39556                 if test "$cross_compiling" = yes; then
39557
39558                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
39559 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
39560 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
39561 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
39562                         wx_cv_func_snprintf_pos_params=no
39563
39564
39565 else
39566   cat >conftest.$ac_ext <<_ACEOF
39567 /* confdefs.h.  */
39568 _ACEOF
39569 cat confdefs.h >>conftest.$ac_ext
39570 cat >>conftest.$ac_ext <<_ACEOF
39571 /* end confdefs.h.  */
39572
39573                         #include <stdio.h>
39574
39575                         int main (void)
39576                         {
39577                             char buffer[128];
39578                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
39579                             if (strcmp ("2 3 1", buffer) == 0)
39580                                 exit (0);
39581                             exit (1);
39582                         }
39583
39584 _ACEOF
39585 rm -f conftest$ac_exeext
39586 if { (ac_try="$ac_link"
39587 case "(($ac_try" in
39588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39589   *) ac_try_echo=$ac_try;;
39590 esac
39591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39592   (eval "$ac_link") 2>&5
39593   ac_status=$?
39594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39596   { (case "(($ac_try" in
39597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39598   *) ac_try_echo=$ac_try;;
39599 esac
39600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39601   (eval "$ac_try") 2>&5
39602   ac_status=$?
39603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604   (exit $ac_status); }; }; then
39605   wx_cv_func_snprintf_pos_params=no
39606 else
39607   echo "$as_me: program exited with status $ac_status" >&5
39608 echo "$as_me: failed program was:" >&5
39609 sed 's/^/| /' conftest.$ac_ext >&5
39610
39611 ( exit $ac_status )
39612 wx_cv_func_snprintf_pos_params=yes
39613 fi
39614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39615 fi
39616
39617
39618
39619
39620 fi
39621 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
39622 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
39623
39624         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
39625             cat >>confdefs.h <<\_ACEOF
39626 #define HAVE_UNIX98_PRINTF 1
39627 _ACEOF
39628
39629         fi
39630     fi
39631 fi
39632
39633 if test "$ac_cv_func_vsscanf" = "yes"; then
39634     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
39635 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
39636 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
39637   echo $ECHO_N "(cached) $ECHO_C" >&6
39638 else
39639
39640             cat >conftest.$ac_ext <<_ACEOF
39641 /* confdefs.h.  */
39642 _ACEOF
39643 cat confdefs.h >>conftest.$ac_ext
39644 cat >>conftest.$ac_ext <<_ACEOF
39645 /* end confdefs.h.  */
39646
39647                     #include <stdio.h>
39648                     #include <stdarg.h>
39649                     #ifdef __MSL__
39650                     #if __MSL__ >= 0x6000
39651                     namespace std {}
39652                     using namespace std;
39653                     #endif
39654                     #endif
39655
39656 int
39657 main ()
39658 {
39659
39660                     char *buf;
39661                     va_list args;
39662                     vsscanf(buf, "%s", args);
39663
39664   ;
39665   return 0;
39666 }
39667 _ACEOF
39668 rm -f conftest.$ac_objext
39669 if { (ac_try="$ac_compile"
39670 case "(($ac_try" in
39671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39672   *) ac_try_echo=$ac_try;;
39673 esac
39674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39675   (eval "$ac_compile") 2>conftest.er1
39676   ac_status=$?
39677   grep -v '^ *+' conftest.er1 >conftest.err
39678   rm -f conftest.er1
39679   cat conftest.err >&5
39680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681   (exit $ac_status); } && {
39682          test -z "$ac_cxx_werror_flag" ||
39683          test ! -s conftest.err
39684        } && test -s conftest.$ac_objext; then
39685   wx_cv_func_vsscanf_decl=yes
39686 else
39687   echo "$as_me: failed program was:" >&5
39688 sed 's/^/| /' conftest.$ac_ext >&5
39689
39690         wx_cv_func_vsscanf_decl=no
39691
39692 fi
39693
39694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39695
39696
39697 fi
39698 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
39699 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
39700
39701     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
39702         cat >>confdefs.h <<\_ACEOF
39703 #define HAVE_VSSCANF_DECL 1
39704 _ACEOF
39705
39706     fi
39707 fi
39708 ac_ext=c
39709 ac_cpp='$CPP $CPPFLAGS'
39710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39713
39714
39715 if test "$wxUSE_UNICODE" = yes; then
39716
39717             wchar_headers="#include <stdio.h>
39718 #include <wchar.h>"
39719     case "${host}" in
39720         *-*-solaris2* )
39721
39722 for ac_header in widec.h
39723 do
39724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39728   echo $ECHO_N "(cached) $ECHO_C" >&6
39729 else
39730   cat >conftest.$ac_ext <<_ACEOF
39731 /* confdefs.h.  */
39732 _ACEOF
39733 cat confdefs.h >>conftest.$ac_ext
39734 cat >>conftest.$ac_ext <<_ACEOF
39735 /* end confdefs.h.  */
39736 $ac_includes_default
39737
39738 #include <$ac_header>
39739 _ACEOF
39740 rm -f conftest.$ac_objext
39741 if { (ac_try="$ac_compile"
39742 case "(($ac_try" in
39743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39744   *) ac_try_echo=$ac_try;;
39745 esac
39746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39747   (eval "$ac_compile") 2>conftest.er1
39748   ac_status=$?
39749   grep -v '^ *+' conftest.er1 >conftest.err
39750   rm -f conftest.er1
39751   cat conftest.err >&5
39752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39753   (exit $ac_status); } && {
39754          test -z "$ac_c_werror_flag" ||
39755          test ! -s conftest.err
39756        } && test -s conftest.$ac_objext; then
39757   eval "$as_ac_Header=yes"
39758 else
39759   echo "$as_me: failed program was:" >&5
39760 sed 's/^/| /' conftest.$ac_ext >&5
39761
39762         eval "$as_ac_Header=no"
39763 fi
39764
39765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39766 fi
39767 ac_res=`eval echo '${'$as_ac_Header'}'`
39768                { echo "$as_me:$LINENO: result: $ac_res" >&5
39769 echo "${ECHO_T}$ac_res" >&6; }
39770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39771   cat >>confdefs.h <<_ACEOF
39772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39773 _ACEOF
39774
39775 fi
39776
39777 done
39778
39779             if test "$ac_cv_header_widec_h" = "yes"; then
39780                 wchar_headers="$wchar_headers
39781 #include <widec.h>"
39782             fi
39783     esac
39784
39785
39786   for wx_func in putws fputws wprintf vswprintf vswscanf
39787   do
39788     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39789 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39790 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39791   echo $ECHO_N "(cached) $ECHO_C" >&6
39792 else
39793
39794         cat >conftest.$ac_ext <<_ACEOF
39795
39796             /* confdefs.h.  */
39797 _ACEOF
39798 cat confdefs.h >>conftest.$ac_ext
39799 cat >>conftest.$ac_ext <<_ACEOF
39800 /* end confdefs.h.  */
39801
39802                 $wchar_headers
39803                 $ac_includes_default
39804
39805 int
39806 main ()
39807 {
39808
39809                 #ifndef $wx_func
39810                   &$wx_func;
39811                 #endif
39812
39813
39814   ;
39815   return 0;
39816 }
39817
39818 _ACEOF
39819 rm -f conftest.$ac_objext conftest$ac_exeext
39820 if { (ac_try="$ac_link"
39821 case "(($ac_try" in
39822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39823   *) ac_try_echo=$ac_try;;
39824 esac
39825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39826   (eval "$ac_link") 2>conftest.er1
39827   ac_status=$?
39828   grep -v '^ *+' conftest.er1 >conftest.err
39829   rm -f conftest.er1
39830   cat conftest.err >&5
39831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832   (exit $ac_status); } && {
39833          test -z "$ac_c_werror_flag" ||
39834          test ! -s conftest.err
39835        } && test -s conftest$ac_exeext &&
39836        $as_test_x conftest$ac_exeext; then
39837   eval wx_cv_func_$wx_func=yes
39838 else
39839   echo "$as_me: failed program was:" >&5
39840 sed 's/^/| /' conftest.$ac_ext >&5
39841
39842         eval wx_cv_func_$wx_func=no
39843 fi
39844
39845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39846       conftest$ac_exeext conftest.$ac_ext
39847
39848 fi
39849 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39850                { echo "$as_me:$LINENO: result: $ac_res" >&5
39851 echo "${ECHO_T}$ac_res" >&6; }
39852
39853     if eval test \$wx_cv_func_$wx_func = yes
39854     then
39855       cat >>confdefs.h <<_ACEOF
39856 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39857 _ACEOF
39858
39859
39860     else
39861       :
39862
39863     fi
39864   done
39865
39866
39867                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
39868 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
39869     cat >conftest.$ac_ext <<_ACEOF
39870 /* confdefs.h.  */
39871 _ACEOF
39872 cat confdefs.h >>conftest.$ac_ext
39873 cat >>conftest.$ac_ext <<_ACEOF
39874 /* end confdefs.h.  */
39875 #include <wchar.h>
39876 int
39877 main ()
39878 {
39879 &_vsnwprintf;
39880   ;
39881   return 0;
39882 }
39883 _ACEOF
39884 rm -f conftest.$ac_objext
39885 if { (ac_try="$ac_compile"
39886 case "(($ac_try" in
39887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39888   *) ac_try_echo=$ac_try;;
39889 esac
39890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39891   (eval "$ac_compile") 2>conftest.er1
39892   ac_status=$?
39893   grep -v '^ *+' conftest.er1 >conftest.err
39894   rm -f conftest.er1
39895   cat conftest.err >&5
39896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897   (exit $ac_status); } && {
39898          test -z "$ac_c_werror_flag" ||
39899          test ! -s conftest.err
39900        } && test -s conftest.$ac_objext; then
39901   { echo "$as_me:$LINENO: result: yes" >&5
39902 echo "${ECHO_T}yes" >&6; }
39903                     cat >>confdefs.h <<\_ACEOF
39904 #define HAVE__VSNWPRINTF 1
39905 _ACEOF
39906
39907 else
39908   echo "$as_me: failed program was:" >&5
39909 sed 's/^/| /' conftest.$ac_ext >&5
39910
39911         { echo "$as_me:$LINENO: result: no" >&5
39912 echo "${ECHO_T}no" >&6; }
39913 fi
39914
39915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
39916 fi
39917
39918 if test "$wxUSE_FILE" = "yes"; then
39919
39920   for wx_func in fsync
39921   do
39922     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39923 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39924 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39925   echo $ECHO_N "(cached) $ECHO_C" >&6
39926 else
39927
39928         cat >conftest.$ac_ext <<_ACEOF
39929
39930             /* confdefs.h.  */
39931 _ACEOF
39932 cat confdefs.h >>conftest.$ac_ext
39933 cat >>conftest.$ac_ext <<_ACEOF
39934 /* end confdefs.h.  */
39935
39936
39937                 $ac_includes_default
39938
39939 int
39940 main ()
39941 {
39942
39943                 #ifndef $wx_func
39944                   &$wx_func;
39945                 #endif
39946
39947
39948   ;
39949   return 0;
39950 }
39951
39952 _ACEOF
39953 rm -f conftest.$ac_objext conftest$ac_exeext
39954 if { (ac_try="$ac_link"
39955 case "(($ac_try" in
39956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39957   *) ac_try_echo=$ac_try;;
39958 esac
39959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39960   (eval "$ac_link") 2>conftest.er1
39961   ac_status=$?
39962   grep -v '^ *+' conftest.er1 >conftest.err
39963   rm -f conftest.er1
39964   cat conftest.err >&5
39965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39966   (exit $ac_status); } && {
39967          test -z "$ac_c_werror_flag" ||
39968          test ! -s conftest.err
39969        } && test -s conftest$ac_exeext &&
39970        $as_test_x conftest$ac_exeext; then
39971   eval wx_cv_func_$wx_func=yes
39972 else
39973   echo "$as_me: failed program was:" >&5
39974 sed 's/^/| /' conftest.$ac_ext >&5
39975
39976         eval wx_cv_func_$wx_func=no
39977 fi
39978
39979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39980       conftest$ac_exeext conftest.$ac_ext
39981
39982 fi
39983 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39984                { echo "$as_me:$LINENO: result: $ac_res" >&5
39985 echo "${ECHO_T}$ac_res" >&6; }
39986
39987     if eval test \$wx_cv_func_$wx_func = yes
39988     then
39989       cat >>confdefs.h <<_ACEOF
39990 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39991 _ACEOF
39992
39993
39994     else
39995       :
39996
39997     fi
39998   done
39999
40000 fi
40001
40002 ac_ext=cpp
40003 ac_cpp='$CXXCPP $CPPFLAGS'
40004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40007
40008
40009   for wx_func in round
40010   do
40011     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40012 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40013 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40014   echo $ECHO_N "(cached) $ECHO_C" >&6
40015 else
40016
40017         cat >conftest.$ac_ext <<_ACEOF
40018
40019             /* confdefs.h.  */
40020 _ACEOF
40021 cat confdefs.h >>conftest.$ac_ext
40022 cat >>conftest.$ac_ext <<_ACEOF
40023 /* end confdefs.h.  */
40024
40025                 #include <math.h>
40026                 $ac_includes_default
40027
40028 int
40029 main ()
40030 {
40031
40032                 #ifndef $wx_func
40033                   &$wx_func;
40034                 #endif
40035
40036
40037   ;
40038   return 0;
40039 }
40040
40041 _ACEOF
40042 rm -f conftest.$ac_objext conftest$ac_exeext
40043 if { (ac_try="$ac_link"
40044 case "(($ac_try" in
40045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40046   *) ac_try_echo=$ac_try;;
40047 esac
40048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40049   (eval "$ac_link") 2>conftest.er1
40050   ac_status=$?
40051   grep -v '^ *+' conftest.er1 >conftest.err
40052   rm -f conftest.er1
40053   cat conftest.err >&5
40054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40055   (exit $ac_status); } && {
40056          test -z "$ac_cxx_werror_flag" ||
40057          test ! -s conftest.err
40058        } && test -s conftest$ac_exeext &&
40059        $as_test_x conftest$ac_exeext; then
40060   eval wx_cv_func_$wx_func=yes
40061 else
40062   echo "$as_me: failed program was:" >&5
40063 sed 's/^/| /' conftest.$ac_ext >&5
40064
40065         eval wx_cv_func_$wx_func=no
40066 fi
40067
40068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40069       conftest$ac_exeext conftest.$ac_ext
40070
40071 fi
40072 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40073                { echo "$as_me:$LINENO: result: $ac_res" >&5
40074 echo "${ECHO_T}$ac_res" >&6; }
40075
40076     if eval test \$wx_cv_func_$wx_func = yes
40077     then
40078       cat >>confdefs.h <<_ACEOF
40079 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40080 _ACEOF
40081
40082
40083     else
40084       :
40085
40086     fi
40087   done
40088
40089 ac_ext=c
40090 ac_cpp='$CPP $CPPFLAGS'
40091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40094
40095
40096 if test "$TOOLKIT" != "MSW"; then
40097
40098 if test "$wxUSE_LIBICONV" != "no" ; then
40099
40100
40101
40102 # Check whether --with-libiconv-prefix was given.
40103 if test "${with_libiconv_prefix+set}" = set; then
40104   withval=$with_libiconv_prefix;
40105     for dir in `echo "$withval" | tr : ' '`; do
40106       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
40107       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
40108     done
40109
40110 fi
40111
40112
40113   { echo "$as_me:$LINENO: checking for iconv" >&5
40114 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
40115 if test "${am_cv_func_iconv+set}" = set; then
40116   echo $ECHO_N "(cached) $ECHO_C" >&6
40117 else
40118
40119     am_cv_func_iconv="no, consider installing GNU libiconv"
40120     am_cv_lib_iconv=no
40121     cat >conftest.$ac_ext <<_ACEOF
40122 /* confdefs.h.  */
40123 _ACEOF
40124 cat confdefs.h >>conftest.$ac_ext
40125 cat >>conftest.$ac_ext <<_ACEOF
40126 /* end confdefs.h.  */
40127 #include <stdlib.h>
40128 #include <iconv.h>
40129 int
40130 main ()
40131 {
40132 iconv_t cd = iconv_open("","");
40133        iconv(cd,NULL,NULL,NULL,NULL);
40134        iconv_close(cd);
40135   ;
40136   return 0;
40137 }
40138 _ACEOF
40139 rm -f conftest.$ac_objext conftest$ac_exeext
40140 if { (ac_try="$ac_link"
40141 case "(($ac_try" in
40142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40143   *) ac_try_echo=$ac_try;;
40144 esac
40145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40146   (eval "$ac_link") 2>conftest.er1
40147   ac_status=$?
40148   grep -v '^ *+' conftest.er1 >conftest.err
40149   rm -f conftest.er1
40150   cat conftest.err >&5
40151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40152   (exit $ac_status); } && {
40153          test -z "$ac_c_werror_flag" ||
40154          test ! -s conftest.err
40155        } && test -s conftest$ac_exeext &&
40156        $as_test_x conftest$ac_exeext; then
40157   am_cv_func_iconv=yes
40158 else
40159   echo "$as_me: failed program was:" >&5
40160 sed 's/^/| /' conftest.$ac_ext >&5
40161
40162
40163 fi
40164
40165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40166       conftest$ac_exeext conftest.$ac_ext
40167     if test "$am_cv_func_iconv" != yes; then
40168       am_save_LIBS="$LIBS"
40169       LIBS="$LIBS -liconv"
40170       cat >conftest.$ac_ext <<_ACEOF
40171 /* confdefs.h.  */
40172 _ACEOF
40173 cat confdefs.h >>conftest.$ac_ext
40174 cat >>conftest.$ac_ext <<_ACEOF
40175 /* end confdefs.h.  */
40176 #include <stdlib.h>
40177 #include <iconv.h>
40178 int
40179 main ()
40180 {
40181 iconv_t cd = iconv_open("","");
40182          iconv(cd,NULL,NULL,NULL,NULL);
40183          iconv_close(cd);
40184   ;
40185   return 0;
40186 }
40187 _ACEOF
40188 rm -f conftest.$ac_objext conftest$ac_exeext
40189 if { (ac_try="$ac_link"
40190 case "(($ac_try" in
40191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40192   *) ac_try_echo=$ac_try;;
40193 esac
40194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40195   (eval "$ac_link") 2>conftest.er1
40196   ac_status=$?
40197   grep -v '^ *+' conftest.er1 >conftest.err
40198   rm -f conftest.er1
40199   cat conftest.err >&5
40200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40201   (exit $ac_status); } && {
40202          test -z "$ac_c_werror_flag" ||
40203          test ! -s conftest.err
40204        } && test -s conftest$ac_exeext &&
40205        $as_test_x conftest$ac_exeext; then
40206   am_cv_lib_iconv=yes
40207         am_cv_func_iconv=yes
40208 else
40209   echo "$as_me: failed program was:" >&5
40210 sed 's/^/| /' conftest.$ac_ext >&5
40211
40212
40213 fi
40214
40215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40216       conftest$ac_exeext conftest.$ac_ext
40217       LIBS="$am_save_LIBS"
40218     fi
40219
40220 fi
40221 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40222 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
40223   if test "$am_cv_func_iconv" = yes; then
40224
40225 cat >>confdefs.h <<\_ACEOF
40226 #define HAVE_ICONV 1
40227 _ACEOF
40228
40229     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
40230 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
40231 if test "${wx_cv_func_iconv_const+set}" = set; then
40232   echo $ECHO_N "(cached) $ECHO_C" >&6
40233 else
40234   cat >conftest.$ac_ext <<_ACEOF
40235 /* confdefs.h.  */
40236 _ACEOF
40237 cat confdefs.h >>conftest.$ac_ext
40238 cat >>conftest.$ac_ext <<_ACEOF
40239 /* end confdefs.h.  */
40240
40241 #include <stdlib.h>
40242 #include <iconv.h>
40243 extern
40244 #ifdef __cplusplus
40245 "C"
40246 #endif
40247 #if defined(__STDC__) || defined(__cplusplus)
40248 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
40249 #else
40250 size_t iconv();
40251 #endif
40252
40253 int
40254 main ()
40255 {
40256
40257   ;
40258   return 0;
40259 }
40260 _ACEOF
40261 rm -f conftest.$ac_objext
40262 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
40278   wx_cv_func_iconv_const="no"
40279 else
40280   echo "$as_me: failed program was:" >&5
40281 sed 's/^/| /' conftest.$ac_ext >&5
40282
40283         wx_cv_func_iconv_const="yes"
40284
40285 fi
40286
40287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40288
40289 fi
40290 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
40291 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
40292
40293     iconv_const=
40294     if test "x$wx_cv_func_iconv_const" = "xyes"; then
40295         iconv_const="const"
40296     fi
40297
40298
40299 cat >>confdefs.h <<_ACEOF
40300 #define ICONV_CONST $iconv_const
40301 _ACEOF
40302
40303   fi
40304   LIBICONV=
40305   if test "$am_cv_lib_iconv" = yes; then
40306     LIBICONV="-liconv"
40307   fi
40308
40309
40310     LIBS="$LIBICONV $LIBS"
40311 fi
40312
40313 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
40314
40315 for ac_func in sigaction
40316 do
40317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40321   echo $ECHO_N "(cached) $ECHO_C" >&6
40322 else
40323   cat >conftest.$ac_ext <<_ACEOF
40324 /* confdefs.h.  */
40325 _ACEOF
40326 cat confdefs.h >>conftest.$ac_ext
40327 cat >>conftest.$ac_ext <<_ACEOF
40328 /* end confdefs.h.  */
40329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40331 #define $ac_func innocuous_$ac_func
40332
40333 /* System header to define __stub macros and hopefully few prototypes,
40334     which can conflict with char $ac_func (); below.
40335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40336     <limits.h> exists even on freestanding compilers.  */
40337
40338 #ifdef __STDC__
40339 # include <limits.h>
40340 #else
40341 # include <assert.h>
40342 #endif
40343
40344 #undef $ac_func
40345
40346 /* Override any GCC internal prototype to avoid an error.
40347    Use char because int might match the return type of a GCC
40348    builtin and then its argument prototype would still apply.  */
40349 #ifdef __cplusplus
40350 extern "C"
40351 #endif
40352 char $ac_func ();
40353 /* The GNU C library defines this for functions which it implements
40354     to always fail with ENOSYS.  Some functions are actually named
40355     something starting with __ and the normal name is an alias.  */
40356 #if defined __stub_$ac_func || defined __stub___$ac_func
40357 choke me
40358 #endif
40359
40360 int
40361 main ()
40362 {
40363 return $ac_func ();
40364   ;
40365   return 0;
40366 }
40367 _ACEOF
40368 rm -f conftest.$ac_objext conftest$ac_exeext
40369 if { (ac_try="$ac_link"
40370 case "(($ac_try" in
40371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40372   *) ac_try_echo=$ac_try;;
40373 esac
40374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40375   (eval "$ac_link") 2>conftest.er1
40376   ac_status=$?
40377   grep -v '^ *+' conftest.er1 >conftest.err
40378   rm -f conftest.er1
40379   cat conftest.err >&5
40380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40381   (exit $ac_status); } && {
40382          test -z "$ac_c_werror_flag" ||
40383          test ! -s conftest.err
40384        } && test -s conftest$ac_exeext &&
40385        $as_test_x conftest$ac_exeext; then
40386   eval "$as_ac_var=yes"
40387 else
40388   echo "$as_me: failed program was:" >&5
40389 sed 's/^/| /' conftest.$ac_ext >&5
40390
40391         eval "$as_ac_var=no"
40392 fi
40393
40394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40395       conftest$ac_exeext conftest.$ac_ext
40396 fi
40397 ac_res=`eval echo '${'$as_ac_var'}'`
40398                { echo "$as_me:$LINENO: result: $ac_res" >&5
40399 echo "${ECHO_T}$ac_res" >&6; }
40400 if test `eval echo '${'$as_ac_var'}'` = yes; then
40401   cat >>confdefs.h <<_ACEOF
40402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40403 _ACEOF
40404
40405 fi
40406 done
40407
40408
40409     if test "$ac_cv_func_sigaction" = "no"; then
40410         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
40411 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
40412         wxUSE_ON_FATAL_EXCEPTION=no
40413     fi
40414
40415     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
40416       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
40417 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
40418 if test "${wx_cv_type_sa_handler+set}" = set; then
40419   echo $ECHO_N "(cached) $ECHO_C" >&6
40420 else
40421
40422                 ac_ext=cpp
40423 ac_cpp='$CXXCPP $CPPFLAGS'
40424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40427
40428         cat >conftest.$ac_ext <<_ACEOF
40429 /* confdefs.h.  */
40430 _ACEOF
40431 cat confdefs.h >>conftest.$ac_ext
40432 cat >>conftest.$ac_ext <<_ACEOF
40433 /* end confdefs.h.  */
40434 #include <signal.h>
40435 int
40436 main ()
40437 {
40438
40439                         extern void testSigHandler(int);
40440
40441                         struct sigaction sa;
40442                         sa.sa_handler = testSigHandler;
40443
40444   ;
40445   return 0;
40446 }
40447 _ACEOF
40448 rm -f conftest.$ac_objext
40449 if { (ac_try="$ac_compile"
40450 case "(($ac_try" in
40451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40452   *) ac_try_echo=$ac_try;;
40453 esac
40454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40455   (eval "$ac_compile") 2>conftest.er1
40456   ac_status=$?
40457   grep -v '^ *+' conftest.er1 >conftest.err
40458   rm -f conftest.er1
40459   cat conftest.err >&5
40460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40461   (exit $ac_status); } && {
40462          test -z "$ac_cxx_werror_flag" ||
40463          test ! -s conftest.err
40464        } && test -s conftest.$ac_objext; then
40465
40466                         wx_cv_type_sa_handler=int
40467
40468 else
40469   echo "$as_me: failed program was:" >&5
40470 sed 's/^/| /' conftest.$ac_ext >&5
40471
40472
40473                         wx_cv_type_sa_handler=void
40474
40475 fi
40476
40477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40478         ac_ext=c
40479 ac_cpp='$CPP $CPPFLAGS'
40480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40483
40484
40485 fi
40486 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
40487 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
40488
40489       cat >>confdefs.h <<_ACEOF
40490 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
40491 _ACEOF
40492
40493     fi
40494 fi
40495
40496 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
40497     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
40498 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
40499 if test "${wx_cv_func_backtrace+set}" = set; then
40500   echo $ECHO_N "(cached) $ECHO_C" >&6
40501 else
40502
40503             ac_ext=cpp
40504 ac_cpp='$CXXCPP $CPPFLAGS'
40505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40508
40509             cat >conftest.$ac_ext <<_ACEOF
40510 /* confdefs.h.  */
40511 _ACEOF
40512 cat confdefs.h >>conftest.$ac_ext
40513 cat >>conftest.$ac_ext <<_ACEOF
40514 /* end confdefs.h.  */
40515 #include <execinfo.h>
40516 int
40517 main ()
40518 {
40519
40520                     void *trace[1];
40521                     char **messages;
40522
40523                     backtrace(trace, 1);
40524                     messages = backtrace_symbols(trace, 1);
40525
40526   ;
40527   return 0;
40528 }
40529 _ACEOF
40530 rm -f conftest.$ac_objext
40531 if { (ac_try="$ac_compile"
40532 case "(($ac_try" in
40533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40534   *) ac_try_echo=$ac_try;;
40535 esac
40536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40537   (eval "$ac_compile") 2>conftest.er1
40538   ac_status=$?
40539   grep -v '^ *+' conftest.er1 >conftest.err
40540   rm -f conftest.er1
40541   cat conftest.err >&5
40542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40543   (exit $ac_status); } && {
40544          test -z "$ac_cxx_werror_flag" ||
40545          test ! -s conftest.err
40546        } && test -s conftest.$ac_objext; then
40547   wx_cv_func_backtrace=yes
40548 else
40549   echo "$as_me: failed program was:" >&5
40550 sed 's/^/| /' conftest.$ac_ext >&5
40551
40552         wx_cv_func_backtrace=no
40553
40554 fi
40555
40556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40557             ac_ext=c
40558 ac_cpp='$CPP $CPPFLAGS'
40559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40562
40563
40564
40565 fi
40566 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
40567 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
40568
40569
40570     if test "$wx_cv_func_backtrace" = "no"; then
40571         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
40572 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
40573         wxUSE_STACKWALKER=no
40574     else
40575         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
40576 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
40577 if test "${wx_cv_func_cxa_demangle+set}" = set; then
40578   echo $ECHO_N "(cached) $ECHO_C" >&6
40579 else
40580
40581                 ac_ext=cpp
40582 ac_cpp='$CXXCPP $CPPFLAGS'
40583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40586
40587                 cat >conftest.$ac_ext <<_ACEOF
40588 /* confdefs.h.  */
40589 _ACEOF
40590 cat confdefs.h >>conftest.$ac_ext
40591 cat >>conftest.$ac_ext <<_ACEOF
40592 /* end confdefs.h.  */
40593 #include <cxxabi.h>
40594 int
40595 main ()
40596 {
40597
40598                         int rc;
40599                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
40600
40601   ;
40602   return 0;
40603 }
40604 _ACEOF
40605 rm -f conftest.$ac_objext conftest$ac_exeext
40606 if { (ac_try="$ac_link"
40607 case "(($ac_try" in
40608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40609   *) ac_try_echo=$ac_try;;
40610 esac
40611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40612   (eval "$ac_link") 2>conftest.er1
40613   ac_status=$?
40614   grep -v '^ *+' conftest.er1 >conftest.err
40615   rm -f conftest.er1
40616   cat conftest.err >&5
40617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618   (exit $ac_status); } && {
40619          test -z "$ac_cxx_werror_flag" ||
40620          test ! -s conftest.err
40621        } && test -s conftest$ac_exeext &&
40622        $as_test_x conftest$ac_exeext; then
40623   wx_cv_func_cxa_demangle=yes
40624 else
40625   echo "$as_me: failed program was:" >&5
40626 sed 's/^/| /' conftest.$ac_ext >&5
40627
40628         wx_cv_func_cxa_demangle=no
40629
40630 fi
40631
40632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40633       conftest$ac_exeext conftest.$ac_ext
40634                 ac_ext=c
40635 ac_cpp='$CPP $CPPFLAGS'
40636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40639
40640
40641
40642 fi
40643 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
40644 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
40645
40646         if test "$wx_cv_func_cxa_demangle" = "yes"; then
40647             cat >>confdefs.h <<\_ACEOF
40648 #define HAVE_CXA_DEMANGLE 1
40649 _ACEOF
40650
40651         fi
40652     fi
40653 fi
40654
40655 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
40656     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
40657 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
40658     wxUSE_STACKWALKER=no
40659 fi
40660
40661
40662
40663
40664 for ac_func in mkstemp mktemp
40665 do
40666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40670   echo $ECHO_N "(cached) $ECHO_C" >&6
40671 else
40672   cat >conftest.$ac_ext <<_ACEOF
40673 /* confdefs.h.  */
40674 _ACEOF
40675 cat confdefs.h >>conftest.$ac_ext
40676 cat >>conftest.$ac_ext <<_ACEOF
40677 /* end confdefs.h.  */
40678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40680 #define $ac_func innocuous_$ac_func
40681
40682 /* System header to define __stub macros and hopefully few prototypes,
40683     which can conflict with char $ac_func (); below.
40684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40685     <limits.h> exists even on freestanding compilers.  */
40686
40687 #ifdef __STDC__
40688 # include <limits.h>
40689 #else
40690 # include <assert.h>
40691 #endif
40692
40693 #undef $ac_func
40694
40695 /* Override any GCC internal prototype to avoid an error.
40696    Use char because int might match the return type of a GCC
40697    builtin and then its argument prototype would still apply.  */
40698 #ifdef __cplusplus
40699 extern "C"
40700 #endif
40701 char $ac_func ();
40702 /* The GNU C library defines this for functions which it implements
40703     to always fail with ENOSYS.  Some functions are actually named
40704     something starting with __ and the normal name is an alias.  */
40705 #if defined __stub_$ac_func || defined __stub___$ac_func
40706 choke me
40707 #endif
40708
40709 int
40710 main ()
40711 {
40712 return $ac_func ();
40713   ;
40714   return 0;
40715 }
40716 _ACEOF
40717 rm -f conftest.$ac_objext conftest$ac_exeext
40718 if { (ac_try="$ac_link"
40719 case "(($ac_try" in
40720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40721   *) ac_try_echo=$ac_try;;
40722 esac
40723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40724   (eval "$ac_link") 2>conftest.er1
40725   ac_status=$?
40726   grep -v '^ *+' conftest.er1 >conftest.err
40727   rm -f conftest.er1
40728   cat conftest.err >&5
40729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730   (exit $ac_status); } && {
40731          test -z "$ac_c_werror_flag" ||
40732          test ! -s conftest.err
40733        } && test -s conftest$ac_exeext &&
40734        $as_test_x conftest$ac_exeext; then
40735   eval "$as_ac_var=yes"
40736 else
40737   echo "$as_me: failed program was:" >&5
40738 sed 's/^/| /' conftest.$ac_ext >&5
40739
40740         eval "$as_ac_var=no"
40741 fi
40742
40743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40744       conftest$ac_exeext conftest.$ac_ext
40745 fi
40746 ac_res=`eval echo '${'$as_ac_var'}'`
40747                { echo "$as_me:$LINENO: result: $ac_res" >&5
40748 echo "${ECHO_T}$ac_res" >&6; }
40749 if test `eval echo '${'$as_ac_var'}'` = yes; then
40750   cat >>confdefs.h <<_ACEOF
40751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40752 _ACEOF
40753  break
40754 fi
40755 done
40756
40757
40758 { echo "$as_me:$LINENO: checking for statfs" >&5
40759 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
40760 if test "${wx_cv_func_statfs+set}" = set; then
40761   echo $ECHO_N "(cached) $ECHO_C" >&6
40762 else
40763   cat >conftest.$ac_ext <<_ACEOF
40764 /* confdefs.h.  */
40765 _ACEOF
40766 cat confdefs.h >>conftest.$ac_ext
40767 cat >>conftest.$ac_ext <<_ACEOF
40768 /* end confdefs.h.  */
40769
40770              #if defined(__BSD__)
40771              #include <sys/param.h>
40772              #include <sys/mount.h>
40773              #else
40774              #include <sys/vfs.h>
40775              #endif
40776
40777 int
40778 main ()
40779 {
40780
40781              long l;
40782              struct statfs fs;
40783              statfs("/", &fs);
40784              l = fs.f_bsize;
40785              l += fs.f_blocks;
40786              l += fs.f_bavail;
40787
40788   ;
40789   return 0;
40790 }
40791 _ACEOF
40792 rm -f conftest.$ac_objext
40793 if { (ac_try="$ac_compile"
40794 case "(($ac_try" in
40795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40796   *) ac_try_echo=$ac_try;;
40797 esac
40798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40799   (eval "$ac_compile") 2>conftest.er1
40800   ac_status=$?
40801   grep -v '^ *+' conftest.er1 >conftest.err
40802   rm -f conftest.er1
40803   cat conftest.err >&5
40804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805   (exit $ac_status); } && {
40806          test -z "$ac_c_werror_flag" ||
40807          test ! -s conftest.err
40808        } && test -s conftest.$ac_objext; then
40809   wx_cv_func_statfs=yes
40810 else
40811   echo "$as_me: failed program was:" >&5
40812 sed 's/^/| /' conftest.$ac_ext >&5
40813
40814         wx_cv_func_statfs=no
40815
40816 fi
40817
40818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40819
40820 fi
40821 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
40822 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
40823
40824 if test "$wx_cv_func_statfs" = "yes"; then
40825         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
40826 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
40827 if test "${wx_cv_func_statfs_decl+set}" = set; then
40828   echo $ECHO_N "(cached) $ECHO_C" >&6
40829 else
40830   ac_ext=cpp
40831 ac_cpp='$CXXCPP $CPPFLAGS'
40832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40835
40836         cat >conftest.$ac_ext <<_ACEOF
40837 /* confdefs.h.  */
40838 _ACEOF
40839 cat confdefs.h >>conftest.$ac_ext
40840 cat >>conftest.$ac_ext <<_ACEOF
40841 /* end confdefs.h.  */
40842
40843                  #if defined(__BSD__)
40844                  #include <sys/param.h>
40845                  #include <sys/mount.h>
40846                  #else
40847                  #include <sys/vfs.h>
40848                  #endif
40849
40850 int
40851 main ()
40852 {
40853
40854                 struct statfs fs;
40855                 statfs("", &fs);
40856
40857   ;
40858   return 0;
40859 }
40860 _ACEOF
40861 rm -f conftest.$ac_objext
40862 if { (ac_try="$ac_compile"
40863 case "(($ac_try" in
40864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40865   *) ac_try_echo=$ac_try;;
40866 esac
40867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40868   (eval "$ac_compile") 2>conftest.er1
40869   ac_status=$?
40870   grep -v '^ *+' conftest.er1 >conftest.err
40871   rm -f conftest.er1
40872   cat conftest.err >&5
40873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874   (exit $ac_status); } && {
40875          test -z "$ac_cxx_werror_flag" ||
40876          test ! -s conftest.err
40877        } && test -s conftest.$ac_objext; then
40878   wx_cv_func_statfs_decl=yes
40879 else
40880   echo "$as_me: failed program was:" >&5
40881 sed 's/^/| /' conftest.$ac_ext >&5
40882
40883         wx_cv_func_statfs_decl=no
40884
40885 fi
40886
40887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40888         ac_ext=c
40889 ac_cpp='$CPP $CPPFLAGS'
40890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40893
40894
40895 fi
40896 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
40897 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
40898
40899     if test "$wx_cv_func_statfs_decl" = "yes"; then
40900         cat >>confdefs.h <<\_ACEOF
40901 #define HAVE_STATFS_DECL 1
40902 _ACEOF
40903
40904     fi
40905
40906     wx_cv_type_statvfs_t="struct statfs"
40907     cat >>confdefs.h <<\_ACEOF
40908 #define HAVE_STATFS 1
40909 _ACEOF
40910
40911 else
40912     { echo "$as_me:$LINENO: checking for statvfs" >&5
40913 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
40914 if test "${wx_cv_func_statvfs+set}" = set; then
40915   echo $ECHO_N "(cached) $ECHO_C" >&6
40916 else
40917   cat >conftest.$ac_ext <<_ACEOF
40918 /* confdefs.h.  */
40919 _ACEOF
40920 cat confdefs.h >>conftest.$ac_ext
40921 cat >>conftest.$ac_ext <<_ACEOF
40922 /* end confdefs.h.  */
40923
40924                 #include <stddef.h>
40925                 #include <sys/statvfs.h>
40926
40927 int
40928 main ()
40929 {
40930
40931                 statvfs("/", NULL);
40932
40933   ;
40934   return 0;
40935 }
40936 _ACEOF
40937 rm -f conftest.$ac_objext
40938 if { (ac_try="$ac_compile"
40939 case "(($ac_try" in
40940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40941   *) ac_try_echo=$ac_try;;
40942 esac
40943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40944   (eval "$ac_compile") 2>conftest.er1
40945   ac_status=$?
40946   grep -v '^ *+' conftest.er1 >conftest.err
40947   rm -f conftest.er1
40948   cat conftest.err >&5
40949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40950   (exit $ac_status); } && {
40951          test -z "$ac_c_werror_flag" ||
40952          test ! -s conftest.err
40953        } && test -s conftest.$ac_objext; then
40954   wx_cv_func_statvfs=yes
40955 else
40956   echo "$as_me: failed program was:" >&5
40957 sed 's/^/| /' conftest.$ac_ext >&5
40958
40959         wx_cv_func_statvfs=no
40960
40961 fi
40962
40963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40964
40965 fi
40966 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
40967 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
40968
40969     if test "$wx_cv_func_statvfs" = "yes"; then
40970                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
40971 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
40972 if test "${wx_cv_type_statvfs_t+set}" = set; then
40973   echo $ECHO_N "(cached) $ECHO_C" >&6
40974 else
40975   ac_ext=cpp
40976 ac_cpp='$CXXCPP $CPPFLAGS'
40977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40980
40981             cat >conftest.$ac_ext <<_ACEOF
40982 /* confdefs.h.  */
40983 _ACEOF
40984 cat confdefs.h >>conftest.$ac_ext
40985 cat >>conftest.$ac_ext <<_ACEOF
40986 /* end confdefs.h.  */
40987
40988                     #include <sys/statvfs.h>
40989
40990 int
40991 main ()
40992 {
40993
40994                     long l;
40995                     statvfs_t fs;
40996                     statvfs("/", &fs);
40997                     l = fs.f_bsize;
40998                     l += fs.f_blocks;
40999                     l += fs.f_bavail;
41000
41001   ;
41002   return 0;
41003 }
41004 _ACEOF
41005 rm -f conftest.$ac_objext
41006 if { (ac_try="$ac_compile"
41007 case "(($ac_try" in
41008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41009   *) ac_try_echo=$ac_try;;
41010 esac
41011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41012   (eval "$ac_compile") 2>conftest.er1
41013   ac_status=$?
41014   grep -v '^ *+' conftest.er1 >conftest.err
41015   rm -f conftest.er1
41016   cat conftest.err >&5
41017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41018   (exit $ac_status); } && {
41019          test -z "$ac_cxx_werror_flag" ||
41020          test ! -s conftest.err
41021        } && test -s conftest.$ac_objext; then
41022   wx_cv_type_statvfs_t=statvfs_t
41023 else
41024   echo "$as_me: failed program was:" >&5
41025 sed 's/^/| /' conftest.$ac_ext >&5
41026
41027
41028                     cat >conftest.$ac_ext <<_ACEOF
41029 /* confdefs.h.  */
41030 _ACEOF
41031 cat confdefs.h >>conftest.$ac_ext
41032 cat >>conftest.$ac_ext <<_ACEOF
41033 /* end confdefs.h.  */
41034
41035                             #include <sys/statvfs.h>
41036
41037 int
41038 main ()
41039 {
41040
41041                             long l;
41042                             struct statvfs fs;
41043                             statvfs("/", &fs);
41044                             l = fs.f_bsize;
41045                             l += fs.f_blocks;
41046                             l += fs.f_bavail;
41047
41048   ;
41049   return 0;
41050 }
41051 _ACEOF
41052 rm -f conftest.$ac_objext
41053 if { (ac_try="$ac_compile"
41054 case "(($ac_try" in
41055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41056   *) ac_try_echo=$ac_try;;
41057 esac
41058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41059   (eval "$ac_compile") 2>conftest.er1
41060   ac_status=$?
41061   grep -v '^ *+' conftest.er1 >conftest.err
41062   rm -f conftest.er1
41063   cat conftest.err >&5
41064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41065   (exit $ac_status); } && {
41066          test -z "$ac_cxx_werror_flag" ||
41067          test ! -s conftest.err
41068        } && test -s conftest.$ac_objext; then
41069   wx_cv_type_statvfs_t="struct statvfs"
41070 else
41071   echo "$as_me: failed program was:" >&5
41072 sed 's/^/| /' conftest.$ac_ext >&5
41073
41074         wx_cv_type_statvfs_t="unknown"
41075
41076 fi
41077
41078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41079
41080
41081 fi
41082
41083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41084             ac_ext=c
41085 ac_cpp='$CPP $CPPFLAGS'
41086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41089
41090
41091 fi
41092 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
41093 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
41094
41095         if test "$wx_cv_type_statvfs_t" != "unknown"; then
41096             cat >>confdefs.h <<\_ACEOF
41097 #define HAVE_STATVFS 1
41098 _ACEOF
41099
41100         fi
41101     else
41102                 wx_cv_type_statvfs_t="unknown"
41103     fi
41104 fi
41105
41106 if test "$wx_cv_type_statvfs_t" != "unknown"; then
41107     cat >>confdefs.h <<_ACEOF
41108 #define WX_STATFS_T $wx_cv_type_statvfs_t
41109 _ACEOF
41110
41111 else
41112     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
41113 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
41114 fi
41115
41116 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41117
41118
41119 for ac_func in fcntl flock
41120 do
41121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41125   echo $ECHO_N "(cached) $ECHO_C" >&6
41126 else
41127   cat >conftest.$ac_ext <<_ACEOF
41128 /* confdefs.h.  */
41129 _ACEOF
41130 cat confdefs.h >>conftest.$ac_ext
41131 cat >>conftest.$ac_ext <<_ACEOF
41132 /* end confdefs.h.  */
41133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41135 #define $ac_func innocuous_$ac_func
41136
41137 /* System header to define __stub macros and hopefully few prototypes,
41138     which can conflict with char $ac_func (); below.
41139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41140     <limits.h> exists even on freestanding compilers.  */
41141
41142 #ifdef __STDC__
41143 # include <limits.h>
41144 #else
41145 # include <assert.h>
41146 #endif
41147
41148 #undef $ac_func
41149
41150 /* Override any GCC internal prototype to avoid an error.
41151    Use char because int might match the return type of a GCC
41152    builtin and then its argument prototype would still apply.  */
41153 #ifdef __cplusplus
41154 extern "C"
41155 #endif
41156 char $ac_func ();
41157 /* The GNU C library defines this for functions which it implements
41158     to always fail with ENOSYS.  Some functions are actually named
41159     something starting with __ and the normal name is an alias.  */
41160 #if defined __stub_$ac_func || defined __stub___$ac_func
41161 choke me
41162 #endif
41163
41164 int
41165 main ()
41166 {
41167 return $ac_func ();
41168   ;
41169   return 0;
41170 }
41171 _ACEOF
41172 rm -f conftest.$ac_objext conftest$ac_exeext
41173 if { (ac_try="$ac_link"
41174 case "(($ac_try" in
41175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41176   *) ac_try_echo=$ac_try;;
41177 esac
41178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41179   (eval "$ac_link") 2>conftest.er1
41180   ac_status=$?
41181   grep -v '^ *+' conftest.er1 >conftest.err
41182   rm -f conftest.er1
41183   cat conftest.err >&5
41184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41185   (exit $ac_status); } && {
41186          test -z "$ac_c_werror_flag" ||
41187          test ! -s conftest.err
41188        } && test -s conftest$ac_exeext &&
41189        $as_test_x conftest$ac_exeext; then
41190   eval "$as_ac_var=yes"
41191 else
41192   echo "$as_me: failed program was:" >&5
41193 sed 's/^/| /' conftest.$ac_ext >&5
41194
41195         eval "$as_ac_var=no"
41196 fi
41197
41198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41199       conftest$ac_exeext conftest.$ac_ext
41200 fi
41201 ac_res=`eval echo '${'$as_ac_var'}'`
41202                { echo "$as_me:$LINENO: result: $ac_res" >&5
41203 echo "${ECHO_T}$ac_res" >&6; }
41204 if test `eval echo '${'$as_ac_var'}'` = yes; then
41205   cat >>confdefs.h <<_ACEOF
41206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41207 _ACEOF
41208  break
41209 fi
41210 done
41211
41212
41213     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
41214         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
41215 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
41216         wxUSE_SNGLINST_CHECKER=no
41217     fi
41218 fi
41219
41220
41221
41222 for ac_func in setenv putenv
41223 do
41224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41228   echo $ECHO_N "(cached) $ECHO_C" >&6
41229 else
41230   cat >conftest.$ac_ext <<_ACEOF
41231 /* confdefs.h.  */
41232 _ACEOF
41233 cat confdefs.h >>conftest.$ac_ext
41234 cat >>conftest.$ac_ext <<_ACEOF
41235 /* end confdefs.h.  */
41236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41238 #define $ac_func innocuous_$ac_func
41239
41240 /* System header to define __stub macros and hopefully few prototypes,
41241     which can conflict with char $ac_func (); below.
41242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41243     <limits.h> exists even on freestanding compilers.  */
41244
41245 #ifdef __STDC__
41246 # include <limits.h>
41247 #else
41248 # include <assert.h>
41249 #endif
41250
41251 #undef $ac_func
41252
41253 /* Override any GCC internal prototype to avoid an error.
41254    Use char because int might match the return type of a GCC
41255    builtin and then its argument prototype would still apply.  */
41256 #ifdef __cplusplus
41257 extern "C"
41258 #endif
41259 char $ac_func ();
41260 /* The GNU C library defines this for functions which it implements
41261     to always fail with ENOSYS.  Some functions are actually named
41262     something starting with __ and the normal name is an alias.  */
41263 #if defined __stub_$ac_func || defined __stub___$ac_func
41264 choke me
41265 #endif
41266
41267 int
41268 main ()
41269 {
41270 return $ac_func ();
41271   ;
41272   return 0;
41273 }
41274 _ACEOF
41275 rm -f conftest.$ac_objext conftest$ac_exeext
41276 if { (ac_try="$ac_link"
41277 case "(($ac_try" in
41278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41279   *) ac_try_echo=$ac_try;;
41280 esac
41281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41282   (eval "$ac_link") 2>conftest.er1
41283   ac_status=$?
41284   grep -v '^ *+' conftest.er1 >conftest.err
41285   rm -f conftest.er1
41286   cat conftest.err >&5
41287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41288   (exit $ac_status); } && {
41289          test -z "$ac_c_werror_flag" ||
41290          test ! -s conftest.err
41291        } && test -s conftest$ac_exeext &&
41292        $as_test_x conftest$ac_exeext; then
41293   eval "$as_ac_var=yes"
41294 else
41295   echo "$as_me: failed program was:" >&5
41296 sed 's/^/| /' conftest.$ac_ext >&5
41297
41298         eval "$as_ac_var=no"
41299 fi
41300
41301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41302       conftest$ac_exeext conftest.$ac_ext
41303 fi
41304 ac_res=`eval echo '${'$as_ac_var'}'`
41305                { echo "$as_me:$LINENO: result: $ac_res" >&5
41306 echo "${ECHO_T}$ac_res" >&6; }
41307 if test `eval echo '${'$as_ac_var'}'` = yes; then
41308   cat >>confdefs.h <<_ACEOF
41309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41310 _ACEOF
41311  break
41312 fi
41313 done
41314
41315 if test "$ac_cv_func_setenv" = "yes"; then
41316
41317 for ac_func in unsetenv
41318 do
41319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41323   echo $ECHO_N "(cached) $ECHO_C" >&6
41324 else
41325   cat >conftest.$ac_ext <<_ACEOF
41326 /* confdefs.h.  */
41327 _ACEOF
41328 cat confdefs.h >>conftest.$ac_ext
41329 cat >>conftest.$ac_ext <<_ACEOF
41330 /* end confdefs.h.  */
41331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41333 #define $ac_func innocuous_$ac_func
41334
41335 /* System header to define __stub macros and hopefully few prototypes,
41336     which can conflict with char $ac_func (); below.
41337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41338     <limits.h> exists even on freestanding compilers.  */
41339
41340 #ifdef __STDC__
41341 # include <limits.h>
41342 #else
41343 # include <assert.h>
41344 #endif
41345
41346 #undef $ac_func
41347
41348 /* Override any GCC internal prototype to avoid an error.
41349    Use char because int might match the return type of a GCC
41350    builtin and then its argument prototype would still apply.  */
41351 #ifdef __cplusplus
41352 extern "C"
41353 #endif
41354 char $ac_func ();
41355 /* The GNU C library defines this for functions which it implements
41356     to always fail with ENOSYS.  Some functions are actually named
41357     something starting with __ and the normal name is an alias.  */
41358 #if defined __stub_$ac_func || defined __stub___$ac_func
41359 choke me
41360 #endif
41361
41362 int
41363 main ()
41364 {
41365 return $ac_func ();
41366   ;
41367   return 0;
41368 }
41369 _ACEOF
41370 rm -f conftest.$ac_objext conftest$ac_exeext
41371 if { (ac_try="$ac_link"
41372 case "(($ac_try" in
41373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41374   *) ac_try_echo=$ac_try;;
41375 esac
41376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41377   (eval "$ac_link") 2>conftest.er1
41378   ac_status=$?
41379   grep -v '^ *+' conftest.er1 >conftest.err
41380   rm -f conftest.er1
41381   cat conftest.err >&5
41382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41383   (exit $ac_status); } && {
41384          test -z "$ac_c_werror_flag" ||
41385          test ! -s conftest.err
41386        } && test -s conftest$ac_exeext &&
41387        $as_test_x conftest$ac_exeext; then
41388   eval "$as_ac_var=yes"
41389 else
41390   echo "$as_me: failed program was:" >&5
41391 sed 's/^/| /' conftest.$ac_ext >&5
41392
41393         eval "$as_ac_var=no"
41394 fi
41395
41396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41397       conftest$ac_exeext conftest.$ac_ext
41398 fi
41399 ac_res=`eval echo '${'$as_ac_var'}'`
41400                { echo "$as_me:$LINENO: result: $ac_res" >&5
41401 echo "${ECHO_T}$ac_res" >&6; }
41402 if test `eval echo '${'$as_ac_var'}'` = yes; then
41403   cat >>confdefs.h <<_ACEOF
41404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41405 _ACEOF
41406
41407 fi
41408 done
41409
41410 fi
41411
41412 HAVE_SOME_SLEEP_FUNC=0
41413 if test "$USE_BEOS" = 1; then
41414             cat >>confdefs.h <<\_ACEOF
41415 #define HAVE_SLEEP 1
41416 _ACEOF
41417
41418     HAVE_SOME_SLEEP_FUNC=1
41419 fi
41420
41421 if test "$USE_DARWIN" = 1; then
41422             cat >>confdefs.h <<\_ACEOF
41423 #define HAVE_USLEEP 1
41424 _ACEOF
41425
41426     HAVE_SOME_SLEEP_FUNC=1
41427 fi
41428
41429 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
41430         POSIX4_LINK=
41431
41432 for ac_func in nanosleep
41433 do
41434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41438   echo $ECHO_N "(cached) $ECHO_C" >&6
41439 else
41440   cat >conftest.$ac_ext <<_ACEOF
41441 /* confdefs.h.  */
41442 _ACEOF
41443 cat confdefs.h >>conftest.$ac_ext
41444 cat >>conftest.$ac_ext <<_ACEOF
41445 /* end confdefs.h.  */
41446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41448 #define $ac_func innocuous_$ac_func
41449
41450 /* System header to define __stub macros and hopefully few prototypes,
41451     which can conflict with char $ac_func (); below.
41452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41453     <limits.h> exists even on freestanding compilers.  */
41454
41455 #ifdef __STDC__
41456 # include <limits.h>
41457 #else
41458 # include <assert.h>
41459 #endif
41460
41461 #undef $ac_func
41462
41463 /* Override any GCC internal prototype to avoid an error.
41464    Use char because int might match the return type of a GCC
41465    builtin and then its argument prototype would still apply.  */
41466 #ifdef __cplusplus
41467 extern "C"
41468 #endif
41469 char $ac_func ();
41470 /* The GNU C library defines this for functions which it implements
41471     to always fail with ENOSYS.  Some functions are actually named
41472     something starting with __ and the normal name is an alias.  */
41473 #if defined __stub_$ac_func || defined __stub___$ac_func
41474 choke me
41475 #endif
41476
41477 int
41478 main ()
41479 {
41480 return $ac_func ();
41481   ;
41482   return 0;
41483 }
41484 _ACEOF
41485 rm -f conftest.$ac_objext conftest$ac_exeext
41486 if { (ac_try="$ac_link"
41487 case "(($ac_try" in
41488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41489   *) ac_try_echo=$ac_try;;
41490 esac
41491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41492   (eval "$ac_link") 2>conftest.er1
41493   ac_status=$?
41494   grep -v '^ *+' conftest.er1 >conftest.err
41495   rm -f conftest.er1
41496   cat conftest.err >&5
41497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498   (exit $ac_status); } && {
41499          test -z "$ac_c_werror_flag" ||
41500          test ! -s conftest.err
41501        } && test -s conftest$ac_exeext &&
41502        $as_test_x conftest$ac_exeext; then
41503   eval "$as_ac_var=yes"
41504 else
41505   echo "$as_me: failed program was:" >&5
41506 sed 's/^/| /' conftest.$ac_ext >&5
41507
41508         eval "$as_ac_var=no"
41509 fi
41510
41511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41512       conftest$ac_exeext conftest.$ac_ext
41513 fi
41514 ac_res=`eval echo '${'$as_ac_var'}'`
41515                { echo "$as_me:$LINENO: result: $ac_res" >&5
41516 echo "${ECHO_T}$ac_res" >&6; }
41517 if test `eval echo '${'$as_ac_var'}'` = yes; then
41518   cat >>confdefs.h <<_ACEOF
41519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41520 _ACEOF
41521  cat >>confdefs.h <<\_ACEOF
41522 #define HAVE_NANOSLEEP 1
41523 _ACEOF
41524
41525 else
41526
41527             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
41528 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
41529 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
41530   echo $ECHO_N "(cached) $ECHO_C" >&6
41531 else
41532   ac_check_lib_save_LIBS=$LIBS
41533 LIBS="-lposix4  $LIBS"
41534 cat >conftest.$ac_ext <<_ACEOF
41535 /* confdefs.h.  */
41536 _ACEOF
41537 cat confdefs.h >>conftest.$ac_ext
41538 cat >>conftest.$ac_ext <<_ACEOF
41539 /* end confdefs.h.  */
41540
41541 /* Override any GCC internal prototype to avoid an error.
41542    Use char because int might match the return type of a GCC
41543    builtin and then its argument prototype would still apply.  */
41544 #ifdef __cplusplus
41545 extern "C"
41546 #endif
41547 char nanosleep ();
41548 int
41549 main ()
41550 {
41551 return nanosleep ();
41552   ;
41553   return 0;
41554 }
41555 _ACEOF
41556 rm -f conftest.$ac_objext conftest$ac_exeext
41557 if { (ac_try="$ac_link"
41558 case "(($ac_try" in
41559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41560   *) ac_try_echo=$ac_try;;
41561 esac
41562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41563   (eval "$ac_link") 2>conftest.er1
41564   ac_status=$?
41565   grep -v '^ *+' conftest.er1 >conftest.err
41566   rm -f conftest.er1
41567   cat conftest.err >&5
41568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41569   (exit $ac_status); } && {
41570          test -z "$ac_c_werror_flag" ||
41571          test ! -s conftest.err
41572        } && test -s conftest$ac_exeext &&
41573        $as_test_x conftest$ac_exeext; then
41574   ac_cv_lib_posix4_nanosleep=yes
41575 else
41576   echo "$as_me: failed program was:" >&5
41577 sed 's/^/| /' conftest.$ac_ext >&5
41578
41579         ac_cv_lib_posix4_nanosleep=no
41580 fi
41581
41582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41583       conftest$ac_exeext conftest.$ac_ext
41584 LIBS=$ac_check_lib_save_LIBS
41585 fi
41586 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
41587 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
41588 if test $ac_cv_lib_posix4_nanosleep = yes; then
41589
41590                     cat >>confdefs.h <<\_ACEOF
41591 #define HAVE_NANOSLEEP 1
41592 _ACEOF
41593
41594                     POSIX4_LINK=" -lposix4"
41595
41596 else
41597
41598
41599   for wx_func in usleep
41600   do
41601     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41602 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41603 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41604   echo $ECHO_N "(cached) $ECHO_C" >&6
41605 else
41606
41607         cat >conftest.$ac_ext <<_ACEOF
41608
41609             /* confdefs.h.  */
41610 _ACEOF
41611 cat confdefs.h >>conftest.$ac_ext
41612 cat >>conftest.$ac_ext <<_ACEOF
41613 /* end confdefs.h.  */
41614
41615
41616                 $ac_includes_default
41617
41618 int
41619 main ()
41620 {
41621
41622                 #ifndef $wx_func
41623                   &$wx_func;
41624                 #endif
41625
41626
41627   ;
41628   return 0;
41629 }
41630
41631 _ACEOF
41632 rm -f conftest.$ac_objext conftest$ac_exeext
41633 if { (ac_try="$ac_link"
41634 case "(($ac_try" in
41635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41636   *) ac_try_echo=$ac_try;;
41637 esac
41638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41639   (eval "$ac_link") 2>conftest.er1
41640   ac_status=$?
41641   grep -v '^ *+' conftest.er1 >conftest.err
41642   rm -f conftest.er1
41643   cat conftest.err >&5
41644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41645   (exit $ac_status); } && {
41646          test -z "$ac_c_werror_flag" ||
41647          test ! -s conftest.err
41648        } && test -s conftest$ac_exeext &&
41649        $as_test_x conftest$ac_exeext; then
41650   eval wx_cv_func_$wx_func=yes
41651 else
41652   echo "$as_me: failed program was:" >&5
41653 sed 's/^/| /' conftest.$ac_ext >&5
41654
41655         eval wx_cv_func_$wx_func=no
41656 fi
41657
41658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41659       conftest$ac_exeext conftest.$ac_ext
41660
41661 fi
41662 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41663                { echo "$as_me:$LINENO: result: $ac_res" >&5
41664 echo "${ECHO_T}$ac_res" >&6; }
41665
41666     if eval test \$wx_cv_func_$wx_func = yes
41667     then
41668       cat >>confdefs.h <<_ACEOF
41669 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41670 _ACEOF
41671
41672
41673     else
41674       :
41675       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
41676 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
41677
41678     fi
41679   done
41680
41681
41682
41683 fi
41684
41685
41686
41687 fi
41688 done
41689
41690 fi
41691
41692
41693   for wx_func in uname
41694   do
41695     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41696 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41697 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41698   echo $ECHO_N "(cached) $ECHO_C" >&6
41699 else
41700
41701         cat >conftest.$ac_ext <<_ACEOF
41702
41703             /* confdefs.h.  */
41704 _ACEOF
41705 cat confdefs.h >>conftest.$ac_ext
41706 cat >>conftest.$ac_ext <<_ACEOF
41707 /* end confdefs.h.  */
41708
41709                 #include <sys/utsname.h>
41710                 $ac_includes_default
41711
41712 int
41713 main ()
41714 {
41715
41716                 #ifndef $wx_func
41717                   &$wx_func;
41718                 #endif
41719
41720
41721   ;
41722   return 0;
41723 }
41724
41725 _ACEOF
41726 rm -f conftest.$ac_objext conftest$ac_exeext
41727 if { (ac_try="$ac_link"
41728 case "(($ac_try" in
41729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41730   *) ac_try_echo=$ac_try;;
41731 esac
41732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41733   (eval "$ac_link") 2>conftest.er1
41734   ac_status=$?
41735   grep -v '^ *+' conftest.er1 >conftest.err
41736   rm -f conftest.er1
41737   cat conftest.err >&5
41738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41739   (exit $ac_status); } && {
41740          test -z "$ac_c_werror_flag" ||
41741          test ! -s conftest.err
41742        } && test -s conftest$ac_exeext &&
41743        $as_test_x conftest$ac_exeext; then
41744   eval wx_cv_func_$wx_func=yes
41745 else
41746   echo "$as_me: failed program was:" >&5
41747 sed 's/^/| /' conftest.$ac_ext >&5
41748
41749         eval wx_cv_func_$wx_func=no
41750 fi
41751
41752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41753       conftest$ac_exeext conftest.$ac_ext
41754
41755 fi
41756 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41757                { echo "$as_me:$LINENO: result: $ac_res" >&5
41758 echo "${ECHO_T}$ac_res" >&6; }
41759
41760     if eval test \$wx_cv_func_$wx_func = yes
41761     then
41762       cat >>confdefs.h <<_ACEOF
41763 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41764 _ACEOF
41765
41766
41767     else
41768       :
41769
41770     fi
41771   done
41772
41773 if test "$wx_cv_func_uname" != yes; then
41774
41775   for wx_func in gethostname
41776   do
41777     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41778 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41779 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41780   echo $ECHO_N "(cached) $ECHO_C" >&6
41781 else
41782
41783         cat >conftest.$ac_ext <<_ACEOF
41784
41785             /* confdefs.h.  */
41786 _ACEOF
41787 cat confdefs.h >>conftest.$ac_ext
41788 cat >>conftest.$ac_ext <<_ACEOF
41789 /* end confdefs.h.  */
41790
41791
41792                 $ac_includes_default
41793
41794 int
41795 main ()
41796 {
41797
41798                 #ifndef $wx_func
41799                   &$wx_func;
41800                 #endif
41801
41802
41803   ;
41804   return 0;
41805 }
41806
41807 _ACEOF
41808 rm -f conftest.$ac_objext conftest$ac_exeext
41809 if { (ac_try="$ac_link"
41810 case "(($ac_try" in
41811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41812   *) ac_try_echo=$ac_try;;
41813 esac
41814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41815   (eval "$ac_link") 2>conftest.er1
41816   ac_status=$?
41817   grep -v '^ *+' conftest.er1 >conftest.err
41818   rm -f conftest.er1
41819   cat conftest.err >&5
41820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41821   (exit $ac_status); } && {
41822          test -z "$ac_c_werror_flag" ||
41823          test ! -s conftest.err
41824        } && test -s conftest$ac_exeext &&
41825        $as_test_x conftest$ac_exeext; then
41826   eval wx_cv_func_$wx_func=yes
41827 else
41828   echo "$as_me: failed program was:" >&5
41829 sed 's/^/| /' conftest.$ac_ext >&5
41830
41831         eval wx_cv_func_$wx_func=no
41832 fi
41833
41834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41835       conftest$ac_exeext conftest.$ac_ext
41836
41837 fi
41838 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41839                { echo "$as_me:$LINENO: result: $ac_res" >&5
41840 echo "${ECHO_T}$ac_res" >&6; }
41841
41842     if eval test \$wx_cv_func_$wx_func = yes
41843     then
41844       cat >>confdefs.h <<_ACEOF
41845 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41846 _ACEOF
41847
41848
41849     else
41850       :
41851
41852     fi
41853   done
41854
41855 fi
41856
41857
41858   for wx_func in strtok_r
41859   do
41860     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41861 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41862 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41863   echo $ECHO_N "(cached) $ECHO_C" >&6
41864 else
41865
41866         cat >conftest.$ac_ext <<_ACEOF
41867
41868             /* confdefs.h.  */
41869 _ACEOF
41870 cat confdefs.h >>conftest.$ac_ext
41871 cat >>conftest.$ac_ext <<_ACEOF
41872 /* end confdefs.h.  */
41873
41874                 #define _REENTRANT
41875                 $ac_includes_default
41876
41877 int
41878 main ()
41879 {
41880
41881                 #ifndef $wx_func
41882                   &$wx_func;
41883                 #endif
41884
41885
41886   ;
41887   return 0;
41888 }
41889
41890 _ACEOF
41891 rm -f conftest.$ac_objext conftest$ac_exeext
41892 if { (ac_try="$ac_link"
41893 case "(($ac_try" in
41894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41895   *) ac_try_echo=$ac_try;;
41896 esac
41897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41898   (eval "$ac_link") 2>conftest.er1
41899   ac_status=$?
41900   grep -v '^ *+' conftest.er1 >conftest.err
41901   rm -f conftest.er1
41902   cat conftest.err >&5
41903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41904   (exit $ac_status); } && {
41905          test -z "$ac_c_werror_flag" ||
41906          test ! -s conftest.err
41907        } && test -s conftest$ac_exeext &&
41908        $as_test_x conftest$ac_exeext; then
41909   eval wx_cv_func_$wx_func=yes
41910 else
41911   echo "$as_me: failed program was:" >&5
41912 sed 's/^/| /' conftest.$ac_ext >&5
41913
41914         eval wx_cv_func_$wx_func=no
41915 fi
41916
41917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41918       conftest$ac_exeext conftest.$ac_ext
41919
41920 fi
41921 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41922                { echo "$as_me:$LINENO: result: $ac_res" >&5
41923 echo "${ECHO_T}$ac_res" >&6; }
41924
41925     if eval test \$wx_cv_func_$wx_func = yes
41926     then
41927       cat >>confdefs.h <<_ACEOF
41928 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41929 _ACEOF
41930
41931
41932     else
41933       :
41934
41935     fi
41936   done
41937
41938
41939 INET_LINK=
41940
41941 for ac_func in inet_addr
41942 do
41943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41947   echo $ECHO_N "(cached) $ECHO_C" >&6
41948 else
41949   cat >conftest.$ac_ext <<_ACEOF
41950 /* confdefs.h.  */
41951 _ACEOF
41952 cat confdefs.h >>conftest.$ac_ext
41953 cat >>conftest.$ac_ext <<_ACEOF
41954 /* end confdefs.h.  */
41955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41957 #define $ac_func innocuous_$ac_func
41958
41959 /* System header to define __stub macros and hopefully few prototypes,
41960     which can conflict with char $ac_func (); below.
41961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41962     <limits.h> exists even on freestanding compilers.  */
41963
41964 #ifdef __STDC__
41965 # include <limits.h>
41966 #else
41967 # include <assert.h>
41968 #endif
41969
41970 #undef $ac_func
41971
41972 /* Override any GCC internal prototype to avoid an error.
41973    Use char because int might match the return type of a GCC
41974    builtin and then its argument prototype would still apply.  */
41975 #ifdef __cplusplus
41976 extern "C"
41977 #endif
41978 char $ac_func ();
41979 /* The GNU C library defines this for functions which it implements
41980     to always fail with ENOSYS.  Some functions are actually named
41981     something starting with __ and the normal name is an alias.  */
41982 #if defined __stub_$ac_func || defined __stub___$ac_func
41983 choke me
41984 #endif
41985
41986 int
41987 main ()
41988 {
41989 return $ac_func ();
41990   ;
41991   return 0;
41992 }
41993 _ACEOF
41994 rm -f conftest.$ac_objext conftest$ac_exeext
41995 if { (ac_try="$ac_link"
41996 case "(($ac_try" in
41997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41998   *) ac_try_echo=$ac_try;;
41999 esac
42000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42001   (eval "$ac_link") 2>conftest.er1
42002   ac_status=$?
42003   grep -v '^ *+' conftest.er1 >conftest.err
42004   rm -f conftest.er1
42005   cat conftest.err >&5
42006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42007   (exit $ac_status); } && {
42008          test -z "$ac_c_werror_flag" ||
42009          test ! -s conftest.err
42010        } && test -s conftest$ac_exeext &&
42011        $as_test_x conftest$ac_exeext; then
42012   eval "$as_ac_var=yes"
42013 else
42014   echo "$as_me: failed program was:" >&5
42015 sed 's/^/| /' conftest.$ac_ext >&5
42016
42017         eval "$as_ac_var=no"
42018 fi
42019
42020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42021       conftest$ac_exeext conftest.$ac_ext
42022 fi
42023 ac_res=`eval echo '${'$as_ac_var'}'`
42024                { echo "$as_me:$LINENO: result: $ac_res" >&5
42025 echo "${ECHO_T}$ac_res" >&6; }
42026 if test `eval echo '${'$as_ac_var'}'` = yes; then
42027   cat >>confdefs.h <<_ACEOF
42028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42029 _ACEOF
42030  cat >>confdefs.h <<\_ACEOF
42031 #define HAVE_INET_ADDR 1
42032 _ACEOF
42033
42034 else
42035
42036         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
42037 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
42038 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
42039   echo $ECHO_N "(cached) $ECHO_C" >&6
42040 else
42041   ac_check_lib_save_LIBS=$LIBS
42042 LIBS="-lnsl  $LIBS"
42043 cat >conftest.$ac_ext <<_ACEOF
42044 /* confdefs.h.  */
42045 _ACEOF
42046 cat confdefs.h >>conftest.$ac_ext
42047 cat >>conftest.$ac_ext <<_ACEOF
42048 /* end confdefs.h.  */
42049
42050 /* Override any GCC internal prototype to avoid an error.
42051    Use char because int might match the return type of a GCC
42052    builtin and then its argument prototype would still apply.  */
42053 #ifdef __cplusplus
42054 extern "C"
42055 #endif
42056 char inet_addr ();
42057 int
42058 main ()
42059 {
42060 return inet_addr ();
42061   ;
42062   return 0;
42063 }
42064 _ACEOF
42065 rm -f conftest.$ac_objext conftest$ac_exeext
42066 if { (ac_try="$ac_link"
42067 case "(($ac_try" in
42068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42069   *) ac_try_echo=$ac_try;;
42070 esac
42071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42072   (eval "$ac_link") 2>conftest.er1
42073   ac_status=$?
42074   grep -v '^ *+' conftest.er1 >conftest.err
42075   rm -f conftest.er1
42076   cat conftest.err >&5
42077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42078   (exit $ac_status); } && {
42079          test -z "$ac_c_werror_flag" ||
42080          test ! -s conftest.err
42081        } && test -s conftest$ac_exeext &&
42082        $as_test_x conftest$ac_exeext; then
42083   ac_cv_lib_nsl_inet_addr=yes
42084 else
42085   echo "$as_me: failed program was:" >&5
42086 sed 's/^/| /' conftest.$ac_ext >&5
42087
42088         ac_cv_lib_nsl_inet_addr=no
42089 fi
42090
42091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42092       conftest$ac_exeext conftest.$ac_ext
42093 LIBS=$ac_check_lib_save_LIBS
42094 fi
42095 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
42096 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
42097 if test $ac_cv_lib_nsl_inet_addr = yes; then
42098   INET_LINK="nsl"
42099 else
42100
42101                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
42102 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
42103 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
42104   echo $ECHO_N "(cached) $ECHO_C" >&6
42105 else
42106   ac_check_lib_save_LIBS=$LIBS
42107 LIBS="-lresolv  $LIBS"
42108 cat >conftest.$ac_ext <<_ACEOF
42109 /* confdefs.h.  */
42110 _ACEOF
42111 cat confdefs.h >>conftest.$ac_ext
42112 cat >>conftest.$ac_ext <<_ACEOF
42113 /* end confdefs.h.  */
42114
42115 /* Override any GCC internal prototype to avoid an error.
42116    Use char because int might match the return type of a GCC
42117    builtin and then its argument prototype would still apply.  */
42118 #ifdef __cplusplus
42119 extern "C"
42120 #endif
42121 char inet_addr ();
42122 int
42123 main ()
42124 {
42125 return inet_addr ();
42126   ;
42127   return 0;
42128 }
42129 _ACEOF
42130 rm -f conftest.$ac_objext conftest$ac_exeext
42131 if { (ac_try="$ac_link"
42132 case "(($ac_try" in
42133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42134   *) ac_try_echo=$ac_try;;
42135 esac
42136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42137   (eval "$ac_link") 2>conftest.er1
42138   ac_status=$?
42139   grep -v '^ *+' conftest.er1 >conftest.err
42140   rm -f conftest.er1
42141   cat conftest.err >&5
42142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42143   (exit $ac_status); } && {
42144          test -z "$ac_c_werror_flag" ||
42145          test ! -s conftest.err
42146        } && test -s conftest$ac_exeext &&
42147        $as_test_x conftest$ac_exeext; then
42148   ac_cv_lib_resolv_inet_addr=yes
42149 else
42150   echo "$as_me: failed program was:" >&5
42151 sed 's/^/| /' conftest.$ac_ext >&5
42152
42153         ac_cv_lib_resolv_inet_addr=no
42154 fi
42155
42156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42157       conftest$ac_exeext conftest.$ac_ext
42158 LIBS=$ac_check_lib_save_LIBS
42159 fi
42160 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
42161 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
42162 if test $ac_cv_lib_resolv_inet_addr = yes; then
42163   INET_LINK="resolv"
42164 else
42165
42166                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
42167 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
42168 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
42169   echo $ECHO_N "(cached) $ECHO_C" >&6
42170 else
42171   ac_check_lib_save_LIBS=$LIBS
42172 LIBS="-lsocket  $LIBS"
42173 cat >conftest.$ac_ext <<_ACEOF
42174 /* confdefs.h.  */
42175 _ACEOF
42176 cat confdefs.h >>conftest.$ac_ext
42177 cat >>conftest.$ac_ext <<_ACEOF
42178 /* end confdefs.h.  */
42179
42180 /* Override any GCC internal prototype to avoid an error.
42181    Use char because int might match the return type of a GCC
42182    builtin and then its argument prototype would still apply.  */
42183 #ifdef __cplusplus
42184 extern "C"
42185 #endif
42186 char inet_addr ();
42187 int
42188 main ()
42189 {
42190 return inet_addr ();
42191   ;
42192   return 0;
42193 }
42194 _ACEOF
42195 rm -f conftest.$ac_objext conftest$ac_exeext
42196 if { (ac_try="$ac_link"
42197 case "(($ac_try" in
42198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42199   *) ac_try_echo=$ac_try;;
42200 esac
42201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42202   (eval "$ac_link") 2>conftest.er1
42203   ac_status=$?
42204   grep -v '^ *+' conftest.er1 >conftest.err
42205   rm -f conftest.er1
42206   cat conftest.err >&5
42207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42208   (exit $ac_status); } && {
42209          test -z "$ac_c_werror_flag" ||
42210          test ! -s conftest.err
42211        } && test -s conftest$ac_exeext &&
42212        $as_test_x conftest$ac_exeext; then
42213   ac_cv_lib_socket_inet_addr=yes
42214 else
42215   echo "$as_me: failed program was:" >&5
42216 sed 's/^/| /' conftest.$ac_ext >&5
42217
42218         ac_cv_lib_socket_inet_addr=no
42219 fi
42220
42221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42222       conftest$ac_exeext conftest.$ac_ext
42223 LIBS=$ac_check_lib_save_LIBS
42224 fi
42225 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
42226 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
42227 if test $ac_cv_lib_socket_inet_addr = yes; then
42228   INET_LINK="socket"
42229
42230 fi
42231
42232
42233
42234 fi
42235
42236
42237
42238 fi
42239
42240
42241
42242 fi
42243 done
42244
42245
42246
42247 for ac_func in inet_aton
42248 do
42249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42253   echo $ECHO_N "(cached) $ECHO_C" >&6
42254 else
42255   cat >conftest.$ac_ext <<_ACEOF
42256 /* confdefs.h.  */
42257 _ACEOF
42258 cat confdefs.h >>conftest.$ac_ext
42259 cat >>conftest.$ac_ext <<_ACEOF
42260 /* end confdefs.h.  */
42261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42263 #define $ac_func innocuous_$ac_func
42264
42265 /* System header to define __stub macros and hopefully few prototypes,
42266     which can conflict with char $ac_func (); below.
42267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42268     <limits.h> exists even on freestanding compilers.  */
42269
42270 #ifdef __STDC__
42271 # include <limits.h>
42272 #else
42273 # include <assert.h>
42274 #endif
42275
42276 #undef $ac_func
42277
42278 /* Override any GCC internal prototype to avoid an error.
42279    Use char because int might match the return type of a GCC
42280    builtin and then its argument prototype would still apply.  */
42281 #ifdef __cplusplus
42282 extern "C"
42283 #endif
42284 char $ac_func ();
42285 /* The GNU C library defines this for functions which it implements
42286     to always fail with ENOSYS.  Some functions are actually named
42287     something starting with __ and the normal name is an alias.  */
42288 #if defined __stub_$ac_func || defined __stub___$ac_func
42289 choke me
42290 #endif
42291
42292 int
42293 main ()
42294 {
42295 return $ac_func ();
42296   ;
42297   return 0;
42298 }
42299 _ACEOF
42300 rm -f conftest.$ac_objext conftest$ac_exeext
42301 if { (ac_try="$ac_link"
42302 case "(($ac_try" in
42303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42304   *) ac_try_echo=$ac_try;;
42305 esac
42306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42307   (eval "$ac_link") 2>conftest.er1
42308   ac_status=$?
42309   grep -v '^ *+' conftest.er1 >conftest.err
42310   rm -f conftest.er1
42311   cat conftest.err >&5
42312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42313   (exit $ac_status); } && {
42314          test -z "$ac_c_werror_flag" ||
42315          test ! -s conftest.err
42316        } && test -s conftest$ac_exeext &&
42317        $as_test_x conftest$ac_exeext; then
42318   eval "$as_ac_var=yes"
42319 else
42320   echo "$as_me: failed program was:" >&5
42321 sed 's/^/| /' conftest.$ac_ext >&5
42322
42323         eval "$as_ac_var=no"
42324 fi
42325
42326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42327       conftest$ac_exeext conftest.$ac_ext
42328 fi
42329 ac_res=`eval echo '${'$as_ac_var'}'`
42330                { echo "$as_me:$LINENO: result: $ac_res" >&5
42331 echo "${ECHO_T}$ac_res" >&6; }
42332 if test `eval echo '${'$as_ac_var'}'` = yes; then
42333   cat >>confdefs.h <<_ACEOF
42334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42335 _ACEOF
42336  cat >>confdefs.h <<\_ACEOF
42337 #define HAVE_INET_ATON 1
42338 _ACEOF
42339
42340 else
42341
42342                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
42343 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
42344 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
42345 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42346   echo $ECHO_N "(cached) $ECHO_C" >&6
42347 else
42348   ac_check_lib_save_LIBS=$LIBS
42349 LIBS="-l$INET_LINK  $LIBS"
42350 cat >conftest.$ac_ext <<_ACEOF
42351 /* confdefs.h.  */
42352 _ACEOF
42353 cat confdefs.h >>conftest.$ac_ext
42354 cat >>conftest.$ac_ext <<_ACEOF
42355 /* end confdefs.h.  */
42356
42357 /* Override any GCC internal prototype to avoid an error.
42358    Use char because int might match the return type of a GCC
42359    builtin and then its argument prototype would still apply.  */
42360 #ifdef __cplusplus
42361 extern "C"
42362 #endif
42363 char inet_aton ();
42364 int
42365 main ()
42366 {
42367 return inet_aton ();
42368   ;
42369   return 0;
42370 }
42371 _ACEOF
42372 rm -f conftest.$ac_objext conftest$ac_exeext
42373 if { (ac_try="$ac_link"
42374 case "(($ac_try" in
42375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42376   *) ac_try_echo=$ac_try;;
42377 esac
42378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42379   (eval "$ac_link") 2>conftest.er1
42380   ac_status=$?
42381   grep -v '^ *+' conftest.er1 >conftest.err
42382   rm -f conftest.er1
42383   cat conftest.err >&5
42384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42385   (exit $ac_status); } && {
42386          test -z "$ac_c_werror_flag" ||
42387          test ! -s conftest.err
42388        } && test -s conftest$ac_exeext &&
42389        $as_test_x conftest$ac_exeext; then
42390   eval "$as_ac_Lib=yes"
42391 else
42392   echo "$as_me: failed program was:" >&5
42393 sed 's/^/| /' conftest.$ac_ext >&5
42394
42395         eval "$as_ac_Lib=no"
42396 fi
42397
42398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42399       conftest$ac_exeext conftest.$ac_ext
42400 LIBS=$ac_check_lib_save_LIBS
42401 fi
42402 ac_res=`eval echo '${'$as_ac_Lib'}'`
42403                { echo "$as_me:$LINENO: result: $ac_res" >&5
42404 echo "${ECHO_T}$ac_res" >&6; }
42405 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42406   cat >>confdefs.h <<\_ACEOF
42407 #define HAVE_INET_ATON 1
42408 _ACEOF
42409
42410 fi
42411
42412
42413 fi
42414 done
42415
42416
42417 if test "x$INET_LINK" != "x"; then
42418     cat >>confdefs.h <<\_ACEOF
42419 #define HAVE_INET_ADDR 1
42420 _ACEOF
42421
42422     INET_LINK=" -l$INET_LINK"
42423 fi
42424
42425
42426   for wx_func in fdopen
42427   do
42428     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42429 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42430 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42431   echo $ECHO_N "(cached) $ECHO_C" >&6
42432 else
42433
42434         cat >conftest.$ac_ext <<_ACEOF
42435
42436             /* confdefs.h.  */
42437 _ACEOF
42438 cat confdefs.h >>conftest.$ac_ext
42439 cat >>conftest.$ac_ext <<_ACEOF
42440 /* end confdefs.h.  */
42441
42442
42443                 $ac_includes_default
42444
42445 int
42446 main ()
42447 {
42448
42449                 #ifndef $wx_func
42450                   &$wx_func;
42451                 #endif
42452
42453
42454   ;
42455   return 0;
42456 }
42457
42458 _ACEOF
42459 rm -f conftest.$ac_objext conftest$ac_exeext
42460 if { (ac_try="$ac_link"
42461 case "(($ac_try" in
42462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42463   *) ac_try_echo=$ac_try;;
42464 esac
42465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42466   (eval "$ac_link") 2>conftest.er1
42467   ac_status=$?
42468   grep -v '^ *+' conftest.er1 >conftest.err
42469   rm -f conftest.er1
42470   cat conftest.err >&5
42471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42472   (exit $ac_status); } && {
42473          test -z "$ac_c_werror_flag" ||
42474          test ! -s conftest.err
42475        } && test -s conftest$ac_exeext &&
42476        $as_test_x conftest$ac_exeext; then
42477   eval wx_cv_func_$wx_func=yes
42478 else
42479   echo "$as_me: failed program was:" >&5
42480 sed 's/^/| /' conftest.$ac_ext >&5
42481
42482         eval wx_cv_func_$wx_func=no
42483 fi
42484
42485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42486       conftest$ac_exeext conftest.$ac_ext
42487
42488 fi
42489 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42490                { echo "$as_me:$LINENO: result: $ac_res" >&5
42491 echo "${ECHO_T}$ac_res" >&6; }
42492
42493     if eval test \$wx_cv_func_$wx_func = yes
42494     then
42495       cat >>confdefs.h <<_ACEOF
42496 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42497 _ACEOF
42498
42499
42500     else
42501       :
42502
42503     fi
42504   done
42505
42506
42507 if test "$wxUSE_TARSTREAM" = "yes"; then
42508
42509   for wx_func in sysconf
42510   do
42511     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42512 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42513 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42514   echo $ECHO_N "(cached) $ECHO_C" >&6
42515 else
42516
42517         cat >conftest.$ac_ext <<_ACEOF
42518
42519             /* confdefs.h.  */
42520 _ACEOF
42521 cat confdefs.h >>conftest.$ac_ext
42522 cat >>conftest.$ac_ext <<_ACEOF
42523 /* end confdefs.h.  */
42524
42525
42526                 $ac_includes_default
42527
42528 int
42529 main ()
42530 {
42531
42532                 #ifndef $wx_func
42533                   &$wx_func;
42534                 #endif
42535
42536
42537   ;
42538   return 0;
42539 }
42540
42541 _ACEOF
42542 rm -f conftest.$ac_objext conftest$ac_exeext
42543 if { (ac_try="$ac_link"
42544 case "(($ac_try" in
42545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42546   *) ac_try_echo=$ac_try;;
42547 esac
42548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42549   (eval "$ac_link") 2>conftest.er1
42550   ac_status=$?
42551   grep -v '^ *+' conftest.er1 >conftest.err
42552   rm -f conftest.er1
42553   cat conftest.err >&5
42554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42555   (exit $ac_status); } && {
42556          test -z "$ac_c_werror_flag" ||
42557          test ! -s conftest.err
42558        } && test -s conftest$ac_exeext &&
42559        $as_test_x conftest$ac_exeext; then
42560   eval wx_cv_func_$wx_func=yes
42561 else
42562   echo "$as_me: failed program was:" >&5
42563 sed 's/^/| /' conftest.$ac_ext >&5
42564
42565         eval wx_cv_func_$wx_func=no
42566 fi
42567
42568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42569       conftest$ac_exeext conftest.$ac_ext
42570
42571 fi
42572 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42573                { echo "$as_me:$LINENO: result: $ac_res" >&5
42574 echo "${ECHO_T}$ac_res" >&6; }
42575
42576     if eval test \$wx_cv_func_$wx_func = yes
42577     then
42578       cat >>confdefs.h <<_ACEOF
42579 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42580 _ACEOF
42581
42582
42583     else
42584       :
42585
42586     fi
42587   done
42588
42589
42590
42591   for wx_func in getpwuid_r
42592   do
42593     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42594 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42595 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42596   echo $ECHO_N "(cached) $ECHO_C" >&6
42597 else
42598
42599         cat >conftest.$ac_ext <<_ACEOF
42600
42601             /* confdefs.h.  */
42602 _ACEOF
42603 cat confdefs.h >>conftest.$ac_ext
42604 cat >>conftest.$ac_ext <<_ACEOF
42605 /* end confdefs.h.  */
42606
42607
42608                     #define _REENTRANT
42609                     #include <pwd.h>
42610
42611                 $ac_includes_default
42612
42613 int
42614 main ()
42615 {
42616
42617                 #ifndef $wx_func
42618                   &$wx_func;
42619                 #endif
42620
42621                     struct passwd pw, *ppw;
42622                     char buf[1024];
42623                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
42624
42625
42626   ;
42627   return 0;
42628 }
42629
42630 _ACEOF
42631 rm -f conftest.$ac_objext conftest$ac_exeext
42632 if { (ac_try="$ac_link"
42633 case "(($ac_try" in
42634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42635   *) ac_try_echo=$ac_try;;
42636 esac
42637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42638   (eval "$ac_link") 2>conftest.er1
42639   ac_status=$?
42640   grep -v '^ *+' conftest.er1 >conftest.err
42641   rm -f conftest.er1
42642   cat conftest.err >&5
42643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42644   (exit $ac_status); } && {
42645          test -z "$ac_c_werror_flag" ||
42646          test ! -s conftest.err
42647        } && test -s conftest$ac_exeext &&
42648        $as_test_x conftest$ac_exeext; then
42649   eval wx_cv_func_$wx_func=yes
42650 else
42651   echo "$as_me: failed program was:" >&5
42652 sed 's/^/| /' conftest.$ac_ext >&5
42653
42654         eval wx_cv_func_$wx_func=no
42655 fi
42656
42657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42658       conftest$ac_exeext conftest.$ac_ext
42659
42660 fi
42661 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42662                { echo "$as_me:$LINENO: result: $ac_res" >&5
42663 echo "${ECHO_T}$ac_res" >&6; }
42664
42665     if eval test \$wx_cv_func_$wx_func = yes
42666     then
42667       cat >>confdefs.h <<_ACEOF
42668 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42669 _ACEOF
42670
42671
42672     else
42673       :
42674
42675     fi
42676   done
42677
42678
42679
42680   for wx_func in getgrgid_r
42681   do
42682     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42683 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42684 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42685   echo $ECHO_N "(cached) $ECHO_C" >&6
42686 else
42687
42688         cat >conftest.$ac_ext <<_ACEOF
42689
42690             /* confdefs.h.  */
42691 _ACEOF
42692 cat confdefs.h >>conftest.$ac_ext
42693 cat >>conftest.$ac_ext <<_ACEOF
42694 /* end confdefs.h.  */
42695
42696
42697                     #define _REENTRANT
42698                     #include <grp.h>
42699
42700                 $ac_includes_default
42701
42702 int
42703 main ()
42704 {
42705
42706                 #ifndef $wx_func
42707                   &$wx_func;
42708                 #endif
42709
42710                     struct group grp, *pgrp;
42711                     char buf[1024];
42712                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
42713
42714
42715   ;
42716   return 0;
42717 }
42718
42719 _ACEOF
42720 rm -f conftest.$ac_objext conftest$ac_exeext
42721 if { (ac_try="$ac_link"
42722 case "(($ac_try" in
42723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42724   *) ac_try_echo=$ac_try;;
42725 esac
42726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42727   (eval "$ac_link") 2>conftest.er1
42728   ac_status=$?
42729   grep -v '^ *+' conftest.er1 >conftest.err
42730   rm -f conftest.er1
42731   cat conftest.err >&5
42732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42733   (exit $ac_status); } && {
42734          test -z "$ac_c_werror_flag" ||
42735          test ! -s conftest.err
42736        } && test -s conftest$ac_exeext &&
42737        $as_test_x conftest$ac_exeext; then
42738   eval wx_cv_func_$wx_func=yes
42739 else
42740   echo "$as_me: failed program was:" >&5
42741 sed 's/^/| /' conftest.$ac_ext >&5
42742
42743         eval wx_cv_func_$wx_func=no
42744 fi
42745
42746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42747       conftest$ac_exeext conftest.$ac_ext
42748
42749 fi
42750 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42751                { echo "$as_me:$LINENO: result: $ac_res" >&5
42752 echo "${ECHO_T}$ac_res" >&6; }
42753
42754     if eval test \$wx_cv_func_$wx_func = yes
42755     then
42756       cat >>confdefs.h <<_ACEOF
42757 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
42758 _ACEOF
42759
42760
42761     else
42762       :
42763
42764     fi
42765   done
42766
42767 fi
42768
42769 fi
42770
42771
42772
42773 cat >confcache <<\_ACEOF
42774 # This file is a shell script that caches the results of configure
42775 # tests run on this system so they can be shared between configure
42776 # scripts and configure runs, see configure's option --config-cache.
42777 # It is not useful on other systems.  If it contains results you don't
42778 # want to keep, you may remove or edit it.
42779 #
42780 # config.status only pays attention to the cache file if you give it
42781 # the --recheck option to rerun configure.
42782 #
42783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42785 # following values.
42786
42787 _ACEOF
42788
42789 # The following way of writing the cache mishandles newlines in values,
42790 # but we know of no workaround that is simple, portable, and efficient.
42791 # So, we kill variables containing newlines.
42792 # Ultrix sh set writes to stderr and can't be redirected directly,
42793 # and sets the high bit in the cache file unless we assign to the vars.
42794 (
42795   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42796     eval ac_val=\$$ac_var
42797     case $ac_val in #(
42798     *${as_nl}*)
42799       case $ac_var in #(
42800       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42801 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42802       esac
42803       case $ac_var in #(
42804       _ | IFS | as_nl) ;; #(
42805       *) $as_unset $ac_var ;;
42806       esac ;;
42807     esac
42808   done
42809
42810   (set) 2>&1 |
42811     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42812     *${as_nl}ac_space=\ *)
42813       # `set' does not quote correctly, so add quotes (double-quote
42814       # substitution turns \\\\ into \\, and sed turns \\ into \).
42815       sed -n \
42816         "s/'/'\\\\''/g;
42817           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42818       ;; #(
42819     *)
42820       # `set' quotes correctly as required by POSIX, so do not add quotes.
42821       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42822       ;;
42823     esac |
42824     sort
42825 ) |
42826   sed '
42827      /^ac_cv_env_/b end
42828      t clear
42829      :clear
42830      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42831      t end
42832      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42833      :end' >>confcache
42834 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42835   if test -w "$cache_file"; then
42836     test "x$cache_file" != "x/dev/null" &&
42837       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42838 echo "$as_me: updating cache $cache_file" >&6;}
42839     cat confcache >$cache_file
42840   else
42841     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42842 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42843   fi
42844 fi
42845 rm -f confcache
42846
42847
42848 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42849
42850
42851     THREADS_LINK=
42852     THREADS_CFLAGS=
42853
42854     if test "$wxUSE_THREADS" = "yes" ; then
42855         if test "$USE_BEOS" = 1; then
42856             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
42857 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
42858             wxUSE_THREADS="no"
42859         fi
42860     fi
42861
42862     if test "$wxUSE_THREADS" = "yes" ; then
42863
42864
42865                                 THREAD_OPTS="-pthread"
42866         if test "x$SUNCXX" = xyes; then
42867             THREAD_OPTS="-mt lthread $THREAD_OPTS"
42868         fi
42869
42870         case "${host}" in
42871           *-*-solaris2* | *-*-sunos4* )
42872                 if test "x$GCC" = "xyes"; then
42873                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
42874                 fi
42875                 ;;
42876           *-*-freebsd*)
42877                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
42878                 ;;
42879           *-*-darwin* | *-*-cygwin* )
42880                                                 THREAD_OPTS=""
42881                 ;;
42882           *-*-aix*)
42883                                 THREAD_OPTS="pthreads"
42884                 ;;
42885           *-hp-hpux* )
42886                 if test "x$GCC" = "xyes"; then
42887                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
42888                         THREAD_OPTS=""
42889                 else
42890                                                             THREAD_OPTS="-mt"
42891                 fi
42892                 ;;
42893
42894           *-*-irix* )
42895                                                                 if test "x$GCC" = "xyes"; then
42896                     THREAD_OPTS=""
42897                 fi
42898                 ;;
42899
42900           *-*-qnx*)
42901                                                 THREAD_OPTS=""
42902                 ;;
42903
42904           *-*-*UnixWare*)
42905                                 if test "x$GCC" != "xyes"; then
42906                     THREAD_OPTS="-Ethread"
42907                 fi
42908                 ;;
42909         esac
42910
42911         case "${host}" in
42912             *-*-qnx*)
42913                                                                 THREAD_OPTS="none pthread"
42914                 ;;
42915
42916             *)
42917                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
42918                 ;;
42919         esac
42920
42921                 THREADS_OK=no
42922         for flag in $THREAD_OPTS; do
42923             case $flag in
42924                 none)
42925                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
42926 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
42927                     ;;
42928
42929                 -*)
42930                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
42931 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
42932                     THREADS_CFLAGS="$flag"
42933                     ;;
42934
42935                 *)
42936                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
42937 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
42938                     THREADS_LINK="-l$flag"
42939                     ;;
42940               esac
42941
42942               save_LIBS="$LIBS"
42943               save_CFLAGS="$CFLAGS"
42944               LIBS="$THREADS_LINK $LIBS"
42945               CFLAGS="$THREADS_CFLAGS $CFLAGS"
42946
42947               cat >conftest.$ac_ext <<_ACEOF
42948 /* confdefs.h.  */
42949 _ACEOF
42950 cat confdefs.h >>conftest.$ac_ext
42951 cat >>conftest.$ac_ext <<_ACEOF
42952 /* end confdefs.h.  */
42953 #include <pthread.h>
42954 int
42955 main ()
42956 {
42957 pthread_create(0,0,0,0);
42958   ;
42959   return 0;
42960 }
42961 _ACEOF
42962 rm -f conftest.$ac_objext conftest$ac_exeext
42963 if { (ac_try="$ac_link"
42964 case "(($ac_try" in
42965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42966   *) ac_try_echo=$ac_try;;
42967 esac
42968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42969   (eval "$ac_link") 2>conftest.er1
42970   ac_status=$?
42971   grep -v '^ *+' conftest.er1 >conftest.err
42972   rm -f conftest.er1
42973   cat conftest.err >&5
42974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42975   (exit $ac_status); } && {
42976          test -z "$ac_c_werror_flag" ||
42977          test ! -s conftest.err
42978        } && test -s conftest$ac_exeext &&
42979        $as_test_x conftest$ac_exeext; then
42980   THREADS_OK=yes
42981 else
42982   echo "$as_me: failed program was:" >&5
42983 sed 's/^/| /' conftest.$ac_ext >&5
42984
42985
42986 fi
42987
42988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42989       conftest$ac_exeext conftest.$ac_ext
42990
42991               LIBS="$save_LIBS"
42992               CFLAGS="$save_CFLAGS"
42993
42994               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
42995 echo "${ECHO_T}$THREADS_OK" >&6; }
42996               if test "x$THREADS_OK" = "xyes"; then
42997                       break;
42998               fi
42999
43000               THREADS_LINK=""
43001               THREADS_CFLAGS=""
43002       done
43003
43004       if test "x$THREADS_OK" != "xyes"; then
43005           wxUSE_THREADS=no
43006           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
43007 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
43008       else
43009                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
43010           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
43011           LIBS="$THREADS_LINK $LIBS"
43012
43013           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
43014 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
43015           flag=no
43016           case "${host}" in
43017             *-aix*)
43018                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
43019                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
43020                 flag="-D_THREAD_SAFE"
43021                 ;;
43022             *-freebsd*)
43023                 flag="-D_THREAD_SAFE"
43024                 ;;
43025             *-hp-hpux* )
43026                 flag="-D_REENTRANT"
43027                 if test "x$GCC" != "xyes"; then
43028                                         flag="$flag -D_RWSTD_MULTI_THREAD"
43029                 fi
43030                 ;;
43031             *solaris* | alpha*-osf*)
43032                 flag="-D_REENTRANT"
43033                 ;;
43034           esac
43035           { echo "$as_me:$LINENO: result: ${flag}" >&5
43036 echo "${ECHO_T}${flag}" >&6; }
43037           if test "x$flag" != xno; then
43038               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
43039           fi
43040
43041                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
43042       fi
43043     fi
43044
43045         if test "$wxUSE_THREADS" = "yes" ; then
43046
43047 for ac_func in thr_setconcurrency
43048 do
43049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43053   echo $ECHO_N "(cached) $ECHO_C" >&6
43054 else
43055   cat >conftest.$ac_ext <<_ACEOF
43056 /* confdefs.h.  */
43057 _ACEOF
43058 cat confdefs.h >>conftest.$ac_ext
43059 cat >>conftest.$ac_ext <<_ACEOF
43060 /* end confdefs.h.  */
43061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43063 #define $ac_func innocuous_$ac_func
43064
43065 /* System header to define __stub macros and hopefully few prototypes,
43066     which can conflict with char $ac_func (); below.
43067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43068     <limits.h> exists even on freestanding compilers.  */
43069
43070 #ifdef __STDC__
43071 # include <limits.h>
43072 #else
43073 # include <assert.h>
43074 #endif
43075
43076 #undef $ac_func
43077
43078 /* Override any GCC internal prototype to avoid an error.
43079    Use char because int might match the return type of a GCC
43080    builtin and then its argument prototype would still apply.  */
43081 #ifdef __cplusplus
43082 extern "C"
43083 #endif
43084 char $ac_func ();
43085 /* The GNU C library defines this for functions which it implements
43086     to always fail with ENOSYS.  Some functions are actually named
43087     something starting with __ and the normal name is an alias.  */
43088 #if defined __stub_$ac_func || defined __stub___$ac_func
43089 choke me
43090 #endif
43091
43092 int
43093 main ()
43094 {
43095 return $ac_func ();
43096   ;
43097   return 0;
43098 }
43099 _ACEOF
43100 rm -f conftest.$ac_objext conftest$ac_exeext
43101 if { (ac_try="$ac_link"
43102 case "(($ac_try" in
43103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43104   *) ac_try_echo=$ac_try;;
43105 esac
43106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43107   (eval "$ac_link") 2>conftest.er1
43108   ac_status=$?
43109   grep -v '^ *+' conftest.er1 >conftest.err
43110   rm -f conftest.er1
43111   cat conftest.err >&5
43112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43113   (exit $ac_status); } && {
43114          test -z "$ac_c_werror_flag" ||
43115          test ! -s conftest.err
43116        } && test -s conftest$ac_exeext &&
43117        $as_test_x conftest$ac_exeext; then
43118   eval "$as_ac_var=yes"
43119 else
43120   echo "$as_me: failed program was:" >&5
43121 sed 's/^/| /' conftest.$ac_ext >&5
43122
43123         eval "$as_ac_var=no"
43124 fi
43125
43126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43127       conftest$ac_exeext conftest.$ac_ext
43128 fi
43129 ac_res=`eval echo '${'$as_ac_var'}'`
43130                { echo "$as_me:$LINENO: result: $ac_res" >&5
43131 echo "${ECHO_T}$ac_res" >&6; }
43132 if test `eval echo '${'$as_ac_var'}'` = yes; then
43133   cat >>confdefs.h <<_ACEOF
43134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43135 _ACEOF
43136
43137 fi
43138 done
43139
43140
43141                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
43142 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
43143 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
43144   echo $ECHO_N "(cached) $ECHO_C" >&6
43145 else
43146
43147                                 ac_ext=cpp
43148 ac_cpp='$CXXCPP $CPPFLAGS'
43149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43152
43153         cat >conftest.$ac_ext <<_ACEOF
43154 /* confdefs.h.  */
43155 _ACEOF
43156 cat confdefs.h >>conftest.$ac_ext
43157 cat >>conftest.$ac_ext <<_ACEOF
43158 /* end confdefs.h.  */
43159 #include <pthread.h>
43160                void ThreadCleanupFunc(void *p);
43161
43162 int
43163 main ()
43164 {
43165
43166                 void *p;
43167                 pthread_cleanup_push(ThreadCleanupFunc, p);
43168                 pthread_cleanup_pop(0);
43169
43170   ;
43171   return 0;
43172 }
43173 _ACEOF
43174 rm -f conftest.$ac_objext
43175 if { (ac_try="$ac_compile"
43176 case "(($ac_try" in
43177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43178   *) ac_try_echo=$ac_try;;
43179 esac
43180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43181   (eval "$ac_compile") 2>conftest.er1
43182   ac_status=$?
43183   grep -v '^ *+' conftest.er1 >conftest.err
43184   rm -f conftest.er1
43185   cat conftest.err >&5
43186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43187   (exit $ac_status); } && {
43188          test -z "$ac_cxx_werror_flag" ||
43189          test ! -s conftest.err
43190        } && test -s conftest.$ac_objext; then
43191
43192                wx_cv_func_pthread_cleanup=yes
43193
43194 else
43195   echo "$as_me: failed program was:" >&5
43196 sed 's/^/| /' conftest.$ac_ext >&5
43197
43198
43199                wx_cv_func_pthread_cleanup=no
43200
43201
43202 fi
43203
43204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43205         ac_ext=c
43206 ac_cpp='$CPP $CPPFLAGS'
43207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43210
43211
43212 fi
43213 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
43214 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
43215       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
43216         cat >>confdefs.h <<\_ACEOF
43217 #define wxHAVE_PTHREAD_CLEANUP 1
43218 _ACEOF
43219
43220       fi
43221
43222
43223 for ac_header in sched.h
43224 do
43225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43229   echo $ECHO_N "(cached) $ECHO_C" >&6
43230 else
43231   cat >conftest.$ac_ext <<_ACEOF
43232 /* confdefs.h.  */
43233 _ACEOF
43234 cat confdefs.h >>conftest.$ac_ext
43235 cat >>conftest.$ac_ext <<_ACEOF
43236 /* end confdefs.h.  */
43237 $ac_includes_default
43238
43239 #include <$ac_header>
43240 _ACEOF
43241 rm -f conftest.$ac_objext
43242 if { (ac_try="$ac_compile"
43243 case "(($ac_try" in
43244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43245   *) ac_try_echo=$ac_try;;
43246 esac
43247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43248   (eval "$ac_compile") 2>conftest.er1
43249   ac_status=$?
43250   grep -v '^ *+' conftest.er1 >conftest.err
43251   rm -f conftest.er1
43252   cat conftest.err >&5
43253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43254   (exit $ac_status); } && {
43255          test -z "$ac_c_werror_flag" ||
43256          test ! -s conftest.err
43257        } && test -s conftest.$ac_objext; then
43258   eval "$as_ac_Header=yes"
43259 else
43260   echo "$as_me: failed program was:" >&5
43261 sed 's/^/| /' conftest.$ac_ext >&5
43262
43263         eval "$as_ac_Header=no"
43264 fi
43265
43266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43267 fi
43268 ac_res=`eval echo '${'$as_ac_Header'}'`
43269                { echo "$as_me:$LINENO: result: $ac_res" >&5
43270 echo "${ECHO_T}$ac_res" >&6; }
43271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43272   cat >>confdefs.h <<_ACEOF
43273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43274 _ACEOF
43275
43276 fi
43277
43278 done
43279
43280       if test "$ac_cv_header_sched_h" = "yes"; then
43281           { echo "$as_me:$LINENO: checking for sched_yield" >&5
43282 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
43283 if test "${ac_cv_func_sched_yield+set}" = set; then
43284   echo $ECHO_N "(cached) $ECHO_C" >&6
43285 else
43286   cat >conftest.$ac_ext <<_ACEOF
43287 /* confdefs.h.  */
43288 _ACEOF
43289 cat confdefs.h >>conftest.$ac_ext
43290 cat >>conftest.$ac_ext <<_ACEOF
43291 /* end confdefs.h.  */
43292 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
43293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43294 #define sched_yield innocuous_sched_yield
43295
43296 /* System header to define __stub macros and hopefully few prototypes,
43297     which can conflict with char sched_yield (); below.
43298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43299     <limits.h> exists even on freestanding compilers.  */
43300
43301 #ifdef __STDC__
43302 # include <limits.h>
43303 #else
43304 # include <assert.h>
43305 #endif
43306
43307 #undef sched_yield
43308
43309 /* Override any GCC internal prototype to avoid an error.
43310    Use char because int might match the return type of a GCC
43311    builtin and then its argument prototype would still apply.  */
43312 #ifdef __cplusplus
43313 extern "C"
43314 #endif
43315 char sched_yield ();
43316 /* The GNU C library defines this for functions which it implements
43317     to always fail with ENOSYS.  Some functions are actually named
43318     something starting with __ and the normal name is an alias.  */
43319 #if defined __stub_sched_yield || defined __stub___sched_yield
43320 choke me
43321 #endif
43322
43323 int
43324 main ()
43325 {
43326 return sched_yield ();
43327   ;
43328   return 0;
43329 }
43330 _ACEOF
43331 rm -f conftest.$ac_objext conftest$ac_exeext
43332 if { (ac_try="$ac_link"
43333 case "(($ac_try" in
43334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43335   *) ac_try_echo=$ac_try;;
43336 esac
43337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43338   (eval "$ac_link") 2>conftest.er1
43339   ac_status=$?
43340   grep -v '^ *+' conftest.er1 >conftest.err
43341   rm -f conftest.er1
43342   cat conftest.err >&5
43343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43344   (exit $ac_status); } && {
43345          test -z "$ac_c_werror_flag" ||
43346          test ! -s conftest.err
43347        } && test -s conftest$ac_exeext &&
43348        $as_test_x conftest$ac_exeext; then
43349   ac_cv_func_sched_yield=yes
43350 else
43351   echo "$as_me: failed program was:" >&5
43352 sed 's/^/| /' conftest.$ac_ext >&5
43353
43354         ac_cv_func_sched_yield=no
43355 fi
43356
43357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43358       conftest$ac_exeext conftest.$ac_ext
43359 fi
43360 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
43361 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
43362 if test $ac_cv_func_sched_yield = yes; then
43363   cat >>confdefs.h <<\_ACEOF
43364 #define HAVE_SCHED_YIELD 1
43365 _ACEOF
43366
43367 else
43368
43369                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
43370 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
43371 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
43372   echo $ECHO_N "(cached) $ECHO_C" >&6
43373 else
43374   ac_check_lib_save_LIBS=$LIBS
43375 LIBS="-lposix4  $LIBS"
43376 cat >conftest.$ac_ext <<_ACEOF
43377 /* confdefs.h.  */
43378 _ACEOF
43379 cat confdefs.h >>conftest.$ac_ext
43380 cat >>conftest.$ac_ext <<_ACEOF
43381 /* end confdefs.h.  */
43382
43383 /* Override any GCC internal prototype to avoid an error.
43384    Use char because int might match the return type of a GCC
43385    builtin and then its argument prototype would still apply.  */
43386 #ifdef __cplusplus
43387 extern "C"
43388 #endif
43389 char sched_yield ();
43390 int
43391 main ()
43392 {
43393 return sched_yield ();
43394   ;
43395   return 0;
43396 }
43397 _ACEOF
43398 rm -f conftest.$ac_objext conftest$ac_exeext
43399 if { (ac_try="$ac_link"
43400 case "(($ac_try" in
43401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43402   *) ac_try_echo=$ac_try;;
43403 esac
43404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43405   (eval "$ac_link") 2>conftest.er1
43406   ac_status=$?
43407   grep -v '^ *+' conftest.er1 >conftest.err
43408   rm -f conftest.er1
43409   cat conftest.err >&5
43410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43411   (exit $ac_status); } && {
43412          test -z "$ac_c_werror_flag" ||
43413          test ! -s conftest.err
43414        } && test -s conftest$ac_exeext &&
43415        $as_test_x conftest$ac_exeext; then
43416   ac_cv_lib_posix4_sched_yield=yes
43417 else
43418   echo "$as_me: failed program was:" >&5
43419 sed 's/^/| /' conftest.$ac_ext >&5
43420
43421         ac_cv_lib_posix4_sched_yield=no
43422 fi
43423
43424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43425       conftest$ac_exeext conftest.$ac_ext
43426 LIBS=$ac_check_lib_save_LIBS
43427 fi
43428 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
43429 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
43430 if test $ac_cv_lib_posix4_sched_yield = yes; then
43431   cat >>confdefs.h <<\_ACEOF
43432 #define HAVE_SCHED_YIELD 1
43433 _ACEOF
43434  POSIX4_LINK=" -lposix4"
43435 else
43436   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
43437 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
43438
43439 fi
43440
43441
43442
43443 fi
43444
43445       fi
43446
43447                                           HAVE_PRIOR_FUNCS=0
43448       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
43449 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
43450 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
43451   echo $ECHO_N "(cached) $ECHO_C" >&6
43452 else
43453   cat >conftest.$ac_ext <<_ACEOF
43454 /* confdefs.h.  */
43455 _ACEOF
43456 cat confdefs.h >>conftest.$ac_ext
43457 cat >>conftest.$ac_ext <<_ACEOF
43458 /* end confdefs.h.  */
43459 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
43460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43461 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
43462
43463 /* System header to define __stub macros and hopefully few prototypes,
43464     which can conflict with char pthread_attr_getschedpolicy (); below.
43465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43466     <limits.h> exists even on freestanding compilers.  */
43467
43468 #ifdef __STDC__
43469 # include <limits.h>
43470 #else
43471 # include <assert.h>
43472 #endif
43473
43474 #undef pthread_attr_getschedpolicy
43475
43476 /* Override any GCC internal prototype to avoid an error.
43477    Use char because int might match the return type of a GCC
43478    builtin and then its argument prototype would still apply.  */
43479 #ifdef __cplusplus
43480 extern "C"
43481 #endif
43482 char pthread_attr_getschedpolicy ();
43483 /* The GNU C library defines this for functions which it implements
43484     to always fail with ENOSYS.  Some functions are actually named
43485     something starting with __ and the normal name is an alias.  */
43486 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
43487 choke me
43488 #endif
43489
43490 int
43491 main ()
43492 {
43493 return pthread_attr_getschedpolicy ();
43494   ;
43495   return 0;
43496 }
43497 _ACEOF
43498 rm -f conftest.$ac_objext conftest$ac_exeext
43499 if { (ac_try="$ac_link"
43500 case "(($ac_try" in
43501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43502   *) ac_try_echo=$ac_try;;
43503 esac
43504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43505   (eval "$ac_link") 2>conftest.er1
43506   ac_status=$?
43507   grep -v '^ *+' conftest.er1 >conftest.err
43508   rm -f conftest.er1
43509   cat conftest.err >&5
43510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43511   (exit $ac_status); } && {
43512          test -z "$ac_c_werror_flag" ||
43513          test ! -s conftest.err
43514        } && test -s conftest$ac_exeext &&
43515        $as_test_x conftest$ac_exeext; then
43516   ac_cv_func_pthread_attr_getschedpolicy=yes
43517 else
43518   echo "$as_me: failed program was:" >&5
43519 sed 's/^/| /' conftest.$ac_ext >&5
43520
43521         ac_cv_func_pthread_attr_getschedpolicy=no
43522 fi
43523
43524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43525       conftest$ac_exeext conftest.$ac_ext
43526 fi
43527 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
43528 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
43529 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
43530   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
43531 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
43532 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
43533   echo $ECHO_N "(cached) $ECHO_C" >&6
43534 else
43535   cat >conftest.$ac_ext <<_ACEOF
43536 /* confdefs.h.  */
43537 _ACEOF
43538 cat confdefs.h >>conftest.$ac_ext
43539 cat >>conftest.$ac_ext <<_ACEOF
43540 /* end confdefs.h.  */
43541 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
43542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43543 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
43544
43545 /* System header to define __stub macros and hopefully few prototypes,
43546     which can conflict with char pthread_attr_setschedparam (); below.
43547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43548     <limits.h> exists even on freestanding compilers.  */
43549
43550 #ifdef __STDC__
43551 # include <limits.h>
43552 #else
43553 # include <assert.h>
43554 #endif
43555
43556 #undef pthread_attr_setschedparam
43557
43558 /* Override any GCC internal prototype to avoid an error.
43559    Use char because int might match the return type of a GCC
43560    builtin and then its argument prototype would still apply.  */
43561 #ifdef __cplusplus
43562 extern "C"
43563 #endif
43564 char pthread_attr_setschedparam ();
43565 /* The GNU C library defines this for functions which it implements
43566     to always fail with ENOSYS.  Some functions are actually named
43567     something starting with __ and the normal name is an alias.  */
43568 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
43569 choke me
43570 #endif
43571
43572 int
43573 main ()
43574 {
43575 return pthread_attr_setschedparam ();
43576   ;
43577   return 0;
43578 }
43579 _ACEOF
43580 rm -f conftest.$ac_objext conftest$ac_exeext
43581 if { (ac_try="$ac_link"
43582 case "(($ac_try" in
43583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43584   *) ac_try_echo=$ac_try;;
43585 esac
43586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43587   (eval "$ac_link") 2>conftest.er1
43588   ac_status=$?
43589   grep -v '^ *+' conftest.er1 >conftest.err
43590   rm -f conftest.er1
43591   cat conftest.err >&5
43592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43593   (exit $ac_status); } && {
43594          test -z "$ac_c_werror_flag" ||
43595          test ! -s conftest.err
43596        } && test -s conftest$ac_exeext &&
43597        $as_test_x conftest$ac_exeext; then
43598   ac_cv_func_pthread_attr_setschedparam=yes
43599 else
43600   echo "$as_me: failed program was:" >&5
43601 sed 's/^/| /' conftest.$ac_ext >&5
43602
43603         ac_cv_func_pthread_attr_setschedparam=no
43604 fi
43605
43606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43607       conftest$ac_exeext conftest.$ac_ext
43608 fi
43609 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
43610 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
43611 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
43612   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
43613 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
43614 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
43615   echo $ECHO_N "(cached) $ECHO_C" >&6
43616 else
43617   cat >conftest.$ac_ext <<_ACEOF
43618 /* confdefs.h.  */
43619 _ACEOF
43620 cat confdefs.h >>conftest.$ac_ext
43621 cat >>conftest.$ac_ext <<_ACEOF
43622 /* end confdefs.h.  */
43623 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
43624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43625 #define sched_get_priority_max innocuous_sched_get_priority_max
43626
43627 /* System header to define __stub macros and hopefully few prototypes,
43628     which can conflict with char sched_get_priority_max (); below.
43629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43630     <limits.h> exists even on freestanding compilers.  */
43631
43632 #ifdef __STDC__
43633 # include <limits.h>
43634 #else
43635 # include <assert.h>
43636 #endif
43637
43638 #undef sched_get_priority_max
43639
43640 /* Override any GCC internal prototype to avoid an error.
43641    Use char because int might match the return type of a GCC
43642    builtin and then its argument prototype would still apply.  */
43643 #ifdef __cplusplus
43644 extern "C"
43645 #endif
43646 char sched_get_priority_max ();
43647 /* The GNU C library defines this for functions which it implements
43648     to always fail with ENOSYS.  Some functions are actually named
43649     something starting with __ and the normal name is an alias.  */
43650 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
43651 choke me
43652 #endif
43653
43654 int
43655 main ()
43656 {
43657 return sched_get_priority_max ();
43658   ;
43659   return 0;
43660 }
43661 _ACEOF
43662 rm -f conftest.$ac_objext conftest$ac_exeext
43663 if { (ac_try="$ac_link"
43664 case "(($ac_try" in
43665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43666   *) ac_try_echo=$ac_try;;
43667 esac
43668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43669   (eval "$ac_link") 2>conftest.er1
43670   ac_status=$?
43671   grep -v '^ *+' conftest.er1 >conftest.err
43672   rm -f conftest.er1
43673   cat conftest.err >&5
43674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43675   (exit $ac_status); } && {
43676          test -z "$ac_c_werror_flag" ||
43677          test ! -s conftest.err
43678        } && test -s conftest$ac_exeext &&
43679        $as_test_x conftest$ac_exeext; then
43680   ac_cv_func_sched_get_priority_max=yes
43681 else
43682   echo "$as_me: failed program was:" >&5
43683 sed 's/^/| /' conftest.$ac_ext >&5
43684
43685         ac_cv_func_sched_get_priority_max=no
43686 fi
43687
43688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43689       conftest$ac_exeext conftest.$ac_ext
43690 fi
43691 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
43692 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
43693 if test $ac_cv_func_sched_get_priority_max = yes; then
43694   HAVE_PRIOR_FUNCS=1
43695 else
43696   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
43697 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
43698 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
43699   echo $ECHO_N "(cached) $ECHO_C" >&6
43700 else
43701   ac_check_lib_save_LIBS=$LIBS
43702 LIBS="-lposix4  $LIBS"
43703 cat >conftest.$ac_ext <<_ACEOF
43704 /* confdefs.h.  */
43705 _ACEOF
43706 cat confdefs.h >>conftest.$ac_ext
43707 cat >>conftest.$ac_ext <<_ACEOF
43708 /* end confdefs.h.  */
43709
43710 /* Override any GCC internal prototype to avoid an error.
43711    Use char because int might match the return type of a GCC
43712    builtin and then its argument prototype would still apply.  */
43713 #ifdef __cplusplus
43714 extern "C"
43715 #endif
43716 char sched_get_priority_max ();
43717 int
43718 main ()
43719 {
43720 return sched_get_priority_max ();
43721   ;
43722   return 0;
43723 }
43724 _ACEOF
43725 rm -f conftest.$ac_objext conftest$ac_exeext
43726 if { (ac_try="$ac_link"
43727 case "(($ac_try" in
43728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43729   *) ac_try_echo=$ac_try;;
43730 esac
43731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43732   (eval "$ac_link") 2>conftest.er1
43733   ac_status=$?
43734   grep -v '^ *+' conftest.er1 >conftest.err
43735   rm -f conftest.er1
43736   cat conftest.err >&5
43737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738   (exit $ac_status); } && {
43739          test -z "$ac_c_werror_flag" ||
43740          test ! -s conftest.err
43741        } && test -s conftest$ac_exeext &&
43742        $as_test_x conftest$ac_exeext; then
43743   ac_cv_lib_posix4_sched_get_priority_max=yes
43744 else
43745   echo "$as_me: failed program was:" >&5
43746 sed 's/^/| /' conftest.$ac_ext >&5
43747
43748         ac_cv_lib_posix4_sched_get_priority_max=no
43749 fi
43750
43751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43752       conftest$ac_exeext conftest.$ac_ext
43753 LIBS=$ac_check_lib_save_LIBS
43754 fi
43755 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
43756 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
43757 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
43758
43759                                 HAVE_PRIOR_FUNCS=1
43760                                 POSIX4_LINK=" -lposix4"
43761
43762 fi
43763
43764
43765 fi
43766
43767
43768 fi
43769
43770
43771 fi
43772
43773
43774       if test "$HAVE_PRIOR_FUNCS" = 1; then
43775         cat >>confdefs.h <<\_ACEOF
43776 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
43777 _ACEOF
43778
43779       else
43780         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
43781 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
43782       fi
43783
43784       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
43785 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
43786 if test "${ac_cv_func_pthread_cancel+set}" = set; then
43787   echo $ECHO_N "(cached) $ECHO_C" >&6
43788 else
43789   cat >conftest.$ac_ext <<_ACEOF
43790 /* confdefs.h.  */
43791 _ACEOF
43792 cat confdefs.h >>conftest.$ac_ext
43793 cat >>conftest.$ac_ext <<_ACEOF
43794 /* end confdefs.h.  */
43795 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
43796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43797 #define pthread_cancel innocuous_pthread_cancel
43798
43799 /* System header to define __stub macros and hopefully few prototypes,
43800     which can conflict with char pthread_cancel (); below.
43801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43802     <limits.h> exists even on freestanding compilers.  */
43803
43804 #ifdef __STDC__
43805 # include <limits.h>
43806 #else
43807 # include <assert.h>
43808 #endif
43809
43810 #undef pthread_cancel
43811
43812 /* Override any GCC internal prototype to avoid an error.
43813    Use char because int might match the return type of a GCC
43814    builtin and then its argument prototype would still apply.  */
43815 #ifdef __cplusplus
43816 extern "C"
43817 #endif
43818 char pthread_cancel ();
43819 /* The GNU C library defines this for functions which it implements
43820     to always fail with ENOSYS.  Some functions are actually named
43821     something starting with __ and the normal name is an alias.  */
43822 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
43823 choke me
43824 #endif
43825
43826 int
43827 main ()
43828 {
43829 return pthread_cancel ();
43830   ;
43831   return 0;
43832 }
43833 _ACEOF
43834 rm -f conftest.$ac_objext conftest$ac_exeext
43835 if { (ac_try="$ac_link"
43836 case "(($ac_try" in
43837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43838   *) ac_try_echo=$ac_try;;
43839 esac
43840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43841   (eval "$ac_link") 2>conftest.er1
43842   ac_status=$?
43843   grep -v '^ *+' conftest.er1 >conftest.err
43844   rm -f conftest.er1
43845   cat conftest.err >&5
43846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43847   (exit $ac_status); } && {
43848          test -z "$ac_c_werror_flag" ||
43849          test ! -s conftest.err
43850        } && test -s conftest$ac_exeext &&
43851        $as_test_x conftest$ac_exeext; then
43852   ac_cv_func_pthread_cancel=yes
43853 else
43854   echo "$as_me: failed program was:" >&5
43855 sed 's/^/| /' conftest.$ac_ext >&5
43856
43857         ac_cv_func_pthread_cancel=no
43858 fi
43859
43860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43861       conftest$ac_exeext conftest.$ac_ext
43862 fi
43863 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
43864 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
43865 if test $ac_cv_func_pthread_cancel = yes; then
43866   cat >>confdefs.h <<\_ACEOF
43867 #define HAVE_PTHREAD_CANCEL 1
43868 _ACEOF
43869
43870 else
43871   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
43872 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
43873 fi
43874
43875
43876       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
43877 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
43878 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
43879   echo $ECHO_N "(cached) $ECHO_C" >&6
43880 else
43881   cat >conftest.$ac_ext <<_ACEOF
43882 /* confdefs.h.  */
43883 _ACEOF
43884 cat confdefs.h >>conftest.$ac_ext
43885 cat >>conftest.$ac_ext <<_ACEOF
43886 /* end confdefs.h.  */
43887 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
43888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43889 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
43890
43891 /* System header to define __stub macros and hopefully few prototypes,
43892     which can conflict with char pthread_mutex_timedlock (); below.
43893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43894     <limits.h> exists even on freestanding compilers.  */
43895
43896 #ifdef __STDC__
43897 # include <limits.h>
43898 #else
43899 # include <assert.h>
43900 #endif
43901
43902 #undef pthread_mutex_timedlock
43903
43904 /* Override any GCC internal prototype to avoid an error.
43905    Use char because int might match the return type of a GCC
43906    builtin and then its argument prototype would still apply.  */
43907 #ifdef __cplusplus
43908 extern "C"
43909 #endif
43910 char pthread_mutex_timedlock ();
43911 /* The GNU C library defines this for functions which it implements
43912     to always fail with ENOSYS.  Some functions are actually named
43913     something starting with __ and the normal name is an alias.  */
43914 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
43915 choke me
43916 #endif
43917
43918 int
43919 main ()
43920 {
43921 return pthread_mutex_timedlock ();
43922   ;
43923   return 0;
43924 }
43925 _ACEOF
43926 rm -f conftest.$ac_objext conftest$ac_exeext
43927 if { (ac_try="$ac_link"
43928 case "(($ac_try" in
43929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43930   *) ac_try_echo=$ac_try;;
43931 esac
43932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43933   (eval "$ac_link") 2>conftest.er1
43934   ac_status=$?
43935   grep -v '^ *+' conftest.er1 >conftest.err
43936   rm -f conftest.er1
43937   cat conftest.err >&5
43938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43939   (exit $ac_status); } && {
43940          test -z "$ac_c_werror_flag" ||
43941          test ! -s conftest.err
43942        } && test -s conftest$ac_exeext &&
43943        $as_test_x conftest$ac_exeext; then
43944   ac_cv_func_pthread_mutex_timedlock=yes
43945 else
43946   echo "$as_me: failed program was:" >&5
43947 sed 's/^/| /' conftest.$ac_ext >&5
43948
43949         ac_cv_func_pthread_mutex_timedlock=no
43950 fi
43951
43952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43953       conftest$ac_exeext conftest.$ac_ext
43954 fi
43955 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
43956 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
43957 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
43958   cat >>confdefs.h <<\_ACEOF
43959 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
43960 _ACEOF
43961
43962 else
43963   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
43964 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
43965 fi
43966
43967
43968       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
43969 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
43970 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
43971   echo $ECHO_N "(cached) $ECHO_C" >&6
43972 else
43973   cat >conftest.$ac_ext <<_ACEOF
43974 /* confdefs.h.  */
43975 _ACEOF
43976 cat confdefs.h >>conftest.$ac_ext
43977 cat >>conftest.$ac_ext <<_ACEOF
43978 /* end confdefs.h.  */
43979 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
43980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43981 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
43982
43983 /* System header to define __stub macros and hopefully few prototypes,
43984     which can conflict with char pthread_attr_setstacksize (); below.
43985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43986     <limits.h> exists even on freestanding compilers.  */
43987
43988 #ifdef __STDC__
43989 # include <limits.h>
43990 #else
43991 # include <assert.h>
43992 #endif
43993
43994 #undef pthread_attr_setstacksize
43995
43996 /* Override any GCC internal prototype to avoid an error.
43997    Use char because int might match the return type of a GCC
43998    builtin and then its argument prototype would still apply.  */
43999 #ifdef __cplusplus
44000 extern "C"
44001 #endif
44002 char pthread_attr_setstacksize ();
44003 /* The GNU C library defines this for functions which it implements
44004     to always fail with ENOSYS.  Some functions are actually named
44005     something starting with __ and the normal name is an alias.  */
44006 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
44007 choke me
44008 #endif
44009
44010 int
44011 main ()
44012 {
44013 return pthread_attr_setstacksize ();
44014   ;
44015   return 0;
44016 }
44017 _ACEOF
44018 rm -f conftest.$ac_objext conftest$ac_exeext
44019 if { (ac_try="$ac_link"
44020 case "(($ac_try" in
44021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44022   *) ac_try_echo=$ac_try;;
44023 esac
44024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44025   (eval "$ac_link") 2>conftest.er1
44026   ac_status=$?
44027   grep -v '^ *+' conftest.er1 >conftest.err
44028   rm -f conftest.er1
44029   cat conftest.err >&5
44030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44031   (exit $ac_status); } && {
44032          test -z "$ac_c_werror_flag" ||
44033          test ! -s conftest.err
44034        } && test -s conftest$ac_exeext &&
44035        $as_test_x conftest$ac_exeext; then
44036   ac_cv_func_pthread_attr_setstacksize=yes
44037 else
44038   echo "$as_me: failed program was:" >&5
44039 sed 's/^/| /' conftest.$ac_ext >&5
44040
44041         ac_cv_func_pthread_attr_setstacksize=no
44042 fi
44043
44044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44045       conftest$ac_exeext conftest.$ac_ext
44046 fi
44047 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
44048 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
44049 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
44050   cat >>confdefs.h <<\_ACEOF
44051 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
44052 _ACEOF
44053
44054 fi
44055
44056
44057
44058       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
44059 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
44060 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
44061   echo $ECHO_N "(cached) $ECHO_C" >&6
44062 else
44063
44064         cat >conftest.$ac_ext <<_ACEOF
44065 /* confdefs.h.  */
44066 _ACEOF
44067 cat confdefs.h >>conftest.$ac_ext
44068 cat >>conftest.$ac_ext <<_ACEOF
44069 /* end confdefs.h.  */
44070 #include <pthread.h>
44071 int
44072 main ()
44073 {
44074
44075                pthread_mutexattr_t attr;
44076                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
44077
44078   ;
44079   return 0;
44080 }
44081 _ACEOF
44082 rm -f conftest.$ac_objext
44083 if { (ac_try="$ac_compile"
44084 case "(($ac_try" in
44085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44086   *) ac_try_echo=$ac_try;;
44087 esac
44088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44089   (eval "$ac_compile") 2>conftest.er1
44090   ac_status=$?
44091   grep -v '^ *+' conftest.er1 >conftest.err
44092   rm -f conftest.er1
44093   cat conftest.err >&5
44094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44095   (exit $ac_status); } && {
44096          test -z "$ac_c_werror_flag" ||
44097          test ! -s conftest.err
44098        } && test -s conftest.$ac_objext; then
44099   wx_cv_type_pthread_mutexattr_t=yes
44100 else
44101   echo "$as_me: failed program was:" >&5
44102 sed 's/^/| /' conftest.$ac_ext >&5
44103
44104         wx_cv_type_pthread_mutexattr_t=no
44105
44106 fi
44107
44108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44109
44110 fi
44111 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
44112 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
44113
44114       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
44115         cat >>confdefs.h <<\_ACEOF
44116 #define HAVE_PTHREAD_MUTEXATTR_T 1
44117 _ACEOF
44118
44119
44120                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
44121 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
44122 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
44123   echo $ECHO_N "(cached) $ECHO_C" >&6
44124 else
44125
44126                        cat >conftest.$ac_ext <<_ACEOF
44127 /* confdefs.h.  */
44128 _ACEOF
44129 cat confdefs.h >>conftest.$ac_ext
44130 cat >>conftest.$ac_ext <<_ACEOF
44131 /* end confdefs.h.  */
44132 #include <pthread.h>
44133 int
44134 main ()
44135 {
44136
44137                                pthread_mutexattr_t attr;
44138                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
44139
44140   ;
44141   return 0;
44142 }
44143 _ACEOF
44144 rm -f conftest.$ac_objext
44145 if { (ac_try="$ac_compile"
44146 case "(($ac_try" in
44147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44148   *) ac_try_echo=$ac_try;;
44149 esac
44150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44151   (eval "$ac_compile") 2>conftest.er1
44152   ac_status=$?
44153   grep -v '^ *+' conftest.er1 >conftest.err
44154   rm -f conftest.er1
44155   cat conftest.err >&5
44156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44157   (exit $ac_status); } && {
44158          test -z "$ac_c_werror_flag" ||
44159          test ! -s conftest.err
44160        } && test -s conftest.$ac_objext; then
44161   wx_cv_func_pthread_mutexattr_settype_decl=yes
44162 else
44163   echo "$as_me: failed program was:" >&5
44164 sed 's/^/| /' conftest.$ac_ext >&5
44165
44166         wx_cv_func_pthread_mutexattr_settype_decl=no
44167
44168 fi
44169
44170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44171
44172 fi
44173 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
44174 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
44175         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
44176             cat >>confdefs.h <<\_ACEOF
44177 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
44178 _ACEOF
44179
44180         fi
44181       else
44182                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
44183 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
44184 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
44185   echo $ECHO_N "(cached) $ECHO_C" >&6
44186 else
44187
44188             cat >conftest.$ac_ext <<_ACEOF
44189 /* confdefs.h.  */
44190 _ACEOF
44191 cat confdefs.h >>conftest.$ac_ext
44192 cat >>conftest.$ac_ext <<_ACEOF
44193 /* end confdefs.h.  */
44194 #include <pthread.h>
44195 int
44196 main ()
44197 {
44198
44199                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
44200
44201   ;
44202   return 0;
44203 }
44204 _ACEOF
44205 rm -f conftest.$ac_objext
44206 if { (ac_try="$ac_compile"
44207 case "(($ac_try" in
44208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44209   *) ac_try_echo=$ac_try;;
44210 esac
44211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44212   (eval "$ac_compile") 2>conftest.er1
44213   ac_status=$?
44214   grep -v '^ *+' conftest.er1 >conftest.err
44215   rm -f conftest.er1
44216   cat conftest.err >&5
44217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44218   (exit $ac_status); } && {
44219          test -z "$ac_c_werror_flag" ||
44220          test ! -s conftest.err
44221        } && test -s conftest.$ac_objext; then
44222
44223                     wx_cv_type_pthread_rec_mutex_init=yes
44224
44225 else
44226   echo "$as_me: failed program was:" >&5
44227 sed 's/^/| /' conftest.$ac_ext >&5
44228
44229
44230                     wx_cv_type_pthread_rec_mutex_init=no
44231
44232
44233 fi
44234
44235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44236
44237 fi
44238 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
44239 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
44240         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
44241           cat >>confdefs.h <<\_ACEOF
44242 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
44243 _ACEOF
44244
44245         else
44246                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
44247 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
44248         fi
44249       fi
44250
44251       if test "$wxUSE_COMPILER_TLS" = "auto"; then
44252           if test "$USE_NETBSD" = 1; then
44253               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
44254 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
44255               wxUSE_COMPILER_TLS=no
44256           else
44257               wxUSE_COMPILER_TLS=yes
44258           fi
44259       fi
44260
44261       if test "$wxUSE_COMPILER_TLS" = "yes"; then
44262                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
44263 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
44264 if test "${wx_cv_cc___thread+set}" = set; then
44265   echo $ECHO_N "(cached) $ECHO_C" >&6
44266 else
44267
44268                   cat >conftest.$ac_ext <<_ACEOF
44269 /* confdefs.h.  */
44270 _ACEOF
44271 cat confdefs.h >>conftest.$ac_ext
44272 cat >>conftest.$ac_ext <<_ACEOF
44273 /* end confdefs.h.  */
44274 #include <pthread.h>
44275 int
44276 main ()
44277 {
44278
44279                           static __thread int n = 0;
44280                           static __thread int *p = 0;
44281
44282   ;
44283   return 0;
44284 }
44285 _ACEOF
44286 rm -f conftest.$ac_objext
44287 if { (ac_try="$ac_compile"
44288 case "(($ac_try" in
44289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44290   *) ac_try_echo=$ac_try;;
44291 esac
44292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44293   (eval "$ac_compile") 2>conftest.er1
44294   ac_status=$?
44295   grep -v '^ *+' conftest.er1 >conftest.err
44296   rm -f conftest.er1
44297   cat conftest.err >&5
44298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44299   (exit $ac_status); } && {
44300          test -z "$ac_c_werror_flag" ||
44301          test ! -s conftest.err
44302        } && test -s conftest.$ac_objext; then
44303   wx_cv_cc___thread=yes
44304 else
44305   echo "$as_me: failed program was:" >&5
44306 sed 's/^/| /' conftest.$ac_ext >&5
44307
44308         wx_cv_cc___thread=no
44309
44310 fi
44311
44312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44313
44314
44315 fi
44316 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
44317 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
44318
44319           if test "$wx_cv_cc___thread" = "yes"; then
44320
44321   GXX_VERSION=""
44322
44323
44324
44325   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
44326 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
44327
44328   if  test "x$GCC" = "xyes" ; then
44329
44330     if  test -z "" ; then
44331
44332       ax_gcc_option_test="int main()
44333 {
44334         return 0;
44335 }"
44336
44337 else
44338
44339       ax_gcc_option_test=""
44340
44341 fi
44342
44343
44344     # Dump the test program to file
44345     cat <<EOF > conftest.c
44346 $ax_gcc_option_test
44347 EOF
44348
44349     # Dump back the file to the log, useful for debugging purposes
44350     { ac_try='cat conftest.c 1>&5'
44351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44352   (eval $ac_try) 2>&5
44353   ac_status=$?
44354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44355   (exit $ac_status); }; }
44356
44357     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
44358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44359   (eval $ac_try) 2>&5
44360   ac_status=$?
44361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44362   (exit $ac_status); }; } ; then
44363
44364                 { echo "$as_me:$LINENO: result: yes" >&5
44365 echo "${ECHO_T}yes" >&6; }
44366
44367     ax_gcc_version_option=yes
44368
44369
44370 else
44371
44372                 { echo "$as_me:$LINENO: result: no" >&5
44373 echo "${ECHO_T}no" >&6; }
44374
44375     ax_gcc_version_option=no
44376
44377
44378 fi
44379
44380
44381 else
44382
44383     { echo "$as_me:$LINENO: result: no gcc available" >&5
44384 echo "${ECHO_T}no gcc available" >&6; }
44385
44386 fi
44387
44388
44389   if test "x$GXX" = "xyes"; then
44390
44391     if test "x$ax_gxx_version_option" != "no"; then
44392
44393       { echo "$as_me:$LINENO: checking gxx version" >&5
44394 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
44395 if test "${ax_cv_gxx_version+set}" = set; then
44396   echo $ECHO_N "(cached) $ECHO_C" >&6
44397 else
44398
44399         ax_cv_gxx_version="`$CXX -dumpversion`"
44400         if test "x$ax_cv_gxx_version" = "x"; then
44401
44402           ax_cv_gxx_version=""
44403
44404 fi
44405
44406
44407 fi
44408 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
44409 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
44410       GXX_VERSION=$ax_cv_gxx_version
44411
44412 fi
44413
44414
44415 fi
44416
44417
44418
44419               if test -n "$ax_cv_gxx_version"; then
44420                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
44421 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
44422                   case "$ax_cv_gxx_version" in
44423                     1.* | 2.* | 3.* )
44424                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
44425 echo "${ECHO_T}no, it's broken" >&6; }
44426                         wx_cv_cc___thread=no
44427                         ;;
44428                     *)
44429                         { echo "$as_me:$LINENO: result: yes, it works" >&5
44430 echo "${ECHO_T}yes, it works" >&6; }
44431                         ;;
44432                   esac
44433               fi
44434           fi
44435
44436           if test "$wx_cv_cc___thread" = "yes"; then
44437             cat >>confdefs.h <<\_ACEOF
44438 #define HAVE___THREAD_KEYWORD 1
44439 _ACEOF
44440
44441           fi
44442         fi
44443     fi
44444
44445 else
44446     if test "$wxUSE_THREADS" = "yes" ; then
44447       case "${host}" in
44448         x86_64-*-mingw32* )
44449         ;;
44450         *-*-mingw32* )
44451                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
44452 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
44453 if test "${wx_cv_cflags_mthread+set}" = set; then
44454   echo $ECHO_N "(cached) $ECHO_C" >&6
44455 else
44456
44457                     CFLAGS_OLD="$CFLAGS"
44458                     CFLAGS="-mthreads $CFLAGS"
44459                     cat >conftest.$ac_ext <<_ACEOF
44460 /* confdefs.h.  */
44461 _ACEOF
44462 cat confdefs.h >>conftest.$ac_ext
44463 cat >>conftest.$ac_ext <<_ACEOF
44464 /* end confdefs.h.  */
44465
44466 int
44467 main ()
44468 {
44469
44470   ;
44471   return 0;
44472 }
44473 _ACEOF
44474 rm -f conftest.$ac_objext
44475 if { (ac_try="$ac_compile"
44476 case "(($ac_try" in
44477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44478   *) ac_try_echo=$ac_try;;
44479 esac
44480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44481   (eval "$ac_compile") 2>conftest.er1
44482   ac_status=$?
44483   grep -v '^ *+' conftest.er1 >conftest.err
44484   rm -f conftest.er1
44485   cat conftest.err >&5
44486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44487   (exit $ac_status); } && {
44488          test -z "$ac_c_werror_flag" ||
44489          test ! -s conftest.err
44490        } && test -s conftest.$ac_objext; then
44491   wx_cv_cflags_mthread=yes
44492 else
44493   echo "$as_me: failed program was:" >&5
44494 sed 's/^/| /' conftest.$ac_ext >&5
44495
44496         wx_cv_cflags_mthread=no
44497
44498 fi
44499
44500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44501
44502
44503 fi
44504 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
44505 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
44506
44507             if test "$wx_cv_cflags_mthread" = "yes"; then
44508                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
44509                 LDFLAGS="$LDFLAGS -mthreads"
44510             else
44511                                 CFLAGS="$CFLAGS_OLD"
44512             fi
44513         ;;
44514         *-pc-os2*emx )
44515             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
44516             LDFLAGS="$LDFLAGS -Zmt"
44517         ;;
44518       esac
44519     fi
44520 fi
44521
44522 { echo "$as_me:$LINENO: checking for localtime_r" >&5
44523 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
44524 if test "${ac_cv_func_localtime_r+set}" = set; then
44525   echo $ECHO_N "(cached) $ECHO_C" >&6
44526 else
44527   cat >conftest.$ac_ext <<_ACEOF
44528 /* confdefs.h.  */
44529 _ACEOF
44530 cat confdefs.h >>conftest.$ac_ext
44531 cat >>conftest.$ac_ext <<_ACEOF
44532 /* end confdefs.h.  */
44533 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
44534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44535 #define localtime_r innocuous_localtime_r
44536
44537 /* System header to define __stub macros and hopefully few prototypes,
44538     which can conflict with char localtime_r (); below.
44539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44540     <limits.h> exists even on freestanding compilers.  */
44541
44542 #ifdef __STDC__
44543 # include <limits.h>
44544 #else
44545 # include <assert.h>
44546 #endif
44547
44548 #undef localtime_r
44549
44550 /* Override any GCC internal prototype to avoid an error.
44551    Use char because int might match the return type of a GCC
44552    builtin and then its argument prototype would still apply.  */
44553 #ifdef __cplusplus
44554 extern "C"
44555 #endif
44556 char localtime_r ();
44557 /* The GNU C library defines this for functions which it implements
44558     to always fail with ENOSYS.  Some functions are actually named
44559     something starting with __ and the normal name is an alias.  */
44560 #if defined __stub_localtime_r || defined __stub___localtime_r
44561 choke me
44562 #endif
44563
44564 int
44565 main ()
44566 {
44567 return localtime_r ();
44568   ;
44569   return 0;
44570 }
44571 _ACEOF
44572 rm -f conftest.$ac_objext conftest$ac_exeext
44573 if { (ac_try="$ac_link"
44574 case "(($ac_try" in
44575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44576   *) ac_try_echo=$ac_try;;
44577 esac
44578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44579   (eval "$ac_link") 2>conftest.er1
44580   ac_status=$?
44581   grep -v '^ *+' conftest.er1 >conftest.err
44582   rm -f conftest.er1
44583   cat conftest.err >&5
44584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44585   (exit $ac_status); } && {
44586          test -z "$ac_c_werror_flag" ||
44587          test ! -s conftest.err
44588        } && test -s conftest$ac_exeext &&
44589        $as_test_x conftest$ac_exeext; then
44590   ac_cv_func_localtime_r=yes
44591 else
44592   echo "$as_me: failed program was:" >&5
44593 sed 's/^/| /' conftest.$ac_ext >&5
44594
44595         ac_cv_func_localtime_r=no
44596 fi
44597
44598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44599       conftest$ac_exeext conftest.$ac_ext
44600 fi
44601 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
44602 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
44603 if test $ac_cv_func_localtime_r = yes; then
44604    cat >>confdefs.h <<\_ACEOF
44605 #define HAVE_LOCALTIME_R 1
44606 _ACEOF
44607
44608 fi
44609
44610 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
44611 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
44612 if test "${ac_cv_func_gmtime_r+set}" = set; then
44613   echo $ECHO_N "(cached) $ECHO_C" >&6
44614 else
44615   cat >conftest.$ac_ext <<_ACEOF
44616 /* confdefs.h.  */
44617 _ACEOF
44618 cat confdefs.h >>conftest.$ac_ext
44619 cat >>conftest.$ac_ext <<_ACEOF
44620 /* end confdefs.h.  */
44621 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
44622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44623 #define gmtime_r innocuous_gmtime_r
44624
44625 /* System header to define __stub macros and hopefully few prototypes,
44626     which can conflict with char gmtime_r (); below.
44627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44628     <limits.h> exists even on freestanding compilers.  */
44629
44630 #ifdef __STDC__
44631 # include <limits.h>
44632 #else
44633 # include <assert.h>
44634 #endif
44635
44636 #undef gmtime_r
44637
44638 /* Override any GCC internal prototype to avoid an error.
44639    Use char because int might match the return type of a GCC
44640    builtin and then its argument prototype would still apply.  */
44641 #ifdef __cplusplus
44642 extern "C"
44643 #endif
44644 char gmtime_r ();
44645 /* The GNU C library defines this for functions which it implements
44646     to always fail with ENOSYS.  Some functions are actually named
44647     something starting with __ and the normal name is an alias.  */
44648 #if defined __stub_gmtime_r || defined __stub___gmtime_r
44649 choke me
44650 #endif
44651
44652 int
44653 main ()
44654 {
44655 return gmtime_r ();
44656   ;
44657   return 0;
44658 }
44659 _ACEOF
44660 rm -f conftest.$ac_objext conftest$ac_exeext
44661 if { (ac_try="$ac_link"
44662 case "(($ac_try" in
44663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44664   *) ac_try_echo=$ac_try;;
44665 esac
44666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44667   (eval "$ac_link") 2>conftest.er1
44668   ac_status=$?
44669   grep -v '^ *+' conftest.er1 >conftest.err
44670   rm -f conftest.er1
44671   cat conftest.err >&5
44672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44673   (exit $ac_status); } && {
44674          test -z "$ac_c_werror_flag" ||
44675          test ! -s conftest.err
44676        } && test -s conftest$ac_exeext &&
44677        $as_test_x conftest$ac_exeext; then
44678   ac_cv_func_gmtime_r=yes
44679 else
44680   echo "$as_me: failed program was:" >&5
44681 sed 's/^/| /' conftest.$ac_ext >&5
44682
44683         ac_cv_func_gmtime_r=no
44684 fi
44685
44686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44687       conftest$ac_exeext conftest.$ac_ext
44688 fi
44689 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
44690 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
44691 if test $ac_cv_func_gmtime_r = yes; then
44692    cat >>confdefs.h <<\_ACEOF
44693 #define HAVE_GMTIME_R 1
44694 _ACEOF
44695
44696 fi
44697
44698
44699
44700
44701     ac_ext=c
44702 ac_cpp='$CPP $CPPFLAGS'
44703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44706
44707     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
44708 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
44709
44710     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
44711   echo $ECHO_N "(cached) $ECHO_C" >&6
44712 else
44713
44714
44715 ################################################################
44716
44717 ac_cv_func_which_gethostbyname_r=unknown
44718
44719 #
44720 # ONE ARGUMENT (sanity check)
44721 #
44722
44723 # This should fail, as there is no variant of gethostbyname_r() that takes
44724 # a single argument. If it actually compiles, then we can assume that
44725 # netdb.h is not declaring the function, and the compiler is thereby
44726 # assuming an implicit prototype. In which case, we're out of luck.
44727 #
44728 cat >conftest.$ac_ext <<_ACEOF
44729 /* confdefs.h.  */
44730 _ACEOF
44731 cat confdefs.h >>conftest.$ac_ext
44732 cat >>conftest.$ac_ext <<_ACEOF
44733 /* end confdefs.h.  */
44734 #include <netdb.h>
44735 int
44736 main ()
44737 {
44738
44739             char *name = "www.gnu.org";
44740             (void)gethostbyname_r(name) /* ; */
44741
44742
44743   ;
44744   return 0;
44745 }
44746 _ACEOF
44747 rm -f conftest.$ac_objext
44748 if { (ac_try="$ac_compile"
44749 case "(($ac_try" in
44750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44751   *) ac_try_echo=$ac_try;;
44752 esac
44753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44754   (eval "$ac_compile") 2>conftest.er1
44755   ac_status=$?
44756   grep -v '^ *+' conftest.er1 >conftest.err
44757   rm -f conftest.er1
44758   cat conftest.err >&5
44759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44760   (exit $ac_status); } && {
44761          test -z "$ac_c_werror_flag" ||
44762          test ! -s conftest.err
44763        } && test -s conftest.$ac_objext; then
44764   ac_cv_func_which_gethostbyname_r=no
44765
44766 else
44767   echo "$as_me: failed program was:" >&5
44768 sed 's/^/| /' conftest.$ac_ext >&5
44769
44770
44771 fi
44772
44773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44774
44775 #
44776 # SIX ARGUMENTS
44777 # (e.g. Linux)
44778 #
44779
44780 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44781
44782 cat >conftest.$ac_ext <<_ACEOF
44783 /* confdefs.h.  */
44784 _ACEOF
44785 cat confdefs.h >>conftest.$ac_ext
44786 cat >>conftest.$ac_ext <<_ACEOF
44787 /* end confdefs.h.  */
44788 #include <netdb.h>
44789 int
44790 main ()
44791 {
44792
44793             char *name = "www.gnu.org";
44794             struct hostent ret, *retp;
44795             char buf[1024];
44796             int buflen = 1024;
44797             int my_h_errno;
44798             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
44799
44800
44801   ;
44802   return 0;
44803 }
44804 _ACEOF
44805 rm -f conftest.$ac_objext
44806 if { (ac_try="$ac_compile"
44807 case "(($ac_try" in
44808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44809   *) ac_try_echo=$ac_try;;
44810 esac
44811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44812   (eval "$ac_compile") 2>conftest.er1
44813   ac_status=$?
44814   grep -v '^ *+' conftest.er1 >conftest.err
44815   rm -f conftest.er1
44816   cat conftest.err >&5
44817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44818   (exit $ac_status); } && {
44819          test -z "$ac_c_werror_flag" ||
44820          test ! -s conftest.err
44821        } && test -s conftest.$ac_objext; then
44822   ac_cv_func_which_gethostbyname_r=six
44823
44824 else
44825   echo "$as_me: failed program was:" >&5
44826 sed 's/^/| /' conftest.$ac_ext >&5
44827
44828
44829 fi
44830
44831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44832
44833 fi
44834
44835 #
44836 # FIVE ARGUMENTS
44837 # (e.g. Solaris)
44838 #
44839
44840 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44841
44842 cat >conftest.$ac_ext <<_ACEOF
44843 /* confdefs.h.  */
44844 _ACEOF
44845 cat confdefs.h >>conftest.$ac_ext
44846 cat >>conftest.$ac_ext <<_ACEOF
44847 /* end confdefs.h.  */
44848 #include <netdb.h>
44849 int
44850 main ()
44851 {
44852
44853             char *name = "www.gnu.org";
44854             struct hostent ret;
44855             char buf[1024];
44856             int buflen = 1024;
44857             int my_h_errno;
44858             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
44859
44860
44861   ;
44862   return 0;
44863 }
44864 _ACEOF
44865 rm -f conftest.$ac_objext
44866 if { (ac_try="$ac_compile"
44867 case "(($ac_try" in
44868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44869   *) ac_try_echo=$ac_try;;
44870 esac
44871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44872   (eval "$ac_compile") 2>conftest.er1
44873   ac_status=$?
44874   grep -v '^ *+' conftest.er1 >conftest.err
44875   rm -f conftest.er1
44876   cat conftest.err >&5
44877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44878   (exit $ac_status); } && {
44879          test -z "$ac_c_werror_flag" ||
44880          test ! -s conftest.err
44881        } && test -s conftest.$ac_objext; then
44882   ac_cv_func_which_gethostbyname_r=five
44883
44884 else
44885   echo "$as_me: failed program was:" >&5
44886 sed 's/^/| /' conftest.$ac_ext >&5
44887
44888
44889 fi
44890
44891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44892
44893 fi
44894
44895 #
44896 # THREE ARGUMENTS
44897 # (e.g. AIX, HP-UX, Tru64)
44898 #
44899
44900 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44901
44902 cat >conftest.$ac_ext <<_ACEOF
44903 /* confdefs.h.  */
44904 _ACEOF
44905 cat confdefs.h >>conftest.$ac_ext
44906 cat >>conftest.$ac_ext <<_ACEOF
44907 /* end confdefs.h.  */
44908 #include <netdb.h>
44909 int
44910 main ()
44911 {
44912
44913             char *name = "www.gnu.org";
44914             struct hostent ret;
44915             struct hostent_data data;
44916             (void)gethostbyname_r(name, &ret, &data) /* ; */
44917
44918
44919   ;
44920   return 0;
44921 }
44922 _ACEOF
44923 rm -f conftest.$ac_objext
44924 if { (ac_try="$ac_compile"
44925 case "(($ac_try" in
44926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44927   *) ac_try_echo=$ac_try;;
44928 esac
44929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44930   (eval "$ac_compile") 2>conftest.er1
44931   ac_status=$?
44932   grep -v '^ *+' conftest.er1 >conftest.err
44933   rm -f conftest.er1
44934   cat conftest.err >&5
44935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44936   (exit $ac_status); } && {
44937          test -z "$ac_c_werror_flag" ||
44938          test ! -s conftest.err
44939        } && test -s conftest.$ac_objext; then
44940   ac_cv_func_which_gethostbyname_r=three
44941
44942 else
44943   echo "$as_me: failed program was:" >&5
44944 sed 's/^/| /' conftest.$ac_ext >&5
44945
44946
44947 fi
44948
44949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44950
44951 fi
44952
44953 ################################################################
44954
44955
44956 fi
44957
44958 case "$ac_cv_func_which_gethostbyname_r" in
44959     three)
44960     { echo "$as_me:$LINENO: result: three" >&5
44961 echo "${ECHO_T}three" >&6; }
44962     cat >>confdefs.h <<\_ACEOF
44963 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
44964 _ACEOF
44965
44966     ;;
44967
44968     five)
44969     { echo "$as_me:$LINENO: result: five" >&5
44970 echo "${ECHO_T}five" >&6; }
44971     cat >>confdefs.h <<\_ACEOF
44972 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
44973 _ACEOF
44974
44975     ;;
44976
44977     six)
44978     { echo "$as_me:$LINENO: result: six" >&5
44979 echo "${ECHO_T}six" >&6; }
44980     cat >>confdefs.h <<\_ACEOF
44981 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
44982 _ACEOF
44983
44984     ;;
44985
44986     no)
44987     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
44988 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
44989     ;;
44990
44991     unknown)
44992     { echo "$as_me:$LINENO: result: can't tell" >&5
44993 echo "${ECHO_T}can't tell" >&6; }
44994     ;;
44995
44996     *)
44997     { { echo "$as_me:$LINENO: error: internal error" >&5
44998 echo "$as_me: error: internal error" >&2;}
44999    { (exit 1); exit 1; }; }
45000     ;;
45001 esac
45002
45003 ac_ext=c
45004 ac_cpp='$CPP $CPPFLAGS'
45005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45008
45009
45010
45011       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
45012               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
45013           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
45014 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
45015 if test "${ac_cv_func_gethostbyname+set}" = set; then
45016   echo $ECHO_N "(cached) $ECHO_C" >&6
45017 else
45018   cat >conftest.$ac_ext <<_ACEOF
45019 /* confdefs.h.  */
45020 _ACEOF
45021 cat confdefs.h >>conftest.$ac_ext
45022 cat >>conftest.$ac_ext <<_ACEOF
45023 /* end confdefs.h.  */
45024 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
45025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45026 #define gethostbyname innocuous_gethostbyname
45027
45028 /* System header to define __stub macros and hopefully few prototypes,
45029     which can conflict with char gethostbyname (); below.
45030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45031     <limits.h> exists even on freestanding compilers.  */
45032
45033 #ifdef __STDC__
45034 # include <limits.h>
45035 #else
45036 # include <assert.h>
45037 #endif
45038
45039 #undef gethostbyname
45040
45041 /* Override any GCC internal prototype to avoid an error.
45042    Use char because int might match the return type of a GCC
45043    builtin and then its argument prototype would still apply.  */
45044 #ifdef __cplusplus
45045 extern "C"
45046 #endif
45047 char gethostbyname ();
45048 /* The GNU C library defines this for functions which it implements
45049     to always fail with ENOSYS.  Some functions are actually named
45050     something starting with __ and the normal name is an alias.  */
45051 #if defined __stub_gethostbyname || defined __stub___gethostbyname
45052 choke me
45053 #endif
45054
45055 int
45056 main ()
45057 {
45058 return gethostbyname ();
45059   ;
45060   return 0;
45061 }
45062 _ACEOF
45063 rm -f conftest.$ac_objext conftest$ac_exeext
45064 if { (ac_try="$ac_link"
45065 case "(($ac_try" in
45066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45067   *) ac_try_echo=$ac_try;;
45068 esac
45069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45070   (eval "$ac_link") 2>conftest.er1
45071   ac_status=$?
45072   grep -v '^ *+' conftest.er1 >conftest.err
45073   rm -f conftest.er1
45074   cat conftest.err >&5
45075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45076   (exit $ac_status); } && {
45077          test -z "$ac_c_werror_flag" ||
45078          test ! -s conftest.err
45079        } && test -s conftest$ac_exeext &&
45080        $as_test_x conftest$ac_exeext; then
45081   ac_cv_func_gethostbyname=yes
45082 else
45083   echo "$as_me: failed program was:" >&5
45084 sed 's/^/| /' conftest.$ac_ext >&5
45085
45086         ac_cv_func_gethostbyname=no
45087 fi
45088
45089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45090       conftest$ac_exeext conftest.$ac_ext
45091 fi
45092 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
45093 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
45094 if test $ac_cv_func_gethostbyname = yes; then
45095    cat >>confdefs.h <<\_ACEOF
45096 #define HAVE_GETHOSTBYNAME 1
45097 _ACEOF
45098
45099 fi
45100
45101       fi
45102
45103 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
45104 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
45105 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
45106   echo $ECHO_N "(cached) $ECHO_C" >&6
45107 else
45108
45109                 ac_ext=cpp
45110 ac_cpp='$CXXCPP $CPPFLAGS'
45111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45114
45115
45116         cat >conftest.$ac_ext <<_ACEOF
45117 /* confdefs.h.  */
45118 _ACEOF
45119 cat confdefs.h >>conftest.$ac_ext
45120 cat >>conftest.$ac_ext <<_ACEOF
45121 /* end confdefs.h.  */
45122 #include <netdb.h>
45123 int
45124 main ()
45125 {
45126
45127                 char *name;
45128                 char *proto;
45129                 struct servent *se, *res;
45130                 char buffer[2048];
45131                 int buflen = 2048;
45132                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
45133
45134   ;
45135   return 0;
45136 }
45137 _ACEOF
45138 rm -f conftest.$ac_objext
45139 if { (ac_try="$ac_compile"
45140 case "(($ac_try" in
45141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45142   *) ac_try_echo=$ac_try;;
45143 esac
45144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45145   (eval "$ac_compile") 2>conftest.er1
45146   ac_status=$?
45147   grep -v '^ *+' conftest.er1 >conftest.err
45148   rm -f conftest.er1
45149   cat conftest.err >&5
45150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45151   (exit $ac_status); } && {
45152          test -z "$ac_cxx_werror_flag" ||
45153          test ! -s conftest.err
45154        } && test -s conftest.$ac_objext; then
45155   ac_cv_func_which_getservbyname_r=six
45156 else
45157   echo "$as_me: failed program was:" >&5
45158 sed 's/^/| /' conftest.$ac_ext >&5
45159
45160
45161                 cat >conftest.$ac_ext <<_ACEOF
45162 /* confdefs.h.  */
45163 _ACEOF
45164 cat confdefs.h >>conftest.$ac_ext
45165 cat >>conftest.$ac_ext <<_ACEOF
45166 /* end confdefs.h.  */
45167 #include <netdb.h>
45168 int
45169 main ()
45170 {
45171
45172                         char *name;
45173                         char *proto;
45174                         struct servent *se;
45175                         char buffer[2048];
45176                         int buflen = 2048;
45177                         (void) getservbyname_r(name, proto, se, buffer, buflen)
45178
45179   ;
45180   return 0;
45181 }
45182 _ACEOF
45183 rm -f conftest.$ac_objext
45184 if { (ac_try="$ac_compile"
45185 case "(($ac_try" in
45186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45187   *) ac_try_echo=$ac_try;;
45188 esac
45189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45190   (eval "$ac_compile") 2>conftest.er1
45191   ac_status=$?
45192   grep -v '^ *+' conftest.er1 >conftest.err
45193   rm -f conftest.er1
45194   cat conftest.err >&5
45195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45196   (exit $ac_status); } && {
45197          test -z "$ac_cxx_werror_flag" ||
45198          test ! -s conftest.err
45199        } && test -s conftest.$ac_objext; then
45200   ac_cv_func_which_getservbyname_r=five
45201 else
45202   echo "$as_me: failed program was:" >&5
45203 sed 's/^/| /' conftest.$ac_ext >&5
45204
45205
45206                         cat >conftest.$ac_ext <<_ACEOF
45207 /* confdefs.h.  */
45208 _ACEOF
45209 cat confdefs.h >>conftest.$ac_ext
45210 cat >>conftest.$ac_ext <<_ACEOF
45211 /* end confdefs.h.  */
45212 #include <netdb.h>
45213 int
45214 main ()
45215 {
45216
45217                                 char *name;
45218                                 char *proto;
45219                                 struct servent *se;
45220                                 struct servent_data data;
45221                                 (void) getservbyname_r(name, proto, se, &data);
45222
45223   ;
45224   return 0;
45225 }
45226 _ACEOF
45227 rm -f conftest.$ac_objext
45228 if { (ac_try="$ac_compile"
45229 case "(($ac_try" in
45230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45231   *) ac_try_echo=$ac_try;;
45232 esac
45233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45234   (eval "$ac_compile") 2>conftest.er1
45235   ac_status=$?
45236   grep -v '^ *+' conftest.er1 >conftest.err
45237   rm -f conftest.er1
45238   cat conftest.err >&5
45239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45240   (exit $ac_status); } && {
45241          test -z "$ac_cxx_werror_flag" ||
45242          test ! -s conftest.err
45243        } && test -s conftest.$ac_objext; then
45244   ac_cv_func_which_getservbyname_r=four
45245 else
45246   echo "$as_me: failed program was:" >&5
45247 sed 's/^/| /' conftest.$ac_ext >&5
45248
45249         ac_cv_func_which_getservbyname_r=no
45250
45251 fi
45252
45253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45254
45255
45256 fi
45257
45258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45259
45260
45261 fi
45262
45263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45264         ac_ext=c
45265 ac_cpp='$CPP $CPPFLAGS'
45266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45269
45270
45271
45272 fi
45273 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
45274 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
45275
45276 if test $ac_cv_func_which_getservbyname_r = six; then
45277   cat >>confdefs.h <<\_ACEOF
45278 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
45279 _ACEOF
45280
45281 elif test $ac_cv_func_which_getservbyname_r = five; then
45282   cat >>confdefs.h <<\_ACEOF
45283 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
45284 _ACEOF
45285
45286 elif test $ac_cv_func_which_getservbyname_r = four; then
45287   cat >>confdefs.h <<\_ACEOF
45288 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
45289 _ACEOF
45290
45291 fi
45292
45293
45294       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
45295               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
45296
45297 for ac_func in getservbyname
45298 do
45299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45303   echo $ECHO_N "(cached) $ECHO_C" >&6
45304 else
45305   cat >conftest.$ac_ext <<_ACEOF
45306 /* confdefs.h.  */
45307 _ACEOF
45308 cat confdefs.h >>conftest.$ac_ext
45309 cat >>conftest.$ac_ext <<_ACEOF
45310 /* end confdefs.h.  */
45311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45313 #define $ac_func innocuous_$ac_func
45314
45315 /* System header to define __stub macros and hopefully few prototypes,
45316     which can conflict with char $ac_func (); below.
45317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45318     <limits.h> exists even on freestanding compilers.  */
45319
45320 #ifdef __STDC__
45321 # include <limits.h>
45322 #else
45323 # include <assert.h>
45324 #endif
45325
45326 #undef $ac_func
45327
45328 /* Override any GCC internal prototype to avoid an error.
45329    Use char because int might match the return type of a GCC
45330    builtin and then its argument prototype would still apply.  */
45331 #ifdef __cplusplus
45332 extern "C"
45333 #endif
45334 char $ac_func ();
45335 /* The GNU C library defines this for functions which it implements
45336     to always fail with ENOSYS.  Some functions are actually named
45337     something starting with __ and the normal name is an alias.  */
45338 #if defined __stub_$ac_func || defined __stub___$ac_func
45339 choke me
45340 #endif
45341
45342 int
45343 main ()
45344 {
45345 return $ac_func ();
45346   ;
45347   return 0;
45348 }
45349 _ACEOF
45350 rm -f conftest.$ac_objext conftest$ac_exeext
45351 if { (ac_try="$ac_link"
45352 case "(($ac_try" in
45353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45354   *) ac_try_echo=$ac_try;;
45355 esac
45356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45357   (eval "$ac_link") 2>conftest.er1
45358   ac_status=$?
45359   grep -v '^ *+' conftest.er1 >conftest.err
45360   rm -f conftest.er1
45361   cat conftest.err >&5
45362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45363   (exit $ac_status); } && {
45364          test -z "$ac_c_werror_flag" ||
45365          test ! -s conftest.err
45366        } && test -s conftest$ac_exeext &&
45367        $as_test_x conftest$ac_exeext; then
45368   eval "$as_ac_var=yes"
45369 else
45370   echo "$as_me: failed program was:" >&5
45371 sed 's/^/| /' conftest.$ac_ext >&5
45372
45373         eval "$as_ac_var=no"
45374 fi
45375
45376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45377       conftest$ac_exeext conftest.$ac_ext
45378 fi
45379 ac_res=`eval echo '${'$as_ac_var'}'`
45380                { echo "$as_me:$LINENO: result: $ac_res" >&5
45381 echo "${ECHO_T}$ac_res" >&6; }
45382 if test `eval echo '${'$as_ac_var'}'` = yes; then
45383   cat >>confdefs.h <<_ACEOF
45384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45385 _ACEOF
45386   cat >>confdefs.h <<\_ACEOF
45387 #define HAVE_GETSERVBYNAME 1
45388 _ACEOF
45389
45390 fi
45391 done
45392
45393       fi
45394
45395 if test "$wxUSE_THREADS" = "yes"; then
45396   cat >>confdefs.h <<\_ACEOF
45397 #define wxUSE_THREADS 1
45398 _ACEOF
45399
45400
45401   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
45402 else
45403       if test "$wx_cv_func_strtok_r" = "yes"; then
45404     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
45405 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
45406     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
45407         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
45408         { echo "$as_me:$LINENO: result: yes" >&5
45409 echo "${ECHO_T}yes" >&6; }
45410     else
45411         { echo "$as_me:$LINENO: result: no" >&5
45412 echo "${ECHO_T}no" >&6; }
45413     fi
45414   fi
45415 fi
45416
45417 if test "$WXGTK2" = 1 ; then
45418   cat >>confdefs.h <<_ACEOF
45419 #define __WXGTK20__ $WXGTK2
45420 _ACEOF
45421
45422 fi
45423
45424 if test "$WXGTK127" = 1 ; then
45425   cat >>confdefs.h <<_ACEOF
45426 #define __WXGTK127__ $WXGTK127
45427 _ACEOF
45428
45429 fi
45430
45431 if test "$WXGPE" = 1 ; then
45432   cat >>confdefs.h <<_ACEOF
45433 #define __WXGPE__ $WXGPE
45434 _ACEOF
45435
45436 fi
45437
45438 DEBUG_CFLAGS=
45439 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
45440                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
45441 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
45442 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
45443     DEBUG_CFLAGS="-g"
45444 fi
45445
45446 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
45447     wxUSE_DEBUG_INFO=yes
45448     if test "$GCC" = yes; then
45449         DEBUG_CFLAGS="-ggdb"
45450     fi
45451 fi
45452
45453 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
45454     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
45455
45456     if test "$wxUSE_GTK" = 1 ; then
45457         if test "x$wxGTK_VERSION" = "x1" ; then
45458             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
45459         else
45460             CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
45461         fi
45462     fi
45463 fi
45464
45465 if test "$wxUSE_MEM_TRACING" = "yes" ; then
45466     cat >>confdefs.h <<\_ACEOF
45467 #define wxUSE_MEMORY_TRACING 1
45468 _ACEOF
45469
45470     cat >>confdefs.h <<\_ACEOF
45471 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
45472 _ACEOF
45473
45474     cat >>confdefs.h <<\_ACEOF
45475 #define wxUSE_DEBUG_NEW_ALWAYS 1
45476 _ACEOF
45477
45478     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
45479 fi
45480
45481 if test "$wxUSE_DMALLOC" = "yes" ; then
45482     DMALLOC_LIBS="-ldmallocthcxx"
45483 fi
45484
45485 PROFILE_FLAGS=
45486 if test "$wxUSE_PROFILE" = "yes" ; then
45487     PROFILE_FLAGS=" -pg"
45488 fi
45489
45490 if test "$GCC" = "yes" ; then
45491     if test "$wxUSE_NO_RTTI" = "yes" ; then
45492                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
45493     fi
45494     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45495         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
45496     fi
45497     if test "$wxUSE_PERMISSIVE" = "yes" ; then
45498         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
45499     fi
45500
45501                                                 case "${host}" in
45502       powerpc*-*-aix* )
45503         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
45504         ;;
45505       *-hppa* )
45506         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
45507         ;;
45508     esac
45509 fi
45510
45511 OPTIMISE_CFLAGS=
45512 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
45513                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
45514 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
45515 else
45516     if test "$wxUSE_OPTIMISE" = "no" ; then
45517         if test "$GCC" = yes ; then
45518                                     OPTIMISE_CFLAGS="-O0"
45519         fi
45520     else
45521         if test "$GCC" = yes ; then
45522             case "${host}" in
45523                 *-pc-os2_emx | *-pc-os2-emx )
45524                                                             OPTIMISE_CFLAGS="-O2"
45525                 ;;
45526                 *)
45527                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
45528                 ;;
45529             esac
45530         else
45531             OPTIMISE_CFLAGS="-O"
45532         fi
45533     fi
45534 fi
45535
45536
45537 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
45538     cat >>confdefs.h <<\_ACEOF
45539 #define WXWIN_COMPATIBILITY_2_6 1
45540 _ACEOF
45541
45542
45543     WXWIN_COMPATIBILITY_2_8="yes"
45544 fi
45545
45546 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
45547     cat >>confdefs.h <<\_ACEOF
45548 #define WXWIN_COMPATIBILITY_2_8 1
45549 _ACEOF
45550
45551 fi
45552
45553
45554 if test "$wxUSE_GUI" = "yes"; then
45555     cat >>confdefs.h <<\_ACEOF
45556 #define wxUSE_GUI 1
45557 _ACEOF
45558
45559
45560                                             fi
45561
45562
45563 if test "$wxUSE_UNIX" = "yes"; then
45564   cat >>confdefs.h <<\_ACEOF
45565 #define wxUSE_UNIX 1
45566 _ACEOF
45567
45568 fi
45569
45570
45571 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
45572
45573     HAVE_DL_FUNCS=0
45574     HAVE_SHL_FUNCS=0
45575     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
45576         if test "$USE_DOS" = 1; then
45577             HAVE_DL_FUNCS=0
45578         else
45579
45580 for ac_func in dlopen
45581 do
45582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45586   echo $ECHO_N "(cached) $ECHO_C" >&6
45587 else
45588   cat >conftest.$ac_ext <<_ACEOF
45589 /* confdefs.h.  */
45590 _ACEOF
45591 cat confdefs.h >>conftest.$ac_ext
45592 cat >>conftest.$ac_ext <<_ACEOF
45593 /* end confdefs.h.  */
45594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45596 #define $ac_func innocuous_$ac_func
45597
45598 /* System header to define __stub macros and hopefully few prototypes,
45599     which can conflict with char $ac_func (); below.
45600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45601     <limits.h> exists even on freestanding compilers.  */
45602
45603 #ifdef __STDC__
45604 # include <limits.h>
45605 #else
45606 # include <assert.h>
45607 #endif
45608
45609 #undef $ac_func
45610
45611 /* Override any GCC internal prototype to avoid an error.
45612    Use char because int might match the return type of a GCC
45613    builtin and then its argument prototype would still apply.  */
45614 #ifdef __cplusplus
45615 extern "C"
45616 #endif
45617 char $ac_func ();
45618 /* The GNU C library defines this for functions which it implements
45619     to always fail with ENOSYS.  Some functions are actually named
45620     something starting with __ and the normal name is an alias.  */
45621 #if defined __stub_$ac_func || defined __stub___$ac_func
45622 choke me
45623 #endif
45624
45625 int
45626 main ()
45627 {
45628 return $ac_func ();
45629   ;
45630   return 0;
45631 }
45632 _ACEOF
45633 rm -f conftest.$ac_objext conftest$ac_exeext
45634 if { (ac_try="$ac_link"
45635 case "(($ac_try" in
45636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45637   *) ac_try_echo=$ac_try;;
45638 esac
45639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45640   (eval "$ac_link") 2>conftest.er1
45641   ac_status=$?
45642   grep -v '^ *+' conftest.er1 >conftest.err
45643   rm -f conftest.er1
45644   cat conftest.err >&5
45645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45646   (exit $ac_status); } && {
45647          test -z "$ac_c_werror_flag" ||
45648          test ! -s conftest.err
45649        } && test -s conftest$ac_exeext &&
45650        $as_test_x conftest$ac_exeext; then
45651   eval "$as_ac_var=yes"
45652 else
45653   echo "$as_me: failed program was:" >&5
45654 sed 's/^/| /' conftest.$ac_ext >&5
45655
45656         eval "$as_ac_var=no"
45657 fi
45658
45659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45660       conftest$ac_exeext conftest.$ac_ext
45661 fi
45662 ac_res=`eval echo '${'$as_ac_var'}'`
45663                { echo "$as_me:$LINENO: result: $ac_res" >&5
45664 echo "${ECHO_T}$ac_res" >&6; }
45665 if test `eval echo '${'$as_ac_var'}'` = yes; then
45666   cat >>confdefs.h <<_ACEOF
45667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45668 _ACEOF
45669
45670                 cat >>confdefs.h <<\_ACEOF
45671 #define HAVE_DLOPEN 1
45672 _ACEOF
45673
45674                 HAVE_DL_FUNCS=1
45675
45676 else
45677
45678                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
45679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
45680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
45681   echo $ECHO_N "(cached) $ECHO_C" >&6
45682 else
45683   ac_check_lib_save_LIBS=$LIBS
45684 LIBS="-ldl  $LIBS"
45685 cat >conftest.$ac_ext <<_ACEOF
45686 /* confdefs.h.  */
45687 _ACEOF
45688 cat confdefs.h >>conftest.$ac_ext
45689 cat >>conftest.$ac_ext <<_ACEOF
45690 /* end confdefs.h.  */
45691
45692 /* Override any GCC internal prototype to avoid an error.
45693    Use char because int might match the return type of a GCC
45694    builtin and then its argument prototype would still apply.  */
45695 #ifdef __cplusplus
45696 extern "C"
45697 #endif
45698 char dlopen ();
45699 int
45700 main ()
45701 {
45702 return dlopen ();
45703   ;
45704   return 0;
45705 }
45706 _ACEOF
45707 rm -f conftest.$ac_objext conftest$ac_exeext
45708 if { (ac_try="$ac_link"
45709 case "(($ac_try" in
45710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45711   *) ac_try_echo=$ac_try;;
45712 esac
45713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45714   (eval "$ac_link") 2>conftest.er1
45715   ac_status=$?
45716   grep -v '^ *+' conftest.er1 >conftest.err
45717   rm -f conftest.er1
45718   cat conftest.err >&5
45719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45720   (exit $ac_status); } && {
45721          test -z "$ac_c_werror_flag" ||
45722          test ! -s conftest.err
45723        } && test -s conftest$ac_exeext &&
45724        $as_test_x conftest$ac_exeext; then
45725   ac_cv_lib_dl_dlopen=yes
45726 else
45727   echo "$as_me: failed program was:" >&5
45728 sed 's/^/| /' conftest.$ac_ext >&5
45729
45730         ac_cv_lib_dl_dlopen=no
45731 fi
45732
45733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45734       conftest$ac_exeext conftest.$ac_ext
45735 LIBS=$ac_check_lib_save_LIBS
45736 fi
45737 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
45738 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
45739 if test $ac_cv_lib_dl_dlopen = yes; then
45740
45741                                 cat >>confdefs.h <<\_ACEOF
45742 #define HAVE_DLOPEN 1
45743 _ACEOF
45744
45745                                 HAVE_DL_FUNCS=1
45746                                 DL_LINK=" -ldl$DL_LINK"
45747
45748 else
45749
45750
45751 for ac_func in shl_load
45752 do
45753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45757   echo $ECHO_N "(cached) $ECHO_C" >&6
45758 else
45759   cat >conftest.$ac_ext <<_ACEOF
45760 /* confdefs.h.  */
45761 _ACEOF
45762 cat confdefs.h >>conftest.$ac_ext
45763 cat >>conftest.$ac_ext <<_ACEOF
45764 /* end confdefs.h.  */
45765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45767 #define $ac_func innocuous_$ac_func
45768
45769 /* System header to define __stub macros and hopefully few prototypes,
45770     which can conflict with char $ac_func (); below.
45771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45772     <limits.h> exists even on freestanding compilers.  */
45773
45774 #ifdef __STDC__
45775 # include <limits.h>
45776 #else
45777 # include <assert.h>
45778 #endif
45779
45780 #undef $ac_func
45781
45782 /* Override any GCC internal prototype to avoid an error.
45783    Use char because int might match the return type of a GCC
45784    builtin and then its argument prototype would still apply.  */
45785 #ifdef __cplusplus
45786 extern "C"
45787 #endif
45788 char $ac_func ();
45789 /* The GNU C library defines this for functions which it implements
45790     to always fail with ENOSYS.  Some functions are actually named
45791     something starting with __ and the normal name is an alias.  */
45792 #if defined __stub_$ac_func || defined __stub___$ac_func
45793 choke me
45794 #endif
45795
45796 int
45797 main ()
45798 {
45799 return $ac_func ();
45800   ;
45801   return 0;
45802 }
45803 _ACEOF
45804 rm -f conftest.$ac_objext conftest$ac_exeext
45805 if { (ac_try="$ac_link"
45806 case "(($ac_try" in
45807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45808   *) ac_try_echo=$ac_try;;
45809 esac
45810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45811   (eval "$ac_link") 2>conftest.er1
45812   ac_status=$?
45813   grep -v '^ *+' conftest.er1 >conftest.err
45814   rm -f conftest.er1
45815   cat conftest.err >&5
45816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45817   (exit $ac_status); } && {
45818          test -z "$ac_c_werror_flag" ||
45819          test ! -s conftest.err
45820        } && test -s conftest$ac_exeext &&
45821        $as_test_x conftest$ac_exeext; then
45822   eval "$as_ac_var=yes"
45823 else
45824   echo "$as_me: failed program was:" >&5
45825 sed 's/^/| /' conftest.$ac_ext >&5
45826
45827         eval "$as_ac_var=no"
45828 fi
45829
45830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45831       conftest$ac_exeext conftest.$ac_ext
45832 fi
45833 ac_res=`eval echo '${'$as_ac_var'}'`
45834                { echo "$as_me:$LINENO: result: $ac_res" >&5
45835 echo "${ECHO_T}$ac_res" >&6; }
45836 if test `eval echo '${'$as_ac_var'}'` = yes; then
45837   cat >>confdefs.h <<_ACEOF
45838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45839 _ACEOF
45840
45841                                                 cat >>confdefs.h <<\_ACEOF
45842 #define HAVE_SHL_LOAD 1
45843 _ACEOF
45844
45845                                                 HAVE_SHL_FUNCS=1
45846
45847 else
45848
45849                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
45850 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
45851 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
45852   echo $ECHO_N "(cached) $ECHO_C" >&6
45853 else
45854   ac_check_lib_save_LIBS=$LIBS
45855 LIBS="-lshl_load  $LIBS"
45856 cat >conftest.$ac_ext <<_ACEOF
45857 /* confdefs.h.  */
45858 _ACEOF
45859 cat confdefs.h >>conftest.$ac_ext
45860 cat >>conftest.$ac_ext <<_ACEOF
45861 /* end confdefs.h.  */
45862
45863 /* Override any GCC internal prototype to avoid an error.
45864    Use char because int might match the return type of a GCC
45865    builtin and then its argument prototype would still apply.  */
45866 #ifdef __cplusplus
45867 extern "C"
45868 #endif
45869 char dld ();
45870 int
45871 main ()
45872 {
45873 return dld ();
45874   ;
45875   return 0;
45876 }
45877 _ACEOF
45878 rm -f conftest.$ac_objext conftest$ac_exeext
45879 if { (ac_try="$ac_link"
45880 case "(($ac_try" in
45881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45882   *) ac_try_echo=$ac_try;;
45883 esac
45884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45885   (eval "$ac_link") 2>conftest.er1
45886   ac_status=$?
45887   grep -v '^ *+' conftest.er1 >conftest.err
45888   rm -f conftest.er1
45889   cat conftest.err >&5
45890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45891   (exit $ac_status); } && {
45892          test -z "$ac_c_werror_flag" ||
45893          test ! -s conftest.err
45894        } && test -s conftest$ac_exeext &&
45895        $as_test_x conftest$ac_exeext; then
45896   ac_cv_lib_shl_load_dld=yes
45897 else
45898   echo "$as_me: failed program was:" >&5
45899 sed 's/^/| /' conftest.$ac_ext >&5
45900
45901         ac_cv_lib_shl_load_dld=no
45902 fi
45903
45904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45905       conftest$ac_exeext conftest.$ac_ext
45906 LIBS=$ac_check_lib_save_LIBS
45907 fi
45908 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
45909 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
45910 if test $ac_cv_lib_shl_load_dld = yes; then
45911
45912                                                                 HAVE_SHL_FUNCS=1
45913                                                                 DL_LINK=" -ldld$DL_LINK"
45914
45915 fi
45916
45917
45918 fi
45919 done
45920
45921
45922 fi
45923
45924
45925 fi
45926 done
45927
45928
45929                         if test "$HAVE_DL_FUNCS" = 1; then
45930
45931 for ac_func in dlerror
45932 do
45933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45937   echo $ECHO_N "(cached) $ECHO_C" >&6
45938 else
45939   cat >conftest.$ac_ext <<_ACEOF
45940 /* confdefs.h.  */
45941 _ACEOF
45942 cat confdefs.h >>conftest.$ac_ext
45943 cat >>conftest.$ac_ext <<_ACEOF
45944 /* end confdefs.h.  */
45945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45947 #define $ac_func innocuous_$ac_func
45948
45949 /* System header to define __stub macros and hopefully few prototypes,
45950     which can conflict with char $ac_func (); below.
45951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45952     <limits.h> exists even on freestanding compilers.  */
45953
45954 #ifdef __STDC__
45955 # include <limits.h>
45956 #else
45957 # include <assert.h>
45958 #endif
45959
45960 #undef $ac_func
45961
45962 /* Override any GCC internal prototype to avoid an error.
45963    Use char because int might match the return type of a GCC
45964    builtin and then its argument prototype would still apply.  */
45965 #ifdef __cplusplus
45966 extern "C"
45967 #endif
45968 char $ac_func ();
45969 /* The GNU C library defines this for functions which it implements
45970     to always fail with ENOSYS.  Some functions are actually named
45971     something starting with __ and the normal name is an alias.  */
45972 #if defined __stub_$ac_func || defined __stub___$ac_func
45973 choke me
45974 #endif
45975
45976 int
45977 main ()
45978 {
45979 return $ac_func ();
45980   ;
45981   return 0;
45982 }
45983 _ACEOF
45984 rm -f conftest.$ac_objext conftest$ac_exeext
45985 if { (ac_try="$ac_link"
45986 case "(($ac_try" in
45987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45988   *) ac_try_echo=$ac_try;;
45989 esac
45990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45991   (eval "$ac_link") 2>conftest.er1
45992   ac_status=$?
45993   grep -v '^ *+' conftest.er1 >conftest.err
45994   rm -f conftest.er1
45995   cat conftest.err >&5
45996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45997   (exit $ac_status); } && {
45998          test -z "$ac_c_werror_flag" ||
45999          test ! -s conftest.err
46000        } && test -s conftest$ac_exeext &&
46001        $as_test_x conftest$ac_exeext; then
46002   eval "$as_ac_var=yes"
46003 else
46004   echo "$as_me: failed program was:" >&5
46005 sed 's/^/| /' conftest.$ac_ext >&5
46006
46007         eval "$as_ac_var=no"
46008 fi
46009
46010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46011       conftest$ac_exeext conftest.$ac_ext
46012 fi
46013 ac_res=`eval echo '${'$as_ac_var'}'`
46014                { echo "$as_me:$LINENO: result: $ac_res" >&5
46015 echo "${ECHO_T}$ac_res" >&6; }
46016 if test `eval echo '${'$as_ac_var'}'` = yes; then
46017   cat >>confdefs.h <<_ACEOF
46018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46019 _ACEOF
46020  cat >>confdefs.h <<\_ACEOF
46021 #define HAVE_DLERROR 1
46022 _ACEOF
46023
46024 else
46025
46026                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
46027 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
46028 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
46029   echo $ECHO_N "(cached) $ECHO_C" >&6
46030 else
46031   ac_check_lib_save_LIBS=$LIBS
46032 LIBS="-ldl  $LIBS"
46033 cat >conftest.$ac_ext <<_ACEOF
46034 /* confdefs.h.  */
46035 _ACEOF
46036 cat confdefs.h >>conftest.$ac_ext
46037 cat >>conftest.$ac_ext <<_ACEOF
46038 /* end confdefs.h.  */
46039
46040 /* Override any GCC internal prototype to avoid an error.
46041    Use char because int might match the return type of a GCC
46042    builtin and then its argument prototype would still apply.  */
46043 #ifdef __cplusplus
46044 extern "C"
46045 #endif
46046 char dlerror ();
46047 int
46048 main ()
46049 {
46050 return dlerror ();
46051   ;
46052   return 0;
46053 }
46054 _ACEOF
46055 rm -f conftest.$ac_objext conftest$ac_exeext
46056 if { (ac_try="$ac_link"
46057 case "(($ac_try" in
46058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46059   *) ac_try_echo=$ac_try;;
46060 esac
46061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46062   (eval "$ac_link") 2>conftest.er1
46063   ac_status=$?
46064   grep -v '^ *+' conftest.er1 >conftest.err
46065   rm -f conftest.er1
46066   cat conftest.err >&5
46067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46068   (exit $ac_status); } && {
46069          test -z "$ac_c_werror_flag" ||
46070          test ! -s conftest.err
46071        } && test -s conftest$ac_exeext &&
46072        $as_test_x conftest$ac_exeext; then
46073   ac_cv_lib_dl_dlerror=yes
46074 else
46075   echo "$as_me: failed program was:" >&5
46076 sed 's/^/| /' conftest.$ac_ext >&5
46077
46078         ac_cv_lib_dl_dlerror=no
46079 fi
46080
46081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46082       conftest$ac_exeext conftest.$ac_ext
46083 LIBS=$ac_check_lib_save_LIBS
46084 fi
46085 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
46086 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
46087 if test $ac_cv_lib_dl_dlerror = yes; then
46088   cat >>confdefs.h <<\_ACEOF
46089 #define HAVE_DLERROR 1
46090 _ACEOF
46091
46092 fi
46093
46094
46095
46096 fi
46097 done
46098
46099             fi
46100         fi
46101
46102                 if test "$USE_DARWIN" = 1; then
46103                         HAVE_DL_FUNCS=1
46104         fi
46105
46106         if test "$HAVE_DL_FUNCS" = 0; then
46107             if test "$HAVE_SHL_FUNCS" = 0; then
46108               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
46109                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
46110 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
46111                   wxUSE_DYNAMIC_LOADER=no
46112                   wxUSE_DYNLIB_CLASS=no
46113               else
46114                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
46115 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
46116               fi
46117             fi
46118         fi
46119     fi
46120 fi
46121
46122 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
46123     cat >>confdefs.h <<\_ACEOF
46124 #define wxUSE_DYNAMIC_LOADER 1
46125 _ACEOF
46126
46127 fi
46128 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
46129     cat >>confdefs.h <<\_ACEOF
46130 #define wxUSE_DYNLIB_CLASS 1
46131 _ACEOF
46132
46133 fi
46134
46135
46136
46137 if test "$wxUSE_PLUGINS" = "yes" ; then
46138     if test "$wxUSE_SHARED" = "no" ; then
46139         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
46140 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
46141         wxUSE_PLUGINS=no
46142     fi
46143     if test "$wxUSE_MONOLITHIC" = "yes" ; then
46144         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
46145 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
46146         wxUSE_PLUGINS=no
46147     fi
46148     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
46149         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
46150 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
46151         wxUSE_PLUGINS=no
46152     fi
46153     if test "$wxUSE_PLUGINS" = "yes" ; then
46154         cat >>confdefs.h <<\_ACEOF
46155 #define wxUSE_PLUGINS 1
46156 _ACEOF
46157
46158     fi
46159 fi
46160
46161
46162 if test "$wxUSE_FSWATCHER" = "yes"; then
46163                 if test "$wxUSE_MSW" != "1"; then
46164         if test "$wxUSE_UNIX" = "yes"; then
46165
46166 for ac_header in sys/inotify.h
46167 do
46168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46172   echo $ECHO_N "(cached) $ECHO_C" >&6
46173 else
46174   cat >conftest.$ac_ext <<_ACEOF
46175 /* confdefs.h.  */
46176 _ACEOF
46177 cat confdefs.h >>conftest.$ac_ext
46178 cat >>conftest.$ac_ext <<_ACEOF
46179 /* end confdefs.h.  */
46180 $ac_includes_default
46181
46182 #include <$ac_header>
46183 _ACEOF
46184 rm -f conftest.$ac_objext
46185 if { (ac_try="$ac_compile"
46186 case "(($ac_try" in
46187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46188   *) ac_try_echo=$ac_try;;
46189 esac
46190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46191   (eval "$ac_compile") 2>conftest.er1
46192   ac_status=$?
46193   grep -v '^ *+' conftest.er1 >conftest.err
46194   rm -f conftest.er1
46195   cat conftest.err >&5
46196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46197   (exit $ac_status); } && {
46198          test -z "$ac_c_werror_flag" ||
46199          test ! -s conftest.err
46200        } && test -s conftest.$ac_objext; then
46201   eval "$as_ac_Header=yes"
46202 else
46203   echo "$as_me: failed program was:" >&5
46204 sed 's/^/| /' conftest.$ac_ext >&5
46205
46206         eval "$as_ac_Header=no"
46207 fi
46208
46209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46210 fi
46211 ac_res=`eval echo '${'$as_ac_Header'}'`
46212                { echo "$as_me:$LINENO: result: $ac_res" >&5
46213 echo "${ECHO_T}$ac_res" >&6; }
46214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46215   cat >>confdefs.h <<_ACEOF
46216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46217 _ACEOF
46218
46219 fi
46220
46221 done
46222
46223             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
46224                 cat >>confdefs.h <<\_ACEOF
46225 #define wxHAS_INOTIFY 1
46226 _ACEOF
46227
46228             else
46229
46230 for ac_header in sys/event.h
46231 do
46232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46236   echo $ECHO_N "(cached) $ECHO_C" >&6
46237 else
46238   cat >conftest.$ac_ext <<_ACEOF
46239 /* confdefs.h.  */
46240 _ACEOF
46241 cat confdefs.h >>conftest.$ac_ext
46242 cat >>conftest.$ac_ext <<_ACEOF
46243 /* end confdefs.h.  */
46244 $ac_includes_default
46245
46246 #include <$ac_header>
46247 _ACEOF
46248 rm -f conftest.$ac_objext
46249 if { (ac_try="$ac_compile"
46250 case "(($ac_try" in
46251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46252   *) ac_try_echo=$ac_try;;
46253 esac
46254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46255   (eval "$ac_compile") 2>conftest.er1
46256   ac_status=$?
46257   grep -v '^ *+' conftest.er1 >conftest.err
46258   rm -f conftest.er1
46259   cat conftest.err >&5
46260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46261   (exit $ac_status); } && {
46262          test -z "$ac_c_werror_flag" ||
46263          test ! -s conftest.err
46264        } && test -s conftest.$ac_objext; then
46265   eval "$as_ac_Header=yes"
46266 else
46267   echo "$as_me: failed program was:" >&5
46268 sed 's/^/| /' conftest.$ac_ext >&5
46269
46270         eval "$as_ac_Header=no"
46271 fi
46272
46273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46274 fi
46275 ac_res=`eval echo '${'$as_ac_Header'}'`
46276                { echo "$as_me:$LINENO: result: $ac_res" >&5
46277 echo "${ECHO_T}$ac_res" >&6; }
46278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46279   cat >>confdefs.h <<_ACEOF
46280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46281 _ACEOF
46282
46283 fi
46284
46285 done
46286
46287                 if test "$ac_cv_header_sys_event_h" = "yes"; then
46288                     cat >>confdefs.h <<\_ACEOF
46289 #define wxHAS_KQUEUE 1
46290 _ACEOF
46291
46292                 else
46293                     wxUSE_FSWATCHER=no
46294                 fi
46295             fi
46296         else
46297             wxUSE_FSWATCHER=no
46298         fi
46299     else
46300         if test "$wxUSE_THREADS" != "yes"; then
46301             { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5
46302 echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;}
46303             wxUSE_FSWATCHER=no
46304         fi
46305     fi
46306
46307     if test "$wxUSE_FSWATCHER" = "yes"; then
46308         cat >>confdefs.h <<\_ACEOF
46309 #define wxUSE_FSWATCHER 1
46310 _ACEOF
46311
46312         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
46313     else
46314         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
46315 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
46316     fi
46317 fi
46318
46319
46320 if test "$wxUSE_STL" = "yes"; then
46321   cat >>confdefs.h <<\_ACEOF
46322 #define wxUSE_STL 1
46323 _ACEOF
46324
46325 fi
46326
46327 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
46328   cat >>confdefs.h <<\_ACEOF
46329 #define wxUSE_EXTENDED_RTTI 1
46330 _ACEOF
46331
46332 fi
46333
46334 if test "$wxUSE_ANY" = "yes"; then
46335     cat >>confdefs.h <<\_ACEOF
46336 #define wxUSE_ANY 1
46337 _ACEOF
46338
46339 fi
46340
46341 if test "$wxUSE_APPLE_IEEE" = "yes"; then
46342   cat >>confdefs.h <<\_ACEOF
46343 #define wxUSE_APPLE_IEEE 1
46344 _ACEOF
46345
46346 fi
46347
46348 if test "$wxUSE_TIMER" = "yes"; then
46349   cat >>confdefs.h <<\_ACEOF
46350 #define wxUSE_TIMER 1
46351 _ACEOF
46352
46353 fi
46354
46355 if test "$USE_UNIX" = 1 ; then
46356         if test "$wxUSE_MGL" != 1; then
46357                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
46358 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
46359 if test "${ac_cv_header_sys_soundcard+set}" = set; then
46360   echo $ECHO_N "(cached) $ECHO_C" >&6
46361 else
46362
46363             cat >conftest.$ac_ext <<_ACEOF
46364 /* confdefs.h.  */
46365 _ACEOF
46366 cat confdefs.h >>conftest.$ac_ext
46367 cat >>conftest.$ac_ext <<_ACEOF
46368 /* end confdefs.h.  */
46369
46370                     #include <sys/ioctl.h>
46371                     #include <sys/soundcard.h>
46372
46373 int
46374 main ()
46375 {
46376
46377                     ioctl(0, SNDCTL_DSP_SPEED, 0);
46378
46379   ;
46380   return 0;
46381 }
46382 _ACEOF
46383 rm -f conftest.$ac_objext conftest$ac_exeext
46384 if { (ac_try="$ac_link"
46385 case "(($ac_try" in
46386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46387   *) ac_try_echo=$ac_try;;
46388 esac
46389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46390   (eval "$ac_link") 2>conftest.er1
46391   ac_status=$?
46392   grep -v '^ *+' conftest.er1 >conftest.err
46393   rm -f conftest.er1
46394   cat conftest.err >&5
46395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46396   (exit $ac_status); } && {
46397          test -z "$ac_c_werror_flag" ||
46398          test ! -s conftest.err
46399        } && test -s conftest$ac_exeext &&
46400        $as_test_x conftest$ac_exeext; then
46401   ac_cv_header_sys_soundcard=yes
46402 else
46403   echo "$as_me: failed program was:" >&5
46404 sed 's/^/| /' conftest.$ac_ext >&5
46405
46406
46407                     saveLibs="$LIBS"
46408                     LIBS="$saveLibs -lossaudio"
46409                     cat >conftest.$ac_ext <<_ACEOF
46410 /* confdefs.h.  */
46411 _ACEOF
46412 cat confdefs.h >>conftest.$ac_ext
46413 cat >>conftest.$ac_ext <<_ACEOF
46414 /* end confdefs.h.  */
46415
46416                             #include <sys/ioctl.h>
46417                             #include <sys/soundcard.h>
46418
46419 int
46420 main ()
46421 {
46422
46423                             ioctl(0, SNDCTL_DSP_SPEED, 0);
46424
46425   ;
46426   return 0;
46427 }
46428 _ACEOF
46429 rm -f conftest.$ac_objext conftest$ac_exeext
46430 if { (ac_try="$ac_link"
46431 case "(($ac_try" in
46432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46433   *) ac_try_echo=$ac_try;;
46434 esac
46435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46436   (eval "$ac_link") 2>conftest.er1
46437   ac_status=$?
46438   grep -v '^ *+' conftest.er1 >conftest.err
46439   rm -f conftest.er1
46440   cat conftest.err >&5
46441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46442   (exit $ac_status); } && {
46443          test -z "$ac_c_werror_flag" ||
46444          test ! -s conftest.err
46445        } && test -s conftest$ac_exeext &&
46446        $as_test_x conftest$ac_exeext; then
46447   ac_cv_header_sys_soundcard=yes
46448 else
46449   echo "$as_me: failed program was:" >&5
46450 sed 's/^/| /' conftest.$ac_ext >&5
46451
46452
46453                             LIBS="$saveLibs"
46454                             ac_cv_header_sys_soundcard=no
46455
46456
46457 fi
46458
46459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46460       conftest$ac_exeext conftest.$ac_ext
46461
46462
46463 fi
46464
46465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46466       conftest$ac_exeext conftest.$ac_ext
46467
46468 fi
46469 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
46470 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
46471     fi
46472
46473     if test "$ac_cv_header_sys_soundcard" = "yes"; then
46474         cat >>confdefs.h <<\_ACEOF
46475 #define HAVE_SYS_SOUNDCARD_H 1
46476 _ACEOF
46477
46478     fi
46479 fi
46480
46481 WITH_PLUGIN_SDL=0
46482 if test "$wxUSE_SOUND" = "yes"; then
46483   if test "$USE_UNIX" = 1 ; then
46484     if test "$wxUSE_LIBSDL" != "no"; then
46485
46486 # Check whether --with-sdl-prefix was given.
46487 if test "${with_sdl_prefix+set}" = set; then
46488   withval=$with_sdl_prefix; sdl_prefix="$withval"
46489 else
46490   sdl_prefix=""
46491 fi
46492
46493
46494 # Check whether --with-sdl-exec-prefix was given.
46495 if test "${with_sdl_exec_prefix+set}" = set; then
46496   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
46497 else
46498   sdl_exec_prefix=""
46499 fi
46500
46501 # Check whether --enable-sdltest was given.
46502 if test "${enable_sdltest+set}" = set; then
46503   enableval=$enable_sdltest;
46504 else
46505   enable_sdltest=yes
46506 fi
46507
46508
46509   if test x$sdl_exec_prefix != x ; then
46510     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
46511     if test x${SDL_CONFIG+set} != xset ; then
46512       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
46513     fi
46514   fi
46515   if test x$sdl_prefix != x ; then
46516     sdl_args="$sdl_args --prefix=$sdl_prefix"
46517     if test x${SDL_CONFIG+set} != xset ; then
46518       SDL_CONFIG=$sdl_prefix/bin/sdl-config
46519     fi
46520   fi
46521
46522   if test "x$prefix" != xNONE; then
46523     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
46524   fi
46525   # Extract the first word of "sdl-config", so it can be a program name with args.
46526 set dummy sdl-config; ac_word=$2
46527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46529 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
46530   echo $ECHO_N "(cached) $ECHO_C" >&6
46531 else
46532   case $SDL_CONFIG in
46533   [\\/]* | ?:[\\/]*)
46534   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
46535   ;;
46536   *)
46537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46538 for as_dir in $PATH
46539 do
46540   IFS=$as_save_IFS
46541   test -z "$as_dir" && as_dir=.
46542   for ac_exec_ext in '' $ac_executable_extensions; do
46543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46544     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46546     break 2
46547   fi
46548 done
46549 done
46550 IFS=$as_save_IFS
46551
46552   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
46553   ;;
46554 esac
46555 fi
46556 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
46557 if test -n "$SDL_CONFIG"; then
46558   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
46559 echo "${ECHO_T}$SDL_CONFIG" >&6; }
46560 else
46561   { echo "$as_me:$LINENO: result: no" >&5
46562 echo "${ECHO_T}no" >&6; }
46563 fi
46564
46565
46566   min_sdl_version=1.2.0
46567   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
46568 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
46569   no_sdl=""
46570   if test "$SDL_CONFIG" = "no" ; then
46571     no_sdl=yes
46572   else
46573     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
46574     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
46575
46576     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
46577            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46578     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
46579            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46580     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
46581            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46582     if test "x$enable_sdltest" = "xyes" ; then
46583       ac_save_CFLAGS="$CFLAGS"
46584       ac_save_CXXFLAGS="$CXXFLAGS"
46585       ac_save_LIBS="$LIBS"
46586       CFLAGS="$CFLAGS $SDL_CFLAGS"
46587       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
46588       LIBS="$LIBS $SDL_LIBS"
46589       rm -f conf.sdltest
46590       if test "$cross_compiling" = yes; then
46591   echo $ac_n "cross compiling; assumed OK... $ac_c"
46592 else
46593   cat >conftest.$ac_ext <<_ACEOF
46594 /* confdefs.h.  */
46595 _ACEOF
46596 cat confdefs.h >>conftest.$ac_ext
46597 cat >>conftest.$ac_ext <<_ACEOF
46598 /* end confdefs.h.  */
46599
46600 #include <stdio.h>
46601 #include <stdlib.h>
46602 #include <string.h>
46603 #include "SDL.h"
46604
46605 char*
46606 my_strdup (char *str)
46607 {
46608   char *new_str;
46609
46610   if (str)
46611     {
46612       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
46613       strcpy (new_str, str);
46614     }
46615   else
46616     new_str = NULL;
46617
46618   return new_str;
46619 }
46620
46621 int main (int argc, char *argv[])
46622 {
46623   int major, minor, micro;
46624   char *tmp_version;
46625
46626   /* This hangs on some systems (?)
46627   system ("touch conf.sdltest");
46628   */
46629   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
46630
46631   /* HP/UX 9 (%@#!) writes to sscanf strings */
46632   tmp_version = my_strdup("$min_sdl_version");
46633   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
46634      printf("%s, bad version string\n", "$min_sdl_version");
46635      exit(1);
46636    }
46637
46638    if (($sdl_major_version > major) ||
46639       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
46640       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
46641     {
46642       return 0;
46643     }
46644   else
46645     {
46646       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
46647       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
46648       printf("*** best to upgrade to the required version.\n");
46649       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
46650       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
46651       printf("*** config.cache before re-running configure\n");
46652       return 1;
46653     }
46654 }
46655
46656
46657 _ACEOF
46658 rm -f conftest$ac_exeext
46659 if { (ac_try="$ac_link"
46660 case "(($ac_try" in
46661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46662   *) ac_try_echo=$ac_try;;
46663 esac
46664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46665   (eval "$ac_link") 2>&5
46666   ac_status=$?
46667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46669   { (case "(($ac_try" in
46670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46671   *) ac_try_echo=$ac_try;;
46672 esac
46673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46674   (eval "$ac_try") 2>&5
46675   ac_status=$?
46676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46677   (exit $ac_status); }; }; then
46678   :
46679 else
46680   echo "$as_me: program exited with status $ac_status" >&5
46681 echo "$as_me: failed program was:" >&5
46682 sed 's/^/| /' conftest.$ac_ext >&5
46683
46684 ( exit $ac_status )
46685 no_sdl=yes
46686 fi
46687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46688 fi
46689
46690
46691        CFLAGS="$ac_save_CFLAGS"
46692        CXXFLAGS="$ac_save_CXXFLAGS"
46693        LIBS="$ac_save_LIBS"
46694      fi
46695   fi
46696   if test "x$no_sdl" = x ; then
46697      { echo "$as_me:$LINENO: result: yes" >&5
46698 echo "${ECHO_T}yes" >&6; }
46699
46700                     EXTRALIBS_SDL="$SDL_LIBS"
46701                     CFLAGS="$SDL_CFLAGS $CFLAGS"
46702                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
46703                     cat >>confdefs.h <<\_ACEOF
46704 #define wxUSE_LIBSDL 1
46705 _ACEOF
46706
46707
46708   else
46709      { echo "$as_me:$LINENO: result: no" >&5
46710 echo "${ECHO_T}no" >&6; }
46711      if test "$SDL_CONFIG" = "no" ; then
46712        echo "*** The sdl-config script installed by SDL could not be found"
46713        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
46714        echo "*** your path, or set the SDL_CONFIG environment variable to the"
46715        echo "*** full path to sdl-config."
46716      else
46717        if test -f conf.sdltest ; then
46718         :
46719        else
46720           echo "*** Could not run SDL test program, checking why..."
46721           CFLAGS="$CFLAGS $SDL_CFLAGS"
46722           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
46723           LIBS="$LIBS $SDL_LIBS"
46724           cat >conftest.$ac_ext <<_ACEOF
46725 /* confdefs.h.  */
46726 _ACEOF
46727 cat confdefs.h >>conftest.$ac_ext
46728 cat >>conftest.$ac_ext <<_ACEOF
46729 /* end confdefs.h.  */
46730
46731 #include <stdio.h>
46732 #include "SDL.h"
46733
46734 int main(int argc, char *argv[])
46735 { return 0; }
46736 #undef  main
46737 #define main K_and_R_C_main
46738
46739 int
46740 main ()
46741 {
46742  return 0;
46743   ;
46744   return 0;
46745 }
46746 _ACEOF
46747 rm -f conftest.$ac_objext conftest$ac_exeext
46748 if { (ac_try="$ac_link"
46749 case "(($ac_try" in
46750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46751   *) ac_try_echo=$ac_try;;
46752 esac
46753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46754   (eval "$ac_link") 2>conftest.er1
46755   ac_status=$?
46756   grep -v '^ *+' conftest.er1 >conftest.err
46757   rm -f conftest.er1
46758   cat conftest.err >&5
46759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46760   (exit $ac_status); } && {
46761          test -z "$ac_c_werror_flag" ||
46762          test ! -s conftest.err
46763        } && test -s conftest$ac_exeext &&
46764        $as_test_x conftest$ac_exeext; then
46765    echo "*** The test program compiled, but did not run. This usually means"
46766           echo "*** that the run-time linker is not finding SDL or finding the wrong"
46767           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
46768           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
46769           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
46770           echo "*** is required on your system"
46771           echo "***"
46772           echo "*** If you have an old version installed, it is best to remove it, although"
46773           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
46774 else
46775   echo "$as_me: failed program was:" >&5
46776 sed 's/^/| /' conftest.$ac_ext >&5
46777
46778          echo "*** The test program failed to compile or link. See the file config.log for the"
46779           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
46780           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
46781           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
46782 fi
46783
46784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46785       conftest$ac_exeext conftest.$ac_ext
46786           CFLAGS="$ac_save_CFLAGS"
46787           CXXFLAGS="$ac_save_CXXFLAGS"
46788           LIBS="$ac_save_LIBS"
46789        fi
46790      fi
46791      SDL_CFLAGS=""
46792      SDL_LIBS=""
46793      wxUSE_LIBSDL="no"
46794   fi
46795
46796
46797   rm -f conf.sdltest
46798
46799       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
46800         WITH_PLUGIN_SDL=1
46801       fi
46802     fi
46803   else
46804         if test "$wxUSE_MGL" = 1; then
46805         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
46806 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
46807         wxUSE_SOUND="no"
46808     fi
46809   fi
46810 fi
46811
46812 if test "$wxUSE_SOUND" = "yes"; then
46813   cat >>confdefs.h <<\_ACEOF
46814 #define wxUSE_SOUND 1
46815 _ACEOF
46816
46817   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
46818 fi
46819
46820 if test "$WXGTK2" = 1; then
46821
46822
46823 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
46824         if test -n "$ac_tool_prefix"; then
46825   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
46826 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
46827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46829 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
46830   echo $ECHO_N "(cached) $ECHO_C" >&6
46831 else
46832   case $PKG_CONFIG in
46833   [\\/]* | ?:[\\/]*)
46834   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
46835   ;;
46836   *)
46837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46838 for as_dir in $PATH
46839 do
46840   IFS=$as_save_IFS
46841   test -z "$as_dir" && as_dir=.
46842   for ac_exec_ext in '' $ac_executable_extensions; do
46843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46844     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46846     break 2
46847   fi
46848 done
46849 done
46850 IFS=$as_save_IFS
46851
46852   ;;
46853 esac
46854 fi
46855 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
46856 if test -n "$PKG_CONFIG"; then
46857   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
46858 echo "${ECHO_T}$PKG_CONFIG" >&6; }
46859 else
46860   { echo "$as_me:$LINENO: result: no" >&5
46861 echo "${ECHO_T}no" >&6; }
46862 fi
46863
46864
46865 fi
46866 if test -z "$ac_cv_path_PKG_CONFIG"; then
46867   ac_pt_PKG_CONFIG=$PKG_CONFIG
46868   # Extract the first word of "pkg-config", so it can be a program name with args.
46869 set dummy pkg-config; ac_word=$2
46870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46872 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
46873   echo $ECHO_N "(cached) $ECHO_C" >&6
46874 else
46875   case $ac_pt_PKG_CONFIG in
46876   [\\/]* | ?:[\\/]*)
46877   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
46878   ;;
46879   *)
46880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46881 for as_dir in $PATH
46882 do
46883   IFS=$as_save_IFS
46884   test -z "$as_dir" && as_dir=.
46885   for ac_exec_ext in '' $ac_executable_extensions; do
46886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46887     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46889     break 2
46890   fi
46891 done
46892 done
46893 IFS=$as_save_IFS
46894
46895   ;;
46896 esac
46897 fi
46898 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
46899 if test -n "$ac_pt_PKG_CONFIG"; then
46900   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
46901 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
46902 else
46903   { echo "$as_me:$LINENO: result: no" >&5
46904 echo "${ECHO_T}no" >&6; }
46905 fi
46906
46907   if test "x$ac_pt_PKG_CONFIG" = x; then
46908     PKG_CONFIG=""
46909   else
46910     case $cross_compiling:$ac_tool_warned in
46911 yes:)
46912 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46913 whose name does not start with the host triplet.  If you think this
46914 configuration is useful to you, please write to autoconf@gnu.org." >&5
46915 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46916 whose name does not start with the host triplet.  If you think this
46917 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46918 ac_tool_warned=yes ;;
46919 esac
46920     PKG_CONFIG=$ac_pt_PKG_CONFIG
46921   fi
46922 else
46923   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
46924 fi
46925
46926 fi
46927 if test -n "$PKG_CONFIG"; then
46928         _pkg_min_version=0.9.0
46929         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
46930 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
46931         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
46932                 { echo "$as_me:$LINENO: result: yes" >&5
46933 echo "${ECHO_T}yes" >&6; }
46934         else
46935                 { echo "$as_me:$LINENO: result: no" >&5
46936 echo "${ECHO_T}no" >&6; }
46937                 PKG_CONFIG=""
46938         fi
46939
46940 fi
46941
46942     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
46943
46944         if test "$wxUSE_GTKPRINT" = "yes" ; then
46945
46946
46947 pkg_failed=no
46948 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
46949 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
46950
46951 if test -n "$PKG_CONFIG"; then
46952     if test -n "$GTKPRINT_CFLAGS"; then
46953         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
46954     else
46955         if test -n "$PKG_CONFIG" && \
46956     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
46957   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
46958   ac_status=$?
46959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46960   (exit $ac_status); }; then
46961   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
46962 else
46963   pkg_failed=yes
46964 fi
46965     fi
46966 else
46967         pkg_failed=untried
46968 fi
46969 if test -n "$PKG_CONFIG"; then
46970     if test -n "$GTKPRINT_LIBS"; then
46971         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
46972     else
46973         if test -n "$PKG_CONFIG" && \
46974     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
46975   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
46976   ac_status=$?
46977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46978   (exit $ac_status); }; then
46979   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
46980 else
46981   pkg_failed=yes
46982 fi
46983     fi
46984 else
46985         pkg_failed=untried
46986 fi
46987
46988
46989
46990 if test $pkg_failed = yes; then
46991
46992 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46993         _pkg_short_errors_supported=yes
46994 else
46995         _pkg_short_errors_supported=no
46996 fi
46997         if test $_pkg_short_errors_supported = yes; then
46998                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
46999         else
47000                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
47001         fi
47002         # Put the nasty error message in config.log where it belongs
47003         echo "$GTKPRINT_PKG_ERRORS" >&5
47004
47005
47006                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
47007 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
47008                         wxUSE_GTKPRINT="no"
47009
47010
47011 elif test $pkg_failed = untried; then
47012
47013                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
47014 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
47015                         wxUSE_GTKPRINT="no"
47016
47017
47018 else
47019         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
47020         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
47021         { echo "$as_me:$LINENO: result: yes" >&5
47022 echo "${ECHO_T}yes" >&6; }
47023
47024                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
47025                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
47026                         cat >>confdefs.h <<\_ACEOF
47027 #define wxUSE_GTKPRINT 1
47028 _ACEOF
47029
47030
47031 fi
47032         fi
47033
47034         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47035
47036
47037 pkg_failed=no
47038 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
47039 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
47040
47041 if test -n "$PKG_CONFIG"; then
47042     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
47043         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
47044     else
47045         if test -n "$PKG_CONFIG" && \
47046     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
47047   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
47048   ac_status=$?
47049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47050   (exit $ac_status); }; then
47051   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
47052 else
47053   pkg_failed=yes
47054 fi
47055     fi
47056 else
47057         pkg_failed=untried
47058 fi
47059 if test -n "$PKG_CONFIG"; then
47060     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
47061         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
47062     else
47063         if test -n "$PKG_CONFIG" && \
47064     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
47065   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
47066   ac_status=$?
47067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47068   (exit $ac_status); }; then
47069   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
47070 else
47071   pkg_failed=yes
47072 fi
47073     fi
47074 else
47075         pkg_failed=untried
47076 fi
47077
47078
47079
47080 if test $pkg_failed = yes; then
47081
47082 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47083         _pkg_short_errors_supported=yes
47084 else
47085         _pkg_short_errors_supported=no
47086 fi
47087         if test $_pkg_short_errors_supported = yes; then
47088                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
47089         else
47090                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
47091         fi
47092         # Put the nasty error message in config.log where it belongs
47093         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
47094
47095
47096                         if test "$wxUSE_GTKPRINT" = yes; then
47097                             { echo "$as_me:$LINENO: result: no" >&5
47098 echo "${ECHO_T}no" >&6; }
47099                         else
47100                             { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
47101 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
47102                         fi
47103                         wxUSE_LIBGNOMEPRINT="no"
47104
47105
47106 elif test $pkg_failed = untried; then
47107
47108                         if test "$wxUSE_GTKPRINT" = yes; then
47109                             { echo "$as_me:$LINENO: result: no" >&5
47110 echo "${ECHO_T}no" >&6; }
47111                         else
47112                             { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
47113 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
47114                         fi
47115                         wxUSE_LIBGNOMEPRINT="no"
47116
47117
47118 else
47119         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
47120         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
47121         { echo "$as_me:$LINENO: result: yes" >&5
47122 echo "${ECHO_T}yes" >&6; }
47123
47124                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
47125                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
47126                         cat >>confdefs.h <<\_ACEOF
47127 #define wxUSE_LIBGNOMEPRINT 1
47128 _ACEOF
47129
47130
47131 fi
47132         fi
47133     fi
47134
47135     if test "$wxUSE_MIMETYPE" = "yes" ; then
47136         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47137
47138
47139 pkg_failed=no
47140 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
47141 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
47142
47143 if test -n "$PKG_CONFIG"; then
47144     if test -n "$GNOMEVFS_CFLAGS"; then
47145         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
47146     else
47147         if test -n "$PKG_CONFIG" && \
47148     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
47149   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
47150   ac_status=$?
47151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47152   (exit $ac_status); }; then
47153   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
47154 else
47155   pkg_failed=yes
47156 fi
47157     fi
47158 else
47159         pkg_failed=untried
47160 fi
47161 if test -n "$PKG_CONFIG"; then
47162     if test -n "$GNOMEVFS_LIBS"; then
47163         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
47164     else
47165         if test -n "$PKG_CONFIG" && \
47166     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
47167   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
47168   ac_status=$?
47169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47170   (exit $ac_status); }; then
47171   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
47172 else
47173   pkg_failed=yes
47174 fi
47175     fi
47176 else
47177         pkg_failed=untried
47178 fi
47179
47180
47181
47182 if test $pkg_failed = yes; then
47183
47184 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47185         _pkg_short_errors_supported=yes
47186 else
47187         _pkg_short_errors_supported=no
47188 fi
47189         if test $_pkg_short_errors_supported = yes; then
47190                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
47191         else
47192                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
47193         fi
47194         # Put the nasty error message in config.log where it belongs
47195         echo "$GNOMEVFS_PKG_ERRORS" >&5
47196
47197
47198                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
47199 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
47200                         wxUSE_LIBGNOMEVFS="no"
47201
47202
47203 elif test $pkg_failed = untried; then
47204
47205                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
47206 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
47207                         wxUSE_LIBGNOMEVFS="no"
47208
47209
47210 else
47211         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
47212         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
47213         { echo "$as_me:$LINENO: result: yes" >&5
47214 echo "${ECHO_T}yes" >&6; }
47215
47216                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
47217                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
47218                         cat >>confdefs.h <<\_ACEOF
47219 #define wxUSE_LIBGNOMEVFS 1
47220 _ACEOF
47221
47222
47223 fi
47224         fi
47225     fi
47226
47227     if test "$wxUSE_LIBHILDON" = "yes" ; then
47228
47229 pkg_failed=no
47230 { echo "$as_me:$LINENO: checking for HILDON" >&5
47231 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
47232
47233 if test -n "$PKG_CONFIG"; then
47234     if test -n "$HILDON_CFLAGS"; then
47235         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
47236     else
47237         if test -n "$PKG_CONFIG" && \
47238     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
47239   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
47240   ac_status=$?
47241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47242   (exit $ac_status); }; then
47243   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
47244 else
47245   pkg_failed=yes
47246 fi
47247     fi
47248 else
47249         pkg_failed=untried
47250 fi
47251 if test -n "$PKG_CONFIG"; then
47252     if test -n "$HILDON_LIBS"; then
47253         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
47254     else
47255         if test -n "$PKG_CONFIG" && \
47256     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
47257   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
47258   ac_status=$?
47259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47260   (exit $ac_status); }; then
47261   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
47262 else
47263   pkg_failed=yes
47264 fi
47265     fi
47266 else
47267         pkg_failed=untried
47268 fi
47269
47270
47271
47272 if test $pkg_failed = yes; then
47273
47274 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47275         _pkg_short_errors_supported=yes
47276 else
47277         _pkg_short_errors_supported=no
47278 fi
47279         if test $_pkg_short_errors_supported = yes; then
47280                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
47281         else
47282                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
47283         fi
47284         # Put the nasty error message in config.log where it belongs
47285         echo "$HILDON_PKG_ERRORS" >&5
47286
47287
47288                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
47289 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
47290                         wxUSE_LIBHILDON="no"
47291                         ac_hildon_lgpl=0
47292
47293
47294 elif test $pkg_failed = untried; then
47295
47296                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
47297 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
47298                         wxUSE_LIBHILDON="no"
47299                         ac_hildon_lgpl=0
47300
47301
47302 else
47303         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
47304         HILDON_LIBS=$pkg_cv_HILDON_LIBS
47305         { echo "$as_me:$LINENO: result: yes" >&5
47306 echo "${ECHO_T}yes" >&6; }
47307
47308                 EXTRALIBS_HILDON="$HILDON_LIBS"
47309                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
47310                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
47311                 cat >>confdefs.h <<\_ACEOF
47312 #define wxUSE_LIBHILDON 1
47313 _ACEOF
47314
47315                 ac_hildon_lgpl=1
47316
47317 fi
47318
47319         if test "$ac_hildon_lgpl" = 0 ; then
47320
47321 pkg_failed=no
47322 { echo "$as_me:$LINENO: checking for HILDON2" >&5
47323 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
47324
47325 if test -n "$PKG_CONFIG"; then
47326     if test -n "$HILDON2_CFLAGS"; then
47327         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
47328     else
47329         if test -n "$PKG_CONFIG" && \
47330     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
47331   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
47332   ac_status=$?
47333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47334   (exit $ac_status); }; then
47335   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
47336 else
47337   pkg_failed=yes
47338 fi
47339     fi
47340 else
47341         pkg_failed=untried
47342 fi
47343 if test -n "$PKG_CONFIG"; then
47344     if test -n "$HILDON2_LIBS"; then
47345         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
47346     else
47347         if test -n "$PKG_CONFIG" && \
47348     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
47349   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
47350   ac_status=$?
47351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47352   (exit $ac_status); }; then
47353   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
47354 else
47355   pkg_failed=yes
47356 fi
47357     fi
47358 else
47359         pkg_failed=untried
47360 fi
47361
47362
47363
47364 if test $pkg_failed = yes; then
47365
47366 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47367         _pkg_short_errors_supported=yes
47368 else
47369         _pkg_short_errors_supported=no
47370 fi
47371         if test $_pkg_short_errors_supported = yes; then
47372                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
47373         else
47374                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
47375         fi
47376         # Put the nasty error message in config.log where it belongs
47377         echo "$HILDON2_PKG_ERRORS" >&5
47378
47379
47380                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
47381 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
47382                             wxUSE_LIBHILDON2="no"
47383
47384
47385 elif test $pkg_failed = untried; then
47386
47387                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
47388 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
47389                             wxUSE_LIBHILDON2="no"
47390
47391
47392 else
47393         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
47394         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
47395         { echo "$as_me:$LINENO: result: yes" >&5
47396 echo "${ECHO_T}yes" >&6; }
47397
47398                     EXTRALIBS_HILDON="$HILDON2_LIBS"
47399                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
47400                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
47401                     cat >>confdefs.h <<\_ACEOF
47402 #define wxUSE_LIBHILDON2 1
47403 _ACEOF
47404
47405
47406 fi
47407         fi
47408     fi
47409 fi
47410
47411 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
47412   cat >>confdefs.h <<\_ACEOF
47413 #define wxUSE_CMDLINE_PARSER 1
47414 _ACEOF
47415
47416 fi
47417
47418 if test "$wxUSE_STOPWATCH" = "yes"; then
47419   cat >>confdefs.h <<\_ACEOF
47420 #define wxUSE_STOPWATCH 1
47421 _ACEOF
47422
47423 fi
47424
47425 if test "$wxUSE_DATETIME" = "yes"; then
47426   cat >>confdefs.h <<\_ACEOF
47427 #define wxUSE_DATETIME 1
47428 _ACEOF
47429
47430 fi
47431
47432 if test "$wxUSE_FILE" = "yes"; then
47433   cat >>confdefs.h <<\_ACEOF
47434 #define wxUSE_FILE 1
47435 _ACEOF
47436
47437 fi
47438
47439 if test "$wxUSE_FFILE" = "yes"; then
47440   cat >>confdefs.h <<\_ACEOF
47441 #define wxUSE_FFILE 1
47442 _ACEOF
47443
47444 fi
47445
47446 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
47447   if test "$wxUSE_STREAMS" != yes; then
47448     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
47449 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
47450     wxUSE_ARCHIVE_STREAMS=no
47451   else
47452     cat >>confdefs.h <<\_ACEOF
47453 #define wxUSE_ARCHIVE_STREAMS 1
47454 _ACEOF
47455
47456   fi
47457 fi
47458
47459 if test "$wxUSE_ZIPSTREAM" = "yes"; then
47460   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
47461     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
47462 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
47463   elif test "$wxUSE_ZLIB" = "no"; then
47464     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
47465 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
47466   else
47467     cat >>confdefs.h <<\_ACEOF
47468 #define wxUSE_ZIPSTREAM 1
47469 _ACEOF
47470
47471   fi
47472 fi
47473
47474 if test "$wxUSE_TARSTREAM" = "yes"; then
47475   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
47476     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
47477 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
47478   else
47479     cat >>confdefs.h <<\_ACEOF
47480 #define wxUSE_TARSTREAM 1
47481 _ACEOF
47482
47483   fi
47484 fi
47485
47486 if test "$wxUSE_FILE_HISTORY" = "yes"; then
47487   cat >>confdefs.h <<\_ACEOF
47488 #define wxUSE_FILE_HISTORY 1
47489 _ACEOF
47490
47491 fi
47492
47493 if test "$wxUSE_FILESYSTEM" = "yes"; then
47494   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
47495     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
47496 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
47497     wxUSE_FILESYSTEM=no
47498   else
47499     cat >>confdefs.h <<\_ACEOF
47500 #define wxUSE_FILESYSTEM 1
47501 _ACEOF
47502
47503   fi
47504 fi
47505
47506 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
47507   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
47508     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
47509 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
47510   else
47511     cat >>confdefs.h <<\_ACEOF
47512 #define wxUSE_FS_ARCHIVE 1
47513 _ACEOF
47514
47515   fi
47516 fi
47517
47518 if test "$wxUSE_FS_ZIP" = "yes"; then
47519   if test "$wxUSE_FS_ARCHIVE" != yes; then
47520     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
47521 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
47522   else
47523     cat >>confdefs.h <<\_ACEOF
47524 #define wxUSE_FS_ZIP 1
47525 _ACEOF
47526
47527   fi
47528 fi
47529
47530 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
47531   if test "$USE_UNIX" != 1; then
47532     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
47533 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
47534     wxUSE_ON_FATAL_EXCEPTION=no
47535   else
47536     cat >>confdefs.h <<\_ACEOF
47537 #define wxUSE_ON_FATAL_EXCEPTION 1
47538 _ACEOF
47539
47540   fi
47541 fi
47542
47543 if test "$wxUSE_STACKWALKER" = "yes"; then
47544     cat >>confdefs.h <<\_ACEOF
47545 #define wxUSE_STACKWALKER 1
47546 _ACEOF
47547
47548 fi
47549
47550 if test "$wxUSE_DEBUGREPORT" = "yes"; then
47551     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
47552         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
47553 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
47554         wxUSE_DEBUGREPORT=no
47555     else
47556         cat >>confdefs.h <<\_ACEOF
47557 #define wxUSE_DEBUGREPORT 1
47558 _ACEOF
47559
47560         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
47561             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
47562         fi
47563     fi
47564 fi
47565
47566 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
47567   cat >>confdefs.h <<\_ACEOF
47568 #define wxUSE_SNGLINST_CHECKER 1
47569 _ACEOF
47570
47571 fi
47572
47573 if test "$wxUSE_BUSYINFO" = "yes"; then
47574   cat >>confdefs.h <<\_ACEOF
47575 #define wxUSE_BUSYINFO 1
47576 _ACEOF
47577
47578 fi
47579
47580 if test "$wxUSE_HOTKEY" = "yes"; then
47581   if test "$wxUSE_MSW" != 1 -a "$wxUSE_OSX_COCOA" != 1 -a "$wxUSE_OSX_CARBON" != 1; then
47582     { echo "$as_me:$LINENO: WARNING: Hot keys not supported by the current toolkit, disabled" >&5
47583 echo "$as_me: WARNING: Hot keys not supported by the current toolkit, disabled" >&2;}
47584     wxUSE_HOTKEY=no
47585   fi
47586 elif test "$wxUSE_HOTKEY" = "auto"; then
47587   if test "$wxUSE_MSW" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OSX_CARBON" = 1; then
47588     wxUSE_HOTKEY=yes
47589   fi
47590 fi
47591 if test "$wxUSE_HOTKEY" = "yes"; then
47592   cat >>confdefs.h <<\_ACEOF
47593 #define wxUSE_HOTKEY 1
47594 _ACEOF
47595
47596 fi
47597
47598 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
47599   cat >>confdefs.h <<\_ACEOF
47600 #define wxUSE_STD_CONTAINERS 1
47601 _ACEOF
47602
47603 fi
47604
47605 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
47606   cat >>confdefs.h <<\_ACEOF
47607 #define wxUSE_STD_IOSTREAM 1
47608 _ACEOF
47609
47610 fi
47611
47612 if test "$wxUSE_STD_STRING" = "yes"; then
47613   cat >>confdefs.h <<\_ACEOF
47614 #define wxUSE_STD_STRING 1
47615 _ACEOF
47616
47617 fi
47618
47619 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
47620   cat >>confdefs.h <<\_ACEOF
47621 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
47622 _ACEOF
47623
47624 fi
47625
47626 if test "$wxUSE_STDPATHS" = "yes"; then
47627   cat >>confdefs.h <<\_ACEOF
47628 #define wxUSE_STDPATHS 1
47629 _ACEOF
47630
47631 fi
47632
47633 if test "$wxUSE_TEXTBUFFER" = "yes"; then
47634     cat >>confdefs.h <<\_ACEOF
47635 #define wxUSE_TEXTBUFFER 1
47636 _ACEOF
47637
47638 fi
47639
47640 if test "$wxUSE_TEXTFILE" = "yes"; then
47641   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
47642     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
47643 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
47644   else
47645     cat >>confdefs.h <<\_ACEOF
47646 #define wxUSE_TEXTFILE 1
47647 _ACEOF
47648
47649   fi
47650 fi
47651
47652 if test "$wxUSE_CONFIG" = "yes" ; then
47653   if test "$wxUSE_TEXTFILE" != "yes"; then
47654     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
47655 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
47656   else
47657     cat >>confdefs.h <<\_ACEOF
47658 #define wxUSE_CONFIG 1
47659 _ACEOF
47660
47661     cat >>confdefs.h <<\_ACEOF
47662 #define wxUSE_CONFIG_NATIVE 1
47663 _ACEOF
47664
47665     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
47666   fi
47667 fi
47668
47669 if test "$wxUSE_INTL" = "yes" ; then
47670   if test "$wxUSE_FILE" != "yes"; then
47671     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
47672 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
47673   else
47674     cat >>confdefs.h <<\_ACEOF
47675 #define wxUSE_INTL 1
47676 _ACEOF
47677
47678     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
47679     GUIDIST="$GUIDIST INTL_DIST"
47680   fi
47681 fi
47682
47683 if test "$wxUSE_XLOCALE" = "yes" ; then
47684     cat >>confdefs.h <<\_ACEOF
47685 #define wxUSE_XLOCALE 1
47686 _ACEOF
47687
47688     { echo "$as_me:$LINENO: checking for locale_t" >&5
47689 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
47690 if test "${ac_cv_type_locale_t+set}" = set; then
47691   echo $ECHO_N "(cached) $ECHO_C" >&6
47692 else
47693   cat >conftest.$ac_ext <<_ACEOF
47694 /* confdefs.h.  */
47695 _ACEOF
47696 cat confdefs.h >>conftest.$ac_ext
47697 cat >>conftest.$ac_ext <<_ACEOF
47698 /* end confdefs.h.  */
47699 #include <xlocale.h>
47700                     #include <locale.h>
47701
47702 typedef locale_t ac__type_new_;
47703 int
47704 main ()
47705 {
47706 if ((ac__type_new_ *) 0)
47707   return 0;
47708 if (sizeof (ac__type_new_))
47709   return 0;
47710   ;
47711   return 0;
47712 }
47713 _ACEOF
47714 rm -f conftest.$ac_objext
47715 if { (ac_try="$ac_compile"
47716 case "(($ac_try" in
47717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47718   *) ac_try_echo=$ac_try;;
47719 esac
47720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47721   (eval "$ac_compile") 2>conftest.er1
47722   ac_status=$?
47723   grep -v '^ *+' conftest.er1 >conftest.err
47724   rm -f conftest.er1
47725   cat conftest.err >&5
47726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47727   (exit $ac_status); } && {
47728          test -z "$ac_c_werror_flag" ||
47729          test ! -s conftest.err
47730        } && test -s conftest.$ac_objext; then
47731   ac_cv_type_locale_t=yes
47732 else
47733   echo "$as_me: failed program was:" >&5
47734 sed 's/^/| /' conftest.$ac_ext >&5
47735
47736         ac_cv_type_locale_t=no
47737 fi
47738
47739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47740 fi
47741 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
47742 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
47743 if test $ac_cv_type_locale_t = yes; then
47744
47745 cat >>confdefs.h <<_ACEOF
47746 #define HAVE_LOCALE_T 1
47747 _ACEOF
47748
47749
47750 fi
47751
47752 fi
47753
47754 if test "$wxUSE_LOG" = "yes"; then
47755   cat >>confdefs.h <<\_ACEOF
47756 #define wxUSE_LOG 1
47757 _ACEOF
47758
47759
47760     if test "$wxUSE_LOGGUI" = "yes"; then
47761       cat >>confdefs.h <<\_ACEOF
47762 #define wxUSE_LOGGUI 1
47763 _ACEOF
47764
47765     fi
47766
47767     if test "$wxUSE_LOGWINDOW" = "yes"; then
47768       cat >>confdefs.h <<\_ACEOF
47769 #define wxUSE_LOGWINDOW 1
47770 _ACEOF
47771
47772     fi
47773
47774     if test "$wxUSE_LOGDIALOG" = "yes"; then
47775       cat >>confdefs.h <<\_ACEOF
47776 #define wxUSE_LOG_DIALOG 1
47777 _ACEOF
47778
47779     fi
47780
47781         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
47782 fi
47783
47784 if test "$wxUSE_LONGLONG" = "yes"; then
47785   cat >>confdefs.h <<\_ACEOF
47786 #define wxUSE_LONGLONG 1
47787 _ACEOF
47788
47789 fi
47790
47791 if test "$wxUSE_GEOMETRY" = "yes"; then
47792   cat >>confdefs.h <<\_ACEOF
47793 #define wxUSE_GEOMETRY 1
47794 _ACEOF
47795
47796 fi
47797
47798 if test "$wxUSE_BASE64" = "yes"; then
47799   cat >>confdefs.h <<\_ACEOF
47800 #define wxUSE_BASE64 1
47801 _ACEOF
47802
47803 fi
47804
47805 if test "$wxUSE_STREAMS" = "yes" ; then
47806   cat >>confdefs.h <<\_ACEOF
47807 #define wxUSE_STREAMS 1
47808 _ACEOF
47809
47810 fi
47811
47812 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
47813   cat >>confdefs.h <<\_ACEOF
47814 #define wxUSE_PRINTF_POS_PARAMS 1
47815 _ACEOF
47816
47817 fi
47818
47819 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
47820   cat >>confdefs.h <<\_ACEOF
47821 #define wxUSE_OBJC_UNIQUIFYING 1
47822 _ACEOF
47823
47824 fi
47825
47826
47827 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
47828     cat >>confdefs.h <<\_ACEOF
47829 #define wxUSE_CONSOLE_EVENTLOOP 1
47830 _ACEOF
47831
47832
47833     if test "$wxUSE_UNIX" = "yes"; then
47834         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
47835             cat >>confdefs.h <<\_ACEOF
47836 #define wxUSE_SELECT_DISPATCHER 1
47837 _ACEOF
47838
47839         fi
47840
47841         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
47842
47843 for ac_header in sys/epoll.h
47844 do
47845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47849   echo $ECHO_N "(cached) $ECHO_C" >&6
47850 else
47851   cat >conftest.$ac_ext <<_ACEOF
47852 /* confdefs.h.  */
47853 _ACEOF
47854 cat confdefs.h >>conftest.$ac_ext
47855 cat >>conftest.$ac_ext <<_ACEOF
47856 /* end confdefs.h.  */
47857 $ac_includes_default
47858
47859 #include <$ac_header>
47860 _ACEOF
47861 rm -f conftest.$ac_objext
47862 if { (ac_try="$ac_compile"
47863 case "(($ac_try" in
47864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47865   *) ac_try_echo=$ac_try;;
47866 esac
47867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47868   (eval "$ac_compile") 2>conftest.er1
47869   ac_status=$?
47870   grep -v '^ *+' conftest.er1 >conftest.err
47871   rm -f conftest.er1
47872   cat conftest.err >&5
47873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47874   (exit $ac_status); } && {
47875          test -z "$ac_c_werror_flag" ||
47876          test ! -s conftest.err
47877        } && test -s conftest.$ac_objext; then
47878   eval "$as_ac_Header=yes"
47879 else
47880   echo "$as_me: failed program was:" >&5
47881 sed 's/^/| /' conftest.$ac_ext >&5
47882
47883         eval "$as_ac_Header=no"
47884 fi
47885
47886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47887 fi
47888 ac_res=`eval echo '${'$as_ac_Header'}'`
47889                { echo "$as_me:$LINENO: result: $ac_res" >&5
47890 echo "${ECHO_T}$ac_res" >&6; }
47891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47892   cat >>confdefs.h <<_ACEOF
47893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47894 _ACEOF
47895
47896 fi
47897
47898 done
47899
47900             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
47901                 cat >>confdefs.h <<\_ACEOF
47902 #define wxUSE_EPOLL_DISPATCHER 1
47903 _ACEOF
47904
47905             else
47906                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
47907 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
47908             fi
47909         fi
47910     fi
47911 fi
47912
47913
47914
47915
47916 for ac_func in gettimeofday ftime
47917 do
47918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47922   echo $ECHO_N "(cached) $ECHO_C" >&6
47923 else
47924   cat >conftest.$ac_ext <<_ACEOF
47925 /* confdefs.h.  */
47926 _ACEOF
47927 cat confdefs.h >>conftest.$ac_ext
47928 cat >>conftest.$ac_ext <<_ACEOF
47929 /* end confdefs.h.  */
47930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47932 #define $ac_func innocuous_$ac_func
47933
47934 /* System header to define __stub macros and hopefully few prototypes,
47935     which can conflict with char $ac_func (); below.
47936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47937     <limits.h> exists even on freestanding compilers.  */
47938
47939 #ifdef __STDC__
47940 # include <limits.h>
47941 #else
47942 # include <assert.h>
47943 #endif
47944
47945 #undef $ac_func
47946
47947 /* Override any GCC internal prototype to avoid an error.
47948    Use char because int might match the return type of a GCC
47949    builtin and then its argument prototype would still apply.  */
47950 #ifdef __cplusplus
47951 extern "C"
47952 #endif
47953 char $ac_func ();
47954 /* The GNU C library defines this for functions which it implements
47955     to always fail with ENOSYS.  Some functions are actually named
47956     something starting with __ and the normal name is an alias.  */
47957 #if defined __stub_$ac_func || defined __stub___$ac_func
47958 choke me
47959 #endif
47960
47961 int
47962 main ()
47963 {
47964 return $ac_func ();
47965   ;
47966   return 0;
47967 }
47968 _ACEOF
47969 rm -f conftest.$ac_objext conftest$ac_exeext
47970 if { (ac_try="$ac_link"
47971 case "(($ac_try" in
47972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47973   *) ac_try_echo=$ac_try;;
47974 esac
47975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47976   (eval "$ac_link") 2>conftest.er1
47977   ac_status=$?
47978   grep -v '^ *+' conftest.er1 >conftest.err
47979   rm -f conftest.er1
47980   cat conftest.err >&5
47981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47982   (exit $ac_status); } && {
47983          test -z "$ac_c_werror_flag" ||
47984          test ! -s conftest.err
47985        } && test -s conftest$ac_exeext &&
47986        $as_test_x conftest$ac_exeext; then
47987   eval "$as_ac_var=yes"
47988 else
47989   echo "$as_me: failed program was:" >&5
47990 sed 's/^/| /' conftest.$ac_ext >&5
47991
47992         eval "$as_ac_var=no"
47993 fi
47994
47995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47996       conftest$ac_exeext conftest.$ac_ext
47997 fi
47998 ac_res=`eval echo '${'$as_ac_var'}'`
47999                { echo "$as_me:$LINENO: result: $ac_res" >&5
48000 echo "${ECHO_T}$ac_res" >&6; }
48001 if test `eval echo '${'$as_ac_var'}'` = yes; then
48002   cat >>confdefs.h <<_ACEOF
48003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48004 _ACEOF
48005  break
48006 fi
48007 done
48008
48009
48010 if test "$ac_cv_func_gettimeofday" = "yes"; then
48011     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
48012 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
48013 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
48014   echo $ECHO_N "(cached) $ECHO_C" >&6
48015 else
48016
48017                 cat >conftest.$ac_ext <<_ACEOF
48018 /* confdefs.h.  */
48019 _ACEOF
48020 cat confdefs.h >>conftest.$ac_ext
48021 cat >>conftest.$ac_ext <<_ACEOF
48022 /* end confdefs.h.  */
48023
48024                 #include <sys/time.h>
48025                 #include <unistd.h>
48026
48027 int
48028 main ()
48029 {
48030
48031                 struct timeval tv;
48032                 gettimeofday(&tv, NULL);
48033
48034   ;
48035   return 0;
48036 }
48037 _ACEOF
48038 rm -f conftest.$ac_objext
48039 if { (ac_try="$ac_compile"
48040 case "(($ac_try" in
48041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48042   *) ac_try_echo=$ac_try;;
48043 esac
48044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48045   (eval "$ac_compile") 2>conftest.er1
48046   ac_status=$?
48047   grep -v '^ *+' conftest.er1 >conftest.err
48048   rm -f conftest.er1
48049   cat conftest.err >&5
48050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48051   (exit $ac_status); } && {
48052          test -z "$ac_c_werror_flag" ||
48053          test ! -s conftest.err
48054        } && test -s conftest.$ac_objext; then
48055   wx_cv_func_gettimeofday_has_2_args=yes
48056 else
48057   echo "$as_me: failed program was:" >&5
48058 sed 's/^/| /' conftest.$ac_ext >&5
48059
48060         cat >conftest.$ac_ext <<_ACEOF
48061 /* confdefs.h.  */
48062 _ACEOF
48063 cat confdefs.h >>conftest.$ac_ext
48064 cat >>conftest.$ac_ext <<_ACEOF
48065 /* end confdefs.h.  */
48066
48067                     #include <sys/time.h>
48068                     #include <unistd.h>
48069
48070 int
48071 main ()
48072 {
48073
48074                     struct timeval tv;
48075                     gettimeofday(&tv);
48076
48077   ;
48078   return 0;
48079 }
48080 _ACEOF
48081 rm -f conftest.$ac_objext
48082 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
48098   wx_cv_func_gettimeofday_has_2_args=no
48099 else
48100   echo "$as_me: failed program was:" >&5
48101 sed 's/^/| /' conftest.$ac_ext >&5
48102
48103
48104                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
48105 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
48106                     wx_cv_func_gettimeofday_has_2_args=unknown
48107
48108
48109 fi
48110
48111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48112
48113 fi
48114
48115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48116
48117 fi
48118 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
48119 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
48120
48121     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
48122         cat >>confdefs.h <<\_ACEOF
48123 #define WX_GETTIMEOFDAY_NO_TZ 1
48124 _ACEOF
48125
48126     fi
48127 fi
48128
48129 if test "$wxUSE_DATETIME" = "yes"; then
48130             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
48131 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
48132 if test "${wx_cv_var_timezone+set}" = set; then
48133   echo $ECHO_N "(cached) $ECHO_C" >&6
48134 else
48135
48136                         ac_ext=cpp
48137 ac_cpp='$CXXCPP $CPPFLAGS'
48138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48141
48142                         cat >conftest.$ac_ext <<_ACEOF
48143 /* confdefs.h.  */
48144 _ACEOF
48145 cat confdefs.h >>conftest.$ac_ext
48146 cat >>conftest.$ac_ext <<_ACEOF
48147 /* end confdefs.h.  */
48148
48149                                 #include <time.h>
48150
48151 int
48152 main ()
48153 {
48154
48155                                 int tz;
48156                                 tz = timezone;
48157
48158   ;
48159   return 0;
48160 }
48161 _ACEOF
48162 rm -f conftest.$ac_objext
48163 if { (ac_try="$ac_compile"
48164 case "(($ac_try" in
48165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48166   *) ac_try_echo=$ac_try;;
48167 esac
48168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48169   (eval "$ac_compile") 2>conftest.er1
48170   ac_status=$?
48171   grep -v '^ *+' conftest.er1 >conftest.err
48172   rm -f conftest.er1
48173   cat conftest.err >&5
48174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48175   (exit $ac_status); } && {
48176          test -z "$ac_cxx_werror_flag" ||
48177          test ! -s conftest.err
48178        } && test -s conftest.$ac_objext; then
48179
48180                                 wx_cv_var_timezone=timezone
48181
48182 else
48183   echo "$as_me: failed program was:" >&5
48184 sed 's/^/| /' conftest.$ac_ext >&5
48185
48186
48187                                 cat >conftest.$ac_ext <<_ACEOF
48188 /* confdefs.h.  */
48189 _ACEOF
48190 cat confdefs.h >>conftest.$ac_ext
48191 cat >>conftest.$ac_ext <<_ACEOF
48192 /* end confdefs.h.  */
48193
48194                                         #include <time.h>
48195
48196 int
48197 main ()
48198 {
48199
48200                                         int tz;
48201                                         tz = _timezone;
48202
48203   ;
48204   return 0;
48205 }
48206 _ACEOF
48207 rm -f conftest.$ac_objext
48208 if { (ac_try="$ac_compile"
48209 case "(($ac_try" in
48210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48211   *) ac_try_echo=$ac_try;;
48212 esac
48213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48214   (eval "$ac_compile") 2>conftest.er1
48215   ac_status=$?
48216   grep -v '^ *+' conftest.er1 >conftest.err
48217   rm -f conftest.er1
48218   cat conftest.err >&5
48219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48220   (exit $ac_status); } && {
48221          test -z "$ac_cxx_werror_flag" ||
48222          test ! -s conftest.err
48223        } && test -s conftest.$ac_objext; then
48224
48225                                         wx_cv_var_timezone=_timezone
48226
48227 else
48228   echo "$as_me: failed program was:" >&5
48229 sed 's/^/| /' conftest.$ac_ext >&5
48230
48231
48232                                         cat >conftest.$ac_ext <<_ACEOF
48233 /* confdefs.h.  */
48234 _ACEOF
48235 cat confdefs.h >>conftest.$ac_ext
48236 cat >>conftest.$ac_ext <<_ACEOF
48237 /* end confdefs.h.  */
48238
48239                                                 #include <time.h>
48240
48241 int
48242 main ()
48243 {
48244
48245                                                 int tz;
48246                                                 tz = __timezone;
48247
48248   ;
48249   return 0;
48250 }
48251 _ACEOF
48252 rm -f conftest.$ac_objext
48253 if { (ac_try="$ac_compile"
48254 case "(($ac_try" in
48255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48256   *) ac_try_echo=$ac_try;;
48257 esac
48258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48259   (eval "$ac_compile") 2>conftest.er1
48260   ac_status=$?
48261   grep -v '^ *+' conftest.er1 >conftest.err
48262   rm -f conftest.er1
48263   cat conftest.err >&5
48264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48265   (exit $ac_status); } && {
48266          test -z "$ac_cxx_werror_flag" ||
48267          test ! -s conftest.err
48268        } && test -s conftest.$ac_objext; then
48269
48270                                                 wx_cv_var_timezone=__timezone
48271
48272 else
48273   echo "$as_me: failed program was:" >&5
48274 sed 's/^/| /' conftest.$ac_ext >&5
48275
48276
48277                                                 if test "$USE_DOS" = 0 ; then
48278                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
48279 echo "$as_me: WARNING: no timezone variable" >&2;}
48280                                                 fi
48281
48282
48283 fi
48284
48285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48286
48287
48288 fi
48289
48290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48291
48292
48293 fi
48294
48295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48296                         ac_ext=c
48297 ac_cpp='$CPP $CPPFLAGS'
48298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48301
48302
48303
48304 fi
48305 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
48306 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
48307
48308         if test "x$wx_cv_var_timezone" != x ; then
48309         cat >>confdefs.h <<_ACEOF
48310 #define WX_TIMEZONE $wx_cv_var_timezone
48311 _ACEOF
48312
48313     fi
48314
48315
48316 for ac_func in localtime
48317 do
48318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48322   echo $ECHO_N "(cached) $ECHO_C" >&6
48323 else
48324   cat >conftest.$ac_ext <<_ACEOF
48325 /* confdefs.h.  */
48326 _ACEOF
48327 cat confdefs.h >>conftest.$ac_ext
48328 cat >>conftest.$ac_ext <<_ACEOF
48329 /* end confdefs.h.  */
48330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48332 #define $ac_func innocuous_$ac_func
48333
48334 /* System header to define __stub macros and hopefully few prototypes,
48335     which can conflict with char $ac_func (); below.
48336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48337     <limits.h> exists even on freestanding compilers.  */
48338
48339 #ifdef __STDC__
48340 # include <limits.h>
48341 #else
48342 # include <assert.h>
48343 #endif
48344
48345 #undef $ac_func
48346
48347 /* Override any GCC internal prototype to avoid an error.
48348    Use char because int might match the return type of a GCC
48349    builtin and then its argument prototype would still apply.  */
48350 #ifdef __cplusplus
48351 extern "C"
48352 #endif
48353 char $ac_func ();
48354 /* The GNU C library defines this for functions which it implements
48355     to always fail with ENOSYS.  Some functions are actually named
48356     something starting with __ and the normal name is an alias.  */
48357 #if defined __stub_$ac_func || defined __stub___$ac_func
48358 choke me
48359 #endif
48360
48361 int
48362 main ()
48363 {
48364 return $ac_func ();
48365   ;
48366   return 0;
48367 }
48368 _ACEOF
48369 rm -f conftest.$ac_objext conftest$ac_exeext
48370 if { (ac_try="$ac_link"
48371 case "(($ac_try" in
48372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48373   *) ac_try_echo=$ac_try;;
48374 esac
48375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48376   (eval "$ac_link") 2>conftest.er1
48377   ac_status=$?
48378   grep -v '^ *+' conftest.er1 >conftest.err
48379   rm -f conftest.er1
48380   cat conftest.err >&5
48381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48382   (exit $ac_status); } && {
48383          test -z "$ac_c_werror_flag" ||
48384          test ! -s conftest.err
48385        } && test -s conftest$ac_exeext &&
48386        $as_test_x conftest$ac_exeext; then
48387   eval "$as_ac_var=yes"
48388 else
48389   echo "$as_me: failed program was:" >&5
48390 sed 's/^/| /' conftest.$ac_ext >&5
48391
48392         eval "$as_ac_var=no"
48393 fi
48394
48395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48396       conftest$ac_exeext conftest.$ac_ext
48397 fi
48398 ac_res=`eval echo '${'$as_ac_var'}'`
48399                { echo "$as_me:$LINENO: result: $ac_res" >&5
48400 echo "${ECHO_T}$ac_res" >&6; }
48401 if test `eval echo '${'$as_ac_var'}'` = yes; then
48402   cat >>confdefs.h <<_ACEOF
48403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48404 _ACEOF
48405
48406 fi
48407 done
48408
48409
48410     if test "$ac_cv_func_localtime" = "yes"; then
48411         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
48412 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
48413 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
48414   echo $ECHO_N "(cached) $ECHO_C" >&6
48415 else
48416
48417             cat >conftest.$ac_ext <<_ACEOF
48418 /* confdefs.h.  */
48419 _ACEOF
48420 cat confdefs.h >>conftest.$ac_ext
48421 cat >>conftest.$ac_ext <<_ACEOF
48422 /* end confdefs.h.  */
48423
48424                     #include <time.h>
48425
48426 int
48427 main ()
48428 {
48429
48430                     struct tm tm;
48431                     tm.tm_gmtoff++;
48432
48433   ;
48434   return 0;
48435 }
48436 _ACEOF
48437 rm -f conftest.$ac_objext
48438 if { (ac_try="$ac_compile"
48439 case "(($ac_try" in
48440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48441   *) ac_try_echo=$ac_try;;
48442 esac
48443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48444   (eval "$ac_compile") 2>conftest.er1
48445   ac_status=$?
48446   grep -v '^ *+' conftest.er1 >conftest.err
48447   rm -f conftest.er1
48448   cat conftest.err >&5
48449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48450   (exit $ac_status); } && {
48451          test -z "$ac_c_werror_flag" ||
48452          test ! -s conftest.err
48453        } && test -s conftest.$ac_objext; then
48454
48455                     wx_cv_struct_tm_has_gmtoff=yes
48456
48457 else
48458   echo "$as_me: failed program was:" >&5
48459 sed 's/^/| /' conftest.$ac_ext >&5
48460
48461         wx_cv_struct_tm_has_gmtoff=no
48462
48463 fi
48464
48465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48466
48467 fi
48468 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
48469 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
48470     fi
48471
48472     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
48473         cat >>confdefs.h <<\_ACEOF
48474 #define WX_GMTOFF_IN_TM 1
48475 _ACEOF
48476
48477     fi
48478
48479     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
48480 fi
48481
48482
48483 if test "$wxUSE_SOCKETS" = "yes"; then
48484     if test "$wxUSE_MGL" = 1; then
48485         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
48486 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
48487         wxUSE_SOCKETS="no"
48488     fi
48489 fi
48490
48491 if test "$wxUSE_SOCKETS" = "yes"; then
48492         if test "$TOOLKIT" != "MSW"; then
48493                 { echo "$as_me:$LINENO: checking for socket" >&5
48494 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
48495 if test "${ac_cv_func_socket+set}" = set; then
48496   echo $ECHO_N "(cached) $ECHO_C" >&6
48497 else
48498   cat >conftest.$ac_ext <<_ACEOF
48499 /* confdefs.h.  */
48500 _ACEOF
48501 cat confdefs.h >>conftest.$ac_ext
48502 cat >>conftest.$ac_ext <<_ACEOF
48503 /* end confdefs.h.  */
48504 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
48505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48506 #define socket innocuous_socket
48507
48508 /* System header to define __stub macros and hopefully few prototypes,
48509     which can conflict with char socket (); below.
48510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48511     <limits.h> exists even on freestanding compilers.  */
48512
48513 #ifdef __STDC__
48514 # include <limits.h>
48515 #else
48516 # include <assert.h>
48517 #endif
48518
48519 #undef socket
48520
48521 /* Override any GCC internal prototype to avoid an error.
48522    Use char because int might match the return type of a GCC
48523    builtin and then its argument prototype would still apply.  */
48524 #ifdef __cplusplus
48525 extern "C"
48526 #endif
48527 char socket ();
48528 /* The GNU C library defines this for functions which it implements
48529     to always fail with ENOSYS.  Some functions are actually named
48530     something starting with __ and the normal name is an alias.  */
48531 #if defined __stub_socket || defined __stub___socket
48532 choke me
48533 #endif
48534
48535 int
48536 main ()
48537 {
48538 return socket ();
48539   ;
48540   return 0;
48541 }
48542 _ACEOF
48543 rm -f conftest.$ac_objext conftest$ac_exeext
48544 if { (ac_try="$ac_link"
48545 case "(($ac_try" in
48546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48547   *) ac_try_echo=$ac_try;;
48548 esac
48549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48550   (eval "$ac_link") 2>conftest.er1
48551   ac_status=$?
48552   grep -v '^ *+' conftest.er1 >conftest.err
48553   rm -f conftest.er1
48554   cat conftest.err >&5
48555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48556   (exit $ac_status); } && {
48557          test -z "$ac_c_werror_flag" ||
48558          test ! -s conftest.err
48559        } && test -s conftest$ac_exeext &&
48560        $as_test_x conftest$ac_exeext; then
48561   ac_cv_func_socket=yes
48562 else
48563   echo "$as_me: failed program was:" >&5
48564 sed 's/^/| /' conftest.$ac_ext >&5
48565
48566         ac_cv_func_socket=no
48567 fi
48568
48569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48570       conftest$ac_exeext conftest.$ac_ext
48571 fi
48572 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
48573 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
48574 if test $ac_cv_func_socket = yes; then
48575   :
48576 else
48577
48578                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
48579 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
48580 if test "${ac_cv_lib_socket_socket+set}" = set; then
48581   echo $ECHO_N "(cached) $ECHO_C" >&6
48582 else
48583   ac_check_lib_save_LIBS=$LIBS
48584 LIBS="-lsocket  $LIBS"
48585 cat >conftest.$ac_ext <<_ACEOF
48586 /* confdefs.h.  */
48587 _ACEOF
48588 cat confdefs.h >>conftest.$ac_ext
48589 cat >>conftest.$ac_ext <<_ACEOF
48590 /* end confdefs.h.  */
48591
48592 /* Override any GCC internal prototype to avoid an error.
48593    Use char because int might match the return type of a GCC
48594    builtin and then its argument prototype would still apply.  */
48595 #ifdef __cplusplus
48596 extern "C"
48597 #endif
48598 char socket ();
48599 int
48600 main ()
48601 {
48602 return socket ();
48603   ;
48604   return 0;
48605 }
48606 _ACEOF
48607 rm -f conftest.$ac_objext conftest$ac_exeext
48608 if { (ac_try="$ac_link"
48609 case "(($ac_try" in
48610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48611   *) ac_try_echo=$ac_try;;
48612 esac
48613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48614   (eval "$ac_link") 2>conftest.er1
48615   ac_status=$?
48616   grep -v '^ *+' conftest.er1 >conftest.err
48617   rm -f conftest.er1
48618   cat conftest.err >&5
48619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48620   (exit $ac_status); } && {
48621          test -z "$ac_c_werror_flag" ||
48622          test ! -s conftest.err
48623        } && test -s conftest$ac_exeext &&
48624        $as_test_x conftest$ac_exeext; then
48625   ac_cv_lib_socket_socket=yes
48626 else
48627   echo "$as_me: failed program was:" >&5
48628 sed 's/^/| /' conftest.$ac_ext >&5
48629
48630         ac_cv_lib_socket_socket=no
48631 fi
48632
48633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48634       conftest$ac_exeext conftest.$ac_ext
48635 LIBS=$ac_check_lib_save_LIBS
48636 fi
48637 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
48638 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
48639 if test $ac_cv_lib_socket_socket = yes; then
48640   if test "$INET_LINK" != " -lsocket"; then
48641                         INET_LINK="$INET_LINK -lsocket"
48642                     fi
48643 else
48644
48645                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
48646 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
48647                         wxUSE_SOCKETS=no
48648
48649
48650 fi
48651
48652
48653
48654 fi
48655
48656     fi
48657 fi
48658
48659 if test "$wxUSE_SOCKETS" = "yes" ; then
48660                 if test "$TOOLKIT" != "MSW"; then
48661                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
48662 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
48663 if test "${wx_cv_type_getsockname3+set}" = set; then
48664   echo $ECHO_N "(cached) $ECHO_C" >&6
48665 else
48666
48667                 ac_ext=cpp
48668 ac_cpp='$CXXCPP $CPPFLAGS'
48669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48672
48673                 cat >conftest.$ac_ext <<_ACEOF
48674 /* confdefs.h.  */
48675 _ACEOF
48676 cat confdefs.h >>conftest.$ac_ext
48677 cat >>conftest.$ac_ext <<_ACEOF
48678 /* end confdefs.h.  */
48679
48680                         #include <sys/types.h>
48681                         #include <sys/socket.h>
48682
48683 int
48684 main ()
48685 {
48686
48687                         socklen_t len;
48688                         getsockname(0, 0, &len);
48689
48690   ;
48691   return 0;
48692 }
48693 _ACEOF
48694 rm -f conftest.$ac_objext
48695 if { (ac_try="$ac_compile"
48696 case "(($ac_try" in
48697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48698   *) ac_try_echo=$ac_try;;
48699 esac
48700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48701   (eval "$ac_compile") 2>conftest.er1
48702   ac_status=$?
48703   grep -v '^ *+' conftest.er1 >conftest.err
48704   rm -f conftest.er1
48705   cat conftest.err >&5
48706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48707   (exit $ac_status); } && {
48708          test -z "$ac_cxx_werror_flag" ||
48709          test ! -s conftest.err
48710        } && test -s conftest.$ac_objext; then
48711   wx_cv_type_getsockname3=socklen_t
48712 else
48713   echo "$as_me: failed program was:" >&5
48714 sed 's/^/| /' conftest.$ac_ext >&5
48715
48716
48717                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
48718                         if test "$GCC" = yes ; then
48719                             CFLAGS="-Werror $CFLAGS"
48720                         fi
48721
48722                         cat >conftest.$ac_ext <<_ACEOF
48723 /* confdefs.h.  */
48724 _ACEOF
48725 cat confdefs.h >>conftest.$ac_ext
48726 cat >>conftest.$ac_ext <<_ACEOF
48727 /* end confdefs.h.  */
48728
48729                                 #include <sys/types.h>
48730                                 #include <sys/socket.h>
48731
48732 int
48733 main ()
48734 {
48735
48736                                 size_t len;
48737                                 getsockname(0, 0, &len);
48738
48739   ;
48740   return 0;
48741 }
48742 _ACEOF
48743 rm -f conftest.$ac_objext
48744 if { (ac_try="$ac_compile"
48745 case "(($ac_try" in
48746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48747   *) ac_try_echo=$ac_try;;
48748 esac
48749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48750   (eval "$ac_compile") 2>conftest.er1
48751   ac_status=$?
48752   grep -v '^ *+' conftest.er1 >conftest.err
48753   rm -f conftest.er1
48754   cat conftest.err >&5
48755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48756   (exit $ac_status); } && {
48757          test -z "$ac_cxx_werror_flag" ||
48758          test ! -s conftest.err
48759        } && test -s conftest.$ac_objext; then
48760   wx_cv_type_getsockname3=size_t
48761 else
48762   echo "$as_me: failed program was:" >&5
48763 sed 's/^/| /' conftest.$ac_ext >&5
48764
48765         cat >conftest.$ac_ext <<_ACEOF
48766 /* confdefs.h.  */
48767 _ACEOF
48768 cat confdefs.h >>conftest.$ac_ext
48769 cat >>conftest.$ac_ext <<_ACEOF
48770 /* end confdefs.h.  */
48771
48772                                     #include <sys/types.h>
48773                                     #include <sys/socket.h>
48774
48775 int
48776 main ()
48777 {
48778
48779                                     int len;
48780                                     getsockname(0, 0, &len);
48781
48782   ;
48783   return 0;
48784 }
48785 _ACEOF
48786 rm -f conftest.$ac_objext
48787 if { (ac_try="$ac_compile"
48788 case "(($ac_try" in
48789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48790   *) ac_try_echo=$ac_try;;
48791 esac
48792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48793   (eval "$ac_compile") 2>conftest.er1
48794   ac_status=$?
48795   grep -v '^ *+' conftest.er1 >conftest.err
48796   rm -f conftest.er1
48797   cat conftest.err >&5
48798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48799   (exit $ac_status); } && {
48800          test -z "$ac_cxx_werror_flag" ||
48801          test ! -s conftest.err
48802        } && test -s conftest.$ac_objext; then
48803   wx_cv_type_getsockname3=int
48804 else
48805   echo "$as_me: failed program was:" >&5
48806 sed 's/^/| /' conftest.$ac_ext >&5
48807
48808         wx_cv_type_getsockname3=unknown
48809
48810 fi
48811
48812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48813
48814 fi
48815
48816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48817
48818                         CFLAGS="$CFLAGS_OLD"
48819
48820
48821 fi
48822
48823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48824                 ac_ext=c
48825 ac_cpp='$CPP $CPPFLAGS'
48826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48829
48830
48831 fi
48832 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
48833 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
48834
48835         if test "$wx_cv_type_getsockname3" = "unknown"; then
48836             wxUSE_SOCKETS=no
48837             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
48838 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
48839         else
48840             cat >>confdefs.h <<_ACEOF
48841 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
48842 _ACEOF
48843
48844         fi
48845                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
48846 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
48847 if test "${wx_cv_type_getsockopt5+set}" = set; then
48848   echo $ECHO_N "(cached) $ECHO_C" >&6
48849 else
48850
48851                                                                                                 ac_ext=cpp
48852 ac_cpp='$CXXCPP $CPPFLAGS'
48853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48856
48857                 cat >conftest.$ac_ext <<_ACEOF
48858 /* confdefs.h.  */
48859 _ACEOF
48860 cat confdefs.h >>conftest.$ac_ext
48861 cat >>conftest.$ac_ext <<_ACEOF
48862 /* end confdefs.h.  */
48863
48864                         #include <sys/types.h>
48865                         #include <sys/socket.h>
48866
48867 int
48868 main ()
48869 {
48870
48871                         socklen_t len;
48872                         getsockopt(0, 0, 0, 0, &len);
48873
48874   ;
48875   return 0;
48876 }
48877 _ACEOF
48878 rm -f conftest.$ac_objext
48879 if { (ac_try="$ac_compile"
48880 case "(($ac_try" in
48881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48882   *) ac_try_echo=$ac_try;;
48883 esac
48884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48885   (eval "$ac_compile") 2>conftest.er1
48886   ac_status=$?
48887   grep -v '^ *+' conftest.er1 >conftest.err
48888   rm -f conftest.er1
48889   cat conftest.err >&5
48890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48891   (exit $ac_status); } && {
48892          test -z "$ac_cxx_werror_flag" ||
48893          test ! -s conftest.err
48894        } && test -s conftest.$ac_objext; then
48895   wx_cv_type_getsockopt5=socklen_t
48896 else
48897   echo "$as_me: failed program was:" >&5
48898 sed 's/^/| /' conftest.$ac_ext >&5
48899
48900
48901                         cat >conftest.$ac_ext <<_ACEOF
48902 /* confdefs.h.  */
48903 _ACEOF
48904 cat confdefs.h >>conftest.$ac_ext
48905 cat >>conftest.$ac_ext <<_ACEOF
48906 /* end confdefs.h.  */
48907
48908                                 #include <sys/types.h>
48909                                 #include <sys/socket.h>
48910
48911 int
48912 main ()
48913 {
48914
48915                                 size_t len;
48916                                 getsockopt(0, 0, 0, 0, &len);
48917
48918   ;
48919   return 0;
48920 }
48921 _ACEOF
48922 rm -f conftest.$ac_objext
48923 if { (ac_try="$ac_compile"
48924 case "(($ac_try" in
48925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48926   *) ac_try_echo=$ac_try;;
48927 esac
48928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48929   (eval "$ac_compile") 2>conftest.er1
48930   ac_status=$?
48931   grep -v '^ *+' conftest.er1 >conftest.err
48932   rm -f conftest.er1
48933   cat conftest.err >&5
48934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48935   (exit $ac_status); } && {
48936          test -z "$ac_cxx_werror_flag" ||
48937          test ! -s conftest.err
48938        } && test -s conftest.$ac_objext; then
48939   wx_cv_type_getsockopt5=size_t
48940 else
48941   echo "$as_me: failed program was:" >&5
48942 sed 's/^/| /' conftest.$ac_ext >&5
48943
48944         cat >conftest.$ac_ext <<_ACEOF
48945 /* confdefs.h.  */
48946 _ACEOF
48947 cat confdefs.h >>conftest.$ac_ext
48948 cat >>conftest.$ac_ext <<_ACEOF
48949 /* end confdefs.h.  */
48950
48951                                     #include <sys/types.h>
48952                                     #include <sys/socket.h>
48953
48954 int
48955 main ()
48956 {
48957
48958                                     int len;
48959                                     getsockopt(0, 0, 0, 0, &len);
48960
48961   ;
48962   return 0;
48963 }
48964 _ACEOF
48965 rm -f conftest.$ac_objext
48966 if { (ac_try="$ac_compile"
48967 case "(($ac_try" in
48968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48969   *) ac_try_echo=$ac_try;;
48970 esac
48971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48972   (eval "$ac_compile") 2>conftest.er1
48973   ac_status=$?
48974   grep -v '^ *+' conftest.er1 >conftest.err
48975   rm -f conftest.er1
48976   cat conftest.err >&5
48977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48978   (exit $ac_status); } && {
48979          test -z "$ac_cxx_werror_flag" ||
48980          test ! -s conftest.err
48981        } && test -s conftest.$ac_objext; then
48982   wx_cv_type_getsockopt5=int
48983 else
48984   echo "$as_me: failed program was:" >&5
48985 sed 's/^/| /' conftest.$ac_ext >&5
48986
48987         wx_cv_type_getsockopt5=unknown
48988
48989 fi
48990
48991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48992
48993 fi
48994
48995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48996
48997
48998 fi
48999
49000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49001                 ac_ext=c
49002 ac_cpp='$CPP $CPPFLAGS'
49003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49006
49007
49008 fi
49009 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
49010 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
49011
49012         if test "$wx_cv_type_getsockopt5" = "unknown"; then
49013             wxUSE_SOCKETS=no
49014             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
49015 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
49016         else
49017             cat >>confdefs.h <<_ACEOF
49018 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
49019 _ACEOF
49020
49021         fi
49022     fi
49023 fi
49024
49025 if test "$wxUSE_SOCKETS" = "yes" ; then
49026     if test "$wxUSE_IPV6" = "yes"; then
49027         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
49028 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
49029 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
49030   echo $ECHO_N "(cached) $ECHO_C" >&6
49031 else
49032
49033                 cat >conftest.$ac_ext <<_ACEOF
49034 /* confdefs.h.  */
49035 _ACEOF
49036 cat confdefs.h >>conftest.$ac_ext
49037 cat >>conftest.$ac_ext <<_ACEOF
49038 /* end confdefs.h.  */
49039
49040                         #include <sys/types.h>
49041                         #include <sys/socket.h>
49042                         #include <netinet/in.h>
49043
49044 int
49045 main ()
49046 {
49047
49048                         struct sockaddr_in6 sa6;
49049
49050   ;
49051   return 0;
49052 }
49053 _ACEOF
49054 rm -f conftest.$ac_objext
49055 if { (ac_try="$ac_compile"
49056 case "(($ac_try" in
49057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49058   *) ac_try_echo=$ac_try;;
49059 esac
49060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49061   (eval "$ac_compile") 2>conftest.er1
49062   ac_status=$?
49063   grep -v '^ *+' conftest.er1 >conftest.err
49064   rm -f conftest.er1
49065   cat conftest.err >&5
49066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49067   (exit $ac_status); } && {
49068          test -z "$ac_c_werror_flag" ||
49069          test ! -s conftest.err
49070        } && test -s conftest.$ac_objext; then
49071   wx_cv_type_sockaddr_in6=yes
49072 else
49073   echo "$as_me: failed program was:" >&5
49074 sed 's/^/| /' conftest.$ac_ext >&5
49075
49076         wx_cv_type_sockaddr_in6=no
49077
49078 fi
49079
49080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49081
49082
49083 fi
49084 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
49085 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
49086
49087         if test "$wx_cv_type_sockaddr_in6"="yes"; then
49088             cat >>confdefs.h <<\_ACEOF
49089 #define wxUSE_IPV6 1
49090 _ACEOF
49091
49092         else
49093             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
49094 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
49095         fi
49096     fi
49097
49098     cat >>confdefs.h <<\_ACEOF
49099 #define wxUSE_SOCKETS 1
49100 _ACEOF
49101
49102     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49103 fi
49104
49105 if test "$wxUSE_PROTOCOL" = "yes"; then
49106     if test "$wxUSE_SOCKETS" != "yes"; then
49107         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
49108 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
49109         wxUSE_PROTOCOL=no
49110     fi
49111 fi
49112
49113 if test "$wxUSE_PROTOCOL" = "yes"; then
49114     cat >>confdefs.h <<\_ACEOF
49115 #define wxUSE_PROTOCOL 1
49116 _ACEOF
49117
49118
49119     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
49120         cat >>confdefs.h <<\_ACEOF
49121 #define wxUSE_PROTOCOL_HTTP 1
49122 _ACEOF
49123
49124     fi
49125     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
49126         cat >>confdefs.h <<\_ACEOF
49127 #define wxUSE_PROTOCOL_FTP 1
49128 _ACEOF
49129
49130     fi
49131     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
49132         cat >>confdefs.h <<\_ACEOF
49133 #define wxUSE_PROTOCOL_FILE 1
49134 _ACEOF
49135
49136     fi
49137 else
49138     if test "$wxUSE_FS_INET" = "yes"; then
49139         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
49140 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
49141         wxUSE_FS_INET="no"
49142     fi
49143 fi
49144
49145 if test "$wxUSE_URL" = "yes"; then
49146     if test "$wxUSE_PROTOCOL" != "yes"; then
49147         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
49148 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
49149         wxUSE_URL=no
49150     fi
49151     if test "$wxUSE_URL" = "yes"; then
49152         cat >>confdefs.h <<\_ACEOF
49153 #define wxUSE_URL 1
49154 _ACEOF
49155
49156     fi
49157 fi
49158
49159 if test "$wxUSE_VARIANT" = "yes"; then
49160     cat >>confdefs.h <<\_ACEOF
49161 #define wxUSE_VARIANT 1
49162 _ACEOF
49163
49164 fi
49165
49166 if test "$wxUSE_FS_INET" = "yes"; then
49167   cat >>confdefs.h <<\_ACEOF
49168 #define wxUSE_FS_INET 1
49169 _ACEOF
49170
49171 fi
49172
49173
49174 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
49175     wxUSE_JOYSTICK=no
49176
49177         if test "$TOOLKIT" = "MSW"; then
49178         wxUSE_JOYSTICK=yes
49179
49180         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
49181         if test "$USE_DARWIN" = 1; then
49182                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
49183 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
49184             ac_ext=cpp
49185 ac_cpp='$CXXCPP $CPPFLAGS'
49186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49189
49190             cat >conftest.$ac_ext <<_ACEOF
49191 /* confdefs.h.  */
49192 _ACEOF
49193 cat confdefs.h >>conftest.$ac_ext
49194 cat >>conftest.$ac_ext <<_ACEOF
49195 /* end confdefs.h.  */
49196  #include <IOKit/hid/IOHIDLib.h>
49197 int
49198 main ()
49199 {
49200  IOHIDQueueInterface *qi = NULL;
49201                               IOHIDCallbackFunction cb = NULL;
49202                               qi->setEventCallout(NULL, cb, NULL, NULL);
49203   ;
49204   return 0;
49205 }
49206 _ACEOF
49207 rm -f conftest.$ac_objext
49208 if { (ac_try="$ac_compile"
49209 case "(($ac_try" in
49210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49211   *) ac_try_echo=$ac_try;;
49212 esac
49213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49214   (eval "$ac_compile") 2>conftest.er1
49215   ac_status=$?
49216   grep -v '^ *+' conftest.er1 >conftest.err
49217   rm -f conftest.er1
49218   cat conftest.err >&5
49219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49220   (exit $ac_status); } && {
49221          test -z "$ac_cxx_werror_flag" ||
49222          test ! -s conftest.err
49223        } && test -s conftest.$ac_objext; then
49224    wxUSE_JOYSTICK=yes
49225
49226 else
49227   echo "$as_me: failed program was:" >&5
49228 sed 's/^/| /' conftest.$ac_ext >&5
49229
49230
49231 fi
49232
49233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49234             ac_ext=c
49235 ac_cpp='$CPP $CPPFLAGS'
49236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49239
49240             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
49241 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
49242         fi
49243
49244         else
49245                 if test "$wxUSE_MGL" != 1; then
49246
49247 for ac_header in linux/joystick.h
49248 do
49249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
49251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49253   echo $ECHO_N "(cached) $ECHO_C" >&6
49254 else
49255   cat >conftest.$ac_ext <<_ACEOF
49256 /* confdefs.h.  */
49257 _ACEOF
49258 cat confdefs.h >>conftest.$ac_ext
49259 cat >>conftest.$ac_ext <<_ACEOF
49260 /* end confdefs.h.  */
49261 $ac_includes_default
49262
49263 #include <$ac_header>
49264 _ACEOF
49265 rm -f conftest.$ac_objext
49266 if { (ac_try="$ac_compile"
49267 case "(($ac_try" in
49268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49269   *) ac_try_echo=$ac_try;;
49270 esac
49271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49272   (eval "$ac_compile") 2>conftest.er1
49273   ac_status=$?
49274   grep -v '^ *+' conftest.er1 >conftest.err
49275   rm -f conftest.er1
49276   cat conftest.err >&5
49277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49278   (exit $ac_status); } && {
49279          test -z "$ac_c_werror_flag" ||
49280          test ! -s conftest.err
49281        } && test -s conftest.$ac_objext; then
49282   eval "$as_ac_Header=yes"
49283 else
49284   echo "$as_me: failed program was:" >&5
49285 sed 's/^/| /' conftest.$ac_ext >&5
49286
49287         eval "$as_ac_Header=no"
49288 fi
49289
49290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49291 fi
49292 ac_res=`eval echo '${'$as_ac_Header'}'`
49293                { echo "$as_me:$LINENO: result: $ac_res" >&5
49294 echo "${ECHO_T}$ac_res" >&6; }
49295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49296   cat >>confdefs.h <<_ACEOF
49297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49298 _ACEOF
49299  wxUSE_JOYSTICK=yes
49300 fi
49301
49302 done
49303
49304         fi
49305     fi
49306
49307     if test "$wxUSE_JOYSTICK" = "yes"; then
49308         cat >>confdefs.h <<\_ACEOF
49309 #define wxUSE_JOYSTICK 1
49310 _ACEOF
49311
49312         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
49313     else
49314         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
49315 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
49316     fi
49317 fi
49318
49319
49320
49321 if test "$wxUSE_FONTENUM" = "yes" ; then
49322   cat >>confdefs.h <<\_ACEOF
49323 #define wxUSE_FONTENUM 1
49324 _ACEOF
49325
49326 fi
49327
49328 if test "$wxUSE_FONTMAP" = "yes" ; then
49329   cat >>confdefs.h <<\_ACEOF
49330 #define wxUSE_FONTMAP 1
49331 _ACEOF
49332
49333 fi
49334
49335 if test "$wxUSE_UNICODE" = "yes" ; then
49336   cat >>confdefs.h <<\_ACEOF
49337 #define wxUSE_UNICODE 1
49338 _ACEOF
49339
49340
49341   if test "$USE_WIN32" != 1; then
49342       wxUSE_UNICODE_MSLU=no
49343   fi
49344
49345   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
49346         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
49347 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
49348 if test "${ac_cv_lib_unicows_main+set}" = set; then
49349   echo $ECHO_N "(cached) $ECHO_C" >&6
49350 else
49351   ac_check_lib_save_LIBS=$LIBS
49352 LIBS="-lunicows  $LIBS"
49353 cat >conftest.$ac_ext <<_ACEOF
49354 /* confdefs.h.  */
49355 _ACEOF
49356 cat confdefs.h >>conftest.$ac_ext
49357 cat >>conftest.$ac_ext <<_ACEOF
49358 /* end confdefs.h.  */
49359
49360
49361 int
49362 main ()
49363 {
49364 return main ();
49365   ;
49366   return 0;
49367 }
49368 _ACEOF
49369 rm -f conftest.$ac_objext conftest$ac_exeext
49370 if { (ac_try="$ac_link"
49371 case "(($ac_try" in
49372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49373   *) ac_try_echo=$ac_try;;
49374 esac
49375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49376   (eval "$ac_link") 2>conftest.er1
49377   ac_status=$?
49378   grep -v '^ *+' conftest.er1 >conftest.err
49379   rm -f conftest.er1
49380   cat conftest.err >&5
49381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49382   (exit $ac_status); } && {
49383          test -z "$ac_c_werror_flag" ||
49384          test ! -s conftest.err
49385        } && test -s conftest$ac_exeext &&
49386        $as_test_x conftest$ac_exeext; then
49387   ac_cv_lib_unicows_main=yes
49388 else
49389   echo "$as_me: failed program was:" >&5
49390 sed 's/^/| /' conftest.$ac_ext >&5
49391
49392         ac_cv_lib_unicows_main=no
49393 fi
49394
49395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49396       conftest$ac_exeext conftest.$ac_ext
49397 LIBS=$ac_check_lib_save_LIBS
49398 fi
49399 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
49400 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
49401 if test $ac_cv_lib_unicows_main = yes; then
49402
49403                 cat >>confdefs.h <<\_ACEOF
49404 #define wxUSE_UNICODE_MSLU 1
49405 _ACEOF
49406
49407
49408 else
49409
49410                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
49411                              Applications will only run on Windows NT/2000/XP!" >&5
49412 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
49413                              Applications will only run on Windows NT/2000/XP!" >&2;}
49414                 wxUSE_UNICODE_MSLU=no
49415
49416 fi
49417
49418     fi
49419 fi
49420
49421 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
49422     cat >>confdefs.h <<\_ACEOF
49423 #define wxUSE_UNICODE_UTF8 1
49424 _ACEOF
49425
49426
49427     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
49428         cat >>confdefs.h <<\_ACEOF
49429 #define wxUSE_UTF8_LOCALE_ONLY 1
49430 _ACEOF
49431
49432     fi
49433 fi
49434
49435
49436 if test "$wxUSE_CONSTRAINTS" = "yes"; then
49437     cat >>confdefs.h <<\_ACEOF
49438 #define wxUSE_CONSTRAINTS 1
49439 _ACEOF
49440
49441     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
49442 fi
49443
49444 if test "$wxUSE_MDI" = "yes"; then
49445     cat >>confdefs.h <<\_ACEOF
49446 #define wxUSE_MDI 1
49447 _ACEOF
49448
49449
49450     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
49451         cat >>confdefs.h <<\_ACEOF
49452 #define wxUSE_MDI_ARCHITECTURE 1
49453 _ACEOF
49454
49455         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
49456     fi
49457 fi
49458
49459 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
49460     cat >>confdefs.h <<\_ACEOF
49461 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
49462 _ACEOF
49463
49464     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
49465 fi
49466
49467 if test "$wxUSE_HELP" = "yes"; then
49468     cat >>confdefs.h <<\_ACEOF
49469 #define wxUSE_HELP 1
49470 _ACEOF
49471
49472     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
49473
49474     if test "$wxUSE_MSW" = 1; then
49475       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
49476         cat >>confdefs.h <<\_ACEOF
49477 #define wxUSE_MS_HTML_HELP 1
49478 _ACEOF
49479
49480       fi
49481     fi
49482
49483     if test "$wxUSE_WXHTML_HELP" = "yes"; then
49484       if test "$wxUSE_HTML" = "yes"; then
49485         cat >>confdefs.h <<\_ACEOF
49486 #define wxUSE_WXHTML_HELP 1
49487 _ACEOF
49488
49489       else
49490         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
49491 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
49492         wxUSE_WXHTML_HELP=no
49493       fi
49494     fi
49495 fi
49496
49497 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
49498     cat >>confdefs.h <<\_ACEOF
49499 #define wxUSE_PRINTING_ARCHITECTURE 1
49500 _ACEOF
49501
49502     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
49503 fi
49504
49505 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
49506   cat >>confdefs.h <<\_ACEOF
49507 #define wxUSE_POSTSCRIPT 1
49508 _ACEOF
49509
49510 fi
49511
49512 cat >>confdefs.h <<\_ACEOF
49513 #define wxUSE_AFM_FOR_POSTSCRIPT 1
49514 _ACEOF
49515
49516
49517 if test "$wxUSE_SVG" = "yes"; then
49518     cat >>confdefs.h <<\_ACEOF
49519 #define wxUSE_SVG 1
49520 _ACEOF
49521
49522 fi
49523
49524
49525 if test "$wxUSE_METAFILE" = "yes"; then
49526     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
49527         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
49528 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
49529         wxUSE_METAFILE=no
49530     fi
49531 elif test "$wxUSE_METAFILE" = "auto"; then
49532     if test "$wxUSE_MSW" = 1 -o "$wxUSE_MAC" = 1 -o "$wxUSE_PM" = 1; then
49533         wxUSE_METAFILE=yes
49534     fi
49535 fi
49536
49537 if test "$wxUSE_METAFILE" = "yes"; then
49538     cat >>confdefs.h <<\_ACEOF
49539 #define wxUSE_METAFILE 1
49540 _ACEOF
49541
49542     if test "$wxUSE_MSW" = 1; then
49543                 cat >>confdefs.h <<\_ACEOF
49544 #define wxUSE_ENH_METAFILE 1
49545 _ACEOF
49546
49547     fi
49548 fi
49549
49550
49551 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
49552                           -o "$wxUSE_CLIPBOARD"     = "yes" \
49553                           -o "$wxUSE_OLE"     = "yes" \
49554                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
49555     { echo "$as_me:$LINENO: checking for ole2.h" >&5
49556 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
49557 if test "${ac_cv_header_ole2_h+set}" = set; then
49558   echo $ECHO_N "(cached) $ECHO_C" >&6
49559 else
49560   cat >conftest.$ac_ext <<_ACEOF
49561 /* confdefs.h.  */
49562 _ACEOF
49563 cat confdefs.h >>conftest.$ac_ext
49564 cat >>conftest.$ac_ext <<_ACEOF
49565 /* end confdefs.h.  */
49566
49567
49568 #include <ole2.h>
49569 _ACEOF
49570 rm -f conftest.$ac_objext
49571 if { (ac_try="$ac_compile"
49572 case "(($ac_try" in
49573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49574   *) ac_try_echo=$ac_try;;
49575 esac
49576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49577   (eval "$ac_compile") 2>conftest.er1
49578   ac_status=$?
49579   grep -v '^ *+' conftest.er1 >conftest.err
49580   rm -f conftest.er1
49581   cat conftest.err >&5
49582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49583   (exit $ac_status); } && {
49584          test -z "$ac_c_werror_flag" ||
49585          test ! -s conftest.err
49586        } && test -s conftest.$ac_objext; then
49587   ac_cv_header_ole2_h=yes
49588 else
49589   echo "$as_me: failed program was:" >&5
49590 sed 's/^/| /' conftest.$ac_ext >&5
49591
49592         ac_cv_header_ole2_h=no
49593 fi
49594
49595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49596 fi
49597 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
49598 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
49599
49600
49601
49602     if test "$ac_cv_header_ole2_h" = "yes" ; then
49603         if test "$GCC" = yes ; then
49604             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
49605 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
49606             cat >conftest.$ac_ext <<_ACEOF
49607 /* confdefs.h.  */
49608 _ACEOF
49609 cat confdefs.h >>conftest.$ac_ext
49610 cat >>conftest.$ac_ext <<_ACEOF
49611 /* end confdefs.h.  */
49612 #include <windows.h>
49613                             #include <ole2.h>
49614 int
49615 main ()
49616 {
49617
49618   ;
49619   return 0;
49620 }
49621 _ACEOF
49622 rm -f conftest.$ac_objext
49623 if { (ac_try="$ac_compile"
49624 case "(($ac_try" in
49625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49626   *) ac_try_echo=$ac_try;;
49627 esac
49628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49629   (eval "$ac_compile") 2>conftest.er1
49630   ac_status=$?
49631   grep -v '^ *+' conftest.er1 >conftest.err
49632   rm -f conftest.er1
49633   cat conftest.err >&5
49634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49635   (exit $ac_status); } && {
49636          test -z "$ac_c_werror_flag" ||
49637          test ! -s conftest.err
49638        } && test -s conftest.$ac_objext; then
49639   { echo "$as_me:$LINENO: result: no" >&5
49640 echo "${ECHO_T}no" >&6; }
49641 else
49642   echo "$as_me: failed program was:" >&5
49643 sed 's/^/| /' conftest.$ac_ext >&5
49644
49645         { echo "$as_me:$LINENO: result: yes" >&5
49646 echo "${ECHO_T}yes" >&6; }
49647                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
49648 fi
49649
49650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49651             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
49652             if test "$wxUSE_OLE" = "yes" ; then
49653                 cat >>confdefs.h <<\_ACEOF
49654 #define wxUSE_OLE 1
49655 _ACEOF
49656
49657                 cat >>confdefs.h <<\_ACEOF
49658 #define wxUSE_OLE_AUTOMATION 1
49659 _ACEOF
49660
49661                 cat >>confdefs.h <<\_ACEOF
49662 #define wxUSE_ACTIVEX 1
49663 _ACEOF
49664
49665                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
49666             fi
49667         fi
49668
49669                 if test "$wxUSE_DATAOBJ" = "yes" ; then
49670             cat >>confdefs.h <<\_ACEOF
49671 #define wxUSE_DATAOBJ 1
49672 _ACEOF
49673
49674         fi
49675     else
49676         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
49677 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
49678
49679         wxUSE_CLIPBOARD=no
49680         wxUSE_DRAG_AND_DROP=no
49681         wxUSE_DATAOBJ=no
49682         wxUSE_OLE=no
49683     fi
49684 fi
49685
49686 if test "$wxUSE_IPC" = "yes"; then
49687     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
49688         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
49689 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
49690         wxUSE_IPC=no
49691     fi
49692
49693     if test "$wxUSE_IPC" = "yes"; then
49694         cat >>confdefs.h <<\_ACEOF
49695 #define wxUSE_IPC 1
49696 _ACEOF
49697
49698         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49699     fi
49700 fi
49701
49702 if test "$wxUSE_DATAOBJ" = "yes"; then
49703     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
49704         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
49705 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
49706         wxUSE_DATAOBJ=no
49707     else
49708         cat >>confdefs.h <<\_ACEOF
49709 #define wxUSE_DATAOBJ 1
49710 _ACEOF
49711
49712     fi
49713 else
49714     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
49715 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
49716     wxUSE_CLIPBOARD=no
49717     wxUSE_DRAG_AND_DROP=no
49718 fi
49719
49720 if test "$wxUSE_CLIPBOARD" = "yes"; then
49721     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
49722         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
49723 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
49724         wxUSE_CLIPBOARD=no
49725     fi
49726
49727     if test "$wxUSE_CLIPBOARD" = "yes"; then
49728         cat >>confdefs.h <<\_ACEOF
49729 #define wxUSE_CLIPBOARD 1
49730 _ACEOF
49731
49732     fi
49733 fi
49734
49735 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
49736     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
49737             "$wxUSE_DFB" = 1; then
49738         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
49739 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
49740         wxUSE_DRAG_AND_DROP=no
49741     fi
49742
49743     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
49744         cat >>confdefs.h <<\_ACEOF
49745 #define wxUSE_DRAG_AND_DROP 1
49746 _ACEOF
49747
49748     fi
49749
49750 fi
49751
49752 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
49753     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
49754 fi
49755
49756 if test "$wxUSE_CLIPBOARD" = "yes"; then
49757     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
49758 fi
49759
49760 if test "$wxUSE_SPLINES" = "yes" ; then
49761   cat >>confdefs.h <<\_ACEOF
49762 #define wxUSE_SPLINES 1
49763 _ACEOF
49764
49765 fi
49766
49767 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
49768   cat >>confdefs.h <<\_ACEOF
49769 #define wxUSE_MOUSEWHEEL 1
49770 _ACEOF
49771
49772 fi
49773
49774 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
49775     cat >>confdefs.h <<\_ACEOF
49776 #define wxUSE_UIACTIONSIMULATOR 1
49777 _ACEOF
49778
49779     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
49780 fi
49781
49782 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
49783     cat >>confdefs.h <<\_ACEOF
49784 #define wxUSE_DC_TRANSFORM_MATRIX 1
49785 _ACEOF
49786
49787 fi
49788
49789
49790 USES_CONTROLS=0
49791 if test "$wxUSE_CONTROLS" = "yes"; then
49792   USES_CONTROLS=1
49793 fi
49794
49795 if test "$wxUSE_MARKUP" = "yes"; then
49796   cat >>confdefs.h <<\_ACEOF
49797 #define wxUSE_MARKUP 1
49798 _ACEOF
49799
49800 fi
49801
49802 if test "$wxUSE_ACCEL" = "yes"; then
49803   cat >>confdefs.h <<\_ACEOF
49804 #define wxUSE_ACCEL 1
49805 _ACEOF
49806
49807   USES_CONTROLS=1
49808 fi
49809
49810 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
49811   cat >>confdefs.h <<\_ACEOF
49812 #define wxUSE_ANIMATIONCTRL 1
49813 _ACEOF
49814
49815   USES_CONTROLS=1
49816   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
49817 fi
49818
49819 if test "$wxUSE_BANNERWINDOW" = "yes"; then
49820   cat >>confdefs.h <<\_ACEOF
49821 #define wxUSE_BANNERWINDOW 1
49822 _ACEOF
49823
49824 fi
49825
49826 if test "$wxUSE_BUTTON" = "yes"; then
49827   cat >>confdefs.h <<\_ACEOF
49828 #define wxUSE_BUTTON 1
49829 _ACEOF
49830
49831   USES_CONTROLS=1
49832 fi
49833
49834 if test "$wxUSE_BMPBUTTON" = "yes"; then
49835   cat >>confdefs.h <<\_ACEOF
49836 #define wxUSE_BMPBUTTON 1
49837 _ACEOF
49838
49839   USES_CONTROLS=1
49840 fi
49841
49842 if test "$wxUSE_CALCTRL" = "yes"; then
49843   cat >>confdefs.h <<\_ACEOF
49844 #define wxUSE_CALENDARCTRL 1
49845 _ACEOF
49846
49847   USES_CONTROLS=1
49848   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
49849 fi
49850
49851 if test "$wxUSE_CARET" = "yes"; then
49852   cat >>confdefs.h <<\_ACEOF
49853 #define wxUSE_CARET 1
49854 _ACEOF
49855
49856   USES_CONTROLS=1
49857   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
49858 fi
49859
49860 if test "$wxUSE_COLLPANE" = "yes"; then
49861     cat >>confdefs.h <<\_ACEOF
49862 #define wxUSE_COLLPANE 1
49863 _ACEOF
49864
49865     USES_CONTROLS=1
49866     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
49867 fi
49868
49869 if test "$wxUSE_COMBOBOX" = "yes"; then
49870   cat >>confdefs.h <<\_ACEOF
49871 #define wxUSE_COMBOBOX 1
49872 _ACEOF
49873
49874   USES_CONTROLS=1
49875 fi
49876
49877 if test "$wxUSE_COMBOCTRL" = "yes"; then
49878   cat >>confdefs.h <<\_ACEOF
49879 #define wxUSE_COMBOCTRL 1
49880 _ACEOF
49881
49882   USES_CONTROLS=1
49883 fi
49884
49885 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
49886   cat >>confdefs.h <<\_ACEOF
49887 #define wxUSE_COMMANDLINKBUTTON 1
49888 _ACEOF
49889
49890   USES_CONTROLS=1
49891 fi
49892
49893 if test "$wxUSE_CHOICE" = "yes"; then
49894   cat >>confdefs.h <<\_ACEOF
49895 #define wxUSE_CHOICE 1
49896 _ACEOF
49897
49898   USES_CONTROLS=1
49899 fi
49900
49901 if test "$wxUSE_CHOICEBOOK" = "yes"; then
49902     cat >>confdefs.h <<\_ACEOF
49903 #define wxUSE_CHOICEBOOK 1
49904 _ACEOF
49905
49906     USES_CONTROLS=1
49907 fi
49908
49909 if test "$wxUSE_CHECKBOX" = "yes"; then
49910   cat >>confdefs.h <<\_ACEOF
49911 #define wxUSE_CHECKBOX 1
49912 _ACEOF
49913
49914   USES_CONTROLS=1
49915 fi
49916
49917 if test "$wxUSE_CHECKLST" = "yes"; then
49918   cat >>confdefs.h <<\_ACEOF
49919 #define wxUSE_CHECKLISTBOX 1
49920 _ACEOF
49921
49922   USES_CONTROLS=1
49923 fi
49924
49925 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
49926   cat >>confdefs.h <<\_ACEOF
49927 #define wxUSE_COLOURPICKERCTRL 1
49928 _ACEOF
49929
49930   USES_CONTROLS=1
49931 fi
49932
49933 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
49934   cat >>confdefs.h <<\_ACEOF
49935 #define wxUSE_DATEPICKCTRL 1
49936 _ACEOF
49937
49938   USES_CONTROLS=1
49939 fi
49940
49941 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
49942   cat >>confdefs.h <<\_ACEOF
49943 #define wxUSE_DIRPICKERCTRL 1
49944 _ACEOF
49945
49946   USES_CONTROLS=1
49947 fi
49948
49949 if test "$wxUSE_FILECTRL" = "yes"; then
49950   cat >>confdefs.h <<\_ACEOF
49951 #define wxUSE_FILECTRL 1
49952 _ACEOF
49953
49954   USES_CONTROLS=1
49955 fi
49956
49957 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
49958   cat >>confdefs.h <<\_ACEOF
49959 #define wxUSE_FILEPICKERCTRL 1
49960 _ACEOF
49961
49962   USES_CONTROLS=1
49963 fi
49964
49965 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
49966   cat >>confdefs.h <<\_ACEOF
49967 #define wxUSE_FONTPICKERCTRL 1
49968 _ACEOF
49969
49970   USES_CONTROLS=1
49971 fi
49972
49973 if test "$wxUSE_DISPLAY" = "yes"; then
49974     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
49975         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
49976 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
49977         wxUSE_DISPLAY=no
49978     else
49979         cat >>confdefs.h <<\_ACEOF
49980 #define wxUSE_DISPLAY 1
49981 _ACEOF
49982
49983         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
49984     fi
49985 fi
49986
49987 if test "$wxUSE_DETECT_SM" = "yes"; then
49988     cat >>confdefs.h <<\_ACEOF
49989 #define wxUSE_DETECT_SM 1
49990 _ACEOF
49991
49992 fi
49993
49994 if test "$wxUSE_GAUGE" = "yes"; then
49995   cat >>confdefs.h <<\_ACEOF
49996 #define wxUSE_GAUGE 1
49997 _ACEOF
49998
49999   USES_CONTROLS=1
50000 fi
50001
50002 if test "$wxUSE_GRID" = "yes"; then
50003   cat >>confdefs.h <<\_ACEOF
50004 #define wxUSE_GRID 1
50005 _ACEOF
50006
50007   USES_CONTROLS=1
50008   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
50009 fi
50010
50011 if test "$wxUSE_HEADERCTRL" = "yes"; then
50012   cat >>confdefs.h <<\_ACEOF
50013 #define wxUSE_HEADERCTRL 1
50014 _ACEOF
50015
50016   USES_CONTROLS=1
50017 fi
50018
50019 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
50020   cat >>confdefs.h <<\_ACEOF
50021 #define wxUSE_HYPERLINKCTRL 1
50022 _ACEOF
50023
50024   USES_CONTROLS=1
50025 fi
50026
50027 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
50028   cat >>confdefs.h <<\_ACEOF
50029 #define wxUSE_BITMAPCOMBOBOX 1
50030 _ACEOF
50031
50032   USES_CONTROLS=1
50033 fi
50034
50035 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
50036   cat >>confdefs.h <<\_ACEOF
50037 #define wxUSE_DATAVIEWCTRL 1
50038 _ACEOF
50039
50040   USES_CONTROLS=1
50041   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
50042 fi
50043
50044 if test "$wxUSE_IMAGLIST" = "yes"; then
50045     cat >>confdefs.h <<\_ACEOF
50046 #define wxUSE_IMAGLIST 1
50047 _ACEOF
50048
50049 fi
50050
50051 if test "$wxUSE_INFOBAR" = "yes"; then
50052     cat >>confdefs.h <<\_ACEOF
50053 #define wxUSE_INFOBAR 1
50054 _ACEOF
50055
50056 fi
50057
50058 if test "$wxUSE_LISTBOOK" = "yes"; then
50059     cat >>confdefs.h <<\_ACEOF
50060 #define wxUSE_LISTBOOK 1
50061 _ACEOF
50062
50063     USES_CONTROLS=1
50064 fi
50065
50066 if test "$wxUSE_LISTBOX" = "yes"; then
50067     cat >>confdefs.h <<\_ACEOF
50068 #define wxUSE_LISTBOX 1
50069 _ACEOF
50070
50071     USES_CONTROLS=1
50072 fi
50073
50074 if test "$wxUSE_LISTCTRL" = "yes"; then
50075     if test "$wxUSE_IMAGLIST" = "yes"; then
50076         cat >>confdefs.h <<\_ACEOF
50077 #define wxUSE_LISTCTRL 1
50078 _ACEOF
50079
50080         USES_CONTROLS=1
50081         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
50082     else
50083         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
50084 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
50085     fi
50086 fi
50087
50088 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
50089     cat >>confdefs.h <<\_ACEOF
50090 #define wxUSE_EDITABLELISTBOX 1
50091 _ACEOF
50092
50093     USES_CONTROLS=1
50094 fi
50095
50096 if test "$wxUSE_NOTEBOOK" = "yes"; then
50097     cat >>confdefs.h <<\_ACEOF
50098 #define wxUSE_NOTEBOOK 1
50099 _ACEOF
50100
50101     USES_CONTROLS=1
50102     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
50103 fi
50104
50105 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
50106     cat >>confdefs.h <<\_ACEOF
50107 #define wxUSE_NOTIFICATION_MESSAGE 1
50108 _ACEOF
50109
50110 fi
50111
50112 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
50113   cat >>confdefs.h <<\_ACEOF
50114 #define wxUSE_ODCOMBOBOX 1
50115 _ACEOF
50116
50117   USES_CONTROLS=1
50118   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
50119 fi
50120
50121 if test "$wxUSE_RADIOBOX" = "yes"; then
50122     cat >>confdefs.h <<\_ACEOF
50123 #define wxUSE_RADIOBOX 1
50124 _ACEOF
50125
50126     USES_CONTROLS=1
50127 fi
50128
50129 if test "$wxUSE_RADIOBTN" = "yes"; then
50130     cat >>confdefs.h <<\_ACEOF
50131 #define wxUSE_RADIOBTN 1
50132 _ACEOF
50133
50134     USES_CONTROLS=1
50135 fi
50136
50137 if test "$wxUSE_REARRANGECTRL" = "yes"; then
50138     cat >>confdefs.h <<\_ACEOF
50139 #define wxUSE_REARRANGECTRL 1
50140 _ACEOF
50141
50142 fi
50143
50144 if test "$wxUSE_RICHMSGDLG" = "yes"; then
50145     cat >>confdefs.h <<\_ACEOF
50146 #define wxUSE_RICHMSGDLG 1
50147 _ACEOF
50148
50149 fi
50150
50151 if test "$wxUSE_RICHTOOLTIP" = "yes"; then
50152     cat >>confdefs.h <<\_ACEOF
50153 #define wxUSE_RICHTOOLTIP 1
50154 _ACEOF
50155
50156 fi
50157
50158 if test "$wxUSE_SASH" = "yes"; then
50159     cat >>confdefs.h <<\_ACEOF
50160 #define wxUSE_SASH 1
50161 _ACEOF
50162
50163     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
50164 fi
50165
50166 if test "$wxUSE_SCROLLBAR" = "yes"; then
50167     cat >>confdefs.h <<\_ACEOF
50168 #define wxUSE_SCROLLBAR 1
50169 _ACEOF
50170
50171     USES_CONTROLS=1
50172     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
50173 fi
50174
50175 if test "$wxUSE_SEARCHCTRL" = "yes"; then
50176     cat >>confdefs.h <<\_ACEOF
50177 #define wxUSE_SEARCHCTRL 1
50178 _ACEOF
50179
50180     USES_CONTROLS=1
50181 fi
50182
50183 if test "$wxUSE_SLIDER" = "yes"; then
50184     cat >>confdefs.h <<\_ACEOF
50185 #define wxUSE_SLIDER 1
50186 _ACEOF
50187
50188     USES_CONTROLS=1
50189 fi
50190
50191 if test "$wxUSE_SPINBTN" = "yes"; then
50192     cat >>confdefs.h <<\_ACEOF
50193 #define wxUSE_SPINBTN 1
50194 _ACEOF
50195
50196     USES_CONTROLS=1
50197 fi
50198
50199 if test "$wxUSE_SPINCTRL" = "yes"; then
50200     cat >>confdefs.h <<\_ACEOF
50201 #define wxUSE_SPINCTRL 1
50202 _ACEOF
50203
50204     USES_CONTROLS=1
50205 fi
50206
50207 if test "$wxUSE_SPLITTER" = "yes"; then
50208     cat >>confdefs.h <<\_ACEOF
50209 #define wxUSE_SPLITTER 1
50210 _ACEOF
50211
50212     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
50213 fi
50214
50215 if test "$wxUSE_STATBMP" = "yes"; then
50216     cat >>confdefs.h <<\_ACEOF
50217 #define wxUSE_STATBMP 1
50218 _ACEOF
50219
50220     USES_CONTROLS=1
50221 fi
50222
50223 if test "$wxUSE_STATBOX" = "yes"; then
50224     cat >>confdefs.h <<\_ACEOF
50225 #define wxUSE_STATBOX 1
50226 _ACEOF
50227
50228     USES_CONTROLS=1
50229 fi
50230
50231 if test "$wxUSE_STATTEXT" = "yes"; then
50232     cat >>confdefs.h <<\_ACEOF
50233 #define wxUSE_STATTEXT 1
50234 _ACEOF
50235
50236     USES_CONTROLS=1
50237 fi
50238
50239 if test "$wxUSE_STATLINE" = "yes"; then
50240     cat >>confdefs.h <<\_ACEOF
50241 #define wxUSE_STATLINE 1
50242 _ACEOF
50243
50244     USES_CONTROLS=1
50245 fi
50246
50247 if test "$wxUSE_STATUSBAR" = "yes"; then
50248         cat >>confdefs.h <<\_ACEOF
50249 #define wxUSE_NATIVE_STATUSBAR 1
50250 _ACEOF
50251
50252     cat >>confdefs.h <<\_ACEOF
50253 #define wxUSE_STATUSBAR 1
50254 _ACEOF
50255
50256     USES_CONTROLS=1
50257
50258     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
50259 fi
50260
50261 if test "$wxUSE_TEXTCTRL" = "yes"; then
50262     cat >>confdefs.h <<\_ACEOF
50263 #define wxUSE_TEXTCTRL 1
50264 _ACEOF
50265
50266     USES_CONTROLS=1
50267     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
50268
50269             cat >>confdefs.h <<\_ACEOF
50270 #define wxUSE_RICHEDIT 1
50271 _ACEOF
50272
50273     cat >>confdefs.h <<\_ACEOF
50274 #define wxUSE_RICHEDIT2 1
50275 _ACEOF
50276
50277 fi
50278
50279 if test "$wxUSE_TIMEPICKCTRL" = "yes"; then
50280   cat >>confdefs.h <<\_ACEOF
50281 #define wxUSE_TIMEPICKCTRL 1
50282 _ACEOF
50283
50284   USES_CONTROLS=1
50285 fi
50286
50287 if test "$wxUSE_TOGGLEBTN" = "yes"; then
50288     if test "$wxUSE_OLD_COCOA" = 1 ; then
50289         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
50290 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
50291         wxUSE_TOGGLEBTN=no
50292     fi
50293
50294     if test "$wxUSE_TOGGLEBTN" = "yes"; then
50295         cat >>confdefs.h <<\_ACEOF
50296 #define wxUSE_TOGGLEBTN 1
50297 _ACEOF
50298
50299         USES_CONTROLS=1
50300     fi
50301 fi
50302
50303 if test "$wxUSE_TOOLBAR" = "yes"; then
50304     cat >>confdefs.h <<\_ACEOF
50305 #define wxUSE_TOOLBAR 1
50306 _ACEOF
50307
50308     USES_CONTROLS=1
50309
50310     if test "$wxUSE_UNIVERSAL" = "yes"; then
50311         wxUSE_TOOLBAR_NATIVE="no"
50312     else
50313         wxUSE_TOOLBAR_NATIVE="yes"
50314         cat >>confdefs.h <<\_ACEOF
50315 #define wxUSE_TOOLBAR_NATIVE 1
50316 _ACEOF
50317
50318     fi
50319
50320     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
50321 fi
50322
50323 if test "$wxUSE_TOOLTIPS" = "yes"; then
50324     if test "$wxUSE_MOTIF" = 1; then
50325         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
50326 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
50327     else
50328         if test "$wxUSE_UNIVERSAL" = "yes"; then
50329             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
50330 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
50331         else
50332             cat >>confdefs.h <<\_ACEOF
50333 #define wxUSE_TOOLTIPS 1
50334 _ACEOF
50335
50336         fi
50337     fi
50338 fi
50339
50340 if test "$wxUSE_TREEBOOK" = "yes"; then
50341     cat >>confdefs.h <<\_ACEOF
50342 #define wxUSE_TREEBOOK 1
50343 _ACEOF
50344
50345     USES_CONTROLS=1
50346 fi
50347
50348 if test "$wxUSE_TOOLBOOK" = "yes"; then
50349     cat >>confdefs.h <<\_ACEOF
50350 #define wxUSE_TOOLBOOK 1
50351 _ACEOF
50352
50353     USES_CONTROLS=1
50354 fi
50355
50356 if test "$wxUSE_TREECTRL" = "yes"; then
50357     if test "$wxUSE_IMAGLIST" = "yes"; then
50358         cat >>confdefs.h <<\_ACEOF
50359 #define wxUSE_TREECTRL 1
50360 _ACEOF
50361
50362         USES_CONTROLS=1
50363         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
50364     else
50365         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
50366 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
50367     fi
50368 fi
50369
50370 if test "$wxUSE_TREELISTCTRL" = "yes"; then
50371     cat >>confdefs.h <<\_ACEOF
50372 #define wxUSE_TREELISTCTRL 1
50373 _ACEOF
50374
50375     USES_CONTROLS=1
50376     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelist"
50377 fi
50378
50379 if test "$wxUSE_POPUPWIN" = "yes"; then
50380     if test "$wxUSE_OLD_COCOA" = 1 ; then
50381         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
50382 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
50383     else
50384         if test "$wxUSE_PM" = 1; then
50385             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
50386 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
50387         else
50388             cat >>confdefs.h <<\_ACEOF
50389 #define wxUSE_POPUPWIN 1
50390 _ACEOF
50391
50392             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
50393
50394             USES_CONTROLS=1
50395         fi
50396     fi
50397 fi
50398
50399 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
50400     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
50401         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
50402 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
50403     else
50404         cat >>confdefs.h <<\_ACEOF
50405 #define wxUSE_DIALUP_MANAGER 1
50406 _ACEOF
50407
50408         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
50409     fi
50410 fi
50411
50412 if test "$wxUSE_TIPWINDOW" = "yes"; then
50413     if test "$wxUSE_PM" = 1; then
50414         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
50415 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
50416     else
50417         cat >>confdefs.h <<\_ACEOF
50418 #define wxUSE_TIPWINDOW 1
50419 _ACEOF
50420
50421     fi
50422 fi
50423
50424 if test "$USES_CONTROLS" = 1; then
50425     cat >>confdefs.h <<\_ACEOF
50426 #define wxUSE_CONTROLS 1
50427 _ACEOF
50428
50429 fi
50430
50431
50432 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
50433     cat >>confdefs.h <<\_ACEOF
50434 #define wxUSE_ACCESSIBILITY 1
50435 _ACEOF
50436
50437     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
50438 fi
50439
50440 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
50441     cat >>confdefs.h <<\_ACEOF
50442 #define wxUSE_ARTPROVIDER_STD 1
50443 _ACEOF
50444
50445 fi
50446
50447 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
50448             if test "$wxUSE_GTK" != 1; then
50449                 if test "$wxUSE_LIBPNG" != no -a \
50450                 "$wxUSE_IMAGE" = yes -a \
50451                 "$wxUSE_STREAMS" = yes; then
50452             wxUSE_ARTPROVIDER_TANGO="yes"
50453         fi
50454     fi
50455 fi
50456
50457 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
50458     cat >>confdefs.h <<\_ACEOF
50459 #define wxUSE_ARTPROVIDER_TANGO 1
50460 _ACEOF
50461
50462 fi
50463
50464 if test "$wxUSE_DRAGIMAGE" = "yes"; then
50465     cat >>confdefs.h <<\_ACEOF
50466 #define wxUSE_DRAGIMAGE 1
50467 _ACEOF
50468
50469     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
50470 fi
50471
50472 if test "$wxUSE_EXCEPTIONS" = "yes"; then
50473     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
50474         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
50475 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
50476     else
50477         cat >>confdefs.h <<\_ACEOF
50478 #define wxUSE_EXCEPTIONS 1
50479 _ACEOF
50480
50481         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
50482     fi
50483 fi
50484
50485 USE_HTML=0
50486 if test "$wxUSE_HTML" = "yes"; then
50487     cat >>confdefs.h <<\_ACEOF
50488 #define wxUSE_HTML 1
50489 _ACEOF
50490
50491     USE_HTML=1
50492     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
50493 fi
50494 if test "$wxUSE_WEBKIT" = "yes"; then
50495     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
50496         old_CPPFLAGS="$CPPFLAGS"
50497         CPPFLAGS="-x objective-c++ $CPPFLAGS"
50498         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
50499 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
50500 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
50501   echo $ECHO_N "(cached) $ECHO_C" >&6
50502 else
50503   cat >conftest.$ac_ext <<_ACEOF
50504 /* confdefs.h.  */
50505 _ACEOF
50506 cat confdefs.h >>conftest.$ac_ext
50507 cat >>conftest.$ac_ext <<_ACEOF
50508 /* end confdefs.h.  */
50509
50510                            #include <Carbon/Carbon.h>
50511                            #include <WebKit/WebKit.h>
50512
50513
50514 #include <WebKit/HIWebView.h>
50515 _ACEOF
50516 rm -f conftest.$ac_objext
50517 if { (ac_try="$ac_compile"
50518 case "(($ac_try" in
50519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50520   *) ac_try_echo=$ac_try;;
50521 esac
50522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50523   (eval "$ac_compile") 2>conftest.er1
50524   ac_status=$?
50525   grep -v '^ *+' conftest.er1 >conftest.err
50526   rm -f conftest.er1
50527   cat conftest.err >&5
50528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50529   (exit $ac_status); } && {
50530          test -z "$ac_c_werror_flag" ||
50531          test ! -s conftest.err
50532        } && test -s conftest.$ac_objext; then
50533   ac_cv_header_WebKit_HIWebView_h=yes
50534 else
50535   echo "$as_me: failed program was:" >&5
50536 sed 's/^/| /' conftest.$ac_ext >&5
50537
50538         ac_cv_header_WebKit_HIWebView_h=no
50539 fi
50540
50541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50542 fi
50543 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
50544 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
50545 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
50546
50547                            cat >>confdefs.h <<\_ACEOF
50548 #define wxUSE_WEBKIT 1
50549 _ACEOF
50550
50551                            WEBKIT_LINK="-framework WebKit"
50552
50553 else
50554
50555                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
50556 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
50557                            wxUSE_WEBKIT=no
50558
50559 fi
50560
50561
50562         CPPFLAGS="$old_CPPFLAGS"
50563     elif test "$wxUSE_OLD_COCOA" = 1; then
50564         cat >>confdefs.h <<\_ACEOF
50565 #define wxUSE_WEBKIT 1
50566 _ACEOF
50567
50568     else
50569         wxUSE_WEBKIT=no
50570     fi
50571     if test "$wxUSE_WEBKIT" = "yes"; then
50572         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
50573     fi
50574 fi
50575
50576 USE_XRC=0
50577 if test "$wxUSE_XRC" = "yes"; then
50578     if test "$wxUSE_XML" != "yes"; then
50579         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
50580 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
50581         wxUSE_XRC=no
50582     else
50583         cat >>confdefs.h <<\_ACEOF
50584 #define wxUSE_XRC 1
50585 _ACEOF
50586
50587         USE_XRC=1
50588         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
50589     fi
50590 fi
50591
50592 USE_AUI=0
50593 if test "$wxUSE_AUI" = "yes"; then
50594    cat >>confdefs.h <<\_ACEOF
50595 #define wxUSE_AUI 1
50596 _ACEOF
50597
50598    USE_AUI=1
50599    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
50600 fi
50601
50602 USE_PROPGRID=0
50603 if test "$wxUSE_PROPGRID" = "yes"; then
50604    cat >>confdefs.h <<\_ACEOF
50605 #define wxUSE_PROPGRID 1
50606 _ACEOF
50607
50608    USE_PROPGRID=1
50609    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
50610 fi
50611
50612 USE_RIBBON=0
50613 if test "$wxUSE_RIBBON" = "yes"; then
50614    cat >>confdefs.h <<\_ACEOF
50615 #define wxUSE_RIBBON 1
50616 _ACEOF
50617
50618    USE_RIBBON=1
50619    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
50620 fi
50621
50622 USE_STC=0
50623 if test "$wxUSE_STC" = "yes"; then
50624    cat >>confdefs.h <<\_ACEOF
50625 #define wxUSE_STC 1
50626 _ACEOF
50627
50628    USE_STC=1
50629    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
50630
50631       # Extract the first word of "python", so it can be a program name with args.
50632 set dummy python; ac_word=$2
50633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50635 if test "${ac_cv_path_PYTHON+set}" = set; then
50636   echo $ECHO_N "(cached) $ECHO_C" >&6
50637 else
50638   case $PYTHON in
50639   [\\/]* | ?:[\\/]*)
50640   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
50641   ;;
50642   *)
50643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50644 for as_dir in $PATH
50645 do
50646   IFS=$as_save_IFS
50647   test -z "$as_dir" && as_dir=.
50648   for ac_exec_ext in '' $ac_executable_extensions; do
50649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50650     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
50651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50652     break 2
50653   fi
50654 done
50655 done
50656 IFS=$as_save_IFS
50657
50658   ;;
50659 esac
50660 fi
50661 PYTHON=$ac_cv_path_PYTHON
50662 if test -n "$PYTHON"; then
50663   { echo "$as_me:$LINENO: result: $PYTHON" >&5
50664 echo "${ECHO_T}$PYTHON" >&6; }
50665 else
50666   { echo "$as_me:$LINENO: result: no" >&5
50667 echo "${ECHO_T}no" >&6; }
50668 fi
50669
50670
50671    if test "x$PYTHON" = "x"; then
50672      COND_PYTHON="#"
50673    fi
50674
50675 fi
50676
50677 if test "$wxUSE_MENUS" = "yes"; then
50678     cat >>confdefs.h <<\_ACEOF
50679 #define wxUSE_MENUS 1
50680 _ACEOF
50681
50682     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
50683 fi
50684
50685 if test "$wxUSE_MIMETYPE" = "yes"; then
50686     cat >>confdefs.h <<\_ACEOF
50687 #define wxUSE_MIMETYPE 1
50688 _ACEOF
50689
50690 fi
50691
50692 if test "$wxUSE_MINIFRAME" = "yes"; then
50693     cat >>confdefs.h <<\_ACEOF
50694 #define wxUSE_MINIFRAME 1
50695 _ACEOF
50696
50697 fi
50698
50699 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
50700     cat >>confdefs.h <<\_ACEOF
50701 #define wxUSE_SYSTEM_OPTIONS 1
50702 _ACEOF
50703
50704 fi
50705
50706 if test "$wxUSE_TASKBARICON" = "yes"; then
50707     cat >>confdefs.h <<\_ACEOF
50708 #define wxUSE_TASKBARICON 1
50709 _ACEOF
50710
50711     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
50712 fi
50713
50714
50715 if test "$wxUSE_VALIDATORS" = "yes"; then
50716     cat >>confdefs.h <<\_ACEOF
50717 #define wxUSE_VALIDATORS 1
50718 _ACEOF
50719
50720     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
50721 fi
50722
50723 if test "$wxUSE_PALETTE" = "yes" ; then
50724     if test "$wxUSE_DFB" = 1; then
50725         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
50726 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
50727         wxUSE_PALETTE=no
50728     else
50729         cat >>confdefs.h <<\_ACEOF
50730 #define wxUSE_PALETTE 1
50731 _ACEOF
50732
50733     fi
50734 fi
50735
50736 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
50737     LIBS=" -lunicows $LIBS"
50738 fi
50739
50740 USE_RICHTEXT=0
50741 if test "$wxUSE_RICHTEXT" = "yes"; then
50742     cat >>confdefs.h <<\_ACEOF
50743 #define wxUSE_RICHTEXT 1
50744 _ACEOF
50745
50746     USE_RICHTEXT=1
50747     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
50748 fi
50749
50750 if test "$wxUSE_WEBVIEW" = "yes"; then
50751     USE_WEBVIEW_WEBKIT=0
50752     if test "$wxUSE_WEBVIEW_WEBKIT" = "yes"; then
50753         if test "$wxUSE_GTK" = 1; then
50754             { echo "$as_me:$LINENO: checking for webkitgtk libraries" >&5
50755 echo $ECHO_N "checking for webkitgtk libraries... $ECHO_C" >&6; }
50756
50757   ac_find_libraries=
50758   for ac_dir in  $SEARCH_LIB
50759   do
50760     for ac_extension in a so sl dylib dll.a; do
50761       if test -f "$ac_dir/libwebkitgtk-1.0.$ac_extension"; then
50762         ac_find_libraries=$ac_dir
50763         break 2
50764       fi
50765     done
50766   done
50767
50768             if test "$ac_find_libraries" != "" ; then
50769
50770     if test "$ac_find_libraries" = "default location"; then
50771     ac_path_to_link=""
50772   else
50773     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
50774     result=$?
50775     if test $result = 0; then
50776       ac_path_to_link=""
50777     else
50778       ac_path_to_link=" -L$ac_find_libraries"
50779     fi
50780   fi
50781
50782                 if test "$ac_path_to_link" != " -L/usr/lib" ; then
50783                     LDFLAGS="$LDFLAGS $ac_path_to_link"
50784                 fi
50785                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwebkitgtk-1.0"
50786                 { echo "$as_me:$LINENO: result: yes" >&5
50787 echo "${ECHO_T}yes" >&6; }
50788
50789                 { echo "$as_me:$LINENO: checking for webkitgtk headers" >&5
50790 echo $ECHO_N "checking for webkitgtk headers... $ECHO_C" >&6; }
50791
50792 ac_find_includes=
50793 for ac_dir in $SEARCH_INCLUDE /usr/include/webkit-1.0 /usr/include
50794   do
50795     if test -f "$ac_dir/webkit/webkit.h"; then
50796       ac_find_includes=$ac_dir
50797       break
50798     fi
50799   done
50800
50801                 if test "$ac_find_includes" != "" ; then
50802                    { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
50803 echo "${ECHO_T}found in $ac_find_includes" >&6; }
50804
50805     if test "x$ac_find_includes" = "x/usr/include"; then
50806     ac_path_to_include=""
50807   else
50808     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
50809     result=$?
50810     if test $result = 0; then
50811       ac_path_to_include=""
50812     else
50813       ac_path_to_include=" -I$ac_find_includes"
50814     fi
50815   fi
50816
50817                    CPPFLAGS="$ac_path_to_include $CPPFLAGS"
50818
50819                                       { echo "$as_me:$LINENO: checking for libsoup headers" >&5
50820 echo $ECHO_N "checking for libsoup headers... $ECHO_C" >&6; }
50821
50822 ac_find_includes=
50823 for ac_dir in $SEARCH_INCLUDE /usr/include/libsoup-2.4 /usr/include
50824   do
50825     if test -f "$ac_dir/libsoup/soup.h"; then
50826       ac_find_includes=$ac_dir
50827       break
50828     fi
50829   done
50830
50831                    if test "$ac_find_includes" != "" ; then
50832                        { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
50833 echo "${ECHO_T}found in $ac_find_includes" >&6; }
50834
50835     if test "x$ac_find_includes" = "x/usr/include"; then
50836     ac_path_to_include=""
50837   else
50838     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
50839     result=$?
50840     if test $result = 0; then
50841       ac_path_to_include=""
50842     else
50843       ac_path_to_include=" -I$ac_find_includes"
50844     fi
50845   fi
50846
50847                        CPPFLAGS="$ac_path_to_include $CPPFLAGS"
50848
50849                        USE_WEBVIEW_WEBKIT=1
50850                    else
50851                        { echo "$as_me:$LINENO: result: not found" >&5
50852 echo "${ECHO_T}not found" >&6; }
50853                        { echo "$as_me:$LINENO: WARNING: libsoup headers not found; disabling WebKit backend" >&5
50854 echo "$as_me: WARNING: libsoup headers not found; disabling WebKit backend" >&2;}
50855                    fi
50856                 else
50857                    { echo "$as_me:$LINENO: result: not found" >&5
50858 echo "${ECHO_T}not found" >&6; }
50859                    { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling WebKit backend" >&5
50860 echo "$as_me: WARNING: WebKit headers not found; disabling WebKit backend" >&2;}
50861                 fi
50862             else
50863                 { echo "$as_me:$LINENO: result: no" >&5
50864 echo "${ECHO_T}no" >&6; }
50865                 { echo "$as_me:$LINENO: WARNING: WebKit libraries not found; disabling WebKit backend" >&5
50866 echo "$as_me: WARNING: WebKit libraries not found; disabling WebKit backend" >&2;}
50867             fi
50868         elif test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
50869                                     old_CPPFLAGS="$CPPFLAGS"
50870             CPPFLAGS="-x objective-c++ $CPPFLAGS"
50871             { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
50872 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
50873 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
50874   echo $ECHO_N "(cached) $ECHO_C" >&6
50875 else
50876   cat >conftest.$ac_ext <<_ACEOF
50877 /* confdefs.h.  */
50878 _ACEOF
50879 cat confdefs.h >>conftest.$ac_ext
50880 cat >>conftest.$ac_ext <<_ACEOF
50881 /* end confdefs.h.  */
50882
50883                                 #include <Carbon/Carbon.h>
50884                                 #include <WebKit/WebKit.h>
50885
50886
50887 #include <WebKit/HIWebView.h>
50888 _ACEOF
50889 rm -f conftest.$ac_objext
50890 if { (ac_try="$ac_compile"
50891 case "(($ac_try" in
50892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50893   *) ac_try_echo=$ac_try;;
50894 esac
50895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50896   (eval "$ac_compile") 2>conftest.er1
50897   ac_status=$?
50898   grep -v '^ *+' conftest.er1 >conftest.err
50899   rm -f conftest.er1
50900   cat conftest.err >&5
50901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50902   (exit $ac_status); } && {
50903          test -z "$ac_c_werror_flag" ||
50904          test ! -s conftest.err
50905        } && test -s conftest.$ac_objext; then
50906   ac_cv_header_WebKit_HIWebView_h=yes
50907 else
50908   echo "$as_me: failed program was:" >&5
50909 sed 's/^/| /' conftest.$ac_ext >&5
50910
50911         ac_cv_header_WebKit_HIWebView_h=no
50912 fi
50913
50914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50915 fi
50916 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
50917 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
50918 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
50919
50920                                 USE_WEBVIEW_WEBKIT=1
50921                                 WEBKIT_LINK="-framework WebKit"
50922
50923 else
50924
50925                                 { echo "$as_me:$LINENO: WARNING: WebKit headers not found" >&5
50926 echo "$as_me: WARNING: WebKit headers not found" >&2;}
50927
50928 fi
50929
50930
50931             CPPFLAGS="$old_CPPFLAGS"
50932         fi
50933     fi
50934
50935     wxUSE_WEBVIEW="no"
50936     if test "$wxUSE_GTK" = 1 -o "$wxUSE_MAC" = 1; then
50937         if test "$USE_WEBVIEW_WEBKIT" = 1; then
50938             wxUSE_WEBVIEW="yes"
50939             cat >>confdefs.h <<\_ACEOF
50940 #define wxUSE_WEBVIEW_WEBKIT 1
50941 _ACEOF
50942
50943         else
50944             { echo "$as_me:$LINENO: WARNING: WebKit not available, disabling wxWebView" >&5
50945 echo "$as_me: WARNING: WebKit not available, disabling wxWebView" >&2;}
50946         fi
50947     elif test "$wxUSE_MSW" = 1; then
50948         if test "$wxUSE_WEBVIEW_IE" = "yes"; then
50949                                     wxUSE_WEBVIEW="yes"
50950             cat >>confdefs.h <<\_ACEOF
50951 #define wxUSE_WEBVIEW_IE 1
50952 _ACEOF
50953
50954         fi
50955     fi
50956 fi
50957
50958 if test "$wxUSE_WEBVIEW" = "yes"; then
50959     USE_WEBVIEW=1
50960     cat >>confdefs.h <<\_ACEOF
50961 #define wxUSE_WEBVIEW 1
50962 _ACEOF
50963
50964     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS webview"
50965 else
50966     USE_WEBVIEW=0
50967 fi
50968
50969
50970 if test "$wxUSE_IMAGE" = "yes" ; then
50971     cat >>confdefs.h <<\_ACEOF
50972 #define wxUSE_IMAGE 1
50973 _ACEOF
50974
50975
50976     if test "$wxUSE_GIF" = "yes" ; then
50977       cat >>confdefs.h <<\_ACEOF
50978 #define wxUSE_GIF 1
50979 _ACEOF
50980
50981     fi
50982
50983     if test "$wxUSE_PCX" = "yes" ; then
50984       cat >>confdefs.h <<\_ACEOF
50985 #define wxUSE_PCX 1
50986 _ACEOF
50987
50988     fi
50989
50990     if test "$wxUSE_TGA" = "yes" ; then
50991       cat >>confdefs.h <<\_ACEOF
50992 #define wxUSE_TGA 1
50993 _ACEOF
50994
50995     fi
50996
50997     if test "$wxUSE_IFF" = "yes" ; then
50998       cat >>confdefs.h <<\_ACEOF
50999 #define wxUSE_IFF 1
51000 _ACEOF
51001
51002     fi
51003
51004     if test "$wxUSE_PNM" = "yes" ; then
51005       cat >>confdefs.h <<\_ACEOF
51006 #define wxUSE_PNM 1
51007 _ACEOF
51008
51009     fi
51010
51011     if test "$wxUSE_XPM" = "yes" ; then
51012       cat >>confdefs.h <<\_ACEOF
51013 #define wxUSE_XPM 1
51014 _ACEOF
51015
51016     fi
51017
51018     if test "$wxUSE_ICO_CUR" = "yes" ; then
51019       cat >>confdefs.h <<\_ACEOF
51020 #define wxUSE_ICO_CUR 1
51021 _ACEOF
51022
51023     fi
51024 fi
51025
51026
51027 if test "$wxUSE_ABOUTDLG" = "yes"; then
51028     cat >>confdefs.h <<\_ACEOF
51029 #define wxUSE_ABOUTDLG 1
51030 _ACEOF
51031
51032 fi
51033
51034 if test "$wxUSE_CHOICEDLG" = "yes"; then
51035     cat >>confdefs.h <<\_ACEOF
51036 #define wxUSE_CHOICEDLG 1
51037 _ACEOF
51038
51039 fi
51040
51041 if test "$wxUSE_COLOURDLG" = "yes"; then
51042     cat >>confdefs.h <<\_ACEOF
51043 #define wxUSE_COLOURDLG 1
51044 _ACEOF
51045
51046 fi
51047
51048 if test "$wxUSE_FILEDLG" = "yes"; then
51049     cat >>confdefs.h <<\_ACEOF
51050 #define wxUSE_FILEDLG 1
51051 _ACEOF
51052
51053 fi
51054
51055 if test "$wxUSE_FINDREPLDLG" = "yes"; then
51056     cat >>confdefs.h <<\_ACEOF
51057 #define wxUSE_FINDREPLDLG 1
51058 _ACEOF
51059
51060 fi
51061
51062 if test "$wxUSE_FONTDLG" = "yes"; then
51063     cat >>confdefs.h <<\_ACEOF
51064 #define wxUSE_FONTDLG 1
51065 _ACEOF
51066
51067 fi
51068
51069 if test "$wxUSE_DIRDLG" = "yes"; then
51070     if test "$wxUSE_TREECTRL" != "yes"; then
51071         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
51072 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
51073     else
51074         cat >>confdefs.h <<\_ACEOF
51075 #define wxUSE_DIRDLG 1
51076 _ACEOF
51077
51078     fi
51079 fi
51080
51081 if test "$wxUSE_MSGDLG" = "yes"; then
51082     cat >>confdefs.h <<\_ACEOF
51083 #define wxUSE_MSGDLG 1
51084 _ACEOF
51085
51086 fi
51087
51088 if test "$wxUSE_NUMBERDLG" = "yes"; then
51089     cat >>confdefs.h <<\_ACEOF
51090 #define wxUSE_NUMBERDLG 1
51091 _ACEOF
51092
51093 fi
51094
51095 if test "$wxUSE_PROGRESSDLG" = "yes"; then
51096     cat >>confdefs.h <<\_ACEOF
51097 #define wxUSE_PROGRESSDLG 1
51098 _ACEOF
51099
51100 fi
51101
51102 if test "$wxUSE_SPLASH" = "yes"; then
51103     cat >>confdefs.h <<\_ACEOF
51104 #define wxUSE_SPLASH 1
51105 _ACEOF
51106
51107     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
51108 fi
51109
51110 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
51111     cat >>confdefs.h <<\_ACEOF
51112 #define wxUSE_STARTUP_TIPS 1
51113 _ACEOF
51114
51115 fi
51116
51117 if test "$wxUSE_TEXTDLG" = "yes"; then
51118     cat >>confdefs.h <<\_ACEOF
51119 #define wxUSE_TEXTDLG 1
51120 _ACEOF
51121
51122 fi
51123
51124 if test "$wxUSE_WIZARDDLG" = "yes"; then
51125     cat >>confdefs.h <<\_ACEOF
51126 #define wxUSE_WIZARDDLG 1
51127 _ACEOF
51128
51129     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
51130 fi
51131
51132
51133 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
51134     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
51135         cat >>confdefs.h <<\_ACEOF
51136 #define wxUSE_OWNER_DRAWN 1
51137 _ACEOF
51138
51139     fi
51140 fi
51141
51142
51143 if test "$wxUSE_MSW" = 1 ; then
51144
51145     if test "$wxUSE_DC_CACHEING" = "yes"; then
51146         cat >>confdefs.h <<\_ACEOF
51147 #define wxUSE_DC_CACHEING 1
51148 _ACEOF
51149
51150     fi
51151
51152     if test "$wxUSE_DIB" = "yes"; then
51153         cat >>confdefs.h <<\_ACEOF
51154 #define wxUSE_WXDIB 1
51155 _ACEOF
51156
51157     fi
51158
51159     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
51160         cat >>confdefs.h <<\_ACEOF
51161 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
51162 _ACEOF
51163
51164     fi
51165
51166     if test "$wxUSE_UXTHEME" = "yes"; then
51167         cat >>confdefs.h <<\_ACEOF
51168 #define wxUSE_UXTHEME 1
51169 _ACEOF
51170
51171     fi
51172
51173 fi
51174
51175 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
51176     cat >>confdefs.h <<\_ACEOF
51177 #define wxUSE_AUTOID_MANAGEMENT 1
51178 _ACEOF
51179
51180 fi
51181
51182 if test "$USE_WIN32" = 1 ; then
51183     if test "$wxUSE_INICONF" = "yes"; then
51184         cat >>confdefs.h <<\_ACEOF
51185 #define wxUSE_INICONF 1
51186 _ACEOF
51187
51188     fi
51189
51190     if test "$wxUSE_REGKEY" = "yes"; then
51191         cat >>confdefs.h <<\_ACEOF
51192 #define wxUSE_REGKEY 1
51193 _ACEOF
51194
51195     fi
51196 fi
51197
51198
51199 if test "$wxUSE_MAC" = 1; then
51200     wxUSE_GRAPHICS_CONTEXT="yes"
51201 fi
51202
51203 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
51204     wx_has_graphics=0
51205     if test "$wxUSE_MSW" = 1; then
51206         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
51207 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
51208 if test "${wx_cv_lib_gdiplus+set}" = set; then
51209   echo $ECHO_N "(cached) $ECHO_C" >&6
51210 else
51211
51212                                                 ac_ext=cpp
51213 ac_cpp='$CXXCPP $CPPFLAGS'
51214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51217
51218                 cat >conftest.$ac_ext <<_ACEOF
51219 /* confdefs.h.  */
51220 _ACEOF
51221 cat confdefs.h >>conftest.$ac_ext
51222 cat >>conftest.$ac_ext <<_ACEOF
51223 /* end confdefs.h.  */
51224 #include <windows.h>
51225                      #include <gdiplus.h>
51226 int
51227 main ()
51228 {
51229
51230                         using namespace Gdiplus;
51231
51232   ;
51233   return 0;
51234 }
51235 _ACEOF
51236 rm -f conftest.$ac_objext
51237 if { (ac_try="$ac_compile"
51238 case "(($ac_try" in
51239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51240   *) ac_try_echo=$ac_try;;
51241 esac
51242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51243   (eval "$ac_compile") 2>conftest.er1
51244   ac_status=$?
51245   grep -v '^ *+' conftest.er1 >conftest.err
51246   rm -f conftest.er1
51247   cat conftest.err >&5
51248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51249   (exit $ac_status); } && {
51250          test -z "$ac_cxx_werror_flag" ||
51251          test ! -s conftest.err
51252        } && test -s conftest.$ac_objext; then
51253   wx_cv_lib_gdiplus=yes
51254 else
51255   echo "$as_me: failed program was:" >&5
51256 sed 's/^/| /' conftest.$ac_ext >&5
51257
51258         wx_cv_lib_gdiplus=no
51259
51260 fi
51261
51262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51263                 ac_ext=c
51264 ac_cpp='$CPP $CPPFLAGS'
51265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51268
51269
51270
51271 fi
51272 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
51273 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
51274         if test "$wx_cv_lib_gdiplus" = "yes"; then
51275             wx_has_graphics=1
51276         fi
51277     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
51278
51279 pkg_failed=no
51280 { echo "$as_me:$LINENO: checking for CAIRO" >&5
51281 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
51282
51283 if test -n "$PKG_CONFIG"; then
51284     if test -n "$CAIRO_CFLAGS"; then
51285         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
51286     else
51287         if test -n "$PKG_CONFIG" && \
51288     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
51289   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
51290   ac_status=$?
51291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51292   (exit $ac_status); }; then
51293   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
51294 else
51295   pkg_failed=yes
51296 fi
51297     fi
51298 else
51299         pkg_failed=untried
51300 fi
51301 if test -n "$PKG_CONFIG"; then
51302     if test -n "$CAIRO_LIBS"; then
51303         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
51304     else
51305         if test -n "$PKG_CONFIG" && \
51306     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
51307   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
51308   ac_status=$?
51309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51310   (exit $ac_status); }; then
51311   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
51312 else
51313   pkg_failed=yes
51314 fi
51315     fi
51316 else
51317         pkg_failed=untried
51318 fi
51319
51320
51321
51322 if test $pkg_failed = yes; then
51323
51324 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51325         _pkg_short_errors_supported=yes
51326 else
51327         _pkg_short_errors_supported=no
51328 fi
51329         if test $_pkg_short_errors_supported = yes; then
51330                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
51331         else
51332                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
51333         fi
51334         # Put the nasty error message in config.log where it belongs
51335         echo "$CAIRO_PKG_ERRORS" >&5
51336
51337         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
51338 echo "$as_me: WARNING: Cairo library not found" >&2;}
51339
51340 elif test $pkg_failed = untried; then
51341         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
51342 echo "$as_me: WARNING: Cairo library not found" >&2;}
51343
51344 else
51345         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
51346         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
51347         { echo "$as_me:$LINENO: result: yes" >&5
51348 echo "${ECHO_T}yes" >&6; }
51349         wx_has_graphics=1
51350 fi
51351         if test "$wx_has_graphics" = 1; then
51352                                                 save_LIBS="$LIBS"
51353             LIBS="$LIBS $CAIRO_LIBS"
51354
51355 for ac_func in cairo_push_group
51356 do
51357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51361   echo $ECHO_N "(cached) $ECHO_C" >&6
51362 else
51363   cat >conftest.$ac_ext <<_ACEOF
51364 /* confdefs.h.  */
51365 _ACEOF
51366 cat confdefs.h >>conftest.$ac_ext
51367 cat >>conftest.$ac_ext <<_ACEOF
51368 /* end confdefs.h.  */
51369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51371 #define $ac_func innocuous_$ac_func
51372
51373 /* System header to define __stub macros and hopefully few prototypes,
51374     which can conflict with char $ac_func (); below.
51375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51376     <limits.h> exists even on freestanding compilers.  */
51377
51378 #ifdef __STDC__
51379 # include <limits.h>
51380 #else
51381 # include <assert.h>
51382 #endif
51383
51384 #undef $ac_func
51385
51386 /* Override any GCC internal prototype to avoid an error.
51387    Use char because int might match the return type of a GCC
51388    builtin and then its argument prototype would still apply.  */
51389 #ifdef __cplusplus
51390 extern "C"
51391 #endif
51392 char $ac_func ();
51393 /* The GNU C library defines this for functions which it implements
51394     to always fail with ENOSYS.  Some functions are actually named
51395     something starting with __ and the normal name is an alias.  */
51396 #if defined __stub_$ac_func || defined __stub___$ac_func
51397 choke me
51398 #endif
51399
51400 int
51401 main ()
51402 {
51403 return $ac_func ();
51404   ;
51405   return 0;
51406 }
51407 _ACEOF
51408 rm -f conftest.$ac_objext conftest$ac_exeext
51409 if { (ac_try="$ac_link"
51410 case "(($ac_try" in
51411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51412   *) ac_try_echo=$ac_try;;
51413 esac
51414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51415   (eval "$ac_link") 2>conftest.er1
51416   ac_status=$?
51417   grep -v '^ *+' conftest.er1 >conftest.err
51418   rm -f conftest.er1
51419   cat conftest.err >&5
51420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51421   (exit $ac_status); } && {
51422          test -z "$ac_c_werror_flag" ||
51423          test ! -s conftest.err
51424        } && test -s conftest$ac_exeext &&
51425        $as_test_x conftest$ac_exeext; then
51426   eval "$as_ac_var=yes"
51427 else
51428   echo "$as_me: failed program was:" >&5
51429 sed 's/^/| /' conftest.$ac_ext >&5
51430
51431         eval "$as_ac_var=no"
51432 fi
51433
51434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51435       conftest$ac_exeext conftest.$ac_ext
51436 fi
51437 ac_res=`eval echo '${'$as_ac_var'}'`
51438                { echo "$as_me:$LINENO: result: $ac_res" >&5
51439 echo "${ECHO_T}$ac_res" >&6; }
51440 if test `eval echo '${'$as_ac_var'}'` = yes; then
51441   cat >>confdefs.h <<_ACEOF
51442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51443 _ACEOF
51444
51445 fi
51446 done
51447
51448             LIBS="$save_LIBS"
51449             if test "$ac_cv_func_cairo_push_group" = "no"; then
51450                 wx_has_graphics=0
51451                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
51452 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
51453             else
51454                 cat >>confdefs.h <<\_ACEOF
51455 #define wxUSE_CAIRO 1
51456 _ACEOF
51457
51458
51459                                                 if test "$wxUSE_GTK" != 1; then
51460                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
51461                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
51462                 fi
51463             fi
51464         fi
51465     else
51466                 wx_has_graphics=1
51467     fi
51468
51469     if test "$wx_has_graphics" = 1; then
51470         cat >>confdefs.h <<\_ACEOF
51471 #define wxUSE_GRAPHICS_CONTEXT 1
51472 _ACEOF
51473
51474     else
51475         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
51476 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
51477     fi
51478 fi
51479
51480
51481 USE_MEDIA=0
51482
51483 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
51484     USE_MEDIA=1
51485
51486                 if test "$wxUSE_GTK" = 1; then
51487         wxUSE_GSTREAMER="no"
51488
51489                                                                 GST_VERSION_MAJOR=0
51490         GST_VERSION_MINOR=10
51491         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
51492
51493         if test "$wxUSE_GSTREAMER8" = "no"; then
51494
51495 pkg_failed=no
51496 { echo "$as_me:$LINENO: checking for GST" >&5
51497 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
51498
51499 if test -n "$PKG_CONFIG"; then
51500     if test -n "$GST_CFLAGS"; then
51501         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
51502     else
51503         if test -n "$PKG_CONFIG" && \
51504     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION\"") >&5
51505   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION") 2>&5
51506   ac_status=$?
51507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51508   (exit $ac_status); }; then
51509   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION" 2>/dev/null`
51510 else
51511   pkg_failed=yes
51512 fi
51513     fi
51514 else
51515         pkg_failed=untried
51516 fi
51517 if test -n "$PKG_CONFIG"; then
51518     if test -n "$GST_LIBS"; then
51519         pkg_cv_GST_LIBS="$GST_LIBS"
51520     else
51521         if test -n "$PKG_CONFIG" && \
51522     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION\"") >&5
51523   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION") 2>&5
51524   ac_status=$?
51525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51526   (exit $ac_status); }; then
51527   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION" 2>/dev/null`
51528 else
51529   pkg_failed=yes
51530 fi
51531     fi
51532 else
51533         pkg_failed=untried
51534 fi
51535
51536
51537
51538 if test $pkg_failed = yes; then
51539
51540 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51541         _pkg_short_errors_supported=yes
51542 else
51543         _pkg_short_errors_supported=no
51544 fi
51545         if test $_pkg_short_errors_supported = yes; then
51546                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION"`
51547         else
51548                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION"`
51549         fi
51550         # Put the nasty error message in config.log where it belongs
51551         echo "$GST_PKG_ERRORS" >&5
51552
51553
51554                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
51555 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
51556                     GST_VERSION_MINOR=8
51557
51558
51559 elif test $pkg_failed = untried; then
51560
51561                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
51562 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
51563                     GST_VERSION_MINOR=8
51564
51565
51566 else
51567         GST_CFLAGS=$pkg_cv_GST_CFLAGS
51568         GST_LIBS=$pkg_cv_GST_LIBS
51569         { echo "$as_me:$LINENO: result: yes" >&5
51570 echo "${ECHO_T}yes" >&6; }
51571
51572                     wxUSE_GSTREAMER="yes"
51573                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
51574
51575 fi
51576         else
51577                         GST_VERSION_MINOR=8
51578         fi
51579
51580         if test $GST_VERSION_MINOR = "8"; then
51581             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
51582
51583 pkg_failed=no
51584 { echo "$as_me:$LINENO: checking for GST" >&5
51585 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
51586
51587 if test -n "$PKG_CONFIG"; then
51588     if test -n "$GST_CFLAGS"; then
51589         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
51590     else
51591         if test -n "$PKG_CONFIG" && \
51592     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
51593   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
51594   ac_status=$?
51595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51596   (exit $ac_status); }; then
51597   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
51598 else
51599   pkg_failed=yes
51600 fi
51601     fi
51602 else
51603         pkg_failed=untried
51604 fi
51605 if test -n "$PKG_CONFIG"; then
51606     if test -n "$GST_LIBS"; then
51607         pkg_cv_GST_LIBS="$GST_LIBS"
51608     else
51609         if test -n "$PKG_CONFIG" && \
51610     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
51611   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
51612   ac_status=$?
51613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51614   (exit $ac_status); }; then
51615   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
51616 else
51617   pkg_failed=yes
51618 fi
51619     fi
51620 else
51621         pkg_failed=untried
51622 fi
51623
51624
51625
51626 if test $pkg_failed = yes; then
51627
51628 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51629         _pkg_short_errors_supported=yes
51630 else
51631         _pkg_short_errors_supported=no
51632 fi
51633         if test $_pkg_short_errors_supported = yes; then
51634                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
51635         else
51636                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
51637         fi
51638         # Put the nasty error message in config.log where it belongs
51639         echo "$GST_PKG_ERRORS" >&5
51640
51641
51642                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
51643 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
51644
51645 elif test $pkg_failed = untried; then
51646
51647                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
51648 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
51649
51650 else
51651         GST_CFLAGS=$pkg_cv_GST_CFLAGS
51652         GST_LIBS=$pkg_cv_GST_LIBS
51653         { echo "$as_me:$LINENO: result: yes" >&5
51654 echo "${ECHO_T}yes" >&6; }
51655         wxUSE_GSTREAMER="yes"
51656 fi
51657         fi
51658
51659
51660         if test "$wxUSE_GSTREAMER" = "yes"; then
51661             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
51662             EXTRALIBS_MEDIA="$GST_LIBS"
51663
51664             cat >>confdefs.h <<\_ACEOF
51665 #define wxUSE_GSTREAMER 1
51666 _ACEOF
51667
51668         else
51669             USE_MEDIA=0
51670         fi
51671     fi
51672
51673     if test $USE_MEDIA = 1; then
51674         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
51675         cat >>confdefs.h <<\_ACEOF
51676 #define wxUSE_MEDIACTRL 1
51677 _ACEOF
51678
51679     else
51680         if test "$wxUSE_MEDIACTRL" = "yes"; then
51681             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
51682 echo "$as_me: error: GStreamer not available" >&2;}
51683    { (exit 1); exit 1; }; }
51684         else
51685                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
51686 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
51687         fi
51688     fi
51689 fi
51690
51691
51692 if test "$cross_compiling" != "no"; then
51693         OSINFO="\"$host\""
51694 else
51695         OSINFO=`uname -s -r -m`
51696     OSINFO="\"$OSINFO\""
51697 fi
51698
51699 cat >>confdefs.h <<_ACEOF
51700 #define WXWIN_OS_DESCRIPTION $OSINFO
51701 _ACEOF
51702
51703
51704
51705 if test "x$prefix" != "xNONE"; then
51706     wxPREFIX=$prefix
51707 else
51708     wxPREFIX=$ac_default_prefix
51709 fi
51710
51711 cat >>confdefs.h <<_ACEOF
51712 #define wxINSTALL_PREFIX "$wxPREFIX"
51713 _ACEOF
51714
51715
51716
51717
51718 STD_BASE_LIBS="base"
51719 STD_GUI_LIBS=""
51720 BUILT_WX_LIBS="base"
51721 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
51722
51723 if test "$wxUSE_SOCKETS" = "yes" ; then
51724     STD_BASE_LIBS="net $STD_BASE_LIBS"
51725     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
51726 fi
51727 if test "$wxUSE_XML" = "yes" ; then
51728     STD_BASE_LIBS="xml $STD_BASE_LIBS"
51729     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
51730 fi
51731
51732 if test "$wxUSE_GUI" = "yes"; then
51733     STD_GUI_LIBS="adv core"
51734     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
51735
51736     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
51737         STD_GUI_LIBS="qa $STD_GUI_LIBS"
51738         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
51739     fi
51740     if test "$wxUSE_HTML" = "yes" ; then
51741         STD_GUI_LIBS="html $STD_GUI_LIBS"
51742         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
51743     fi
51744     if test "$wxUSE_MEDIACTRL" = "yes" ; then
51745         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
51746     fi
51747     if test "$wxUSE_OPENGL" = "yes" ; then
51748         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
51749     fi
51750     if test "$wxUSE_AUI" = "yes" ; then
51751         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
51752     fi
51753     if test "$wxUSE_PROPGRID" = "yes" ; then
51754         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
51755     fi
51756     if test "$wxUSE_RIBBON" = "yes" ; then
51757         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
51758     fi
51759     if test "$wxUSE_RICHTEXT" = "yes" ; then
51760         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
51761     fi
51762     if test "$wxUSE_STC" = "yes" ; then
51763         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
51764     fi
51765     if test "$wxUSE_WEBVIEW" = "yes" ; then
51766         STD_GUI_LIBS="webview $STD_GUI_LIBS"
51767         BUILT_WX_LIBS="webview $BUILT_WX_LIBS"
51768     fi
51769     if test "$wxUSE_XRC" = "yes" ; then
51770         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
51771         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
51772     fi
51773 fi
51774
51775
51776
51777
51778
51779
51780
51781 EXTRA_FRAMEWORKS=
51782 if test "$wxUSE_MAC" = 1 ; then
51783     if test "$USE_DARWIN" = 1; then
51784         if test "$wxUSE_OSX_IPHONE" = 1; then
51785             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
51786         else
51787             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
51788         fi
51789     fi
51790 fi
51791 if test "$wxUSE_OLD_COCOA" = 1 ; then
51792     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
51793     if test "$wxUSE_MEDIACTRL" = "yes"; then
51794         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
51795     fi
51796 fi
51797 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
51798     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
51799 fi
51800
51801 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
51802 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
51803
51804 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
51805
51806 if test "$wxUSE_GUI" = "yes"; then
51807
51808
51809         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
51810                      erase event exec font image minimal render \
51811                      shaped svg taborder vscroll widgets wrapsizer"
51812
51813     if test "$wxUSE_MONOLITHIC" != "yes"; then
51814         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
51815     fi
51816     if test "$TOOLKIT" = "MSW"; then
51817         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
51818         if test "$wxUSE_UNIVERSAL" != "yes"; then
51819             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
51820         fi
51821     fi
51822     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
51823         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
51824     fi
51825 else
51826     SAMPLES_SUBDIRS="console"
51827     if test "$wxUSE_SOCKETS" = "yes" ; then
51828         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
51829     fi
51830     if test "$wxUSE_IPC" = "yes" ; then
51831         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
51832     fi
51833 fi
51834
51835
51836 if test "x$INTELCC" = "xyes" ; then
51837                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
51838 elif test "$GCC" = yes ; then
51839     CWARNINGS="-Wall -Wundef"
51840 fi
51841
51842 if test "x$INTELCXX" = "xyes" ; then
51843                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
51844 elif test "$GXX" = yes ; then
51845     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
51846     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
51847 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
51848 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
51849   echo $ECHO_N "(cached) $ECHO_C" >&6
51850 else
51851   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
51852
51853  ac_ext=cpp
51854 ac_cpp='$CXXCPP $CPPFLAGS'
51855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51858
51859  ac_save_CXXFLAGS="$CXXFLAGS"
51860 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
51861 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
51862    cat >conftest.$ac_ext <<_ACEOF
51863 /* confdefs.h.  */
51864 _ACEOF
51865 cat confdefs.h >>conftest.$ac_ext
51866 cat >>conftest.$ac_ext <<_ACEOF
51867 /* end confdefs.h.  */
51868
51869 int
51870 main ()
51871 {
51872 return 0;
51873   ;
51874   return 0;
51875 }
51876 _ACEOF
51877 rm -f conftest.$ac_objext
51878 if { (ac_try="$ac_compile"
51879 case "(($ac_try" in
51880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51881   *) ac_try_echo=$ac_try;;
51882 esac
51883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51884   (eval "$ac_compile") 2>conftest.er1
51885   ac_status=$?
51886   grep -v '^ *+' conftest.er1 >conftest.err
51887   rm -f conftest.er1
51888   cat conftest.err >&5
51889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51890   (exit $ac_status); } && {
51891          test -z "$ac_cxx_werror_flag" ||
51892          test ! -s conftest.err
51893        } && test -s conftest.$ac_objext; then
51894   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
51895 else
51896   echo "$as_me: failed program was:" >&5
51897 sed 's/^/| /' conftest.$ac_ext >&5
51898
51899
51900 fi
51901
51902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51903 done
51904  CXXFLAGS="$ac_save_CXXFLAGS"
51905  ac_ext=c
51906 ac_cpp='$CPP $CPPFLAGS'
51907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51910
51911
51912 fi
51913 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
51914 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
51915 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
51916      .ok|.ok,*)  ;;
51917    .|.no|.no,*)  ;;
51918    *)
51919    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
51920    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
51921   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
51922   ac_status=$?
51923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51924   (exit $ac_status); }
51925    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
51926   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
51927   ac_status=$?
51928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51929   (exit $ac_status); }
51930                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
51931    fi
51932  ;;
51933 esac
51934
51935
51936                     if test "$wxUSE_MAC" = 1 ; then
51937         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
51938     fi
51939 fi
51940
51941
51942 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
51943 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
51944
51945
51946 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
51947  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
51948  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
51949  $CPPFLAGS `
51950
51951 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
51952 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
51953 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
51954 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
51955 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
51956
51957 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
51958
51959
51960 if test "x$MWCC" = "xyes"; then
51961
51962             CC="$CC -cwd source -I-"
51963     CXX="$CXX -cwd source -I-"
51964 fi
51965
51966
51967 LIBS=`echo $LIBS`
51968 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
51969 EXTRALIBS_XML="$EXPAT_LINK"
51970 EXTRALIBS_HTML="$MSPACK_LINK"
51971 EXTRALIBS_MEDIA="$GST_LIBS"
51972 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
51973 if test "$wxUSE_GUI" = "yes"; then
51974     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
51975 fi
51976 if test "$wxUSE_OPENGL" = "yes"; then
51977     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
51978 fi
51979
51980 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
51981
51982 WXCONFIG_LIBS="$LIBS"
51983
51984 if test "$wxUSE_REGEX" = "builtin" ; then
51985     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
51986 fi
51987 if test "$wxUSE_EXPAT" = "builtin" ; then
51988     wxconfig_3rdparty="expat $wxconfig_3rdparty"
51989 fi
51990 if test "$wxUSE_LIBTIFF" = "builtin" ; then
51991     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
51992 fi
51993 if test "$wxUSE_LIBJPEG" = "builtin" ; then
51994     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
51995 fi
51996 if test "$wxUSE_LIBPNG" = "builtin" ; then
51997     wxconfig_3rdparty="png $wxconfig_3rdparty"
51998 fi
51999 if test "$wxUSE_ZLIB" = "builtin" ; then
52000     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
52001 fi
52002
52003 for i in $wxconfig_3rdparty ; do
52004     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
52005 done
52006
52007
52008 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
52009     WXUNIV=1
52010
52011     case "$wxUNIV_THEMES" in
52012         ''|all)
52013             cat >>confdefs.h <<\_ACEOF
52014 #define wxUSE_ALL_THEMES 1
52015 _ACEOF
52016
52017             ;;
52018
52019         *)
52020             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
52021                 cat >>confdefs.h <<_ACEOF
52022 #define wxUSE_THEME_$t 1
52023 _ACEOF
52024
52025             done
52026     esac
52027 else
52028     WXUNIV=0
52029 fi
52030
52031
52032
52033
52034
52035
52036
52037
52038 if test $wxUSE_MONOLITHIC = "yes" ; then
52039     MONOLITHIC=1
52040 else
52041     MONOLITHIC=0
52042 fi
52043
52044 if test $wxUSE_PLUGINS = "yes" ; then
52045     USE_PLUGINS=1
52046 else
52047     USE_PLUGINS=0
52048 fi
52049
52050 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
52051     USE_QA=1
52052 else
52053     USE_QA=0
52054 fi
52055
52056 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
52057     OFFICIAL_BUILD=1
52058 else
52059     OFFICIAL_BUILD=0
52060 fi
52061
52062
52063
52064
52065
52066
52067
52068
52069
52070
52071
52072
52073
52074
52075
52076
52077
52078
52079
52080
52081
52082
52083
52084
52085
52086
52087
52088 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
52089
52090
52091
52092
52093
52094
52095
52096
52097
52098
52099 case "$TOOLKIT" in
52100     GTK)
52101         TOOLKIT_DESC="GTK+"
52102         if test "$WXGTK2" = 1; then
52103             TOOLKIT_DESC="$TOOLKIT_DESC 2"
52104             if test "$wxUSE_GTKPRINT" = "yes" ; then
52105                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
52106             fi
52107             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
52108                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
52109             fi
52110             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
52111                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
52112             fi
52113             if test "$wxUSE_LIBHILDON" = "yes"; then
52114                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
52115             fi
52116             if test "$wxUSE_LIBHILDON2" = "yes"; then
52117                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
52118             fi
52119
52120             if test "$TOOLKIT_EXTRA" != ""; then
52121                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
52122             fi
52123         fi
52124         ;;
52125
52126     ?*)
52127         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
52128         ;;
52129
52130     *)
52131         TOOLKIT_DESC="base only"
52132         ;;
52133 esac
52134
52135 if test "$wxUSE_WINE" = "yes"; then
52136     BAKEFILE_FORCE_PLATFORM=win32
52137 fi
52138
52139 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
52140 then
52141     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
52142 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
52143 if test "${wx_cv_gcc_pch_bug+set}" = set; then
52144   echo $ECHO_N "(cached) $ECHO_C" >&6
52145 else
52146
52147             echo '#include <stdio.h>
52148                   const wchar_t test_var[] = L"awidetest";' > conftest.h
52149
52150             echo '#include "conftest.h"
52151                   int main()
52152                   {
52153                      printf("%ls", test_var);
52154                      return 0;
52155                   }' > conftest.cpp
52156
52157             wx_cv_gcc_pch_bug="pch not supported"
52158
52159             if $CXX conftest.h >/dev/null 2>&1
52160             then
52161                 wx_cv_gcc_pch_bug=
52162
52163                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
52164                 then
52165                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
52166                         grep awidetest >/dev/null
52167                     then
52168                         wx_cv_gcc_pch_bug=no
52169                     else
52170                         wx_cv_gcc_pch_bug=yes
52171                     fi
52172                 fi
52173             fi
52174
52175             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
52176
52177 fi
52178 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
52179 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
52180
52181     if test "$wx_cv_gcc_pch_bug" = yes; then
52182                         bk_use_pch=no
52183     fi
52184 fi
52185
52186
52187
52188
52189
52190
52191
52192     if test "x$BAKEFILE_HOST" = "x"; then
52193                if test "x${host}" = "x" ; then
52194                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
52195 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
52196    { (exit 1); exit 1; }; }
52197                fi
52198
52199         BAKEFILE_HOST="${host}"
52200     fi
52201
52202     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
52203
52204     if test -n "$ac_tool_prefix"; then
52205   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
52206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
52207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52209 if test "${ac_cv_prog_RANLIB+set}" = set; then
52210   echo $ECHO_N "(cached) $ECHO_C" >&6
52211 else
52212   if test -n "$RANLIB"; then
52213   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
52214 else
52215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52216 for as_dir in $PATH
52217 do
52218   IFS=$as_save_IFS
52219   test -z "$as_dir" && as_dir=.
52220   for ac_exec_ext in '' $ac_executable_extensions; do
52221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52222     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
52223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52224     break 2
52225   fi
52226 done
52227 done
52228 IFS=$as_save_IFS
52229
52230 fi
52231 fi
52232 RANLIB=$ac_cv_prog_RANLIB
52233 if test -n "$RANLIB"; then
52234   { echo "$as_me:$LINENO: result: $RANLIB" >&5
52235 echo "${ECHO_T}$RANLIB" >&6; }
52236 else
52237   { echo "$as_me:$LINENO: result: no" >&5
52238 echo "${ECHO_T}no" >&6; }
52239 fi
52240
52241
52242 fi
52243 if test -z "$ac_cv_prog_RANLIB"; then
52244   ac_ct_RANLIB=$RANLIB
52245   # Extract the first word of "ranlib", so it can be a program name with args.
52246 set dummy ranlib; ac_word=$2
52247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52249 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
52250   echo $ECHO_N "(cached) $ECHO_C" >&6
52251 else
52252   if test -n "$ac_ct_RANLIB"; then
52253   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
52254 else
52255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52256 for as_dir in $PATH
52257 do
52258   IFS=$as_save_IFS
52259   test -z "$as_dir" && as_dir=.
52260   for ac_exec_ext in '' $ac_executable_extensions; do
52261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52262     ac_cv_prog_ac_ct_RANLIB="ranlib"
52263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52264     break 2
52265   fi
52266 done
52267 done
52268 IFS=$as_save_IFS
52269
52270 fi
52271 fi
52272 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
52273 if test -n "$ac_ct_RANLIB"; then
52274   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
52275 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
52276 else
52277   { echo "$as_me:$LINENO: result: no" >&5
52278 echo "${ECHO_T}no" >&6; }
52279 fi
52280
52281   if test "x$ac_ct_RANLIB" = x; then
52282     RANLIB=":"
52283   else
52284     case $cross_compiling:$ac_tool_warned in
52285 yes:)
52286 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52287 whose name does not start with the host triplet.  If you think this
52288 configuration is useful to you, please write to autoconf@gnu.org." >&5
52289 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52290 whose name does not start with the host triplet.  If you think this
52291 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52292 ac_tool_warned=yes ;;
52293 esac
52294     RANLIB=$ac_ct_RANLIB
52295   fi
52296 else
52297   RANLIB="$ac_cv_prog_RANLIB"
52298 fi
52299
52300     # Find a good install program.  We prefer a C program (faster),
52301 # so one script is as good as another.  But avoid the broken or
52302 # incompatible versions:
52303 # SysV /etc/install, /usr/sbin/install
52304 # SunOS /usr/etc/install
52305 # IRIX /sbin/install
52306 # AIX /bin/install
52307 # AmigaOS /C/install, which installs bootblocks on floppy discs
52308 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
52309 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
52310 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
52311 # OS/2's system install, which has a completely different semantic
52312 # ./install, which can be erroneously created by make from ./install.sh.
52313 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
52314 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
52315 if test -z "$INSTALL"; then
52316 if test "${ac_cv_path_install+set}" = set; then
52317   echo $ECHO_N "(cached) $ECHO_C" >&6
52318 else
52319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52320 for as_dir in $PATH
52321 do
52322   IFS=$as_save_IFS
52323   test -z "$as_dir" && as_dir=.
52324   # Account for people who put trailing slashes in PATH elements.
52325 case $as_dir/ in
52326   ./ | .// | /cC/* | \
52327   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
52328   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
52329   /usr/ucb/* ) ;;
52330   *)
52331     # OSF1 and SCO ODT 3.0 have their own names for install.
52332     # Don't use installbsd from OSF since it installs stuff as root
52333     # by default.
52334     for ac_prog in ginstall scoinst install; do
52335       for ac_exec_ext in '' $ac_executable_extensions; do
52336         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
52337           if test $ac_prog = install &&
52338             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
52339             # AIX install.  It has an incompatible calling convention.
52340             :
52341           elif test $ac_prog = install &&
52342             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
52343             # program-specific install script used by HP pwplus--don't use.
52344             :
52345           else
52346             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
52347             break 3
52348           fi
52349         fi
52350       done
52351     done
52352     ;;
52353 esac
52354 done
52355 IFS=$as_save_IFS
52356
52357
52358 fi
52359   if test "${ac_cv_path_install+set}" = set; then
52360     INSTALL=$ac_cv_path_install
52361   else
52362     # As a last resort, use the slow shell script.  Don't cache a
52363     # value for INSTALL within a source directory, because that will
52364     # break other packages using the cache if that directory is
52365     # removed, or if the value is a relative name.
52366     INSTALL=$ac_install_sh
52367   fi
52368 fi
52369 { echo "$as_me:$LINENO: result: $INSTALL" >&5
52370 echo "${ECHO_T}$INSTALL" >&6; }
52371
52372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
52373 # It thinks the first close brace ends the variable substitution.
52374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
52375
52376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
52377
52378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
52379
52380     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
52381 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
52382 LN_S=$as_ln_s
52383 if test "$LN_S" = "ln -s"; then
52384   { echo "$as_me:$LINENO: result: yes" >&5
52385 echo "${ECHO_T}yes" >&6; }
52386 else
52387   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
52388 echo "${ECHO_T}no, using $LN_S" >&6; }
52389 fi
52390
52391
52392     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52393 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52394 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52395 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52396   echo $ECHO_N "(cached) $ECHO_C" >&6
52397 else
52398   cat >conftest.make <<\_ACEOF
52399 SHELL = /bin/sh
52400 all:
52401         @echo '@@@%%%=$(MAKE)=@@@%%%'
52402 _ACEOF
52403 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52404 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52405   *@@@%%%=?*=@@@%%%*)
52406     eval ac_cv_prog_make_${ac_make}_set=yes;;
52407   *)
52408     eval ac_cv_prog_make_${ac_make}_set=no;;
52409 esac
52410 rm -f conftest.make
52411 fi
52412 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52413   { echo "$as_me:$LINENO: result: yes" >&5
52414 echo "${ECHO_T}yes" >&6; }
52415   SET_MAKE=
52416 else
52417   { echo "$as_me:$LINENO: result: no" >&5
52418 echo "${ECHO_T}no" >&6; }
52419   SET_MAKE="MAKE=${MAKE-make}"
52420 fi
52421
52422
52423
52424     if test "x$SUNCXX" = "xyes"; then
52425                                 AR=$CXX
52426         AROPTIONS="-xar -o"
52427
52428     elif test "x$SGICC" = "xyes"; then
52429                 AR=$CXX
52430         AROPTIONS="-ar -o"
52431
52432     else
52433         if test -n "$ac_tool_prefix"; then
52434   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
52435 set dummy ${ac_tool_prefix}ar; ac_word=$2
52436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52438 if test "${ac_cv_prog_AR+set}" = set; then
52439   echo $ECHO_N "(cached) $ECHO_C" >&6
52440 else
52441   if test -n "$AR"; then
52442   ac_cv_prog_AR="$AR" # Let the user override the test.
52443 else
52444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52445 for as_dir in $PATH
52446 do
52447   IFS=$as_save_IFS
52448   test -z "$as_dir" && as_dir=.
52449   for ac_exec_ext in '' $ac_executable_extensions; do
52450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52451     ac_cv_prog_AR="${ac_tool_prefix}ar"
52452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52453     break 2
52454   fi
52455 done
52456 done
52457 IFS=$as_save_IFS
52458
52459 fi
52460 fi
52461 AR=$ac_cv_prog_AR
52462 if test -n "$AR"; then
52463   { echo "$as_me:$LINENO: result: $AR" >&5
52464 echo "${ECHO_T}$AR" >&6; }
52465 else
52466   { echo "$as_me:$LINENO: result: no" >&5
52467 echo "${ECHO_T}no" >&6; }
52468 fi
52469
52470
52471 fi
52472 if test -z "$ac_cv_prog_AR"; then
52473   ac_ct_AR=$AR
52474   # Extract the first word of "ar", so it can be a program name with args.
52475 set dummy ar; ac_word=$2
52476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52478 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
52479   echo $ECHO_N "(cached) $ECHO_C" >&6
52480 else
52481   if test -n "$ac_ct_AR"; then
52482   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
52483 else
52484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52485 for as_dir in $PATH
52486 do
52487   IFS=$as_save_IFS
52488   test -z "$as_dir" && as_dir=.
52489   for ac_exec_ext in '' $ac_executable_extensions; do
52490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52491     ac_cv_prog_ac_ct_AR="ar"
52492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52493     break 2
52494   fi
52495 done
52496 done
52497 IFS=$as_save_IFS
52498
52499 fi
52500 fi
52501 ac_ct_AR=$ac_cv_prog_ac_ct_AR
52502 if test -n "$ac_ct_AR"; then
52503   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
52504 echo "${ECHO_T}$ac_ct_AR" >&6; }
52505 else
52506   { echo "$as_me:$LINENO: result: no" >&5
52507 echo "${ECHO_T}no" >&6; }
52508 fi
52509
52510   if test "x$ac_ct_AR" = x; then
52511     AR="ar"
52512   else
52513     case $cross_compiling:$ac_tool_warned in
52514 yes:)
52515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52516 whose name does not start with the host triplet.  If you think this
52517 configuration is useful to you, please write to autoconf@gnu.org." >&5
52518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52519 whose name does not start with the host triplet.  If you think this
52520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52521 ac_tool_warned=yes ;;
52522 esac
52523     AR=$ac_ct_AR
52524   fi
52525 else
52526   AR="$ac_cv_prog_AR"
52527 fi
52528
52529         AROPTIONS=rcu
52530     fi
52531
52532
52533     if test -n "$ac_tool_prefix"; then
52534   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
52535 set dummy ${ac_tool_prefix}strip; ac_word=$2
52536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52538 if test "${ac_cv_prog_STRIP+set}" = set; then
52539   echo $ECHO_N "(cached) $ECHO_C" >&6
52540 else
52541   if test -n "$STRIP"; then
52542   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
52543 else
52544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52545 for as_dir in $PATH
52546 do
52547   IFS=$as_save_IFS
52548   test -z "$as_dir" && as_dir=.
52549   for ac_exec_ext in '' $ac_executable_extensions; do
52550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52551     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
52552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52553     break 2
52554   fi
52555 done
52556 done
52557 IFS=$as_save_IFS
52558
52559 fi
52560 fi
52561 STRIP=$ac_cv_prog_STRIP
52562 if test -n "$STRIP"; then
52563   { echo "$as_me:$LINENO: result: $STRIP" >&5
52564 echo "${ECHO_T}$STRIP" >&6; }
52565 else
52566   { echo "$as_me:$LINENO: result: no" >&5
52567 echo "${ECHO_T}no" >&6; }
52568 fi
52569
52570
52571 fi
52572 if test -z "$ac_cv_prog_STRIP"; then
52573   ac_ct_STRIP=$STRIP
52574   # Extract the first word of "strip", so it can be a program name with args.
52575 set dummy strip; ac_word=$2
52576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52578 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
52579   echo $ECHO_N "(cached) $ECHO_C" >&6
52580 else
52581   if test -n "$ac_ct_STRIP"; then
52582   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
52583 else
52584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52585 for as_dir in $PATH
52586 do
52587   IFS=$as_save_IFS
52588   test -z "$as_dir" && as_dir=.
52589   for ac_exec_ext in '' $ac_executable_extensions; do
52590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52591     ac_cv_prog_ac_ct_STRIP="strip"
52592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52593     break 2
52594   fi
52595 done
52596 done
52597 IFS=$as_save_IFS
52598
52599 fi
52600 fi
52601 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
52602 if test -n "$ac_ct_STRIP"; then
52603   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
52604 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
52605 else
52606   { echo "$as_me:$LINENO: result: no" >&5
52607 echo "${ECHO_T}no" >&6; }
52608 fi
52609
52610   if test "x$ac_ct_STRIP" = x; then
52611     STRIP=":"
52612   else
52613     case $cross_compiling:$ac_tool_warned in
52614 yes:)
52615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52616 whose name does not start with the host triplet.  If you think this
52617 configuration is useful to you, please write to autoconf@gnu.org." >&5
52618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52619 whose name does not start with the host triplet.  If you think this
52620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52621 ac_tool_warned=yes ;;
52622 esac
52623     STRIP=$ac_ct_STRIP
52624   fi
52625 else
52626   STRIP="$ac_cv_prog_STRIP"
52627 fi
52628
52629     if test -n "$ac_tool_prefix"; then
52630   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
52631 set dummy ${ac_tool_prefix}nm; ac_word=$2
52632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52634 if test "${ac_cv_prog_NM+set}" = set; then
52635   echo $ECHO_N "(cached) $ECHO_C" >&6
52636 else
52637   if test -n "$NM"; then
52638   ac_cv_prog_NM="$NM" # Let the user override the test.
52639 else
52640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52641 for as_dir in $PATH
52642 do
52643   IFS=$as_save_IFS
52644   test -z "$as_dir" && as_dir=.
52645   for ac_exec_ext in '' $ac_executable_extensions; do
52646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52647     ac_cv_prog_NM="${ac_tool_prefix}nm"
52648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52649     break 2
52650   fi
52651 done
52652 done
52653 IFS=$as_save_IFS
52654
52655 fi
52656 fi
52657 NM=$ac_cv_prog_NM
52658 if test -n "$NM"; then
52659   { echo "$as_me:$LINENO: result: $NM" >&5
52660 echo "${ECHO_T}$NM" >&6; }
52661 else
52662   { echo "$as_me:$LINENO: result: no" >&5
52663 echo "${ECHO_T}no" >&6; }
52664 fi
52665
52666
52667 fi
52668 if test -z "$ac_cv_prog_NM"; then
52669   ac_ct_NM=$NM
52670   # Extract the first word of "nm", so it can be a program name with args.
52671 set dummy nm; ac_word=$2
52672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52674 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
52675   echo $ECHO_N "(cached) $ECHO_C" >&6
52676 else
52677   if test -n "$ac_ct_NM"; then
52678   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
52679 else
52680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52681 for as_dir in $PATH
52682 do
52683   IFS=$as_save_IFS
52684   test -z "$as_dir" && as_dir=.
52685   for ac_exec_ext in '' $ac_executable_extensions; do
52686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52687     ac_cv_prog_ac_ct_NM="nm"
52688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52689     break 2
52690   fi
52691 done
52692 done
52693 IFS=$as_save_IFS
52694
52695 fi
52696 fi
52697 ac_ct_NM=$ac_cv_prog_ac_ct_NM
52698 if test -n "$ac_ct_NM"; then
52699   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
52700 echo "${ECHO_T}$ac_ct_NM" >&6; }
52701 else
52702   { echo "$as_me:$LINENO: result: no" >&5
52703 echo "${ECHO_T}no" >&6; }
52704 fi
52705
52706   if test "x$ac_ct_NM" = x; then
52707     NM=":"
52708   else
52709     case $cross_compiling:$ac_tool_warned in
52710 yes:)
52711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52712 whose name does not start with the host triplet.  If you think this
52713 configuration is useful to you, please write to autoconf@gnu.org." >&5
52714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52715 whose name does not start with the host triplet.  If you think this
52716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52717 ac_tool_warned=yes ;;
52718 esac
52719     NM=$ac_ct_NM
52720   fi
52721 else
52722   NM="$ac_cv_prog_NM"
52723 fi
52724
52725
52726         INSTALL_DIR="mkdir -p"
52727
52728
52729     LDFLAGS_GUI=
52730     case ${BAKEFILE_HOST} in
52731         *-*-cygwin* | *-*-mingw32* )
52732         LDFLAGS_GUI="-mwindows"
52733     esac
52734
52735
52736     fi
52737
52738         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
52739 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
52740 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
52741   echo $ECHO_N "(cached) $ECHO_C" >&6
52742 else
52743
52744         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
52745                 egrep -s GNU > /dev/null); then
52746             bakefile_cv_prog_makeisgnu="yes"
52747         else
52748             bakefile_cv_prog_makeisgnu="no"
52749         fi
52750
52751 fi
52752 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
52753 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
52754
52755     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
52756         IF_GNU_MAKE=""
52757     else
52758         IF_GNU_MAKE="#"
52759     fi
52760
52761
52762
52763     PLATFORM_UNIX=0
52764     PLATFORM_WIN32=0
52765     PLATFORM_MSDOS=0
52766     PLATFORM_MAC=0
52767     PLATFORM_MACOS=0
52768     PLATFORM_MACOSX=0
52769     PLATFORM_OS2=0
52770     PLATFORM_BEOS=0
52771
52772     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
52773         case "${BAKEFILE_HOST}" in
52774             *-*-mingw32* )
52775                 PLATFORM_WIN32=1
52776             ;;
52777             *-pc-msdosdjgpp )
52778                 PLATFORM_MSDOS=1
52779             ;;
52780             *-pc-os2_emx | *-pc-os2-emx )
52781                 PLATFORM_OS2=1
52782             ;;
52783             *-*-darwin* )
52784                 PLATFORM_MAC=1
52785                 PLATFORM_MACOSX=1
52786             ;;
52787             *-*-beos* )
52788                 PLATFORM_BEOS=1
52789             ;;
52790             powerpc-apple-macos* )
52791                 PLATFORM_MAC=1
52792                 PLATFORM_MACOS=1
52793             ;;
52794             * )
52795                 PLATFORM_UNIX=1
52796             ;;
52797         esac
52798     else
52799         case "$BAKEFILE_FORCE_PLATFORM" in
52800             win32 )
52801                 PLATFORM_WIN32=1
52802             ;;
52803             msdos )
52804                 PLATFORM_MSDOS=1
52805             ;;
52806             os2 )
52807                 PLATFORM_OS2=1
52808             ;;
52809             darwin )
52810                 PLATFORM_MAC=1
52811                 PLATFORM_MACOSX=1
52812             ;;
52813             unix )
52814                 PLATFORM_UNIX=1
52815             ;;
52816             beos )
52817                 PLATFORM_BEOS=1
52818             ;;
52819             * )
52820                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
52821 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
52822    { (exit 1); exit 1; }; }
52823             ;;
52824         esac
52825     fi
52826
52827
52828
52829
52830
52831
52832
52833
52834
52835
52836
52837     # Check whether --enable-omf was given.
52838 if test "${enable_omf+set}" = set; then
52839   enableval=$enable_omf; bk_os2_use_omf="$enableval"
52840 fi
52841
52842
52843     case "${BAKEFILE_HOST}" in
52844       *-*-darwin* )
52845                         if test "x$GCC" = "xyes"; then
52846             CFLAGS="$CFLAGS -fno-common"
52847             CXXFLAGS="$CXXFLAGS -fno-common"
52848         fi
52849         if test "x$XLCC" = "xyes"; then
52850             CFLAGS="$CFLAGS -qnocommon"
52851             CXXFLAGS="$CXXFLAGS -qnocommon"
52852         fi
52853         ;;
52854
52855       *-pc-os2_emx | *-pc-os2-emx )
52856         if test "x$bk_os2_use_omf" = "xyes" ; then
52857             AR=emxomfar
52858             RANLIB=:
52859             LDFLAGS="-Zomf $LDFLAGS"
52860             CFLAGS="-Zomf $CFLAGS"
52861             CXXFLAGS="-Zomf $CXXFLAGS"
52862             OS2_LIBEXT="lib"
52863         else
52864             OS2_LIBEXT="a"
52865         fi
52866         ;;
52867
52868       i*86-*-beos* )
52869         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
52870         ;;
52871     esac
52872
52873
52874     SO_SUFFIX="so"
52875     SO_SUFFIX_MODULE="so"
52876     EXEEXT=""
52877     LIBPREFIX="lib"
52878     LIBEXT=".a"
52879     DLLPREFIX="lib"
52880     DLLPREFIX_MODULE=""
52881     DLLIMP_SUFFIX=""
52882     dlldir="$libdir"
52883
52884     case "${BAKEFILE_HOST}" in
52885                         ia64-hp-hpux* )
52886         ;;
52887         *-hp-hpux* )
52888             SO_SUFFIX="sl"
52889             SO_SUFFIX_MODULE="sl"
52890         ;;
52891         *-*-aix* )
52892                                                                         SO_SUFFIX="a"
52893             SO_SUFFIX_MODULE="a"
52894         ;;
52895         *-*-cygwin* )
52896             SO_SUFFIX="dll"
52897             SO_SUFFIX_MODULE="dll"
52898             DLLIMP_SUFFIX="dll.a"
52899             EXEEXT=".exe"
52900             DLLPREFIX="cyg"
52901             dlldir="$bindir"
52902         ;;
52903         *-*-mingw32* )
52904             SO_SUFFIX="dll"
52905             SO_SUFFIX_MODULE="dll"
52906             DLLIMP_SUFFIX="dll.a"
52907             EXEEXT=".exe"
52908             DLLPREFIX=""
52909             dlldir="$bindir"
52910         ;;
52911         *-pc-msdosdjgpp )
52912             EXEEXT=".exe"
52913             DLLPREFIX=""
52914             dlldir="$bindir"
52915         ;;
52916         *-pc-os2_emx | *-pc-os2-emx )
52917             SO_SUFFIX="dll"
52918             SO_SUFFIX_MODULE="dll"
52919             DLLIMP_SUFFIX=$OS2_LIBEXT
52920             EXEEXT=".exe"
52921             DLLPREFIX=""
52922             LIBPREFIX=""
52923             LIBEXT=".$OS2_LIBEXT"
52924             dlldir="$bindir"
52925         ;;
52926         *-*-darwin* )
52927             SO_SUFFIX="dylib"
52928             SO_SUFFIX_MODULE="bundle"
52929         ;;
52930     esac
52931
52932     if test "x$DLLIMP_SUFFIX" = "x" ; then
52933         DLLIMP_SUFFIX="$SO_SUFFIX"
52934     fi
52935
52936
52937
52938
52939
52940
52941
52942
52943
52944
52945
52946
52947         PIC_FLAG=""
52948     if test "x$GCC" = "xyes"; then
52949                 PIC_FLAG="-fPIC"
52950     fi
52951
52952         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
52953     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
52954     WINDOWS_IMPLIB=0
52955
52956     case "${BAKEFILE_HOST}" in
52957       *-hp-hpux* )
52958                 if test "x$GCC" != "xyes"; then
52959                         LDFLAGS="$LDFLAGS -L/usr/lib"
52960
52961             SHARED_LD_CC="${CC} -b -o"
52962             SHARED_LD_CXX="${CXX} -b -o"
52963             PIC_FLAG="+Z"
52964         fi
52965       ;;
52966
52967       *-*-linux* )
52968                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
52969             PIC_FLAG="-KPIC"
52970         elif test "x$SUNCXX" = "xyes"; then
52971             SHARED_LD_CC="${CC} -G -o"
52972             SHARED_LD_CXX="${CXX} -G -o"
52973             PIC_FLAG="-KPIC"
52974         fi
52975       ;;
52976
52977       *-*-solaris2* )
52978         if test "x$SUNCXX" = xyes ; then
52979             SHARED_LD_CC="${CC} -G -o"
52980             SHARED_LD_CXX="${CXX} -G -o"
52981             PIC_FLAG="-KPIC"
52982         fi
52983       ;;
52984
52985       *-*-darwin* )
52986
52987 D='$'
52988 cat <<EOF >shared-ld-sh
52989 #!/bin/sh
52990 #-----------------------------------------------------------------------------
52991 #-- Name:        distrib/mac/shared-ld-sh
52992 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
52993 #-- Author:      Gilles Depeyrot
52994 #-- Copyright:   (c) 2002 Gilles Depeyrot
52995 #-- Licence:     any use permitted
52996 #-----------------------------------------------------------------------------
52997
52998 verbose=0
52999 args=""
53000 objects=""
53001 linking_flag="-dynamiclib"
53002 ldargs="-r -keep_private_externs -nostdlib"
53003
53004 if test "x${D}CXX" = "x"; then
53005     CXX="c++"
53006 fi
53007
53008 while test ${D}# -gt 0; do
53009     case ${D}1 in
53010
53011        -v)
53012         verbose=1
53013         ;;
53014
53015        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
53016         # collect these options and values
53017         args="${D}{args} ${D}1 ${D}2"
53018         shift
53019         ;;
53020
53021        -arch|-isysroot)
53022         # collect these options and values
53023         ldargs="${D}{ldargs} ${D}1 ${D}2"
53024         shift
53025         ;;
53026
53027        -s|-Wl,*)
53028         # collect these load args
53029         ldargs="${D}{ldargs} ${D}1"
53030         ;;
53031
53032        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
53033         # collect these options
53034         args="${D}{args} ${D}1"
53035         ;;
53036
53037        -dynamiclib|-bundle)
53038         linking_flag="${D}1"
53039         ;;
53040
53041        -*)
53042         echo "shared-ld: unhandled option '${D}1'"
53043         exit 1
53044         ;;
53045
53046         *.o | *.a | *.dylib)
53047         # collect object files
53048         objects="${D}{objects} ${D}1"
53049         ;;
53050
53051         *)
53052         echo "shared-ld: unhandled argument '${D}1'"
53053         exit 1
53054         ;;
53055
53056     esac
53057     shift
53058 done
53059
53060 status=0
53061
53062 #
53063 # Link one module containing all the others
53064 #
53065 if test ${D}{verbose} = 1; then
53066     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
53067 fi
53068 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
53069 status=${D}?
53070
53071 #
53072 # Link the shared library from the single module created, but only if the
53073 # previous command didn't fail:
53074 #
53075 if test ${D}{status} = 0; then
53076     if test ${D}{verbose} = 1; then
53077         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
53078     fi
53079     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
53080     status=${D}?
53081 fi
53082
53083 #
53084 # Remove intermediate module
53085 #
53086 rm -f master.${D}${D}.o
53087
53088 exit ${D}status
53089 EOF
53090
53091         chmod +x shared-ld-sh
53092
53093         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
53094         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
53095
53096
53097                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
53098 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
53099 if test "${bakefile_cv_gcc31+set}" = set; then
53100   echo $ECHO_N "(cached) $ECHO_C" >&6
53101 else
53102
53103            cat >conftest.$ac_ext <<_ACEOF
53104 /* confdefs.h.  */
53105 _ACEOF
53106 cat confdefs.h >>conftest.$ac_ext
53107 cat >>conftest.$ac_ext <<_ACEOF
53108 /* end confdefs.h.  */
53109
53110 int
53111 main ()
53112 {
53113
53114                    #if (__GNUC__ < 3) || \
53115                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
53116                        This is old gcc
53117                    #endif
53118
53119   ;
53120   return 0;
53121 }
53122 _ACEOF
53123 rm -f conftest.$ac_objext
53124 if { (ac_try="$ac_compile"
53125 case "(($ac_try" in
53126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53127   *) ac_try_echo=$ac_try;;
53128 esac
53129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53130   (eval "$ac_compile") 2>conftest.er1
53131   ac_status=$?
53132   grep -v '^ *+' conftest.er1 >conftest.err
53133   rm -f conftest.er1
53134   cat conftest.err >&5
53135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53136   (exit $ac_status); } && {
53137          test -z "$ac_c_werror_flag" ||
53138          test ! -s conftest.err
53139        } && test -s conftest.$ac_objext; then
53140
53141                    bakefile_cv_gcc31=yes
53142
53143 else
53144   echo "$as_me: failed program was:" >&5
53145 sed 's/^/| /' conftest.$ac_ext >&5
53146
53147
53148                    bakefile_cv_gcc31=no
53149
53150
53151 fi
53152
53153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53154
53155 fi
53156 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
53157 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
53158         if test "$bakefile_cv_gcc31" = "no"; then
53159                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
53160             SHARED_LD_CXX="$SHARED_LD_CC"
53161         else
53162                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
53163             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
53164         fi
53165
53166         if test "x$GCC" == "xyes"; then
53167             PIC_FLAG="-dynamic -fPIC"
53168         fi
53169         if test "x$XLCC" = "xyes"; then
53170             PIC_FLAG="-dynamic -DPIC"
53171         fi
53172       ;;
53173
53174       *-*-aix* )
53175         if test "x$GCC" = "xyes"; then
53176                                                             PIC_FLAG=""
53177
53178                                                                                     case "${BAKEFILE_HOST}" in
53179                 *-*-aix5* )
53180                     LD_EXPFULL="-Wl,-bexpfull"
53181                     ;;
53182             esac
53183
53184             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
53185             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
53186         else
53187                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
53188 set dummy makeC++SharedLib; ac_word=$2
53189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53191 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
53192   echo $ECHO_N "(cached) $ECHO_C" >&6
53193 else
53194   if test -n "$AIX_CXX_LD"; then
53195   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
53196 else
53197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53198 for as_dir in $PATH
53199 do
53200   IFS=$as_save_IFS
53201   test -z "$as_dir" && as_dir=.
53202   for ac_exec_ext in '' $ac_executable_extensions; do
53203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53204     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
53205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53206     break 2
53207   fi
53208 done
53209 done
53210 IFS=$as_save_IFS
53211
53212   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
53213 fi
53214 fi
53215 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
53216 if test -n "$AIX_CXX_LD"; then
53217   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
53218 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
53219 else
53220   { echo "$as_me:$LINENO: result: no" >&5
53221 echo "${ECHO_T}no" >&6; }
53222 fi
53223
53224
53225             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
53226             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
53227         fi
53228       ;;
53229
53230       *-*-beos* )
53231                         SHARED_LD_CC="${LD} -nostart -o"
53232         SHARED_LD_CXX="${LD} -nostart -o"
53233       ;;
53234
53235       *-*-irix* )
53236                 if test "x$GCC" != "xyes"; then
53237             PIC_FLAG="-KPIC"
53238         fi
53239       ;;
53240
53241       *-*-cygwin* | *-*-mingw32* )
53242         PIC_FLAG=""
53243         SHARED_LD_CC="\$(CC) -shared -o"
53244         SHARED_LD_CXX="\$(CXX) -shared -o"
53245         WINDOWS_IMPLIB=1
53246       ;;
53247
53248       *-pc-os2_emx | *-pc-os2-emx )
53249         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53250         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53251         PIC_FLAG=""
53252
53253 D='$'
53254 cat <<EOF >dllar.sh
53255 #!/bin/sh
53256 #
53257 # dllar - a tool to build both a .dll and an .a file
53258 # from a set of object (.o) files for EMX/OS2.
53259 #
53260 #  Written by Andrew Zabolotny, bit@freya.etu.ru
53261 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
53262 #
53263 #  This script will accept a set of files on the command line.
53264 #  All the public symbols from the .o files will be exported into
53265 #  a .DEF file, then linker will be run (through gcc) against them to
53266 #  build a shared library consisting of all given .o files. All libraries
53267 #  (.a) will be first decompressed into component .o files then act as
53268 #  described above. You can optionally give a description (-d "description")
53269 #  which will be put into .DLL. To see the list of accepted options (as well
53270 #  as command-line format) simply run this program without options. The .DLL
53271 #  is built to be imported by name (there is no guarantee that new versions
53272 #  of the library you build will have same ordinals for same symbols).
53273 #
53274 #  dllar is free software; you can redistribute it and/or modify
53275 #  it under the terms of the GNU General Public License as published by
53276 #  the Free Software Foundation; either version 2, or (at your option)
53277 #  any later version.
53278 #
53279 #  dllar is distributed in the hope that it will be useful,
53280 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
53281 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
53282 #  GNU General Public License for more details.
53283 #
53284 #  You should have received a copy of the GNU General Public License
53285 #  along with dllar; see the file COPYING.  If not, write to the Free
53286 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
53287 #  02111-1307, USA.
53288
53289 # To successfuly run this program you will need:
53290 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
53291 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
53292 #  - gcc
53293 #    (used to build the .dll)
53294 #  - emxexp
53295 #    (used to create .def file from .o files)
53296 #  - emximp
53297 #    (used to create .a file from .def file)
53298 #  - GNU text utilites (cat, sort, uniq)
53299 #    used to process emxexp output
53300 #  - GNU file utilities (mv, rm)
53301 #  - GNU sed
53302 #  - lxlite (optional, see flag below)
53303 #    (used for general .dll cleanup)
53304 #
53305
53306 flag_USE_LXLITE=1;
53307
53308 #
53309 # helper functions
53310 # basnam, variant of basename, which does _not_ remove the path, _iff_
53311 #                              second argument (suffix to remove) is given
53312 basnam(){
53313     case ${D}# in
53314     1)
53315         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
53316         ;;
53317     2)
53318         echo ${D}1 | sed 's/'${D}2'${D}//'
53319         ;;
53320     *)
53321         echo "error in basnam ${D}*"
53322         exit 8
53323         ;;
53324     esac
53325 }
53326
53327 # Cleanup temporary files and output
53328 CleanUp() {
53329     cd ${D}curDir
53330     for i in ${D}inputFiles ; do
53331         case ${D}i in
53332         *!)
53333             rm -rf \`basnam ${D}i !\`
53334             ;;
53335         *)
53336             ;;
53337         esac
53338     done
53339
53340     # Kill result in case of failure as there is just to many stupid make/nmake
53341     # things out there which doesn't do this.
53342     if [ ${D}# -eq 0 ]; then
53343         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
53344     fi
53345 }
53346
53347 # Print usage and exit script with rc=1.
53348 PrintHelp() {
53349  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
53350  echo '       [-name-mangler-script script.sh]'
53351  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
53352  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
53353  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
53354  echo '       [*.o] [*.a]'
53355  echo '*> "output_file" should have no extension.'
53356  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
53357  echo '   The import library name is derived from this and is set to "name".a,'
53358  echo '   unless overridden by -import'
53359  echo '*> "importlib_name" should have no extension.'
53360  echo '   If it has the .o, or .a extension, it is automatically removed.'
53361  echo '   This name is used as the import library name and may be longer and'
53362  echo '   more descriptive than the DLL name which has to follow the old '
53363  echo '   8.3 convention of FAT.'
53364  echo '*> "script.sh may be given to override the output_file name by a'
53365  echo '   different name. It is mainly useful if the regular make process'
53366  echo '   of some package does not take into account OS/2 restriction of'
53367  echo '   DLL name lengths. It takes the importlib name as input and is'
53368  echo '   supposed to procude a shorter name as output. The script should'
53369  echo '   expect to get importlib_name without extension and should produce'
53370  echo '   a (max.) 8 letter name without extension.'
53371  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
53372  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
53373  echo '   These flags will be put at the start of GCC command line.'
53374  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
53375  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
53376  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
53377  echo '   If the last character of a symbol is "*", all symbols beginning'
53378  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
53379  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
53380  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
53381  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
53382  echo '   C runtime DLLs.'
53383  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
53384  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
53385  echo '   unchanged to GCC at the end of command line.'
53386  echo '*> If you create a DLL from a library and you do not specify -o,'
53387  echo '   the basename for DLL and import library will be set to library name,'
53388  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
53389  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
53390  echo '   library will be renamed into gcc_s.a.'
53391  echo '--------'
53392  echo 'Example:'
53393  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
53394  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
53395  CleanUp
53396  exit 1
53397 }
53398
53399 # Execute a command.
53400 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
53401 # @Uses    Whatever CleanUp() uses.
53402 doCommand() {
53403     echo "${D}*"
53404     eval ${D}*
53405     rcCmd=${D}?
53406
53407     if [ ${D}rcCmd -ne 0 ]; then
53408         echo "command failed, exit code="${D}rcCmd
53409         CleanUp
53410         exit ${D}rcCmd
53411     fi
53412 }
53413
53414 # main routine
53415 # setup globals
53416 cmdLine=${D}*
53417 outFile=""
53418 outimpFile=""
53419 inputFiles=""
53420 renameScript=""
53421 description=""
53422 CC=gcc.exe
53423 CFLAGS="-s -Zcrtdll"
53424 EXTRA_CFLAGS=""
53425 EXPORT_BY_ORDINALS=0
53426 exclude_symbols=""
53427 library_flags=""
53428 curDir=\`pwd\`
53429 curDirS=curDir
53430 case ${D}curDirS in
53431 */)
53432   ;;
53433 *)
53434   curDirS=${D}{curDirS}"/"
53435   ;;
53436 esac
53437 # Parse commandline
53438 libsToLink=0
53439 omfLinking=0
53440 while [ ${D}1 ]; do
53441     case ${D}1 in
53442     -ord*)
53443         EXPORT_BY_ORDINALS=1;
53444         ;;
53445     -o*)
53446         shift
53447         outFile=${D}1
53448         ;;
53449     -i*)
53450         shift
53451         outimpFile=${D}1
53452         ;;
53453     -name-mangler-script)
53454         shift
53455         renameScript=${D}1
53456         ;;
53457     -d*)
53458         shift
53459         description=${D}1
53460         ;;
53461     -f*)
53462         shift
53463         CFLAGS=${D}1
53464         ;;
53465     -c*)
53466         shift
53467         CC=${D}1
53468         ;;
53469     -h*)
53470         PrintHelp
53471         ;;
53472     -ex*)
53473         shift
53474         exclude_symbols=${D}{exclude_symbols}${D}1" "
53475         ;;
53476     -libf*)
53477         shift
53478         library_flags=${D}{library_flags}${D}1" "
53479         ;;
53480     -nocrt*)
53481         CFLAGS="-s"
53482         ;;
53483     -nolxl*)
53484         flag_USE_LXLITE=0
53485         ;;
53486     -* | /*)
53487         case ${D}1 in
53488         -L* | -l*)
53489             libsToLink=1
53490             ;;
53491         -Zomf)
53492             omfLinking=1
53493             ;;
53494         *)
53495             ;;
53496         esac
53497         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
53498         ;;
53499     *.dll)
53500         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
53501         if [ ${D}omfLinking -eq 1 ]; then
53502             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
53503         else
53504             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
53505         fi
53506         ;;
53507     *)
53508         found=0;
53509         if [ ${D}libsToLink -ne 0 ]; then
53510             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
53511         else
53512             for file in ${D}1 ; do
53513                 if [ -f ${D}file ]; then
53514                     inputFiles="${D}{inputFiles} ${D}file"
53515                     found=1
53516                 fi
53517             done
53518             if [ ${D}found -eq 0 ]; then
53519                 echo "ERROR: No file(s) found: "${D}1
53520                 exit 8
53521             fi
53522         fi
53523       ;;
53524     esac
53525     shift
53526 done # iterate cmdline words
53527
53528 #
53529 if [ -z "${D}inputFiles" ]; then
53530     echo "dllar: no input files"
53531     PrintHelp
53532 fi
53533
53534 # Now extract all .o files from .a files
53535 newInputFiles=""
53536 for file in ${D}inputFiles ; do
53537     case ${D}file in
53538     *.a | *.lib)
53539         case ${D}file in
53540         *.a)
53541             suffix=".a"
53542             AR="ar"
53543             ;;
53544         *.lib)
53545             suffix=".lib"
53546             AR="emxomfar"
53547             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
53548             ;;
53549         *)
53550             ;;
53551         esac
53552         dirname=\`basnam ${D}file ${D}suffix\`"_%"
53553         mkdir ${D}dirname
53554         if [ ${D}? -ne 0 ]; then
53555             echo "Failed to create subdirectory ./${D}dirname"
53556             CleanUp
53557             exit 8;
53558         fi
53559         # Append '!' to indicate archive
53560         newInputFiles="${D}newInputFiles ${D}{dirname}!"
53561         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
53562         cd ${D}curDir
53563         found=0;
53564         for subfile in ${D}dirname/*.o* ; do
53565             if [ -f ${D}subfile ]; then
53566                 found=1
53567                 if [ -s ${D}subfile ]; then
53568                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
53569                     newInputFiles="${D}newInputFiles ${D}subfile"
53570                 fi
53571             fi
53572         done
53573         if [ ${D}found -eq 0 ]; then
53574             echo "WARNING: there are no files in archive \\'${D}file\\'"
53575         fi
53576         ;;
53577     *)
53578         newInputFiles="${D}{newInputFiles} ${D}file"
53579         ;;
53580     esac
53581 done
53582 inputFiles="${D}newInputFiles"
53583
53584 # Output filename(s).
53585 do_backup=0;
53586 if [ -z ${D}outFile ]; then
53587     do_backup=1;
53588     set outFile ${D}inputFiles; outFile=${D}2
53589 fi
53590
53591 # If it is an archive, remove the '!' and the '_%' suffixes
53592 case ${D}outFile in
53593 *_%!)
53594     outFile=\`basnam ${D}outFile _%!\`
53595     ;;
53596 *)
53597     ;;
53598 esac
53599 case ${D}outFile in
53600 *.dll)
53601     outFile=\`basnam ${D}outFile .dll\`
53602     ;;
53603 *.DLL)
53604     outFile=\`basnam ${D}outFile .DLL\`
53605     ;;
53606 *.o)
53607     outFile=\`basnam ${D}outFile .o\`
53608     ;;
53609 *.obj)
53610     outFile=\`basnam ${D}outFile .obj\`
53611     ;;
53612 *.a)
53613     outFile=\`basnam ${D}outFile .a\`
53614     ;;
53615 *.lib)
53616     outFile=\`basnam ${D}outFile .lib\`
53617     ;;
53618 *)
53619     ;;
53620 esac
53621 case ${D}outimpFile in
53622 *.a)
53623     outimpFile=\`basnam ${D}outimpFile .a\`
53624     ;;
53625 *.lib)
53626     outimpFile=\`basnam ${D}outimpFile .lib\`
53627     ;;
53628 *)
53629     ;;
53630 esac
53631 if [ -z ${D}outimpFile ]; then
53632     outimpFile=${D}outFile
53633 fi
53634 defFile="${D}{outFile}.def"
53635 arcFile="${D}{outimpFile}.a"
53636 arcFile2="${D}{outimpFile}.lib"
53637
53638 #create ${D}dllFile as something matching 8.3 restrictions,
53639 if [ -z ${D}renameScript ] ; then
53640     dllFile="${D}outFile"
53641 else
53642     dllFile=\`${D}renameScript ${D}outimpFile\`
53643 fi
53644
53645 if [ ${D}do_backup -ne 0 ] ; then
53646     if [ -f ${D}arcFile ] ; then
53647         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
53648     fi
53649     if [ -f ${D}arcFile2 ] ; then
53650         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
53651     fi
53652 fi
53653
53654 # Extract public symbols from all the object files.
53655 tmpdefFile=${D}{defFile}_%
53656 rm -f ${D}tmpdefFile
53657 for file in ${D}inputFiles ; do
53658     case ${D}file in
53659     *!)
53660         ;;
53661     *)
53662         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
53663         ;;
53664     esac
53665 done
53666
53667 # Create the def file.
53668 rm -f ${D}defFile
53669 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
53670 dllFile="${D}{dllFile}.dll"
53671 if [ ! -z ${D}description ]; then
53672     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
53673 fi
53674 echo "EXPORTS" >> ${D}defFile
53675
53676 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
53677 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
53678
53679 # Checks if the export is ok or not.
53680 for word in ${D}exclude_symbols; do
53681     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
53682     mv ${D}{tmpdefFile}% ${D}tmpdefFile
53683 done
53684
53685
53686 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
53687     sed "=" < ${D}tmpdefFile | \\
53688     sed '
53689       N
53690       : loop
53691       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
53692       t loop
53693     ' > ${D}{tmpdefFile}%
53694     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
53695 else
53696     rm -f ${D}{tmpdefFile}%
53697 fi
53698 cat ${D}tmpdefFile >> ${D}defFile
53699 rm -f ${D}tmpdefFile
53700
53701 # Do linking, create implib, and apply lxlite.
53702 gccCmdl="";
53703 for file in ${D}inputFiles ; do
53704     case ${D}file in
53705     *!)
53706         ;;
53707     *)
53708         gccCmdl="${D}gccCmdl ${D}file"
53709         ;;
53710     esac
53711 done
53712 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
53713 touch "${D}{outFile}.dll"
53714
53715 doCommand "emximp -o ${D}arcFile ${D}defFile"
53716 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
53717     add_flags="";
53718     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
53719         add_flags="-ynd"
53720     fi
53721     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
53722 fi
53723 doCommand "emxomf -s -l ${D}arcFile"
53724
53725 # Successful exit.
53726 CleanUp 1
53727 exit 0
53728 EOF
53729
53730         chmod +x dllar.sh
53731       ;;
53732
53733       powerpc-apple-macos* | \
53734       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
53735       *-*-mirbsd* | \
53736       *-*-sunos4* | \
53737       *-*-osf* | \
53738       *-*-dgux5* | \
53739       *-*-sysv5* | \
53740       *-pc-msdosdjgpp )
53741               ;;
53742
53743       *)
53744         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
53745 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
53746    { (exit 1); exit 1; }; }
53747     esac
53748
53749     if test "x$PIC_FLAG" != "x" ; then
53750         PIC_FLAG="$PIC_FLAG -DPIC"
53751     fi
53752
53753     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
53754         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
53755     fi
53756     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
53757         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
53758     fi
53759
53760
53761
53762
53763
53764
53765
53766
53767
53768     USE_SOVERSION=0
53769     USE_SOVERLINUX=0
53770     USE_SOVERSOLARIS=0
53771     USE_SOVERCYGWIN=0
53772     USE_SOTWOSYMLINKS=0
53773     USE_MACVERSION=0
53774     SONAME_FLAG=
53775
53776     case "${BAKEFILE_HOST}" in
53777       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
53778       *-*-k*bsd*-gnu | *-*-mirbsd* )
53779         if test "x$SUNCXX" = "xyes"; then
53780             SONAME_FLAG="-h "
53781         else
53782             SONAME_FLAG="-Wl,-soname,"
53783         fi
53784         USE_SOVERSION=1
53785         USE_SOVERLINUX=1
53786         USE_SOTWOSYMLINKS=1
53787       ;;
53788
53789       *-*-solaris2* )
53790         SONAME_FLAG="-h "
53791         USE_SOVERSION=1
53792         USE_SOVERSOLARIS=1
53793       ;;
53794
53795       *-*-darwin* )
53796         USE_MACVERSION=1
53797         USE_SOVERSION=1
53798         USE_SOTWOSYMLINKS=1
53799       ;;
53800
53801       *-*-cygwin* )
53802         USE_SOVERSION=1
53803         USE_SOVERCYGWIN=1
53804       ;;
53805     esac
53806
53807
53808
53809
53810
53811
53812
53813
53814
53815
53816     # Check whether --enable-dependency-tracking was given.
53817 if test "${enable_dependency_tracking+set}" = set; then
53818   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
53819 fi
53820
53821
53822     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
53823 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
53824
53825     BK_DEPS=""
53826     if test "x$bk_use_trackdeps" = "xno" ; then
53827         DEPS_TRACKING=0
53828         { echo "$as_me:$LINENO: result: disabled" >&5
53829 echo "${ECHO_T}disabled" >&6; }
53830     else
53831         DEPS_TRACKING=1
53832
53833         if test "x$GCC" = "xyes"; then
53834             DEPSMODE=gcc
53835             case "${BAKEFILE_HOST}" in
53836                 *-*-darwin* )
53837                                                             DEPSFLAG="-no-cpp-precomp -MMD"
53838                 ;;
53839                 * )
53840                     DEPSFLAG="-MMD"
53841                 ;;
53842             esac
53843             { echo "$as_me:$LINENO: result: gcc" >&5
53844 echo "${ECHO_T}gcc" >&6; }
53845         elif test "x$MWCC" = "xyes"; then
53846             DEPSMODE=mwcc
53847             DEPSFLAG="-MM"
53848             { echo "$as_me:$LINENO: result: mwcc" >&5
53849 echo "${ECHO_T}mwcc" >&6; }
53850         elif test "x$SUNCC" = "xyes"; then
53851             DEPSMODE=unixcc
53852             DEPSFLAG="-xM1"
53853             { echo "$as_me:$LINENO: result: Sun cc" >&5
53854 echo "${ECHO_T}Sun cc" >&6; }
53855         elif test "x$SGICC" = "xyes"; then
53856             DEPSMODE=unixcc
53857             DEPSFLAG="-M"
53858             { echo "$as_me:$LINENO: result: SGI cc" >&5
53859 echo "${ECHO_T}SGI cc" >&6; }
53860         elif test "x$HPCC" = "xyes"; then
53861             DEPSMODE=unixcc
53862             DEPSFLAG="+make"
53863             { echo "$as_me:$LINENO: result: HP cc" >&5
53864 echo "${ECHO_T}HP cc" >&6; }
53865         elif test "x$COMPAQCC" = "xyes"; then
53866             DEPSMODE=gcc
53867             DEPSFLAG="-MD"
53868             { echo "$as_me:$LINENO: result: Compaq cc" >&5
53869 echo "${ECHO_T}Compaq cc" >&6; }
53870         else
53871             DEPS_TRACKING=0
53872             { echo "$as_me:$LINENO: result: none" >&5
53873 echo "${ECHO_T}none" >&6; }
53874         fi
53875
53876         if test $DEPS_TRACKING = 1 ; then
53877
53878 D='$'
53879 cat <<EOF >bk-deps
53880 #!/bin/sh
53881
53882 # This script is part of Bakefile (http://www.bakefile.org) autoconf
53883 # script. It is used to track C/C++ files dependencies in portable way.
53884 #
53885 # Permission is given to use this file in any way.
53886
53887 DEPSMODE=${DEPSMODE}
53888 DEPSFLAG="${DEPSFLAG}"
53889 DEPSDIRBASE=.deps
53890
53891 if test ${D}DEPSMODE = gcc ; then
53892     ${D}* ${D}{DEPSFLAG}
53893     status=${D}?
53894
53895     # determine location of created files:
53896     while test ${D}# -gt 0; do
53897         case "${D}1" in
53898             -o )
53899                 shift
53900                 objfile=${D}1
53901             ;;
53902             -* )
53903             ;;
53904             * )
53905                 srcfile=${D}1
53906             ;;
53907         esac
53908         shift
53909     done
53910     objfilebase=\`basename ${D}objfile\`
53911     builddir=\`dirname ${D}objfile\`
53912     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
53913     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
53914     depsdir=${D}builddir/${D}DEPSDIRBASE
53915     mkdir -p ${D}depsdir
53916
53917     # if the compiler failed, we're done:
53918     if test ${D}{status} != 0 ; then
53919         rm -f ${D}depfile
53920         exit ${D}{status}
53921     fi
53922
53923     # move created file to the location we want it in:
53924     if test -f ${D}depfile ; then
53925         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
53926         rm -f ${D}depfile
53927     else
53928         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
53929         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
53930         if test ! -f ${D}depfile ; then
53931             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
53932             depfile="${D}objfile.d"
53933         fi
53934         if test -f ${D}depfile ; then
53935             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
53936             rm -f ${D}depfile
53937         fi
53938     fi
53939     exit 0
53940
53941 elif test ${D}DEPSMODE = mwcc ; then
53942     ${D}* || exit ${D}?
53943     # Run mwcc again with -MM and redirect into the dep file we want
53944     # NOTE: We can't use shift here because we need ${D}* to be valid
53945     prevarg=
53946     for arg in ${D}* ; do
53947         if test "${D}prevarg" = "-o"; then
53948             objfile=${D}arg
53949         else
53950             case "${D}arg" in
53951                 -* )
53952                 ;;
53953                 * )
53954                     srcfile=${D}arg
53955                 ;;
53956             esac
53957         fi
53958         prevarg="${D}arg"
53959     done
53960
53961     objfilebase=\`basename ${D}objfile\`
53962     builddir=\`dirname ${D}objfile\`
53963     depsdir=${D}builddir/${D}DEPSDIRBASE
53964     mkdir -p ${D}depsdir
53965
53966     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
53967     exit 0
53968
53969 elif test ${D}DEPSMODE = unixcc; then
53970     ${D}* || exit ${D}?
53971     # Run compiler again with deps flag and redirect into the dep file.
53972     # It doesn't work if the '-o FILE' option is used, but without it the
53973     # dependency file will contain the wrong name for the object. So it is
53974     # removed from the command line, and the dep file is fixed with sed.
53975     cmd=""
53976     while test ${D}# -gt 0; do
53977         case "${D}1" in
53978             -o )
53979                 shift
53980                 objfile=${D}1
53981             ;;
53982             * )
53983                 eval arg${D}#=\\${D}1
53984                 cmd="${D}cmd \\${D}arg${D}#"
53985             ;;
53986         esac
53987         shift
53988     done
53989
53990     objfilebase=\`basename ${D}objfile\`
53991     builddir=\`dirname ${D}objfile\`
53992     depsdir=${D}builddir/${D}DEPSDIRBASE
53993     mkdir -p ${D}depsdir
53994
53995     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
53996     exit 0
53997
53998 else
53999     ${D}*
54000     exit ${D}?
54001 fi
54002 EOF
54003
54004             chmod +x bk-deps
54005                                     BK_DEPS="`pwd`/bk-deps"
54006         fi
54007     fi
54008
54009
54010
54011
54012
54013     case ${BAKEFILE_HOST} in
54014         *-*-cygwin* | *-*-mingw32* )
54015                         if test -n "$ac_tool_prefix"; then
54016   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
54017 set dummy ${ac_tool_prefix}windres; ac_word=$2
54018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54020 if test "${ac_cv_prog_WINDRES+set}" = set; then
54021   echo $ECHO_N "(cached) $ECHO_C" >&6
54022 else
54023   if test -n "$WINDRES"; then
54024   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
54025 else
54026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54027 for as_dir in $PATH
54028 do
54029   IFS=$as_save_IFS
54030   test -z "$as_dir" && as_dir=.
54031   for ac_exec_ext in '' $ac_executable_extensions; do
54032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54033     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
54034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54035     break 2
54036   fi
54037 done
54038 done
54039 IFS=$as_save_IFS
54040
54041 fi
54042 fi
54043 WINDRES=$ac_cv_prog_WINDRES
54044 if test -n "$WINDRES"; then
54045   { echo "$as_me:$LINENO: result: $WINDRES" >&5
54046 echo "${ECHO_T}$WINDRES" >&6; }
54047 else
54048   { echo "$as_me:$LINENO: result: no" >&5
54049 echo "${ECHO_T}no" >&6; }
54050 fi
54051
54052
54053 fi
54054 if test -z "$ac_cv_prog_WINDRES"; then
54055   ac_ct_WINDRES=$WINDRES
54056   # Extract the first word of "windres", so it can be a program name with args.
54057 set dummy windres; ac_word=$2
54058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54060 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
54061   echo $ECHO_N "(cached) $ECHO_C" >&6
54062 else
54063   if test -n "$ac_ct_WINDRES"; then
54064   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
54065 else
54066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54067 for as_dir in $PATH
54068 do
54069   IFS=$as_save_IFS
54070   test -z "$as_dir" && as_dir=.
54071   for ac_exec_ext in '' $ac_executable_extensions; do
54072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54073     ac_cv_prog_ac_ct_WINDRES="windres"
54074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54075     break 2
54076   fi
54077 done
54078 done
54079 IFS=$as_save_IFS
54080
54081 fi
54082 fi
54083 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
54084 if test -n "$ac_ct_WINDRES"; then
54085   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
54086 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
54087 else
54088   { echo "$as_me:$LINENO: result: no" >&5
54089 echo "${ECHO_T}no" >&6; }
54090 fi
54091
54092   if test "x$ac_ct_WINDRES" = x; then
54093     WINDRES=""
54094   else
54095     case $cross_compiling:$ac_tool_warned in
54096 yes:)
54097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54098 whose name does not start with the host triplet.  If you think this
54099 configuration is useful to you, please write to autoconf@gnu.org." >&5
54100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54101 whose name does not start with the host triplet.  If you think this
54102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54103 ac_tool_warned=yes ;;
54104 esac
54105     WINDRES=$ac_ct_WINDRES
54106   fi
54107 else
54108   WINDRES="$ac_cv_prog_WINDRES"
54109 fi
54110
54111          ;;
54112
54113       *-*-darwin* | powerpc-apple-macos* )
54114             # Extract the first word of "Rez", so it can be a program name with args.
54115 set dummy Rez; ac_word=$2
54116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54118 if test "${ac_cv_prog_REZ+set}" = set; then
54119   echo $ECHO_N "(cached) $ECHO_C" >&6
54120 else
54121   if test -n "$REZ"; then
54122   ac_cv_prog_REZ="$REZ" # Let the user override the test.
54123 else
54124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54125 for as_dir in $PATH
54126 do
54127   IFS=$as_save_IFS
54128   test -z "$as_dir" && as_dir=.
54129   for ac_exec_ext in '' $ac_executable_extensions; do
54130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54131     ac_cv_prog_REZ="Rez"
54132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54133     break 2
54134   fi
54135 done
54136 done
54137 IFS=$as_save_IFS
54138
54139   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
54140 fi
54141 fi
54142 REZ=$ac_cv_prog_REZ
54143 if test -n "$REZ"; then
54144   { echo "$as_me:$LINENO: result: $REZ" >&5
54145 echo "${ECHO_T}$REZ" >&6; }
54146 else
54147   { echo "$as_me:$LINENO: result: no" >&5
54148 echo "${ECHO_T}no" >&6; }
54149 fi
54150
54151
54152             # Extract the first word of "SetFile", so it can be a program name with args.
54153 set dummy SetFile; ac_word=$2
54154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54156 if test "${ac_cv_prog_SETFILE+set}" = set; then
54157   echo $ECHO_N "(cached) $ECHO_C" >&6
54158 else
54159   if test -n "$SETFILE"; then
54160   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
54161 else
54162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54163 for as_dir in $PATH
54164 do
54165   IFS=$as_save_IFS
54166   test -z "$as_dir" && as_dir=.
54167   for ac_exec_ext in '' $ac_executable_extensions; do
54168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54169     ac_cv_prog_SETFILE="SetFile"
54170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54171     break 2
54172   fi
54173 done
54174 done
54175 IFS=$as_save_IFS
54176
54177   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
54178 fi
54179 fi
54180 SETFILE=$ac_cv_prog_SETFILE
54181 if test -n "$SETFILE"; then
54182   { echo "$as_me:$LINENO: result: $SETFILE" >&5
54183 echo "${ECHO_T}$SETFILE" >&6; }
54184 else
54185   { echo "$as_me:$LINENO: result: no" >&5
54186 echo "${ECHO_T}no" >&6; }
54187 fi
54188
54189
54190         ;;
54191     esac
54192
54193
54194
54195
54196
54197
54198
54199
54200
54201     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
54202
54203
54204 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
54205
54206
54207
54208     # Check whether --enable-precomp-headers was given.
54209 if test "${enable_precomp_headers+set}" = set; then
54210   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
54211 fi
54212
54213
54214     GCC_PCH=0
54215     ICC_PCH=0
54216     USE_PCH=0
54217     BK_MAKE_PCH=""
54218
54219     case ${BAKEFILE_HOST} in
54220         *-*-cygwin* )
54221                                                 bk_use_pch="no"
54222             ;;
54223     esac
54224
54225     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
54226         if test "x$GCC" = "xyes"; then
54227                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
54228 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
54229             cat >conftest.$ac_ext <<_ACEOF
54230 /* confdefs.h.  */
54231 _ACEOF
54232 cat confdefs.h >>conftest.$ac_ext
54233 cat >>conftest.$ac_ext <<_ACEOF
54234 /* end confdefs.h.  */
54235
54236 int
54237 main ()
54238 {
54239
54240                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
54241                         There is no PCH support
54242                     #endif
54243                     #if (__GNUC__ < 3)
54244                         There is no PCH support
54245                     #endif
54246                     #if (__GNUC__ == 3) && \
54247                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
54248                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
54249                        ( defined(__INTEL_COMPILER) )
54250                         There is no PCH support
54251                     #endif
54252
54253   ;
54254   return 0;
54255 }
54256 _ACEOF
54257 rm -f conftest.$ac_objext
54258 if { (ac_try="$ac_compile"
54259 case "(($ac_try" in
54260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54261   *) ac_try_echo=$ac_try;;
54262 esac
54263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54264   (eval "$ac_compile") 2>conftest.er1
54265   ac_status=$?
54266   grep -v '^ *+' conftest.er1 >conftest.err
54267   rm -f conftest.er1
54268   cat conftest.err >&5
54269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54270   (exit $ac_status); } && {
54271          test -z "$ac_c_werror_flag" ||
54272          test ! -s conftest.err
54273        } && test -s conftest.$ac_objext; then
54274
54275                     { echo "$as_me:$LINENO: result: yes" >&5
54276 echo "${ECHO_T}yes" >&6; }
54277                     GCC_PCH=1
54278
54279 else
54280   echo "$as_me: failed program was:" >&5
54281 sed 's/^/| /' conftest.$ac_ext >&5
54282
54283
54284                     if test "$INTELCXX8" = "yes"; then
54285                         { echo "$as_me:$LINENO: result: yes" >&5
54286 echo "${ECHO_T}yes" >&6; }
54287                         ICC_PCH=1
54288                         if test "$INTELCXX10" = "yes"; then
54289                             ICC_PCH_CREATE_SWITCH="-pch-create"
54290                             ICC_PCH_USE_SWITCH="-pch-use"
54291                         else
54292                             ICC_PCH_CREATE_SWITCH="-create-pch"
54293                             ICC_PCH_USE_SWITCH="-use-pch"
54294                         fi
54295                     else
54296                         { echo "$as_me:$LINENO: result: no" >&5
54297 echo "${ECHO_T}no" >&6; }
54298                     fi
54299
54300 fi
54301
54302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54303             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
54304                 USE_PCH=1
54305
54306 D='$'
54307 cat <<EOF >bk-make-pch
54308 #!/bin/sh
54309
54310 # This script is part of Bakefile (http://www.bakefile.org) autoconf
54311 # script. It is used to generated precompiled headers.
54312 #
54313 # Permission is given to use this file in any way.
54314
54315 outfile="${D}{1}"
54316 header="${D}{2}"
54317 shift
54318 shift
54319
54320 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
54321
54322 compiler=""
54323 headerfile=""
54324
54325 while test ${D}{#} -gt 0; do
54326     add_to_cmdline=1
54327     case "${D}{1}" in
54328         -I* )
54329             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
54330             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
54331                 headerfile="${D}{incdir}/${D}{header}"
54332             fi
54333         ;;
54334         -use-pch|-use_pch|-pch-use )
54335             shift
54336             add_to_cmdline=0
54337         ;;
54338     esac
54339     if test ${D}add_to_cmdline = 1 ; then
54340         compiler="${D}{compiler} ${D}{1}"
54341     fi
54342     shift
54343 done
54344
54345 if test "x${D}{headerfile}" = "x" ; then
54346     echo "error: can't find header ${D}{header} in include paths" >&2
54347 else
54348     if test -f ${D}{outfile} ; then
54349         rm -f ${D}{outfile}
54350     else
54351         mkdir -p \`dirname ${D}{outfile}\`
54352     fi
54353     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
54354     mkdir -p ${D}{builddir}/.deps
54355     if test "x${GCC_PCH}" = "x1" ; then
54356         # can do this because gcc is >= 3.4:
54357         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
54358     elif test "x${ICC_PCH}" = "x1" ; then
54359         filename=pch_gen-${D}${D}
54360         file=${D}{filename}.c
54361         dfile=${D}{filename}.d
54362         cat > ${D}file <<EOT
54363 #include "${D}header"
54364 EOT
54365         # using -MF icc complains about differing command lines in creation/use
54366         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
54367           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
54368           rm -f ${D}file ${D}dfile ${D}{filename}.o
54369     fi
54370     exit ${D}{?}
54371 fi
54372 EOF
54373
54374                 chmod +x bk-make-pch
54375                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
54376             fi
54377         fi
54378     fi
54379
54380
54381
54382
54383
54384
54385
54386     COND_BUILD_DEBUG="#"
54387     if test "x$BUILD" = "xdebug" ; then
54388         COND_BUILD_DEBUG=""
54389     fi
54390
54391     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
54392     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
54393         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
54394     fi
54395
54396     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
54397     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
54398         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
54399     fi
54400
54401     COND_BUILD_DEBUG_UNICODE_0="#"
54402     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
54403         COND_BUILD_DEBUG_UNICODE_0=""
54404     fi
54405
54406     COND_BUILD_DEBUG_UNICODE_1="#"
54407     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
54408         COND_BUILD_DEBUG_UNICODE_1=""
54409     fi
54410
54411     COND_BUILD_RELEASE="#"
54412     if test "x$BUILD" = "xrelease" ; then
54413         COND_BUILD_RELEASE=""
54414     fi
54415
54416     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
54417     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
54418         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
54419     fi
54420
54421     COND_BUILD_RELEASE_UNICODE_0="#"
54422     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
54423         COND_BUILD_RELEASE_UNICODE_0=""
54424     fi
54425
54426     COND_BUILD_RELEASE_UNICODE_1="#"
54427     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
54428         COND_BUILD_RELEASE_UNICODE_1=""
54429     fi
54430
54431     COND_BUILD_debug="#"
54432     if test "x$BUILD" = "xdebug" ; then
54433         COND_BUILD_debug=""
54434     fi
54435
54436     COND_BUILD_debug_DEBUG_FLAG_default="#"
54437     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
54438         COND_BUILD_debug_DEBUG_FLAG_default=""
54439     fi
54440
54441     COND_BUILD_debug_DEBUG_INFO_default="#"
54442     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
54443         COND_BUILD_debug_DEBUG_INFO_default=""
54444     fi
54445
54446     COND_BUILD_debug_UNICODE_0="#"
54447     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
54448         COND_BUILD_debug_UNICODE_0=""
54449     fi
54450
54451     COND_BUILD_debug_UNICODE_1="#"
54452     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
54453         COND_BUILD_debug_UNICODE_1=""
54454     fi
54455
54456     COND_BUILD_release="#"
54457     if test "x$BUILD" = "xrelease" ; then
54458         COND_BUILD_release=""
54459     fi
54460
54461     COND_BUILD_release_DEBUG_INFO_default="#"
54462     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
54463         COND_BUILD_release_DEBUG_INFO_default=""
54464     fi
54465
54466     COND_BUILD_release_UNICODE_0="#"
54467     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
54468         COND_BUILD_release_UNICODE_0=""
54469     fi
54470
54471     COND_BUILD_release_UNICODE_1="#"
54472     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
54473         COND_BUILD_release_UNICODE_1=""
54474     fi
54475
54476     COND_DEBUG_FLAG_0="#"
54477     if test "x$DEBUG_FLAG" = "x0" ; then
54478         COND_DEBUG_FLAG_0=""
54479     fi
54480
54481     COND_DEBUG_FLAG_1="#"
54482     if test "x$DEBUG_FLAG" = "x1" ; then
54483         COND_DEBUG_FLAG_1=""
54484     fi
54485
54486     COND_DEBUG_INFO_0="#"
54487     if test "x$DEBUG_INFO" = "x0" ; then
54488         COND_DEBUG_INFO_0=""
54489     fi
54490
54491     COND_DEBUG_INFO_1="#"
54492     if test "x$DEBUG_INFO" = "x1" ; then
54493         COND_DEBUG_INFO_1=""
54494     fi
54495
54496     COND_DEPS_TRACKING_0="#"
54497     if test "x$DEPS_TRACKING" = "x0" ; then
54498         COND_DEPS_TRACKING_0=""
54499     fi
54500
54501     COND_DEPS_TRACKING_1="#"
54502     if test "x$DEPS_TRACKING" = "x1" ; then
54503         COND_DEPS_TRACKING_1=""
54504     fi
54505
54506     COND_GCC_PCH_1="#"
54507     if test "x$GCC_PCH" = "x1" ; then
54508         COND_GCC_PCH_1=""
54509     fi
54510
54511     COND_ICC_PCH_1="#"
54512     if test "x$ICC_PCH" = "x1" ; then
54513         COND_ICC_PCH_1=""
54514     fi
54515
54516     COND_MONOLITHIC_0="#"
54517     if test "x$MONOLITHIC" = "x0" ; then
54518         COND_MONOLITHIC_0=""
54519     fi
54520
54521     COND_MONOLITHIC_0_SHARED_0="#"
54522     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
54523         COND_MONOLITHIC_0_SHARED_0=""
54524     fi
54525
54526     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
54527     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
54528         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
54529     fi
54530
54531     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
54532     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
54533         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
54534     fi
54535
54536     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
54537     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
54538         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
54539     fi
54540
54541     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
54542     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54543         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
54544     fi
54545
54546     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
54547     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
54548         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
54549     fi
54550
54551     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1="#"
54552     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
54553         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1=""
54554     fi
54555
54556     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
54557     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
54558         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
54559     fi
54560
54561     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
54562     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
54563         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
54564     fi
54565
54566     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
54567     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
54568         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
54569     fi
54570
54571     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
54572     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
54573         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
54574     fi
54575
54576     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
54577     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
54578         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
54579     fi
54580
54581     COND_MONOLITHIC_0_SHARED_1="#"
54582     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
54583         COND_MONOLITHIC_0_SHARED_1=""
54584     fi
54585
54586     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
54587     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
54588         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
54589     fi
54590
54591     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
54592     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
54593         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
54594     fi
54595
54596     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
54597     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
54598         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
54599     fi
54600
54601     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
54602     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54603         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
54604     fi
54605
54606     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
54607     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
54608         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
54609     fi
54610
54611     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1="#"
54612     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then
54613         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1=""
54614     fi
54615
54616     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
54617     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
54618         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
54619     fi
54620
54621     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
54622     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
54623         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
54624     fi
54625
54626     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
54627     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
54628         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
54629     fi
54630
54631     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
54632     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
54633         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
54634     fi
54635
54636     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
54637     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
54638         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
54639     fi
54640
54641     COND_MONOLITHIC_0_USE_AUI_1="#"
54642     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
54643         COND_MONOLITHIC_0_USE_AUI_1=""
54644     fi
54645
54646     COND_MONOLITHIC_0_USE_GUI_1="#"
54647     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
54648         COND_MONOLITHIC_0_USE_GUI_1=""
54649     fi
54650
54651     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
54652     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
54653         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
54654     fi
54655
54656     COND_MONOLITHIC_0_USE_HTML_1="#"
54657     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
54658         COND_MONOLITHIC_0_USE_HTML_1=""
54659     fi
54660
54661     COND_MONOLITHIC_0_USE_MEDIA_1="#"
54662     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
54663         COND_MONOLITHIC_0_USE_MEDIA_1=""
54664     fi
54665
54666     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
54667     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
54668         COND_MONOLITHIC_0_USE_PROPGRID_1=""
54669     fi
54670
54671     COND_MONOLITHIC_0_USE_QA_1="#"
54672     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
54673         COND_MONOLITHIC_0_USE_QA_1=""
54674     fi
54675
54676     COND_MONOLITHIC_0_USE_RIBBON_1="#"
54677     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
54678         COND_MONOLITHIC_0_USE_RIBBON_1=""
54679     fi
54680
54681     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
54682     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
54683         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
54684     fi
54685
54686     COND_MONOLITHIC_0_USE_STC_1="#"
54687     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
54688         COND_MONOLITHIC_0_USE_STC_1=""
54689     fi
54690
54691     COND_MONOLITHIC_0_USE_WEBVIEW_1="#"
54692     if test "x$MONOLITHIC" = "x0" -a "x$USE_WEBVIEW" = "x1" ; then
54693         COND_MONOLITHIC_0_USE_WEBVIEW_1=""
54694     fi
54695
54696     COND_MONOLITHIC_0_USE_XRC_1="#"
54697     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
54698         COND_MONOLITHIC_0_USE_XRC_1=""
54699     fi
54700
54701     COND_MONOLITHIC_1="#"
54702     if test "x$MONOLITHIC" = "x1" ; then
54703         COND_MONOLITHIC_1=""
54704     fi
54705
54706     COND_MONOLITHIC_1_SHARED_0="#"
54707     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
54708         COND_MONOLITHIC_1_SHARED_0=""
54709     fi
54710
54711     COND_MONOLITHIC_1_SHARED_1="#"
54712     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
54713         COND_MONOLITHIC_1_SHARED_1=""
54714     fi
54715
54716     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
54717     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
54718         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
54719     fi
54720
54721     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
54722     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
54723         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
54724     fi
54725
54726     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
54727     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
54728         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
54729     fi
54730
54731     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
54732     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
54733         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
54734     fi
54735
54736     COND_PLATFORM_MACOSX_1="#"
54737     if test "x$PLATFORM_MACOSX" = "x1" ; then
54738         COND_PLATFORM_MACOSX_1=""
54739     fi
54740
54741     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
54742     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
54743         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
54744     fi
54745
54746     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
54747     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
54748         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
54749     fi
54750
54751     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
54752     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
54753         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
54754     fi
54755
54756     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
54757     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54758         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
54759     fi
54760
54761     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
54762     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
54763         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
54764     fi
54765
54766     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
54767     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54768         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
54769     fi
54770
54771     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
54772     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
54773         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
54774     fi
54775
54776     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
54777     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54778         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
54779     fi
54780
54781     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
54782     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
54783         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
54784     fi
54785
54786     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
54787     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
54788         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
54789     fi
54790
54791     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
54792     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
54793         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
54794     fi
54795
54796     COND_PLATFORM_MACOS_1="#"
54797     if test "x$PLATFORM_MACOS" = "x1" ; then
54798         COND_PLATFORM_MACOS_1=""
54799     fi
54800
54801     COND_PLATFORM_MAC_0="#"
54802     if test "x$PLATFORM_MAC" = "x0" ; then
54803         COND_PLATFORM_MAC_0=""
54804     fi
54805
54806     COND_PLATFORM_MAC_1="#"
54807     if test "x$PLATFORM_MAC" = "x1" ; then
54808         COND_PLATFORM_MAC_1=""
54809     fi
54810
54811     COND_PLATFORM_MSDOS_0="#"
54812     if test "x$PLATFORM_MSDOS" = "x0" ; then
54813         COND_PLATFORM_MSDOS_0=""
54814     fi
54815
54816     COND_PLATFORM_MSDOS_1="#"
54817     if test "x$PLATFORM_MSDOS" = "x1" ; then
54818         COND_PLATFORM_MSDOS_1=""
54819     fi
54820
54821     COND_PLATFORM_OS2_1="#"
54822     if test "x$PLATFORM_OS2" = "x1" ; then
54823         COND_PLATFORM_OS2_1=""
54824     fi
54825
54826     COND_PLATFORM_UNIX_0="#"
54827     if test "x$PLATFORM_UNIX" = "x0" ; then
54828         COND_PLATFORM_UNIX_0=""
54829     fi
54830
54831     COND_PLATFORM_UNIX_1="#"
54832     if test "x$PLATFORM_UNIX" = "x1" ; then
54833         COND_PLATFORM_UNIX_1=""
54834     fi
54835
54836     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
54837     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
54838         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
54839     fi
54840
54841     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
54842     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
54843         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
54844     fi
54845
54846     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
54847     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
54848         COND_PLATFORM_UNIX_1_USE_GUI_1=""
54849     fi
54850
54851     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
54852     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
54853         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
54854     fi
54855
54856     COND_PLATFORM_WIN32_0="#"
54857     if test "x$PLATFORM_WIN32" = "x0" ; then
54858         COND_PLATFORM_WIN32_0=""
54859     fi
54860
54861     COND_PLATFORM_WIN32_1="#"
54862     if test "x$PLATFORM_WIN32" = "x1" ; then
54863         COND_PLATFORM_WIN32_1=""
54864     fi
54865
54866     COND_PLATFORM_WIN32_1_SHARED_0="#"
54867     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
54868         COND_PLATFORM_WIN32_1_SHARED_0=""
54869     fi
54870
54871     COND_SHARED_0="#"
54872     if test "x$SHARED" = "x0" ; then
54873         COND_SHARED_0=""
54874     fi
54875
54876     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
54877     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
54878         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
54879     fi
54880
54881     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
54882     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
54883         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
54884     fi
54885
54886     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
54887     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
54888         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
54889     fi
54890
54891     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
54892     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
54893         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
54894     fi
54895
54896     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
54897     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
54898         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
54899     fi
54900
54901     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
54902     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
54903         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
54904     fi
54905
54906     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
54907     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
54908         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
54909     fi
54910
54911     COND_SHARED_0_USE_STC_1="#"
54912     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
54913         COND_SHARED_0_USE_STC_1=""
54914     fi
54915
54916     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
54917     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
54918         COND_SHARED_0_wxUSE_EXPAT_builtin=""
54919     fi
54920
54921     COND_SHARED_0_wxUSE_REGEX_builtin="#"
54922     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
54923         COND_SHARED_0_wxUSE_REGEX_builtin=""
54924     fi
54925
54926     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
54927     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
54928         COND_SHARED_0_wxUSE_ZLIB_builtin=""
54929     fi
54930
54931     COND_SHARED_1="#"
54932     if test "x$SHARED" = "x1" ; then
54933         COND_SHARED_1=""
54934     fi
54935
54936     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
54937     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
54938         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
54939     fi
54940
54941     COND_TOOLKIT_="#"
54942     if test "x$TOOLKIT" = "x" ; then
54943         COND_TOOLKIT_=""
54944     fi
54945
54946     COND_TOOLKIT_COCOA="#"
54947     if test "x$TOOLKIT" = "xCOCOA" ; then
54948         COND_TOOLKIT_COCOA=""
54949     fi
54950
54951     COND_TOOLKIT_COCOA_USE_GUI_1="#"
54952     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
54953         COND_TOOLKIT_COCOA_USE_GUI_1=""
54954     fi
54955
54956     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
54957     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54958         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
54959     fi
54960
54961     COND_TOOLKIT_DFB="#"
54962     if test "x$TOOLKIT" = "xDFB" ; then
54963         COND_TOOLKIT_DFB=""
54964     fi
54965
54966     COND_TOOLKIT_DFB_USE_GUI_1="#"
54967     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
54968         COND_TOOLKIT_DFB_USE_GUI_1=""
54969     fi
54970
54971     COND_TOOLKIT_GTK="#"
54972     if test "x$TOOLKIT" = "xGTK" ; then
54973         COND_TOOLKIT_GTK=""
54974     fi
54975
54976     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
54977     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
54978         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
54979     fi
54980
54981     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
54982     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
54983         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
54984     fi
54985
54986     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
54987     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
54988         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
54989     fi
54990
54991     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
54992     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
54993         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
54994     fi
54995
54996     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
54997     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
54998         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
54999     fi
55000
55001     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
55002     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55003         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
55004     fi
55005
55006     COND_TOOLKIT_GTK_USE_GUI_1="#"
55007     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
55008         COND_TOOLKIT_GTK_USE_GUI_1=""
55009     fi
55010
55011     COND_TOOLKIT_MAC="#"
55012     if test "x$TOOLKIT" = "xMAC" ; then
55013         COND_TOOLKIT_MAC=""
55014     fi
55015
55016     COND_TOOLKIT_MGL="#"
55017     if test "x$TOOLKIT" = "xMGL" ; then
55018         COND_TOOLKIT_MGL=""
55019     fi
55020
55021     COND_TOOLKIT_MGL_USE_GUI_1="#"
55022     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
55023         COND_TOOLKIT_MGL_USE_GUI_1=""
55024     fi
55025
55026     COND_TOOLKIT_MOTIF="#"
55027     if test "x$TOOLKIT" = "xMOTIF" ; then
55028         COND_TOOLKIT_MOTIF=""
55029     fi
55030
55031     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
55032     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
55033         COND_TOOLKIT_MOTIF_USE_GUI_1=""
55034     fi
55035
55036     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
55037     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55038         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
55039     fi
55040
55041     COND_TOOLKIT_MSW="#"
55042     if test "x$TOOLKIT" = "xMSW" ; then
55043         COND_TOOLKIT_MSW=""
55044     fi
55045
55046     COND_TOOLKIT_MSW_USE_GUI_1="#"
55047     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
55048         COND_TOOLKIT_MSW_USE_GUI_1=""
55049     fi
55050
55051     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
55052     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55053         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
55054     fi
55055
55056     COND_TOOLKIT_MSW_WXUNIV_0="#"
55057     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
55058         COND_TOOLKIT_MSW_WXUNIV_0=""
55059     fi
55060
55061     COND_TOOLKIT_OSX_CARBON="#"
55062     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
55063         COND_TOOLKIT_OSX_CARBON=""
55064     fi
55065
55066     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
55067     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
55068         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
55069     fi
55070
55071     COND_TOOLKIT_OSX_COCOA="#"
55072     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
55073         COND_TOOLKIT_OSX_COCOA=""
55074     fi
55075
55076     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
55077     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
55078         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
55079     fi
55080
55081     COND_TOOLKIT_OSX_IPHONE="#"
55082     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
55083         COND_TOOLKIT_OSX_IPHONE=""
55084     fi
55085
55086     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
55087     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
55088         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
55089     fi
55090
55091     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
55092     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55093         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
55094     fi
55095
55096     COND_TOOLKIT_PM="#"
55097     if test "x$TOOLKIT" = "xPM" ; then
55098         COND_TOOLKIT_PM=""
55099     fi
55100
55101     COND_TOOLKIT_PM_USE_GUI_1="#"
55102     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
55103         COND_TOOLKIT_PM_USE_GUI_1=""
55104     fi
55105
55106     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
55107     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55108         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
55109     fi
55110
55111     COND_TOOLKIT_WINCE="#"
55112     if test "x$TOOLKIT" = "xWINCE" ; then
55113         COND_TOOLKIT_WINCE=""
55114     fi
55115
55116     COND_TOOLKIT_WINCE_USE_GUI_1="#"
55117     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
55118         COND_TOOLKIT_WINCE_USE_GUI_1=""
55119     fi
55120
55121     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
55122     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55123         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
55124     fi
55125
55126     COND_TOOLKIT_WINCE_WXUNIV_0="#"
55127     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
55128         COND_TOOLKIT_WINCE_WXUNIV_0=""
55129     fi
55130
55131     COND_TOOLKIT_X11="#"
55132     if test "x$TOOLKIT" = "xX11" ; then
55133         COND_TOOLKIT_X11=""
55134     fi
55135
55136     COND_TOOLKIT_X11_USE_GUI_1="#"
55137     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
55138         COND_TOOLKIT_X11_USE_GUI_1=""
55139     fi
55140
55141     COND_UNICODE_1="#"
55142     if test "x$UNICODE" = "x1" ; then
55143         COND_UNICODE_1=""
55144     fi
55145
55146     COND_USE_CAIRO_1="#"
55147     if test "x$USE_CAIRO" = "x1" ; then
55148         COND_USE_CAIRO_1=""
55149     fi
55150
55151     COND_USE_EXCEPTIONS_0="#"
55152     if test "x$USE_EXCEPTIONS" = "x0" ; then
55153         COND_USE_EXCEPTIONS_0=""
55154     fi
55155
55156     COND_USE_EXCEPTIONS_1="#"
55157     if test "x$USE_EXCEPTIONS" = "x1" ; then
55158         COND_USE_EXCEPTIONS_1=""
55159     fi
55160
55161     COND_USE_GUI_0="#"
55162     if test "x$USE_GUI" = "x0" ; then
55163         COND_USE_GUI_0=""
55164     fi
55165
55166     COND_USE_GUI_1="#"
55167     if test "x$USE_GUI" = "x1" ; then
55168         COND_USE_GUI_1=""
55169     fi
55170
55171     COND_USE_GUI_1_USE_OPENGL_1="#"
55172     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
55173         COND_USE_GUI_1_USE_OPENGL_1=""
55174     fi
55175
55176     COND_USE_GUI_1_WXUNIV_0="#"
55177     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
55178         COND_USE_GUI_1_WXUNIV_0=""
55179     fi
55180
55181     COND_USE_GUI_1_WXUNIV_1="#"
55182     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
55183         COND_USE_GUI_1_WXUNIV_1=""
55184     fi
55185
55186     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
55187     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55188         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
55189     fi
55190
55191     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
55192     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55193         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
55194     fi
55195
55196     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
55197     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55198         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
55199     fi
55200
55201     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
55202     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55203         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
55204     fi
55205
55206     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
55207     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55208         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
55209     fi
55210
55211     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
55212     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55213         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
55214     fi
55215
55216     COND_USE_OPENGL_1="#"
55217     if test "x$USE_OPENGL" = "x1" ; then
55218         COND_USE_OPENGL_1=""
55219     fi
55220
55221     COND_USE_PCH_1="#"
55222     if test "x$USE_PCH" = "x1" ; then
55223         COND_USE_PCH_1=""
55224     fi
55225
55226     COND_USE_PLUGINS_0="#"
55227     if test "x$USE_PLUGINS" = "x0" ; then
55228         COND_USE_PLUGINS_0=""
55229     fi
55230
55231     COND_USE_RTTI_0="#"
55232     if test "x$USE_RTTI" = "x0" ; then
55233         COND_USE_RTTI_0=""
55234     fi
55235
55236     COND_USE_RTTI_1="#"
55237     if test "x$USE_RTTI" = "x1" ; then
55238         COND_USE_RTTI_1=""
55239     fi
55240
55241     COND_USE_SOTWOSYMLINKS_1="#"
55242     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
55243         COND_USE_SOTWOSYMLINKS_1=""
55244     fi
55245
55246     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
55247     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
55248         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
55249     fi
55250
55251     COND_USE_SOVERLINUX_1="#"
55252     if test "x$USE_SOVERLINUX" = "x1" ; then
55253         COND_USE_SOVERLINUX_1=""
55254     fi
55255
55256     COND_USE_SOVERSION_0="#"
55257     if test "x$USE_SOVERSION" = "x0" ; then
55258         COND_USE_SOVERSION_0=""
55259     fi
55260
55261     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
55262     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
55263         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
55264     fi
55265
55266     COND_USE_SOVERSOLARIS_1="#"
55267     if test "x$USE_SOVERSOLARIS" = "x1" ; then
55268         COND_USE_SOVERSOLARIS_1=""
55269     fi
55270
55271     COND_USE_STC_1="#"
55272     if test "x$USE_STC" = "x1" ; then
55273         COND_USE_STC_1=""
55274     fi
55275
55276     COND_USE_THREADS_0="#"
55277     if test "x$USE_THREADS" = "x0" ; then
55278         COND_USE_THREADS_0=""
55279     fi
55280
55281     COND_USE_THREADS_1="#"
55282     if test "x$USE_THREADS" = "x1" ; then
55283         COND_USE_THREADS_1=""
55284     fi
55285
55286     COND_USE_XRC_1="#"
55287     if test "x$USE_XRC" = "x1" ; then
55288         COND_USE_XRC_1=""
55289     fi
55290
55291     COND_WINDOWS_IMPLIB_1="#"
55292     if test "x$WINDOWS_IMPLIB" = "x1" ; then
55293         COND_WINDOWS_IMPLIB_1=""
55294     fi
55295
55296     COND_WITH_PLUGIN_SDL_1="#"
55297     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
55298         COND_WITH_PLUGIN_SDL_1=""
55299     fi
55300
55301     COND_WXUNIV_0="#"
55302     if test "x$WXUNIV" = "x0" ; then
55303         COND_WXUNIV_0=""
55304     fi
55305
55306     COND_WXUNIV_1="#"
55307     if test "x$WXUNIV" = "x1" ; then
55308         COND_WXUNIV_1=""
55309     fi
55310
55311     COND_WXUSE_EXPAT_BUILTIN="#"
55312     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
55313         COND_WXUSE_EXPAT_BUILTIN=""
55314     fi
55315
55316     COND_WXUSE_LIBJPEG_BUILTIN="#"
55317     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55318         COND_WXUSE_LIBJPEG_BUILTIN=""
55319     fi
55320
55321     COND_WXUSE_LIBPNG_BUILTIN="#"
55322     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55323         COND_WXUSE_LIBPNG_BUILTIN=""
55324     fi
55325
55326     COND_WXUSE_LIBTIFF_BUILTIN="#"
55327     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55328         COND_WXUSE_LIBTIFF_BUILTIN=""
55329     fi
55330
55331     COND_WXUSE_REGEX_BUILTIN="#"
55332     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
55333         COND_WXUSE_REGEX_BUILTIN=""
55334     fi
55335
55336     COND_WXUSE_ZLIB_BUILTIN="#"
55337     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
55338         COND_WXUSE_ZLIB_BUILTIN=""
55339     fi
55340
55341     COND_wxUSE_EXPAT_builtin="#"
55342     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
55343         COND_wxUSE_EXPAT_builtin=""
55344     fi
55345
55346     COND_wxUSE_LIBJPEG_builtin="#"
55347     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
55348         COND_wxUSE_LIBJPEG_builtin=""
55349     fi
55350
55351     COND_wxUSE_LIBPNG_builtin="#"
55352     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
55353         COND_wxUSE_LIBPNG_builtin=""
55354     fi
55355
55356     COND_wxUSE_LIBTIFF_builtin="#"
55357     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
55358         COND_wxUSE_LIBTIFF_builtin=""
55359     fi
55360
55361     COND_wxUSE_REGEX_builtin="#"
55362     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
55363         COND_wxUSE_REGEX_builtin=""
55364     fi
55365
55366     COND_wxUSE_ZLIB_builtin="#"
55367     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
55368         COND_wxUSE_ZLIB_builtin=""
55369     fi
55370
55371
55372
55373     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
55374         { { 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
55375 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;}
55376    { (exit 1); exit 1; }; }
55377     fi
55378
55379     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
55380         { { 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
55381 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;}
55382    { (exit 1); exit 1; }; }
55383     fi
55384
55385
55386 case ${INSTALL} in
55387   /* ) # Absolute
55388      ;;
55389   ?:* ) # Drive letter, considered as absolute.
55390      ;;
55391   *)
55392      INSTALL=`pwd`/${INSTALL} ;;
55393 esac
55394
55395 if test "$wxUSE_GUI" = "yes"; then
55396
55397 if test "$wxUSE_MSW" = 1 ; then
55398     if test "x$WINDRES" = "x"; then
55399         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
55400 echo "$as_me: error: Required windres program not found" >&2;}
55401    { (exit 1); exit 1; }; }
55402     fi
55403
55404     RESCOMP="$WINDRES"
55405 fi
55406
55407 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
55408             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
55409     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
55410
55411         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
55412
55413     # Extract the first word of "DeRez", so it can be a program name with args.
55414 set dummy DeRez; ac_word=$2
55415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55417 if test "${ac_cv_prog_DEREZ+set}" = set; then
55418   echo $ECHO_N "(cached) $ECHO_C" >&6
55419 else
55420   if test -n "$DEREZ"; then
55421   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
55422 else
55423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55424 for as_dir in $PATH
55425 do
55426   IFS=$as_save_IFS
55427   test -z "$as_dir" && as_dir=.
55428   for ac_exec_ext in '' $ac_executable_extensions; do
55429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55430     ac_cv_prog_DEREZ="DeRez"
55431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55432     break 2
55433   fi
55434 done
55435 done
55436 IFS=$as_save_IFS
55437
55438   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
55439 fi
55440 fi
55441 DEREZ=$ac_cv_prog_DEREZ
55442 if test -n "$DEREZ"; then
55443   { echo "$as_me:$LINENO: result: $DEREZ" >&5
55444 echo "${ECHO_T}$DEREZ" >&6; }
55445 else
55446   { echo "$as_me:$LINENO: result: no" >&5
55447 echo "${ECHO_T}no" >&6; }
55448 fi
55449
55450
55451
55452     MACSETFILE="\$(SETFILE)"
55453
55454             if test "$wxUSE_OSX_CARBON" = 1; then
55455         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
55456         RESCOMP="$REZ"
55457         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
55458     else
55459         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
55460         RESCOMP="cat /dev/null \| $REZ"
55461         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
55462     fi
55463
55464 else
55465         MACSETFILE="@true"
55466
55467     if test "$wxUSE_PM" = 1; then
55468         RESCOMP="emxbind"
55469         WXCONFIG_RESFLAGS="-ep"
55470
55471                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
55472     else
55473         POSTLINK_COMMAND="@true"
55474     fi
55475 fi
55476
55477 fi
55478
55479
55480 if test $GCC_PCH = 1
55481 then
55482     if test "$wx_cv_gcc_pch_bug" = yes; then
55483         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
55484 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
55485         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
55486 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
55487         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
55488 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
55489     fi
55490
55491     # Our WX_PRECOMP flag does not make sense for any language except C++ because
55492     # the headers that benefit from precompilation are mostly C++ headers.
55493     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
55494     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
55495     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
55496 fi
55497
55498
55499 if test "$wxUSE_MAC" = 1 ; then
55500     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
55501         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
55502         mv temp bk-deps
55503         chmod +x bk-deps
55504     fi
55505 fi
55506
55507 if test "$wxUSE_SHARED" = "yes"; then
55508                 case "${host}" in
55509       *-pc-os2_emx | *-pc-os2-emx )
55510         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55511         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55512         cp -p ${srcdir}/src/os2/dllnames.sh .
55513         cp -p ${srcdir}/src/os2/dllar.sh .
55514       ;;
55515     esac
55516 fi
55517 if test "$wxUSE_OMF" = "yes"; then
55518     case "${host}" in
55519       *-pc-os2_emx | *-pc-os2-emx )
55520         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
55521         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
55522         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
55523       ;;
55524     esac
55525 fi
55526
55527 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
55528
55529
55530 case "${host}" in
55531     *-*-solaris2* )
55532                         if test "$GCC" = yes; then
55533             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//g'`
55534             LIBS=`echo $LIBS | sed 's/-mt//g'`
55535             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//g'`
55536         fi
55537         ;;
55538
55539     *-*-linux* )
55540                         if test "x$SUNCXX" = xyes; then
55541             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//g'`
55542             LIBS=`echo $LIBS | sed 's/-pthread//g'`
55543             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//g'`
55544         fi
55545         ;;
55546 esac
55547
55548 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
55549 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
55550 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
55551 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
55552
55553 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
55554
55555
55556
55557
55558
55559
55560
55561
55562
55563
55564
55565
55566
55567
55568
55569
55570
55571
55572
55573
55574
55575
55576
55577
55578
55579
55580
55581
55582
55583
55584
55585
55586
55587
55588
55589
55590
55591
55592
55593
55594
55595
55596
55597
55598
55599
55600
55601
55602
55603
55604
55605
55606
55607
55608
55609
55610
55611
55612
55613
55614 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
55615 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
55616 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
55617 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
55618   echo $ECHO_N "(cached) $ECHO_C" >&6
55619 else
55620   cat >conftest.make <<\_ACEOF
55621 SHELL = /bin/sh
55622 all:
55623         @echo '@@@%%%=$(MAKE)=@@@%%%'
55624 _ACEOF
55625 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
55626 case `${MAKE-make} -f conftest.make 2>/dev/null` in
55627   *@@@%%%=?*=@@@%%%*)
55628     eval ac_cv_prog_make_${ac_make}_set=yes;;
55629   *)
55630     eval ac_cv_prog_make_${ac_make}_set=no;;
55631 esac
55632 rm -f conftest.make
55633 fi
55634 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
55635   { echo "$as_me:$LINENO: result: yes" >&5
55636 echo "${ECHO_T}yes" >&6; }
55637   SET_MAKE=
55638 else
55639   { echo "$as_me:$LINENO: result: no" >&5
55640 echo "${ECHO_T}no" >&6; }
55641   SET_MAKE="MAKE=${MAKE-make}"
55642 fi
55643
55644
55645
55646 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
55647
55648
55649 if test "$USE_WIN32" = 1; then
55650     ac_config_commands="$ac_config_commands rcdefs.h"
55651
55652 fi
55653
55654 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
55655
55656
55657 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
55658
55659
55660 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
55661
55662
55663 if test "$wx_cv_version_script" = "yes"; then
55664     ac_config_files="$ac_config_files version-script"
55665
55666 fi
55667 ac_config_files="$ac_config_files Makefile"
55668
55669
55670 ac_config_commands="$ac_config_commands wx-config"
55671
55672
55673
55674 if test "$wxWITH_SUBDIRS" != "no"; then
55675 if test "$wxUSE_GUI" = "yes"; then
55676     SUBDIRS="samples demos utils"
55677 else
55678             SUBDIRS="samples utils"
55679 fi
55680
55681
55682
55683 # Check whether --with-cppunit-prefix was given.
55684 if test "${with_cppunit_prefix+set}" = set; then
55685   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
55686 else
55687   cppunit_config_prefix=""
55688 fi
55689
55690
55691 # Check whether --with-cppunit-exec-prefix was given.
55692 if test "${with_cppunit_exec_prefix+set}" = set; then
55693   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
55694 else
55695   cppunit_config_exec_prefix=""
55696 fi
55697
55698
55699   if test x$cppunit_config_exec_prefix != x ; then
55700      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
55701      if test x${CPPUNIT_CONFIG+set} != xset ; then
55702         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
55703      fi
55704   fi
55705   if test x$cppunit_config_prefix != x ; then
55706      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
55707      if test x${CPPUNIT_CONFIG+set} != xset ; then
55708         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
55709      fi
55710   fi
55711
55712   # Extract the first word of "cppunit-config", so it can be a program name with args.
55713 set dummy cppunit-config; ac_word=$2
55714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55716 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
55717   echo $ECHO_N "(cached) $ECHO_C" >&6
55718 else
55719   case $CPPUNIT_CONFIG in
55720   [\\/]* | ?:[\\/]*)
55721   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
55722   ;;
55723   *)
55724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55725 for as_dir in $PATH
55726 do
55727   IFS=$as_save_IFS
55728   test -z "$as_dir" && as_dir=.
55729   for ac_exec_ext in '' $ac_executable_extensions; do
55730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55731     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
55732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55733     break 2
55734   fi
55735 done
55736 done
55737 IFS=$as_save_IFS
55738
55739   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
55740   ;;
55741 esac
55742 fi
55743 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
55744 if test -n "$CPPUNIT_CONFIG"; then
55745   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
55746 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
55747 else
55748   { echo "$as_me:$LINENO: result: no" >&5
55749 echo "${ECHO_T}no" >&6; }
55750 fi
55751
55752
55753   cppunit_version_min=1.8.0
55754
55755   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
55756 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
55757   no_cppunit=""
55758   if test "$CPPUNIT_CONFIG" = "no" ; then
55759     { echo "$as_me:$LINENO: result: no" >&5
55760 echo "${ECHO_T}no" >&6; }
55761     no_cppunit=yes
55762   else
55763     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
55764     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
55765     cppunit_version=`$CPPUNIT_CONFIG --version`
55766
55767     cppunit_major_version=`echo $cppunit_version | \
55768            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
55769     cppunit_minor_version=`echo $cppunit_version | \
55770            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
55771     cppunit_micro_version=`echo $cppunit_version | \
55772            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
55773
55774     cppunit_major_min=`echo $cppunit_version_min | \
55775            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
55776     cppunit_minor_min=`echo $cppunit_version_min | \
55777            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
55778     cppunit_micro_min=`echo $cppunit_version_min | \
55779            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
55780
55781     cppunit_version_proper=`expr \
55782         $cppunit_major_version \> $cppunit_major_min \| \
55783         $cppunit_major_version \= $cppunit_major_min \& \
55784         $cppunit_minor_version \> $cppunit_minor_min \| \
55785         $cppunit_major_version \= $cppunit_major_min \& \
55786         $cppunit_minor_version \= $cppunit_minor_min \& \
55787         $cppunit_micro_version \>= $cppunit_micro_min `
55788
55789     if test "$cppunit_version_proper" = "1" ; then
55790       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
55791 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
55792     else
55793       { echo "$as_me:$LINENO: result: no" >&5
55794 echo "${ECHO_T}no" >&6; }
55795       no_cppunit=yes
55796     fi
55797   fi
55798
55799   if test "x$no_cppunit" = x ; then
55800      SUBDIRS="$SUBDIRS tests"
55801   else
55802      CPPUNIT_CFLAGS=""
55803      CPPUNIT_LIBS=""
55804      :
55805   fi
55806
55807
55808
55809
55810
55811 for subdir in $SUBDIRS; do
55812     if test -d ${srcdir}/${subdir} ; then
55813         if test "$wxUSE_GUI" = "yes"; then
55814             if test ${subdir} = "samples"; then
55815                                                 makefiles="samples/Makefile.in $makefiles"
55816                 for sample in $SAMPLES_SUBDIRS; do
55817                     if test -d $srcdir/samples/$sample; then
55818                         makefiles="samples/$sample/Makefile.in $makefiles"
55819                     fi
55820                 done
55821             else
55822                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
55823                 eval "disabled=\$$disabled_var"
55824                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
55825                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
55826             fi
55827         else
55828                                     if test ${subdir} = "samples"; then
55829                                                 makefiles="samples/Makefile.in $makefiles"
55830                 for sample in `echo $SAMPLES_SUBDIRS`; do
55831                     if test -d $srcdir/samples/$sample; then
55832                         makefiles="samples/$sample/Makefile.in $makefiles"
55833                     fi
55834                 done
55835             elif test ${subdir} = "utils"; then
55836                 makefiles=""
55837                 for util in ifacecheck ; do
55838                     if test -d $srcdir/utils/$util ; then
55839                         makefiles="utils/$util/src/Makefile.in \
55840                                    $makefiles"
55841                     fi
55842                 done
55843             else
55844                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
55845             fi
55846         fi
55847
55848         for mkin in $makefiles ; do
55849             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
55850             ac_config_files="$ac_config_files $mk"
55851
55852         done
55853     fi
55854 done
55855 fi
55856 cat >confcache <<\_ACEOF
55857 # This file is a shell script that caches the results of configure
55858 # tests run on this system so they can be shared between configure
55859 # scripts and configure runs, see configure's option --config-cache.
55860 # It is not useful on other systems.  If it contains results you don't
55861 # want to keep, you may remove or edit it.
55862 #
55863 # config.status only pays attention to the cache file if you give it
55864 # the --recheck option to rerun configure.
55865 #
55866 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55868 # following values.
55869
55870 _ACEOF
55871
55872 # The following way of writing the cache mishandles newlines in values,
55873 # but we know of no workaround that is simple, portable, and efficient.
55874 # So, we kill variables containing newlines.
55875 # Ultrix sh set writes to stderr and can't be redirected directly,
55876 # and sets the high bit in the cache file unless we assign to the vars.
55877 (
55878   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
55879     eval ac_val=\$$ac_var
55880     case $ac_val in #(
55881     *${as_nl}*)
55882       case $ac_var in #(
55883       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
55884 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
55885       esac
55886       case $ac_var in #(
55887       _ | IFS | as_nl) ;; #(
55888       *) $as_unset $ac_var ;;
55889       esac ;;
55890     esac
55891   done
55892
55893   (set) 2>&1 |
55894     case $as_nl`(ac_space=' '; set) 2>&1` in #(
55895     *${as_nl}ac_space=\ *)
55896       # `set' does not quote correctly, so add quotes (double-quote
55897       # substitution turns \\\\ into \\, and sed turns \\ into \).
55898       sed -n \
55899         "s/'/'\\\\''/g;
55900           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55901       ;; #(
55902     *)
55903       # `set' quotes correctly as required by POSIX, so do not add quotes.
55904       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
55905       ;;
55906     esac |
55907     sort
55908 ) |
55909   sed '
55910      /^ac_cv_env_/b end
55911      t clear
55912      :clear
55913      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55914      t end
55915      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55916      :end' >>confcache
55917 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
55918   if test -w "$cache_file"; then
55919     test "x$cache_file" != "x/dev/null" &&
55920       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
55921 echo "$as_me: updating cache $cache_file" >&6;}
55922     cat confcache >$cache_file
55923   else
55924     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
55925 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
55926   fi
55927 fi
55928 rm -f confcache
55929
55930 test "x$prefix" = xNONE && prefix=$ac_default_prefix
55931 # Let make expand exec_prefix.
55932 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55933
55934 DEFS=-DHAVE_CONFIG_H
55935
55936 ac_libobjs=
55937 ac_ltlibobjs=
55938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55939   # 1. Remove the extension, and $U if already installed.
55940   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
55941   ac_i=`echo "$ac_i" | sed "$ac_script"`
55942   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
55943   #    will be set to the directory where LIBOBJS objects are built.
55944   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
55945   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
55946 done
55947 LIBOBJS=$ac_libobjs
55948
55949 LTLIBOBJS=$ac_ltlibobjs
55950
55951
55952
55953 : ${CONFIG_STATUS=./config.status}
55954 ac_clean_files_save=$ac_clean_files
55955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
55956 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
55957 echo "$as_me: creating $CONFIG_STATUS" >&6;}
55958 cat >$CONFIG_STATUS <<_ACEOF
55959 #! $SHELL
55960 # Generated by $as_me.
55961 # Run this file to recreate the current configuration.
55962 # Compiler output produced by configure, useful for debugging
55963 # configure, is in config.log if it exists.
55964
55965 debug=false
55966 ac_cs_recheck=false
55967 ac_cs_silent=false
55968 SHELL=\${CONFIG_SHELL-$SHELL}
55969 _ACEOF
55970
55971 cat >>$CONFIG_STATUS <<\_ACEOF
55972 ## --------------------- ##
55973 ## M4sh Initialization.  ##
55974 ## --------------------- ##
55975
55976 # Be more Bourne compatible
55977 DUALCASE=1; export DUALCASE # for MKS sh
55978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
55979   emulate sh
55980   NULLCMD=:
55981   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
55982   # is contrary to our usage.  Disable this feature.
55983   alias -g '${1+"$@"}'='"$@"'
55984   setopt NO_GLOB_SUBST
55985 else
55986   case `(set -o) 2>/dev/null` in
55987   *posix*) set -o posix ;;
55988 esac
55989
55990 fi
55991
55992
55993
55994
55995 # PATH needs CR
55996 # Avoid depending upon Character Ranges.
55997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
55998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
55999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
56000 as_cr_digits='0123456789'
56001 as_cr_alnum=$as_cr_Letters$as_cr_digits
56002
56003 # The user is always right.
56004 if test "${PATH_SEPARATOR+set}" != set; then
56005   echo "#! /bin/sh" >conf$$.sh
56006   echo  "exit 0"   >>conf$$.sh
56007   chmod +x conf$$.sh
56008   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56009     PATH_SEPARATOR=';'
56010   else
56011     PATH_SEPARATOR=:
56012   fi
56013   rm -f conf$$.sh
56014 fi
56015
56016 # Support unset when possible.
56017 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56018   as_unset=unset
56019 else
56020   as_unset=false
56021 fi
56022
56023
56024 # IFS
56025 # We need space, tab and new line, in precisely that order.  Quoting is
56026 # there to prevent editors from complaining about space-tab.
56027 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
56028 # splitting by setting IFS to empty value.)
56029 as_nl='
56030 '
56031 IFS=" ""        $as_nl"
56032
56033 # Find who we are.  Look in the path if we contain no directory separator.
56034 case $0 in
56035   *[\\/]* ) as_myself=$0 ;;
56036   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56037 for as_dir in $PATH
56038 do
56039   IFS=$as_save_IFS
56040   test -z "$as_dir" && as_dir=.
56041   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56042 done
56043 IFS=$as_save_IFS
56044
56045      ;;
56046 esac
56047 # We did not find ourselves, most probably we were run as `sh COMMAND'
56048 # in which case we are not to be found in the path.
56049 if test "x$as_myself" = x; then
56050   as_myself=$0
56051 fi
56052 if test ! -f "$as_myself"; then
56053   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
56054   { (exit 1); exit 1; }
56055 fi
56056
56057 # Work around bugs in pre-3.0 UWIN ksh.
56058 for as_var in ENV MAIL MAILPATH
56059 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56060 done
56061 PS1='$ '
56062 PS2='> '
56063 PS4='+ '
56064
56065 # NLS nuisances.
56066 for as_var in \
56067   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
56068   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
56069   LC_TELEPHONE LC_TIME
56070 do
56071   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
56072     eval $as_var=C; export $as_var
56073   else
56074     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56075   fi
56076 done
56077
56078 # Required to use basename.
56079 if expr a : '\(a\)' >/dev/null 2>&1 &&
56080    test "X`expr 00001 : '.*\(...\)'`" = X001; then
56081   as_expr=expr
56082 else
56083   as_expr=false
56084 fi
56085
56086 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
56087   as_basename=basename
56088 else
56089   as_basename=false
56090 fi
56091
56092
56093 # Name of the executable.
56094 as_me=`$as_basename -- "$0" ||
56095 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
56096          X"$0" : 'X\(//\)$' \| \
56097          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56098 echo X/"$0" |
56099     sed '/^.*\/\([^/][^/]*\)\/*$/{
56100             s//\1/
56101             q
56102           }
56103           /^X\/\(\/\/\)$/{
56104             s//\1/
56105             q
56106           }
56107           /^X\/\(\/\).*/{
56108             s//\1/
56109             q
56110           }
56111           s/.*/./; q'`
56112
56113 # CDPATH.
56114 $as_unset CDPATH
56115
56116
56117
56118   as_lineno_1=$LINENO
56119   as_lineno_2=$LINENO
56120   test "x$as_lineno_1" != "x$as_lineno_2" &&
56121   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
56122
56123   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56124   # uniformly replaced by the line number.  The first 'sed' inserts a
56125   # line-number line after each line using $LINENO; the second 'sed'
56126   # does the real work.  The second script uses 'N' to pair each
56127   # line-number line with the line containing $LINENO, and appends
56128   # trailing '-' during substitution so that $LINENO is not a special
56129   # case at line end.
56130   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56131   # scripts with optimization help from Paolo Bonzini.  Blame Lee
56132   # E. McMahon (1931-1989) for sed's syntax.  :-)
56133   sed -n '
56134     p
56135     /[$]LINENO/=
56136   ' <$as_myself |
56137     sed '
56138       s/[$]LINENO.*/&-/
56139       t lineno
56140       b
56141       :lineno
56142       N
56143       :loop
56144       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
56145       t loop
56146       s/-\n.*//
56147     ' >$as_me.lineno &&
56148   chmod +x "$as_me.lineno" ||
56149     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
56150    { (exit 1); exit 1; }; }
56151
56152   # Don't try to exec as it changes $[0], causing all sort of problems
56153   # (the dirname of $[0] is not the place where we might find the
56154   # original and so on.  Autoconf is especially sensitive to this).
56155   . "./$as_me.lineno"
56156   # Exit status is that of the last command.
56157   exit
56158 }
56159
56160
56161 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56162   as_dirname=dirname
56163 else
56164   as_dirname=false
56165 fi
56166
56167 ECHO_C= ECHO_N= ECHO_T=
56168 case `echo -n x` in
56169 -n*)
56170   case `echo 'x\c'` in
56171   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
56172   *)   ECHO_C='\c';;
56173   esac;;
56174 *)
56175   ECHO_N='-n';;
56176 esac
56177
56178 if expr a : '\(a\)' >/dev/null 2>&1 &&
56179    test "X`expr 00001 : '.*\(...\)'`" = X001; then
56180   as_expr=expr
56181 else
56182   as_expr=false
56183 fi
56184
56185 rm -f conf$$ conf$$.exe conf$$.file
56186 if test -d conf$$.dir; then
56187   rm -f conf$$.dir/conf$$.file
56188 else
56189   rm -f conf$$.dir
56190   mkdir conf$$.dir
56191 fi
56192 echo >conf$$.file
56193 if ln -s conf$$.file conf$$ 2>/dev/null; then
56194   as_ln_s='ln -s'
56195   # ... but there are two gotchas:
56196   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56197   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56198   # In both cases, we have to default to `cp -p'.
56199   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56200     as_ln_s='cp -p'
56201 elif ln conf$$.file conf$$ 2>/dev/null; then
56202   as_ln_s=ln
56203 else
56204   as_ln_s='cp -p'
56205 fi
56206 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56207 rmdir conf$$.dir 2>/dev/null
56208
56209 if mkdir -p . 2>/dev/null; then
56210   as_mkdir_p=:
56211 else
56212   test -d ./-p && rmdir ./-p
56213   as_mkdir_p=false
56214 fi
56215
56216 if test -x / >/dev/null 2>&1; then
56217   as_test_x='test -x'
56218 else
56219   if ls -dL / >/dev/null 2>&1; then
56220     as_ls_L_option=L
56221   else
56222     as_ls_L_option=
56223   fi
56224   as_test_x='
56225     eval sh -c '\''
56226       if test -d "$1"; then
56227         test -d "$1/.";
56228       else
56229         case $1 in
56230         -*)set "./$1";;
56231         esac;
56232         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
56233         ???[sx]*):;;*)false;;esac;fi
56234     '\'' sh
56235   '
56236 fi
56237 as_executable_p=$as_test_x
56238
56239 # Sed expression to map a string onto a valid CPP name.
56240 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56241
56242 # Sed expression to map a string onto a valid variable name.
56243 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56244
56245
56246 exec 6>&1
56247
56248 # Save the log message, to keep $[0] and so on meaningful, and to
56249 # report actual input values of CONFIG_FILES etc. instead of their
56250 # values after options handling.
56251 ac_log="
56252 This file was extended by wxWidgets $as_me 2.9.3, which was
56253 generated by GNU Autoconf 2.61.  Invocation command line was
56254
56255   CONFIG_FILES    = $CONFIG_FILES
56256   CONFIG_HEADERS  = $CONFIG_HEADERS
56257   CONFIG_LINKS    = $CONFIG_LINKS
56258   CONFIG_COMMANDS = $CONFIG_COMMANDS
56259   $ $0 $@
56260
56261 on `(hostname || uname -n) 2>/dev/null | sed 1q`
56262 "
56263
56264 _ACEOF
56265
56266 cat >>$CONFIG_STATUS <<_ACEOF
56267 # Files that config.status was made for.
56268 config_files="$ac_config_files"
56269 config_headers="$ac_config_headers"
56270 config_commands="$ac_config_commands"
56271
56272 _ACEOF
56273
56274 cat >>$CONFIG_STATUS <<\_ACEOF
56275 ac_cs_usage="\
56276 \`$as_me' instantiates files from templates according to the
56277 current configuration.
56278
56279 Usage: $0 [OPTIONS] [FILE]...
56280
56281   -h, --help       print this help, then exit
56282   -V, --version    print version number and configuration settings, then exit
56283   -q, --quiet      do not print progress messages
56284   -d, --debug      don't remove temporary files
56285       --recheck    update $as_me by reconfiguring in the same conditions
56286   --file=FILE[:TEMPLATE]
56287                    instantiate the configuration file FILE
56288   --header=FILE[:TEMPLATE]
56289                    instantiate the configuration header FILE
56290
56291 Configuration files:
56292 $config_files
56293
56294 Configuration headers:
56295 $config_headers
56296
56297 Configuration commands:
56298 $config_commands
56299
56300 Report bugs to <bug-autoconf@gnu.org>."
56301
56302 _ACEOF
56303 cat >>$CONFIG_STATUS <<_ACEOF
56304 ac_cs_version="\\
56305 wxWidgets config.status 2.9.3
56306 configured by $0, generated by GNU Autoconf 2.61,
56307   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
56308
56309 Copyright (C) 2006 Free Software Foundation, Inc.
56310 This config.status script is free software; the Free Software Foundation
56311 gives unlimited permission to copy, distribute and modify it."
56312
56313 ac_pwd='$ac_pwd'
56314 srcdir='$srcdir'
56315 INSTALL='$INSTALL'
56316 _ACEOF
56317
56318 cat >>$CONFIG_STATUS <<\_ACEOF
56319 # If no file are specified by the user, then we need to provide default
56320 # value.  By we need to know if files were specified by the user.
56321 ac_need_defaults=:
56322 while test $# != 0
56323 do
56324   case $1 in
56325   --*=*)
56326     ac_option=`expr "X$1" : 'X\([^=]*\)='`
56327     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
56328     ac_shift=:
56329     ;;
56330   *)
56331     ac_option=$1
56332     ac_optarg=$2
56333     ac_shift=shift
56334     ;;
56335   esac
56336
56337   case $ac_option in
56338   # Handling of the options.
56339   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
56340     ac_cs_recheck=: ;;
56341   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
56342     echo "$ac_cs_version"; exit ;;
56343   --debug | --debu | --deb | --de | --d | -d )
56344     debug=: ;;
56345   --file | --fil | --fi | --f )
56346     $ac_shift
56347     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
56348     ac_need_defaults=false;;
56349   --header | --heade | --head | --hea )
56350     $ac_shift
56351     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
56352     ac_need_defaults=false;;
56353   --he | --h)
56354     # Conflict between --help and --header
56355     { echo "$as_me: error: ambiguous option: $1
56356 Try \`$0 --help' for more information." >&2
56357    { (exit 1); exit 1; }; };;
56358   --help | --hel | -h )
56359     echo "$ac_cs_usage"; exit ;;
56360   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56361   | -silent | --silent | --silen | --sile | --sil | --si | --s)
56362     ac_cs_silent=: ;;
56363
56364   # This is an error.
56365   -*) { echo "$as_me: error: unrecognized option: $1
56366 Try \`$0 --help' for more information." >&2
56367    { (exit 1); exit 1; }; } ;;
56368
56369   *) ac_config_targets="$ac_config_targets $1"
56370      ac_need_defaults=false ;;
56371
56372   esac
56373   shift
56374 done
56375
56376 ac_configure_extra_args=
56377
56378 if $ac_cs_silent; then
56379   exec 6>/dev/null
56380   ac_configure_extra_args="$ac_configure_extra_args --silent"
56381 fi
56382
56383 _ACEOF
56384 cat >>$CONFIG_STATUS <<_ACEOF
56385 if \$ac_cs_recheck; then
56386   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
56387   CONFIG_SHELL=$SHELL
56388   export CONFIG_SHELL
56389   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
56390 fi
56391
56392 _ACEOF
56393 cat >>$CONFIG_STATUS <<\_ACEOF
56394 exec 5>>config.log
56395 {
56396   echo
56397   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
56398 ## Running $as_me. ##
56399 _ASBOX
56400   echo "$ac_log"
56401 } >&5
56402
56403 _ACEOF
56404 cat >>$CONFIG_STATUS <<_ACEOF
56405 #
56406 # INIT-COMMANDS
56407 #
56408
56409             CPP="$CPP"
56410             infile="$srcdir/include/wx/msw/genrcdefs.h"
56411             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
56412
56413
56414  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56415  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56416  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
56417                      LN_S="${LN_S}"
56418
56419
56420 _ACEOF
56421
56422 cat >>$CONFIG_STATUS <<\_ACEOF
56423
56424 # Handling of arguments.
56425 for ac_config_target in $ac_config_targets
56426 do
56427   case $ac_config_target in
56428     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
56429     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
56430     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
56431     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
56432     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
56433     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
56434     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56435     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
56436     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
56437
56438   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
56439 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
56440    { (exit 1); exit 1; }; };;
56441   esac
56442 done
56443
56444
56445 # If the user did not use the arguments to specify the items to instantiate,
56446 # then the envvar interface is used.  Set only those that are not.
56447 # We use the long form for the default assignment because of an extremely
56448 # bizarre bug on SunOS 4.1.3.
56449 if $ac_need_defaults; then
56450   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56451   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56452   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
56453 fi
56454
56455 # Have a temporary directory for convenience.  Make it in the build tree
56456 # simply because there is no reason against having it here, and in addition,
56457 # creating and moving files from /tmp can sometimes cause problems.
56458 # Hook for its removal unless debugging.
56459 # Note that there is a small window in which the directory will not be cleaned:
56460 # after its creation but before its name has been assigned to `$tmp'.
56461 $debug ||
56462 {
56463   tmp=
56464   trap 'exit_status=$?
56465   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
56466 ' 0
56467   trap '{ (exit 1); exit 1; }' 1 2 13 15
56468 }
56469 # Create a (secure) tmp directory for tmp files.
56470
56471 {
56472   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
56473   test -n "$tmp" && test -d "$tmp"
56474 }  ||
56475 {
56476   tmp=./conf$$-$RANDOM
56477   (umask 077 && mkdir "$tmp")
56478 } ||
56479 {
56480    echo "$me: cannot create a temporary directory in ." >&2
56481    { (exit 1); exit 1; }
56482 }
56483
56484 #
56485 # Set up the sed scripts for CONFIG_FILES section.
56486 #
56487
56488 # No need to generate the scripts if there are no CONFIG_FILES.
56489 # This happens for instance when ./config.status config.h
56490 if test -n "$CONFIG_FILES"; then
56491
56492 _ACEOF
56493
56494
56495
56496 ac_delim='%!_!# '
56497 for ac_last_try in false false false false false :; do
56498   cat >conf$$subs.sed <<_ACEOF
56499 SHELL!$SHELL$ac_delim
56500 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
56501 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
56502 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
56503 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
56504 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
56505 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
56506 exec_prefix!$exec_prefix$ac_delim
56507 prefix!$prefix$ac_delim
56508 program_transform_name!$program_transform_name$ac_delim
56509 bindir!$bindir$ac_delim
56510 sbindir!$sbindir$ac_delim
56511 libexecdir!$libexecdir$ac_delim
56512 datarootdir!$datarootdir$ac_delim
56513 datadir!$datadir$ac_delim
56514 sysconfdir!$sysconfdir$ac_delim
56515 sharedstatedir!$sharedstatedir$ac_delim
56516 localstatedir!$localstatedir$ac_delim
56517 includedir!$includedir$ac_delim
56518 oldincludedir!$oldincludedir$ac_delim
56519 docdir!$docdir$ac_delim
56520 infodir!$infodir$ac_delim
56521 htmldir!$htmldir$ac_delim
56522 dvidir!$dvidir$ac_delim
56523 pdfdir!$pdfdir$ac_delim
56524 psdir!$psdir$ac_delim
56525 libdir!$libdir$ac_delim
56526 localedir!$localedir$ac_delim
56527 mandir!$mandir$ac_delim
56528 DEFS!$DEFS$ac_delim
56529 ECHO_C!$ECHO_C$ac_delim
56530 ECHO_N!$ECHO_N$ac_delim
56531 ECHO_T!$ECHO_T$ac_delim
56532 LIBS!$LIBS$ac_delim
56533 build_alias!$build_alias$ac_delim
56534 host_alias!$host_alias$ac_delim
56535 target_alias!$target_alias$ac_delim
56536 build!$build$ac_delim
56537 build_cpu!$build_cpu$ac_delim
56538 build_vendor!$build_vendor$ac_delim
56539 build_os!$build_os$ac_delim
56540 host!$host$ac_delim
56541 host_cpu!$host_cpu$ac_delim
56542 host_vendor!$host_vendor$ac_delim
56543 host_os!$host_os$ac_delim
56544 wx_top_builddir!$wx_top_builddir$ac_delim
56545 CC!$CC$ac_delim
56546 CFLAGS!$CFLAGS$ac_delim
56547 LDFLAGS!$LDFLAGS$ac_delim
56548 CPPFLAGS!$CPPFLAGS$ac_delim
56549 ac_ct_CC!$ac_ct_CC$ac_delim
56550 EXEEXT!$EXEEXT$ac_delim
56551 OBJEXT!$OBJEXT$ac_delim
56552 CPP!$CPP$ac_delim
56553 GREP!$GREP$ac_delim
56554 EGREP!$EGREP$ac_delim
56555 CXX!$CXX$ac_delim
56556 CXXFLAGS!$CXXFLAGS$ac_delim
56557 ac_ct_CXX!$ac_ct_CXX$ac_delim
56558 AR!$AR$ac_delim
56559 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
56560 CXXCPP!$CXXCPP$ac_delim
56561 subdirs!$subdirs$ac_delim
56562 PKG_CONFIG!$PKG_CONFIG$ac_delim
56563 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
56564 GTK_LIBS!$GTK_LIBS$ac_delim
56565 GTK_CONFIG!$GTK_CONFIG$ac_delim
56566 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
56567 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
56568 XMKMF!$XMKMF$ac_delim
56569 X_CFLAGS!$X_CFLAGS$ac_delim
56570 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
56571 X_LIBS!$X_LIBS$ac_delim
56572 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
56573 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
56574 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
56575 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
56576 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
56577 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
56578 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
56579 Xinerama_CFLAGS!$Xinerama_CFLAGS$ac_delim
56580 Xinerama_LIBS!$Xinerama_LIBS$ac_delim
56581 Xxf86vm_CFLAGS!$Xxf86vm_CFLAGS$ac_delim
56582 Xxf86vm_LIBS!$Xxf86vm_LIBS$ac_delim
56583 SM_CFLAGS!$SM_CFLAGS$ac_delim
56584 SM_LIBS!$SM_LIBS$ac_delim
56585 GL_CFLAGS!$GL_CFLAGS$ac_delim
56586 GL_LIBS!$GL_LIBS$ac_delim
56587 GLU_CFLAGS!$GLU_CFLAGS$ac_delim
56588 GLU_LIBS!$GLU_LIBS$ac_delim
56589 MesaGL_CFLAGS!$MesaGL_CFLAGS$ac_delim
56590 MesaGL_LIBS!$MesaGL_LIBS$ac_delim
56591 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
56592 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
56593 LIBICONV!$LIBICONV$ac_delim
56594 GXX_VERSION!$GXX_VERSION$ac_delim
56595 SDL_CONFIG!$SDL_CONFIG$ac_delim
56596 _ACEOF
56597
56598   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56599     break
56600   elif $ac_last_try; then
56601     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56602 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56603    { (exit 1); exit 1; }; }
56604   else
56605     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56606   fi
56607 done
56608
56609 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56610 if test -n "$ac_eof"; then
56611   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56612   ac_eof=`expr $ac_eof + 1`
56613 fi
56614
56615 cat >>$CONFIG_STATUS <<_ACEOF
56616 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
56617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56618 _ACEOF
56619 sed '
56620 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56621 s/^/s,@/; s/!/@,|#_!!_#|/
56622 :n
56623 t n
56624 s/'"$ac_delim"'$/,g/; t
56625 s/$/\\/; p
56626 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56627 ' >>$CONFIG_STATUS <conf$$subs.sed
56628 rm -f conf$$subs.sed
56629 cat >>$CONFIG_STATUS <<_ACEOF
56630 CEOF$ac_eof
56631 _ACEOF
56632
56633
56634 ac_delim='%!_!# '
56635 for ac_last_try in false false false false false :; do
56636   cat >conf$$subs.sed <<_ACEOF
56637 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
56638 SDL_LIBS!$SDL_LIBS$ac_delim
56639 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
56640 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
56641 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
56642 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
56643 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
56644 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
56645 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
56646 HILDON_LIBS!$HILDON_LIBS$ac_delim
56647 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
56648 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
56649 PYTHON!$PYTHON$ac_delim
56650 COND_PYTHON!$COND_PYTHON$ac_delim
56651 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
56652 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
56653 GST_CFLAGS!$GST_CFLAGS$ac_delim
56654 GST_LIBS!$GST_LIBS$ac_delim
56655 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
56656 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
56657 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
56658 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
56659 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
56660 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
56661 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
56662 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
56663 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
56664 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
56665 VENDOR!$VENDOR$ac_delim
56666 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
56667 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
56668 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
56669 WXUNIV!$WXUNIV$ac_delim
56670 MONOLITHIC!$MONOLITHIC$ac_delim
56671 USE_PLUGINS!$USE_PLUGINS$ac_delim
56672 CXXWARNINGS!$CXXWARNINGS$ac_delim
56673 EXTRALIBS!$EXTRALIBS$ac_delim
56674 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
56675 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
56676 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
56677 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
56678 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
56679 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
56680 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
56681 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
56682 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
56683 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
56684 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
56685 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
56686 UNICODE!$UNICODE$ac_delim
56687 DEBUG_INFO!$DEBUG_INFO$ac_delim
56688 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
56689 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
56690 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
56691 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
56692 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
56693 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
56694 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
56695 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
56696 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
56697 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
56698 RANLIB!$RANLIB$ac_delim
56699 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
56700 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
56701 INSTALL_DATA!$INSTALL_DATA$ac_delim
56702 LN_S!$LN_S$ac_delim
56703 SET_MAKE!$SET_MAKE$ac_delim
56704 MAKE_SET!$MAKE_SET$ac_delim
56705 AROPTIONS!$AROPTIONS$ac_delim
56706 STRIP!$STRIP$ac_delim
56707 NM!$NM$ac_delim
56708 INSTALL_DIR!$INSTALL_DIR$ac_delim
56709 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
56710 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
56711 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
56712 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
56713 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
56714 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
56715 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
56716 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
56717 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
56718 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
56719 SO_SUFFIX!$SO_SUFFIX$ac_delim
56720 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
56721 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
56722 LIBPREFIX!$LIBPREFIX$ac_delim
56723 LIBEXT!$LIBEXT$ac_delim
56724 DLLPREFIX!$DLLPREFIX$ac_delim
56725 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
56726 dlldir!$dlldir$ac_delim
56727 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
56728 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
56729 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
56730 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
56731 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
56732 PIC_FLAG!$PIC_FLAG$ac_delim
56733 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
56734 _ACEOF
56735
56736   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56737     break
56738   elif $ac_last_try; then
56739     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56740 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56741    { (exit 1); exit 1; }; }
56742   else
56743     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56744   fi
56745 done
56746
56747 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56748 if test -n "$ac_eof"; then
56749   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56750   ac_eof=`expr $ac_eof + 1`
56751 fi
56752
56753 cat >>$CONFIG_STATUS <<_ACEOF
56754 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
56755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56756 _ACEOF
56757 sed '
56758 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56759 s/^/s,@/; s/!/@,|#_!!_#|/
56760 :n
56761 t n
56762 s/'"$ac_delim"'$/,g/; t
56763 s/$/\\/; p
56764 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56765 ' >>$CONFIG_STATUS <conf$$subs.sed
56766 rm -f conf$$subs.sed
56767 cat >>$CONFIG_STATUS <<_ACEOF
56768 CEOF$ac_eof
56769 _ACEOF
56770
56771
56772 ac_delim='%!_!# '
56773 for ac_last_try in false false false false false :; do
56774   cat >conf$$subs.sed <<_ACEOF
56775 USE_SOVERSION!$USE_SOVERSION$ac_delim
56776 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
56777 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
56778 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
56779 USE_MACVERSION!$USE_MACVERSION$ac_delim
56780 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
56781 SONAME_FLAG!$SONAME_FLAG$ac_delim
56782 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
56783 BK_DEPS!$BK_DEPS$ac_delim
56784 WINDRES!$WINDRES$ac_delim
56785 REZ!$REZ$ac_delim
56786 SETFILE!$SETFILE$ac_delim
56787 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
56788 GCC_PCH!$GCC_PCH$ac_delim
56789 ICC_PCH!$ICC_PCH$ac_delim
56790 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
56791 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
56792 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
56793 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
56794 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
56795 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
56796 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
56797 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
56798 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
56799 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
56800 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
56801 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
56802 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
56803 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
56804 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
56805 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
56806 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
56807 COND_BUILD_release!$COND_BUILD_release$ac_delim
56808 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
56809 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
56810 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
56811 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
56812 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
56813 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
56814 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
56815 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
56816 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
56817 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
56818 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
56819 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
56820 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
56821 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
56822 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
56823 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
56824 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
56825 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
56826 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1$ac_delim
56827 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
56828 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
56829 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
56830 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
56831 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
56832 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
56833 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
56834 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
56835 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
56836 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
56837 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
56838 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1$ac_delim
56839 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
56840 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
56841 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
56842 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
56843 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
56844 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
56845 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
56846 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
56847 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
56848 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
56849 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
56850 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
56851 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
56852 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
56853 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
56854 COND_MONOLITHIC_0_USE_WEBVIEW_1!$COND_MONOLITHIC_0_USE_WEBVIEW_1$ac_delim
56855 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
56856 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
56857 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
56858 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
56859 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
56860 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
56861 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
56862 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
56863 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
56864 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
56865 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
56866 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
56867 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
56868 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
56869 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
56870 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
56871 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
56872 _ACEOF
56873
56874   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
56875     break
56876   elif $ac_last_try; then
56877     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
56878 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
56879    { (exit 1); exit 1; }; }
56880   else
56881     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56882   fi
56883 done
56884
56885 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
56886 if test -n "$ac_eof"; then
56887   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
56888   ac_eof=`expr $ac_eof + 1`
56889 fi
56890
56891 cat >>$CONFIG_STATUS <<_ACEOF
56892 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
56893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56894 _ACEOF
56895 sed '
56896 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
56897 s/^/s,@/; s/!/@,|#_!!_#|/
56898 :n
56899 t n
56900 s/'"$ac_delim"'$/,g/; t
56901 s/$/\\/; p
56902 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
56903 ' >>$CONFIG_STATUS <conf$$subs.sed
56904 rm -f conf$$subs.sed
56905 cat >>$CONFIG_STATUS <<_ACEOF
56906 CEOF$ac_eof
56907 _ACEOF
56908
56909
56910 ac_delim='%!_!# '
56911 for ac_last_try in false false false false false :; do
56912   cat >conf$$subs.sed <<_ACEOF
56913 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
56914 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
56915 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
56916 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
56917 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
56918 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
56919 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
56920 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
56921 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
56922 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
56923 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
56924 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
56925 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
56926 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
56927 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
56928 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
56929 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
56930 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
56931 COND_SHARED_0!$COND_SHARED_0$ac_delim
56932 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
56933 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
56934 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
56935 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
56936 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
56937 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
56938 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
56939 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
56940 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
56941 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
56942 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
56943 COND_SHARED_1!$COND_SHARED_1$ac_delim
56944 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
56945 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
56946 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
56947 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
56948 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
56949 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
56950 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
56951 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
56952 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
56953 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
56954 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
56955 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
56956 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
56957 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
56958 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
56959 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
56960 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
56961 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
56962 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
56963 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
56964 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
56965 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
56966 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
56967 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
56968 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
56969 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
56970 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
56971 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
56972 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
56973 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
56974 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
56975 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
56976 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
56977 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
56978 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
56979 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
56980 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
56981 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
56982 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
56983 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
56984 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
56985 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
56986 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
56987 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
56988 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
56989 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
56990 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
56991 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
56992 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
56993 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
56994 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
56995 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
56996 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
56997 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
56998 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
56999 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
57000 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
57001 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
57002 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
57003 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
57004 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
57005 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
57006 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
57007 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
57008 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
57009 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
57010 _ACEOF
57011
57012   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
57013     break
57014   elif $ac_last_try; then
57015     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57016 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57017    { (exit 1); exit 1; }; }
57018   else
57019     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57020   fi
57021 done
57022
57023 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
57024 if test -n "$ac_eof"; then
57025   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
57026   ac_eof=`expr $ac_eof + 1`
57027 fi
57028
57029 cat >>$CONFIG_STATUS <<_ACEOF
57030 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
57031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57032 _ACEOF
57033 sed '
57034 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
57035 s/^/s,@/; s/!/@,|#_!!_#|/
57036 :n
57037 t n
57038 s/'"$ac_delim"'$/,g/; t
57039 s/$/\\/; p
57040 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
57041 ' >>$CONFIG_STATUS <conf$$subs.sed
57042 rm -f conf$$subs.sed
57043 cat >>$CONFIG_STATUS <<_ACEOF
57044 CEOF$ac_eof
57045 _ACEOF
57046
57047
57048 ac_delim='%!_!# '
57049 for ac_last_try in false false false false false :; do
57050   cat >conf$$subs.sed <<_ACEOF
57051 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
57052 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
57053 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
57054 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
57055 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
57056 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
57057 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
57058 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
57059 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
57060 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
57061 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
57062 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
57063 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
57064 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
57065 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
57066 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
57067 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
57068 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
57069 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
57070 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
57071 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
57072 DEREZ!$DEREZ$ac_delim
57073 SHARED!$SHARED$ac_delim
57074 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
57075 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
57076 USE_GUI!$USE_GUI$ac_delim
57077 AFMINSTALL!$AFMINSTALL$ac_delim
57078 WIN32INSTALL!$WIN32INSTALL$ac_delim
57079 TOOLKIT!$TOOLKIT$ac_delim
57080 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
57081 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
57082 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
57083 cross_compiling!$cross_compiling$ac_delim
57084 WIDGET_SET!$WIDGET_SET$ac_delim
57085 WX_RELEASE!$WX_RELEASE$ac_delim
57086 WX_VERSION!$WX_VERSION$ac_delim
57087 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
57088 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
57089 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
57090 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
57091 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
57092 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
57093 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
57094 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
57095 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
57096 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
57097 GUIDIST!$GUIDIST$ac_delim
57098 DISTDIR!$DISTDIR$ac_delim
57099 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
57100 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
57101 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
57102 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
57103 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
57104 RESCOMP!$RESCOMP$ac_delim
57105 RESFLAGS!$RESFLAGS$ac_delim
57106 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
57107 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
57108 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
57109 LIBWXMACRES!$LIBWXMACRES$ac_delim
57110 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
57111 MACSETFILE!$MACSETFILE$ac_delim
57112 GCC!$GCC$ac_delim
57113 DLLTOOL!$DLLTOOL$ac_delim
57114 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
57115 LIBOBJS!$LIBOBJS$ac_delim
57116 LTLIBOBJS!$LTLIBOBJS$ac_delim
57117 _ACEOF
57118
57119   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
57120     break
57121   elif $ac_last_try; then
57122     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57123 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57124    { (exit 1); exit 1; }; }
57125   else
57126     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57127   fi
57128 done
57129
57130 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
57131 if test -n "$ac_eof"; then
57132   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
57133   ac_eof=`expr $ac_eof + 1`
57134 fi
57135
57136 cat >>$CONFIG_STATUS <<_ACEOF
57137 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
57138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
57139 _ACEOF
57140 sed '
57141 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
57142 s/^/s,@/; s/!/@,|#_!!_#|/
57143 :n
57144 t n
57145 s/'"$ac_delim"'$/,g/; t
57146 s/$/\\/; p
57147 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
57148 ' >>$CONFIG_STATUS <conf$$subs.sed
57149 rm -f conf$$subs.sed
57150 cat >>$CONFIG_STATUS <<_ACEOF
57151 :end
57152 s/|#_!!_#|//g
57153 CEOF$ac_eof
57154 _ACEOF
57155
57156
57157 # VPATH may cause trouble with some makes, so we remove $(srcdir),
57158 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
57159 # trailing colons and then remove the whole line if VPATH becomes empty
57160 # (actually we leave an empty line to preserve line numbers).
57161 if test "x$srcdir" = x.; then
57162   ac_vpsub='/^[  ]*VPATH[        ]*=/{
57163 s/:*\$(srcdir):*/:/
57164 s/:*\${srcdir}:*/:/
57165 s/:*@srcdir@:*/:/
57166 s/^\([^=]*=[     ]*\):*/\1/
57167 s/:*$//
57168 s/^[^=]*=[       ]*$//
57169 }'
57170 fi
57171
57172 cat >>$CONFIG_STATUS <<\_ACEOF
57173 fi # test -n "$CONFIG_FILES"
57174
57175
57176 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
57177 do
57178   case $ac_tag in
57179   :[FHLC]) ac_mode=$ac_tag; continue;;
57180   esac
57181   case $ac_mode$ac_tag in
57182   :[FHL]*:*);;
57183   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
57184 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
57185    { (exit 1); exit 1; }; };;
57186   :[FH]-) ac_tag=-:-;;
57187   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
57188   esac
57189   ac_save_IFS=$IFS
57190   IFS=:
57191   set x $ac_tag
57192   IFS=$ac_save_IFS
57193   shift
57194   ac_file=$1
57195   shift
57196
57197   case $ac_mode in
57198   :L) ac_source=$1;;
57199   :[FH])
57200     ac_file_inputs=
57201     for ac_f
57202     do
57203       case $ac_f in
57204       -) ac_f="$tmp/stdin";;
57205       *) # Look for the file first in the build tree, then in the source tree
57206          # (if the path is not absolute).  The absolute path cannot be DOS-style,
57207          # because $ac_f cannot contain `:'.
57208          test -f "$ac_f" ||
57209            case $ac_f in
57210            [\\/$]*) false;;
57211            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
57212            esac ||
57213            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
57214 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
57215    { (exit 1); exit 1; }; };;
57216       esac
57217       ac_file_inputs="$ac_file_inputs $ac_f"
57218     done
57219
57220     # Let's still pretend it is `configure' which instantiates (i.e., don't
57221     # use $as_me), people would be surprised to read:
57222     #    /* config.h.  Generated by config.status.  */
57223     configure_input="Generated from "`IFS=:
57224           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
57225     if test x"$ac_file" != x-; then
57226       configure_input="$ac_file.  $configure_input"
57227       { echo "$as_me:$LINENO: creating $ac_file" >&5
57228 echo "$as_me: creating $ac_file" >&6;}
57229     fi
57230
57231     case $ac_tag in
57232     *:-:* | *:-) cat >"$tmp/stdin";;
57233     esac
57234     ;;
57235   esac
57236
57237   ac_dir=`$as_dirname -- "$ac_file" ||
57238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57239          X"$ac_file" : 'X\(//\)[^/]' \| \
57240          X"$ac_file" : 'X\(//\)$' \| \
57241          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
57242 echo X"$ac_file" |
57243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57244             s//\1/
57245             q
57246           }
57247           /^X\(\/\/\)[^/].*/{
57248             s//\1/
57249             q
57250           }
57251           /^X\(\/\/\)$/{
57252             s//\1/
57253             q
57254           }
57255           /^X\(\/\).*/{
57256             s//\1/
57257             q
57258           }
57259           s/.*/./; q'`
57260   { as_dir="$ac_dir"
57261   case $as_dir in #(
57262   -*) as_dir=./$as_dir;;
57263   esac
57264   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57265     as_dirs=
57266     while :; do
57267       case $as_dir in #(
57268       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
57269       *) as_qdir=$as_dir;;
57270       esac
57271       as_dirs="'$as_qdir' $as_dirs"
57272       as_dir=`$as_dirname -- "$as_dir" ||
57273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57274          X"$as_dir" : 'X\(//\)[^/]' \| \
57275          X"$as_dir" : 'X\(//\)$' \| \
57276          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57277 echo X"$as_dir" |
57278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57279             s//\1/
57280             q
57281           }
57282           /^X\(\/\/\)[^/].*/{
57283             s//\1/
57284             q
57285           }
57286           /^X\(\/\/\)$/{
57287             s//\1/
57288             q
57289           }
57290           /^X\(\/\).*/{
57291             s//\1/
57292             q
57293           }
57294           s/.*/./; q'`
57295       test -d "$as_dir" && break
57296     done
57297     test -z "$as_dirs" || eval "mkdir $as_dirs"
57298   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57299 echo "$as_me: error: cannot create directory $as_dir" >&2;}
57300    { (exit 1); exit 1; }; }; }
57301   ac_builddir=.
57302
57303 case "$ac_dir" in
57304 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57305 *)
57306   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57307   # A ".." for each directory in $ac_dir_suffix.
57308   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
57309   case $ac_top_builddir_sub in
57310   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57311   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57312   esac ;;
57313 esac
57314 ac_abs_top_builddir=$ac_pwd
57315 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57316 # for backward compatibility:
57317 ac_top_builddir=$ac_top_build_prefix
57318
57319 case $srcdir in
57320   .)  # We are building in place.
57321     ac_srcdir=.
57322     ac_top_srcdir=$ac_top_builddir_sub
57323     ac_abs_top_srcdir=$ac_pwd ;;
57324   [\\/]* | ?:[\\/]* )  # Absolute name.
57325     ac_srcdir=$srcdir$ac_dir_suffix;
57326     ac_top_srcdir=$srcdir
57327     ac_abs_top_srcdir=$srcdir ;;
57328   *) # Relative name.
57329     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57330     ac_top_srcdir=$ac_top_build_prefix$srcdir
57331     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57332 esac
57333 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57334
57335
57336   case $ac_mode in
57337   :F)
57338   #
57339   # CONFIG_FILE
57340   #
57341
57342   case $INSTALL in
57343   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
57344   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
57345   esac
57346 _ACEOF
57347
57348 cat >>$CONFIG_STATUS <<\_ACEOF
57349 # If the template does not know about datarootdir, expand it.
57350 # FIXME: This hack should be removed a few years after 2.60.
57351 ac_datarootdir_hack=; ac_datarootdir_seen=
57352
57353 case `sed -n '/datarootdir/ {
57354   p
57355   q
57356 }
57357 /@datadir@/p
57358 /@docdir@/p
57359 /@infodir@/p
57360 /@localedir@/p
57361 /@mandir@/p
57362 ' $ac_file_inputs` in
57363 *datarootdir*) ac_datarootdir_seen=yes;;
57364 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57365   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
57366 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
57367 _ACEOF
57368 cat >>$CONFIG_STATUS <<_ACEOF
57369   ac_datarootdir_hack='
57370   s&@datadir@&$datadir&g
57371   s&@docdir@&$docdir&g
57372   s&@infodir@&$infodir&g
57373   s&@localedir@&$localedir&g
57374   s&@mandir@&$mandir&g
57375     s&\\\${datarootdir}&$datarootdir&g' ;;
57376 esac
57377 _ACEOF
57378
57379 # Neutralize VPATH when `$srcdir' = `.'.
57380 # Shell code in configure.ac might set extrasub.
57381 # FIXME: do we really want to maintain this feature?
57382 cat >>$CONFIG_STATUS <<_ACEOF
57383   sed "$ac_vpsub
57384 $extrasub
57385 _ACEOF
57386 cat >>$CONFIG_STATUS <<\_ACEOF
57387 :t
57388 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57389 s&@configure_input@&$configure_input&;t t
57390 s&@top_builddir@&$ac_top_builddir_sub&;t t
57391 s&@srcdir@&$ac_srcdir&;t t
57392 s&@abs_srcdir@&$ac_abs_srcdir&;t t
57393 s&@top_srcdir@&$ac_top_srcdir&;t t
57394 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
57395 s&@builddir@&$ac_builddir&;t t
57396 s&@abs_builddir@&$ac_abs_builddir&;t t
57397 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
57398 s&@INSTALL@&$ac_INSTALL&;t t
57399 $ac_datarootdir_hack
57400 " $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
57401
57402 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
57403   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
57404   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
57405   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57406 which seems to be undefined.  Please make sure it is defined." >&5
57407 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57408 which seems to be undefined.  Please make sure it is defined." >&2;}
57409
57410   rm -f "$tmp/stdin"
57411   case $ac_file in
57412   -) cat "$tmp/out"; rm -f "$tmp/out";;
57413   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
57414   esac
57415  ;;
57416   :H)
57417   #
57418   # CONFIG_HEADER
57419   #
57420 _ACEOF
57421
57422 # Transform confdefs.h into a sed script `conftest.defines', that
57423 # substitutes the proper values into config.h.in to produce config.h.
57424 rm -f conftest.defines conftest.tail
57425 # First, append a space to every undef/define line, to ease matching.
57426 echo 's/$/ /' >conftest.defines
57427 # Then, protect against being on the right side of a sed subst, or in
57428 # an unquoted here document, in config.status.  If some macros were
57429 # called several times there might be several #defines for the same
57430 # symbol, which is useless.  But do not sort them, since the last
57431 # AC_DEFINE must be honored.
57432 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
57433 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
57434 # NAME is the cpp macro being defined, VALUE is the value it is being given.
57435 # PARAMS is the parameter list in the macro definition--in most cases, it's
57436 # just an empty string.
57437 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
57438 ac_dB='\\)[      (].*,\\1define\\2'
57439 ac_dC=' '
57440 ac_dD=' ,'
57441
57442 uniq confdefs.h |
57443   sed -n '
57444         t rset
57445         :rset
57446         s/^[     ]*#[    ]*define[       ][      ]*//
57447         t ok
57448         d
57449         :ok
57450         s/[\\&,]/\\&/g
57451         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
57452         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
57453   ' >>conftest.defines
57454
57455 # Remove the space that was appended to ease matching.
57456 # Then replace #undef with comments.  This is necessary, for
57457 # example, in the case of _POSIX_SOURCE, which is predefined and required
57458 # on some systems where configure will not decide to define it.
57459 # (The regexp can be short, since the line contains either #define or #undef.)
57460 echo 's/ $//
57461 s,^[     #]*u.*,/* & */,' >>conftest.defines
57462
57463 # Break up conftest.defines:
57464 ac_max_sed_lines=50
57465
57466 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
57467 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
57468 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
57469 # et cetera.
57470 ac_in='$ac_file_inputs'
57471 ac_out='"$tmp/out1"'
57472 ac_nxt='"$tmp/out2"'
57473
57474 while :
57475 do
57476   # Write a here document:
57477     cat >>$CONFIG_STATUS <<_ACEOF
57478     # First, check the format of the line:
57479     cat >"\$tmp/defines.sed" <<\\CEOF
57480 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
57481 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
57482 b
57483 :def
57484 _ACEOF
57485   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
57486   echo 'CEOF
57487     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
57488   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
57489   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
57490   grep . conftest.tail >/dev/null || break
57491   rm -f conftest.defines
57492   mv conftest.tail conftest.defines
57493 done
57494 rm -f conftest.defines conftest.tail
57495
57496 echo "ac_result=$ac_in" >>$CONFIG_STATUS
57497 cat >>$CONFIG_STATUS <<\_ACEOF
57498   if test x"$ac_file" != x-; then
57499     echo "/* $configure_input  */" >"$tmp/config.h"
57500     cat "$ac_result" >>"$tmp/config.h"
57501     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
57502       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
57503 echo "$as_me: $ac_file is unchanged" >&6;}
57504     else
57505       rm -f $ac_file
57506       mv "$tmp/config.h" $ac_file
57507     fi
57508   else
57509     echo "/* $configure_input  */"
57510     cat "$ac_result"
57511   fi
57512   rm -f "$tmp/out12"
57513  ;;
57514
57515   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
57516 echo "$as_me: executing $ac_file commands" >&6;}
57517  ;;
57518   esac
57519
57520
57521   case $ac_file$ac_mode in
57522     "rcdefs.h":C)
57523             mkdir -p $outdir &&
57524             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
57525          ;;
57526     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
57527     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
57528     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
57529     "wx-config":C)  rm -f wx-config
57530                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
57531                     ;;
57532
57533   esac
57534 done # for ac_tag
57535
57536
57537 { (exit 0); exit 0; }
57538 _ACEOF
57539 chmod +x $CONFIG_STATUS
57540 ac_clean_files=$ac_clean_files_save
57541
57542
57543 # configure is writing to config.log, and then calls config.status.
57544 # config.status does its own redirection, appending to config.log.
57545 # Unfortunately, on DOS this fails, as config.log is still kept open
57546 # by configure, so config.status won't be able to write to it; its
57547 # output is simply discarded.  So we exec the FD to /dev/null,
57548 # effectively closing config.log, so it can be properly (re)opened and
57549 # appended to by config.status.  When coming back to configure, we
57550 # need to make the FD available again.
57551 if test "$no_create" != yes; then
57552   ac_cs_success=:
57553   ac_config_status_args=
57554   test "$silent" = yes &&
57555     ac_config_status_args="$ac_config_status_args --quiet"
57556   exec 5>/dev/null
57557   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
57558   exec 5>>config.log
57559   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
57560   # would make configure fail if this is the last instruction.
57561   $ac_cs_success || { (exit 1); exit 1; }
57562 fi
57563
57564 #
57565 # CONFIG_SUBDIRS section.
57566 #
57567 if test "$no_recursion" != yes; then
57568
57569   # Remove --cache-file and --srcdir arguments so they do not pile up.
57570   ac_sub_configure_args=
57571   ac_prev=
57572   eval "set x $ac_configure_args"
57573   shift
57574   for ac_arg
57575   do
57576     if test -n "$ac_prev"; then
57577       ac_prev=
57578       continue
57579     fi
57580     case $ac_arg in
57581     -cache-file | --cache-file | --cache-fil | --cache-fi \
57582     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
57583       ac_prev=cache_file ;;
57584     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
57585     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
57586     | --c=*)
57587       ;;
57588     --config-cache | -C)
57589       ;;
57590     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
57591       ac_prev=srcdir ;;
57592     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
57593       ;;
57594     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
57595       ac_prev=prefix ;;
57596     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
57597       ;;
57598     *)
57599       case $ac_arg in
57600       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57601       esac
57602       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
57603     esac
57604   done
57605
57606   # Always prepend --prefix to ensure using the same prefix
57607   # in subdir configurations.
57608   ac_arg="--prefix=$prefix"
57609   case $ac_arg in
57610   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57611   esac
57612   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
57613
57614   # Pass --silent
57615   if test "$silent" = yes; then
57616     ac_sub_configure_args="--silent $ac_sub_configure_args"
57617   fi
57618
57619   ac_popdir=`pwd`
57620   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
57621
57622     # Do not complain, so a configure script can configure whichever
57623     # parts of a large source tree are present.
57624     test -d "$srcdir/$ac_dir" || continue
57625
57626     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
57627     echo "$as_me:$LINENO: $ac_msg" >&5
57628     echo "$ac_msg" >&6
57629     { as_dir="$ac_dir"
57630   case $as_dir in #(
57631   -*) as_dir=./$as_dir;;
57632   esac
57633   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57634     as_dirs=
57635     while :; do
57636       case $as_dir in #(
57637       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
57638       *) as_qdir=$as_dir;;
57639       esac
57640       as_dirs="'$as_qdir' $as_dirs"
57641       as_dir=`$as_dirname -- "$as_dir" ||
57642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57643          X"$as_dir" : 'X\(//\)[^/]' \| \
57644          X"$as_dir" : 'X\(//\)$' \| \
57645          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57646 echo X"$as_dir" |
57647     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57648             s//\1/
57649             q
57650           }
57651           /^X\(\/\/\)[^/].*/{
57652             s//\1/
57653             q
57654           }
57655           /^X\(\/\/\)$/{
57656             s//\1/
57657             q
57658           }
57659           /^X\(\/\).*/{
57660             s//\1/
57661             q
57662           }
57663           s/.*/./; q'`
57664       test -d "$as_dir" && break
57665     done
57666     test -z "$as_dirs" || eval "mkdir $as_dirs"
57667   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57668 echo "$as_me: error: cannot create directory $as_dir" >&2;}
57669    { (exit 1); exit 1; }; }; }
57670     ac_builddir=.
57671
57672 case "$ac_dir" in
57673 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57674 *)
57675   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57676   # A ".." for each directory in $ac_dir_suffix.
57677   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
57678   case $ac_top_builddir_sub in
57679   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57680   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57681   esac ;;
57682 esac
57683 ac_abs_top_builddir=$ac_pwd
57684 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57685 # for backward compatibility:
57686 ac_top_builddir=$ac_top_build_prefix
57687
57688 case $srcdir in
57689   .)  # We are building in place.
57690     ac_srcdir=.
57691     ac_top_srcdir=$ac_top_builddir_sub
57692     ac_abs_top_srcdir=$ac_pwd ;;
57693   [\\/]* | ?:[\\/]* )  # Absolute name.
57694     ac_srcdir=$srcdir$ac_dir_suffix;
57695     ac_top_srcdir=$srcdir
57696     ac_abs_top_srcdir=$srcdir ;;
57697   *) # Relative name.
57698     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57699     ac_top_srcdir=$ac_top_build_prefix$srcdir
57700     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57701 esac
57702 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57703
57704
57705     cd "$ac_dir"
57706
57707     # Check for guested configure; otherwise get Cygnus style configure.
57708     if test -f "$ac_srcdir/configure.gnu"; then
57709       ac_sub_configure=$ac_srcdir/configure.gnu
57710     elif test -f "$ac_srcdir/configure"; then
57711       ac_sub_configure=$ac_srcdir/configure
57712     elif test -f "$ac_srcdir/configure.in"; then
57713       # This should be Cygnus configure.
57714       ac_sub_configure=$ac_aux_dir/configure
57715     else
57716       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
57717 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
57718       ac_sub_configure=
57719     fi
57720
57721     # The recursion is here.
57722     if test -n "$ac_sub_configure"; then
57723       # Make the cache file name correct relative to the subdirectory.
57724       case $cache_file in
57725       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
57726       *) # Relative name.
57727         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
57728       esac
57729
57730       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
57731 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
57732       # The eval makes quoting arguments work.
57733       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
57734            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
57735         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
57736 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
57737    { (exit 1); exit 1; }; }
57738     fi
57739
57740     cd "$ac_popdir"
57741   done
57742 fi
57743
57744
57745 echo
57746 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
57747 echo ""
57748 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
57749 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
57750 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
57751 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
57752 if test "$wxUSE_UNICODE" = "yes"; then
57753     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
57754         echo " (using UTF-8)"
57755     else
57756         echo " (using wchar_t)"
57757     fi
57758 else
57759     echo
57760 fi
57761
57762 echo "  What level of wxWidgets compatibility should be enabled?"
57763 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
57764 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
57765
57766 echo "  Which libraries should wxWidgets use?"
57767 echo "                                       STL                ${wxUSE_STL}"
57768 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
57769 echo "                                       png                ${wxUSE_LIBPNG-none}"
57770 echo "                                       regex              ${wxUSE_REGEX}"
57771 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
57772 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
57773 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
57774 fi
57775 echo "                                       zlib               ${wxUSE_ZLIB}"
57776 echo "                                       expat              ${wxUSE_EXPAT}"
57777 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
57778 echo "                                       sdl                ${wxUSE_LIBSDL}"
57779
57780 echo ""
57781